/* ==========================================================================
   WebGLITS — site.css
   Hand-written, no framework, no build step.

   Tokens → base → layout → components → sections → pages → motion states.
   JS adds .js to <html>; everything is readable without it.
   ========================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 400 720;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "TamilSub";
  src: url("../fonts/tamil-sub.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Palette: every value derives from the two brand colours. */
  --abyss: #040A18;      /* page — brand blue taken almost to black */
  --deep: #081631;       /* raised surfaces */
  --tide: #0B408D;       /* brand blue */
  --tide-lit: #3D7BE0;   /* brand blue lifted for text/links on dark */
  --signal: #33AF5D;     /* brand green — action, live */
  --signal-lit: #62D489;
  --ice: #E8EEF8;        /* text */
  --mist: #8A97B0;       /* secondary text */
  --line: rgba(232, 238, 248, .12);
  --line-strong: rgba(232, 238, 248, .24);

  --font: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --font-ta: "TamilSub", "Nirmala UI", "Latha", sans-serif;

  /* Type scale (perfect fourth, fluid). */
  --t-sm: .875rem;
  --t-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --t-lg: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --t-xl: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --t-3xl: clamp(2.6rem, 1.6rem + 5vw, 6.5rem);
  --t-mega: clamp(3.2rem, 1rem + 10.5vw, 12.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(96px, 13vw, 200px);
  --radius-s: 10px;
  --radius-l: 28px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--ice);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, address a, .prose a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; transition: text-decoration-color .3s; }
p a:hover, .prose a:hover { text-decoration-color: var(--signal); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--signal); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
[lang="ta"] { font-family: var(--font-ta); letter-spacing: 0; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--signal); color: var(--abyss); padding: 10px 16px; border-radius: 99px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .6); }
.section + .section { padding-top: calc(var(--section) * .5); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }

/* ---------- Type helpers ---------- */
.display { font-size: var(--t-mega); font-stretch: 80%; font-weight: 700; line-height: .88; letter-spacing: -.03em; }
.h1 { font-size: var(--t-3xl); font-stretch: 82%; font-weight: 680; line-height: .94; letter-spacing: -.025em; }
.h2 { font-size: var(--t-2xl); font-stretch: 86%; font-weight: 650; letter-spacing: -.03em; }
.h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead { font-size: var(--t-lg); line-height: 1.5; color: var(--ice); max-width: 38ch; }
.muted { color: var(--mist); }
.kicker { display: inline-flex; align-items: center; gap: .6em; font-size: var(--t-sm); color: var(--mist); margin-bottom: 1.4rem; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(51, 175, 93, .18); }
.prose { max-width: 62ch; color: #c9d3e5; }
.prose p { margin-bottom: 1.2em; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ice); --fill: var(--ice); --fill-fg: var(--abyss);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 99px; isolation: isolate; overflow: hidden;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 1rem; letter-spacing: -.005em;
  border: 1px solid var(--line-strong); transition: color .45s var(--ease-out), border-color .45s;
  white-space: nowrap; will-change: transform;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 100%; width: 140%; aspect-ratio: 1;
  border-radius: 50%; background: var(--fill); transform: translate(-50%, 0) scale(.2);
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { top: -20%; transform: translate(-50%, 0) scale(1); }
.btn:hover, .btn:focus-visible { color: var(--fill-fg); border-color: var(--fill); }
.btn__label { position: relative; display: inline-block; }
.btn--solid { --bg: var(--signal); --fg: var(--abyss); --fill: var(--ice); border-color: var(--signal); }
.btn--ghost { --fill: var(--signal); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: .7em; font-weight: 600; }
.link-arrow .circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s var(--ease-out), border-color .4s, transform .4s var(--ease-out); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-out); }
.link-arrow:hover .circle { background: var(--signal); border-color: var(--signal); color: var(--abyss); }
.link-arrow:hover svg { transform: rotate(-45deg); }

/* ---------- Header bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 90; height: 84px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--gutter); transition: transform .5s var(--ease-out), background .4s, height .4s;
}
.bar.is-scrolled { background: rgba(4, 10, 24, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); height: 70px; border-bottom: 1px solid var(--line); }
.bar.is-hidden { transform: translateY(-100%); }
.menu-open .bar { background: transparent; border-color: transparent; backdrop-filter: none; transform: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.brand__mark { width: 42px; height: auto; filter: drop-shadow(0 0 14px rgba(61, 123, 224, .35)); }
.brand__word { font-weight: 700; font-size: 1.25rem; font-stretch: 85%; letter-spacing: -.03em; }
.bar__nav { display: none; gap: 32px; font-size: .9375rem; }
.bar__nav a { position: relative; color: #c9d3e5; overflow: hidden; display: inline-block; height: 1.6em; }
.bar__nav a[aria-current] { color: var(--ice); }
.bar__nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal); }
.bar__nav a span { display: inline-block; transition: transform .5s var(--ease-out); }
.bar__nav a span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--signal-lit); }
.bar__nav a:hover span { transform: translateY(-100%); }
.bar__end { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.bar__end .btn { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 18px; border-radius: 99px; border: 1px solid var(--line-strong); font-size: .9375rem; font-weight: 500; }
.menu-toggle__lines { width: 32px; height: 32px; border-radius: 50%; background: var(--ice); display: grid; place-content: center; gap: 4px; }
.menu-toggle__lines span { display: block; width: 12px; height: 1.5px; background: var(--abyss); transition: transform .5s var(--ease-out); }
.menu-open .menu-toggle__lines span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-toggle__lines span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

@media (min-width: 1024px) {
  .bar__nav { display: flex; }
  .bar__end .btn { display: inline-flex; }
}

/* ---------- Fullscreen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.menu-open .menu { visibility: visible; pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, #0d2a5c 0%, var(--abyss) 60%); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.menu-open .menu__bg { clip-path: inset(0 0 0 0); }
.menu__grid { position: relative; height: 100%; overflow-y: auto; display: grid; align-content: center; gap: 48px; padding: 110px var(--gutter) 48px; }
.menu__links { display: flex; flex-direction: column; }
.menu__link { display: block; overflow: hidden; font-size: clamp(2.6rem, 8vw, 6.5rem); font-stretch: 78%; font-weight: 680; line-height: 1.02; letter-spacing: -.025em; color: var(--ice); }
.menu__link-inner { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out), color .3s; }
.menu-open .menu__link-inner { transform: none; }
.menu__link:nth-child(2) .menu__link-inner { transition-delay: .05s; }
.menu__link:nth-child(3) .menu__link-inner { transition-delay: .1s; }
.menu__link:nth-child(4) .menu__link-inner { transition-delay: .15s; }
.menu__link:nth-child(5) .menu__link-inner { transition-delay: .2s; }
.menu__link:nth-child(6) .menu__link-inner { transition-delay: .25s; }
.menu__link:nth-child(7) .menu__link-inner { transition-delay: .3s; }
.menu-open .menu__link-inner { transition-delay: calc(.25s + var(--d, 0s)); }
.menu__link:hover .menu__link-inner, .menu__link[aria-current] .menu__link-inner { color: var(--signal-lit); }
.menu__side { display: grid; gap: 28px; color: #c9d3e5; opacity: 0; transform: translateY(20px); transition: opacity .6s .1s, transform .8s var(--ease-out); }
.menu-open .menu__side { opacity: 1; transform: none; transition-delay: .55s; }
.menu__muted { color: var(--mist); font-size: var(--t-sm); margin-bottom: .4em; }
.menu__big { display: block; font-size: var(--t-lg); color: var(--ice); }
.menu__social { display: flex; flex-wrap: wrap; gap: 18px; }
.menu__social a:hover, .menu__big:hover { color: var(--signal-lit); }
@media (min-width: 900px) {
  .menu__grid { grid-template-columns: 1.6fr 1fr; align-items: end; }
}

/* ---------- Loader / wipe / cursor / grain / progress ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--abyss); display: none; place-items: center; }
.is-loading .loader { display: grid; }
.loader.is-done { pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loader__ta { font-size: clamp(2rem, 6vw, 4rem); color: var(--ice); }
.loader__count { font-size: var(--t-sm); color: var(--mist); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(0); }

.wipe { position: fixed; inset: 0; z-index: 150; pointer-events: none; display: grid; overflow: hidden; }
.wipe span { grid-area: 1 / 1; transform: translateY(100%); }
.wipe span:first-child { background: var(--tide); }
.wipe span:last-child { background: var(--deep); }

.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--signal-lit); }
.cursor__ring { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 1px solid rgba(232, 238, 248, .35); display: grid; place-items: center; transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s, border-color .3s; }
.cursor__label { font-size: .8125rem; font-weight: 600; color: var(--abyss); opacity: 0; white-space: nowrap; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--signal); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--signal); border-color: var(--signal); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }



.grain { position: fixed; inset: 0; z-index: 120; pointer-events: none; opacity: .05; background: url("../img/noise.png") repeat; }
@media (max-width: 899px) { .grain { display: none; } }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 95; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--tide-lit), var(--signal)); transform-origin: left; transform: scaleX(0); }

/* ---------- Home hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 120px 0 clamp(32px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.hero__gl { position: absolute; inset: 0; z-index: -1; }
.hero__gl canvas { width: 100%; height: 100%; }
.hero__gl::before { /* static fallback: shown until/unless WebGL draws */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 72%, rgba(11, 64, 141, .55), transparent 70%),
    radial-gradient(40% 40% at 30% 85%, rgba(51, 175, 93, .22), transparent 70%),
    radial-gradient(80% 60% at 50% 120%, rgba(11, 64, 141, .5), transparent 70%);
  transition: opacity 1.2s;
}
.hero__gl.is-live::before { opacity: .35; }
.hero__gl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--abyss) 0%, transparent 28%, transparent 60%, var(--abyss) 100%); }
.hero__top { position: absolute; top: 112px; left: 0; right: 0; }
.hero__top .wrap { display: flex; justify-content: space-between; gap: 24px; color: var(--mist); font-size: var(--t-sm); }
.hero__ta { color: var(--ice); font-size: 1rem; }
.hero__title { font-size: clamp(3rem, .8rem + 8.6vw, 10.5rem); font-stretch: 80%; font-weight: 680; line-height: .9; letter-spacing: -.015em; max-width: 13ch; }
.hero__title .line-tide { color: transparent; -webkit-text-stroke: 1.5px rgba(232, 238, 248, .75); }
.hero__foot { display: grid; gap: 28px; margin-top: clamp(28px, 4vw, 56px); align-items: end; }
.hero__foot .lead { color: #c9d3e5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: none; align-items: center; gap: 12px; color: var(--mist); font-size: var(--t-sm); justify-self: end; }
.hero__scroll i { width: 1px; height: 48px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--signal); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
@media (min-width: 900px) {
  .hero__foot { grid-template-columns: 1fr auto; gap: 48px; padding-right: 88px; }
}

/* ---------- Statement (word-by-word light-up) ---------- */
.statement__text { font-size: var(--t-2xl); font-stretch: 88%; font-weight: 560; line-height: 1.12; letter-spacing: -.03em; max-width: 24ch; }
.js .statement__text .word { opacity: .16; }
.statement__aside { margin-top: 48px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; color: var(--mist); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(24px, 4vw, 48px); border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { font-size: clamp(2.4rem, 7vw, 6rem); font-stretch: 76%; font-weight: 680; letter-spacing: -.025em; line-height: 1; padding-inline: .35em; white-space: nowrap; }
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(232, 238, 248, .5); }
.marquee__dot { width: .28em; height: .28em; flex: none; border-radius: 50%; background: var(--signal); font-size: clamp(2.4rem, 7vw, 6rem); }
.js .marquee__track { animation: none; }
.no-js .marquee__track, .reduced .marquee__track { animation: none; }

/* ---------- Section head ---------- */
.shead { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); }
.shead__title { font-size: var(--t-3xl); font-stretch: 80%; font-weight: 680; line-height: .94; letter-spacing: -.025em; max-width: 14ch; }
.shead__side { color: var(--mist); max-width: 42ch; }
@media (min-width: 900px) {
  .shead { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .shead__side { justify-self: end; }
}

/* ---------- Service rows ---------- */
.srows { border-top: 1px solid var(--line); }
.srow { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 24px; padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--line); isolation: isolate; }
.srow::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: linear-gradient(90deg, rgba(11, 64, 141, .35), rgba(51, 175, 93, .12)); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.srow:hover::before, .srow:focus-visible::before { transform: scaleY(1); transform-origin: top; }
.srow__name { font-size: clamp(1.8rem, 4.6vw, 4.25rem); font-stretch: 80%; font-weight: 650; letter-spacing: -.035em; line-height: 1; transition: transform .6s var(--ease-out); }
.srow:hover .srow__name { transform: translateX(clamp(8px, 1.5vw, 24px)); }
.srow__short { grid-column: 1 / -1; color: var(--mist); max-width: 52ch; margin: 0; }
.srow .circle { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.srow .circle svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.srow:hover .circle { background: var(--signal); border-color: var(--signal); color: var(--abyss); }
.srow:hover .circle svg { transform: rotate(-45deg); }
@media (min-width: 900px) {
  .srow { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; }
  .srow__short { grid-column: auto; }
}

/* ---------- Work: horizontal track ---------- */
.hwork { overflow: hidden; }
.hwork__track { display: flex; gap: clamp(16px, 3vw, 40px); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.hwork__track::-webkit-scrollbar { display: none; }
.is-pinned-ready .hwork__track { overflow: visible; width: max-content; }
.wcard { flex: 0 0 min(84vw, 640px); scroll-snap-align: start; display: block; }
.wcard__frame { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--deep); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; grid-template-rows: auto 1fr; }
.wcard__chrome { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.wcard__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.wcard__chrome span { margin-left: 10px; font-size: .78rem; color: var(--mist); }
.wcard__shot { position: relative; overflow: hidden; }
.wcard__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.wcard:hover .wcard__shot img { transform: scale(1); }
.wcard__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding-top: 20px; }
.wcard__name { font-size: var(--t-xl); font-weight: 620; letter-spacing: -.02em; }
.wcard__type { color: var(--mist); font-size: var(--t-sm); }
.wcard--more { display: grid; place-items: center; border-radius: var(--radius-l); border: 1px dashed var(--line-strong); aspect-ratio: 4 / 3; align-self: start; text-align: center; padding: 32px; }
.wcard--more strong { display: block; font-size: var(--t-2xl); font-stretch: 82%; letter-spacing: -.03em; margin-bottom: 12px; }

/* ---------- Figures ---------- */
.figs { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.fig { background: var(--abyss); padding: clamp(28px, 4vw, 56px) 0; }
.fig__num { font-size: clamp(3.5rem, 9vw, 8.5rem); font-stretch: 76%; font-weight: 700; letter-spacing: -.03em; line-height: .9; font-variant-numeric: tabular-nums; }
.fig__num sup { font-size: .45em; color: var(--signal); vertical-align: top; position: relative; top: .1em; }
.fig__label { color: var(--mist); margin-top: 12px; }
@media (min-width: 700px) { .figs { grid-template-columns: repeat(2, 1fr); } .fig { padding-inline: clamp(16px, 2vw, 32px); } }
@media (min-width: 1100px) { .figs { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Product stack ---------- */
.pstack { display: grid; gap: 24px; }
.pcard { position: sticky; top: 96px; display: grid; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius-l); background: var(--deep); border: 1px solid var(--line); overflow: hidden; min-height: min(78vh, 640px); isolation: isolate; transform-origin: center top; }
.pcard::before { content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%; z-index: -1; background: radial-gradient(closest-side, var(--glow, rgba(11, 64, 141, .6)), transparent); filter: blur(10px); }
.pcard:nth-child(2) { --glow: rgba(51, 175, 93, .35); top: 112px; }
.pcard:nth-child(3) { --glow: rgba(61, 123, 224, .45); top: 128px; }
.pcard:nth-child(4) { --glow: rgba(98, 212, 137, .3); top: 144px; }
.pcard__kind { color: var(--signal-lit); font-size: var(--t-sm); margin-bottom: 10px; }
.pcard__name { font-size: var(--t-3xl); font-stretch: 78%; font-weight: 700; letter-spacing: -.03em; line-height: .9; margin-bottom: 20px; }
.pcard__text { color: #c9d3e5; max-width: 44ch; margin-bottom: 28px; }
.pcard__img { justify-self: center; width: min(62vw, 300px); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
@media (min-width: 900px) {
  .pcard { grid-template-columns: 1.2fr 1fr; }
  .pcard__img { width: min(26vw, 320px); }
}

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; counter-reset: step; }
.step { background: var(--abyss); padding: clamp(24px, 3vw, 40px); position: relative; transition: background .5s; }
.step:hover { background: var(--deep); }
.step__n { font-size: clamp(2.6rem, 5vw, 4rem); font-stretch: 76%; font-weight: 700; letter-spacing: -.025em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--tide-lit); margin-bottom: 28px; display: block; }
.step__title { font-size: var(--t-xl); font-weight: 620; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: var(--mist); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Process page: vertical timeline */
.timeline { position: relative; display: grid; gap: clamp(48px, 8vw, 120px); padding-left: clamp(32px, 6vw, 96px); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; left: 7px; top: 8px; width: 1px; height: calc(100% - 16px); background: linear-gradient(var(--tide-lit), var(--signal)); transform-origin: top; transform: scaleY(0); }
.no-js .timeline__fill, .reduced .timeline__fill { transform: scaleY(1); }
.tstep { position: relative; display: grid; gap: 16px; }
.tstep::before { content: ""; position: absolute; left: calc(clamp(32px, 6vw, 96px) * -1); top: .5em; width: 15px; height: 15px; border-radius: 50%; background: var(--abyss); border: 1px solid var(--signal); }
.tstep__n { color: var(--signal-lit); font-size: var(--t-sm); }
.tstep__title { font-size: var(--t-2xl); font-stretch: 84%; letter-spacing: -.03em; }
.tstep p { color: #c9d3e5; max-width: 56ch; font-size: var(--t-lg); }

/* ---------- Testimonials ---------- */
.quotes { position: relative; display: grid; }
.quote { grid-area: 1 / 1; display: grid; gap: 32px; align-content: start; }
.js .quote { opacity: 0; visibility: hidden; }
.js .quote.is-active { opacity: 1; visibility: visible; }
.quote__text { font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); font-stretch: 90%; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; max-width: 30ch; margin: 0; }
.quote__text::before { content: "“"; color: var(--signal); margin-right: .05em; }
.quote__text::after { content: "”"; color: var(--signal); }
.quote__who { display: flex; align-items: center; gap: 16px; }
.quote__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #fff; }
.quote__who strong { display: block; font-weight: 620; }
.quote__who span { color: var(--mist); font-size: var(--t-sm); }
.quotes__nav { display: flex; gap: 12px; margin-top: 48px; align-items: center; }
.quotes__btn { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .3s, color .3s, border-color .3s; }
.quotes__btn:hover { background: var(--ice); color: var(--abyss); border-color: var(--ice); }
.quotes__btn svg { width: 18px; height: 18px; }
.quotes__count { margin-left: 12px; color: var(--mist); font-variant-numeric: tabular-nums; font-size: var(--t-sm); }
.no-js .quotes__nav { display: none; }
.no-js .quotes { gap: 64px; }
.no-js .quote { grid-area: auto; }

/* ---------- Client logos ---------- */
.logos { overflow: hidden; background: var(--abyss); isolation: isolate; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__track { display: flex; width: max-content; gap: clamp(32px, 5vw, 72px); animation: slide 40s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track img { height: 44px; width: auto; filter: grayscale(1) invert(1) brightness(1.4) contrast(1.2); mix-blend-mode: screen; opacity: .7; transition: opacity .3s; }
.logos__track img:hover { opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CTA (footer) ---------- */
.cta { padding-block: var(--section); border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; left: 50%; bottom: -55%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 64, 141, .55), rgba(51, 175, 93, .12) 60%, transparent); }
.cta__kicker { color: var(--mist); font-size: var(--t-lg); }
.cta__title { font-size: var(--t-mega); font-stretch: 76%; font-weight: 700; line-height: .88; letter-spacing: -.03em; max-width: 11ch; margin: 16px 0 48px; }
.cta__link { transition: color .4s; }
.cta__link:hover { color: var(--signal-lit); }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.cta__phone { font-size: var(--t-lg); margin-left: 8px; color: #c9d3e5; }
.cta__phone:hover { color: var(--signal-lit); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 112px); overflow: hidden; color: #c9d3e5; font-size: .9375rem; }
.foot__grid { display: grid; gap: 40px; }
.foot__about p { max-width: 34ch; margin-top: 20px; color: var(--mist); }
.foot__head { color: var(--ice); font-weight: 600; margin-bottom: 14px; }
.foot__head--gap { margin-top: 28px; }
.foot__col li { margin-bottom: 8px; }
.foot__col a:hover, .foot__social a:hover, .foot__contact a:hover { color: var(--signal-lit); }
.foot__muted { color: var(--mist); }
.foot__contact { margin-top: 16px; }
.foot__contact a, .foot address a { text-decoration: none; }
.foot__social { display: flex; flex-wrap: wrap; gap: 14px; }
.foot__giant { margin-top: clamp(48px, 8vw, 96px); line-height: .75; text-align: center; overflow: hidden; }
.foot__giant span { display: inline-block; font-size: 22.5vw; font-stretch: 75%; font-weight: 720; letter-spacing: -.06em; background: linear-gradient(180deg, rgba(61, 123, 224, .55), rgba(4, 10, 24, 0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px; border-top: 1px solid var(--line); color: var(--mist); font-size: var(--t-sm); }
.foot__base p { margin: 0; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }

/* ---------- Quote tab + modal + forms ---------- */
.quote-tab { position: fixed; left: 16px; bottom: 20px; z-index: 70; height: 44px; padding: 0 18px; border-radius: 99px; background: var(--ice); color: var(--abyss); font-weight: 600; font-size: .9375rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .4s var(--ease-out), background .3s; }
.quote-tab:hover { background: var(--signal); transform: translateY(-3px); }
.js .quote-tab { opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out), background .3s; }
.js.past-hero .quote-tab { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 899px) { .hero { padding-bottom: 104px; } }
.menu-open .quote-tab { opacity: 0; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(2, 6, 16, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(100%, 520px); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 44px); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.modal__title { font-size: var(--t-2xl); font-stretch: 84%; margin-bottom: 8px; }
.modal__sub { color: var(--mist); margin-bottom: 28px; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); }
.modal__close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ice); }
.modal__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.modal__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 0 10px; background: transparent; color: var(--ice); font: inherit; font-size: 1.0625rem;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: none; transition: border-color .3s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--deep); color: var(--ice); }
.field label { position: absolute; left: 0; top: 26px; color: var(--mist); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--signal); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-20px) scale(.8); color: var(--signal-lit); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; min-height: 1.5em; font-size: .9375rem; }
.form__status.is-ok { color: var(--signal-lit); }
.form__status.is-err { color: #ff8a8a; }

/* ---------- Inner page hero ---------- */
.phero { position: relative; padding: clamp(150px, 20vw, 240px) 0 clamp(56px, 8vw, 112px); isolation: isolate; overflow-x: clip; }
.phero::before { content: ""; position: absolute; z-index: -1; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px; right: -20vw; top: -40vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 64, 141, .55), transparent); }
.phero::after { content: ""; position: absolute; z-index: -1; width: 40vw; height: 40vw; left: -10vw; bottom: -20vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(51, 175, 93, .14), transparent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--t-sm); color: var(--mist); margin-bottom: 28px; }
.crumbs a:hover { color: var(--ice); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.phero__title { font-size: var(--t-mega); font-stretch: 76%; font-weight: 700; line-height: .88; letter-spacing: -.03em; max-width: 13ch; }
.phero__title--long { font-size: var(--t-3xl); max-width: 18ch; line-height: .95; }
.phero__lead { margin-top: clamp(24px, 4vw, 48px); font-size: var(--t-lg); max-width: 46ch; color: #c9d3e5; }

/* ---------- Split two-column ---------- */
.split { display: grid; gap: 40px; }
.split__sticky { align-self: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 112px); }
  .split__sticky { position: sticky; top: 120px; }
}

/* ---------- Feature list (service includes) ---------- */
.feats { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.feat { background: var(--abyss); padding: 28px 0; display: grid; gap: 8px; }
.feat__title { font-size: var(--t-lg); font-weight: 620; letter-spacing: -.015em; display: flex; gap: 14px; align-items: baseline; }
.feat__title::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); transform: translateY(-2px); }
.feat p { color: var(--mist); margin: 0; padding-left: 22px; }
@media (min-width: 700px) {
  .feats { grid-template-columns: 1fr 1fr; column-gap: 0; }
  .feat { padding: 32px clamp(16px, 2vw, 28px); }
  .feat:nth-child(odd) { padding-left: 0; }
}

/* ---------- Chips (who it's for) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line-strong); color: #c9d3e5; font-size: .9375rem; transition: border-color .3s, color .3s, background .3s; }
.chip:hover { border-color: var(--signal); color: var(--ice); background: rgba(51, 175, 93, .08); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-size: var(--t-lg); font-weight: 600; letter-spacing: -.015em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .3s, transform .5s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease-out); }
.faq details[open] summary i { background: var(--signal); color: var(--abyss); border-color: var(--signal); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { color: #c9d3e5; max-width: 62ch; padding-bottom: 26px; margin: 0; }

/* ---------- Cards grid (services index, products index, related) ---------- */
.cards { display: grid; gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 300px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); background: var(--deep); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .4s, transform .6s var(--ease-out); }
.card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 120%), rgba(51, 175, 93, .16), transparent 60%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card__title { font-size: var(--t-xl); font-weight: 640; letter-spacing: -.02em; }
.card__text { color: var(--mist); margin: 12px 0 0; }
.card__foot { display: flex; justify-content: space-between; align-items: center; }
.card .circle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .4s, color .4s, border-color .4s; }
.card .circle svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.card:hover .circle { background: var(--signal); border-color: var(--signal); color: var(--abyss); }
.card:hover .circle svg { transform: rotate(-45deg); }
.card__img { width: 120px; align-self: flex-end; margin: -8px -8px 0 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Work index (list with image follow) ---------- */
.wlist { border-top: 1px solid var(--line); }
.witem { display: grid; gap: 16px; padding: clamp(24px, 4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.witem__name { font-size: clamp(2rem, 5.5vw, 5rem); font-stretch: 78%; font-weight: 680; letter-spacing: -.025em; line-height: 1; transition: color .3s, transform .6s var(--ease-out); }
.witem:hover .witem__name { color: var(--signal-lit); transform: translateX(16px); }
.witem__type { color: var(--mist); }
.witem__line { color: #c9d3e5; margin: 0; max-width: 46ch; }
.witem__shot { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 900px) {
  .witem { grid-template-columns: 1.5fr 1fr 1.2fr; }
  .has-cursor .witem__shot { display: none; }
}
.wfollow { position: fixed; left: 0; top: 0; z-index: 60; width: 380px; aspect-ratio: 420 / 294; border-radius: 16px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.8); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.wfollow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s; }
.wfollow img.is-on { opacity: 1; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.cinfo { display: grid; gap: 36px; align-content: start; }
.cinfo__item p { margin: 0; }
.cinfo__label { color: var(--mist); font-size: var(--t-sm); margin-bottom: 6px !important; }
.cinfo__big { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.02em; }
.cinfo__big a { text-decoration: none; }
.cinfo__big a:hover { color: var(--signal-lit); }
.map { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--deep); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(185deg) saturate(.6) brightness(.9); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }

/* ---------- Product page ---------- */
.prod-hero { display: grid; gap: 48px; align-items: center; }
.prod-hero__img { justify-self: center; width: min(70vw, 340px); filter: drop-shadow(0 50px 80px rgba(0, 0, 0, .6)); }
@media (min-width: 900px) { .prod-hero { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Areas page ---------- */
.areas { display: grid; gap: 16px; }
.area { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--deep); }
.area h3 { font-size: var(--t-2xl); font-stretch: 84%; margin-bottom: 16px; }
.area p { color: #c9d3e5; margin: 0; }
@media (min-width: 900px) { .areas { grid-template-columns: 1fr 1fr; } }
.place-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- Values (studio page) ---------- */
.values { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.value { background: var(--abyss); padding: clamp(28px, 4vw, 48px) 0; display: grid; gap: 12px; }
.value h3 { font-size: var(--t-xl); font-weight: 620; letter-spacing: -.02em; }
.value p { color: var(--mist); margin: 0; max-width: 46ch; }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } .value { padding-inline: clamp(16px, 2vw, 32px); } .value:first-child { padding-left: 0; } }

.vm { display: grid; gap: 16px; }
.vm__item { padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-l); border: 1px solid var(--line); }
.vm__item h3 { color: var(--signal-lit); font-size: var(--t-sm); font-weight: 500; margin-bottom: 16px; letter-spacing: 0; }
.vm__item p { font-size: var(--t-xl); font-weight: 520; line-height: 1.3; letter-spacing: -.02em; margin: 0; }
@media (min-width: 900px) { .vm { grid-template-columns: 1fr 1fr; } }

/* ---------- Error pages ---------- */
.err { min-height: 100svh; display: grid; align-content: center; padding: 140px 0 80px; }
.err__code { font-size: clamp(7rem, 30vw, 24rem); font-stretch: 75%; font-weight: 720; line-height: .8; letter-spacing: -.06em; background: linear-gradient(180deg, var(--tide-lit), rgba(4, 10, 24, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Motion initial states (only when JS + motion allowed) ---------- */
.js:not(.reduced) [data-reveal]:not([data-hero] *) { opacity: 0; transform: translateY(32px); }
.js:not(.reduced) [data-split]:not([data-hero] *) { visibility: hidden; }
/* Hero content animates in with CSS from first paint (fast LCP); JS leaves it alone. */
[data-hero] [data-split], [data-hero] [data-reveal] { animation: hero-fade 1.2s cubic-bezier(.16, 1, .3, 1) both; }
[data-hero] [data-split] { animation-name: hero-rise; animation-duration: 1.4s; animation-delay: .06s; }
[data-hero] p[data-reveal], [data-hero] .phero__lead { animation-delay: .25s; }
[data-hero] .hero__ctas[data-reveal], [data-hero] div[data-reveal] { animation-delay: .35s; }
@keyframes hero-rise { from { opacity: .01; transform: translateY(.35em); } }
.js:not(.reduced) [data-mask] { clip-path: inset(100% 0 0 0); }
.split-line { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.hero__gl canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero__gl.is-live canvas { opacity: 1; }
.cursor__dot { display: none; }
.menu-open #ai-chat-widget, .modal:not([hidden]) ~ #ai-chat-widget { visibility: hidden !important; }

/* Home hero intro: pure CSS so the headline paints immediately (good LCP).
   Paused behind the desktop preloader via html.is-loading. */
.hl { display: block; overflow: clip; padding-bottom: .04em; margin-bottom: -.04em; }
.hl > span { display: inline-block; animation: hl-rise 1.3s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.12s + var(--i, 0) * .1s); }
.hero-fade { animation: hero-fade 1.2s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.35s + var(--i, 0) * .08s); }
@keyframes hl-rise { from { transform: translateY(102%); } }
@keyframes hero-fade { from { opacity: .01; transform: translateY(24px); } }
.is-loading .hl > span, .is-loading .hero-fade { animation-play-state: paused; }

/* ---------- Photo band ---------- */
.photo { position: relative; margin: 0; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--deep); border: 1px solid var(--line); }
.photo__in { position: absolute; inset: -8% 0; }
.photo__in img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 10, 24, .75)); pointer-events: none; }
.photo figcaption { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(14px, 2.5vw, 28px); z-index: 1; color: #c9d3e5; font-size: var(--t-sm); }
@media (min-width: 800px) { .photo { aspect-ratio: 21 / 9; } }
