/* ==========================================================================
   Cortex Studios — design system
   Paper-white editorial layout, ink typography, hairline structure.
   ========================================================================== */

:root {
  --paper: #fafaf8;
  --paper-2: #f1f1ed;
  --stone: #e4e4de;
  --ink: #0b0b0c;
  --ink-2: #1c1c1e;
  --grey: #6b6b68;
  --grey-2: #9a9a95;
  --line: rgba(11, 11, 12, 0.12);
  --line-strong: rgba(11, 11, 12, 0.28);
  --line-light: rgba(250, 250, 248, 0.16);

  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1680px;
  --sec: clamp(88px, 11vw, 170px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  --fs-display: clamp(3.1rem, 10.4vw, 11.5rem);
  --fs-d1: clamp(2.9rem, 8.6vw, 9.5rem);
  --fs-d2: clamp(2.5rem, 6.2vw, 6.6rem);
  --fs-d3: clamp(1.9rem, 3.9vw, 3.9rem);
  --fs-lead: clamp(1.15rem, 1.5vw, 1.45rem);
  --fs-body: 1.0625rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.section--ink :focus-visible, .site-footer :focus-visible, .menu :focus-visible { outline-color: var(--paper); }
#main:focus { outline: none; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); position: relative; }
.section--ink { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 400;
}
.section--ink .label { color: var(--grey-2); }
.display-1, .display-2, .display-3, .hero__title {
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.93;
}
.display-1 { font-size: var(--fs-d1); }
.display-2 { font-size: var(--fs-d2); letter-spacing: -0.048em; line-height: 0.95; }
.display-3 { font-size: var(--fs-d3); letter-spacing: -0.04em; line-height: 1.02; }
.display-1 em, .display-2 em, .display-3 em, .hero__title em { letter-spacing: -0.025em; padding-right: 0.04em; }
.line { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.line > span { display: inline-block; will-change: transform; }
.lead { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.012em; }

/* ---------- Icons, links, buttons ---------- */
.ico-arrow { width: 1em; height: 1em; flex: none; transition: transform .5s var(--ease-out); }
.link-line {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500; position: relative; padding-bottom: 3px;
}
.link-line::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform-origin: right; transition: transform .6s var(--ease-out);
}
.link-line:hover::after { transform: scaleX(0); }
.link-line:hover .ico-arrow, .btn:hover .ico-arrow { transform: translate(3px, -3px); }
.link-line:hover .ico-arrow--up { transform: translateY(-3px); }

.btn {
  --bh: 56px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--bh); padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap;
  overflow: hidden; isolation: isolate; border: 1px solid var(--ink);
  transition: color .5s var(--ease-out), border-color .5s var(--ease-out);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { background: #3a3a3c; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light::before { background: var(--stone); }
.btn--small { --bh: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn > span, .btn > svg { position: relative; }
[data-magnetic] { will-change: transform; }

/* ---------- Brand mark ---------- */
.brainmark { overflow: visible; }
.brainmark .bm-dot { fill: currentColor; stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-h);
  transition: transform .7s var(--ease-out), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(250, 250, 248, 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; position: relative; z-index: 2; }
.logo__mark { width: 34px; height: auto; transition: transform .8s var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__word { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1; display: flex; flex-direction: column; gap: 4px; }
.logo__word span { font-family: var(--f-mono); font-weight: 400; font-size: 0.56rem; letter-spacing: 0.42em; color: var(--grey); }
.nav ul { display: flex; gap: 6px; }
.nav__link { display: block; padding: 8px 12px; font-size: 0.9375rem; font-weight: 450; position: relative; }
.nav__link > span { display: block; overflow: hidden; line-height: 1.4; }
.nav__link .roll { display: block; position: relative; transition: transform .55s var(--ease-out); }
.nav__link .roll::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.nav__link::after { content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink); transform: translateX(-50%) scale(0); transition: transform .4s var(--ease-out); }
.nav__link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav__link:hover .roll { transform: translateY(-100%); }

.menu-toggle { display: none; align-items: center; gap: 12px; height: 44px; padding: 0 4px 0 14px; position: relative; z-index: 2; font-weight: 500; }
.menu-toggle__text { position: relative; overflow: hidden; display: block; }
.menu-toggle__icon { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 5px; }
.menu-toggle__icon i { display: block; width: 14px; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease-out); }
.menu-open .menu-toggle__icon { background: var(--paper); }
.menu-open .menu-toggle__icon i { background: var(--ink); }
.menu-open .menu-toggle__icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-open .site-header { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--paper); transform: none; }
.menu-open .logo__word span { color: var(--grey-2); }

.menu { position: fixed; inset: 0; z-index: 80; color: var(--paper); }
.menu[hidden] { display: none; }
.menu__bg { position: absolute; inset: 0; background: var(--ink); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.menu.is-open .menu__bg { clip-path: inset(0 0 0 0); }
.menu__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-top: calc(var(--header-h) + 5vh); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; transform: translateY(105%); transition: transform .8s var(--ease-out); }
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .18s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .23s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .28s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .33s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .38s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .43s; }
.menu__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--grey-2); }
.menu__txt { font-size: clamp(2.4rem, 11vw, 5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.05; }
.menu__foot { display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .6s .5s; }
.menu.is-open .menu__foot { opacity: 1; }

/* ---------- Loader ---------- */
.loader { display: none; }
.motion.is-first .loader {
  display: flex; position: fixed; inset: 0; z-index: 200; background: var(--paper);
  flex-direction: column; justify-content: center; align-items: center;
}
.loader__stage { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__mark { width: clamp(96px, 12vw, 150px); }
.loader__mark .bm-outline, .loader__mark .bm-trace { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.loader__mark .bm-dot { opacity: 0; }
.loader__word { display: flex; gap: 0.22em; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.06em; overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__meta { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: space-between; margin-inline: auto; }
.loader__count { color: var(--ink); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.loader__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; }
.curtain__panel { position: absolute; inset: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; transform: translateY(100%); }
.curtain__label { font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 500; letter-spacing: -0.05em; overflow: hidden; display: block; }
.curtain__label > span { display: block; }
.motion.is-entering .curtain { visibility: visible; }
.motion.is-entering .curtain__panel { transform: none; }
.no-anim .curtain, .no-anim .loader { display: none !important; }

/* ---------- Reveal initial states (only when JS + motion) ---------- */
.motion [data-reveal="fade"], .motion [data-hero="fade"] { opacity: 0; transform: translateY(28px); }
.motion [data-reveal="lines"] .line > span, .motion [data-hero="lines"] .line > span { transform: translateY(110%); }
.motion [data-reveal="clip"] { clip-path: inset(12% 6% 12% 6%); }
.no-anim [data-reveal], .no-anim [data-hero], .no-anim [data-reveal] .line > span, .no-anim [data-hero] .line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: stretch; padding-top: var(--header-h); overflow: hidden; }
.hero__signal { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(28px, 6vh, 72px); padding-bottom: clamp(28px, 5vh, 56px); gap: 6vh; }
.hero__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.hero__meta-r { text-align: right; }
.hero__title { font-size: var(--fs-display); margin-left: -0.05em; }
.hero__title em { font-size: 1.08em; line-height: 0.8; }
.hero__foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.hero__lede { grid-column: 1 / span 5; font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.012em; max-width: 34ch; color: var(--ink-2); }
.hero__actions { grid-column: 7 / span 4; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { grid-column: 12 / span 1; justify-self: end; display: flex; flex-direction: column; align-items: center; gap: 12px; writing-mode: vertical-rl; color: var(--ink); }
.hero__scroll-line { width: 1px; height: 64px; background: var(--line-strong); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: scrollcue 2.2s var(--ease-io) infinite; }
@keyframes scrollcue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Intro statement ---------- */
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.intro__label { grid-column: 1 / span 3; padding-top: 0.9em; }
.intro__statement { grid-column: 4 / span 9; font-size: clamp(1.75rem, 3.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 450; text-wrap: pretty; }
.intro__statement .w { color: var(--ink); }
.motion .intro__statement .w { color: #cfcfc9; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); overflow: hidden; white-space: nowrap; user-select: none; }
.marquee__track { display: inline-flex; align-items: center; gap: clamp(24px, 3vw, 48px); padding-right: clamp(24px, 3vw, 48px); will-change: transform; }
.marquee__track span { font-size: clamp(2rem, 4.6vw, 4.6rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.marquee__track span:nth-child(4n+3) { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.marquee__track i { width: clamp(36px, 4vw, 56px); display: block; color: var(--ink); }
.marquee__track i svg { width: 100%; }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 110px); }
.section-head__text { max-width: 44ch; color: var(--grey); font-size: 1.0625rem; }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: repeat(12, 1fr); }
  .section-head > .label { grid-column: 1 / -1; }
  .section-head > h2 { grid-column: 1 / span 8; }
  .section-head > .section-head__text { grid-column: 9 / span 4; align-self: end; }
  .section-head--split > div { grid-column: 1 / span 8; display: grid; gap: 28px; }
  .section-head--split > .section-head__text { grid-column: 9 / span 4; }
}

/* ---------- Services rows ---------- */
.srv-rows { border-top: 1px solid var(--line); }
.srv-row { border-bottom: 1px solid var(--line); position: relative; }
.srv-row a {
  display: grid; grid-template-columns: 56px 1fr 40px; gap: 8px 24px; align-items: center;
  padding: clamp(22px, 3vw, 40px) 0; position: relative; isolation: isolate;
  transition: color .5s var(--ease-out), padding .6s var(--ease-out);
}
.srv-row a::before { content: ''; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.srv-row__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--grey); transition: color .5s; }
.srv-row__title { font-size: clamp(1.8rem, 3.7vw, 3.8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.srv-row__desc { grid-column: 2 / 3; color: var(--grey); max-width: 52ch; transition: color .5s; }
.srv-row__go { grid-row: 1; grid-column: 3; justify-self: end; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .5s, border-color .5s, transform .6s var(--ease-out); }
.srv-row__go .ico-arrow { width: 16px; height: 16px; }
@media (hover: hover) and (min-width: 900px) {
  .srv-row a { grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1fr) 56px; }
  .srv-row__desc { grid-column: 3; opacity: 0.85; }
  .srv-row__go { grid-column: 4; width: 56px; height: 56px; }
  .srv-row a:hover { color: var(--paper); padding-inline: 24px; }
  .srv-row a:hover::before { transform: scaleY(1); }
  .srv-row a:hover .srv-row__desc, .srv-row a:hover .srv-row__num { color: var(--grey-2); }
  .srv-row a:hover .srv-row__go { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(45deg); }
  .srv-row a:hover .srv-row__go .ico-arrow { transform: rotate(-45deg) translate(0, 0); }
}

/* ---------- Featured project ---------- */
.feature { display: grid; gap: clamp(32px, 5vw, 72px); }
.feature__media { position: relative; padding-right: clamp(0px, 9vw, 160px); padding-bottom: clamp(48px, 8vw, 120px); }
.feature__browser { display: block; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 40px 80px -40px rgba(11, 11, 12, 0.35); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--stone); }
.browser-bar span { margin-inline: auto; transform: translateX(-20px); font-family: var(--f-mono); font-size: 0.72rem; color: var(--grey); background: var(--paper); padding: 3px 14px; border-radius: 6px; }
.feature__scroll { display: block; overflow: hidden; position: relative; }
.feature__browser .feature__scroll { aspect-ratio: 16 / 10; }
.feature__scroll img { width: 100%; transition: transform 1.6s var(--ease-out); will-change: transform; }
.feature__browser:hover .feature__scroll img, .feature__browser:focus-visible .feature__scroll img { transform: translateY(calc(-100% + var(--frame-h, 560px))); transition: transform 9s cubic-bezier(0.45, 0, 0.25, 1); }
.feature__phone {
  position: absolute; right: 0; bottom: 0; width: clamp(130px, 21vw, 300px); aspect-ratio: 9 / 19.2;
  border-radius: clamp(22px, 3vw, 42px); background: var(--ink); padding: clamp(6px, 0.8vw, 11px);
  box-shadow: 0 50px 90px -40px rgba(11, 11, 12, 0.55);
}
.feature__phone .feature__scroll { height: 100%; border-radius: clamp(16px, 2.3vw, 32px); background: #fff; }
.feature__phone .feature__scroll img { animation: phonescroll 22s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate; animation-play-state: paused; }
.feature.is-inview .feature__phone .feature__scroll img { animation-play-state: running; }
@keyframes phonescroll { 0%, 8% { transform: translateY(0); } 100% { transform: translateY(calc(-100% + var(--phone-h, 560px))); } }
.phone-notch { position: absolute; top: clamp(12px, 1.6vw, 20px); left: 50%; transform: translateX(-50%); width: 28%; height: clamp(8px, 1.1vw, 16px); background: var(--ink); border-radius: 99px; z-index: 2; }
.feature__info { display: grid; gap: 20px; align-content: start; }
.feature__title { font-size: var(--fs-d3); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.feature__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.feature__title a:hover { background-size: 100% 1px; }
.feature__summary { color: var(--grey); max-width: 46ch; }
.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-2); }
@media (min-width: 1024px) {
  .feature { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .feature__media { grid-column: 1 / span 8; }
  .feature__info { grid-column: 9 / span 4; position: sticky; top: calc(var(--header-h) + 40px); padding-top: 40px; }
}

/* ---------- Why / principles ---------- */
.why__grid { display: grid; gap: 56px; }
.why__sticky { display: grid; gap: 28px; align-content: start; }
.why__note { color: var(--grey); max-width: 38ch; }
.principles { border-top: 1px solid var(--line); }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); }
.principle__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--grey); padding-top: 0.7em; }
.principle h3 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 12px; }
.principle p { color: var(--grey); max-width: 48ch; }
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .why__sticky { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
  .principles { grid-column: 7 / span 6; }
}

/* ---------- Horizontal process ---------- */
.process-h { padding-block: 0; overflow: hidden; }
.process-h__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(40px, 6vh, 72px); padding-block: var(--sec); }
.process-h__head { display: grid; gap: 24px; }
.process-h__viewport { overflow: hidden; }
.process-h__track { display: grid; gap: 0; padding-inline: var(--pad); }
.step { border-top: 1px solid var(--line-light); padding: 28px 0 36px; display: grid; gap: 12px; align-content: start; }
.step__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.9; color: var(--paper); }
.step h3 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; }
.step p { color: var(--grey-2); max-width: 32ch; }
.process-h__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.process-h__progress { flex: 1; max-width: 420px; height: 1px; background: var(--line-light); display: none; }
.process-h__progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.link-line--light { color: var(--paper); }
@media (min-width: 1024px) {
  .process-h__pin { height: 100svh; padding-block: calc(var(--header-h) + 24px) 48px; }
  .process-h__head { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .process-h__head .label { grid-column: 1 / span 3; }
  .process-h__head h2 { grid-column: 4 / span 9; }
  .process-h__track { display: flex; width: max-content; gap: 0; }
  .step { width: clamp(300px, 27vw, 440px); padding: 32px 48px 0 0; border-top: 0; border-left: 1px solid var(--line-light); padding-left: 32px; min-height: 300px; }
  .process-h__progress { display: block; }
}

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.price { display: grid; gap: 20px; align-content: start; padding: clamp(32px, 4vw, 64px) 0; border-bottom: 1px solid var(--line); }
.price__amount { display: flex; align-items: baseline; gap: 14px; }
.price__val { font-size: clamp(4rem, 9vw, 8.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.price__unit { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 2rem); color: var(--grey); }
.price__title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.price__text { color: var(--grey); max-width: 46ch; }
.price .btn { justify-self: start; margin-top: 8px; }
.checks { display: grid; gap: 10px; margin-block: 4px 8px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ''; width: 14px; height: 1px; background: var(--ink); flex: none; transform: translateY(-4px); }
.price__val--quote { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.price-grid--3 .price { padding-inline: 0; }
.price-grid--3 .price .price__val { font-size: clamp(3.4rem, 5.4vw, 5.6rem); }
.price-grid--3 .price__unit { white-space: nowrap; }
.price-grid--3 .checks li { font-size: 0.975rem; }
.price-grid--3 .checks { align-content: start; }
.price--featured { background: var(--ink); color: var(--paper); }
.price--featured .label, .price--featured .price__unit, .price--featured .price__text { color: var(--grey-2); }
.price--featured .checks li::before { background: var(--paper); }
.price--featured .btn--dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.price--featured .btn--dark::before { background: var(--stone); }
@media (max-width: 1023px) { .price--featured { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad) !important; } }
@media (min-width: 1024px) {
  .price-grid.price-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .price-grid--3 .price { padding: clamp(36px, 3.4vw, 56px) clamp(24px, 2.6vw, 44px); }
  .price-grid--3 .price.price + .price { border-left: 1px solid var(--line); padding-left: clamp(24px, 2.6vw, 44px); padding-right: clamp(24px, 2.6vw, 44px); }
  .price-grid--3 .price.price:first-child { padding-left: 0; }
  .price-grid--3 .price.price:last-child { padding-right: 0; }
  .price-grid--3 .price--featured.price--featured { padding-inline: clamp(24px, 2.6vw, 44px); }
  .price-grid--3 .price .btn { margin-top: auto; }
  .price-grid--3 .price { grid-template-rows: auto auto auto 1fr auto; }
}
.addon { display: grid; gap: 24px; margin-top: 40px; padding: clamp(28px, 3vw, 44px); background: var(--paper-2); border-radius: 12px; align-items: center; }
.addon__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; margin-top: 10px; }
.addon__price { font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; color: var(--grey); margin-top: 6px; }
.addon__price span { font-family: var(--f-sans); font-style: normal; font-weight: 500; color: var(--ink); letter-spacing: -0.03em; }
.addon__list { margin: 0; }
.addon__btn { justify-self: start; }
@media (min-width: 900px) { .addon { grid-template-columns: 1.1fr 1fr auto; gap: 40px; } }
.price-note { margin-top: 32px; color: var(--grey); font-size: 0.9375rem; max-width: 70ch; }
@media (min-width: 900px) {
  .price-grid { grid-template-columns: 1fr 1fr; }
  .price { padding-right: clamp(24px, 4vw, 72px); }
  .price + .price { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 72px); padding-right: 0; }
}

/* ---------- About teaser ---------- */
.about-teaser { border-top: 1px solid var(--line); }
.about-teaser__grid { display: grid; gap: 28px; }
.about-teaser__grid > div { display: grid; gap: 28px; justify-items: start; }
.about-teaser__text { color: var(--grey); max-width: 56ch; font-size: var(--fs-lead); line-height: 1.5; }
@media (min-width: 900px) {
  .about-teaser__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .about-teaser__grid > .label { grid-column: 1 / span 3; padding-top: 0.8em; }
  .about-teaser__grid > div { grid-column: 4 / span 9; }
}

/* ---------- CTA ---------- */
.cta { border-top: 1px solid var(--line); overflow: hidden; }
.cta .label { margin-bottom: 28px; }
.cta__title { margin-bottom: clamp(48px, 6vw, 96px); }
.cta__grid { display: grid; gap: 40px; }
.cta__text { color: var(--grey); max-width: 42ch; font-size: 1.125rem; }
.cta__links { border-top: 1px solid var(--line); }
.cta__link { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'l a' 'v a'; gap: 4px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); position: relative; }
.cta__link .label { grid-area: l; }
.cta__link-val { grid-area: v; font-size: clamp(1.25rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; overflow-wrap: anywhere; transition: transform .6s var(--ease-out); }
.cta__link .ico-arrow { grid-area: a; width: 28px; height: 28px; }
.cta__link:hover .cta__link-val { transform: translateX(12px); }
.cta__link:hover .ico-arrow { transform: translate(4px, -4px); }
@media (min-width: 900px) {
  .cta__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .cta__text { grid-column: 1 / span 4; }
  .cta__links { grid-column: 6 / span 7; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(72px, 9vw, 140px); overflow: hidden; position: relative; }
.site-footer a { transition: opacity .3s; }
.site-footer__top { display: grid; gap: 40px; padding-bottom: clamp(48px, 7vw, 96px); }
.site-footer__intro { display: grid; gap: 22px; align-content: start; max-width: 34ch; color: var(--grey-2); }
.site-footer__mark { width: 56px; color: var(--paper); }
.site-footer__col .label { margin-bottom: 16px; }
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer__col a { display: inline-block; position: relative; }
.site-footer__col a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.site-footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-footer__time { margin-top: 24px; }
.site-footer__time time { color: var(--paper); font-variant-numeric: tabular-nums; }
.site-footer__word {
  display: flex; justify-content: space-between; font-weight: 600; line-height: 0.74; letter-spacing: -0.02em;
  font-size: clamp(4.6rem, 22.6vw, 25rem); margin-inline: -0.02em; overflow: hidden; padding-top: 0.04em; user-select: none;
}
.site-footer__word span { display: inline-block; }
.motion .site-footer__word span { transform: translateY(100%); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-light); color: var(--grey-2); font-size: 0.875rem; margin-top: clamp(24px, 3vw, 40px); }
.site-footer__bottom .link-line { color: var(--paper); }
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .site-footer__intro { grid-column: 1 / span 4; }
  .site-footer__top > :nth-child(2) { grid-column: 6 / span 2; }
  .site-footer__top > :nth-child(3) { grid-column: 8 / span 2; }
  .site-footer__top > :nth-child(4) { grid-column: 10 / span 3; }
}

/* ---------- Contextual cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 0; height: 0; display: none; }
.has-cursor .cursor { display: block; }
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0); white-space: nowrap;
  background: var(--ink); color: var(--paper); border-radius: 99px; padding: 12px 18px; font-size: 0.8125rem; font-weight: 500;
  transition: transform .45s var(--ease-out);
}
.cursor.is-active .cursor__label { transform: translate(-50%, -50%) scale(1); }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 11vh, 150px)); padding-bottom: clamp(56px, 8vw, 120px); position: relative; }
.page-hero__top { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: clamp(40px, 7vh, 88px); }
.page-hero__title { font-size: var(--fs-d1); font-weight: 500; letter-spacing: -0.055em; line-height: 0.93; margin-left: -0.04em; }
.page-hero__foot { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 88px); }
.page-hero__lede { font-size: var(--fs-lead); line-height: 1.5; letter-spacing: -0.012em; color: var(--ink-2); max-width: 44ch; }
@media (min-width: 900px) {
  .page-hero__foot { grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
  .page-hero__lede { grid-column: 6 / span 6; }
  .page-hero__foot > :first-child:not(.page-hero__lede) { grid-column: 1 / span 4; }
}

/* Services detail */
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; transition: background .4s, color .4s, border-color .4s; }
.toc a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 140px); scroll-margin-top: var(--header-h); }
.service__grid { display: grid; gap: 40px; }
.service__aside { display: grid; gap: 20px; align-content: start; }
.service__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(4.5rem, 10vw, 10rem); line-height: 0.8; letter-spacing: -0.02em; }
.service__title { font-size: var(--fs-d3); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.service__body { display: grid; gap: clamp(32px, 4vw, 56px); }
.service__lead { font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 450; max-width: 30ch; }
.service__cols { display: grid; gap: 32px; }
.service__cols h3 { margin-bottom: 14px; }
.service__cols p { color: var(--grey); }
.service__cols .checks li { color: var(--ink-2); }
.service__fit { padding: 22px 24px; background: var(--paper-2); border-left: 2px solid var(--ink); color: var(--ink-2); }
.service__fit strong { font-weight: 500; }
.service__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.pill-note { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); }
.pill-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
@media (min-width: 1024px) {
  .service__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .service__aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
  .service__body { grid-column: 6 / span 7; }
  .service__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* FAQ */
.faq__grid { display: grid; gap: 40px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: clamp(1.15rem, 1.7vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; flex: none; transition: background .4s, transform .6s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { padding: 0 0 28px; color: var(--grey); max-width: 62ch; overflow: hidden; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .faq__grid > :first-child { grid-column: 1 / span 4; }
  .faq__list { grid-column: 6 / span 7; }
}

/* Work index */
.work-grid { display: grid; gap: clamp(56px, 8vw, 120px); }
.work-card__link { display: grid; gap: 20px; }
.work-card__media { display: block; overflow: hidden; border-radius: 10px; background: var(--paper-2); aspect-ratio: 16 / 10.5; }
.work-card__media img { width: 100%; height: 115%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease-out), scale 1.2s var(--ease-out); }
.work-card__link:hover .work-card__media img { scale: 1.035; }
.work-card__meta { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 20px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; }
.work-card__num { font-family: var(--f-mono); font-size: 0.75rem; color: var(--grey); }
.work-card__title { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.work-card__cat, .work-card__loc { grid-column: 2; color: var(--grey); font-size: 0.9375rem; }
.work-card__go { grid-row: 1; grid-column: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .5s, color .5s; }
.work-card__go .ico-arrow { width: 18px; height: 18px; }
.work-card__link:hover .work-card__go { background: var(--ink); color: var(--paper); }
.work-card__link:hover .work-card__go .ico-arrow { transform: translate(2px, -2px); }
@media (min-width: 900px) {
  .work-card__meta { grid-template-columns: 80px 1fr auto auto 48px; }
  .work-card__cat, .work-card__loc { grid-column: auto; grid-row: 1; }
  .work-card__go { grid-column: 5; }
}
.work-note { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 72px); }
.work-note p { max-width: 52ch; color: var(--grey); font-size: 1.125rem; }
@media (min-width: 900px) {
  .work-note { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .work-note > .label { grid-column: 1 / span 3; }
  .work-note > div { grid-column: 4 / span 9; display: grid; gap: 24px; justify-items: start; }
}

/* Case study */
.cs-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.cs-meta dt { margin-bottom: 6px; }
.cs-meta dd { margin: 0; font-weight: 450; }
.cs-meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 900px) { .cs-meta { grid-template-columns: repeat(4, 1fr); } }
.cs-cover { padding-bottom: clamp(64px, 9vw, 140px); }
.cs-cover__frame { border-radius: 12px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); }
.cs-cover__frame img { width: 100%; }
.cs-block { border-top: 1px solid var(--line); padding-block: clamp(64px, 9vw, 140px); }
.cs-block__grid { display: grid; gap: 28px; }
.cs-block__body { display: grid; gap: 22px; max-width: 64ch; }
.cs-block__body p { color: var(--ink-2); font-size: 1.125rem; }
.cs-block__body .lead { font-size: clamp(1.4rem, 2.3vw, 2.1rem); line-height: 1.25; letter-spacing: -0.03em; font-weight: 450; color: var(--ink); }
@media (min-width: 900px) {
  .cs-block__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .cs-block__grid > .label { grid-column: 1 / span 3; padding-top: 0.6em; }
  .cs-block__body { grid-column: 4 / span 8; }
}
.cs-decisions { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 16px; }
.cs-decision { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cs-decision h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 8px; }
.cs-decision p { color: var(--grey); font-size: 1.0625rem; }
.cs-gallery { display: grid; gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(64px, 9vw, 140px); }
.cs-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cs-shot img { width: 100%; }
.cs-shot figcaption, .cs-figcap { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey); padding: 14px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.cs-pair { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cs-phone { justify-self: center; width: min(100%, 360px); border-radius: 40px; background: var(--ink); padding: 10px; box-shadow: 0 50px 90px -40px rgba(11, 11, 12, .5); }
.cs-phone img { border-radius: 31px; width: 100%; }
@media (min-width: 900px) {
  .cs-pair { grid-template-columns: 2fr 1fr; align-items: center; }
}
.next-project { border-top: 1px solid var(--line); }
.next-project .label { margin-bottom: 24px; }
.next-project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 40px; }

/* About */
.story__grid { display: grid; gap: 28px; }
.story__body { display: grid; gap: 24px; max-width: 62ch; }
.story__body p { font-size: 1.1875rem; color: var(--ink-2); }
.story__body .lead { font-size: clamp(1.5rem, 2.6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.035em; font-weight: 450; color: var(--ink); }
@media (min-width: 900px) {
  .story__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .story__grid > .label { grid-column: 1 / span 3; padding-top: 0.6em; }
  .story__body { grid-column: 4 / span 8; }
}
.studio-promise { overflow: hidden; }
.studio-promise__grid { display: grid; gap: 56px; align-items: center; }
.studio-promise__visual { display: grid; place-items: center; }
.studio-promise__mark { width: min(100%, 520px); color: var(--paper); }
.studio-promise__body { display: grid; gap: 28px; }
.promises { border-top: 1px solid var(--line-light); margin-top: 12px; }
.promise { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line-light); }
.promise .label { padding-top: 0.5em; }
.promise h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px; }
.promise p { color: var(--grey-2); max-width: 46ch; }
@media (min-width: 1024px) {
  .studio-promise__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .studio-promise__visual { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + 40px); align-self: start; padding-top: 40px; }
  .studio-promise__body { grid-column: 7 / span 6; }
}

/* Floating WhatsApp shortcut (mobile) */
.wa-float {
  position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 0.9375rem;
  box-shadow: 0 18px 40px -16px rgba(11, 11, 12, 0.6);
  transform: translateY(140%); transition: transform .6s var(--ease-out);
}
.wa-float svg { width: 20px; height: 20px; }
.wa-float.is-visible { transform: none; }
.menu-open .wa-float { transform: translateY(140%); }
@media (min-width: 900px) { .wa-float { display: none; } }

/* Touch: the featured browser frame scrolls itself while in view */
@media (hover: none) {
  .feature__browser .feature__scroll img { animation: framescroll 24s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate; animation-play-state: paused; }
  .feature.is-inview .feature__browser .feature__scroll img { animation-play-state: running; }
}
@keyframes framescroll { 0%, 10% { transform: translateY(0); } 100% { transform: translateY(calc(-100% + var(--frame-h, 400px))); } }
.values-list { border-top: 1px solid var(--line); }
.value { display: grid; gap: 10px 24px; padding: clamp(28px, 3.2vw, 44px) 0; border-bottom: 1px solid var(--line); }
.value h3 { font-size: clamp(1.6rem, 3.4vw, 3.1rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1; }
.value p { color: var(--grey); max-width: 46ch; }
@media (min-width: 900px) { .value { grid-template-columns: 80px 1fr 1fr; align-items: baseline; } }
.value .label { padding-top: 0.4em; }
.vision { text-align: left; }
.vision__text { font-size: clamp(2rem, 4.8vw, 5rem); line-height: 1.04; letter-spacing: -0.045em; font-weight: 450; max-width: 22ch; }

/* Process page */
.pstep { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 110px); }
.pstep__grid { display: grid; gap: 24px; }
.pstep__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(4rem, 9vw, 9rem); line-height: 0.8; }
.pstep__title { font-size: var(--fs-d3); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin-bottom: 20px; }
.pstep__text { font-size: 1.1875rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 28px; }
.pstep__cols { display: grid; gap: 24px; }
.pstep__cols div { border-top: 1px solid var(--line); padding-top: 16px; }
.pstep__cols p:not(.label) { color: var(--grey); margin-top: 8px; }
@media (min-width: 900px) {
  .pstep__grid { grid-template-columns: repeat(12, 1fr); }
  .pstep__num { grid-column: 1 / span 3; }
  .pstep__main { grid-column: 4 / span 9; }
  .pstep__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Contact */
.contact__grid { display: grid; gap: clamp(56px, 7vw, 96px); padding-bottom: var(--sec); }
.channels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.channel { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.channel__val { font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 500; letter-spacing: -0.035em; display: inline-flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.channel__val .ico-arrow { width: 22px; height: 22px; }
.channel a:hover .ico-arrow { transform: translate(3px, -3px); }
.channel p { color: var(--grey); font-size: 0.9375rem; }
.next-steps { margin-top: 48px; display: grid; gap: 0; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.next-steps li::before { counter-increment: ns; content: '0' counter(ns); font-family: var(--f-mono); font-size: 0.75rem; color: var(--grey); padding-top: 0.3em; }
.form { display: grid; gap: 28px; }
.form__row { display: grid; gap: 28px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; position: relative; }
.field label, .field legend { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); padding: 0; }
.field .opt { text-transform: none; letter-spacing: 0; font-family: var(--f-sans); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; border-radius: 0;
  padding: 10px 0 14px; font-size: 1.25rem; letter-spacing: -0.015em; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230b0b0c' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 top 40%; background-size: 20px; padding-right: 32px; cursor: pointer; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: #b42318; box-shadow: 0 1px 0 0 #b42318; }
.field__error { color: #b42318; font-size: 0.875rem; min-height: 0; }
.field__error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 0.9375rem; transition: background .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form__note { color: var(--grey); font-size: 0.875rem; max-width: 56ch; }
.form__status { font-size: 0.9375rem; padding: 14px 16px; background: var(--paper-2); border-left: 2px solid var(--ink); }
.form__status:empty { display: none; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .contact__aside { grid-column: 1 / span 5; }
  .contact__form { grid-column: 7 / span 6; }
}

/* 404 */
.nf { min-height: 100svh; display: grid; align-content: center; padding-top: var(--header-h); }
.nf__code { font-family: var(--f-serif); font-style: italic; font-size: clamp(8rem, 30vw, 26rem); line-height: 0.8; letter-spacing: -0.04em; }
.nf .btn { margin-top: 32px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 899px) {
  :root { --header-h: 68px; }
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta > :nth-child(2) { display: none; }
  .hero__foot { grid-template-columns: 1fr; gap: 28px; }
  .hero__lede, .hero__actions { grid-column: 1 / -1; }
  .hero__scroll { display: none; }
  .intro__grid { grid-template-columns: 1fr; }
  .intro__label, .intro__statement { grid-column: 1 / -1; }
  .srv-row__desc { font-size: 0.9375rem; }
  .feature__media { padding-right: 18vw; padding-bottom: 14vw; }
}
@media (max-width: 520px) {
  .btn { --bh: 52px; padding: 0 22px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .srv-row a { grid-template-columns: 36px 1fr 36px; }
  .srv-row__go { width: 36px; height: 36px; }
  .page-hero__top .label:last-child { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .feature__browser:hover .feature__scroll img { transform: none; }
}

/* No-motion fallback for the horizontal process track */
html:not(.motion) .process-h__viewport, .no-anim .process-h__viewport { overflow-x: auto; scrollbar-width: thin; }
