/* ==================================================================
   OmniWeb — site styles
   ================================================================== */

:root {
  --bg: #FAFAF8;
  --bg-alt: #F1F1EC;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-2: #3A3A37;
  --muted: #696964;
  --line: #E3E3DD;
  --line-strong: #CFCFC8;
  --accent: #1F4BFF;
  --accent-hover: #1238DB;
  --accent-soft: rgba(31, 75, 255, 0.14);
  --dark: #0C0C0D;
  --on-dark: #F4F4F1;
  --on-dark-muted: #A1A19B;
  --accent-on-dark: #7F98FF;
  --error: #B3261E;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --section: clamp(104px, 12vw, 184px);
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
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, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--dark { color: var(--on-dark-muted); }
.h2 {
  margin-top: 20px;
  font-size: clamp(2.375rem, 1.35rem + 3.5vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.display {
  margin-top: 20px;
  font-size: clamp(2.75rem, 1.2rem + 5.6vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.muted { color: #A3A39C; }
.lede { font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem); line-height: 1.5; letter-spacing: -0.012em; color: var(--muted); text-wrap: pretty; }
.note { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 42ch; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn span[aria-hidden] { transition: transform 0.35s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn--primary:hover { --btn-bg: var(--accent); }
.btn--primary:active, .btn--accent:active { transform: scale(0.98); }
.btn--accent { --btn-bg: var(--accent); }
.btn--accent:hover { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 0 100% / 100% 1px no-repeat;
  transition: color 0.3s var(--ease), background-size 0.5s var(--ease);
}
.link-arrow span { transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--accent); background-size: 100% 1px, 100% 1px; }
.link-arrow:hover span { transform: translateX(4px); }

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; height: 100%; gap: 32px; }
.nav__brand img { width: auto; height: 30px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { color: var(--ink); background: rgba(17, 17, 17, 0.045); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.nav__links a[aria-current="true"]::after { opacity: 1; transform: scale(1); }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin-left: auto; margin-right: -10px; border-radius: 50%; }
.nav__toggle-lines { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; }
.nav__toggle-lines i { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform 0.45s var(--ease-io); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines i:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 0.4s var(--ease), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu__links span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.16s; }
.menu__foot { display: grid; gap: 20px; }
.menu__contact { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(28px, 3.5vw, 56px)); }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero__trust { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.hero__trust i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title {
  margin-top: clamp(32px, 3.6vw, 52px);
  font-size: clamp(3.125rem, 0.6rem + 8vw, 8.5rem);
  text-wrap: balance;
  font-weight: 500;
  line-height: 0.93;
  letter-spacing: -0.052em;
}
.hero__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: clamp(32px, 3.2vw, 48px);
}
.hero__for { grid-column: 1 / span 4; align-self: end; max-width: 30ch; font-size: 15px; line-height: 1.55; color: var(--muted); }
.hero__for .label { display: block; margin-bottom: 10px; }
.hero__aside { grid-column: 7 / -1; }
.hero__aside .lede { max-width: 34ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }

.hero__stage {
  position: relative;
  width: min(100% - var(--gutter) * 2, 1440px);
  aspect-ratio: 1360 / 700;
  margin: clamp(56px, 5.5vw, 80px) auto 0;
}
.stage__item { position: absolute; transition: transform 1.2s var(--ease); will-change: transform; }
.stage__item--b { right: 0; top: 0; width: 53%; z-index: 1; }
.stage__item--a { left: 0; top: 15%; width: 61%; z-index: 2; }
.stage__item--p { left: 57%; top: 31%; width: 15%; z-index: 3; }
.float { animation: float 10s ease-in-out infinite alternate; }
.float--2 { animation-duration: 12s; animation-delay: -4s; }
.float--3 { animation-duration: 9s; animation-delay: -2s; }
@keyframes float { from { transform: translateY(-5px); } to { transform: translateY(7px); } }
.hero__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }

/* Hero entrance */
.js .hero__stage .stage__item > .float { opacity: 0; translate: 0 40px; transition: opacity 1.1s var(--ease), translate 1.3s var(--ease); }
.js .hero__stage.is-in .stage__item > .float { opacity: 1; translate: 0 0; }
.js .hero__stage.is-in .stage__item--a > .float { transition-delay: 0.12s; }
.js .hero__stage.is-in .stage__item--p > .float { transition-delay: 0.28s; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head--split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 28px;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.section-head--split > :first-child { grid-column: 1 / span 7; }
.section-head__aside { grid-column: 8 / -1; align-self: end; }
.section-head__aside .note { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--accent); }

/* ---------- Work ---------- */
.work { padding-top: var(--section); }
.projects { display: grid; row-gap: clamp(104px, 13vw, 200px); }
.project__preview { position: relative; display: block; cursor: pointer; }
.project__preview > div { transition: transform 0.9s var(--ease); }
.project__preview:hover > div:first-child { transform: translateY(-6px); }
.project__preview:hover > .project__phone { transform: translateY(-14px); }
.project__phone { position: absolute; z-index: 2; width: 19%; right: 4%; bottom: -11%; }
.project__phone--left { left: -6%; right: auto; bottom: -12%; width: 21%; }
.project__preview--panel {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #E9EBEE;
  padding: clamp(28px, 6vw, 96px) clamp(20px, 6vw, 96px) 0;
}
.project__preview--warm { background: #EDE6DC; aspect-ratio: 4 / 5; padding: clamp(32px, 5vw, 72px) 0 0; place-items: start center; }
.project__phone-solo { width: min(56%, 300px); margin-bottom: -18%; }
.project__wide { width: 100%; margin-bottom: -2%; }
.project__preview--panel:hover > div:first-child { transform: translateY(-10px); }

.project__meta { display: flex; flex-direction: column; align-items: flex-start; }
.project__index { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.project__meta .tag { margin-bottom: 4px; justify-self: start; }
.project__name { margin-top: 18px; font-size: clamp(1.75rem, 1.25rem + 1.3vw, 2.625rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
.project__cat { margin-top: 8px; font-size: 15px; color: var(--muted); }
.project__desc { max-width: 36ch; margin: 18px 0 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.project--a, .project--e, .projects__pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.project--a .project__media { grid-column: 1 / span 9; }
.project--a .project__meta { grid-column: 10 / -1; align-self: end; padding-bottom: 4px; }
.project--b { grid-column: 1 / span 5; }
.project--c { grid-column: 7 / -1; margin-top: clamp(96px, 17vw, 280px); }
.project--b .project__meta, .project--c .project__meta { margin-top: 32px; }
.project--b .project__index, .project--c .project__index { display: none; }
.project--b .project__meta, .project--c .project__meta { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.project--b .project__meta > :not(.tag), .project--c .project__meta > :not(.tag) { grid-column: 1 / -1; }
.project--b .project__name, .project--c .project__name { margin-top: 14px; }
.project--b .link-arrow, .project--c .link-arrow { justify-self: start; }
.project__meta--row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.project__meta--row > :nth-child(1) { grid-column: 1 / span 4; display: flex; flex-direction: column; align-items: flex-start; }
.project__meta--row { align-items: end; }
.project__meta--row > :nth-child(2) { grid-column: 5 / span 3; margin-bottom: 4px; }
.project__meta--row > :nth-child(3) { grid-column: 8 / -1; }
.project__meta--row .project__desc { margin-top: 0; }
.project--e .project__meta { grid-column: 1 / span 3; align-self: center; }
.project--e .project__media { grid-column: 5 / -1; }

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line); }
.services__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; }
.services__head { grid-column: 1 / span 5; align-self: start; position: sticky; top: calc(var(--nav-h) + 48px); }
.services__head .lede { max-width: 28ch; margin: 24px 0 32px; }
.service-list { grid-column: 7 / -1; counter-reset: s; }
.service { display: grid; grid-template-columns: 72px 1fr; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { padding-top: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); transition: color 0.3s; }
.service__title { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.25rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; transition: transform 0.5s var(--ease); }
.service__desc { max-width: 44ch; margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.service:hover .service__num { color: var(--accent); }
.service:hover .service__title { transform: translateX(4px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; line-height: 1.2; color: var(--ink-2); }

/* ---------- Why ---------- */
.why { background: var(--surface); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; margin-top: clamp(64px, 8vw, 112px); }
.why__visual { grid-column: 1 / span 5; align-self: start; }
.why__phone {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--bg-alt);
}
.why__device { position: relative; width: min(52%, 280px); }
.why__marker--1 { top: 9%; left: -6%; }
.why__marker--2 { top: 75%; right: -6%; }
.why__marker--3 { top: 40%; right: -6%; }
.why__marker {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 0 0 5px rgba(31, 75, 255, 0.18);
}
.why__notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.why__note { display: block; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.why__note b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--ink); }
.why__note b::before {
  content: attr(data-n);
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
}
.why__copy { grid-column: 7 / -1; }
.why__intro { max-width: 30ch; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); line-height: 1.3; letter-spacing: -0.025em; color: var(--ink); text-wrap: pretty; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 32px; margin-top: clamp(48px, 5vw, 72px); }
.why__list li { padding-top: 20px; border-top: 1px solid var(--line); }
.why__num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.why__list h3 { margin: 12px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.why__list p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Process ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 0; }
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}
.timeline::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-io) 0.2s; }
.timeline.is-in::after { transform: scaleX(1); }
.timeline__step { position: relative; padding-right: 12px; }
.timeline__dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.timeline__num { display: block; margin-top: 36px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.timeline__step h3 { margin: 12px 0 12px; font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.5rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.timeline__step p { max-width: 28ch; font-size: 16px; line-height: 1.55; color: var(--muted); }
.js .timeline__step { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.timeline.is-in .timeline__step { opacity: 1; transform: none; }
.timeline.is-in .timeline__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline.is-in .timeline__step:nth-child(1), .timeline.is-in .timeline__step:nth-child(1) .timeline__dot { transition-delay: 0.2s; }
.timeline.is-in .timeline__step:nth-child(2), .timeline.is-in .timeline__step:nth-child(2) .timeline__dot { transition-delay: 0.75s; }
.timeline.is-in .timeline__step:nth-child(3), .timeline.is-in .timeline__step:nth-child(3) .timeline__dot { transition-delay: 1.3s; }
.timeline.is-in .timeline__step:nth-child(4), .timeline.is-in .timeline__step:nth-child(4) .timeline__dot { transition-delay: 1.85s; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding-top: clamp(112px, 14vw, 200px); }
.cta::selection, .cta ::selection { background: var(--accent-on-dark); color: var(--dark); }
.cta__title {
  max-width: 15ch;
  margin-top: 28px;
  font-size: clamp(2.75rem, 0.9rem + 6.2vw, 7.5rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.cta__mark { position: relative; white-space: nowrap; }
.cta__mark::after {
  content: "";
  position: absolute;
  left: 0.02em;
  right: 0.3em;
  bottom: 0.04em;
  height: 0.055em;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.3s var(--ease-io) 0.5s;
}
.cta__title.is-in .cta__mark::after, html:not(.js) .cta__mark::after { transform: scaleX(1); }
.cta__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(40px, 5vw, 64px); align-items: end; }
.cta__text { grid-column: 1 / span 5; max-width: 38ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--on-dark-muted); }
.cta__row .btn { grid-column: 9 / -1; justify-self: end; }
.cta__reel {
  --reel-w: clamp(240px, 24vw, 360px);
  height: calc(var(--reel-w) * 0.44);
  margin-top: clamp(88px, 11vw, 160px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.cta__track { display: flex; gap: 24px; width: max-content; animation: reel 90s linear infinite; }
.cta__track > div { width: var(--reel-w); flex: none; opacity: 0.88; }
.cta__track .frame--browser { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
@keyframes reel { to { transform: translateX(calc(-50% - 12px)); } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; }
.contact__intro { grid-column: 1 / span 5; }
.contact__intro .lede { max-width: 36ch; margin-top: 24px; }
.contact__direct { margin-top: 48px; }
.direct {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact__direct li:last-child .direct { border-bottom: 1px solid var(--line); }
.direct__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.35s var(--ease), color 0.35s, border-color 0.35s; }
.direct__text { display: flex; flex-direction: column; min-width: 0; }
.direct__text b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.direct__text span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.direct__arrow { color: var(--muted); transition: transform 0.35s var(--ease), color 0.35s; }
.direct:hover .direct__icon { background: var(--ink); border-color: var(--ink); color: #fff; }
.direct:hover .direct__arrow { color: var(--accent); transform: translateX(4px); }

.form { grid-column: 7 / -1; }
.form__hint { margin-bottom: 24px; font-size: 13px; color: var(--muted); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .budget legend { margin-bottom: 8px; font-size: 14px; font-weight: 500; letter-spacing: -0.005em; }
.req { color: var(--accent); }
.optional { margin-left: 6px; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.field textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9A9A94; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B5B5AD; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }
.field__help { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.field__error { margin-top: 8px; font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.budget { margin: 0; padding: 0; border: 0; }
.budget legend { padding: 0; }
.budget__options { display: flex; flex-wrap: wrap; gap: 8px; }
.budget__options label { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.budget__options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.budget__options span {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.budget__options label:hover span { border-color: var(--ink); }
.budget__options input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.budget__options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.form__submit { min-width: 200px; }
.form__submit .spinner { display: none; width: 16px; height: 16px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }
.form__submit[aria-busy="true"] .spinner { display: block; }
.form__submit[disabled] { opacity: 0.7; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { flex: 1 1 260px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.form__status.is-error { color: var(--error); }
.form__status.is-success { color: var(--ink); }
.form__status a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-success { padding: 40px 0; border-top: 1px solid var(--line); }
.form-success__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; }
.form-success h3 { margin-top: 24px; font-size: 28px; font-weight: 500; letter-spacing: -0.035em; }
.form-success p { max-width: 42ch; margin-top: 10px; color: var(--muted); }
.form-success button { margin-top: 24px; }

/* ---------- Footer ---------- */
.footer { padding: clamp(72px, 8vw, 112px) 0 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 48px; }
.footer__brand { grid-column: 1 / span 5; }
.footer__brand img { width: auto; height: 34px; }
.footer__brand p { max-width: 32ch; margin-top: 24px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.footer__col { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__col:nth-child(2) { grid-column: 8 / span 2; }
.footer__col .label { margin-bottom: 6px; }
.footer__col a { font-size: 15px; color: var(--ink-2); transition: color 0.25s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(64px, 8vw, 112px); padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Project viewer ---------- */
.viewer {
  width: min(1240px, 100vw - 32px);
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.45);
}
.viewer::backdrop { background: rgba(12, 12, 13, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in 0.45s var(--ease); }
.viewer[open]::backdrop { animation: fade-in 0.45s var(--ease); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
@keyframes fade-in { from { opacity: 0; } }
.viewer__inner { padding: clamp(20px, 3vw, 40px); }
.viewer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.viewer__title { margin-top: 14px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.viewer__cat { margin-top: 6px; font-size: 15px; color: var(--muted); }
.viewer__close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.25s, color 0.25s; }
.viewer__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewer__stage { display: grid; grid-template-columns: 1fr minmax(0, 23%); align-items: end; gap: clamp(20px, 3vw, 40px); margin-top: clamp(24px, 3vw, 40px); padding: clamp(20px, 4vw, 56px); background: var(--bg-alt); }
.viewer__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; margin-top: 28px; }
.viewer__foot p { max-width: 56ch; color: var(--ink-2); }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==================================================================
   Responsive
   ================================================================== */
@media (max-width: 1100px) {
  .nav__links a { padding: 8px 10px; }
  .project--a .project__media { grid-column: 1 / span 8; }
  .project--a .project__meta { grid-column: 9 / -1; }
  .project--e .project__meta { grid-column: 1 / span 4; }
  .footer__brand { grid-column: 1 / span 6; }
  .footer__col:nth-child(2) { grid-column: 7 / span 2; }
  .footer__col { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__brand img { height: 26px; }

  .hero__row { display: flex; flex-direction: column; gap: 40px; }
  .hero__aside .lede { max-width: 40ch; }
  .hero__for { order: 2; max-width: 40ch; }

  .section-head--split > :first-child, .section-head__aside { grid-column: 1 / -1; }

  .project--a .project__media, .project--a .project__meta,
  .project--b, .project--c,
  .project--e .project__media, .project--e .project__meta { grid-column: 1 / -1; }
  .project--a { row-gap: 64px; }
  .project--a .project__meta, .project--e .project__meta { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
  .project--a .project__meta > :not(.tag):not(.project__index), .project--e .project__meta > :not(.tag):not(.project__index) { grid-column: 1 / -1; }
  .project--a .project__index, .project--e .project__index { margin: 0; }
  .project--a .link-arrow, .project--e .link-arrow { justify-self: start; }
  .project--e { row-gap: 40px; }
  .project--e .project__media { order: -1; }
  .projects__pair { row-gap: clamp(104px, 13vw, 200px); }
  .project--b .project__preview--warm { aspect-ratio: 5 / 4; }
  .project--b .project__phone-solo { width: min(40%, 280px); }
  .project--c { margin-top: 0; }
  .project__meta--row { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .project__meta--row .project__cat { margin-bottom: 18px; }

  .services__head { grid-column: 1 / -1; position: static; }
  .service-list { grid-column: 1 / -1; }

  .why__visual, .why__copy { grid-column: 1 / -1; }
  .why__device { width: min(46%, 260px); }

  .cta__text, .cta__row .btn { grid-column: 1 / -1; justify-self: start; }

  .contact__intro, .form { grid-column: 1 / -1; }

  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col:nth-child(2) { grid-column: span 4; }

  .viewer__stage { grid-template-columns: 1fr; }
  .viewer__stage > :last-child { width: min(46%, 220px); justify-self: center; }
}

@media (max-width: 700px) {
  .timeline { grid-template-columns: 1fr; gap: 48px; padding-left: 40px; }
  .timeline::before, .timeline::after { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .timeline::after { transform: scaleY(0); transform-origin: top; }
  .timeline.is-in::after { transform: scaleY(1); }
  .timeline__dot { position: absolute; left: -40px; top: 6px; }
  .timeline__num { margin-top: 0; }
  .timeline__step h3 { margin-top: 8px; }
}

@media (max-width: 640px) {
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .hero__for { display: none; }
  .hero__stage { margin-top: 48px; }
  .hero__stage { aspect-ratio: 1 / 0.98; width: calc(100% - var(--gutter) * 2); }
  .stage__item--b { width: 74%; }
  .stage__item--a { top: 25%; width: 84%; }
  .stage__item--p { left: auto; right: 0; top: 36%; width: 31%; }
  .hero__caption { flex-direction: column; gap: 4px; }

  .project__phone { width: 26%; right: 2%; bottom: -14%; }
  .project__phone--left { left: 2%; right: auto; width: 28%; bottom: -14%; }
  .project--a { row-gap: 72px; }
  .project--e { row-gap: 64px; }
  .project--b .project__preview--warm { aspect-ratio: 4 / 4.4; }
  .project--b .project__phone-solo { width: 58%; }
  .project__preview--panel:not(.project__preview--warm) { padding: 24px 16px 0; }

  .service { grid-template-columns: 1fr; padding: 32px 0; }
  .service__num { padding: 0 0 12px; }

  .why__device { width: 58%; }
  .why__notes { grid-template-columns: 1fr; gap: 16px; }
  .why__list { grid-template-columns: 1fr; gap: 32px; }

  .cta__row .btn { width: 100%; }

  .form__grid { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }

  .footer__col, .footer__col:nth-child(2) { grid-column: span 5; }
  .footer__col:nth-child(3) { grid-column: span 7; }
  .footer__bottom { flex-direction: column; }

  .viewer { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .viewer__stage { padding: 16px; }
  .viewer__foot .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .timeline__step, .js .hero__stage .stage__item > .float { opacity: 1; transform: none; translate: none; }
  .cta__track { animation: none; }
  .cta__mark::after { transform: scaleX(1); }
  .timeline::after { transform: none; }
}
