/* ==========================================================================
   Marqo Media — main stylesheet
   Theme "Fold": monochrome and dark-first, built from the folded-ribbon M.
   Type: Archivo (variable width, weight and italic).

   Colour scopes: the page uses the dark token set. Inverse surfaces
   (.section--dark, .cta-block, light cards…) switch to the light token set,
   and .theme-dark surfaces inside them switch back. Components only ever use
   the tokens, so they adapt to whichever scope they sit in.
   ========================================================================== */

:root,
.theme-dark,
.site-footer,
.mobile-menu,
.tape--ink,
.case-visual--ink,
.plan--featured,
.art-card {
  --paper: #0a0a0a;
  --paper-2: #111111;
  --sand: #1c1c1c;
  --card: #151515;
  --ink: #f3f3f1;
  --ink-2: #e2e2df;
  --ink-3: #b9b9b4;
  --muted: #8b8b86;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --accent-soft: rgba(255, 255, 255, 0.07);
  --hl-a: #ffffff;
  --hl-b: #7d7d77;
  --fold: rgba(0, 0, 0, 0.55);
  --pattern-alpha: 0.07;
}

.theme-light,
.section--dark,
.quote--dark,
.aside-card--dark,
.cta-block,
.case-visual--accent,
.tape--accent,
.art-sticker,
.art-badge {
  --paper: #f3f3f0;
  --paper-2: #e9e9e5;
  --sand: #dededa;
  --card: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1d1d1d;
  --ink-3: #3c3c39;
  --muted: #65655f;
  --line: rgba(0, 0, 0, 0.1);
  --line-2: rgba(0, 0, 0, 0.2);
  --accent-soft: rgba(0, 0, 0, 0.06);
  --hl-a: #0a0a0a;
  --hl-b: #8e8e88;
  --fold: rgba(0, 0, 0, 0.16);
  --pattern-alpha: 0.08;
}

:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 78px;

  /* Zigzag pattern from the M's strokes, used as a mask */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='36' viewBox='0 0 60 36'%3E%3Cpath d='M-4 30 9 6h9L33 30h9L57 6h9' fill='none' stroke='%23000' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E");

  interpolate-size: allow-keywords;
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(80px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--tight-top { padding-top: clamp(48px, 6vw, 88px); }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--paper); color: var(--ink); }
.section--sand { background: var(--paper-2); }

/* ---------- Type helpers ---------- */
/* .serif marks the accent words: a light italic cut of Archivo */
.serif {
  font-style: italic;
  font-weight: 300;
  font-stretch: 100%;
  letter-spacing: -0.025em;
}
.hl {
  background: linear-gradient(100deg, var(--hl-a) 10%, var(--hl-b) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.06em;
}
.display-1 { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: 0.95; letter-spacing: -0.05em; }
.display-2 { font-size: clamp(2.4rem, 4.9vw, 4.4rem); line-height: 1; letter-spacing: -0.045em; }
.h3 { font-size: clamp(1.3rem, 1.9vw, 1.55rem); letter-spacing: -0.025em; line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-3); max-width: 56ch; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.78rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
/* two slanted ribbon bars, echoing the M */
.eyebrow::before {
  content: ""; width: 26px; height: 10px; flex-shrink: 0;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 10px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 14px 0 / 10px 100% no-repeat;
  transform: skewX(-30deg);
}

.label {
  display: block;
  font-size: 0.74rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head__side { display: grid; gap: 22px; justify-items: start; }
.section-head__side p { color: var(--ink-3); font-size: 1.1rem; max-width: 46ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 4px;
  transition: gap 0.3s var(--ease), border-color 0.3s;
}
.link-arrow:hover { gap: 14px; border-color: var(--ink); }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-arrow { width: 1.1em; height: 1.1em; stroke-width: 1.8; }
.icon-check { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 600; font-size: 0.975rem; line-height: 1.1; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s;
}
.btn .icon-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn--sm { padding: 0.72rem 1.15rem; font-size: 0.9rem; }

.btn--ink, .btn--accent { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--ink:hover, .btn--accent:hover { background: transparent; color: var(--ink); }

.btn--ghost, .btn--ghost-light { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover, .btn--ghost-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 2rem; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; color: var(--ink); flex-shrink: 0; }
.logo-svg { height: 30px; width: auto; overflow: visible; }
.logo-fold { transition: transform 0.6s var(--ease); transform-origin: 50% 100%; transform-box: fill-box; }
.logo:hover .logo-fold { transform: skewX(-6deg); }

.nav { margin-left: auto; }
.nav-list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.nav-list a { position: relative; display: inline-block; padding: 0.4rem 0; font-weight: 500; font-size: 0.95rem; color: var(--ink-3); transition: color 0.25s; }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
  background: var(--paper); color: var(--ink);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.9rem, 8vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.1;
}
.mobile-list a span { font-style: italic; font-weight: 300; font-size: 1rem; color: var(--muted); letter-spacing: 0; }
.mobile-list a[aria-current="page"] span { color: var(--ink); }
.mobile-foot { display: grid; gap: 18px; margin-top: 40px; justify-items: start; }
.mobile-foot a:not(.btn) { color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 12px; margin-bottom: 30px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.86rem; font-weight: 500; color: var(--ink-2);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: ping 2.4s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.hero-title { margin-bottom: 30px; }
.mark-word { position: relative; display: inline-block; white-space: nowrap; }
.mark-word svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.26em; overflow: visible; }
.mark-word path {
  fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  animation: draw 1.1s 0.6s var(--ease) forwards;
}
/* Drawn strokes stay invisible until their animation starts (hides round caps) */
@keyframes draw { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }
.hero .lead { margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; font-size: 0.92rem; color: var(--ink-3); font-weight: 500; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon-check { color: var(--ink); }

/* Hero artwork */
.hero-art { position: relative; padding: 60px 17% 84px 0; width: 100%; max-width: 560px; justify-self: end; }
.art-backdrop {
  position: absolute; inset: 26px 0 0 16%;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #1f1f1f, #121212);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
}
.art-backdrop::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); opacity: var(--pattern-alpha);
  -webkit-mask: var(--pattern) 0 0 / 60px 36px repeat; mask: var(--pattern) 0 0 / 60px 36px repeat;
}
.art-card {
  position: relative; z-index: 1;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.art-card__top { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.live {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.12em;
}
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: ping 2.4s infinite; }
.art-metric { display: flex; align-items: flex-end; gap: 14px; margin-top: 20px; }
.art-metric strong { font-family: var(--font-display); font-stretch: 112%; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: 0.9; letter-spacing: -0.05em; }
.art-metric span { color: var(--muted); font-size: 0.86rem; line-height: 1.3; padding-bottom: 4px; }
.art-chart { width: 100%; height: auto; margin-top: 16px; overflow: visible; }
.art-chart .grid path { stroke: var(--line); stroke-dasharray: 3 6; }
.art-chart .area { fill: url(#areaGrad); opacity: 0; animation: fade-in 0.9s 1.5s forwards; }
.art-chart .line {
  fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  animation: draw 1.8s 0.35s var(--ease) forwards;
}
.art-chart .end { fill: var(--ink); opacity: 0; animation: fade-in 0.4s 2s forwards; }
.art-chart .end-ring { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ring 2.2s 2.1s infinite; }
@keyframes ring { 0% { opacity: 0.8; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }
.art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.art-stats dt { font-size: 0.74rem; color: var(--muted); }
.art-stats dd { font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: 1.15rem; letter-spacing: -0.02em; }

.art-sticker {
  position: absolute; z-index: 2; top: 0; right: 2%;
  background: var(--card); color: var(--ink);
  border-radius: var(--r);
  padding: 14px 20px 12px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
  transform: rotate(5deg);
  animation: bob 6s ease-in-out infinite;
}
.art-sticker small { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.art-sticker strong { font-family: var(--font-display); font-stretch: 112%; font-size: 1.9rem; line-height: 1.1; letter-spacing: -0.045em; }
@keyframes bob { 0%, 100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-10px); } }

.art-badge { position: absolute; z-index: 2; right: -2%; bottom: 10%; width: clamp(112px, 11vw, 148px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.art-badge text { font-family: var(--font-display); font-weight: 600; font-stretch: 115%; }
.badge-ring { transform-origin: 80px 80px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Crossed tapes (marquee) ---------- */
.tapes { position: relative; height: clamp(150px, 15vw, 210px); overflow: hidden; }
.tape {
  position: absolute; left: -5%; right: -5%; top: 50%;
  padding-block: clamp(12px, 1.3vw, 18px);
  overflow: hidden;
}
.tape--accent { background: var(--paper); color: var(--ink); transform: translateY(-50%) rotate(-2.6deg); z-index: 2; }
.tape--ink { background: var(--sand); color: var(--ink); border-block: 1px solid var(--line); transform: translateY(-50%) rotate(2deg); z-index: 1; }
.tape-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.tape--ink .tape-track { animation-direction: reverse; animation-duration: 52s; }
.tapes:hover .tape-track { animation-play-state: paused; }
.tape-group { display: flex; flex-shrink: 0; }
.tape-item {
  display: inline-flex; align-items: center; gap: clamp(18px, 2vw, 32px);
  padding-right: clamp(18px, 2vw, 32px);
  font-family: var(--font-display); font-weight: 700; font-stretch: 115%;
  font-size: clamp(1.15rem, 2.1vw, 1.8rem); letter-spacing: -0.03em; line-height: 1.2;
  white-space: nowrap; text-transform: uppercase;
}
.tape-item svg { width: 1.3em; height: 0.5em; }
.tape--ink .tape-item { color: var(--ink-3); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line-2); }
.stat { padding: clamp(28px, 3.4vw, 44px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  display: flex; align-items: baseline;
  font-family: var(--font-display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(2.6rem, 4.8vw, 4.3rem); line-height: 1; letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.stat-value .unit { margin-left: 4px; color: var(--muted); font-style: italic; font-weight: 300; font-stretch: 100%; letter-spacing: -0.02em; }
.stat-value .prefix { font-size: 0.6em; margin-right: 3px; align-self: flex-start; margin-top: 0.12em; color: var(--muted); }
.stat-label { margin-top: 14px; font-weight: 600; }
.stat-note { margin-top: 2px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 370px;
  padding: clamp(26px, 2.6vw, 36px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 0.45s var(--ease), border-color 0.45s, background-color 0.45s;
}
/* folded corner that appears on hover */
.service-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; z-index: 1;
  background: linear-gradient(225deg, var(--paper) 50%, #3a3a3a 50%, #d9d9d4 100%);
  border-bottom-left-radius: 6px;
  box-shadow: -6px 6px 14px rgba(0, 0, 0, 0.5);
  transition: width 0.45s var(--ease), height 0.45s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; right: -10px; bottom: -10px; width: 65%; height: 55%; z-index: -1;
  background: var(--ink); opacity: 0;
  -webkit-mask: var(--pattern) 0 0 / 60px 36px repeat; mask: var(--pattern) 0 0 / 60px 36px repeat;
  transition: opacity 0.5s var(--ease);
}
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 44px; }
.icon-box {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--sand); color: var(--ink);
  border: 1px solid var(--line);
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease);
}
.icon-box .icon { width: 24px; height: 24px; }
.service-num { font-style: italic; font-weight: 300; font-size: 1.35rem; color: var(--muted); line-height: 1; transition: color 0.4s; }
.service-card h3 { font-size: 1.45rem; letter-spacing: -0.035em; margin-bottom: 12px; }
.service-card p { color: var(--ink-3); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-list li {
  font-size: 0.76rem; font-weight: 500;
  padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2);
}
.service-more { margin-top: auto; padding-top: 30px; display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.service-more::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.service-more .arr {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line-2);
  transition: transform 0.45s var(--ease), background-color 0.4s, border-color 0.4s, color 0.4s;
}
.service-more .arr .icon { width: 16px; height: 16px; stroke-width: 2; }
.service-card:hover { transform: translateY(-6px); border-color: var(--line-2); background: #191919; }
.service-card:hover::after { width: 34px; height: 34px; }
.service-card:hover::before { opacity: 0.06; }
.service-card:hover .icon-box { background: var(--ink); color: var(--paper); transform: skewX(-8deg); }
.service-card:hover .service-num { color: var(--ink); }
.service-card:hover .service-more .arr { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }

/* ---------- Method (light section on the home page) ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.method-step { position: relative; padding-top: 30px; border-top: 1px solid var(--line-2); }
.method-step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease); transition-delay: calc(var(--d, 0s) + 0.2s);
}
.method-step.is-in::before { transform: scaleX(1); }
.method-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 28px; }
.method-word { font-size: clamp(2.3rem, 3.4vw, 3.2rem); letter-spacing: -0.05em; margin-bottom: 16px; }
.method-word .m, .phase-word .m { font-style: italic; font-weight: 300; font-stretch: 100%; color: var(--muted); padding-right: 0.02em; }
.method-step p { color: var(--ink-3); }
.method-loop {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: clamp(52px, 6vw, 80px);
  padding: 20px 22px 20px 26px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card);
}
.method-loop p { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.method-loop .icon { color: var(--ink); animation: spin 10s linear infinite; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.case-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.case-card[hidden] { display: none; }
.case-visual {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 5 / 4; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background: var(--paper); color: var(--ink);
}
.case-visual::before {
  content: ""; position: absolute; inset: -10%; z-index: -1;
  background: var(--ink); opacity: var(--pattern-alpha);
  -webkit-mask: var(--pattern) 0 0 / 60px 36px repeat; mask: var(--pattern) 0 0 / 60px 36px repeat;
  transition: transform 1s var(--ease);
}
/* a soft diagonal fold across every visual */
.case-visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(118deg, transparent 52%, var(--fold) 52.2%, transparent 64%);
  opacity: 0.6;
}
.case-card:hover .case-visual::before { transform: translateX(-30px); }
.case-visual--sand { background: var(--sand); }
.case-visual--ink { background: #000; }
.case-label {
  font-size: 0.7rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2);
}
.case-metric { font-family: var(--font-display); font-weight: 700; font-stretch: 115%; font-size: clamp(3.1rem, 5vw, 4.7rem); line-height: 0.9; letter-spacing: -0.06em; }
.case-metric-label { display: block; margin-top: 10px; font-weight: 500; font-size: 0.98rem; max-width: 24ch; line-height: 1.35; color: var(--ink-3); }
.case-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.case-body h3 { font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1.2; }
.case-body h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.case-body p { color: var(--ink-3); font-size: 0.96rem; }
.case-body .tag-list { margin-top: auto; padding-top: 12px; }

/* Featured case */
.feature-case {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: clamp(72px, 9vw, 120px);
}
.feature-case .case-visual { aspect-ratio: auto; min-height: 480px; padding: clamp(28px, 4vw, 48px); }
.feature-case .case-metric { font-size: clamp(5rem, 10vw, 9rem); }
.feature-case__body { padding: clamp(28px, 4vw, 56px); }
.feature-case__body h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -0.045em; margin-bottom: 26px; }
.case-story > div { padding: 18px 0; border-top: 1px solid var(--line); }
.case-story dt { font-size: 0.72rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.case-story dd { margin-top: 6px; color: var(--ink-3); }
.feature-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.feature-stats li { padding: 18px; border-radius: var(--r); background: var(--sand); border: 1px solid var(--line); }
.feature-stats strong { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1.8rem; letter-spacing: -0.05em; line-height: 1; }
.feature-stats span { font-size: 0.86rem; color: var(--muted); }

.work-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 17px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent;
  font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.quote {
  display: flex; flex-direction: column; gap: 26px; margin: 0;
  padding: clamp(26px, 3vw, 38px);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quote--dark { margin-top: 56px; border-color: transparent; }
.quote-mark { font-style: italic; font-weight: 300; font-size: 5rem; line-height: 0.5; height: 30px; color: var(--muted); }
.quote blockquote { margin: 0; font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.35; letter-spacing: -0.02em; }
.quote figcaption { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.avatar {
  display: grid; place-items: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-stretch: 115%; font-size: 0.85rem; letter-spacing: 0;
}
.avatar--ink { background: var(--sand); color: var(--ink); border: 1px solid var(--line-2); }
.avatar--paper { background: var(--ink); color: var(--paper); }
.quote-name { display: block; font-weight: 600; line-height: 1.3; }
.quote-role { display: block; font-size: 0.86rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p { color: var(--ink-3); margin: 22px 0 26px; max-width: 38ch; font-size: 1.05rem; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-family: var(--font-display); font-weight: 600; font-stretch: 108%; font-size: clamp(1.05rem, 1.5vw, 1.28rem); letter-spacing: -0.025em; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative; flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line-2);
  transition: background-color 0.3s, border-color 0.3s, transform 0.45s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px;
  background: var(--ink); transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), background-color 0.3s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item summary:hover .faq-icon { border-color: var(--ink); }
.faq-item[open] .faq-icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--paper); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 64px 28px 0; color: var(--ink-3); }
.faq-item::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

/* ---------- CTA block ---------- */
.cta-section { padding-bottom: clamp(80px, 10vw, 140px); }
.section--dark + .cta-section, .section--sand + .cta-section { padding-top: clamp(80px, 10vw, 140px); }
.cta-block {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 40px; align-items: end;
  padding: clamp(40px, 7vw, 100px) clamp(28px, 6vw, 88px);
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-xl);
}
.cta-block h2 { font-size: clamp(2.5rem, 5.8vw, 5.4rem); line-height: 0.95; letter-spacing: -0.055em; }
.cta-text { margin-top: 26px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); max-width: 48ch; color: var(--ink-3); }
.cta-notes { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-weight: 600; font-size: 0.92rem; }
.cta-notes li { display: inline-flex; align-items: center; gap: 8px; }
.cta-side { display: grid; gap: 12px; justify-items: stretch; }
.cta-deco {
  position: absolute; z-index: -1; right: -6%; bottom: -18%; width: min(58vw, 760px); height: auto;
  opacity: 0.07;
}

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--ink); padding-top: clamp(72px, 9vw, 120px); overflow: hidden; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer-brand > p { margin-top: 22px; color: var(--muted); max-width: 36ch; }
.footer-brand .logo-svg { height: 28px; }
.footer-h { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--ink-3); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.newsletter { margin-top: 34px; max-width: 440px; }
.newsletter label { display: block; font-weight: 600; }
.newsletter-sub { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.newsletter-row { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-row .input { flex: 1; min-width: 0; }
.footer-word { margin-bottom: clamp(20px, 3vw, 36px); }
.footer-word svg { width: 100%; height: auto; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 24px 32px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--muted);
}
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 110px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { display: flex; gap: 10px; font-size: 0.86rem; color: var(--muted); margin-bottom: 30px; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); line-height: 0.96; letter-spacing: -0.055em; max-width: 13ch; margin-bottom: 30px; }
.page-hero .lead { max-width: 54ch; }
.page-hero__deco {
  position: absolute; right: max(calc((100vw - var(--container)) / 2 - 60px), -60px); bottom: -14%;
  width: min(44vw, 600px); height: auto; pointer-events: none;
  opacity: 0;
  animation: deco-in 1.6s 0.2s var(--ease) forwards;
}
@keyframes deco-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 0.16; transform: none; } }

.pill-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.pill-links a, .pill-links li {
  padding: 10px 17px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper-2); font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.pill-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-links .serif { color: var(--muted); margin-right: 6px; }
.pill-links .sep { padding: 0; border: 0; background: none; color: var(--muted); align-self: center; }

/* ---------- Services page ---------- */
.service-detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px);
  padding-block: clamp(56px, 7vw, 100px);
  border-top: 1px solid var(--line-2);
}
.service-detail:first-child { border-top: 0; padding-top: 0; }
.service-detail__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.service-detail__num { display: flex; align-items: center; gap: 16px; font-style: italic; font-weight: 300; font-size: 1.35rem; color: var(--muted); }
.service-detail h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -0.05em; margin: 20px 0 20px; }
.outcome {
  margin-top: 30px; padding: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--ink); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-weight: 500;
}
.outcome strong { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.service-detail__body .label:not(:first-child) { margin-top: 40px; }
.service-detail__body .link-arrow { margin-top: 40px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.check-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.check-list .icon-check { margin-top: 3px; color: var(--ink); }
.check-list--single { grid-template-columns: 1fr; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 7px 14px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 500; }

/* Plans (inside a light section) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card); color: var(--ink);
}
.plan--featured { background: var(--paper); border-color: var(--paper); }
.plan-badge {
  position: absolute; top: 22px; right: 22px;
  padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 0.66rem; font-weight: 700; font-stretch: 115%; letter-spacing: 0.12em; text-transform: uppercase;
}
.plan h3 { font-size: 2rem; letter-spacing: -0.05em; }
.plan-term { font-style: italic; font-weight: 300; font-size: 1.25rem; color: var(--muted); margin-top: -12px; }
.plan > p { color: var(--ink-3); }
.plan-best { font-size: 0.92rem; font-weight: 600; color: var(--ink) !important; }
.plan ul li { display: flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-weight: 500; }
.plan .icon-check { margin-top: 3px; color: var(--ink); }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Approach page ---------- */
.phase {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line-2);
  align-items: start;
}
.phase:first-child { border-top: 0; padding-top: 0; }
.phase-num { font-style: italic; font-weight: 300; font-size: 1.35rem; color: var(--muted); }
.phase-word { font-size: clamp(3rem, 5.6vw, 5rem); letter-spacing: -0.06em; line-height: 0.95; margin: 6px 0 18px; }
.chip { display: inline-flex; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 600; }
.phase-body .phase-lead { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 16px; }
.phase-body p:not(.phase-lead) { color: var(--ink-3); }

.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line-2); }
.tl-item { position: relative; padding-top: 46px; }
.tl-item::before {
  content: ""; position: absolute; top: 3px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.tl-item:last-child::before { background: var(--ink); }
.tl-when { font-style: italic; font-weight: 300; font-size: 1.25rem; color: var(--muted); line-height: 1; }
.tl-item h3 { font-size: 1.15rem; letter-spacing: -0.03em; margin: 10px 0 8px; }
.tl-item p { color: var(--ink-3); font-size: 0.94rem; }

.dash {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  overflow: hidden;
}
.dash-tile { padding: 26px 24px; background: var(--card); }
.dash-tile .label { margin-bottom: 14px; }
.dash-value { font-family: var(--font-display); font-weight: 700; font-stretch: 112%; font-size: clamp(1.7rem, 2.4vw, 2.2rem); letter-spacing: -0.05em; line-height: 1; }
.dash-delta { display: inline-block; margin-top: 12px; padding: 3px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--ink); font-size: 0.8rem; font-weight: 600; }
.dash-spark { width: 100%; height: 38px; margin-top: 18px; overflow: visible; }
.dash-spark polyline { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash-caption { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3vw, 48px); }
.principle { padding: 30px 0 44px; border-top: 1px solid var(--line-2); }
.principle-num { font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--muted); }
.principle h3 { font-size: 1.4rem; letter-spacing: -0.035em; margin: 14px 0 10px; }
.principle p { color: var(--ink-3); }

/* ---------- Studio page ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.pullquote { font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -0.035em; }
.story-body p { font-size: 1.1rem; color: var(--ink-3); }
.story-body p + p { margin-top: 18px; }
.story-body em { color: var(--ink); font-weight: 600; }
.story-body .link-arrow { margin-top: 30px; }

.compare-wrap { border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow-x: auto; background: var(--card); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 0.72rem; font-weight: 600; font-stretch: 115%; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.compare thead th:last-child { color: var(--ink); }
.compare tbody th { width: 22%; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; font-stretch: 108%; letter-spacing: -0.02em; }
.compare .them { color: var(--muted); }
.compare .us { background: var(--accent-soft); font-weight: 500; }
.compare .us .icon-check { display: inline-block; vertical-align: -3px; margin-right: 10px; color: var(--ink); }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.role:hover { transform: translateY(-4px); border-color: var(--line-2); }
.role:hover .icon-box { background: var(--ink); color: var(--paper); }
.role h3 { font-size: 1.28rem; letter-spacing: -0.035em; margin-top: 10px; }
.role p { color: var(--ink-3); font-size: 0.96rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.form-card { padding: clamp(24px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); }
.form-grid { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field > label, .field > legend { font-weight: 600; font-size: 0.92rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 12px; }
.req { color: var(--muted); }
.optional { color: var(--muted); font-weight: 400; }
.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.25s var(--ease);
}
.input::placeholder { color: #6c6c67; }
.input:hover { border-color: rgba(255, 255, 255, 0.35); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.input:user-invalid { border-color: #ff8f8f; }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f3f3f1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.input option { background: #151515; color: #f3f3f1; }
.input--dark { background: transparent; }

.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 999px;
  font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.choice span::before { content: "+"; font-weight: 600; color: var(--muted); width: 0.7em; text-align: center; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:checked + span::before { content: "✓"; color: var(--paper); }
.choice input[type="radio"] + span::before { content: "○"; }
.choice input[type="radio"]:checked + span::before { content: "●"; }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form-foot small { font-size: 0.86rem; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 0.92rem; }
.form-status.is-visible { display: block; }
.newsletter .form-status { margin-top: 12px; }

.contact-aside { display: grid; gap: 16px; }
.aside-card { padding: clamp(24px, 2.6vw, 32px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); }
.aside-card--dark { border-color: transparent; }
.aside-card h2 { margin-bottom: 10px; }
.next-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.next-steps .n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-stretch: 115%; }
.next-steps strong { display: block; line-height: 1.35; }
.next-steps p { color: var(--muted); font-size: 0.92rem; margin-top: 2px; }
.contact-email {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 700; font-stretch: 110%; font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.03em;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.2s;
  word-break: break-word;
}
.contact-email:hover { opacity: 0.7; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound-code { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(7rem, 22vw, 15rem); line-height: 0.8; letter-spacing: -0.06em; color: var(--muted); }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 24px 0 16px; }
.notfound p { color: var(--ink-3); max-width: 44ch; margin-inline: auto; }
.notfound .btn-row { justify-content: center; margin-top: 32px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid, .cases-grid, .roles { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); row-gap: 52px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote:last-child { grid-column: 1 / -1; }
  .quote--dark { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; max-width: 640px; }
  .phase { grid-template-columns: 1fr 1fr; }
  .phase-title { grid-column: 1 / -1; }
  .dash { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
  .timeline::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .tl-item { padding: 0 0 34px; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-item::before { left: -35px; top: 2px; }
}

@media (max-width: 920px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 540px; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .faq-layout, .story, .contact-grid, .service-detail, .feature-case { grid-template-columns: 1fr; }
  .faq-intro, .service-detail__head { position: static; }
  .feature-case .case-visual { min-height: 380px; }
  .cta-block { grid-template-columns: 1fr; }
  .cta-side { justify-items: start; }
  .page-hero__deco { width: min(70vw, 420px); right: -10vw; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .services-grid, .cases-grid, .quotes, .roles, .principles { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .method-grid { grid-template-columns: 1fr; row-gap: 44px; }
  .check-list, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr 1fr; }
  .feature-stats { grid-template-columns: 1fr; }
  .phase { grid-template-columns: 1fr; }
  .hero-art { padding: 52px 12% 72px 0; }
  .art-badge { width: 104px; right: -3%; bottom: 6%; }
  .art-sticker { padding: 10px 14px 8px; }
  .art-sticker strong { font-size: 1.5rem; }
  .art-stats dd { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .faq-answer { padding-right: 0; }
  .newsletter-row { flex-direction: column; }
  .stat { padding-inline: 0 12px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .page-hero__deco { display: none; }
  .logo-svg { height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .tape-track { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
