/* ============================================================
   KOOKYWEB — styles
   Fonts: Syne (display) · Geist (body) · Geist Mono (labels) · Quicksand (logo)
   Palette: ink / bone / acid
   ============================================================ */
:root {
  /* LIGHT THEME — variable names kept from the dark build: --ink = page, --bone = type, --acid = accent */
  --ink: #f1f1f6;
  --ink-2: #ffffff;
  --ink-3: #e6e6f0;
  --bone: #0c0c14;
  --bone-2: #1b1b26;
  --ash: #6d6d7c;
  --acid: #2f3bff;
  --acid-deep: #8fa0ff;
  --lime: #c6ff3d;
  --line: rgba(12, 12, 20, 0.12);
  --line-dark: rgba(241, 241, 246, 0.16);
  --display: "Syne", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --logo: "Quicksand", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--ink); color: var(--bone); font-family: var(--body); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--acid); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.wrap { width: min(1480px, 100% - var(--gutter) * 2); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.muted { color: var(--ash); }
.acid { color: var(--acid); }

/* ---------- type ---------- */
.eyebrow { color: var(--acid); margin-bottom: 20px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: -0.035em; }
.h2--sm { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.h2--xl { font-size: clamp(2rem, 4vw, 3.6rem); }
.h2 em { font-style: normal; color: var(--acid); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(12,12,20,0.7); max-width: 560px; margin-top: 24px; font-weight: 300; }
[data-split] .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
[data-split] .line > .inner { display: block; transform: translateY(110%); }
[data-reveal] { opacity: 0; transform: translateY(26px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translate(3px, -3px); }
.btn--acid { background: var(--acid); color: var(--ink); }
.btn--acid:hover { background: var(--bone); color: var(--ink); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--bone:hover { background: var(--acid); color: var(--ink); }
.btn--ghost { border-color: rgba(12,12,20,0.25); color: var(--bone); }
.btn--ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn--big { padding: 20px 30px; font-size: 12px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); }
.logo__glyph { width: 34px; height: auto; color: var(--acid); }
.logo__word { font-family: var(--logo); font-weight: 300; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.logo__word b { font-weight: 700; color: var(--acid); }
.logo__word b.b2 { color: var(--bone); }
.logo--big .logo__glyph { width: 48px; }
.logo--big .logo__word { font-size: 34px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 1000; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.loader__logo { display: flex; align-items: center; gap: 20px; }
.loader__glyph { width: clamp(70px, 10vw, 120px); color: var(--acid); }
.loader__glyph .g { stroke-dasharray: 140; stroke-dashoffset: 140; }
.loader__word { font-family: var(--logo); font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; display: flex; overflow: hidden; }
.loader__word span, .loader__word b { display: inline-block; transform: translateY(110%); }
.loader__word b { font-weight: 700; color: var(--acid); }
.loader__word b:nth-of-type(2), .loader__word b:nth-of-type(3) { color: var(--bone); }
.loader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; color: var(--ash); }

/* ---------- cursor + progress ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 950; pointer-events: none; }
.cursor__dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--acid); transform: translate(-50%, -50%); transition: width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.3s; mix-blend-mode: difference; }
.cursor__label { position: absolute; transform: translate(-50%, -50%); background: var(--acid); color: var(--ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; opacity: 0; scale: 0.6; transition: opacity 0.3s, scale 0.4s var(--ease); white-space: nowrap; }
.cursor.is-hover .cursor__dot { width: 48px; height: 48px; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.has-label .cursor__label { opacity: 1; scale: 1; }
@media (hover: none) { .cursor { display: none; } }
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--acid); z-index: 940; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--gutter); transform: translateY(-110%); transition: transform 0.8s var(--ease), background 0.4s; }
.nav.is-ready { transform: translateY(0); }
.nav.is-ready.is-hidden { transform: translateY(-110%); }
.nav.is-solid { background: linear-gradient(180deg, rgba(241,241,246,0.9), rgba(241,241,246,0)); }
.nav__links { display: flex; gap: 6px; }
.nav__links a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; color: rgba(12,12,20,0.7); transition: color 0.3s, background 0.3s; }
.nav__links a:hover { color: #fff; background: var(--acid); }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__clock { color: var(--ash); }
.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; }
.burger span { display: block; height: 2px; background: var(--bone); width: 26px; transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.burger span:last-child { width: 16px; }
body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:last-child { width: 26px; transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 790; background: var(--acid); color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 32px; clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path 0.9s var(--ease); }
body.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.menu__inner { display: flex; flex-direction: column; gap: 2px; margin-bottom: 40px; }
.menu__inner a { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.05; letter-spacing: -0.03em; display: flex; gap: 14px; align-items: baseline; }
.menu__inner a i { font-family: var(--mono); font-style: normal; font-size: 12px; }
.menu__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: rgba(241,241,246,0.7); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 40px; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 2; width: min(1480px, 100%); margin-inline: auto; }
.hero__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--ash); margin-bottom: 26px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(47,59,255,0.6); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,59,255,0.6); } 100% { box-shadow: 0 0 0 14px rgba(47,59,255,0); } }
.hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 4rem); line-height: 0.94; letter-spacing: -0.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .w { display: inline-block; transform: translateY(110%); }
.hero__title .acid { color: var(--acid); }
.rot { position: relative; display: inline-block; height: 1.05em; overflow: hidden; vertical-align: bottom; }
.rot > span { display: block; height: 1.05em; line-height: 1.05em; white-space: nowrap; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero__sub { max-width: 520px; color: rgba(12,12,20,0.7); font-weight: 300; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot { position: relative; z-index: 2; width: min(1480px, 100%); margin: 56px auto 0; display: flex; justify-content: space-between; color: var(--ash); border-top: 1px solid var(--line); padding-top: 18px; }
[data-hero] { opacity: 0; transform: translateY(20px); }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; overflow: hidden; }
.ticker__track { display: flex; gap: 40px; width: max-content; }
.ticker__track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; white-space: nowrap; }
.ticker__track i { font-style: normal; color: var(--acid); font-size: 1.2rem; line-height: 2; }

/* ---------- manifesto ---------- */
.manifesto { position: relative; }
.manifesto__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); width: min(1480px, 100%); margin-inline: auto; }
.manifesto__text { font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 2rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 1200px; }
.manifesto__text .fw { color: rgba(12,12,20,0.14); transition: none; }

/* ---------- services (stacking cards) ---------- */
.services { padding: clamp(80px, 12vh, 160px) 0 0; }
.services__head { margin-bottom: 60px; }
.stack { width: min(1480px, 100% - var(--gutter) * 2); margin-inline: auto; padding-bottom: 20vh; }
.scard { position: sticky; top: 110px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 56px); margin-bottom: 24px; min-height: 46vh; display: grid; grid-template-rows: auto 1fr auto; gap: 24px; transform-origin: top center; will-change: transform; }
.scard:nth-child(2) { background: #fafaff; } .scard:nth-child(3) { background: #f4f4fd; } .scard:nth-child(4) { background: #ececfb; } .scard:nth-child(5) { background: var(--acid); color: var(--ink); border-color: transparent; }
.scard__top { display: flex; justify-content: space-between; color: var(--ash); }
.scard:nth-child(5) .scard__top { color: rgba(241,241,246,0.6); }
.scard h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 0.95; letter-spacing: -0.035em; align-self: end; }
.scard p { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.6; color: rgba(12,12,20,0.7); max-width: 620px; font-weight: 300; }
.scard:nth-child(5) p { color: rgba(241,241,246,0.75); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.scard:nth-child(5) .tags li { border-color: rgba(241,241,246,0.25); }

/* ---------- work (deck) ---------- */
.work { position: relative; }
.work__pin { position: relative; height: 100vh; overflow: hidden; }
.work__head { position: absolute; top: 84px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-end; z-index: 6; pointer-events: none; }
.work__head .eyebrow { margin-bottom: 10px; }
.work__count { color: var(--bone); }
.deck { position: absolute; left: 34%; top: 54%; width: 0; height: 0; z-index: 3; }
.card { position: absolute; left: 0; top: 0; width: clamp(240px, 24vw, 360px); aspect-ratio: 4 / 5; translate: -50% -50%; border-radius: 18px; overflow: hidden; background: var(--ink-3); box-shadow: 0 30px 70px rgba(20,22,70,0.22), 0 0 0 1px rgba(12,12,20,0.06); will-change: transform; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card__tag { position: absolute; left: 14px; top: 14px; background: rgba(241,241,246,0.7); backdrop-filter: blur(8px); padding: 7px 10px; border-radius: 999px; }
.work__info { position: absolute; right: var(--gutter); top: 54%; width: min(440px, 36vw); z-index: 4; }
.info { position: absolute; left: 0; top: 0; width: 100%; translate: 0 -50%; opacity: 0; visibility: hidden; }
.info.is-on { opacity: 1; visibility: visible; }
.info__row { display: flex; justify-content: space-between; gap: 12px; color: var(--ash); margin-bottom: 14px; }
.info h3, .mproj h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.03em; line-height: 1; }
.info p, .mproj p { margin-top: 14px; color: rgba(12,12,20,0.7); font-weight: 300; line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--acid); }
.stats span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.work__mobile { display: none; }
.mproj { padding: 32px 0; border-top: 1px solid var(--line); }
.mproj img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 18px; }

/* ---------- numbers ---------- */
.numbers { padding: clamp(60px, 10vh, 120px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers__grid > div { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); padding-left: 22px; }
.numbers__grid b { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -0.04em; line-height: 1; }
.numbers__grid b i { font-style: normal; }
.numbers__grid .mono { color: var(--ash); }

/* ---------- process ---------- */
.process { padding: clamp(100px, 14vh, 180px) 0; }
.process__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.process__sticky { position: sticky; top: 120px; }
.process__big { font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 6vw, 5.5rem); line-height: 0.85; letter-spacing: -0.06em; color: var(--acid); margin-top: 40px; }
.process__bar { width: 100%; height: 1px; background: var(--line); margin-top: 28px; position: relative; }
.process__bar span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--acid); }
.process__list li { padding: 34px 0; border-bottom: 1px solid var(--line); opacity: 0.3; transition: opacity 0.5s var(--ease); }
.process__list li.is-active { opacity: 1; }
.pstep .mono { color: var(--acid); }
.pstep h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.05; margin-top: 12px; }
.pstep p { margin-top: 10px; color: rgba(12,12,20,0.7); font-weight: 300; max-width: 520px; line-height: 1.55; }

/* ---------- stack rows ---------- */
.stackrows { padding: 40px 0 clamp(80px, 12vh, 160px); overflow: hidden; }
.row { border-top: 1px solid var(--line); padding: 20px 0; overflow: hidden; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row__track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.row__track span { font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; padding: 10px 26px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; color: rgba(12,12,20,0.75); transition: background 0.3s, color 0.3s; }
.row__track span:hover { background: var(--acid); color: var(--ink); }

/* ---------- studio ---------- */
.studio { padding: clamp(100px, 14vh, 180px) 0; background: var(--bone); color: var(--ink); }
.studio__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.studio .lead { color: rgba(241,241,246,0.72); }
.studio .h2 em { color: var(--acid-deep); }
.studio .eyebrow { color: var(--acid-deep); }
.values { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.values li { padding: 16px 0; border-bottom: 1px solid var(--line-dark); font-weight: 300; }
.values b { font-weight: 600; }
.studio__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.studio__media img { width: 100%; height: 120%; object-fit: cover; margin-top: -10%; filter: grayscale(0.2) contrast(1.05); }
.studio__badge { position: absolute; left: 18px; bottom: 18px; background: var(--ink); color: var(--bone); padding: 10px 14px; border-radius: 999px; }

/* ---------- quotes ---------- */
.quotes { padding: clamp(100px, 14vh, 180px) 0; }
.quotes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 10px; }
.quotes blockquote { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; position: relative; }
.quotes blockquote::before { content: "“"; position: absolute; right: 24px; top: 8px; font-family: var(--display); font-size: 6rem; line-height: 1; color: var(--acid); opacity: 0.35; }
.quotes p { font-family: var(--display); font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.35; letter-spacing: -0.01em; }
.quotes footer { display: flex; flex-direction: column; gap: 2px; }
.quotes footer b { font-weight: 600; }
.quotes footer span { color: var(--ash); font-size: 13px; }

/* ---------- faq ---------- */
.faq { padding: clamp(100px, 14vh, 180px) 0; border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background 0.4s, border-color 0.4s; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform 0.5s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc details > div { padding: 0 0 26px; color: rgba(12,12,20,0.7); font-weight: 300; line-height: 1.6; max-width: 620px; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 16vh, 200px) 0; background: radial-gradient(ellipse 70% 60% at 30% 100%, rgba(47,59,255,0.12), transparent 60%); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 32px; font-family: var(--display); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 2rem); letter-spacing: -0.02em; border-bottom: 2px solid var(--acid); padding-bottom: 6px; }
.contact__mail i { font-style: normal; color: var(--acid); }
.form { display: flex; flex-direction: column; gap: 18px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; }
.form label .mono { color: var(--ash); }
.form input, .form select, .form textarea { background: var(--ink); border: 1px solid var(--line); border-radius: 12px; color: var(--bone); font: inherit; font-weight: 300; padding: 14px 16px; transition: border-color 0.3s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--acid); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form textarea { resize: vertical; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__foot .mono { color: var(--ash); }
.form.is-sent { border-color: var(--acid); }
.form.is-error { border-color: #ff5c5c; }
.form.is-error .form__foot .mono { color: #ff5c5c; }
.form.is-sent .form__foot .mono { color: var(--acid); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 24px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer__cols .mono { color: var(--ash); margin-bottom: 6px; }
.footer__cols a { color: rgba(12,12,20,0.8); font-size: 15px; transition: color 0.3s; }
.footer__cols a:hover { color: var(--acid); }
.footer__cols .muted { font-size: 14px; }
.footer__giant { margin-top: 48px; font-family: var(--logo); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.85; letter-spacing: -0.04em; color: rgba(12,12,20,0.9); white-space: nowrap; display: flex; }
.footer__giant .acid { font-weight: 700; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ash); border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .process__grid, .studio__grid, .faq__grid, .contact__grid, .footer__top { grid-template-columns: 1fr; }
  .process__sticky { position: relative; top: 0; }
  .process__big { font-size: clamp(3rem, 8vw, 4.5rem); }
  .quotes__grid { grid-template-columns: 1fr; }
  .work__info { width: min(420px, 40vw); }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__clock, .nav .btn { display: none; }
  .burger { display: flex; }
  .work__pin { display: none; }
  .work__mobile { display: block; padding: 80px 0 40px; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .scard { top: 90px; min-height: 0; }
  .hero { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-hero] { opacity: 1; transform: none; }
  [data-split] .line > .inner, .hero__title .w { transform: none; }
  .live { animation: none; }
}

/* ---------- WebGL layer (webgl.js) ---------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
html { background: var(--ink); }
html.has-gl body { background: transparent; }
html.has-gl .contact { background: none; }
html.has-gl .hero__field { opacity: 0.55; }

/* ---------- light theme touch-ups ---------- */
.scard { box-shadow: 0 24px 60px rgba(20, 22, 70, 0.08); }
.quotes blockquote, .form { box-shadow: 0 24px 60px rgba(20, 22, 70, 0.07); }
.cursor__dot { mix-blend-mode: normal; }
.cursor__label { color: #fff; }
.studio .h2 em, .studio .eyebrow { color: var(--acid-deep); }
.studio__badge { background: var(--ink); color: var(--bone); }
.acc details[open] summary i { color: #fff; }
.menu { color: #fff; }
.menu__foot { color: rgba(255,255,255,0.75); }
.form.is-sent { border-color: var(--acid); }
html.has-gl .hero__field { opacity: 0.5; }

/* ---------- portal (card → full-screen space scene) ---------- */
.portal { position: relative; }
.portal__pin { position: relative; height: 100vh; overflow: hidden; }
.portal__copy { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: min(460px, 38vw); z-index: 1; }
.portal__frame { position: absolute; inset: 0; z-index: 2; background: radial-gradient(ellipse 80% 60% at 50% 110%, #1b3fa8 0%, #050814 55%, #02030a 100%); clip-path: inset(18% 46% 18% 5% round 32px); will-change: clip-path; }
.portal__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portal__lines { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1em; text-align: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; text-transform: uppercase; pointer-events: none; text-shadow: 0 4px 40px rgba(2,3,10,0.7); }
.portal__lines > span { display: block; overflow: hidden; padding-bottom: 0.08em; }
.portal__lines > span > i { display: block; font-style: normal; transform: translateY(110%); }
.portal__lines em { font-style: normal; color: #8fa0ff; }
.portal__tag { position: absolute; left: 22px; bottom: 18px; color: rgba(255,255,255,0.6); z-index: 3; }
@media (max-width: 900px) {
  .portal__copy { right: var(--gutter); left: var(--gutter); top: 96px; translate: none; width: auto; }
  .portal__frame { clip-path: inset(46% 5% 8% 5% round 24px); }
}

/* ---------- design lab (live, auto-touring site previews) ---------- */
.lab { position: relative; --lab-glow: #c9a227; }
.lab__pin { position: relative; height: 100vh; overflow: hidden; display: grid; grid-template-columns: minmax(300px, 0.78fr) 1.6fr; gap: clamp(28px, 4vw, 70px); align-items: center; padding: 84px var(--gutter) 40px; }
.lab__side .eyebrow { margin-bottom: 12px; }
.lab__lede { margin-top: 16px; max-width: 400px; color: rgba(12,12,20,0.66); font-weight: 300; line-height: 1.55; }
.lab__list { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.lab__item { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.4s var(--ease), padding 0.4s var(--ease); }
.lab__item:hover { background: rgba(47,59,255,0.05); padding-left: 10px; }
.lab__n { color: var(--ash); transition: color 0.4s; }
.lab__item.is-on .lab__n { color: var(--acid); }
.lab__item h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.9vw, 1.7rem); letter-spacing: -0.03em; line-height: 1; color: var(--bone); }
.lab__item p { margin-top: 6px; color: var(--ash); font-size: 10.5px; }
.lab__state { font-size: 10px; white-space: nowrap; }
.lab__state b, .lab__state em { display: none; font-weight: 500; font-style: normal; align-items: center; gap: 6px; }
.lab__state em { display: inline-flex; color: var(--bone); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.lab__item:hover .lab__state em { background: var(--acid); border-color: var(--acid); color: #fff; }
.lab__item.is-on .lab__state em { display: none; }
.lab__item.is-on .lab__state b { display: inline-flex; color: var(--acid); }
.lab__state b i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); animation: livePulse 1.8s infinite; box-shadow: 0 0 0 0 rgba(47,59,255,0.5); }
.lab__bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--acid); transform: scaleX(0); transform-origin: 0 50%; }
.lab__ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.lab__stage { position: relative; perspective: 1600px; }
.lab__glow { position: absolute; inset: 8% 6% -4%; border-radius: 50%; background: radial-gradient(closest-side, var(--lab-glow), transparent); opacity: 0.45; filter: blur(50px); transition: background 0.8s; z-index: 0; }
.lab__tech { position: relative; margin-top: 16px; text-align: right; color: var(--ash); }

.browser { position: relative; z-index: 1; border-radius: 16px; overflow: hidden; background: #0c0c14; box-shadow: 0 50px 120px rgba(20,22,70,0.28), 0 0 0 1px rgba(12,12,20,0.1); transform-style: preserve-3d; will-change: transform; }
.browser__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #f7f7fb; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__url { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-width: min(360px, 60%); justify-content: center; padding: 6px 14px; border-radius: 8px; background: rgba(12,12,20,0.06); color: rgba(12,12,20,0.7); font-size: 11px; letter-spacing: 0.04em; text-transform: none; }
.browser__url svg { width: 10px; height: 12px; color: #28a745; }
.browser__url b { font-weight: 500; }
.browser__live { display: inline-flex; align-items: center; gap: 7px; color: #d6293d; font-size: 10px; }
.browser__live i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b52; box-shadow: 0 0 0 0 rgba(255,59,82,0.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(255,59,82,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,82,0); } }
.browser__body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; --s: 0.5; }
.pane { position: absolute; inset: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(0.77, 0, 0.18, 1); }
.pane.is-on { clip-path: inset(0 0 0 0%); z-index: 2; }
.pane.was-on { clip-path: inset(0 0 0 0%); z-index: 1; }
.pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.pane.is-on img { transform: scale(1); }
.pane iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity 0.9s; background: transparent; }
.pane.is-ready iframe { opacity: 1; }

.lab__mobile { display: none; }
.lcard { padding: 30px 0; border-top: 1px solid var(--line); }
.lcard:first-of-type { margin-top: 26px; }
.browser--sm { border-radius: 12px; margin-bottom: 18px; }
.browser--sm .browser__bar { height: 32px; padding: 0 10px; grid-template-columns: auto 1fr; }
.browser--sm .browser__dots i { width: 8px; height: 8px; }
.browser--sm .browser__url { font-size: 10px; padding: 3px 10px; min-width: 0; }
.browser--sm img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.lcard h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; margin-top: 8px; }
.lcard p { margin-top: 8px; color: rgba(12,12,20,0.7); font-weight: 300; }
.lcard .lab__ctas { margin-top: 18px; }

/* viewer (full-screen live preview) */
.viewer { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; background: rgba(8,8,14,0.94); backdrop-filter: blur(10px); clip-path: inset(50% 50% 50% 50% round 24px); visibility: hidden; }
.viewer.is-open { visibility: visible; }
.viewer__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--gutter); color: #fff; }
.viewer__title { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.viewer__devices { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.viewer__devices button { padding: 8px 16px; border-radius: 999px; color: rgba(255,255,255,0.65); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.viewer__devices button.is-on { background: #fff; color: var(--bone); }
.viewer__actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.viewer__actions .btn--ghost { border-color: rgba(255,255,255,0.3); color: #fff; padding: 11px 18px; }
.viewer__close { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--bone); font-size: 15px; transition: transform 0.4s var(--ease); }
.viewer__close:hover { transform: rotate(90deg); }
.viewer__stage { flex: 1; display: grid; place-items: center; padding: 0 var(--gutter) 22px; min-height: 0; }
.viewer__frame { width: 100%; height: 100%; border-radius: 14px; overflow: hidden; background: #000; transition: width 0.7s var(--ease), height 0.7s var(--ease), border-radius 0.7s var(--ease); }
.viewer__frame.is-mobile { width: 390px; height: min(844px, 100%); border-radius: 38px; box-shadow: 0 0 0 10px #1c1c26, 0 40px 90px rgba(0,0,0,0.6); }
.viewer__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
html.viewer-open, html.viewer-open body { overflow: hidden; }

@media (max-width: 900px) {
  .lab__pin { display: none; }
  .lab__mobile { display: block; padding: 80px 0 40px; }
  .viewer__bar { grid-template-columns: 1fr auto; }
  .viewer__devices { display: none; }
  .viewer__stage { padding: 0 10px 10px; }
}
html.viewer-open .cursor { opacity: 0; }
