/* ==========================================================================
   Optim — design system
   Neutral, premium, clean. One ink colour, warm paper background.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ebe9e3;
  --ink: #121212;
  --ink-2: #393937;
  --muted: #696864;
  --line: #dcdad3;

  --dark: #0f0f0f;
  --dark-2: #191918;
  --dark-line: #2b2b29;
  --on-dark: #f4f3ef;
  --on-dark-muted: #a3a29c;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--bg); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--white { background: var(--surface); }
.section--dark .muted, .section--dark .lead { color: var(--on-dark-muted); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.display { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -0.045em; line-height: 0.98; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -0.04em; line-height: 1; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.2; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.section-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.section-head .lead { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #2a2a28; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.section--dark .btn--primary, .btn--light { background: var(--on-dark); color: var(--ink); }
.section--dark .btn--primary:hover, .btn--light:hover { background: #ffffff; }
.section--dark .btn--ghost { border-color: var(--dark-line); color: var(--on-dark); }
.section--dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow .arrow { transition: transform .4s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.logo-mark {
  width: 30px; height: 30px; background: currentColor; flex: none;
  -webkit-mask: url("/assets/logo.png") center / contain no-repeat;
          mask: url("/assets/logo.png") center / contain no-repeat;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: none; }
.nav a { font-size: 15px; color: var(--ink-2); padding: 8px 2px; position: relative; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1px; background: currentColor; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; height: 42px; padding: 4px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}
.lang a, .lang span { display: grid; place-items: center; height: 32px; min-width: 38px; padding: 0 8px; border-radius: 999px; color: var(--muted); transition: color .2s, background-color .2s; }
.lang a:hover { color: var(--ink); }
.lang [aria-current="true"] { background: var(--ink); color: var(--bg); }
.header .btn--primary { display: none; }
.menu-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: background-color .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: 49; background: var(--bg);
  padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .4s var(--ease), visibility .3s; overflow-y: auto;
}
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-nav a:not(.btn) { font-size: 30px; letter-spacing: -0.03em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 28px; }

@media (min-width: 980px) {
  .nav { display: flex; gap: 28px; }
  .header .btn--primary { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.hero .lead { margin: 28px 0 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2f9e5b; box-shadow: 0 0 0 4px color-mix(in srgb, #2f9e5b 18%, transparent); flex: none; }

.page-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.page-hero .lead { margin-top: 24px; }

/* Case card (hero visual) */
.case-card {
  background: var(--dark); color: var(--on-dark); border-radius: 28px; padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.04);
}
.case-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--on-dark-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.case-tag { border: 1px solid var(--dark-line); border-radius: 999px; padding: 6px 12px; letter-spacing: 0.06em; }
.case-big { font-size: clamp(4.5rem, 10vw, 7.5rem); letter-spacing: -0.06em; line-height: 0.9; margin: 32px 0 6px; font-weight: 500; }
.case-big .serif { font-size: 0.6em; margin-left: 4px; color: var(--on-dark-muted); }
.case-sub { color: var(--on-dark-muted); font-size: 15px; margin: 0 0 28px; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; height: 190px; border-bottom: 1px solid var(--dark-line); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-fill { border-radius: 10px 10px 0 0; background: var(--dark-line); height: var(--h); min-height: 4px; transform-origin: bottom; }
.bar--after .bar-fill { background: linear-gradient(180deg, #f4f3ef 0%, #cfcdc6 100%); }
.bar-val { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; margin-bottom: 10px; }
.bar-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }
.js .bar-fill { transform: scaleY(0); transition: transform 1.4s var(--ease) .35s; }
.js .is-in .bar-fill, .js .is-in.bar-fill { transform: scaleY(1); }

/* ---------- Photos ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.04); transition: transform 1.2s var(--ease); }
.media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.media-pair { display: grid; gap: 16px; margin-bottom: clamp(48px, 7vw, 96px); }
.media--main { aspect-ratio: 4 / 3; }
.media--side { display: none; }
@media (min-width: 900px) {
  .media-pair { grid-template-columns: 2fr 1fr; }
  .media--main { aspect-ratio: auto; height: clamp(360px, 38vw, 540px); }
  .media--side { display: block; height: clamp(360px, 38vw, 540px); }
}
.media--service { aspect-ratio: 16 / 10; margin-bottom: 16px; }
.card--media { --pad: clamp(24px, 3vw, 36px); overflow: hidden; }
.card-media { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 8px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
a.card--media:hover .photo { transform: scale(1.04); }

/* Show/hide helpers for phones */
@media (max-width: 639px) { .hide-sm { display: none !important; } }
@media (min-width: 640px) { .show-sm { display: none !important; } }

/* ---------- Clients strip ---------- */
.clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; }
.clients-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; }
.clients-label { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-right: auto; }
.client-name { font-size: clamp(17px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); }
.client-name--caps { letter-spacing: 0.14em; font-size: clamp(14px, 1.6vw, 16px); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.section--white .card { background: var(--bg); }
a.card:hover { transform: translateY(-4px); border-color: #c9c7c0; box-shadow: 0 24px 48px -32px rgba(0,0,0,.25); }
.card-num { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.card p { margin: 0; color: var(--ink-2); }
.card .link-arrow, .card-foot { margin-top: auto; padding-top: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.card-icon svg { width: 22px; height: 22px; }
.section--white .card-icon { background: var(--surface); border: 1px solid var(--line); }

.checks { display: grid; gap: 10px; margin-top: 4px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f3ef' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .checks li { color: var(--on-dark-muted); }
.section--dark .checks li::before { background-color: var(--on-dark); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- Split / statement ---------- */
.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.1fr 1fr; } }
/* Sticky only on desktop: on phones the column stacks and must scroll normally */
@media (min-width: 900px) { .sticky { position: sticky; top: 110px; } }

.statement { font-size: clamp(1.75rem, 3.6vw, 3rem); letter-spacing: -0.035em; line-height: 1.12; font-weight: 500; max-width: 22ch; text-wrap: balance; }
.statement .faded { color: var(--muted); }
.section--dark .statement .faded { color: #6d6c68; }

/* Flow diagram: ads → site → content */
.flow { display: grid; gap: 12px; }
.flow-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 24px; border-radius: var(--radius); border: 1px solid var(--dark-line); background: var(--dark-2); }
.flow-item b { display: block; font-weight: 500; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--on-dark); }
.flow-item p { margin: 0; font-size: 15px; color: var(--on-dark-muted); }
.flow-n { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--dark-line); font-size: 14px; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }

/* ---------- Process timeline ---------- */
.process-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .process-grid { grid-template-columns: 1fr 1.15fr; gap: 96px; } }
.process-counter { display: none; }
@media (min-width: 900px) {
  .process-counter { display: flex; align-items: baseline; gap: 14px; margin-top: 56px; font-variant-numeric: tabular-nums; }
  .pc-cur { font-size: clamp(6rem, 11vw, 9.5rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.85; }
  .pc-total { font-size: 20px; color: var(--on-dark-muted); }
}
.timeline { position: relative; padding-left: 44px; }
.tl-rail { position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--dark-line); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; left: 0; top: 0; width: 100%; height: var(--p, 100%); background: var(--on-dark); border-radius: 2px; transition: height .15s linear; }
.tl-step { position: relative; }
.tl-step + .tl-step { margin-top: clamp(20px, 10vh, 112px); }
.tl-node {
  position: absolute; left: -44px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--dark); border: 2px solid var(--dark-line); transition: background-color .5s, border-color .5s, box-shadow .5s;
}
.tl-card {
  position: relative; overflow: hidden; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px;
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .5s;
}
.tl-card p { margin: 0; color: var(--on-dark-muted); max-width: 46ch; position: relative; }
.tl-card .h3, .tl-label, .tl-card .pills { position: relative; }
.tl-card .pills { margin-top: 8px; }
.tl-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.tl-big {
  position: absolute; right: -6px; top: -18px; font-size: clamp(7rem, 12vw, 10rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #2f2f2d; pointer-events: none; transition: -webkit-text-stroke-color .6s;
}
/* States (only when JS runs; without JS every step is fully visible) */
.js .tl-card { opacity: .32; transform: translateX(10px); }
.js .tl-step.is-active .tl-card { opacity: 1; transform: none; border-color: #3a3a37; }
.js .tl-step.is-active .tl-big { -webkit-text-stroke-color: #4a4a46; }
.tl-step.is-active .tl-node { background: var(--on-dark); border-color: var(--on-dark); box-shadow: 0 0 0 6px rgba(244,243,239,.1); }
.js .tl-step.is-current .tl-node { box-shadow: 0 0 0 8px rgba(244,243,239,.14), 0 0 24px rgba(244,243,239,.35); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--surface); padding: clamp(24px, 3vw, 40px); }
.stat-val { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1; font-weight: 500; }
.stat-label { margin-top: 12px; color: var(--muted); font-size: 15px; }
.section--dark .stats { background: var(--dark-line); border-color: var(--dark-line); }
.section--dark .stat { background: var(--dark); }

/* ---------- Quote ---------- */
.quote { max-width: 900px; }
.quote blockquote { margin: 0; font-size: clamp(1.75rem, 3.8vw, 3rem); line-height: 1.15; letter-spacing: -0.03em; font-weight: 400; text-wrap: balance; }
.quote blockquote .serif { font-size: 1.05em; }
.quote figcaption { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; }
.section--dark .avatar { background: var(--dark-2); color: var(--on-dark); border: 1px solid var(--dark-line); }
.quote-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; left: 0; top: 6.25px; width: 14px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus::after { transform: rotate(0); }
.faq .answer { padding: 0 0 26px; max-width: 64ch; color: var(--ink-2); }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta-inner { display: grid; gap: 40px; align-items: end; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr 1fr; } }
.cta .lead { margin: 24px 0 0; }
.cta-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 900px) { .cta-side { align-items: flex-end; text-align: right; } }
.cta-side .small { color: var(--on-dark-muted); margin: 0; }

/* ---------- Case study ---------- */
.case { display: grid; gap: 16px; }
@media (min-width: 900px) { .case { grid-template-columns: 1fr 1fr 1fr; } }
.case .card h3 { margin-bottom: 4px; }
.case-hero { display: grid; gap: 40px; align-items: end; margin-bottom: 48px; }
@media (min-width: 900px) { .case-hero { grid-template-columns: 1.3fr 1fr; } }

.pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.section--dark .pill { border-color: var(--dark-line); color: var(--on-dark-muted); }

/* ---------- Problem list ---------- */
.problems { display: grid; gap: 0; border-top: 1px solid var(--line); }
.problems li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; color: var(--ink-2); }
.problems li span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.problems b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 2px; }

.callout { border-radius: var(--radius); background: var(--surface-2); padding: 24px 28px; font-size: 15px; color: var(--ink-2); display: flex; gap: 14px; }
.callout svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 300px 1fr; gap: 56px; } }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
.contact-list a { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.booker { min-height: 640px; position: relative; }
.booker:has(iframe) .booker-fallback { display: none; }
.booker-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); z-index: 0; }
#cal-inline { position: relative; z-index: 1; width: 100%; min-height: 640px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.025em; margin: 56px 0 16px; }
.legal h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 500; color: var(--ink); }
.legal-meta { font-size: 14px; color: var(--muted); margin-top: 16px; }
.table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 0 0 32px; overflow: hidden; }
.footer > .container { padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--dark-line); }
.cta { padding-bottom: clamp(72px, 9vw, 112px); }
.footer-top { display: grid; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer .logo { font-size: 22px; }
.footer-tag { color: var(--on-dark-muted); margin: 20px 0 0; max-width: 32ch; }
.footer h4 { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 18px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--on-dark); opacity: .85; transition: opacity .2s; font-size: 15px; word-break: break-word; }
.footer li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: 14px; color: var(--on-dark-muted); }
.footer-word { font-size: clamp(5rem, 22vw, 19rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.8; color: var(--dark-2); margin: 48px 0 -0.06em; user-select: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-content: center; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bar-fill { transform: none; }
}

/* ---------- Home hero: phone layout (full-screen dark "opening screen") ---------- */
.hero-chip, .hero-result, .hero-sub { display: none; }
@media (max-width: 639px) {
  .hero--home {
    background: var(--dark); color: var(--on-dark);
    padding: 0; min-height: calc(100svh - 72px); display: flex;
  }
  .hero--home .hero-grid, .hero--home .hero-copy { display: flex; flex-direction: column; flex: 1; }
  .hero--home .hero-grid { padding-top: 24px; padding-bottom: 24px; }
  .hero--home .hero-copy { justify-content: space-between; gap: 40px; }
  .hero-chip {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 10px;
    padding: 9px 14px; border: 1px solid var(--dark-line); border-radius: 999px;
    font-size: 13px; color: var(--on-dark); background: var(--dark-2);
  }
  .hero-chip .arrow { width: 14px; height: 14px; color: var(--on-dark-muted); }
  .hero--home .display { font-size: clamp(3.4rem, 15vw, 4.4rem); letter-spacing: -0.05em; line-height: 0.95; }
  .hero-sub {
    display: block; margin: 18px 0 0; max-width: 26ch;
    font-size: 1.2rem; line-height: 1.45; font-weight: 400; letter-spacing: -0.012em; color: #dedcd5;
  }
  .hero--home .btn-row { display: block; }
  .hero--home .btn--primary { width: 100%; --h: 56px; background: var(--on-dark); color: var(--ink); font-size: 16px; }
  .hero-result {
    display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 16px 18px;
    border: 1px solid var(--dark-line); border-radius: 16px; background: var(--dark-2);
  }
  .hero-result-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
  .hero-result-main { font-size: 20px; font-weight: 500; letter-spacing: -0.025em; color: var(--on-dark); }
  .hero-result-sub { font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); }
}
@media (max-width: 639px) {
  .header { transition: border-color .3s, background-color .4s, color .4s; }
  body[data-page="home"]:not(.menu-open) .header:not(.is-scrolled) { background: var(--dark); color: var(--on-dark); }
  body[data-page="home"]:not(.menu-open) .header:not(.is-scrolled) .lang,
  body[data-page="home"]:not(.menu-open) .header:not(.is-scrolled) .menu-btn { border-color: var(--dark-line); }
  body[data-page="home"]:not(.menu-open) .header:not(.is-scrolled) .lang a { color: var(--on-dark-muted); }
  body[data-page="home"]:not(.menu-open) .header:not(.is-scrolled) .lang [aria-current="true"] { background: var(--on-dark); color: var(--ink); }
}

/* ---------- Reviews ---------- */
.reviews { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.reviews-head { margin-bottom: 24px; }
.reviews-grid { display: grid; gap: 16px; }
@media (min-width: 860px) {
  .reviews-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.reviews-grid--1 { max-width: 760px; }
.review { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; color: #e0a526; }
.review blockquote { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; letter-spacing: -0.02em; font-weight: 400; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; margin-top: auto; }

/* Contact: calendar on top, info underneath */
.contact-below { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .contact-below { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Platform disclaimer */
.footer-legal { font-size: 12px; line-height: 1.6; color: #75746f; max-width: 90ch; margin: 24px 0 0; }

/* ---------- CTAs ---------- */
.tl-cta { margin-top: clamp(32px, 6vh, 56px); }

/* Mobile: sticky booking button (header has no CTA on small screens) */
.mobile-cta {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 500;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.22);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .35s, transform .45s var(--ease), visibility .35s;
}
.mcta-on .mobile-cta { opacity: 1; visibility: visible; transform: none; }
.menu-open .mobile-cta { opacity: 0; visibility: hidden; }
@media (min-width: 980px) { .mobile-cta { display: none; } }
