/* 196 Global, galaxy flight mockup. Colors and feel come from the 196 Global Lab app. */
:root {
  --bg: #000;
  --ink: #dfe6f0;
  --muted: #6d7d92;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --line: rgba(90, 150, 210, .14);
  --accent: #39d0ff;
  --accent-2: #2fe0a0;
  --accent-ink: #03121c;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); overscroll-behavior: none; }
/* Touch scrolling is handled entirely by main.js, so the browser's own panning and momentum can't fight it.
   Pinch-zoom stays available. Still mode (reduced motion) keeps normal native scrolling. */
html:not(.static), html:not(.static) body { touch-action: pinch-zoom; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.5 "Inter", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 200; letter-spacing: -.035em; line-height: 1.02; }
/* Emphasis is light, not colour: the brand accent is saved for "benders." */
em { font-style: normal; font-weight: 300; color: #fff; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

/* ---- Space, vignette and film grain sit behind and over everything ---- */
#nebula, #space, .vignette, .grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#nebula { z-index: 0; background: #000; }
#space { z-index: 0; }
.vignette { z-index: 1; background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .4) 78%, rgba(0, 0, 0, .8) 100%); }
.grain { z-index: 5; inset: -10%; width: 120%; height: 120%; opacity: .07; mix-blend-mode: overlay; animation: grain .5s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-1%, .6%); } 50% { transform: translate(.7%, -.9%); } 75% { transform: translate(-.4%, 1%); } 100% { transform: translate(0, 0); } }
main { position: relative; z-index: 2; }


/* ---- Scenes: each is one screen tall and gets pinned while its timeline plays ---- */
.scene { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; text-align: center; }
.scene > * { grid-area: 1 / 1; }
/* Each scene starts half a screen early, over the end of the one before (whose words have already left), so the
   empty starfield between chapters is half a screen instead of a whole one. */
html:not(.static) .overlap { margin-top: -50vh; margin-top: -50svh; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; will-change: transform, opacity; }

/* 1. Ignition */
.hero { display: grid; justify-items: center; gap: 2.2vh; padding: 0 24px; }
.mark-wrap { position: relative; width: min(clamp(150px, 24vw, 320px), 32vh); aspect-ratio: 1; margin-bottom: 1vh; will-change: transform, opacity, filter; }
.pitch { font: 300 clamp(16px, 1.9vw, 24px) / 1.35 "Inter", system-ui, sans-serif; color: #fff; letter-spacing: .005em; }
.pitch-sub { font: 200 clamp(10px, .9vw, 12px) var(--display); letter-spacing: .32em; text-transform: uppercase; color: #9aa9bd; }
/* "Start a project": in the opening and in the corner. Scoped so the host theme's link colours can't touch it. */
a.cta { display: inline-block; margin-top: 1.2vh; padding: 14px 26px; border: 1px solid rgba(200, 215, 235, .32); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--ink); font: 300 11px var(--display); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, color .3s, border-color .3s, opacity .4s, visibility .4s; }
a.cta:hover, a.cta:focus-visible { background: #e8edf3; border-color: #e8edf3; color: #05070b; }
a.cta-fixed { position: fixed; top: 18px; right: 18px; z-index: 6; margin: 0; padding: 11px 20px; font-size: 10px; opacity: 0; visibility: hidden; }
a.cta-fixed.show, .static a.cta-fixed { opacity: 1; visibility: visible; }
.mark { position: absolute; inset: 0; }
.mark img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(200, 220, 255, .18)); }
.mark-halo { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(120, 150, 220, .06) 0%, transparent 55%); }
.ignite-meta { align-self: start; margin-top: 7vh; font: 200 11px var(--display); letter-spacing: .45em; color: var(--muted); white-space: nowrap; }
.cue { align-self: end; margin-bottom: 4vh; font: 200 9.5px var(--display); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.cue span { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* 2. The benders */
.benders h2 { font-size: clamp(40px, 8.4vw, 150px); padding: 0 4vw; }
.benders h2 .bend { background: none; color: inherit; } /* letters are tinted one by one in main.js so they can bend */
.benders .sub { margin-top: 4vh; padding: 0 6vw; font: 300 clamp(16px, 2vw, 28px) / 1.35 "Inter", system-ui, sans-serif; color: var(--ink); }

/* 3. Lines from deep space */
.lines .line { font-size: clamp(24px, 5.6vw, 100px); padding: 0 7vw; will-change: transform, opacity, filter; }
/* Three statements, three framings: centred, then hard left, then hard right. */
.lines .line:nth-child(2) { justify-self: start; text-align: left; }
.lines .line:nth-child(3) { justify-self: end; text-align: right; }

/* 4. Horizontal flight */
.horizontal { display: block; text-align: left; justify-items: start; }   /* browsers that align blocks would centre the wide track */
.track { display: flex; height: 100%; width: max-content; will-change: transform; }
.panel { position: relative; width: 100vw; height: 100%; display: grid; align-content: center; padding: 0 8vw; }
.panel h2 { position: relative; font-size: clamp(30px, 7.4vw, 132px); }

/* 5. Ten years, in stop motion */
.decade, .revenue { grid-template-rows: auto auto auto auto; align-content: center; gap: 2.5vh; }
.decade > *, .revenue > * { grid-area: auto; }
.count { font: 200 clamp(120px, 24vw, 340px) / .9 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.count b { font-weight: 200; color: var(--ink); }
.count sup { font-size: .35em; vertical-align: top; position: relative; top: .2em; margin-left: .06em; background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.decade h2, .revenue h2 { font-size: clamp(22px, 3.6vw, 54px); padding: 0 6vw; }
.count.money { font-size: clamp(72px, 15vw, 230px); }   /* "$500M+" is three characters wider than "10+" */

/* 6. Brands we've built */
.brands-title { font-size: clamp(34px, 6.4vw, 112px); padding: 0 6vw; }
.logo-fly { position: relative; width: clamp(160px, 24vw, 340px); display: grid; place-items: center; opacity: 0; will-change: transform, opacity, filter; }
.logo-fly img { width: auto; height: auto; max-width: 100%; max-height: clamp(70px, 14vh, 150px); }
.more { font-size: clamp(32px, 6vw, 104px); padding: 0 6vw; opacity: 0; }
/* What we did for each brand: labels that fly past like debris. main.js positions them every frame. */
.brands .logo-fly, .brands .more { z-index: 20; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: .9em; font: 300 clamp(10.5px, 1.1vw, 14px) / 1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); white-space: nowrap; opacity: 0; pointer-events: none; transform-origin: center; will-change: transform, opacity; }
.tag::before { content: ""; flex: none; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
/* The same facts as real text: hidden while flying (screen readers still get it), shown when the page is still. */
.services { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.static .services { position: static; width: auto; height: auto; clip-path: none; display: block; margin-top: 18px; font: 300 12px var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* 7–9. The ending: the question, black, a typed answer, then smoke and the intake */
.ready h2 { font-size: clamp(34px, 6.6vw, 116px); padding: 0 5vw; }
.typed { display: flex; align-items: center; gap: .22em; font: 200 clamp(28px, 4.4vw, 64px) / 1 var(--display); letter-spacing: .02em; color: var(--ink); }
/* The waiting dot blinks like a cursor, and holds steady while the words are being typed. */
.caret { flex: none; width: .3em; height: .3em; border-radius: 50%; background: var(--ink); animation: caret 1.1s steps(1) infinite; }
.typed.typing .caret { animation: none; }
@keyframes caret { 50% { opacity: 0; } }
.intake { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 6vw; align-items: center; padding: 16vh 8vw 18vh; }
.intake h2 { font-size: clamp(34px, 4.8vw, 80px); }
.about { margin-top: 5vh; max-width: 34em; font-size: 14.5px; line-height: 1.65; color: #9aa9bd; }
.about p + h3, .about h3 { margin: 22px 0 10px; font: 300 11px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); }
.about ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.about li { position: relative; padding-left: 14px; }
.about li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.intake-card { background: rgba(0, 0, 0, .45); border: 1px solid rgba(160, 180, 205, .12); border-radius: 6px; padding: 34px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.full { grid-column: 1 / -1; }
/* Scoped to the card so a host theme's form styles (e.g. Hello Elementor's) can't override them. */
.intake-card input, .intake-card textarea { width: 100%; min-width: 0; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(142, 164, 191, .25); border-radius: 0; background: transparent; color: var(--ink); font: 15px "Inter", sans-serif; transition: border-color .2s; }
.intake-card input:focus, .intake-card textarea:focus { outline: none; border-color: var(--accent); box-shadow: none; }
.intake-card textarea { resize: vertical; }
.intake-card input::placeholder, .intake-card textarea::placeholder { color: #5b6f88; }
.intake-card button[type="submit"] { width: 100%; margin-top: 28px; display: flex; justify-content: center; align-items: center; gap: 14px; padding: 18px 22px; border: 0; border-radius: 4px; background: #e8edf3; color: #05070b; font: 400 11px var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .3s, transform .3s; }
.intake-card button[type="submit"]:hover, .intake-card button[type="submit"]:focus { background: #fff; color: #05070b; border: 0; }
/* GO: the arrow keeps nudging right, faster on hover. */
.intake-card .go { font-size: 13px !important; font-weight: 600 !important; letter-spacing: .16em !important; }
.intake-card .go-arrow { display: inline-block; font-size: 20px; letter-spacing: 0; animation: go-nudge 1.4s cubic-bezier(.5, 0, .3, 1) infinite; }
.intake-card .go:hover .go-arrow, .intake-card .go:focus-visible .go-arrow { animation-duration: .7s; }
@keyframes go-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(9px); } }
.intake-card .go[disabled] { opacity: .6; cursor: wait; }
.intake-card .go[disabled] .go-arrow { animation-duration: .4s; }
.intake-card .opt { color: #5b6f88; }
.intake-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake-card .invalid input, .intake-card .invalid textarea { border-color: #ff9c94; }
.form-note.error { color: #ff9c94; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.form-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); }
.thank-you { font: 200 28px var(--display); letter-spacing: -.03em; padding: 30px 0; }
.thank-you small { display: block; margin-top: 12px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
/* Small footer line at the bottom of the last screen: copyright and the privacy/terms links. */
.legal { position: absolute; left: 8vw; right: 8vw; bottom: 5vh; margin: 0; font-size: 12px; color: var(--muted); }
.legal a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(109, 125, 146, .4); text-underline-offset: 3px; }
.legal a:hover, .legal a:focus-visible { color: var(--ink); }

/* ---- Phones ---- */
@media (max-width: 760px) {
  .ignite-meta { margin-bottom: 24vh; letter-spacing: .22em; font-size: 10px; }
  .panel { padding: 0 6vw; }
  .revenue h2 br { display: none; }   /* let the long line wrap on its own */
    .intake { grid-template-columns: minmax(0, 1fr); padding: 14vh 16px 16vh; gap: 44px; }
  .intake-card { padding: 24px; }
  .legal { left: 16px; right: 16px; bottom: 4vh; }
  .fields { grid-template-columns: 1fr; }
  .about ul { grid-template-columns: 1fr; }
  .logo-fly { width: 62vw; }
  .logo-fly img { max-height: 15vh; }
  a.cta-fixed { top: 12px; right: 12px; }
}

/* ---- Still mode: reduced motion, or the animation scripts failed to load. Everything reads top to bottom. ---- */
.static .scene { height: auto; min-height: 90svh; padding: 12vh 0; }
.static .lines { display: grid; gap: 14vh; }
.static .lines > *, .static .brands > * { grid-area: auto; }
.static .horizontal { display: block; }
.static .track { flex-direction: column; width: 100%; }
.static .panel { min-height: 70svh; }
.static .brands { display: grid; gap: 8vh; }
.static .logo-fly, .static .more { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .grain, .cue span, .caret, .intake-card .go-arrow { animation: none; }
}
