/* Fonts are served from this site (not Google), so visitors' IP addresses are not sent to Google.
   Inter, Space Grotesk and IBM Plex Mono: SIL Open Font License 1.1, see assets/fonts/LICENSES.txt. */
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/ibm-plex-mono-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter-var-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/inter-var-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/space-grotesk-var-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../assets/fonts/space-grotesk-var-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ByteWave Digital, v2 (localhost build)
   Palette is the original brand set: navy, cloud, emerald, marigold.
   One accent (emerald). Dark sections carry the drama; the chrome stays quiet. */

@property --glow { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --navy: #0b2a43;
  --navy-2: #123a5c;
  --navy-deep: #071c2d;
  --navy-night: #051523;
  --cloud: #f7f5f1;
  --paper: #efece6;
  --card: #fbfaf7;
  --emerald: #0e7a5c;
  --emerald-dk: #095c45;
  --mint: #5ccfa6;          /* emerald tint, used only on dark backgrounds */
  --marigold: #e8a83c;

  --ink: var(--navy);
  --ink-2: rgb(11 42 67 / .72);
  --ink-3: rgb(11 42 67 / .52);
  --line: rgb(11 42 67 / .12);
  --on-dark: var(--cloud);
  --on-dark-2: rgb(247 245 241 / .74);
  --on-dark-3: rgb(247 245 241 / .5);
  --line-dark: rgb(247 245 241 / .14);

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: min(1320px, 100% - 2 * clamp(16px, 4vw, 48px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: .2s;
  --mid: .45s;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

/* Scrollbars: thin, on the page's own cloud background, with a slate-navy thumb (about 4.7:1 against
   the track). scrollbar-color inherits, so dark surfaces only swap the two variables. */
html {
  --sb-thumb: #5d7184; --sb-track: var(--cloud);
  scrollbar-color: var(--sb-thumb) var(--sb-track); scrollbar-width: thin;
}
.drawer, .lightbox, .lb-frame { --sb-thumb: rgb(92 207 166 / .75); --sb-track: var(--navy-deep); scrollbar-color: var(--sb-thumb) var(--sb-track); }
@media (prefers-contrast: more) {
  html { --sb-thumb: var(--navy-deep); --sb-track: #fff; }
  .drawer, .lightbox, .lb-frame { --sb-thumb: #fff; --sb-track: #000; }
}
/* Older WebKit/Blink without scrollbar-color: same look via the legacy pseudo-elements. */
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--sb-track); }
  ::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 2px solid var(--sb-track); border-radius: 999px; }
  ::-webkit-scrollbar-corner { background: var(--sb-track); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--navy); color: var(--cloud); }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .process :focus-visible, .contact :focus-visible, .footer :focus-visible, .drawer :focus-visible, .lightbox :focus-visible { outline-color: var(--mint); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); background: var(--cloud); color: var(--navy); font-weight: 500; transition: top var(--fast); }
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font: 500 .9375rem/1 var(--sans);
  white-space: nowrap; cursor: pointer;
  translate: var(--tx) var(--ty);
  transition: background-color var(--fast), border-color var(--fast), color var(--fast), translate .35s var(--ease);
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:hover .i:has(use[href="#i-arrow-up-right"]) { transform: translate(2px, -2px); }
/* "Start a project" buttons: while hovered, the arrow keeps pushing out in its direction and springing back. */
@media (prefers-reduced-motion: no-preference) {
  .btn-go:is(:hover, :focus-visible) .i { transform: none; animation: arrow-go .9s cubic-bezier(.45, 0, .25, 1) infinite; }
  .btn-go:is(:hover, :focus-visible) .i:has(use[href="#i-arrow-up-right"]) { transform: none; animation-name: arrow-go-up; }
}
@keyframes arrow-go { 0%, 100% { translate: 0 0; } 50% { translate: 7px 0; } }
@keyframes arrow-go-up { 0%, 100% { translate: 0 0; } 50% { translate: 5px -5px; } }
.btn:active { scale: .98; }
.btn-sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-lg { height: 56px; padding: 0 26px; font-size: 1rem; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .22) 50%, transparent 70%);
  translate: -120% 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { translate: 120% 0; transition: translate .8s var(--ease); }
}
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-dk); }
.btn-ghost { border-color: rgb(247 245 241 / .28); color: var(--on-dark); }
.btn-ghost:hover { border-color: rgb(247 245 241 / .6); background: rgb(247 245 241 / .06); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost-dark:hover { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color var(--fast), border-color var(--fast);
}
.icon-btn:hover { background: rgb(11 42 67 / .06); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none; }
.header-bar {
  pointer-events: auto;
  width: var(--wrap); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: 64px; padding: 0 12px 0 16px;
  border: 1px solid transparent; border-radius: var(--r-lg);
  color: var(--on-dark);
  transition: background-color var(--mid), border-color var(--mid), color var(--mid), box-shadow var(--mid), translate var(--mid) var(--ease);
}
.header.is-solid .header-bar {
  background: rgb(247 245 241 / .86);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 8px 32px -12px rgb(11 42 67 / .18);
}
.header.is-hidden .header-bar { translate: 0 -120px; transition-duration: .22s; transition-timing-function: cubic-bezier(.4, 0, 1, 1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 1.0625rem/1 var(--display); letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand em { font-style: normal; opacity: .6; margin-left: .3em; }
.nav { justify-self: center; display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 14px; font-size: .9375rem; font-weight: 500; opacity: .78; transition: opacity var(--fast); }
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.menu-btn {
  display: none; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: transparent; cursor: pointer;
}
.menu-btn .i { width: 20px; height: 20px; }

/* ---------- Drawer: Expanding Ellipse Menu ----------
   The menu is a full-screen navy layer revealed by an ellipse that grows out of the menu button (its centre,
   --ox / --oy, is set from the button's position in site.js) until it covers the screen. Closing shrinks the
   ellipse back into the button. clip-path is transitioned in and out of the dialog's open state;
   allow-discrete keeps the dialog on screen while it shrinks. */
.drawer {
  --ox: 92%; --oy: 6%;
  position: fixed; inset: 0; margin: 0;
  width: calc(100vw / var(--vz, 1)); max-width: none; height: calc(100dvh / var(--vz, 1)); max-height: none;
  padding: 0; border: 0;
  background: radial-gradient(120% 90% at var(--ox) var(--oy), #0b2f4a 0%, var(--navy-deep) 45%, var(--navy-night) 100%);
  color: var(--on-dark);
  clip-path: ellipse(0% 0% at var(--ox) var(--oy));
  transition: clip-path .75s cubic-bezier(.76, 0, .24, 1), display .75s allow-discrete, overlay .75s allow-discrete;
}
.drawer[open] { clip-path: ellipse(150% 150% at var(--ox) var(--oy)); }
@starting-style { .drawer[open] { clip-path: ellipse(0% 0% at var(--ox) var(--oy)); } }
.drawer::backdrop { background: transparent; }
/* The ByteWave badge on the menu's right edge, centred on the edge so exactly half of it is on screen, its blue
   ring turning like the hero logo. Its own clipped layer keeps the hidden half from making the menu scroll. */
.drawer-mark { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.drawer-mark .spin-logo {
  position: absolute; top: 50%; left: 100%; translate: -50% -50%;
  width: min(72vh / var(--vz, 1), 640px, 80vw); aspect-ratio: 1;
  filter: drop-shadow(-8px 14px 24px rgb(0 0 0 / .45));
}
.drawer-sheet { position: relative; z-index: 1; display: grid; grid-template-rows: auto 1fr auto; width: var(--wrap); max-width: 720px; height: 100%; margin-inline: auto; padding: 24px 0; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; color: var(--on-dark-3); font-size: .8125rem; }
.drawer .icon-btn { border-color: var(--line-dark); color: var(--on-dark); }
.drawer .icon-btn:hover { background: rgb(247 245 241 / .08); }
.drawer-nav { display: grid; align-content: center; gap: 4px; }
.drawer-nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font: 500 clamp(1.75rem, 6vw, 2.25rem)/1.1 var(--display); letter-spacing: -.02em;
  transition: color var(--fast);
}
.drawer-nav a:hover, .drawer-nav a:focus-visible { color: var(--mint); }
/* Roll stagger (site.js splits each link into letters): every letter is a one-line window holding the letter
   twice, stacked. On hover the stack slides up one line, letter by letter from the left, so the word rolls over
   into a fresh copy of itself. */
.drawer-nav .roll { display: inline-flex; overflow: hidden; line-height: 1.1; padding-bottom: .12em; margin-bottom: -.12em; }   /* room for the tail of g */
.drawer-nav .roll-ch { display: inline-block; position: relative; white-space: pre; }
/* The copy waits one line plus the descender room below the letter, so not even its top edge peeks out. */
.drawer-nav .roll-ch::after { content: attr(data-c); position: absolute; left: 0; top: calc(100% + .12em); }
@media (prefers-reduced-motion: no-preference) {
  .drawer-nav .roll-ch { transition: translate .5s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i, 0) * 28ms); }
  .drawer-nav a:is(:hover, :focus-visible) .roll-ch { translate: 0 calc(-100% - .12em); }
}
.drawer-foot { display: grid; gap: 12px; font-size: .875rem; color: var(--on-dark-2); }
.drawer-foot a { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .drawer[open] .drawer-nav a { animation: rise .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms + 260ms); }
}
@media (prefers-reduced-motion: reduce) { .drawer { transition-duration: .01s; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh / var(--vz, 1));
  display: grid; align-items: center;
  padding-block: 104px 48px;
  background: var(--navy-deep);
  color: var(--on-dark);
  overflow: clip;
}
.hero-grid { display: flex; justify-content: center; text-align: center; }
.hero-copy { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 900px; min-width: 0; }
.hero-copy .hero-visual { width: clamp(118px, 11vw, 160px); margin-bottom: clamp(22px, 3vh, 34px); }
/* Top-down desk photo behind the whole hero. A dark centre and a navy bottom edge keep the text readable
   and blend the photo into the next section. */
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* Chromatic Screen-Paint Distortion (js/flowmap.js), on every [data-flow] section: a WebGL2 copy of the
   section's background scene (the hero photo, or a navy star field) bent by a velocity field the pointer stirs
   up, with restrained colour fringing. It only shows once WebGL is running (.has-flow); otherwise the section
   looks as it always did. Decorative: hidden from assistive tech, no clicks. */
.flow-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity .6s; }
.has-flow > .flow-fx { opacity: 1; }
.hero .flow-fx { z-index: -2; }                       /* right on top of the photo, under the hero's shading */
.start .flow-fx { z-index: -3; }                      /* replaces the page's own star canvas */
.start.has-flow > .start-stars { visibility: hidden; }
.legal-top { position: relative; isolation: isolate; overflow: clip; }
.legal-top .flow-fx { z-index: -1; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 62% at 50% 50%, rgb(7 28 45 / .62), rgb(7 28 45 / .2) 70%, transparent),
              linear-gradient(180deg, rgb(7 28 45 / .55) 0%, transparent 18%, transparent 78%, var(--navy-deep) 100%);
}
.hero-title { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.hero-title .line { display: block; overflow: clip; padding-bottom: .08em; }
.hero-title .line-in { display: inline-block; }
.rotator { position: relative; display: inline-block; color: var(--mint); }
.rotator-word { display: inline-block; white-space: nowrap; }
/* Glitch + text decoding: the new word decodes out of random characters, left to right, while two tinted
   copies (red and cyan) tear through jumping slices. The word's box eases from the old width to the new one,
   so the centred line slides instead of jumping when a long word meets a short one. */
.rotator-word { position: relative; white-space: nowrap; }
.rotator-word.is-decoding { transition: width .75s cubic-bezier(.45, 0, .2, 1); }
.rotator-word .dec { opacity: .55; }
.rotator-word::before, .rotator-word::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; pointer-events: none;
}
.rotator-word.is-glitch { animation: glitch-main .8s steps(1) both; }
.rotator-word.is-glitch::before { opacity: 1; color: #ff4f6d; mix-blend-mode: screen; animation: glitch-a .8s steps(1) both; }
.rotator-word.is-glitch::after { opacity: 1; color: #4fd8ff; mix-blend-mode: screen; animation: glitch-b .8s steps(1) both; }
@keyframes glitch-main {
  0% { translate: 0 0; } 8% { translate: -3px 1px; skew: -8deg; } 16% { translate: 4px -1px; skew: 6deg; color: transparent; }
  32% { translate: -2px 0; skew: 0deg; color: transparent; } 40% { translate: 0 0; color: var(--mint); } 56% { translate: 2px 0; }
  64% { translate: 0 0; } 100% { translate: 0 0; skew: 0deg; }
}
@keyframes glitch-a {
  0% { clip-path: inset(10% 0 70% 0); translate: -10px 0; } 12% { clip-path: inset(55% 0 20% 0); translate: 8px 0; }
  24% { clip-path: inset(30% 0 45% 0); translate: -6px 0; } 36% { clip-path: inset(75% 0 5% 0); translate: 12px 0; }
  48% { clip-path: inset(5% 0 80% 0); translate: -4px 0; } 60% { clip-path: inset(40% 0 40% 0); translate: 5px 0; }
  76% { clip-path: inset(0 0 0 0); translate: -2px 0; opacity: .6; } 100% { clip-path: inset(0 0 0 0); translate: 0 0; opacity: 0; }
}
@keyframes glitch-b {
  0% { clip-path: inset(60% 0 15% 0); translate: 10px 0; } 12% { clip-path: inset(15% 0 65% 0); translate: -8px 0; }
  24% { clip-path: inset(70% 0 10% 0); translate: 6px 0; } 36% { clip-path: inset(20% 0 55% 0); translate: -12px 0; }
  48% { clip-path: inset(45% 0 30% 0); translate: 4px 0; } 60% { clip-path: inset(85% 0 0 0); translate: -5px 0; }
  76% { clip-path: inset(0 0 0 0); translate: 2px 0; opacity: .6; } 100% { clip-path: inset(0 0 0 0); translate: 0 0; opacity: 0; }
}
.hero-lead { max-width: 46ch; margin-top: 24px; font-size: clamp(1rem, 1.3vw, 1.125rem); color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
/* Icon marquee under the hero buttons: small marks of our own products, scrolling left forever. The track holds two identical sets and slides by exactly one set, so the loop has no seam. */
.hero-marquee {
  width: min(520px, 100%); margin-top: clamp(32px, 4vh, 44px); overflow: hidden;
  contain: inline-size;   /* the long track must not widen the hero */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; align-items: center; gap: 110px; padding-right: 110px; }
.mq-logo { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; font: 500 .875rem/1 var(--display); letter-spacing: -.01em; color: rgb(247 245 241 / .6); }
/* Plain CSS loop as a fallback; when GSAP is available site.js takes over (is-gsap) and steers it by scroll. */
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 26s linear infinite; }
  .marquee-track.is-gsap { animation: none; }
}
@keyframes marquee { to { translate: -50% 0; } }


/* Tap-to-pause: the whole hero is the control; this button is the keyboard route. */
.motion-key { position: absolute; left: 16px; top: 96px; z-index: 5; }
.sr-only-focusable:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only-focusable:focus { padding: 10px 14px; border: 0; border-radius: var(--r-sm); background: var(--cloud); color: var(--navy); font-weight: 500; }
.motion-toast {
  position: absolute; left: 50%; bottom: 28px; z-index: 5;
  padding: 10px 16px; border-radius: 999px;
  background: rgb(247 245 241 / .1); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8125rem; font-weight: 500; color: var(--on-dark);
  translate: -50% 12px; opacity: 0; pointer-events: none;
  transition: opacity .35s, translate .45s var(--ease);
}
.motion-toast.is-on { opacity: 1; translate: -50% 0; }

/* Global pause: every looping CSS animation on the page stops. */
[data-motion="paused"] *,
[data-motion="paused"] *::before,
[data-motion="paused"] *::after { animation-play-state: paused !important; }

/* Hero logo: a flat badge with a soft shadow. Hidden while the loader is up, because the loader's logo flies into its place. */
.hero-logo { display: grid; width: 100%; aspect-ratio: 1; filter: drop-shadow(6px 12px 14px rgb(0 0 0 / .45)); }

/* Spinning badge: the logo image is stacked twice. The outer copy shows only the ring (blue bands and the
   "ByteWave Digital / Ideas into digital reality" text) and turns slowly; the inner copy shows only the white
   centre disc with "BW Digital", which stays still. The badge centre sits at 49.9% / 48.4% of the image and
   the cut runs through the thin white gap between the centre disc and the light blue band (27.3% of the width). */
.spin-logo { display: inline-grid; flex: none; }
.spin-logo > img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; }
.spin-ring {
  transform-origin: 49.92% 48.36%;
  -webkit-mask-image: radial-gradient(27.3% 27.3% at 49.92% 48.36%, transparent 99%, #000 100%);
  mask-image: radial-gradient(27.3% 27.3% at 49.92% 48.36%, transparent 99%, #000 100%);
}
.spin-core {
  -webkit-mask-image: radial-gradient(27.3% 27.3% at 49.92% 48.36%, #000 99%, transparent 100%);
  mask-image: radial-gradient(27.3% 27.3% at 49.92% 48.36%, #000 99%, transparent 100%);
}
.brand .spin-logo { width: 36px; height: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .is-ready .spin-ring { animation: badge-spin 18s linear infinite; }
}
@keyframes badge-spin { to { rotate: 360deg; } }
.is-loading .hero-logo { visibility: hidden; }

/* ---------- Page loader: big logo on black, then the logo flies to the hero and the black fades away ---------- */
.loader { display: none; }
.js .loader { display: block; position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.js.is-loading { overflow: hidden; }
.js.is-loading .loader { pointer-events: auto; }
.loader-bg { position: absolute; inset: 0; background: #000; }
.loader-logo {
  position: absolute; left: 50%; top: 50%; width: min(58vmin, 420px); height: auto;
  translate: -50% -50%; transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .is-loading .loader-logo { animation: loader-in .7s cubic-bezier(.2, .8, .3, 1) both, loader-breathe 1.8s .7s ease-in-out infinite; }
}
@keyframes loader-in { from { opacity: 0; scale: .9; } }
@keyframes loader-breathe { 50% { scale: 1.035; } }

/* ---------- Deck: mission-control view of everything we build (normal scroll, nothing pinned) ---------- */
.deck {
  position: relative; isolation: isolate; overflow: clip;
  padding-block: clamp(72px, 8vw, 120px);
  background: radial-gradient(120% 80% at 50% 40%, #0a2740 0%, var(--navy-deep) 45%, var(--navy-night) 100%);
  color: var(--on-dark);
}
.deck-stars { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }

/* Card stack into About: the deck sticks once its bottom edge reaches the bottom of the screen (--deck-top, set
   in site.js from its height) and holds there. A gap of HOLD scrolling follows, with the deck still locked, then
   About slides up over it like the next card in a stack, with a shadow along its top edge. The deck itself
   stays exactly as it is underneath. */
.stack { position: relative; background: var(--navy-night); }
@media (prefers-reduced-motion: no-preference) {
  .js .stack > .deck { position: sticky; top: var(--deck-top, 0px); }
  .js .stack > .about {
    z-index: 1; margin-top: calc(45vh / var(--vz, 1));   /* the hold: the deck stays locked for this much scrolling */
    background: var(--cloud);
    box-shadow: 0 -28px 70px -24px rgb(0 0 0 / .6);
  }
}

.deck-head { text-align: center; display: grid; justify-items: center; margin-bottom: clamp(28px, 3vw, 40px); }
.deck-head .label { margin-bottom: 16px; }

.deck-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 980px; margin: 0 auto clamp(32px, 4vw, 56px); }
.deck-tab {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 8px 18px;
  border: 0; background: none; cursor: pointer;
  font: 500 clamp(1.125rem, 2.6vw, 2.125rem)/1 var(--display); letter-spacing: -.02em;
  color: var(--on-dark-3);
  transition: color .4s;
}
.deck-tab .mono { font-size: .75rem; letter-spacing: .06em; color: inherit; }
.deck-tab::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--mint); box-shadow: 0 0 16px rgb(92 207 166 / .8);
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.deck-tab:hover { color: var(--on-dark-2); }
.deck-tab.is-active { color: var(--on-dark); }
.deck-tab.is-active .mono { color: var(--mint); }
.deck-tab.is-active::after { transform: scaleX(1); }

.deck-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.hud { display: flex; flex-direction: column; }
.hud .hud-visual { margin-top: auto; }
.hud .hud-chips { margin-bottom: 18px; }
.deck-head .label::before, .deck-head .label::after { display: none; }

/* HUD panels */
.js .deck .hud.reveal { transition: border-color .5s, box-shadow .5s, background-color .5s, opacity .8s var(--ease), translate .9s var(--ease); }
.hud {
  position: relative; padding: 24px;
  border: 1px solid rgb(247 245 241 / .16); border-radius: 18px;
  background: rgb(7 28 45 / .82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .5s, box-shadow .5s, background-color .5s, opacity .8s var(--ease), translate .9s var(--ease);
}
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; border: 2px solid var(--mint); opacity: .55; transition: opacity .5s; }
.hud::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 18px; }
.hud::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 18px; }
.hud.is-active { border-color: rgb(92 207 166 / .6); background: rgb(9 36 56 / .9); box-shadow: 0 0 0 1px rgb(92 207 166 / .15), 0 24px 70px -30px rgb(92 207 166 / .55); }
.hud.is-active::before, .hud.is-active::after { opacity: 1; }
.hud-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.hud-head .mono { font-size: .75rem; letter-spacing: .06em; color: var(--mint); }
.hud-head h3 { font-size: 1.25rem; letter-spacing: -.015em; }
.hud-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hud-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px;
  border: 1px solid rgb(247 245 241 / .16); border-radius: 999px; background: rgb(247 245 241 / .06);
  font: 500 .9375rem/1 var(--display); color: var(--on-dark);
  transition: border-color .3s, background-color .3s, translate .3s var(--ease);
}
.hud-chips .i { width: 16px; height: 16px; color: var(--mint); }
.hud-chips li:hover { border-color: rgb(92 207 166 / .7); background: rgb(92 207 166 / .12); translate: 0 -2px; }
.hud-visual { margin-top: 18px; border-radius: 12px; background: rgb(5 21 35 / .7); border: 1px solid var(--line-dark); overflow: hidden; }
.hv { display: block; width: 100%; height: auto; }
.hv-dash { fill: none; stroke: rgb(247 245 241 / .28); stroke-width: 1.2; stroke-dasharray: 4 5; }
.hv-fill { fill: rgb(247 245 241 / .3); }
.hv-accent { fill: var(--mint); }
.hv-line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hv-caret { fill: var(--mint); }
.hv-grid { fill: none; stroke: rgb(247 245 241 / .12); }
.hv-trend { fill: none; stroke: var(--cloud); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; }
.hv-type, .hv-bar { transform-box: fill-box; }
.hv-type { transform-origin: left center; }
.hv-bar { transform-origin: center bottom; }
@media (prefers-reduced-motion: no-preference) {
  .js .hud .hud-chips li { opacity: 0; translate: 0 10px; }
  .js .hud.is-in .hud-chips li { opacity: 1; translate: 0 0; transition: opacity .5s var(--ease), translate .6s var(--ease), border-color .3s, background-color .3s; transition-delay: calc(var(--n, 0) * 60ms + 200ms), calc(var(--n, 0) * 60ms + 200ms), 0s, 0s; }
  .hud .hv * { animation-play-state: paused; }
  .hud.is-in .hv * { animation-play-state: running; }
  .hv-plan .hv-move { animation: hv-move 4.5s var(--ease) infinite; }
  .hv-code .hv-type { animation: type 5s steps(8, end) infinite; }
  .hv-code .t2 { animation-delay: .5s; } .hv-code .t3 { animation-delay: 1s; } .hv-code .t4 { animation-delay: 1.5s; }
  .hv-code .hv-caret { animation: caret 1s steps(1) infinite; }
  .hv-chart .hv-bar { animation: bars 3s var(--ease) infinite alternate; }
  .hv-chart .b2 { animation-delay: .2s; } .hv-chart .b3 { animation-delay: .4s; } .hv-chart .b4 { animation-delay: .6s; } .hv-chart .b5 { animation-delay: .8s; }
  .hv-chart .hv-trend { animation: hv-draw 3s var(--ease) infinite alternate; }
}

@media (max-width: 1040px) {
  .deck-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .deck-tab { padding-inline: 2px; font-size: 1rem; }
  .deck-tab .mono { font-size: .6875rem; }
  .hud { padding: 20px; }
}
@keyframes link-x { from { background-position: -60% 0, 0 50%; } to { background-position: 160% 0, 0 50%; } }
@keyframes link-y { from { background-position: 0 160%, 50% 0; } to { background-position: 0 -60%, 50% 0; } }
@keyframes hv-move { 0%, 12% { transform: translate(0, 0); } 45%, 70% { transform: translate(-92px, 28px); } 95%, 100% { transform: translate(0, 0); } }
@keyframes hv-draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }

/* ---------- Sections ---------- */
/* Scroll-Drawn Curved Lines (SVG stroke + GSAP ScrollTrigger, site.js). Every section from About to Insights
   (not Contact or the footer) has its own drawing: a mint stroke across the section, with a large loop and a
   couple of long swells, and a marigold line running parallel just below it. They write themselves (stroke-dashoffset 1 -> 0) with the drawn tip held on a line
   70% down the screen, so a section's drawing finishes as its bottom passes that line, before it leaves the
   screen. Each drawing stays inside its section
   (the section clips it), sits on the background and under the content, is hidden from assistive tech and
   can't be clicked or focused. With reduced motion, or without GSAP, the curves are simply shown drawn. */
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; transform: translateZ(0); }   /* own layer: redrawing the stroke doesn't repaint the section */
.flow-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.flow-lines .fl-1 { stroke: var(--mint); stroke-width: 4; opacity: .6; }
.flow-lines .fl-2 { stroke: var(--marigold); stroke-width: 2.5; opacity: .55; }
.section { position: relative; padding-block: clamp(72px, 8vw, 120px); overflow: clip; }
.section > .wrap { position: relative; z-index: 1; }
.section-head { margin-bottom: clamp(36px, 4vw, 56px); max-width: 760px; }
.label {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px;
  font: 500 clamp(1.0625rem, 1.4vw, 1.25rem)/1.2 var(--display); letter-spacing: -.01em; color: var(--ink);
}
.label-dark, .process .label { color: var(--on-dark); }
h2 { font-size: clamp(2.25rem, 4.8vw, 4.25rem); line-height: 1.02; letter-spacing: -.035em; }
.section-intro { color: var(--ink-2); max-width: 52ch; margin-top: 24px; font-size: 1.0625rem; }

.split .w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .js .split .w > span { translate: 0 110%; transition: translate .9s var(--ease); transition-delay: calc(var(--i) * 45ms); }
  .js .split.is-in .w > span { translate: 0 0; }
  .js .reveal { opacity: 0; translate: 0 32px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--stagger, 0) * 80ms); }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
}

/* ---------- Critters: characters that slide in from the right edge ---------- */
.critter { position: absolute; right: 0; z-index: 0; pointer-events: none; }
.critter svg { display: block; width: 100%; height: auto; overflow: visible; }
.critter-dragon { top: clamp(60px, 7vw, 110px); width: min(36vw, 470px); }
.critter-bird { top: clamp(70px, 8vw, 120px); width: min(26vw, 330px); right: 4vw; }
.critter-plane { top: clamp(40px, 6vw, 90px); width: min(40vw, 540px); }
@media (prefers-reduced-motion: no-preference) {
  .js .critter { translate: 105% 0; transition: translate 1.3s var(--ease); }
  .js .critter.is-on { translate: 0 0; }
  .js .critter-bird { translate: 130% -20px; rotate: 8deg; transition: translate 1.8s var(--ease), rotate 1.8s var(--ease); }
  .js .critter-bird.is-on { translate: 0 0; rotate: 0deg; }
  .js .critter-plane { translate: 0 0; }
}


/* Story (About): a man logs his assets in a ledger, a UFO beams him up, shapeshifts into a robot,
   and the robot's watch projects ByteWave's services. Plays once per visit to the section and holds
   on the robot; leaving About drops .is-on, which resets it so it replays on return. */
.critter-story { --st: 20s; top: clamp(8px, 2vw, 40px); width: min(38vw, 520px); right: 2vw; }
.critter-story .ground { stroke: rgb(11 42 67 / .18); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.critter-story .chair, .critter-story .desk-leg { fill: none; stroke: var(--navy-2); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.critter-story .desk { fill: var(--navy); }
.critter-story .coin { fill: var(--marigold); stroke: rgb(11 42 67 / .35); stroke-width: 1; }
.critter-story .page { fill: var(--card); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.critter-story .ink-old { stroke: rgb(11 42 67 / .35); stroke-width: 1.2; }
.critter-story .ink { stroke: var(--navy); stroke-width: 1.4; stroke-linecap: round; }
.critter-story .m-body, .critter-story .m-leg { fill: var(--navy-2); }
.critter-story .m-shoe, .critter-story .m-hair { fill: var(--navy); }
.critter-story .m-face { fill: var(--navy-2); }
.critter-story .m-eye { fill: var(--cloud); }
.critter-story .m-limb { fill: none; stroke: var(--navy-2); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.critter-story .m-hand { fill: var(--navy-2); }
.critter-story .m-pen { stroke: var(--marigold); stroke-width: 2.4; stroke-linecap: round; }
.critter-story .s-beam { fill: url(#st-beam-g); }
.critter-story .b-ring { fill: none; stroke: var(--mint); stroke-width: 1.6; }
.critter-story .u-dome { fill: rgb(92 207 166 / .22); stroke: var(--mint); stroke-width: 1.5; }
.critter-story .u-body { fill: var(--navy); }
.critter-story .u-rim { fill: var(--navy-2); }
.critter-story .u-under { fill: var(--navy-deep); }
.critter-story .u-light { fill: rgb(247 245 241 / .4); }
.critter-story .flash { fill: var(--mint); filter: blur(10px); }
.critter-story .glitch rect { fill: var(--mint); }
.critter-story .glitch .g-a { fill: var(--navy); }
.critter-story .b-limb, .critter-story .b-hand, .critter-story .b-neck { fill: var(--navy-2); }
.critter-story .b-body, .critter-story .b-skull, .critter-story .b-foot { fill: var(--navy); }
.critter-story .b-panel, .critter-story .b-visor, .critter-story .b-watch { fill: var(--navy-deep); }
.critter-story .b-core, .critter-story .b-eye, .critter-story .b-ant-tip { fill: var(--mint); }
.critter-story .b-seam { stroke: rgb(92 207 166 / .35); stroke-width: 1.2; }
.critter-story .b-ant { stroke: var(--navy-2); stroke-width: 3; stroke-linecap: round; }
.critter-story .b-watch-face { fill: var(--navy-2); }
.critter-story .cone { fill: url(#st-cone-g); }
.critter-story .p-frame { fill: rgb(7 28 45 / .9); stroke: rgb(92 207 166 / .6); stroke-width: 1.2; }
.critter-story .p-dot { fill: var(--mint); }
.critter-story .p-title { font: 500 10px var(--mono); fill: var(--cloud); }
.critter-story .p-rule { stroke: rgb(92 207 166 / .3); stroke-width: 1; }
.critter-story .tile rect { fill: rgb(92 207 166 / .07); stroke: rgb(92 207 166 / .35); stroke-width: 1; }
.critter-story .tile text { font: 500 8.5px var(--mono); fill: rgb(247 245 241 / .85); text-anchor: middle; }
.critter-story .t-ic { fill: none; stroke: var(--mint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.critter-story .p-scan { fill: rgb(92 207 166 / .4); }

/* Rest state (no motion, or section off screen): the opening scene, ledger fully written. */
.critter-story :is(.s-beam, .b-ring, .ufo, .flash, .glitch, .bot, .cone, .panel) { opacity: 0; }
.critter-story :is(.man, .ufo, .b-ring, .flash, .tile) { transform-box: fill-box; transform-origin: center; }
.critter-story .ink { stroke-dasharray: 16; stroke-dashoffset: 0; }
.critter-story .m-head { transform-box: view-box; transform-origin: 192px 250px; }
.critter-story .s-beam { transform-box: view-box; transform-origin: 205px 112px; }
.critter-story .bot { transform-box: view-box; transform-origin: 205px 340px; }
.critter-story .b-head { transform-box: view-box; transform-origin: 205px 226px; }
.critter-story .b-fore { transform-box: view-box; transform-origin: 236.5px 264px; }
.critter-story .cone { transform-box: view-box; transform-origin: 251px 258px; }
.critter-story .panel { transform-box: view-box; transform-origin: 312px 172px; }

@media (prefers-reduced-motion: no-preference) {
  .critter-story.is-on :is(.story, .office, .ink, .m-head, .man, .ufo, .s-beam, .b-ring, .flash, .glitch, .bot, .b-fore, .b-head, .b-watch-face, .cone, .panel, .tile, .p-scan) {
    animation: var(--st) ease-in-out 1 both;
  }
  .critter-story.is-on .story { animation-name: st-story; }
  .critter-story.is-on .office { animation-name: st-office; }
  .critter-story.is-on .ink { animation-name: st-ink1; }
  .critter-story.is-on .i2 { animation-name: st-ink2; }
  .critter-story.is-on .i3 { animation-name: st-ink3; }
  .critter-story.is-on .m-arm { animation: st-scribble .45s ease-in-out infinite alternate; }
  .critter-story.is-on .m-head { animation-name: st-look; }
  .critter-story.is-on .man { animation-name: st-lift; }
  .critter-story.is-on .ufo { animation-name: st-ufo; }
  .critter-story.is-on .ufo-bob { animation: st-bob 2.4s ease-in-out infinite; }
  .critter-story.is-on .u-light { animation: st-blink 1s steps(1) infinite; }
  .critter-story.is-on .u-light.l2 { animation-delay: .5s; }
  .critter-story.is-on .s-beam { animation-name: st-beam; }
  .critter-story.is-on .b-ring { animation-name: st-ring; }
  .critter-story.is-on .b-ring.r2 { animation-delay: -.8s; }
  .critter-story.is-on .flash { animation-name: st-flash; }
  .critter-story.is-on .glitch { animation-name: st-glitch; animation-timing-function: steps(1); }
  .critter-story.is-on .glitch .g-a { animation: st-jitter .16s steps(1) infinite; }
  .critter-story.is-on .bot { animation-name: st-bot; }
  .critter-story.is-on .b-eye { animation: st-eye 2s ease-in-out infinite; }
  .critter-story.is-on .b-fore { animation-name: st-fore; }
  .critter-story.is-on .b-head { animation-name: st-tilt; }
  .critter-story.is-on .b-watch-face { animation-name: st-watch; }
  .critter-story.is-on .cone { animation-name: st-cone; }
  .critter-story.is-on .panel { animation-name: st-panel; }
  .critter-story.is-on .p-dot { animation: st-blink-o 1.2s steps(1) infinite; }
  .critter-story.is-on .tile { animation-name: st-tile; }
  .critter-story.is-on .t2 { animation-delay: .15s; } .critter-story.is-on .t3 { animation-delay: .3s; }
  .critter-story.is-on .t4 { animation-delay: .45s; } .critter-story.is-on .t5 { animation-delay: .6s; } .critter-story.is-on .t6 { animation-delay: .75s; }
  .critter-story.is-on .p-scan { animation-name: st-pscan; animation-timing-function: linear; }
}
/* Timeline, as % of 20s (1% = 0.2s) */
@keyframes st-story { 0% { opacity: 0; } 3%, 100% { opacity: 1; } }
@keyframes st-office { 0%, 48% { opacity: 1; } 53%, 100% { opacity: 0; } }
@keyframes st-ink1 { 0%, 4% { stroke-dashoffset: 16; } 9%, 100% { stroke-dashoffset: 0; } }
@keyframes st-ink2 { 0%, 9% { stroke-dashoffset: 16; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes st-ink3 { 0%, 14% { stroke-dashoffset: 16; } 19%, 100% { stroke-dashoffset: 0; } }
@keyframes st-scribble { from { translate: 0 0; } to { translate: 3px -1px; } }
@keyframes st-look { 0%, 21% { rotate: 0deg; } 24%, 100% { rotate: -20deg; } }
@keyframes st-lift {
  0%, 29% { translate: 0 0; scale: 1; rotate: 0deg; opacity: 1; }
  32% { translate: 0 -14px; scale: 1; rotate: 0deg; opacity: 1; }
  39% { translate: -4px -100px; scale: .62; rotate: -10deg; opacity: 1; }
  45%, 100% { translate: 0 -172px; scale: .1; rotate: 8deg; opacity: 0; }
}
@keyframes st-ufo {
  0%, 13% { translate: 0 -140px; scale: 1; opacity: 0; }
  17% { opacity: 1; }
  20%, 51% { translate: 0 0; scale: 1; opacity: 1; }
  56%, 58% { translate: 0 168px; scale: 1; opacity: 1; }
  62%, 100% { translate: 0 168px; scale: .12 1.9; opacity: 0; }
}
@keyframes st-bob { 50% { translate: 0 -4px; } }
@keyframes st-blink { 50% { fill: var(--mint); } }
@keyframes st-blink-o { 50% { opacity: .2; } }
@keyframes st-beam { 0%, 24% { scale: 1 0; opacity: 0; } 28%, 46% { scale: 1 1; opacity: 1; } 50%, 100% { scale: 1 0; opacity: 0; } }
@keyframes st-ring {
  0%, 29% { translate: 0 0; scale: 1; opacity: 0; }
  30% { translate: 0 -10px; scale: .97; opacity: .8; }
  37% { translate: 0 -190px; scale: .45; opacity: 0; }
  37.1% { translate: 0 0; scale: 1; opacity: 0; }
  38% { translate: 0 -10px; scale: .97; opacity: .8; }
  45% { translate: 0 -190px; scale: .45; opacity: 0; }
  45.1%, 100% { translate: 0 0; scale: 1; opacity: 0; }
}
@keyframes st-flash { 0%, 44% { opacity: 0; scale: .4; } 47% { opacity: .9; scale: 1; } 51%, 100% { opacity: 0; scale: 1.5; } }
@keyframes st-glitch { 0%, 57% { opacity: 0; } 58% { opacity: 1; } 59% { opacity: 0; } 60% { opacity: 1; } 61.5% { opacity: .3; } 62.5% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes st-jitter { 0% { translate: 0 0; } 33% { translate: 6px -3px; } 66% { translate: -5px 4px; } }
@keyframes st-bot { 0%, 59% { scale: 1.7 .15; opacity: 0; } 61% { opacity: .6; } 64%, 100% { scale: 1 1; opacity: 1; } }
@keyframes st-eye { 50% { translate: 10px 0; } }
@keyframes st-fore { 0%, 66% { rotate: 0deg; } 70%, 100% { rotate: -100deg; } }
@keyframes st-tilt { 0%, 68% { rotate: 0deg; } 71%, 100% { rotate: 7deg; } }
@keyframes st-watch { 0%, 70% { fill: var(--navy-2); } 71%, 100% { fill: var(--mint); } }
@keyframes st-cone { 0%, 71% { scale: 1 0; opacity: 0; } 74%, 100% { scale: 1 1; opacity: 1; } }
@keyframes st-panel { 0%, 73% { scale: .6; opacity: 0; } 76%, 100% { scale: 1; opacity: 1; } }
@keyframes st-tile { 0%, 75% { translate: 0 8px; opacity: 0; } 78%, 100% { translate: 0 0; opacity: 1; } }
@keyframes st-pscan { 0%, 76% { translate: 0 0; opacity: 0; } 77% { opacity: .7; } 93% { translate: 0 138px; opacity: .7; } 94%, 100% { translate: 0 138px; opacity: 0; } }

/* Dragon */
.d-head { fill: var(--navy); }
.d-jaw { fill: var(--navy-2); transform-box: view-box; transform-origin: 288px 172px; }
.d-spikes { fill: var(--navy-2); }
.d-horn { fill: var(--paper); stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; }
.d-brow { stroke: var(--cloud); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.d-eye { fill: var(--cloud); }
.d-pupil { fill: var(--navy); }
.d-nostril, .d-teeth, .d-cheek { stroke: var(--cloud); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: .75; }
.flame { transform-box: fill-box; transform-origin: right center; opacity: 0; }
.f1 { fill: var(--marigold); }
.f2 { fill: #f2c879; }
.f3 { fill: var(--marigold); opacity: 0; }
.ember { fill: var(--marigold); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .critter-dragon.is-on .dragon { animation: dragon-bob 4.5s ease-in-out infinite; transform-box: view-box; transform-origin: 420px 150px; }
  .critter-dragon.is-on .d-jaw { animation: jaw 4.5s var(--ease) infinite 1s; }
  .critter-dragon.is-on .flame { animation: flame 4.5s var(--ease) infinite 1s; }
  .critter-dragon.is-on .f2 { animation-delay: 1.08s; }
  .critter-dragon.is-on .f3 { animation-delay: 1.16s; }
  .critter-dragon.is-on .ember { animation: ember 4.5s ease-out infinite 1.3s; }
  .critter-dragon.is-on .e2 { animation-delay: 1.45s; }
  .critter-dragon.is-on .e3 { animation-delay: 1.6s; }
  .critter-dragon.is-on .d-eye, .critter-dragon.is-on .d-pupil { animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
}

/* Hornbill */
.b-body, .b-head { fill: var(--navy); }
.b-wing, .b-wing-back { fill: var(--navy-2); transform-box: view-box; transform-origin: 178px 100px; }
.b-tail { fill: var(--navy); }
.b-tail-band { fill: var(--cloud); }
/* Sky around the hornbill: clouds and air currents stream past to the right, so it reads as flying left. */
.critter-bird .cloud { fill: #fff; stroke: rgb(11 42 67 / .14); stroke-width: 1.2; }
.critter-bird .wind { fill: none; stroke: rgb(11 42 67 / .26); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 34 240; stroke-dashoffset: 0; }
.critter-bird .cloud { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .critter-bird.is-on .c1 { animation: drift 9s linear infinite; }
  .critter-bird.is-on .c2 { animation: drift 7s linear -3s infinite; }
  .critter-bird.is-on .c3 { animation: drift-front 4.6s linear -1s infinite; }
  .critter-bird.is-on .wind { animation: gust 1.8s linear infinite; }
  .critter-bird.is-on .w2 { animation-duration: 2.3s; animation-delay: -.8s; }
  .critter-bird.is-on .w3 { animation-duration: 2s; animation-delay: -1.4s; }
}
@media (prefers-reduced-motion: reduce) { .critter-bird .cloud { opacity: 1; } }
@keyframes drift { 0% { translate: -70px 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { translate: 170px 0; opacity: 0; } }
@keyframes drift-front { 0% { translate: -60px 0; opacity: 0; } 15%, 80% { opacity: .92; } 100% { translate: 240px 0; opacity: 0; } }
@keyframes gust { to { stroke-dashoffset: -274; } }
.b-beak { fill: #f2c879; stroke: var(--navy); stroke-width: 1.5; }
.b-casque { fill: var(--marigold); }
.b-eye { fill: var(--cloud); }
@media (prefers-reduced-motion: no-preference) {
  .critter-bird .b-wing { animation: flap .5s ease-in-out infinite alternate; }
  .critter-bird .b-wing-back { animation: flap-back .5s ease-in-out infinite alternate; }
  .critter-bird.is-on .bird { animation: hover-bob 2.2s ease-in-out infinite; }
}

/* Paper plane (position set by JS along the trail) */
.trail { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 8; }
.pl-top { fill: var(--cloud); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.pl-bot { fill: var(--paper); stroke: var(--navy); stroke-width: 1.5; stroke-linejoin: round; }
.pl-fold { stroke: var(--navy); stroke-width: 1.5; }

/* ---------- About ---------- */
.statement { font: 400 clamp(1.5rem, 3.1vw, 2.625rem)/1.3 var(--display); letter-spacing: -.02em; max-width: 30ch; margin-bottom: clamp(64px, 8vw, 112px); }
.statement .sw { transition: opacity .5s; }
.js .statement .sw { opacity: .16; }
.js .statement.is-lit .sw { opacity: 1; transition-delay: calc(var(--i) * 18ms); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .js .statement { view-timeline: --stmt block; }
    .js .statement .sw {
      opacity: .16; transition: none;
      animation: lit linear both;
      animation-timeline: --stmt;
      animation-range: cover calc(18% + var(--p) * 34%) cover calc(22% + var(--p) * 34%);
    }
  }
}
@media (prefers-reduced-motion: reduce) { .js .statement .sw { opacity: 1; } }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  padding: 32px 28px;
  border: 1px solid transparent; border-radius: var(--r-lg);
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    radial-gradient(320px circle at var(--mx) var(--my), rgb(14 122 92 / calc(var(--glow) * .9)), var(--line) 70%) border-box;
  transition: --glow .4s, translate .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(14 122 92 / .07), transparent 60%);
  opacity: var(--glow);
}
.card:hover { --glow: 1; translate: 0 -4px; box-shadow: 0 24px 48px -28px rgb(11 42 67 / .35); }
.card-i { width: 28px; height: 28px; color: var(--emerald); margin-bottom: 40px; transition: transform .5s var(--ease); }
.card:hover .card-i { transform: translateY(-3px) rotate(-6deg); }
.card h3 { font-size: 1.25rem; letter-spacing: -.015em; margin-bottom: 10px; }
.card p { font-size: .9375rem; color: var(--ink-2); }

/* Pillars: navy fills the card from wherever the pointer enters; the icon draws itself in. */
.pillar { overflow: hidden; padding-bottom: 40px; }
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--navy);
  clip-path: circle(0 at var(--wx, 50%) var(--wy, 100%));
  transition: clip-path .75s var(--ease);
}
.pillar:hover::after { clip-path: circle(150% at var(--wx, 50%) var(--wy, 100%)); }
.pillar h3, .pillar p { position: relative; transition: color .45s; }
.pillar:hover h3 { color: var(--cloud); }
.pillar:hover p { color: var(--on-dark-2); }
.pillar-tile {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 40px;
  border-radius: 14px; background: rgb(14 122 92 / .09);
  transition: background-color .5s, rotate .6s var(--ease);
}
.pillar .card-i { width: 26px; height: 26px; margin: 0; transition: color .45s; }
.pillar:hover .pillar-tile { background: rgb(92 207 166 / .16); rotate: -8deg; }
.pillar:hover .card-i { color: var(--mint); transform: none; }
.pillar-num {
  position: absolute; right: 14px; bottom: -40px; pointer-events: none;
  font: 500 6.5rem/1 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgb(11 42 67 / .1);
  transition: translate .8s var(--ease), -webkit-text-stroke-color .5s;
}
.pillar:hover .pillar-num { translate: 0 -10px; -webkit-text-stroke-color: rgb(247 245 241 / .22); }
@media (prefers-reduced-motion: no-preference) {
  .js .pillar .draw { stroke-dasharray: 70; stroke-dashoffset: 70; transition: stroke-dashoffset 1.8s var(--ease) .35s, color .45s; }
  .js .pillar.is-in .draw { stroke-dashoffset: 0; }
}

/* ---------- Services ---------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { padding: 16px 16px 28px; display: flex; flex-direction: column; }
.service h3, .service p { padding-inline: 8px; }
.scene { aspect-ratio: 240 / 140; margin-bottom: 20px; border-radius: var(--r-md); background: var(--paper); overflow: hidden; }
.scene svg { width: 100%; height: 100%; display: block; }

/* Scene parts */
.scene .frame { fill: var(--card); stroke: rgb(11 42 67 / .4); stroke-width: 1.5; }
.scene .ln { fill: none; stroke: rgb(11 42 67 / .55); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .soft { fill: rgb(11 42 67 / .12); }
.scene .ink { fill: var(--navy); }
.scene .acc { fill: var(--emerald); }
.scene .cloud { fill: var(--cloud); }
.scene .dark { fill: var(--navy-deep); }
.scene .mint-ln { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-cloud .mint-ln { stroke: var(--emerald); }
.scene .code { fill: rgb(247 245 241 / .55); }
.scene .c2, .scene .c4 { fill: rgb(92 207 166 / .7); }
.scene .caret { fill: var(--mint); }
.scene .dash { fill: none; stroke: rgb(11 42 67 / .3); stroke-width: 1.5; stroke-dasharray: 4 5; }
.scene .cursor { fill: var(--navy); stroke: var(--cloud); stroke-width: 1.2; stroke-linejoin: round; }
.scene .edge { fill: none; stroke: rgb(11 42 67 / .22); stroke-width: 1.5; }
.scene .pulse { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 120; stroke-dashoffset: 130; }
.scene .node { fill: var(--card); stroke: rgb(11 42 67 / .55); stroke-width: 1.5; }
.scene .core { fill: var(--navy); }
.scene .core-i { fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .grid { fill: none; stroke: rgb(11 42 67 / .1); stroke-width: 1; }
.scene .trend { fill: none; stroke: var(--emerald); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 170; }
.scene .teeth { fill: none; stroke: var(--navy); stroke-width: 8; }
.g1 .teeth { stroke-dasharray: 6.68 6.68; }
.g2 .teeth { stroke-dasharray: 6.91 6.91; stroke: var(--emerald); }
.g3 .teeth { stroke-dasharray: 6.28 6.28; }
.scene .cl { fill: var(--card); stroke: rgb(11 42 67 / .55); stroke-width: 1.5; stroke-linejoin: round; }
.scene .led { fill: rgb(11 42 67 / .25); }
.scene .route { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 220; }
.scene .build, .scene .bar, .scene .gear, .scene .flag, .scene .needle, .scene .core { transform-box: fill-box; }
.scene .build { transform-origin: left center; }
.scene .bar { transform-origin: center bottom; }
.scene .gear, .scene .needle, .scene .core { transform-origin: center; }
.scene .flag { transform-origin: left bottom; }

@media (prefers-reduced-motion: no-preference) {
  .service .scene * { animation-play-state: paused; }
  .service.is-in .scene * { animation-play-state: running; }
  .sc-web .build { animation: build 5s var(--ease) infinite; }
  .sc-web .b2 { animation-delay: .15s; } .sc-web .b3 { animation-delay: .3s; } .sc-web .b4 { animation-delay: .45s; } .sc-web .b5 { animation-delay: .6s; }
  .sc-web .cursor { animation: cur-web 5s var(--ease) infinite; }
  .sc-code .code { transform-box: fill-box; transform-origin: left center; animation: type 6s steps(8, end) infinite; }
  .sc-code .c2 { animation-delay: .5s; } .sc-code .c3 { animation-delay: 1s; } .sc-code .c4 { animation-delay: 1.5s; } .sc-code .c5 { animation-delay: 2s; }
  .sc-code .caret { animation: caret 1s steps(1) infinite; }
  .sc-ux .drag { animation: drag 5s var(--ease) infinite; }
  .sc-ai .pulse { animation: pulse 1.8s linear infinite; }
  .sc-ai .p2 { animation-delay: .45s; } .sc-ai .p3 { animation-delay: .9s; } .sc-ai .p4 { animation-delay: 1.35s; }
  .sc-ai .core { animation: breathe 1.8s ease-in-out infinite; }
  .sc-data .bar { animation: bars 3s var(--ease) infinite alternate; }
  .sc-data .r2 { animation-delay: .2s; } .sc-data .r3 { animation-delay: .4s; } .sc-data .r4 { animation-delay: .6s; } .sc-data .r5 { animation-delay: .8s; }
  .sc-data .trend { animation: draw 3s var(--ease) infinite alternate; }
  .sc-gears .g1 { animation: spin 8s linear infinite; }
  .sc-gears .g2 { animation: spin 5.2s linear infinite reverse; }
  .sc-gears .g3 { animation: spin 4s linear infinite reverse; }
  .sc-cloud .up { animation: up 2.4s ease-in infinite; }
  .sc-cloud .u2 { animation-delay: .8s; } .sc-cloud .u3 { animation-delay: 1.6s; }
  .sc-cloud .led { animation: led 1.2s steps(1) infinite; }
  .sc-cloud .l2 { animation-delay: .6s; }
  .sc-route .route { animation: route 4s var(--ease) infinite; }
  .sc-route .flag { animation: wave 1.2s ease-in-out infinite alternate; }
  .sc-route .needle { animation: wobble 3s ease-in-out infinite; }
}

/* ---------- Work ---------- */
/* Each product is a wide banner in its own brand colour, with its full poster beside the copy.
   A character perches on one top corner, so banners get extra room above them. */
.showcase {
  --bn-bg: var(--navy); --bn-glow: rgb(92 207 166 / .18); --bn-accent: var(--mint);
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(32px, 5vw, 80px); align-items: center;
  margin-top: clamp(120px, 10vw, 150px); padding: clamp(36px, 5vw, 64px) clamp(28px, 5vw, 72px);
  border-radius: var(--r-xl); background: radial-gradient(120% 90% at 85% 0%, var(--bn-glow), transparent 60%), var(--bn-bg); color: var(--cloud);
  box-shadow: 0 40px 80px -48px rgb(11 42 67 / .6);
}
.showcase.flip { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); background: radial-gradient(120% 90% at 15% 0%, var(--bn-glow), transparent 60%), var(--bn-bg); }
.showcase.flip .showcase-shot { order: -1; }
.showcase + .showcase { margin-top: clamp(150px, 12vw, 170px); }
.banner-sq { --bn-bg: #2a0d4a; --bn-glow: rgb(214 38 138 / .32); --bn-accent: #ff6fb5; }
.banner-qr { --bn-bg: #073b2f; --bn-glow: rgb(233 185 73 / .13); --bn-accent: #e9b949; }
.showcase-copy { max-width: 520px; }
/* Product watermark: the product's mark, very faint and oversized, behind the copy. Clipped to the banner's
   rounded corners by its own box, so the character perched on the banner can still stick out above it. */
.showcase-mark { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.showcase-mark img {
  position: absolute; right: -6%; top: 50%; width: min(620px, 58%); height: auto;
  translate: 0 -50%; rotate: -12deg; opacity: .06;
}
.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px 6px 10px; border: 1px solid rgb(247 245 241 / .22); border-radius: 999px; font-size: .8125rem; font-weight: 500; color: rgb(247 245 241 / .85); }
.status .i { width: 16px; height: 16px; color: var(--bn-accent); }
.showcase-copy h3 { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -.035em; line-height: 1.02; margin-bottom: 20px; color: var(--cloud); }
.showcase-copy h3 span { color: var(--bn-accent); }
.showcase-copy > p { color: rgb(247 245 241 / .78); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { padding: 6px 12px; border-radius: 8px; background: rgb(247 245 241 / .1); color: rgb(247 245 241 / .9); font-size: .8125rem; font-weight: 500; }
.showcase .link-btn { margin-top: 20px; color: var(--cloud); }
.showcase .link-btn .i { width: 16px; height: 16px; color: var(--bn-accent); }
.showcase-shot { margin: 0; perspective: 1200px; }
.shot-btn {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: block; width: 100%; padding: 10px;
  border: 0; border-radius: var(--r-xl); background: rgb(247 245 241 / .12); cursor: zoom-in;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
}
.shot-btn img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-xl) - 10px); }
.shot-zoom {
  position: absolute; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: var(--r-sm); background: rgb(5 21 35 / .78); color: var(--cloud);
  font-size: .8125rem; font-weight: 500; opacity: 0; translate: 0 6px;
  transition: opacity var(--mid), translate var(--mid) var(--ease);
}
.shot-zoom .i { width: 14px; height: 14px; }
.shot-btn:hover .shot-zoom, .shot-btn:focus-visible .shot-zoom { opacity: 1; translate: 0 0; }

/* Perched characters. Each SVG has its banner-edge line at a known y; the top offsets sit that line on the edge. */
.perch { position: absolute; z-index: 2; pointer-events: none; }
.perch svg { display: block; width: 100%; height: auto; overflow: visible; }
.perch-monkey { width: 210px; left: -48px; top: -153px; }
.perch-ticket { width: 190px; right: clamp(24px, 4vw, 56px); top: -143px; }
/* Proboscis monkey (SideQuest) */
.pm-tail { fill: none; stroke: #e7dac2; stroke-width: 7; stroke-linecap: round; }
.pm-limb { fill: none; stroke: #e7dac2; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.pm-limb-b { stroke: #cdbb9a; }
.pm-foot, .pm-hand { fill: #e7dac2; }
.pm-foot-b { fill: #cdbb9a; }
.pm-body { fill: #c46a2e; }
.pm-belly { fill: #e39a5c; }
.pm-ruff { fill: none; stroke: #efe4cf; stroke-width: 9; stroke-linecap: round; }
.pm-fur { fill: #b85b25; }
.pm-tuft { fill: none; stroke: #9c4b1d; stroke-width: 4; stroke-linecap: round; }
.pm-ear { fill: #a14e1f; }
.pm-face { fill: #e9a27c; }
.pm-brow { fill: none; stroke: #8f4318; stroke-width: 3; stroke-linecap: round; }
.pm-eye { fill: #2a160c; transform-box: fill-box; transform-origin: center; }
.pm-mouth { fill: none; stroke: #8f4318; stroke-width: 2; stroke-linecap: round; }
.pm-nose path { fill: #ee8f6a; stroke: #c96745; stroke-width: 1.2; }
.pm-nostril { fill: #b4553a; }
.pm-tail { transform-box: view-box; transform-origin: 74px 152px; }
.pm-leg-b { transform-box: view-box; transform-origin: 92px 156px; }
.pm-leg-f { transform-box: view-box; transform-origin: 116px 158px; }
.pm-head { transform-box: view-box; transform-origin: 116px 84px; }
.pm-nose { transform-box: view-box; transform-origin: 140px 62px; }
/* Ticket mascot with a magnifier (QRskan) */
.tk-body { fill: #fff8e7; stroke: #e9b949; stroke-width: 2.5; }
.tk-perf { stroke: #e9b949; stroke-width: 3; stroke-dasharray: 5 6; stroke-linecap: round; }
.tk-cheek { fill: rgb(233 185 73 / .4); }
.tk-eye, .tk-eye-big, .tk-qr path { fill: #073b2f; }
.tk-smile { fill: none; stroke: #073b2f; stroke-width: 2.5; stroke-linecap: round; }
.tk-qr .tk-fin { fill: none; stroke: #073b2f; stroke-width: 3; }
.tk-scan { fill: #e9b949; filter: drop-shadow(0 0 4px rgb(233 185 73 / .9)); }
.tk-leg path { stroke: #e9f0ea; stroke-width: 6; stroke-linecap: round; }
.tk-leg ellipse { fill: #e9b949; }
.tk-arm { fill: none; stroke: #073b2f; stroke-width: 5; stroke-linecap: round; }
.tk-handle { stroke: #073b2f; stroke-width: 6; stroke-linecap: round; }
.tk-lens { fill: rgb(186 207 196 / .55); stroke: #073b2f; stroke-width: 5; }
.tk-glint { fill: #fff; opacity: .8; }
.tk-ping circle { fill: #e9b949; }
.tk-ping path { fill: none; stroke: #073b2f; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tk-ping { opacity: 0; transform-box: fill-box; transform-origin: center; }
.tk-leg-l { transform-box: view-box; transform-origin: 82px 148px; }
.tk-leg-r { transform-box: view-box; transform-origin: 118px 148px; }
.tk-mag { transform-box: view-box; transform-origin: 151px 112px; }
.tk-eye { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .pm-tail { animation: pm-sway 3.4s ease-in-out infinite alternate; }
  .pm-leg-b { animation: pm-swing 1.8s ease-in-out infinite alternate; }
  .pm-leg-f { animation: pm-swing 1.8s ease-in-out -.9s infinite alternate; }
  .pm-head { animation: pm-look 6s ease-in-out infinite; }
  .pm-nose { animation: pm-nose 2.2s ease-in-out infinite; }
  .pm-eye { animation: perch-blink 4.5s infinite; }
  .tk-leg-l { animation: tk-kick 1.4s ease-in-out infinite alternate; }
  .tk-leg-r { animation: tk-kick 1.4s ease-in-out -.7s infinite alternate; }
  .tk-mag { animation: tk-peer 3s ease-in-out infinite; }
  .tk-scan { animation: tk-scan 3s ease-in-out infinite; }
  .tk-ping { animation: tk-ping 3s ease-out infinite; }
  .tk-eye { animation: perch-blink 5s 1s infinite; }
}
@keyframes pm-sway { from { rotate: -5deg; } to { rotate: 6deg; } }
@keyframes pm-swing { from { rotate: -9deg; } to { rotate: 10deg; } }
@keyframes pm-look { 0%, 40%, 100% { rotate: 0deg; } 50%, 70% { rotate: 6deg; } 80% { rotate: -3deg; } }
@keyframes pm-nose { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }
@keyframes perch-blink { 0%, 94%, 100% { scale: 1 1; } 97% { scale: 1 .1; } }
@keyframes tk-kick { from { rotate: -12deg; } to { rotate: 12deg; } }
@keyframes tk-peer { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: -2px 3px; rotate: -4deg; } }
@keyframes tk-scan { 0%, 100% { translate: 0 0; } 55%, 60% { translate: 0 33px; } }
@keyframes tk-ping { 0%, 55% { opacity: 0; scale: .3; } 62% { opacity: 1; scale: 1.15; } 70%, 88% { opacity: 1; scale: 1; } 96%, 100% { opacity: 0; scale: .8; } }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal-scale { animation: scale-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}

/* ---------- Process ---------- */
.process { background: var(--navy-deep); color: var(--on-dark); }
.process .section-intro { color: var(--on-dark-2); }
.process-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 6vw, 112px); align-items: start; }
.process-head { position: sticky; top: 140px; }
.steps { position: relative; display: grid; gap: 16px; padding-left: 48px; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; left: 17px; top: 24px; bottom: 24px; width: 1px; }
.steps > .step { z-index: 1; }   /* cards (and their icon nodes) sit above the line, so it runs behind each node */
.steps::before { background: var(--line-dark); }
.steps::after { background: var(--mint); transform-origin: top; transform: scaleY(1); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .steps { view-timeline: --steps block; }
    .steps::after { animation: grow-y linear both; animation-timeline: --steps; animation-range: cover 15% cover 70%; }
  }
}
.step {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 16px;
  padding: 28px; border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  background: color-mix(in srgb, rgb(247 245 241) 3%, var(--navy-deep));   /* solid, so the flow lines pass behind the card */
  transition: background-color var(--mid), border-color var(--mid);
}
.step-node {
  position: absolute; left: -48px; top: 26px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy-deep); border: 1px solid rgb(92 207 166 / .5); color: var(--mint);
  box-shadow: 0 0 0 6px var(--navy-deep);   /* small gap so the line stops short of the node */
  transition: background-color var(--mid), color var(--mid), rotate .6s var(--ease);
}
.step-node .i { width: 18px; height: 18px; }
.step:hover { background: color-mix(in srgb, rgb(247 245 241) 6%, var(--navy-deep)); border-color: rgb(247 245 241 / .24); }
.step:hover .step-node { background: var(--mint); color: var(--navy-deep); rotate: -8deg; }
.step h3 { font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--on-dark-2); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
/* Text over the flow lines, in every section that has them (About, Services, Work, How we work, Questions,
   Insights): the lines are faded, and the headings, intros, the About statement and the question list get a soft
   halo in their section's own background colour (--halo), which lifts each letter off any line behind it.
   Cards keep their own backgrounds, so they need no halo. */
.section:has(> .flow-lines) { --halo: var(--cloud); }
.section.services:has(> .flow-lines), .section.insights:has(> .flow-lines) { --halo: var(--paper); }
.section.process:has(> .flow-lines) { --halo: var(--navy-deep); }
.section > .flow-lines { opacity: .85; }   /* strong enough to watch the line draw itself; the cut-outs keep it off the words */
.section:has(> .flow-lines) :is(.section-head, .process-head, .statement, .faq-grid > div:first-child, .faq-list) {
  text-shadow: 0 0 2px var(--halo), 0 0 6px var(--halo), 0 0 14px var(--halo), 0 0 22px var(--halo);
}
/* Phones: the text fills the screen width, so site.js cuts one solid gap for
   each text block, and a lighter two-layer halo keeps the letters crisp and is cheaper to repaint while scrolling. */
@media (max-width: 860px) {
  .section > .flow-lines { opacity: .7; }
  .section:has(> .flow-lines) :is(.section-head, .process-head, .statement, .faq-grid > div:first-child, .faq-list) {
    text-shadow: 0 0 3px var(--halo), 0 0 10px var(--halo);
  }
}
.qa { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font: 500 clamp(1.0625rem, 1.6vw, 1.3125rem)/1.35 var(--display); letter-spacing: -.01em;
  transition: color var(--fast);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--emerald); }
.qa summary .i { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.qa[open] summary .i { transform: rotate(45deg); }
.qa p { padding-bottom: 24px; max-width: 60ch; color: var(--ink-2); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .qa::details-content { transition: none; } }

/* ---------- Insights ---------- */
.insights { background: var(--paper); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insight {
  display: flex; flex-direction: column; padding: 16px 16px 24px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: --glow .4s, translate .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.insight > :not(.ins-scene) { margin-inline: 12px; }
.scene.ins-scene { aspect-ratio: 320 / 150; margin-bottom: 20px; }
.ins-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tag { font-size: .75rem; color: var(--emerald); }
.read { font-size: .75rem; color: var(--ink-3); white-space: nowrap; margin-left: auto; }
.ins-meta .tag { white-space: nowrap; }
.insight h3 { font-size: clamp(1.375rem, 1.9vw, 1.625rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; }
.insight p { margin-top: 10px; }
.insight .link-btn { margin-top: auto; padding-top: 20px; }
.scene .fillc { fill: var(--card); }
.scene .ripple { fill: none; stroke: var(--emerald); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .pin-i { fill: var(--card); stroke: var(--emerald); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.scene .sun { fill: none; stroke: var(--marigold); stroke-width: 2; }
.scene .wave { fill: none; stroke-width: 2; stroke-linecap: round; }
.scene .w1 { stroke: var(--emerald); }
.scene .w2 { stroke: rgb(11 42 67 / .35); }
.scene .bubble { transform-box: fill-box; transform-origin: left bottom; }
.scene .b-b { transform-origin: right bottom; }
.scene .tl { transform-box: fill-box; transform-origin: left center; }
.scene .boat { transform-box: fill-box; transform-origin: center bottom; }
@media (prefers-reduced-motion: no-preference) {
  .insight .scene * { animation-play-state: paused; }
  .insight.is-in .scene * { animation-play-state: running; }
  .is-home .drop { animation: drop 3.2s var(--ease) infinite; }
  .is-home .ripple { animation: ripple 3.2s ease-out infinite .5s; }
  .is-home .r2 { animation-delay: 1.3s; }
  .is-chat .bubble { animation: bubble 5s var(--ease) infinite; }
  .is-chat .b-b { animation-delay: 1.2s; }
  .is-chat .tl { animation: type 5s steps(6, end) infinite .3s; }
  .is-chat .t3, .is-chat .t4 { animation-delay: 1.5s; }
  .is-chat .typing rect { animation: hop 1s ease-in-out infinite; }
  .is-chat .typing rect:nth-child(2) { animation-delay: .15s; }
  .is-chat .typing rect:nth-child(3) { animation-delay: .3s; }
  .is-water .w1 { animation: waves 2.4s linear infinite; }
  .is-water .w2 { animation: waves 3.6s linear infinite reverse; }
  .is-water .boat { animation: bob 2.4s ease-in-out infinite; }
}
.pick input:checked + span { animation: none; }
@media (prefers-reduced-motion: no-preference) { .pick input:checked + span { animation: pop .35s var(--ease); } }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 24px; padding: 10px 0; border: 0; background: none; cursor: pointer;
  font-weight: 500; font-size: .9375rem; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .45s var(--ease);
}
.link-btn:hover { background-size: 100% 1px; }
.link-btn .i { transition: transform .35s var(--ease); }
.link-btn:hover .i { transform: translateX(4px); }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 12vw, 160px); background: var(--navy-deep); color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 96px); align-items: start; }   /* one column: the inquiry form lives on start.html */
.contact-title { font-size: clamp(3.5rem, 10vw, 8.5rem); letter-spacing: -.05em; line-height: .92; }
.contact-lead { margin: 28px 0 36px; max-width: 44ch; color: var(--on-dark-2); font-size: 1.0625rem; }
.contact-list { display: grid; gap: 14px; margin-top: 40px; color: var(--on-dark-2); }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .i { color: var(--mint); }
.contact-list a { overflow-wrap: anywhere; transition: color var(--fast); }
.contact-list a:hover { color: var(--on-dark); }

/* Contact, centred between two rotating rings of our product marks: SideQuest Tourism and QRskan. Each logo sits on
   the circle and its name curves along it (SVG textPath), so the ring reads like the hero's logo strip bent into
   a wheel, turning endlessly. Desktop: the rings sit on the left and right edges with their centres on the edge
   of the screen, so exactly half of each shows, sized to stay clear of the centred text. Phones: there is no
   room beside the text, so the rings move to the top and bottom edges (still half showing) and the section gets
   extra padding so they never reach the contact details. They turn in opposite directions; the section clips them. */
.contact-copy { display: grid; justify-items: center; text-align: center; }
.contact-lead { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }   /* Start a project (the inquiry form) first, WhatsApp beside it */
/* The details sit as one block centred under the buttons, with their icons in a single column and the text
   left-aligned beside them, so every line starts at the same edge. A wrapped address keeps its icon on line one. */
.contact-list { justify-items: start; width: fit-content; max-width: 100%; margin-inline: auto; }
.contact-list li { justify-content: flex-start; align-items: flex-start; text-align: left; }
.contact-list li .i { margin-top: .2em; }
.contact > .wrap { position: relative; z-index: 1; }
.contact-ring {
  position: absolute; top: 50%; z-index: 0; width: min(78vh / var(--vz, 1), 760px, 46vw); aspect-ratio: 1;   /* 46vw keeps the rings clear of the centred text */
  translate: -50% -50%; pointer-events: none;
}
.contact-ring-l { left: 0; }
.contact-ring-r { left: 100%; }
.cr-spin { display: block; width: 100%; height: 100%; overflow: visible; }
.contact-ring text { font: 500 23px/1 var(--display); letter-spacing: .01em; fill: rgb(247 245 241 / .6); dominant-baseline: middle; }
@media (prefers-reduced-motion: no-preference) {
  .contact-ring-l .cr-spin { animation: ring-spin 60s linear infinite; }
  .contact-ring-r .cr-spin { animation: ring-spin 60s linear infinite reverse; }
  .contact-ring .cr-spin.is-gsap { animation: none; }   /* GSAP drives it instead, following the scroll direction */
}
@keyframes ring-spin { to { rotate: 360deg; } }
@media (max-width: 860px) {
  .contact { --ring: min(80vw, 320px); padding-block: calc(var(--ring) / 2 + 40px); }
  .contact-ring { width: var(--ring); left: 50%; }
  .contact-ring-l { top: 0; }
  .contact-ring-r { top: 100%; }
  .contact-ring text { font-size: 26px; }
}
.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-dark); border-radius: var(--r-xl); background: rgb(247 245 241 / .035); }
.form-title { font: 500 1.25rem/1.2 var(--display); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0;
  background: transparent; color: var(--on-dark); outline: 0; resize: vertical;
  transition: border-color var(--fast);
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 0; top: 24px; color: var(--on-dark-3); pointer-events: none; transform-origin: left top; transition: translate .35s var(--ease), scale .35s var(--ease), color var(--fast); }
/* Focus: no box. A light sweeps under the field, the line fills from the left, and the label lifts. */
.field::before {
  content: ""; position: absolute; inset: 0 -12px -1px; z-index: -1; border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, transparent, rgb(92 207 166 / .08));
  opacity: 0; transition: opacity .4s;
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--mint));
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.field { isolation: isolate; }
.field:focus-within::before { opacity: 1; }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input:autofill, .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--cloud); caret-color: var(--cloud);
  -webkit-box-shadow: 0 0 0 100px #0b2235 inset; box-shadow: 0 0 0 100px #0b2235 inset;
  transition: background-color 9999s;
}
.msg-meter { display: flex; align-items: center; gap: 12px; margin-top: -8px; font-size: .75rem; color: var(--on-dark-3); }
.msg-meter span { flex: 1; height: 3px; border-radius: 3px; background: var(--line-dark); overflow: hidden; }
.msg-meter span::after { content: ""; display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--mint); border-radius: inherit; transition: width .3s var(--ease); }
.msg-meter.is-done { color: var(--mint); }
.msg-meter em { font-style: normal; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { translate: 0 -20px; scale: .78; color: var(--mint); }
.field [aria-invalid="true"] { border-bottom-color: #f08a7e; }
.field-error { display: block; margin-top: 6px; font-size: .8125rem; color: #f5a399; }
.pick { border: 0; padding: 0; margin: 0; }
.pick legend { padding: 0; margin-bottom: 12px; font-size: .875rem; color: var(--on-dark-3); }
.pick-options { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; }
.pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: var(--r-sm); font-size: .875rem; color: var(--on-dark-2); transition: background-color var(--fast), color var(--fast), border-color var(--fast); }
.pick input:hover + span { border-color: rgb(247 245 241 / .4); }
.pick input:checked + span { background: var(--cloud); color: var(--navy); border-color: var(--cloud); }
.pick input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { font-size: .875rem; color: var(--on-dark-2); }
.form-status.is-ok { color: var(--mint); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-night); color: var(--on-dark-2); padding-top: clamp(72px, 8vw, 120px); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line-dark); }
.footer-big { font: 500 clamp(2.5rem, 7vw, 6rem)/.95 var(--display); letter-spacing: -.045em; color: var(--on-dark); max-width: 12ch; }
.footer-big .fb-line { display: inline-block; }   /* each line moves on its own in the footer entrance */
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-block: 56px; }
.brand-dark { color: var(--on-dark); margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; font-size: .9375rem; }
.footer-col { display: grid; align-content: start; gap: 10px; font-size: .9375rem; }
.footer-h { font: 500 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--on-dark-3); margin-bottom: 8px; }
.footer-col a { justify-self: start; transition: color var(--fast); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line-dark); font-size: .8125rem; color: var(--on-dark-3); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { min-height: 44px; display: inline-flex; align-items: center; transition: color var(--fast); }
.footer-legal a:hover { color: var(--on-dark); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; transition: color var(--fast); }
.to-top:hover { color: var(--on-dark); }
.to-top .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.to-top:hover .i { transform: translateY(-3px); }

/* ---------- Dialogs ---------- */
.modal, .lightbox {
  border: 0; padding: 0; max-width: none;
  opacity: 0; scale: .96;
  transition: opacity .35s var(--ease), scale .45s var(--ease), display .45s allow-discrete, overlay .45s allow-discrete;
}
.modal[open], .lightbox[open] { opacity: 1; scale: 1; }
@starting-style { .modal[open], .lightbox[open] { opacity: 0; scale: .96; } }
.modal::backdrop, .lightbox::backdrop { background: rgb(5 21 35 / 0); transition: background-color .35s, display .45s allow-discrete, overlay .45s allow-discrete; }
.modal[open]::backdrop { background: rgb(5 21 35 / .6); }
.lightbox[open]::backdrop { background: rgb(5 21 35 / .88); }
@starting-style { .modal[open]::backdrop, .lightbox[open]::backdrop { background: rgb(5 21 35 / 0); } }
.modal { width: min(640px, 100% - 32px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--cloud); color: var(--ink); }
.modal-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: .75rem; color: var(--emerald); }
.modal h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.modal-body { display: grid; gap: 16px; color: var(--ink-2); }
/* Lightbox: the whole image fits the screen; .is-zoomed shows it at full size inside a scrolling frame. */
.lightbox { --lb-w: calc(100vw / var(--vz, 1) - 32px); --lb-h: calc(100dvh / var(--vz, 1) - 72px); width: fit-content; max-height: none; background: transparent; overflow: visible; }
.lb-frame { max-width: var(--lb-w); max-height: var(--lb-h); overflow: hidden; border-radius: var(--r-lg); }
/* Width from the aspect ratio (--ar, set by JS) so the dialog shrinks to the image and stays centred. */
.lightbox img { display: block; width: min(var(--lb-w), calc(var(--lb-h) * var(--ar, 1))); height: auto; cursor: zoom-in; }
.lightbox.is-zoomed .lb-frame { overflow: auto; overscroll-behavior: contain; }
.lightbox.is-zoomed img { width: auto; max-width: none; cursor: zoom-out; }
.lb-hint { margin: 10px 0 0; text-align: center; font-size: .8125rem; color: rgb(247 245 241 / .72); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 1; color: var(--cloud); border-color: rgb(247 245 241 / .25); background: rgb(5 21 35 / .72); }
.lightbox-close:hover { background: rgb(5 21 35 / .9); }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- Keyframes ---------- */
@keyframes spin { to { rotate: 360deg; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes lit { to { opacity: 1; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes scale-in { from { opacity: .3; scale: .88; } to { opacity: 1; scale: 1; } }
/* scenes */
@keyframes build { 0%, 6% { scale: 0 1; } 18%, 82% { scale: 1 1; } 94%, 100% { scale: 0 1; } }
@keyframes cur-web { 0%, 10% { transform: translate(196px, 118px); } 45% { transform: translate(64px, 104px); } 50% { transform: translate(64px, 104px) scale(.85); } 55%, 85% { transform: translate(64px, 104px); } 100% { transform: translate(196px, 118px); } }
@keyframes type { 0% { scale: 0 1; } 30%, 85% { scale: 1 1; } 100% { scale: 0 1; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes drag { 0%, 12% { transform: translate(0, 0); } 45%, 70% { transform: translate(-68px, 64px); } 95%, 100% { transform: translate(0, 0); } }
@keyframes pulse { from { stroke-dashoffset: 130; } to { stroke-dashoffset: 0; } }
@keyframes breathe { 50% { scale: 1.08; } }
@keyframes bars { from { scale: 1 .35; } to { scale: 1 1; } }
@keyframes draw { from { stroke-dashoffset: 170; } to { stroke-dashoffset: 0; } }
@keyframes up { 0% { translate: 0 10px; opacity: 0; } 25% { opacity: 1; } 100% { translate: 0 -30px; opacity: 0; } }
@keyframes led { 50% { fill: var(--emerald); } }
@keyframes route { 0% { stroke-dashoffset: 220; } 60%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -220; } }
@keyframes wave { to { transform: skewY(-8deg) scaleX(.9); } }
@keyframes wobble { 0%, 100% { rotate: -20deg; } 50% { rotate: 25deg; } }
/* critters */
@keyframes dragon-bob { 0%, 100% { rotate: 0deg; translate: 0 0; } 20% { rotate: -4deg; translate: -6px -4px; } 40% { rotate: 2deg; translate: -12px 2px; } 60% { rotate: 0deg; translate: -4px 0; } }
@keyframes jaw { 0%, 8% { rotate: 0deg; } 14%, 40% { rotate: 14deg; } 52%, 100% { rotate: 0deg; } }
@keyframes flame { 0%, 8% { opacity: 0; scale: 0 .4; } 16% { opacity: 1; scale: 1 1; } 34% { opacity: 1; scale: 1.15 1.1; } 46% { opacity: 0; scale: 1.3 .7; translate: -10px 0; } 100% { opacity: 0; } }
@keyframes ember { 0%, 10% { opacity: 0; translate: 0 0; } 20% { opacity: 1; } 50% { opacity: 0; translate: -40px -24px; } 100% { opacity: 0; } }
@keyframes blink { 0%, 44%, 50%, 100% { scale: 1 1; } 47% { scale: 1 .1; } }
@keyframes flap { from { scale: 1 1; } to { scale: 1 -.55; } }
@keyframes flap-back { from { scale: 1 .8; } to { scale: 1 -.3; } }
@keyframes hover-bob { 0%, 100% { translate: 0 0; } 50% { translate: -8px 10px; } }
@keyframes pop { 0% { scale: .9; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes drop { 0% { translate: 0 -40px; opacity: 0; } 22% { translate: 0 4px; opacity: 1; } 30%, 80% { translate: 0 0; opacity: 1; } 100% { translate: 0 -40px; opacity: 0; } }
@keyframes ripple { from { scale: .3; opacity: .9; } to { scale: 1.25; opacity: 0; } }
@keyframes bubble { 0%, 6% { scale: 0; opacity: 0; } 16%, 82% { scale: 1; opacity: 1; } 94%, 100% { scale: .85; opacity: 0; } }
@keyframes hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes waves { to { translate: -40px 0; } }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -4px; rotate: 2deg; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero-bg { object-position: 50% 50%; }
  .hero::before { background: linear-gradient(180deg, rgb(7 28 45 / .7), rgb(7 28 45 / .45) 40%, rgb(7 28 45 / .7) 80%, var(--navy-deep)); }
  .showcase, .process-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .showcase.flip .showcase-shot { order: 0; }
  .showcase-shot { width: min(100%, 320px); justify-self: center; }
  .perch-monkey { width: 140px; left: -24px; top: -102px; }
  .perch-ticket { width: 118px; right: 20px; top: -89px; }
  .insight-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Critters shrink into the top-right corner so they never sit on text */
  .critter { opacity: .9; }
  .critter-story { width: 48vw; top: 8px; right: 1vw; }
  .critter-dragon { width: 48vw; top: 20px; }
  .critter-bird { width: 34vw; top: 24px; }
  .critter-plane { width: 60vw; top: 12px; }
  .section { padding-top: clamp(140px, 30vw, 200px); }
}
@media (max-width: 560px) {
  .header { inset-block-start: 10px; }
  .header-bar { height: 56px; gap: 12px; }
  .header-actions .btn { display: none; }
  .brand em { display: none; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .rotator { display: block; }
  .pillars, .service-grid { grid-template-columns: 1fr; }
  .card-i { margin-bottom: 24px; }
  .step { grid-template-columns: 1fr; padding: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .btn-lg { width: 100%; }
}

/* ---------- Legal pages (privacy.html, terms.html) and the form's privacy note ---------- */
.form-note { margin: 4px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--on-dark-3); }
.form-note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-top, .legal-foot { background: var(--navy-deep); color: var(--on-dark); }
.legal-top-bar, .legal-foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.legal-top-bar { min-height: 76px; }
.legal-top .brand-dark { margin-bottom: 0; }
.legal-back { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 500; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.legal { max-width: 760px; padding-block: clamp(48px, 7vw, 96px); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.03em; line-height: 1.05; margin-bottom: 12px; }
.legal-meta { font: 500 .8125rem var(--mono); color: var(--emerald); margin-bottom: 32px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 1.25em; margin: 12px 0; display: grid; gap: 8px; list-style: disc; }
.legal a { color: var(--emerald); text-decoration: underline; text-underline-offset: 3px; }
.legal-foot-bar { min-height: 72px; font-size: .8125rem; color: var(--on-dark-3); }
.legal-foot .footer-legal a:hover, .legal-back:hover { color: var(--mint); }


/* RGB fluid pointer (js/rgb-fluid.js, after Anton Bobrov's "Three.js RGB Fluids"): a full-screen, see-through
   WebGL canvas showing the iridescent liquid the pointer stirs up. Fixed over the page, never catches clicks;
   blended by "difference" so it reads on both the navy and the cream sections. Sized in real screen pixels, so
   it cancels the page zoom. */
.rgb-fluid {
  position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none;
  mix-blend-mode: difference; zoom: calc(1 / var(--vz, 1));
}

/* ---------- Start a project (start.html): the project inquiry page ----------
   Same world as the home page's hero and contact section: deep navy with a soft emerald glow that follows the
   pointer, a quiet star field, one mint-and-marigold line with a loop drawn across the scene, cream type and
   mint accents. Intro on the left, the inquiry form on the right (stacked on narrow screens). */
.start-body { background: var(--navy-deep); color: var(--on-dark); }
.start-top { position: relative; z-index: 3; background: transparent; }
.start-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.start-top .brand-dark { margin-bottom: 0; }
.start-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; font-weight: 500; color: var(--on-dark-2); transition: color var(--fast); }
.start-back .i { width: 18px; height: 18px; transition: translate .35s var(--ease); }
.start-back:hover { color: var(--on-dark); }
.start-back:hover .i { translate: -3px 0; }

.start { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(32px, 5vw, 72px) clamp(72px, 9vw, 128px); }
.start-stars { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.start-glow {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, #0a2740 0%, transparent 60%);   /* a still navy lift at the top */
}
.start-line { position: absolute; left: 0; top: 0; z-index: -1; width: 100%; height: min(100%, 980px); pointer-events: none; overflow: visible; }
.start-line path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.start-line .sl-1 { stroke: var(--mint); stroke-width: 3; opacity: .35; }
.start-line .sl-2 { stroke: var(--marigold); stroke-width: 2; opacity: .3; }

.start-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.start-intro { position: sticky; top: 32px; padding-top: clamp(8px, 2vw, 24px); }
.start-intro .label { margin-bottom: 20px; }
.start-title { font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: .96; letter-spacing: -.05em; }
.start-title .st-line { display: inline-block; }
.start-title em { font-style: normal; color: var(--mint); }
.start-lead { max-width: 44ch; margin-top: 28px; font-size: clamp(1rem, 1.25vw, 1.125rem); color: var(--on-dark-2); }
.start-next { display: grid; gap: 22px; margin-top: clamp(32px, 4vw, 48px); max-width: 46ch; }
.start-next li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.sn-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(92 207 166 / .4); background: rgb(92 207 166 / .08); color: var(--mint); }
.sn-ic .i { width: 20px; height: 20px; }
.start-next h2 { font-size: 1.0625rem; letter-spacing: -.01em; margin: 2px 0 4px; }
.start-next p { font-size: .9375rem; color: var(--on-dark-2); }
.start-alt { display: grid; gap: 10px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: .9375rem; color: var(--on-dark-2); }
.start-alt p { font: 500 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--on-dark-3); margin-bottom: 4px; }
.start-alt a, .start-alt span { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 32px; overflow-wrap: anywhere; transition: color var(--fast); }
.start-alt .i { flex: none; }
.start-alt a:hover { color: var(--on-dark); }
.start-alt .i { width: 18px; height: 18px; color: var(--mint); }

.start-card { position: relative; }
.inquiry {
  gap: 26px; padding: clamp(24px, 3.4vw, 48px);
  background: linear-gradient(160deg, rgb(247 245 241 / .07), rgb(247 245 241 / .025) 55%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 50px 120px -60px rgb(0 0 0 / .8), inset 0 1px 0 rgb(247 245 241 / .08);
}
.inquiry .form-title { font-size: 1.375rem; }
.pick legend span { display: block; height: auto; margin-top: 4px; padding: 0; border: 0; font-size: .8125rem; color: var(--on-dark-3); opacity: .8; }
.pick-multi legend, .pick-budget legend { color: var(--on-dark-2); }
.pick span .i { width: 16px; height: 16px; margin-right: 8px; color: var(--mint); transition: color var(--fast); }
.pick input:checked + span .i { color: var(--emerald); }
.pick-budget span { font-variant-numeric: tabular-nums; }
.pick[aria-invalid="true"] legend { color: #f5a399; }
.pick .field-error { margin-top: 10px; }

/* The pricing note: framed in marigold so it reads as something to notice, with its own tick box. */
.price-note {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 18px 20px;
  border: 1px solid rgb(232 168 60 / .45); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgb(232 168 60 / .12), rgb(232 168 60 / .04));
}
.price-note > .i { width: 22px; height: 22px; color: var(--marigold); margin-top: 1px; }
.price-note-title { font: 500 1rem/1.3 var(--display); color: var(--on-dark); margin-bottom: 6px; }
.price-note p { font-size: .875rem; line-height: 1.55; color: var(--on-dark-2); }
.agree { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: .9375rem; color: var(--on-dark); cursor: pointer; }
.agree input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.agree-box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgb(232 168 60 / .7); transition: background-color var(--fast), border-color var(--fast); }
.agree-box::after { content: ""; width: 6px; height: 11px; border: solid var(--navy); border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -1px; opacity: 0; transition: opacity var(--fast); }
.agree input:checked + .agree-box { background: var(--marigold); border-color: var(--marigold); }
.agree input:checked + .agree-box::after { opacity: 1; }
.agree input:focus-visible + .agree-box { outline: 2px solid var(--mint); outline-offset: 3px; }
.agree[aria-invalid="true"] .agree-box { border-color: #f08a7e; }
.price-note .field-error { margin-top: 8px; }

.inquiry .form-foot { gap: 18px; }
.inquiry-done {
  display: grid; justify-items: start; gap: 16px; padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgb(92 207 166 / .35); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgb(92 207 166 / .12), rgb(247 245 241 / .03) 60%);
}
.inquiry-done[hidden], .inquiry[hidden] { display: none; }
.inquiry-done:focus { outline: none; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--navy-deep); }
.done-ic .i { width: 28px; height: 28px; }
.inquiry-done :is(h2, h3) { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.03em; line-height: 1.05; }
.inquiry-done p { max-width: 46ch; color: var(--on-dark-2); }

@media (max-width: 960px) {
  .start-grid { grid-template-columns: 1fr; }
  .start-intro { position: static; }
  .start-next { max-width: none; }
  /* Phones and tablets: the intro fills the whole width and there is no empty space for the line to run through,
     so it would always cross the words. Leave it out here (the star field and glow stay), and give the intro text
     a soft navy halo so every letter stays crisp over the background. */
  .start-line { display: none; }
  .start-intro :is(.label, .start-title, .start-lead, .start-next h2, .start-next p, .start-alt) {
    text-shadow: 0 0 3px var(--navy-deep), 0 0 10px var(--navy-deep);
  }
  /* A live blur behind a form this tall is heavy to repaint on a phone and makes scrolling stutter. A slightly
     more solid panel reads the same and scrolls smoothly. */
  .inquiry {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: linear-gradient(160deg, color-mix(in srgb, rgb(247 245 241) 7%, var(--navy-deep)), color-mix(in srgb, rgb(247 245 241) 3%, var(--navy-deep)) 55%);
  }
}
@media (max-width: 560px) {
  .inquiry .field-row { grid-template-columns: 1fr; }
  .start-back { font-size: .875rem; }
}
/* Sparkles on the flow lines (js/site.js): same box and stacking as .flow-lines, but at full strength. */
.flow-sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.flow-sparks path { stroke: none; }
