/* ==========================================================================
   NUNNARIVU.AI — styles.css  (light edition)
   Paper, ink and the logo's indigo/violet/gold. Cinematic light, not neon dark.
   Type: Outfit (display) + Manrope (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --paper: #F6F4EF;        /* page */
  --ivory: #FFFFFF;        /* raised surfaces */
  --mist: #ECE9E2;         /* recessed surfaces */
  --ink: #12111F;          /* primary text, from the wordmark */
  --ink-soft: #5B5A6E;     /* secondary text */
  --ink-dim: #8C8A9C;      /* tertiary text */
  --indigo: #1E1A5E;       /* wordmark indigo */
  --violet: #5B4BD6;       /* primary accent, from the emblem */
  --gold: #D48A2E;         /* warm accent, from the emblem's lens */
  --line: rgba(18, 17, 31, 0.10);
  --line-strong: rgba(18, 17, 31, 0.24);

  --font-display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --container: 1520px;
  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 14vw, 200px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);

  --nav-h: 88px;
  --nav-h-compact: 64px;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.is-loading, body.menu-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

.skip { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-200%); transition: transform .2s; }
.skip:focus { transform: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); max-width: 1100px; }
.section-head--wide { max-width: 1300px; }
.section-head--split { grid-template-columns: 1.4fr 1fr; align-items: end; max-width: none; }
.section-head__title { font-size: clamp(38px, 5.4vw, 88px); line-height: .98; color: var(--indigo); }
.section-head__text { color: var(--ink-soft); font-size: clamp(16px, 1.2vw, 20px); max-width: 52ch; }

/* Split-text wrappers (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* Reveal helper */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--ease-out); }
.no-motion [data-reveal], [data-reveal].is-shown { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: color .3s, background-color .3s, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; display: inline-block; }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--violet); box-shadow: 0 12px 32px rgba(91,75,214,.28); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ivory); }
.btn--lg { min-height: 60px; padding: 0 40px; font-size: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink); padding-bottom: 4px;
  background: linear-gradient(var(--violet), var(--violet)) no-repeat 0 100% / 0 1px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--violet); }

/* ---------- Media placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--mist); }
.media--fill { position: absolute; inset: 0; }
.media__video, .media__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.media__video.is-loaded, .media__img.is-loaded { opacity: 1; }
.media__video--hover { z-index: 2; }
.media__ph {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, var(--ph-a, #E4E1F5) 0%, transparent 60%),
    radial-gradient(90% 80% at 85% 90%, var(--ph-b, #E9E4DA) 0%, transparent 55%),
    linear-gradient(160deg, #EFEDE7 0%, #DEDBD4 100%);
  transition: opacity 1.2s ease;
}
.media__ph::before {              /* soft key light */
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(50% 40% at var(--ph-x, 30%) var(--ph-y, 30%), rgba(255,255,255,.7), transparent 70%);
}
.media__ph::after {               /* obvious professional label */
  content: attr(data-label);
  position: absolute; left: 18px; bottom: 16px;
  font-size: 11px; letter-spacing: .04em; color: var(--ink-soft);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(6px); pointer-events: none;
}
.media__img.is-loaded ~ .media__ph, .media__video.is-loaded ~ .media__ph { opacity: 0; }
.pillar .media__ph::after, .project .media__ph::after { top: 16px; bottom: auto; left: auto; right: 16px; }

/* Placeholder tones — pale, cinematic, drawn from the logo */
.media__ph--hero      { --ph-a: #D9D3F2; --ph-b: #F1E4CF; --ph-x: 65%; --ph-y: 40%; }
.media__ph--violet    { --ph-a: #D5CFF3; --ph-b: #ECE9F7; --ph-x: 30%; --ph-y: 20%; }
.media__ph--lime      { --ph-a: #F3E3C7; --ph-b: #F0EBDF; --ph-x: 70%; --ph-y: 30%; }
.media__ph--steel     { --ph-a: #DDDEE4; --ph-b: #ECEBEA; --ph-x: 50%; --ph-y: 15%; }
.media__ph--horizon   { --ph-a: #CFD5E6; --ph-b: #E7E4DD; --ph-x: 50%; --ph-y: 60%; }
.media__ph--monsoon   { --ph-a: #CFC6EE; --ph-b: #D8E6E0; --ph-x: 20%; --ph-y: 80%; }
.media__ph--origin    { --ph-a: #E6E1D6; --ph-b: #D9D7D3; --ph-x: 50%; --ph-y: 35%; }
.media__ph--afterlight{ --ph-a: #D9E9CF; --ph-b: #D6CDF0; --ph-x: 80%; --ph-y: 25%; }
.media__ph--meridian  { --ph-a: #EAD9C4; --ph-b: #E2DBD1; --ph-x: 50%; --ph-y: 10%; }
.media__ph--signal    { --ph-a: #C8D2EC; --ph-b: #E8E6E1; --ph-x: 75%; --ph-y: 55%; }
.media__ph--showcase  { --ph-a: #D2CBEF; --ph-b: #EDE3D0; --ph-x: 50%; --ph-y: 50%; }
.media__ph--product   { --ph-a: transparent; --ph-b: transparent; background: none; }
.media__ph--product::before { display: none; }

/* ---------- Film grain & progress ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .06; mix-blend-mode: multiply;
  animation: grain 1.6s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); }
  60% { transform: translate(-1%,3%); } 80% { transform: translate(3%,-1%); } 100% { transform: translate(0,0); }
}
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 950; background: var(--violet); transform-origin: 0 0; transform: scaleX(0); pointer-events: none; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 1200; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 4vw, 48px); }
.preloader__mark { margin: auto 0; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.preloader__emblem { width: clamp(72px, 12vw, 180px); height: auto; }
.preloader__text { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(40px, 8vw, 120px); line-height: .95; overflow: hidden; display: inline-block; }
.preloader__word, .preloader__dot { display: inline-block; transform: translateY(110%); }
.preloader__word { color: var(--ink); } .preloader__dot { color: var(--indigo); }
.preloader__meta { display: flex; align-items: center; gap: 24px; }
.preloader__pct { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-soft); min-width: 3ch; }
.preloader__line { flex: 1; height: 1px; background: var(--line); position: relative; }
.preloader__bar { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 0; transform: scaleX(0); }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 1100; pointer-events: none; display: none; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; background: var(--ink); margin: -3px 0 0 -3px; }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(18,17,31,.45);
  display: flex; align-items: center; justify-content: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s; }
.cursor.is-button .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(18,17,31,.2); }
.cursor.is-image .cursor__ring { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.cursor.is-view .cursor__ring, .cursor.is-play .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--violet); border-color: var(--violet); }
.cursor.is-view .cursor__label, .cursor.is-play .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot, .cursor.is-play .cursor__dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cursor.is-enabled { display: block; } body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; } }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; height: var(--nav-h); transition: height .5s var(--ease-out), background-color .5s, border-color .5s, transform .6s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { height: var(--nav-h-compact); background: rgba(246,244,239,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav__logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: 30px; line-height: 1; color: var(--ink); }
.nav__logo-mark { width: 60px; height: auto; transition: width .5s var(--ease-out); }
.nav.is-scrolled .nav__logo-mark { width: 28px; }
.nav__logo-ext { color: var(--indigo); }
.nav__links { display: flex; gap: 40px; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav__links a { position: relative; padding: 6px 0; transition: color .3s; font-variant-numeric: tabular-nums; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--violet); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__links a:hover, .nav__links a:focus-visible, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: 0 22px; font-size: 14px; }
.nav__burger { display: none; width: 48px; height: 48px; position: relative; margin-right: -12px; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.nav__burger span:first-child { top: 20px; } .nav__burger span:last-child { top: 28px; }
.nav__burger.is-open span:first-child { top: 24px; transform: rotate(45deg); }
.nav__burger.is-open span:last-child { top: 24px; transform: rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 790; background: var(--ivory); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter); padding-bottom: 40px; }
.menu__links { display: grid; gap: 6px; margin-bottom: 56px; }
.menu__links a { display: flex; align-items: baseline; gap: 18px; font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(38px, 10vw, 68px); line-height: 1; padding: 6px 0; color: var(--ink); opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); }
.menu__links a small { font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--ink-dim); letter-spacing: 0; }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: .25s } .menu.is-open .menu__links a:nth-child(2) { transition-delay: .3s }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .35s } .menu.is-open .menu__links a:nth-child(4) { transition-delay: .4s } .menu.is-open .menu__links a:nth-child(5) { transition-delay: .45s }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; clip-path: inset(0 0 0 0); }
.hero__media { position: absolute; inset: -6%; will-change: transform; }
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 70% 35%, rgba(91,75,214,.28), transparent 70%),
    radial-gradient(28% 40% at 20% 85%, rgba(212,138,46,.22), transparent 70%);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,244,239,.55) 0%, rgba(246,244,239,.15) 40%, rgba(246,244,239,.8) 80%, var(--paper) 100%); }
.hero__content { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 8vh); padding-bottom: 6vh; }
.hero__eyebrow { font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: clamp(24px, 4vh, 48px); }
.hero__title { font-size: clamp(56px, 10.5vw, 184px); line-height: .92; letter-spacing: -.045em; color: var(--ink); margin-bottom: clamp(32px, 5vh, 64px); }
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__word { display: block; transform: translateY(105%); will-change: transform; }
.hero__row { display: grid; grid-template-columns: minmax(0, 520px) auto; justify-content: space-between; align-items: end; gap: 32px 64px; }
.hero__lede { color: var(--ink-soft); font-size: clamp(16px, 1.3vw, 21px); max-width: 44ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; color: var(--ink-dim); text-transform: uppercase; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 40px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: scrollHint 2.4s var(--ease-in-out) infinite; }
@keyframes scrollHint { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding-block: var(--section); position: relative; }
.manifesto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px var(--gutter); align-items: start; }
.manifesto__statement { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 500; letter-spacing: -.035em; line-height: 1; font-size: clamp(40px, 6.8vw, 128px); max-width: 16ch; color: var(--indigo); }
.manifesto__svg { grid-column: 1 / -1; width: 100%; height: auto; color: var(--violet); }
.manifesto__facts { display: grid; gap: 28px; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.fact strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.fact span { color: var(--ink-soft); max-width: 34ch; }
.manifesto__note { color: var(--ink-soft); font-size: clamp(17px, 1.35vw, 22px); line-height: 1.55; max-width: 40ch; }

/* ---------- Pillars (Bento) ---------- */
.pillars { padding-block: 0 var(--section); }
.bento { display: grid; gap: 14px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(260px, auto); }
.pillar {
  position: relative; overflow: hidden; border-radius: 10px; isolation: isolate;
  min-height: 440px; display: flex; align-items: flex-end;
  transform-style: preserve-3d; will-change: transform;
  border: 1px solid var(--line); background: var(--ivory);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 24px 60px -30px rgba(18,17,31,.25);
}
.pillar--a { grid-column: 1 / 8; grid-row: span 2; min-height: 620px; }
.pillar--b { grid-column: 8 / 13; grid-row: span 1; min-height: 300px; }
.pillar--c { grid-column: 8 / 13; grid-row: span 1; min-height: 300px; }
.pillar .media { transition: transform 1s var(--ease-out); }
.pillar:hover .media { transform: scale(1.04); }
.pillar__glow { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.65), transparent 60%); opacity: 0; transition: opacity .5s; }
.pillar:hover .pillar__glow { opacity: 1; }
.pillar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,.92) 100%); z-index: 1; }
.pillar__body { position: relative; z-index: 2; padding: clamp(24px, 3vw, 40px); width: 100%; display: grid; gap: 14px; transform: translateZ(30px); }
.pillar__index { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--violet); letter-spacing: .08em; }
.pillar__title { font-size: clamp(26px, 3vw, 48px); line-height: 1; color: var(--ink); }
.pillar--a .pillar__title { font-size: clamp(34px, 4.2vw, 68px); }
.pillar__list { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-soft); font-size: 14px; }
.pillar__list li { position: relative; }
.pillar__list li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-dim); transform: translateY(-50%); }
.pillar .link { justify-self: start; margin-top: 8px; }

/* ---------- Solutions (sticky visual + stages) ---------- */
.solutions { padding-block: var(--section); border-top: 1px solid var(--line); background: var(--ivory); }
.sol { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
.sol__visual { position: sticky; top: calc(var(--nav-h-compact) + 24px); aspect-ratio: 1; max-height: calc(100vh - var(--nav-h-compact) - 48px); }
.sol__svg { width: 100%; height: 100%; }
.sol__halo { transform-origin: 300px 300px; transition: transform 1.2s var(--ease-out); }
.sol__ring { fill: none; stroke: var(--line); }
.sol__links line { stroke: rgba(18,17,31,.18); transition: stroke .6s; }
.sol__links line.is-active { stroke: var(--violet); }
.sol__core { fill: var(--ivory); stroke: var(--line-strong); }
.sol__core-dot { fill: var(--ink); animation: pulse 3s ease-in-out infinite; transform-origin: 300px 300px; }
.sol__nodes circle { fill: var(--paper); stroke: var(--line-strong); transition: fill .6s, stroke .6s, r .6s; }
.sol__nodes circle.is-active { fill: var(--violet); stroke: var(--violet); r: 14; }
.sol__nodes circle.is-past { fill: var(--ink-dim); stroke: transparent; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .5; } }
.sol__readout { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }
.sol__readout span:first-child { color: var(--violet); font-variant-numeric: tabular-nums; }
.sol__stages { display: grid; gap: 0; padding-top: 6vh; }
.stage { padding: clamp(40px, 6vh, 72px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 12px 24px; opacity: .3; transition: opacity .6s; }
.stage.is-active { opacity: 1; }
.stage__num { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--violet); padding-top: 8px; }
.stage__title { grid-column: 2; font-size: clamp(30px, 3.4vw, 56px); line-height: 1; color: var(--ink); }
.stage p { grid-column: 2; color: var(--ink-soft); max-width: 44ch; }

/* ---------- Studio ---------- */
.studio { padding-block: var(--section); border-top: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filter { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .3s, background-color .3s, border-color .3s; min-height: 44px; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.project { position: relative; overflow: hidden; border-radius: 10px; grid-column: span 4; grid-row: span 2; background: var(--mist); display: block; border: 1px solid var(--line); transition: opacity .5s, transform .6s var(--ease-out), box-shadow .6s; }
.project:hover { box-shadow: 0 30px 60px -30px rgba(18,17,31,.35); }
.project--wide { grid-column: span 8; grid-row: span 3; }
.project--tall { grid-column: span 4; grid-row: span 3; }
.project.is-hidden { display: none; }
.project .media { transition: transform 1.1s var(--ease-out); }
.project:hover .media, .project:focus-visible .media { transform: scale(1.05) translate3d(-1%, -1%, 0); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,.9) 100%); opacity: .6; transition: opacity .5s; z-index: 2; }
.project:hover::after, .project:focus-visible::after { opacity: 1; }
.project__meta { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: clamp(18px, 2vw, 28px); display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.project__meta h3 { font-size: clamp(22px, 2.3vw, 38px); line-height: 1; color: var(--ink); transform: translateY(6px); transition: transform .6s var(--ease-out); }
.project__meta span { font-family: var(--font-display); font-size: 12px; font-weight: 500; color: var(--violet); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease-out); }
.project:hover .project__meta h3, .project:focus-visible .project__meta h3 { transform: none; }
.project:hover .project__meta span, .project:focus-visible .project__meta span { opacity: 1; transform: none; }
.work__empty { color: var(--ink-soft); padding: 40px 0; }

/* ---------- Horizontal story ---------- */
.story { position: relative; background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story__pin { height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.story__head { display: flex; justify-content: space-between; align-items: baseline; }
.story__title { font-size: clamp(28px, 3.2vw, 52px); line-height: 1; color: var(--indigo); }
.story__counter { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.story__track { display: flex; gap: 3vw; padding-left: var(--gutter); padding-right: 30vw; will-change: transform; }
.frame { flex: 0 0 auto; width: min(560px, 62vw); display: grid; gap: 16px; }
.frame__num { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--violet); }
.frame__media { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.frame--final .frame__media { aspect-ratio: 16 / 9; }
.frame__title { font-size: clamp(28px, 3.2vw, 54px); line-height: 1; color: var(--ink); }
.frame p { color: var(--ink-soft); max-width: 40ch; }

/* ---------- Showcase ---------- */
.showcase { position: relative; height: 100svh; min-height: 600px; overflow: hidden; display: flex; align-items: flex-end; }
.showcase__media { inset: -6%; will-change: transform; }
.showcase__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,244,239,.2), rgba(246,244,239,.85)); }
.showcase__content { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 96px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.showcase__title { font-size: clamp(44px, 8vw, 150px); line-height: .95; letter-spacing: -.045em; color: var(--indigo); }
.play { display: inline-flex; align-items: center; gap: 20px; color: var(--ink); }
.play__ring { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.5); display: grid; place-items: center; transition: border-color .4s, background-color .4s; }
.play__icon { position: absolute; left: calc(50% - 6px); top: calc(50% - 9px); width: 0; height: 0; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.is-playing .play__icon { width: 12px; height: 16px; border: 0; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); left: calc(50% - 6px); top: calc(50% - 8px); }
.play:hover .play__ring { border-color: var(--violet); background: rgba(91,75,214,.1); }
.play__text { font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Product ---------- */
.product { padding-top: var(--section); overflow: clip; background: var(--ivory); border-top: 1px solid var(--line); }
.product__stage { position: relative; height: 100vh; min-height: 720px; display: grid; place-items: center; }
.product__intro { position: absolute; top: 10vh; left: 50%; transform: translateX(-50%); text-align: center; z-index: 3; width: min(560px, 90vw); }
.product__label { display: block; font-family: var(--font-display); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 16px; }
.product__desc { font-family: var(--font-display); font-size: clamp(20px, 2vw, 30px); line-height: 1.3; font-weight: 500; color: var(--ink); }
.product__scene { position: relative; width: min(640px, 80vw); aspect-ratio: 1; perspective: 1600px; display: grid; place-items: center; }
.product__floor { position: absolute; left: 50%; bottom: 12%; width: 70%; height: 22%; transform: translateX(-50%) rotateX(80deg); background: radial-gradient(50% 50% at 50% 50%, rgba(91,75,214,.35), transparent 70%); filter: blur(24px); pointer-events: none; }
.product__object { position: relative; width: 60%; aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.device { position: absolute; inset: 0; transform-style: preserve-3d; }
/* The device itself stays a dark object — a screen — sitting on the light stage */
.device__face {
  position: absolute; inset: 0; border-radius: 28px; padding: 14px;
  background: linear-gradient(145deg, #3A3A44 0%, #1B1B22 45%, #0E0E12 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 60px 120px -20px rgba(18,17,31,.45);
  transform: translateZ(24px);
}
.device__screen { position: relative; height: 100%; border-radius: 18px; overflow: hidden; background: radial-gradient(80% 60% at 30% 20%, #2A2260, #0B0B14 70%); border: 1px solid rgba(255,255,255,.06); }
.device__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.device__status { position: absolute; left: 20px; top: 18px; font-family: var(--font-display); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.device__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.device__mark { position: absolute; right: 22px; bottom: 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(80px, 12vw, 160px); line-height: 1; color: rgba(255,255,255,.08); }
.device__edge { position: absolute; inset: 0; border-radius: 28px; background: #101016; transform: translateZ(0); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.device__shadow { position: absolute; left: 10%; right: 10%; bottom: -14%; height: 20%; border-radius: 50%; background: rgba(18,17,31,.45); filter: blur(30px); transform: translateZ(-40px); }
.media__ph--product { position: absolute; inset: 0; pointer-events: none; }
.media__ph--product::after { left: 50%; bottom: -44px; transform: translateX(-50%); white-space: nowrap; }
.product__features { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.feature { position: absolute; width: min(280px, 38vw); display: grid; gap: 6px; opacity: 0; transform: translateY(16px); pointer-events: auto; }
.feature strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.feature span { font-size: 14px; color: var(--ink-soft); }
.feature::before { content: ""; position: absolute; top: 10px; width: 48px; height: 1px; background: var(--violet); }
.feature--1 { left: max(4vw, calc(50% - 640px)); top: 26%; padding-left: 64px; } .feature--1::before { left: 0; }
.feature--2 { right: max(4vw, calc(50% - 640px)); top: 32%; padding-right: 64px; text-align: right; } .feature--2::before { right: 0; }
.feature--3 { left: max(4vw, calc(50% - 640px)); top: 62%; padding-left: 64px; } .feature--3::before { left: 0; }
.feature--4 { right: max(4vw, calc(50% - 640px)); top: 68%; padding-right: 64px; text-align: right; } .feature--4::before { right: 0; }
.no-motion .feature { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-top: var(--section); background: var(--ivory); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(40px, 6.5vw, 110px); line-height: 1.1; padding: 0 .35em; color: var(--indigo); position: relative; }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink-dim); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Process ---------- */
.process { padding-block: var(--section); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.step { padding: 32px 24px 48px 0; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 20px; margin-right: 24px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step span { font-family: var(--font-display); font-size: 13px; font-weight: 500; color: var(--violet); }
.step h3 { font-size: clamp(26px, 2.5vw, 42px); line-height: 1; margin-top: 24px; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { position: relative; padding-block: var(--section); overflow: hidden; border-top: 1px solid var(--line); background: var(--ivory); }
.cta__light { position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(35% 45% at 50% 60%, rgba(91,75,214,.22), transparent 70%), radial-gradient(20% 30% at 75% 30%, rgba(212,138,46,.18), transparent 70%);
  animation: breathe 18s ease-in-out infinite alternate; }
.cta__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 28px; }
.cta__title { font-size: clamp(46px, 9vw, 170px); line-height: .95; letter-spacing: -.045em; max-width: 12ch; color: var(--indigo); }
.cta__text { color: var(--ink-soft); font-size: clamp(17px, 1.4vw, 22px); max-width: 40ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-block: 72px 56px; }
.footer__logo { width: min(260px, 60vw); height: auto; margin-bottom: 20px; }
.footer__brand p { color: var(--ink-soft); max-width: 34ch; font-size: 15px; }
.footer__col { display: grid; align-content: start; gap: 12px; }
.footer__col h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--ink-dim); margin-bottom: 8px; }
.footer__col a { font-size: 15px; color: var(--ink-soft); transition: color .3s; width: fit-content; }
.footer__col a:hover { color: var(--violet); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-dim); }
.footer__top { color: var(--ink-soft); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .section-head--split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3) { border-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 72px; --nav-h-compact: 60px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero__title { font-size: clamp(52px, 15vw, 120px); }
  .hero__row { grid-template-columns: 1fr; }
  .hero__foot { display: none; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 48px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pillar--a, .pillar--b, .pillar--c { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .sol { grid-template-columns: 1fr; }
  .sol__visual { position: relative; top: auto; max-height: none; width: min(420px, 100%); margin-inline: auto; }
  .sol__stages { padding-top: 0; }
  .work { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; }
  .project { grid-column: span 3; grid-row: span 2; }
  .project--wide { grid-column: span 6; grid-row: span 3; }
  .project--tall { grid-column: span 3; grid-row: span 3; }
  /* Horizontal story becomes a vertical sequence */
  .story__pin { height: auto; overflow: visible; padding-block: var(--section); gap: 48px; }
  .story__track { flex-direction: column; gap: 56px; padding-right: var(--gutter); transform: none !important; }
  .frame { width: 100%; }
  .showcase__content { flex-direction: column; align-items: flex-start; }
  .product__stage { height: auto; min-height: 0; padding-block: 40px 80px; display: grid; gap: 48px; }
  .product__intro { position: static; transform: none; width: 100%; }
  .product__features { position: static; display: grid; gap: 28px; padding-inline: var(--gutter); }
  .feature, .feature--1, .feature--2, .feature--3, .feature--4 { position: static; width: 100%; padding: 0 0 0 40px; text-align: left; opacity: 1; transform: none; }
  .feature::before, .feature--1::before, .feature--2::before, .feature--3::before, .feature--4::before { left: 0; right: auto; width: 24px; }
  .product__object { transform: none !important; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 28px 0; grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .step span { grid-row: 1 / 3; }
  .step h3 { margin-top: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-block: 56px 40px; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .work { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .project, .project--wide, .project--tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .project--wide { aspect-ratio: 16 / 10; }
  .project__meta span { opacity: 1; transform: none; }
  .fact { grid-template-columns: 1fr; gap: 8px; }
  .media__ph::after { font-size: 10px; left: 12px; bottom: 12px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track span:nth-child(n+8) { display: none; }
  .hero__word, .preloader__word, .preloader__dot { transform: none; }
  .stage { opacity: 1; }
  .feature { opacity: 1; transform: none; }
  .cursor { display: none !important; }
}
.no-motion .grain, .no-motion .hero__light, .no-motion .cta__light { animation: none; }
.no-motion .hero__word { transform: none; }
.no-motion .stage { opacity: 1; }
.no-motion .wi { transform: none !important; }
