/* ==========================================================================
   CGX Visuals — coming-soon splash
   Palette sampled from the brand lockup.
   ========================================================================== */

@font-face {
	font-family: "Big Shoulders Display";
	src: url("../fonts/big-shoulders-display-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Big Shoulders Display";
	src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
	font-weight: 800;
	font-display: swap;
}
@font-face {
	font-family: "Big Shoulders Display";
	src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2");
	font-weight: 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
	font-weight: 600;
	font-display: swap;
}

:root {
	--slate: #55565b;      /* CGX letters */
	--slate-deep: #3f4044; /* panel shadow side */
	--ink: #2b2c2f;        /* body text */
	--blue: #67b1e2;       /* CGX blue — graphics and large type only */
	--blue-tint: #b5dbf3;  /* blue for small text on slate (AA) */
	--ground: #f3f4f5;
	--white: #ffffff;

	--display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--body: "Source Sans 3", "Myriad Pro", "Segoe UI", sans-serif;

	--gutter: clamp(1.25rem, 4vw, 4rem);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font: 400 1.0625rem/1.55 var(--body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
	outline: 3px solid var(--slate);
	outline-offset: 4px;
	border-radius: 2px;
}
.panel :focus-visible { outline-color: var(--blue-tint); }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout: content left, angled slate panel right
   -------------------------------------------------------------------------- */
.splash {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"masthead"
		"intro"
		"panel"
		"colophon";
	isolation: isolate;
}

@media (min-width: 960px) {
	.splash {
		grid-template-columns: minmax(0, 1fr) minmax(430px, 47vw);
		grid-template-rows: auto 1fr auto;
		grid-template-areas:
			"masthead panel"
			"intro    panel"
			"colophon panel";
	}
}

/* Corner wedges, lifted from the announcement graphic */
.wedge {
	position: absolute;
	z-index: -1;
	background: var(--blue);
	pointer-events: none;
}
.wedge--top {
	top: 0; left: 0;
	width: clamp(64px, 9vw, 140px);
	aspect-ratio: 1;
	clip-path: polygon(0 0, 100% 0, 0 100%);
	opacity: .9;
}
.wedge--bottom {
	right: 0; bottom: 0;
	width: clamp(110px, 18vw, 300px);
	aspect-ratio: 1;
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	z-index: 2;
}

/* --------------------------------------------------------------------------
   Masthead: old name struck through, new lockup
   -------------------------------------------------------------------------- */
.masthead {
	grid-area: masthead;
	padding: clamp(5rem, 11vw, 8rem) var(--gutter) 0;
}

.rename {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: .35em .75em;
	margin: 0 0 clamp(.75rem, 2vw, 1.25rem);
	font: 800 clamp(1.2rem, 2vw, 1.5rem)/1 var(--display);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--slate);
}
.rename__old {
	position: relative;
	display: inline-block;
}
.rename__strike {
	position: absolute;
	left: -4%;
	top: 50%;
	width: 108%;
	height: .14em;
	min-height: 3px;
	background: var(--blue);
	transform: rotate(-3deg) scaleX(1);
	transform-origin: left center;
}
.rename__now {
	font-family: var(--body);
	font-weight: 600;
	font-size: .7em;
	letter-spacing: .3em;
	color: var(--ink);
}

/* Logo lockup */
.brand { display: inline-block; line-height: 0; }
.brand__img {
	display: block;
	width: clamp(220px, 30vw, 400px);
	height: auto;
}
.brand-link { text-decoration: none; display: inline-block; }

/* --------------------------------------------------------------------------
   Intro copy
   -------------------------------------------------------------------------- */
.intro {
	grid-area: intro;
	align-self: end;
	padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
	max-width: 46rem;
}

.eyebrow {
	display: inline-block;
	margin: 0 0 1.25rem;
	padding: .45em .9em .4em;
	background: var(--slate);
	color: var(--white);
	font: 800 .95rem/1 var(--display);
	letter-spacing: .28em;
	text-transform: uppercase;
	clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 100%, 0 100%);
	padding-right: 1.4em;
}

.headline {
	margin: 0 0 1.25rem;
	font: 800 clamp(2.6rem, 6.4vw, 5.25rem)/.92 var(--display);
	text-transform: uppercase;
	letter-spacing: .005em;
	color: var(--ink);
}
.headline__line { display: block; }
.headline__line--b { color: var(--slate); }

.lede {
	margin: 0 0 1rem;
	max-width: 32ch;
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	line-height: 1.45;
}
.tagline {
	margin: 0;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--slate);
}
.tagline strong {
	font-weight: 600;
	color: var(--ink);
	box-shadow: inset 0 -.32em 0 rgba(103, 177, 226, .45);
}

.button {
	display: inline-block;
	padding: .8em 1.4em;
	background: var(--slate);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}
.button:hover { background: var(--ink); }

/* --------------------------------------------------------------------------
   Angled panel
   -------------------------------------------------------------------------- */
.panel {
	grid-area: panel;
	position: relative;
	background: var(--slate);
	color: var(--white);
	clip-path: polygon(0 4.5rem, 100% 0, 100% 100%, 0 100%);
	padding: clamp(6.5rem, 12vw, 8rem) var(--gutter) clamp(7rem, 16vw, 9rem);
}
@media (min-width: 960px) {
	.panel {
		clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
		/* left padding always clears the diagonal (20% at the top) */
		padding: clamp(8rem, 14vh, 11rem) var(--gutter) clamp(9rem, 22vh, 14rem) calc(20% + clamp(1.5rem, 3vw, 3rem));
		display: flex;
		align-items: center;
	}
}
.panel::before {
	/* darker sliver along the cut edge for depth */
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, var(--slate-deep) 0 22%, transparent 48%);
	opacity: .55;
	pointer-events: none;
}
.panel__inner { position: relative; width: 100%; }

.panel__label {
	margin: 0 0 1.1rem;
	font: 600 .82rem/1.2 var(--body);
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--blue-tint);
}

.services {
	list-style: none;
	margin: 0 0 clamp(2.5rem, 6vh, 4rem);
	padding: 0;
}
.services li {
	font: 800 clamp(2rem, 3.6vw, 3.3rem)/1.02 var(--display);
	text-transform: uppercase;
	letter-spacing: .01em;
	padding: .18em 0 .14em;
	border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.services li:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }

.handle {
	display: block;
	margin-top: .55rem;
	font: 800 clamp(1.5rem, 2.2vw, 2rem)/1 var(--display);
	letter-spacing: .04em;
	text-transform: none;
	color: var(--white);
}

.social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.social a,
.contact a {
	display: inline-block;
	padding: .55em 1em;
	border: 1.5px solid rgba(255, 255, 255, .55);
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, border-color .2s, color .2s;
}
.social a:hover,
.contact a:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--slate);
}
.contact {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .5rem 0 0;
}

/* --------------------------------------------------------------------------
   Colophon
   -------------------------------------------------------------------------- */
.colophon {
	grid-area: colophon;
	padding: 1.25rem var(--gutter) 1.75rem;
	font-size: .875rem;
	color: var(--slate);
	position: relative;
	z-index: 3;
}
.colophon p { margin: 0; }
@media (max-width: 959px) {
	.colophon { background: var(--slate); color: #e9eaeb; padding-right: clamp(130px, 22vw, 320px); z-index: 1; border-top: 1px solid rgba(255, 255, 255, .16); }
	.wedge--bottom { z-index: 4; }
}

/* 404 keeps the left column only */
.splash--404 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "masthead" "intro"; }
.splash--404 .intro { align-self: start; }

/* --------------------------------------------------------------------------
   Load-in: one orchestrated sequence, the old name gets struck and
   the new mark takes its place. Off when reduced motion is requested.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.wedge--top    { animation: wedge-tl .9s var(--ease) both; }
	.wedge--bottom { animation: wedge-br .9s var(--ease) .1s both; }

	.rename__old    { animation: fade-up .5s var(--ease) .15s backwards; }
	.rename__strike { animation: strike .45s var(--ease) .6s both; }
	.rename__now    { animation: fade-up .45s var(--ease) .95s both; }

	.brand          { animation: rise .8s var(--ease) 1.05s both; }

	.panel { animation: panel-in 1s var(--ease) 1.5s both; }

	.eyebrow,
	.headline__line,
	.lede,
	.tagline,
	.services li,
	.follow,
	.colophon { animation: fade-up .6s var(--ease) both; }

	.eyebrow                 { animation-delay: 1.8s; }
	.headline__line          { animation-delay: 1.9s; }
	.headline__line--b       { animation-delay: 2s; }
	.lede                    { animation-delay: 2.1s; }
	.tagline                 { animation-delay: 2.2s; }
	.services li:nth-child(1){ animation-delay: 2s; }
	.services li:nth-child(2){ animation-delay: 2.08s; }
	.services li:nth-child(3){ animation-delay: 2.16s; }
	.services li:nth-child(4){ animation-delay: 2.24s; }
	.follow                  { animation-delay: 2.35s; }
	.colophon                { animation-delay: 2.4s; }

	/* 404 page: no rename sequence, so shorten */
	.splash--404 .brand { animation-delay: .1s; }
	.splash--404 .eyebrow, .splash--404 .headline__line, .splash--404 .lede { animation-delay: .5s; }
}

@keyframes wedge-tl { from { transform: translate(-100%, -100%); } }
@keyframes wedge-br { from { transform: translate(100%, 100%); } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(14px); } }
@keyframes strike   { from { transform: rotate(-3deg) scaleX(0); } }
@keyframes rise     { from { opacity: 0; transform: translateY(18px); } }
@keyframes panel-in { from { transform: translateX(18%); opacity: 0; } }

/* Old name stays dimmed after the sequence, and without motion */
.rename__old { opacity: .7; } /* 3:1 at this size */
