/* ==========================================================================
   GS Techverse media kit
   Colour, typography, the card system and every keyframe live here.
   Tailwind is used for layout utilities only.
   ========================================================================== */

:root {
  /* selected from the supplied blue ramp */
  --blue:  #0466c8;  /* smart blue     — action, data fill, accent */
  --azure: #0353a4;  /* steel azure    — pressed and deeper fills  */
  --navy:  #023e7d;  /* regal navy     — gradient depth            */
  --ink-2: #001845;  /* prussian blue  — secondary dark surface    */
  --ink:   #001233;  /* prussian blue  — dark bands, primary type  */
  --slate: #5c677d;  /* blue slate     — secondary type on light   */
  --steel: #979dac;  /* cool steel     — minor data fill, muted    */

  /* two neutrals tinted from the ramp, for surfaces and reversed type */
  --canvas:   #eef2f8;
  --canvas-2: #e3eaf4;
  --card:     #ffffff;
  --mist:     #cbd8e8;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body:    'Inter', ui-sans-serif, system-ui, sans-serif;
  --data:    'Poppins', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --out:  cubic-bezier(.16, 1, .3, 1);
  --rhythm: clamp(80px, 11vh, 140px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* the single permitted outline on the page */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* on dark surfaces the blue ring loses contrast, so it switches to mist */
.band-dark :focus-visible,
.nav :focus-visible { outline-color: var(--mist); }

.skip {
  position: absolute;
  left: 50%; top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--blue);
  color: #fff;
  font-family: var(--data);
  font-size: .75rem;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 999px;
  transition: top 200ms var(--ease);
}
.skip:focus { top: 16px; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 1024px) { .wrap { padding-inline: 48px; } }

section { scroll-margin-top: 96px; }

.band { padding-block: var(--rhythm); }

.band-dark {
  position: relative;
  background: var(--ink);
  color: var(--mist);
  isolation: isolate;
}

.band-alt { background: var(--canvas-2); }

/* --------------------------------------------------------------------------
   Typography roles
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: color-mix(in srgb, currentColor 62%, transparent);
}

.label {
  font-family: var(--data);
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .1em;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.lede, .prose { max-width: 56ch; line-height: 1.6; }

.sub {
  max-width: 56ch;
  margin-top: 16px;
  color: var(--slate);
}

.band-dark .sub,
.band-dark .prose { color: color-mix(in srgb, var(--mist) 84%, transparent); }

.sec-head { margin-bottom: clamp(32px, 4.5vh, 56px); }
.sec-head h2 { margin-top: 12px; }

/* --------------------------------------------------------------------------
   Cards. No borders, ever. Shadow and contrast only.
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 1px 2px rgba(0, 18, 51, .05), 0 14px 34px rgba(0, 18, 51, .08);
  transition: box-shadow 300ms ease, transform 300ms ease;
}

.card:hover {
  box-shadow: 0 2px 4px rgba(0, 18, 51, .07), 0 22px 52px rgba(0, 18, 51, .14);
  transform: translateY(-3px);
}

.band-dark .card { background: rgba(255, 255, 255, .06); box-shadow: none; }
.band-dark .card:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 20px; bottom: auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: calc(100vw - 16px);
  padding: 8px;
  border-radius: 999px;
  background: rgba(0, 18, 51, .78);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: top 520ms var(--ease), bottom 520ms var(--ease);
}

.nav.is-docked-bottom { top: auto; bottom: 24px; }

.nav-list { position: relative; display: flex; align-items: center; gap: 2px; }

.nav-pill {
  position: absolute;
  left: 0; top: 0;
  width: 100px; height: 100%;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  transform-origin: left center;
  transition: transform 380ms var(--ease), opacity 240ms ease;
  pointer-events: none;
}

.nav a {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--mist) 78%, transparent);
  transition: color 240ms ease;
}

.nav a:hover { color: #fff; }
.nav a[aria-current='true'] { color: #fff; }

/* separated by space and by the accent dot, never by a rule */
.nav-live { display: flex; align-items: center; margin-left: 18px; }
.nav-live a { display: flex; align-items: center; gap: 8px; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(4, 102, 200, .8); }
  70%  { box-shadow: 0 0 0 7px rgba(4, 102, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(4, 102, 200, 0); }
}

.lbl-sm { display: none; }
@media (max-width: 640px) {
  .nav { padding: 6px; gap: 0; }
  .nav a { font-size: .5625rem; padding: 9px 8px; letter-spacing: .02em; }
  .lbl-lg { display: none; }
  .lbl-sm { display: inline; }
  .nav-live { margin-left: 10px; margin-right: 4px; }
  .nav.is-docked-bottom { bottom: 16px; }
}
@media (max-width: 400px) {
  .nav { padding: 5px; }
  .nav a { font-size: .5rem; padding: 9px 6px; letter-spacing: 0; }
  .nav-live { margin-left: 7px; margin-right: 3px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: .9375rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform 240ms ease, background-color 240ms ease,
              color 240ms ease, box-shadow 240ms ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 30px rgba(4, 102, 200, .38);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--blue) 82%, #ffffff);
  box-shadow: 0 12px 40px rgba(4, 102, 200, .52);
}

.btn-ghost { background: transparent; color: var(--mist); padding-inline: 6px; }
.btn-ghost:hover { color: #fff; }

/* underline that wipes in from the left */
.wipe { position: relative; }
.wipe::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .1em;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms ease;
}
.wipe:hover::after, .wipe:focus-visible::after { transform: scaleX(1); }
.band-dark .wipe::after { background: var(--mist); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(130px, 18vh, 190px);
  padding-bottom: 36px;
  overflow: hidden;
}

#nav-sentinel {
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 88vh;
  pointer-events: none;
}

.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .field { opacity: .55; }
#reach .field { opacity: .45; }

/* slow drifting colour wash behind the particle field */
.aurora {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 32%, rgba(4, 102, 200, .55) 0%, rgba(4, 102, 200, 0) 70%),
    radial-gradient(34% 38% at 78% 62%, rgba(151, 157, 172, .18) 0%, rgba(151, 157, 172, 0) 72%),
    radial-gradient(46% 46% at 62% 18%, rgba(2, 62, 125, .55) 0%, rgba(2, 62, 125, 0) 72%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.03); }
}

/* keeps the type legible over the wash */
.field-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(76% 60% at 28% 46%, var(--ink) 0%, rgba(0, 18, 51, .86) 44%, rgba(0, 18, 51, 0) 78%);
}
#reach .field-veil {
  background:
    radial-gradient(72% 58% at 26% 40%, var(--ink) 0%, rgba(0, 18, 51, .84) 46%, rgba(0, 18, 51, .2) 80%);
}

.hero-inner, .hero-strip { position: relative; z-index: 2; }

.hero .eyebrow { color: var(--steel); }

.hero h1 { margin-top: 20px; color: #fff; max-width: 15ch; }
/* solid rather than a gradient: each word is its own element, so a gradient
   restarts on every word and reads as inconsistent */
.hero h1 .grad { color: color-mix(in srgb, var(--blue) 58%, #ffffff); }

.hero .lede { margin-top: 22px; color: color-mix(in srgb, var(--mist) 88%, transparent); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 34px;
}

/* fills the space under the buttons with movement instead of more words */
.scroll-cue {
  position: relative;
  z-index: 2;
  margin-top: 54px;
  width: 1px;
  height: 64px;
  background: rgba(203, 216, 232, .18);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 102, 200, 0) 0%, var(--steel) 100%);
  transform: translateY(-100%);
  animation: cue 2.4s ease-in-out infinite;
}

@keyframes cue {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

.hero-strip { margin-top: auto; padding-top: 48px; }

.strip {
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mist) 60%, transparent);
}
.strip b { color: #fff; font-weight: 600; }

/* ---- hero entrance ---- */

/* each headline word rises out of its own mask */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.w > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(112%);
  animation: rise 1s var(--out) forwards;
  animation-delay: calc(280ms + var(--i, 0) * 55ms);
}

@keyframes rise { to { transform: translateY(0); } }

.hero-el {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 900ms var(--out) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes hero-in { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Stat cards
   -------------------------------------------------------------------------- */

.stat .label { color: var(--blue); }

.stat-num {
  display: block;
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.stat-sm .stat-num { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

.stat-line {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--slate);
  max-width: 30ch;
}

/* --------------------------------------------------------------------------
   Reach band
   -------------------------------------------------------------------------- */

.reach-stat {
  font-family: var(--display);
  font-size: clamp(3rem, 6.6vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.reach-caption {
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--mist) 54%, transparent);
}

/* split bar: two fills, a 2px surface gap, both directly labelled */
.split-bar { display: flex; gap: 2px; height: 8px; margin-block: 16px 14px; }
.split-seg {
  flex: 0 1 var(--w);
  height: 100%;
  border-radius: 999px;
  transition: flex-basis 760ms ease-out;
}

/* Smart blue against cool steel, separation ΔE 23.1, and both clear 3:1
   on the navy band and on a white card. */
.seg-major { background: var(--blue); }
.seg-minor { background: var(--steel); }
.seg-alt   { background: var(--steel); }
.split-narrow { max-width: 420px; }

.split-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.split-key span { display: flex; align-items: center; gap: 8px; }

.key-swatch { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.key-major { background: var(--blue); }
.key-minor { background: var(--steel); }
.key-alt   { background: var(--steel); }

/* trend chart, drawn at real pixel size so labels never scale */
.trend-wrap { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding-bottom: 6px; }
.trend { width: 640px; height: 190px; flex: none; overflow: visible; }

.trend-line {
  fill: none;
  stroke: var(--steel);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 560);
  stroke-dashoffset: 0;
}
.trend-dot { fill: var(--blue); }
.trend-halo { fill: var(--ink); }
.trend-val {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
}
.trend-base { stroke: rgba(255, 255, 255, .14); stroke-width: 1; }

/* --------------------------------------------------------------------------
   Audience bars
   -------------------------------------------------------------------------- */

.bars { display: grid; gap: 15px; margin-top: 20px; }

.bar-row {
  display: grid;
  grid-template-columns: minmax(76px, 41%) 1fr auto;
  align-items: center;
  gap: 10px;
}

.bar-name { font-size: .8125rem; font-weight: 500; line-height: 1.3; }

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mist) 62%, transparent);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: var(--blue);
  transition: width 760ms ease-out;
}

.bar-val {
  font-family: var(--data);
  font-size: .6875rem;
  font-weight: 600;
  color: var(--slate);
  min-width: 4ch;
  text-align: right;
}

.card-line {
  margin-top: 20px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Reels
   -------------------------------------------------------------------------- */

.reel-art {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: linear-gradient(158deg, var(--steel) 0%, var(--blue) 52%, var(--ink-2) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.reel-tag {
  margin: 0;
  padding-inline: 14px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  color: #fff;
}

.reel-title {
  margin-top: 16px;
  font-family: var(--body);
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--slate);
}

.card-reel {
  display: flex;
  flex-direction: column;
  max-width: 340px;
  padding: 14px 14px 20px;
}

/* --------------------------------------------------------------------------
   Collab formats
   -------------------------------------------------------------------------- */

.fmt .label { color: var(--blue); }
.fmt p {
  margin-top: 12px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-email {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: #fff;
  word-break: break-word;
}

.contact-row { display: flex; flex-wrap: wrap; gap: 10px 40px; margin-top: 28px; }
.contact-item .label { color: color-mix(in srgb, var(--mist) 58%, transparent); }
.contact-item a {
  display: inline-block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mist);
}
.contact-item a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

footer {
  padding-block: 36px 116px;
  font-family: var(--data);
  font-size: .625rem;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
footer p + p { margin-top: 12px; }
footer a { color: var(--ink); }

/* --------------------------------------------------------------------------
   Entry animation. Initial states only apply when JavaScript is running,
   so the page renders in its final state with JS disabled.
   -------------------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .bar-fill { width: 0; }
.js .is-in .bar-fill { width: var(--w); transition-delay: var(--delay, 0ms); }

.js .split-seg { flex-basis: 0; }
.js .is-in .split-seg { flex-basis: var(--w); }

.js .trend-line { stroke-dashoffset: var(--len, 560); }
.js .is-in .trend-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 900ms ease-out;
}

/* the field caption is only true when the field actually rendered */
[data-field-caption] { display: none; }

/* --------------------------------------------------------------------------
   Reduced motion. Everything lands on its final state immediately.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
  }

  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .bar-fill { width: var(--w) !important; }
  .js .split-seg { flex-basis: var(--w) !important; }
  .js .trend-line { stroke-dashoffset: 0 !important; }
  .w > i { transform: none !important; }
  .hero-el { opacity: 1 !important; transform: none !important; }
  .aurora { animation: none !important; }
  .scroll-cue span { animation: none !important; }
  .dot { animation: none !important; }
  .card:hover { transform: none; }
}
