/* =========================================================
   Solven — styles
   ========================================================= */

:root {
  --bg: #EDEDEA;
  --bg-2: #E4E4E0;
  --surface: #F6F6F4;
  --ink: #0D0D0D;
  --ink-2: #3B3B39;
  --muted: #6B6B67;      /* small text — 4.6:1 on --bg (WCAG AA) */
  --muted-lg: #858580;   /* large headings only — 3.1:1 (AA large) */
  --line: rgba(13, 13, 13, .14);
  --accent: #2443FF;
  --accent-hover: #1631E0;
  --accent-ink: #FFFFFF;
  --danger: #C4271A;

  --dark-bg: #0F0F0F;
  --dark-ink: #EDEDEA;
  --dark-muted: #8E8E87; /* 5.8:1 on --dark-bg */
  --dark-line: rgba(237, 237, 234, .14);

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --max: 1560px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.arrow { display: inline-block; transition: transform .35s var(--ease); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 48px; padding: 0 22px;
  font-size: 14px; font-weight: 500; letter-spacing: -.005em;
  border-radius: 999px;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover .arrow, .link-arrow:hover .arrow, .header-cta:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(237, 237, 234, .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%); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; justify-self: start; }
.logo-mark { position: relative; width: 18px; height: 18px; transition: transform .6s var(--ease-out); }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: var(--ink); }
.logo-mark::before { left: 50%; top: 0; bottom: 0; width: 3px; transform: translateX(-50%); }
.logo-mark::after { top: 50%; left: 0; right: 0; height: 3px; transform: translateY(-50%); }
.logo:hover .logo-mark { transform: rotate(90deg); }

.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 13px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; color: var(--ink-2); transition: color .25s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }

.header-cta {
  justify-self: end; display: inline-flex; align-items: center; gap: .5em;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 500;
  transition: background-color .3s var(--ease);
}
.header-cta:hover { background: var(--accent); }

.menu-toggle { display: none; justify-self: end; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; height: 44px; }
.menu-toggle-icon { position: relative; width: 18px; height: 10px; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon::after { top: 8.5px; }
.menu-open .menu-toggle-icon::before { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-toggle-icon::after { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: clamp(56px, 7vw, 104px);
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--muted);
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.status { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-top: clamp(40px, 8vh, 96px);
}
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 6.8vw, 120px);
  line-height: .94; letter-spacing: -.045em;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.hero-title .line:nth-child(2) > span { transition-delay: .09s; }
.hero-title .line:nth-child(3) > span { transition-delay: .18s; }
.is-loaded .hero-title .line > span { transform: none; }

.hero-intro { max-width: 46ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); margin-top: clamp(24px, 3vw, 40px); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Hero visual — a site that builds itself */
.hero-visual { position: relative; padding: 0 0 12% 0; }
.build {
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 60px -30px rgba(13,13,13,.28);
  border: 1px solid var(--line);
}
.build-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(0,0,0,.07); background: #FAFAF9; }
.build-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2E2DE; }
.build-url { margin: 0 auto; font-size: 11px; color: var(--muted); background: #F0F0EE; padding: 3px 14px; border-radius: 999px; }
.build-page { aspect-ratio: 16 / 11; padding: 7% 8%; display: flex; flex-direction: column; gap: 4.5%; }
.b { opacity: 0; transform-origin: left center; animation: build 10s var(--ease-out) infinite both; animation-delay: calc(var(--i) * .45s + .6s); }
@keyframes build {
  0% { opacity: 0; transform: scaleX(.3); }
  7% { opacity: 1; transform: none; }
  82% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: none; }
}
.b-nav { display: flex; gap: 10px; align-items: center; margin-bottom: 6%; }
.b-nav b { width: 18%; height: 10px; border-radius: 2px; background: var(--ink); margin-right: auto; }
.b-nav span { width: 9%; height: 6px; border-radius: 2px; background: #E4E4E0; }
.b-h { height: 9%; width: 78%; border-radius: 4px; background: var(--ink); }
.b-h-short { width: 52%; }
.b-p { height: 4%; width: 62%; border-radius: 3px; background: #E4E4E0; margin-top: 2%; }
.b-btn { height: 8%; width: 22%; border-radius: 999px; background: var(--accent); }
.b-cards { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 10px; margin-top: 3%; }
.b-cards span { border-radius: 6px; background: #EEEEEB; }
.b-cards span:first-child { background: linear-gradient(140deg, #DCE2FF, #AEBBFF); }

.build-phone {
  position: absolute; right: -2%; bottom: 0; width: 27%;
  aspect-ratio: 9 / 18.5; background: #fff; border-radius: 18px;
  border: 5px solid var(--ink); padding: 26px 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 30px 50px -24px rgba(13,13,13,.4);
}
.b-pnav { display: flex; justify-content: space-between; align-items: center; }
.b-pnav b { width: 40%; height: 6px; border-radius: 2px; background: var(--ink); }
.b-pnav span { width: 16%; height: 6px; border-radius: 2px; background: #E4E4E0; }
.b-pimg { height: 34%; border-radius: 6px; background: linear-gradient(140deg, #DCE2FF, #AEBBFF); }
.b-ph { height: 7px; width: 90%; border-radius: 2px; background: var(--ink); }
.b-ph-short { width: 60%; }
.b-pbtn { height: 14px; width: 55%; border-radius: 999px; background: var(--accent); margin-top: auto; }

.build-chip {
  position: absolute; left: 6%; bottom: 3%;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; font-weight: 500; padding: 9px 14px; border-radius: 999px;
}
.build-chip i { font-style: normal; color: #8DA0FF; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px 0;
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 56px); letter-spacing: -.035em; line-height: 1;
}
.marquee-track { display: flex; width: max-content; gap: .5em; align-items: center; animation: marquee 38s linear infinite; }
.marquee-track i { font-style: normal; color: var(--accent); font-weight: 300; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: clamp(96px, 13vw, 190px); padding-bottom: clamp(48px, 6vw, 80px); }
.section-head { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; margin-bottom: clamp(56px, 8vw, 110px); }
.section-head-row { grid-template-columns: 1fr auto; align-items: end; }
.section-head-row > div { display: grid; grid-template-columns: 1fr 3fr; gap: 32px; }
.section-label { display: flex; gap: 14px; align-items: baseline; font-size: 13px; font-weight: 500; padding-top: .7em; }
.section-label .idx { color: var(--muted); font-variant-numeric: tabular-nums; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 72px); line-height: 1.02; letter-spacing: -.035em;
  max-width: 18ch;
}
.section-title .muted { color: var(--muted-lg); }
.section-dark .section-title .muted { color: var(--dark-muted); }
.link-arrow { display: inline-flex; gap: .5em; font-size: 14px; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }

/* Approach */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 28px 32px 48px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 32px; }
.principle:last-child { border-right: 0; }
.principle-num { display: block; font-size: 13px; color: var(--muted); margin-bottom: clamp(48px, 7vw, 110px); }
.principle h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.035em; line-height: 1; margin-bottom: 18px; }
.principle p { color: var(--ink-2); max-width: 34ch; }

/* Statement band */
.statement-band { background: var(--ink); color: var(--bg); margin-top: clamp(72px, 10vw, 140px); padding: clamp(80px, 11vw, 170px) 0; }
.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(36px, 6vw, 104px); line-height: .98; letter-spacing: -.045em;
  max-width: 14ch;
}
.statement .accent { color: #8DA0FF; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.service {
  background: var(--surface); padding: clamp(28px, 3.4vw, 52px);
  display: flex; flex-direction: column; gap: 28px;
  border: 1px solid transparent; transition: border-color .4s var(--ease);
}
.service:hover { border-color: var(--line); }
.service-head { display: flex; gap: 24px; align-items: flex-start; }
.service-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1.02; margin-top: 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.tag-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.service-desc { color: var(--ink-2); max-width: 46ch; font-size: 17px; }
.scope { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: auto; }
.scope li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.scope li::before { content: "+"; color: var(--accent); font-weight: 500; }
.scope li:nth-child(odd) { padding-right: 16px; }

/* Process (dark) */
.section-dark { background: var(--dark-bg); color: var(--dark-ink); padding-bottom: clamp(96px, 14vw, 200px); margin-top: clamp(48px, 8vw, 120px); }
.section-dark .section-label .idx { color: var(--dark-muted); }
.process-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h) + 40px); }
.process-intro .section-title { margin-top: 32px; }
.process-note { margin-top: 28px; color: var(--dark-muted); max-width: 36ch; }

.steps { border-top: 1px solid var(--dark-line); }
.step { border-bottom: 1px solid var(--dark-line); }
.step-btn { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; text-align: left; padding: clamp(22px, 2.4vw, 34px) 0; }
.step-num { font-size: 13px; color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.step-title { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; transition: transform .5s var(--ease-out); }
.step-btn:hover .step-title { transform: translateX(6px); }
.step-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dark-line); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.step-icon::before, .step-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.step-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.step.is-open .step-icon { background: var(--accent); border-color: var(--accent); }
.step.is-open .step-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.step-body > div { overflow: hidden; padding-left: 64px; }
.step.is-open .step-body { grid-template-rows: 1fr; }
.step-body p { color: #BDBDB7; max-width: 52ch; padding-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 34px; }
.chips li { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--dark-line); color: var(--dark-ink); }

/* Work / concepts */
.work-note { max-width: 30ch; font-size: 14px; color: var(--muted); text-align: right; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px) 16px; }
.work-card:nth-child(even) { margin-top: clamp(0px, 8vw, 140px); }
.work-media { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 3; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.work-card:hover .work-media img { transform: scale(1.035); }
.work-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.work-info h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; letter-spacing: -.025em; }
.work-info span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.work-info em { font-style: normal; color: var(--accent); font-weight: 500; }

/* CSS website mockups (concept visuals) */
.mock {
  position: absolute; left: 7%; top: 9%; width: 78%; height: 100%;
  padding: 4% 5%; display: flex; flex-direction: column; gap: 5%;
  --m-bg: #fff; --m-fg: #111; --m-soft: rgba(0,0,0,.08);
  background: var(--m-bg); border-radius: 8px 8px 0 0;
  box-shadow: 0 30px 60px -30px rgba(13,13,13,.35);
  transition: transform 1.1s var(--ease-out);
}
.work-card:hover .mock { transform: translateY(-2%); }
.mock > * { flex: none; }
.mock-bar { display: flex; gap: 5px; }
.mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--m-soft); }
.mock-nav { display: flex; align-items: center; gap: 10px; }
.mock-nav b { width: 16%; height: 8px; background: var(--m-fg); border-radius: 2px; margin-right: auto; }
.mock-nav span { width: 8%; height: 5px; background: var(--m-soft); border-radius: 2px; }
.mock-hero { display: flex; flex-direction: column; gap: 8px; margin-top: 4%; }
.mock-hero span, .mock-split span { height: clamp(10px, 1.5vw, 22px); border-radius: 3px; background: var(--m-fg); }
.mock-hero span.sm { height: 7px; background: var(--m-soft); margin-top: 6px; }
.mock-hero.center { align-items: center; }
.mock .w90 { width: 90%; } .mock .w80 { width: 80%; } .mock .w70 { width: 70%; } .mock .w60 { width: 60%; } .mock .w50 { width: 50%; } .mock .w30 { width: 30%; }
.mock .btnish { width: 28% !important; height: clamp(10px, 1.5vw, 20px) !important; border-radius: 999px !important; background: var(--m-acc, #2443FF) !important; margin-top: 6px; }
.mock-blocks { flex: 1 !important; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-bottom: 14%; }
.mock-blocks span { background: var(--m-soft); border-radius: 3px; }
.mock-split { flex: 1 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; margin-bottom: 14%; }
.mock-split > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.mock-split .img { height: 100%; border-radius: 4px; background: var(--m-img); }
.mock-gallery { flex: 1 !important; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14%; }
.mock-gallery span { border-radius: 3px; background: var(--m-soft); }
.mock-gallery span:nth-child(1) { grid-row: span 2; background: #C9B9A3; }
.mock-gallery span:nth-child(5) { background: #8E9A8B; }
.mock-rows { flex: 1 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4% 0 14%; }
.mock-rows span { background: var(--m-soft); border-radius: 3px; }

.mock-phone {
  position: absolute; right: 5%; bottom: -6%; width: 22%; aspect-ratio: 9 / 18;
  background: var(--m-bg); border: 4px solid #0D0D0D; border-radius: 16px;
  padding: 18px 8px 0; display: flex; flex-direction: column; gap: 7px;
  box-shadow: 0 24px 40px -20px rgba(13,13,13,.5);
  transition: transform 1.1s var(--ease-out);
}
.work-card:hover .mock-phone { transform: translateY(-5%); }
.mock-phone b { width: 45%; height: 5px; border-radius: 2px; background: var(--m-fg); }
.mock-phone .ph-img { height: 30%; border-radius: 5px; background: var(--m-soft); }
.mock-phone .ph-img.alt { background: #C9B9A3; }
.mock-phone .ph-line { height: 6px; width: 90%; border-radius: 2px; background: var(--m-fg); }
.mock-phone .ph-line.short { width: 60%; }
.mock-phone .ph-btn { height: 12px; width: 60%; border-radius: 999px; background: var(--m-acc, #2443FF); }

.mock-a { --m-bg: #111111; --m-fg: #EDEDEA; --m-soft: rgba(255,255,255,.1); }
.mock-a .mock-blocks span:first-child, .mock-phone.mock-a .ph-img { background: #2443FF; }
.mock-b { --m-bg: #F3F6FA; --m-fg: #0E2A47; --m-soft: rgba(14,42,71,.1); --m-acc: #1E9E8B; --m-img: linear-gradient(160deg, #9ED3C9, #1E9E8B); }
.mock-phone.mock-b .ph-img { background: linear-gradient(160deg, #9ED3C9, #1E9E8B); }
.mock-c { --m-bg: #F4EFE8; --m-fg: #2B2620; --m-soft: rgba(43,38,32,.1); }
.mock-d { --m-bg: #2443FF; --m-fg: #FFFFFF; --m-soft: rgba(255,255,255,.18); --m-acc: #0D0D0D; }

.work-media:has(.mock) { background: linear-gradient(180deg, #E6E6E2, #DCDCD7); }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 120px); align-items: start; }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.founder:nth-child(2) { margin-top: clamp(32px, 6vw, 96px); }
.founder-photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #E4E4E0 0%, #D6D6D1 100%);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(100%); transition: filter .8s var(--ease-out), transform 1.1s var(--ease-out); }
.founder:hover .founder-photo img { filter: grayscale(0%); transform: scale(1.03); }
.founder-ph { position: absolute; left: 50%; bottom: 0; width: 72%; transform: translateX(-50%); fill: #C4C4BE; }
.founder-idx { position: absolute; left: 16px; top: 14px; font-size: 12px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.founder-photo img + .founder-idx { color: #fff; mix-blend-mode: difference; }
.founder figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; border-top: 1px solid var(--ink); margin-top: 16px; }
.founder strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; }
.founder figcaption span { font-size: 13px; color: var(--muted); }

.studio-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.studio-text { font-size: clamp(17px, 1.3vw, 20px); color: var(--ink-2); max-width: 54ch; }
.promises { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.promises li { padding: 22px 24px 24px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.promises li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.promises strong { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.promises span { color: var(--ink-2); font-size: 15px; }
.testimonial { margin-top: 48px; padding-left: 24px; border-left: 2px solid var(--accent); }
.testimonial p { font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; line-height: 1.25; }
.testimonial footer { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 120px); }
.faq-grid .section-title { margin-top: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; font-family: var(--font-body); font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform .4s var(--ease-out), color .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-list details p { color: var(--ink-2); max-width: 58ch; padding-bottom: 28px; margin-top: -6px; }

/* Contact */
.contact { padding-bottom: clamp(96px, 12vw, 160px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 108px); line-height: .96; letter-spacing: -.045em; margin-top: 32px; }
.contact-details { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.contact-details > div { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-details dt { color: var(--muted); }
.contact-details a { border-bottom: 1px solid currentColor; transition: color .25s var(--ease); }
.contact-details a:hover { color: var(--accent); }

.contact-form { background: var(--surface); padding: clamp(24px, 3vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: 13px; font-weight: 500; }
.opt { color: var(--muted); font-weight: 400; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(13,13,13,.28); border-radius: 0;
  padding: 10px 0; width: 100%;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%230D0D0D' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; cursor: pointer;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--danger); }

.radio-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.radio-pills label { position: relative; cursor: pointer; }
.radio-pills input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pills span { display: inline-block; font-size: 13px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.radio-pills label:hover span { border-color: var(--ink); }
.radio-pills input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio-pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check-box { flex: none; width: 20px; height: 20px; border: 1px solid rgba(13,13,13,.4); border-radius: 4px; display: grid; place-items: center; transition: background-color .2s var(--ease), border-color .2s var(--ease); margin-top: 1px; }
.check-box::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check a { color: var(--ink); border-bottom: 1px solid currentColor; }
.field-check.has-error .check-box { border-color: var(--danger); }

.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.form-status { font-size: 14px; color: var(--ink-2); }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-ink); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 2fr auto; gap: 32px; align-items: start; }
.footer-tag { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.1; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--dark-muted); }
.footer-nav a, .back-top, .footer-bottom a { transition: color .25s var(--ease); }
.footer-nav a:hover, .back-top:hover, .footer-bottom a:hover { color: var(--dark-ink); }
.back-top { font-size: 14px; color: var(--dark-muted); }
.footer-word {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(96px, 23vw, 380px); letter-spacing: -.07em; line-height: .78;
  margin: clamp(56px, 8vw, 120px) 0 0 -.04em; white-space: nowrap;
}
.footer-word span { color: var(--accent); font-weight: 300; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--dark-line); margin-top: clamp(24px, 3vw, 40px); padding: 22px 0 28px;
  font-size: 13px; color: var(--dark-muted);
}

.studio-link { margin-top: 32px; }

/* ---------- About page ---------- */
.about-hero { padding-top: calc(var(--header-h) + 24px); }
.about-title { padding-top: clamp(48px, 9vh, 120px); font-size: clamp(52px, 9vw, 160px); }
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px);
  margin-top: clamp(40px, 6vw, 88px); padding-top: 28px; border-top: 1px solid var(--line);
}
.about-intro p { color: var(--ink-2); max-width: 52ch; }
.about-lead { font-family: var(--font-display); font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink) !important; }

.founder-profiles { display: flex; flex-direction: column; gap: clamp(80px, 11vw, 160px); }
.profile { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 120px); align-items: center; }
.profile-reverse .profile-photo { order: 2; }
.profile-photo { overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(100%); transition: filter .8s var(--ease-out), transform 1.1s var(--ease-out); }
.profile:hover .profile-photo img { filter: grayscale(0%); transform: scale(1.02); }
.profile-idx { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 5.6vw, 96px); line-height: .96; letter-spacing: -.045em; margin-top: 20px; }
.profile-role { margin-top: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--accent); }
.profile-bio { margin-top: 28px; max-width: 54ch; }
.profile-bio p { font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-2); }
.profile-bio p + p { margin-top: 16px; }
.chips-light { margin-top: 28px; padding-bottom: 0; }
.chips-light li { border-color: var(--line); color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--ink); }
.facts > div { padding: 20px 24px 0 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -.03em; margin-top: 6px; }

.about-cta { margin-top: clamp(96px, 12vw, 180px); }
.about-cta .statement { max-width: 16ch; margin-bottom: 40px; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page-header { position: static; border-bottom: 1px solid var(--line); }
.page-header .header-inner { grid-template-columns: 1fr auto; }
.page-back { font-size: 13px; font-weight: 500; }
.legal { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(80px, 10vw, 140px); }
.legal-inner { max-width: 720px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 80px); letter-spacing: -.045em; line-height: 1; margin-bottom: 16px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); border-bottom: 1px solid currentColor; }
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; align-content: center; gap: 28px; padding-top: 48px; padding-bottom: 80px; }
.notfound h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(56px, 10vw, 160px); line-height: .94; letter-spacing: -.05em; }
.notfound p { color: var(--ink-2); max-width: 44ch; font-size: 18px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hide-md { display: none; }
}

@media (max-width: 1080px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-visual { max-width: 620px; width: 100%; }
  .services { grid-template-columns: 1fr; }
  .process-grid, .faq-grid, .contact-grid, .studio-grid { grid-template-columns: 1fr; }
  .process-intro, .studio-copy { position: static; }
  .founders { max-width: 640px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .back-top { grid-column: 2; }
}

@media (max-width: 860px) {
  :root { --header-h: 58px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 28px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    font-family: var(--font-display); font-size: 30px; font-weight: 400; letter-spacing: -.03em;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .6s var(--ease-out), visibility 0s .6s;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav a::after { display: none; }
  .nav-cta-mobile { display: block; color: var(--accent) !important; border-bottom: 0 !important; }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-out); }
  .menu-open .site-header { background: var(--bg); border-bottom-color: var(--line); }

  .hero-main { padding-top: 40px; gap: 56px; }
  .section-head, .section-head-row, .section-head-row > div { grid-template-columns: 1fr; gap: 20px; }
  .section-head-row { align-items: start; }
  .work-note { text-align: left; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0 36px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-num { margin-bottom: 28px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(even) { margin-top: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .back-top { grid-column: auto; }
  .about-intro { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile-reverse .profile-photo { order: 0; }
  .profile-photo { max-width: 460px; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .scope, .promises { grid-template-columns: 1fr; }
  .scope li:nth-child(odd) { padding-right: 0; }
  .promises li:nth-child(even) { padding-left: 0; border-left: 0; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-details > div { grid-template-columns: 96px 1fr; }
  .step-btn { grid-template-columns: 44px 1fr auto; }
  .step-body > div { padding-left: 44px; }
  .service-head { gap: 16px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .build-chip { font-size: 11px; padding: 7px 11px; left: 4%; }
  .work-info { flex-direction: column; gap: 4px; }
  .founder:nth-child(2) { margin-top: 32px; }
  .founder-idx { left: 10px; top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .b { opacity: 1; }
}
