/* AlterEgo — design system
   Fonts: Instrument Serif (display) + Inter (text). Nothing else. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f6f4ef;
  --paper-2: #edeae3;
  --ink: #141413;
  --ink-2: #4b4a46;
  --ink-3: #8b8982;
  --line: rgba(20, 20, 19, 0.12);
  --line-dark: rgba(246, 244, 239, 0.14);
  --accent: #b5532c;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.display, .h1, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display { font-size: clamp(3.1rem, 7.6vw, 6.6rem); line-height: 0.98; }
.h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1; }
.h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.04; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--ink-2); }
.on-dark .display em, .on-dark .h1 em, .on-dark .h2 em { color: rgba(246, 244, 239, 0.62); }
.h3 { font: 500 1.1rem/1.35 var(--sans); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.75rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.body { color: var(--ink-2); text-wrap: pretty; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: -0.005em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2a2a28; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 0.9rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(246, 244, 239, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font: 400 1.65rem/1 var(--serif); letter-spacing: -0.01em; }
.wordmark i { font-style: italic; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) { font-size: 0.95rem; color: var(--ink-2); transition: color 0.2s; position: relative; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--ink);
}
.nav .lang-switch {
  font: 500 0.8rem/1 var(--sans); letter-spacing: 0.08em; color: var(--ink-2);
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.nav .lang-switch:hover { border-color: var(--ink); color: var(--ink); }
.menu-toggle { display: none; }

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .menu-toggle span { position: relative; width: 22px; height: 1.5px; background: currentColor; transition: background 0.2s; }
  .menu-toggle span::before, .menu-toggle span::after {
    content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: currentColor;
    transition: transform 0.3s var(--ease);
  }
  .menu-toggle span::before { transform: translateY(-7px); }
  .menu-toggle span::after { transform: translateY(7px); }
  .is-open .menu-toggle span { background: transparent; }
  .is-open .menu-toggle span::before { transform: rotate(45deg); }
  .is-open .menu-toggle span::after { transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 76px 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 24px var(--gutter) 40px;
    background: var(--paper);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .nav a:not(.btn) {
    width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line);
    font: 400 2.2rem/1.1 var(--serif); color: var(--ink);
  }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 32px; }
  .nav .lang-switch { width: auto; margin-top: 28px; padding: 9px 14px; border: 1px solid var(--line); font: 500 0.85rem/1 var(--sans); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
/* Two sections with the same background in a row: don't stack both paddings */
.section:not(.bg-2):not(.on-dark) + .section:not(.bg-2):not(.on-dark),
.section.bg-2 + .section.bg-2 { padding-top: calc(var(--section) * 0.35); }
.bg-2 { background: var(--paper-2); }
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .body, .on-dark .lead { color: rgba(246, 244, 239, 0.7); }
.on-dark .eyebrow { color: rgba(246, 244, 239, 0.55); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lead { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lead { justify-self: start; } }

/* ---------- Hero ---------- */
.hero { padding: calc(76px + clamp(24px, 3vw, 48px)) 0 clamp(72px, 9vw, 128px); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.hero .display { margin: 22px 0 28px; font-size: clamp(3.1rem, 6vw, 5.5rem); }
.hero-copy .body { max-width: 46ch; }
.hero-copy .body + .body { margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.portrait img { max-height: calc(100vh - 160px); }
/* Short desktop screens (13" laptops): keep the CTA above the fold */
@media (min-width: 901px) and (max-height: 820px) {
  .hero .display { font-size: clamp(3rem, 5vw, 4.6rem); margin: 18px 0 22px; }
  .hero-actions { margin-top: 28px; }
}
.portrait { position: relative; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 4px; filter: saturate(0.92); }
.portrait figcaption { display: flex; justify-content: space-between; margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
}

/* Page hero (inner pages) */
.page-hero { padding: calc(76px + clamp(56px, 9vw, 128px)) 0 clamp(56px, 7vw, 96px); }
.page-hero .h1 { margin-top: 28px; max-width: 16ch; }
.page-hero .lead { margin-top: 32px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat-num { font: 400 clamp(3rem, 5.4vw, 4.6rem)/1 var(--serif); letter-spacing: -0.02em; }
.stat-label { margin-top: 12px; font-size: 0.95rem; color: var(--ink-3); }
@media (max-width: 1000px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { padding-left: 0; border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; } }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 0; margin-top: 0; }
}

/* ---------- Brands ---------- */
.brands { display: flex; flex-direction: column; gap: 22px; margin-top: clamp(56px, 7vw, 88px); }
.brands-label { font: 500 0.75rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); }
.logo-wall li { position: relative; display: flex; align-items: center; justify-content: center; height: 104px; padding: 0 14px; }
.logo-wall li + li::before { content: ""; position: absolute; left: 0; top: 50%; height: 36px; transform: translateY(-50%); border-left: 1px solid var(--line); }
.logo-wall img { height: var(--h, 28px); width: auto; max-width: 100%; object-fit: contain; filter: brightness(0); opacity: 0.62; transition: opacity 0.3s var(--ease); }
.logo-wall li:hover img { opacity: 1; }
@media (max-width: 1100px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall li:nth-child(3n + 1)::before { display: none; }
}
@media (max-width: 520px) { .logo-wall li { height: 84px; } .logo-wall img { height: calc(var(--h, 28px) * 0.8); } }

/* ---------- Numbered features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature { padding: 36px 40px 0 0; }
.feature + .feature { padding-left: 40px; border-left: 1px solid var(--line); }
.feature .num { font: 400 1rem/1 var(--serif); font-style: italic; color: var(--ink-3); }
.feature .h3 { margin: 48px 0 12px; font-size: 1.25rem; }
.feature .body { font-size: 1rem; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .feature .h3 { margin-top: 20px; }
}

/* ---------- Split (who I work with / about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 128px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 18px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 10px; transform: translateY(-3px) rotate(-45deg);
  border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
}

.bio { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.bio img { width: 140px; height: 140px; object-fit: cover; border-radius: 3px; }
.bio .body { font-size: 1.05rem; }
.bio .link { margin-top: 24px; }

/* ---------- Proof list ---------- */
.proof { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); counter-reset: p; }
.proof li {
  counter-increment: p;
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark);
  font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--serif); letter-spacing: -0.01em;
}
.proof li::before { content: "0" counter(p); font: 400 0.85rem/1 var(--sans); letter-spacing: 0.08em; color: rgba(246, 244, 239, 0.45); }
@media (max-width: 640px) { .proof li { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Services grid ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 36px 36px 44px 0; border-bottom: 1px solid var(--line); }
.service:not(:nth-child(3n + 1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.service .num { font: italic 400 1rem/1 var(--serif); color: var(--ink-3); }
.service .h3 { margin: 28px 0 12px; }
.service .body { font-size: 0.98rem; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .service:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0; border-left: 0; }
}

/* ---------- Values ---------- */
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.values li { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.values .h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.values .body { font-size: 1.1rem; }
@media (max-width: 700px) { .values li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline .when { font: italic 400 1.35rem/1.2 var(--serif); color: var(--ink-3); }
.timeline .h3 { font-size: 1.25rem; margin-bottom: 8px; }
.credentials { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; margin-top: 56px; }
.credentials > div { display: contents; }
.cred-label { font: 500 0.75rem/1.6 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.credentials p { color: var(--ink-2); }
@media (max-width: 700px) {
  .timeline li, .credentials { grid-template-columns: 1fr; gap: 8px; }
  .credentials p { margin-bottom: 16px; }
}

/* ---------- Statement ---------- */
.statement { max-width: 22ch; font: 400 clamp(2.2rem, 4.6vw, 4rem)/1.08 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.statement em { color: var(--ink-2); }
.statement-sub { margin-top: 28px; max-width: 48ch; }

/* ---------- Wide image band ---------- */
.band img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; filter: saturate(0.85); }
@media (max-width: 640px) { .band img { aspect-ratio: 4 / 3; } }

/* ---------- About image ---------- */
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 25%; border-radius: 4px; filter: saturate(0.92); }
.prose .body { font-size: 1.1rem; }
.prose .body + .body { margin-top: 20px; }
.pull { margin: 32px 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pull p { font: 400 clamp(1.5rem, 2.2vw, 1.9rem)/1.3 var(--serif); letter-spacing: -0.01em; }
.pull p + p { margin-top: 4px; }
.pull p.strong { margin-top: 16px; font-style: italic; }

/* ---------- CTA ---------- */
.cta { padding: clamp(96px, 13vw, 176px) 0; text-align: center; }
.cta .h1 { max-width: 14ch; margin: 28px auto 48px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.contact-grid .h1 { margin-top: 28px; }
.contact-grid .lead { margin-top: 32px; }
.contact-note { margin-top: 32px; display: flex; gap: 12px; align-items: center; font-size: 0.95rem; color: var(--ink-3); }
.contact-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8f5a; box-shadow: 0 0 0 4px rgba(63, 143, 90, 0.15); }
.form { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(28px, 4vw, 48px); }
.field { display: block; }
.field + .field { margin-top: 28px; }
.field span { display: block; margin-bottom: 10px; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; }
.field input, .field textarea {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; font: 400 1.05rem/1.5 var(--sans); color: var(--ink);
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #a9a7a0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form .btn { margin-top: 40px; width: 100%; justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-size: 0.9rem; color: var(--ink-2); min-height: 1.4em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 244, 239, 0.6); padding: 64px 0 40px; font-size: 0.9rem; }
.site-footer.flush { border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-top .wordmark { color: var(--paper); font-size: 2rem; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { color: rgba(246, 244, 239, 0.75); transition: color 0.2s; }
.footer-links a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; flex-wrap: wrap; }
@media (max-width: 640px) { .footer-top { flex-direction: column; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Privacy */
.legal { max-width: 760px; }
.legal .body { font-size: 1.1rem; }

/* ---------- Icons ---------- */
.icon { width: 32px; height: 32px; flex: none; color: var(--ink); }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; }
.feature .item-top + .h3 { margin-top: 40px; }
.service .item-top + .h3 { margin-top: 32px; }
.feature .icon, .service .icon { transition: transform 0.5s var(--ease), color 0.3s; }
.feature:hover .icon, .service:hover .icon { transform: translateY(-3px); color: var(--accent); }
.value-title { display: flex; align-items: center; gap: 18px; }
.value-title .icon { width: 30px; height: 30px; color: var(--ink-3); }
.cred-label { display: inline-flex; align-items: center; gap: 12px; }
.cred-label .icon { width: 22px; height: 22px; color: var(--ink-3); }
@media (max-width: 860px) { .feature .item-top + .h3 { margin-top: 20px; } }

/* ---------- Illustrations ---------- */
.illo-growth { width: 100%; max-width: 520px; justify-self: end; color: rgba(246, 244, 239, 0.75); overflow: visible; }
.draw .line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw .nodes { transition: opacity 0.6s var(--ease) 1.4s; }
.js .draw .line { stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) 0.2s; }
.js .draw:not(.is-in) .nodes { opacity: 0; }
.js .draw.is-in .line { stroke-dashoffset: 0; }
@media (max-width: 860px) { .illo-growth { justify-self: start; max-width: 100%; } }

.cta, .has-illo { position: relative; overflow: hidden; }
.cta .wrap, .has-illo .wrap { position: relative; }
.illo-ego { position: absolute; left: 50%; top: 50%; width: min(980px, 140vw); transform: translate(-50%, -50%); color: var(--ink); opacity: 0.09; pointer-events: none; }
.illo-ego--side { left: auto; right: -12%; transform: translateY(-50%); width: min(820px, 120vw); color: var(--paper); opacity: 0.1; }

.hero-card {
  position: absolute; left: -36px; bottom: 56px;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 26px 20px 22px; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(20, 20, 19, 0.25);
}
.hero-card-rule { flex: none; width: 2px; align-self: stretch; background: var(--accent); border-radius: 1px; }
.hero-card-name { display: block; margin-bottom: 8px; font: 500 0.7rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hero-card-title { margin: 0; font: 400 1.75rem/1.08 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 900px) { .hero-card { left: 16px; bottom: 56px; } }

/* ---------- How it works ---------- */
.stat-label { max-width: 24ch; }
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-num { font: italic 400 1.6rem/1 var(--serif); color: var(--accent); }
.steps .h3 { margin-bottom: 6px; }
.steps .body { font-size: 0.98rem; }
.model { margin: 0; padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.model-svg { width: 100%; height: auto; color: var(--ink); overflow: visible; }
.model-label { font: 500 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.model-label--accent { fill: var(--accent); }
.model-area { opacity: .16; }
.model-share { opacity: .5; }
.js .model-svg .model-area, .js .model-svg .model-share { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease) .4s; }
.js .model-svg.is-in .model-area, .js .model-svg.is-in .model-share { transform: scaleX(1); }
.js .model-svg.is-in .model-share { animation: share 5s ease-in-out 2.4s infinite; }
@keyframes share { 0%, 100% { opacity: .5; } 50% { opacity: .28; } }
.model-threshold { opacity: .55; }
.model-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: .85rem; color: var(--ink-2); }
.model-legend span { display: inline-flex; align-items: center; gap: 10px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw-accent { background: color-mix(in srgb, var(--accent) 28%, #fff); }
.sw-ink { background: color-mix(in srgb, var(--ink) 50%, #fff); }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .model-svg .model-area, .js .model-svg .model-share { transform: none; transition: none; animation: none; } }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 1fr 2fr; gap: 32px clamp(48px, 7vw, 112px); padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.case-logo { height: var(--h, 26px); width: auto; filter: brightness(0); opacity: .75; }
.case-role { margin-top: 18px; font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.case-results { display: grid; gap: 24px; margin-top: 40px; }
.case-result { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-num { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; }
.case-cap { font-size: .92rem; color: var(--ink-2); max-width: 28ch; }
.case-title { font-size: clamp(2rem, 3.6vw, 3rem); }
.case-ctx { margin-top: 20px; font-size: 1.1rem; max-width: 56ch; }
.case-text { max-width: 60ch; color: var(--ink-2); }
.case-list strong { font-weight: 500; color: var(--ink); }
.case-fig { margin: 32px 0 0; }
.case-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.case-fig--trend .trend { display: block; width: 100%; height: auto; color: var(--ink); padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: visible; }
.case-fig-pair { display: grid; grid-template-columns: 1fr; gap: 12px; }
.case-fig-pair img { background: #fff; padding: 6px; }
@media (max-width: 700px) { .case-fig-pair { grid-template-columns: 1fr; } }
.case-fig figcaption { margin-top: 10px; font-size: .85rem; color: var(--ink-3); }
.case-sub { margin: 36px 0 14px; font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.case-list { list-style: none; margin: 0; padding: 0; }
.case-list li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.case-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 1px; background: var(--accent); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* Home teaser */
.case-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 6px; transition: border-color .3s var(--ease), transform .4s var(--ease); }
.case-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.case-card .case-logo { height: var(--h, 22px); align-self: flex-start; margin-block: calc((40px - var(--h, 22px)) / 2); }
.case-card .case-num { margin-top: 48px; }
.case-card .case-cap { margin-top: 10px; }
.case-card .h3 { margin-top: 28px; }
.case-card .link { margin-top: auto; padding-top: 28px; align-self: flex-start; border: 0; }
.case-card .link span { transition: transform .3s var(--ease); }
.case-card:hover .link span { transform: translateX(4px); }
.section-foot { margin-top: 40px; }
@media (max-width: 960px) { .case-cards { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; display: flex; flex-direction: column; padding: 36px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.quote blockquote { margin: 0; font: 400 1.45rem/1.3 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 32px; display: grid; gap: 2px; }
.quote-name { font-weight: 500; font-size: .95rem; }
.quote-role { font-size: .85rem; color: var(--ink-3); }
.quote[data-placeholder] blockquote { color: var(--ink-3); }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Mini audit ---------- */
.audit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.audit-note { margin-top: 28px; padding-left: 16px; border-left: 2px solid var(--accent); font-size: .95rem; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 900px) { .audit { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font: 400 clamp(1.3rem, 2vw, 1.6rem)/1.25 var(--serif); letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.25px; background: currentColor; transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item p { padding: 0 48px 28px 0; max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.booking-fallback { margin-top: 16px; font-size: .9rem; }
.booking-frame { min-height: 560px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.booking-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.booking-placeholder { height: 100%; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; text-align: center; color: var(--ink-3); }
.booking-placeholder .icon { width: 40px; height: 40px; color: var(--ink-3); }
.booking-perks { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.booking-perks li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.booking-perks .icon { width: 22px; height: 22px; color: var(--accent); }
.or-divider { display: flex; align-items: center; gap: 20px; margin: 0 0 clamp(40px, 6vw, 72px); font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 420px;
  padding: 22px 24px; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 24px 60px -24px rgba(20, 20, 19, .3);
  opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie p { font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.cookie .btn-sm { height: 40px; }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } .cookie-actions .btn { flex: 1; justify-content: center; } }
.footer-legal { display: inline-flex; gap: 28px; flex-wrap: wrap; }
.footer-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-btn:hover, .footer-legal a:hover { color: var(--paper); }

.legal-updated { margin-top: 20px; font-size: .9rem; color: var(--ink-3); }
.legal-block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.legal-h { font: 400 clamp(1.6rem, 2.4vw, 2rem)/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; }
.legal-block .body { font-size: 1.02rem; }
.legal-block .body + .body, .legal-block .legal-list + .body, .legal-block .body + .legal-list { margin-top: 14px; }
.legal-list { margin: 0; padding: 0; list-style: none; }
.legal-list li { position: relative; padding: 8px 0 8px 24px; color: var(--ink-2); line-height: 1.6; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 20px; width: 10px; height: 1px; background: var(--accent); }
.legal-block a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-block strong { font-weight: 500; color: var(--ink); }

/* ---------- Case studies soft gate ---------- */
.gate { position: relative; }
html.js:not(.unlocked) .gate-body { max-height: 340px; overflow: hidden; filter: blur(5px); opacity: .55; user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 92%); mask-image: linear-gradient(#000 30%, transparent 92%); }
html.js:not(.unlocked) .gate-body * { pointer-events: none; }
.gate-cta { display: none; }
html.js:not(.unlocked) .gate-cta { display: flex; flex-direction: column; align-items: center; text-align: center; position: absolute; left: 50%; top: 56px; transform: translateX(-50%); width: min(100%, 460px); }
html.js:not(.unlocked) .gate-cta--form { top: 28px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 24px 48px -28px rgba(20, 20, 19, .3); }
.gate-title { margin: 0; font: 400 1.6rem/1.1 var(--serif); }
.gate-text { margin: 8px 0 18px; font-size: .95rem; color: var(--ink-2); }
.gate-form { display: flex; gap: 8px; width: 100%; }
.gate-form input[type=email] { flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: .95rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
.gate-form input[type=email]:focus { outline: none; border-color: var(--ink); }
.gate-note { margin: 12px 0 0; font-size: .75rem; color: var(--ink-3); }
.gate-note a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gate-form .btn { justify-content: center; }
@media (max-width: 520px) { .gate-form { flex-direction: column; } }
