/* === Direction A — Cream Editorial === */

:root {
  /* palette (cream-led) */
  --bg: #F4EFE7;
  --bg-soft: #EFE8DC;
  --bg-deeper: #E8DFD0;
  --ink: #1a1714;
  --ink-soft: #4a4239;
  --ink-mute: #5f5750;   /* darkened from #8b8278 to meet WCAG AA contrast on cream and bg-deeper */
  --line: rgba(26, 23, 20, 0.12);
  --line-soft: rgba(26, 23, 20, 0.07);
  --accent: #C8862A;
  --accent-deep: #A86E1F;
  --accent-text: #8a5d1e;  /* AA-compliant on cream — used for body-text links */

  /* type stack */
  --sans: "Inter Tight", "Inter", system-ui, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --content-max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }

/* ==== App shell ==== */
.app { position: relative; min-height: 100vh; }

/* paper grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(26, 23, 20, 0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 80%);
          mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 80%);
  opacity: 0.18;
}

/* ==== Nav ==== */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 18px;
  background: rgba(244, 239, 231, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 32px -16px rgba(26, 23, 20, 0.25);
  transition: padding .35s ease, transform .35s ease, background .35s ease;
}
.nav.is-scrolled .nav-inner {
  padding: 4px 4px 4px 14px;
  background: rgba(244, 239, 231, 0.92);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.02em;
}
.nav-brand .dot { color: var(--accent); }
.nav-brand .brand-stack { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.nav-brand .brand-name { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; }
.nav-brand .small { font-size: 9px; letter-spacing: 0.22em; color: var(--ink-mute); font-weight: 500; }
.nav-links { display: flex; gap: 2px; margin-left: 18px; }
.nav-link { white-space: nowrap; }
.nav-link {
  position: relative;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(26, 23, 20, 0.04); }
.nav-link.is-active { color: var(--ink); background: var(--ink); color: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.lang-switch {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 60;
  display: inline-flex; align-items: center;
  padding: 4px;
  background: rgba(244, 239, 231, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 12px 32px -16px rgba(26, 23, 20, 0.25);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  transition: background .35s ease, transform .35s ease;
}
@media (max-width: 720px) {
  .lang-switch { top: 14px; right: 14px; padding: 3px; font-size: 9.5px; }
}
.lang-opt {
  padding: 6px 8px;
  min-width: 30px;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font: inherit;
  letter-spacing: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt.is-active {
  background: var(--ink);
  color: var(--bg);
}

/* nav CTA — dark text on gold for WCAG AA contrast
 * (ink #1a1714 on accent #C8862A = 4.78:1; cream on accent was 2.65:1) */
.nav-cta {
  margin-left: 4px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.nav-cta .arrow { transition: transform .25s ease; }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ABC-35: hamburger button — hidden on desktop, shown at <= 720px */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  transition: background .2s ease;
}
.nav-toggle:hover { background: rgba(26, 23, 20, 0.04); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ABC-35: mobile dropdown panel — anchored below the pill, hidden by default */
.nav-mobile-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  min-width: 220px;
  background: rgba(244, 239, 231, 0.96);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(26, 23, 20, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px -8px rgba(26, 23, 20, 0.2);
  padding: 8px;
  pointer-events: auto;
  z-index: 99;
}
.nav-mobile-panel.is-open { display: block; }
.nav-mobile-link {
  display: flex; align-items: center;
  padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--ink-soft);
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  min-height: 44px;
  box-sizing: border-box;
}
.nav-mobile-link:hover { background: rgba(26, 23, 20, 0.04); color: var(--ink); }
.nav-mobile-link.is-active { background: var(--ink); color: var(--bg); }
.nav-mobile-divider {
  height: 1px;
  background: rgba(26, 23, 20, 0.08);
  margin: 6px 12px;
}
.nav-mobile-langs {
  display: flex;
  gap: 4px;
  padding: 6px;
}
.nav-mobile-lang {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 8px;
  text-align: center;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  border-radius: 999px;
  min-height: 44px;
  box-sizing: border-box;
  transition: color .15s ease, background .15s ease;
}
.nav-mobile-lang:hover { color: var(--ink); background: rgba(26, 23, 20, 0.04); }
.nav-mobile-lang.is-active { background: var(--ink); color: var(--bg); }

/* ABC-35: mobile breakpoint — collapse inline links + floating lang switch
 * into the hamburger dropdown so the nav pill fits at <= 414 px portrait. */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang-switch { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { padding: 4px 4px 4px 12px; gap: 2px; }
  .nav-cta { padding: 8px 14px; font-size: 13px; gap: 6px; }
  .nav-right { margin-left: 0; }
}

/* ==== Hero ==== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 120px; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.hero-eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 134, 42, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 134, 42, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(200, 134, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 134, 42, 0); }
}
.hero-eyebrow .rule { width: 28px; height: 1px; background: var(--line); }

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
}
.hero-headline .accent {
  font-style: italic;
  color: var(--ink);
}
.hero-headline .dot {
  color: var(--accent);
  display: inline-block;
}
.hero-sub {
  margin-top: 36px;
  max-width: 520px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.hero-cta-row {
  margin-top: 44px;
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: transform .25s ease, background .25s ease;
}
/* hover: keep dark bg + cream text (AA-compliant) but slight elevation +
 * a subtle accent rim. Switching to gold on hover failed AA (cream-on-gold
 * is only 2.65:1; cream-on-accent-deep is 3.85:1). */
.btn-primary:hover { background: #2c2620; transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent); }
.btn-primary .arrow { transition: transform .25s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 0;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  transition: gap .25s ease;
}
.btn-ghost:hover { gap: 14px; }

/* hero metaphor: the AC arc */
.hero-motif {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}
.hero-motif svg { width: 100%; height: 100%; display: block; }
.hero-motif .label {
  position: absolute; bottom: 0; right: 0;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* principles strip */
.principles {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 96px var(--gutter) 80px;
  background: var(--bg-soft);
}
.principles-head {
  max-width: var(--content-max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 880px) { .principles-head { grid-template-columns: 1fr; gap: 16px; } }
.principles-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 640px;
  text-wrap: balance;
}
.principles-title .dot { color: var(--accent); }
.principles-inner {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 880px) { .principles-inner { grid-template-columns: 1fr; gap: 24px; } }
.principle .num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 400; font-style: italic;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.principle p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 15px; line-height: 1.55;
  text-wrap: pretty;
}

/* ==== Services section ==== */
.services {
  position: relative;
  padding: 120px var(--gutter);
}
.section-head {
  max-width: var(--content-max);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink); color: var(--bg);
  font-size: 11px;
  font-family: var(--sans);
  letter-spacing: 0;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 20px 0 0;
  max-width: 720px;
  text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--ink); }
.section-title .dot { color: var(--accent); }
.section-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0;
  line-height: 1.5;
  text-wrap: pretty;
}

/* services — layout: editorial-stack (default) */
.services-list {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex; flex-direction: column;
}
.service {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.service:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 880px) { .service { grid-template-columns: 1fr; gap: 16px; } }
.service .num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding-top: 8px;
}
.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.service .body { display: flex; flex-direction: column; gap: 18px; }
.service .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}
.service .desc { color: var(--ink-soft); margin: 0; max-width: 56ch; line-height: 1.55; }
.service .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.service .tag {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.service.ambe-reveal.is-in::before { width: 100%; }

/* services — layout: pinned (sticky title left, scrolling cards right) */
.services-pinned { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 64px; max-width: var(--content-max); margin: 0 auto; }
@media (max-width: 880px) { .services-pinned { grid-template-columns: 1fr; gap: 24px; } }
.services-pinned .left {
  position: sticky; top: 120px; align-self: start;
  display: flex; flex-direction: column; gap: 14px;
}
.services-pinned .left .index-list { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.services-pinned .left .index-list .item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-mute);
  transition: color .25s ease;
}
.services-pinned .left .index-list .item:last-child { border-bottom: 1px solid var(--line); }
.services-pinned .left .index-list .item.is-active { color: var(--ink); }
.services-pinned .left .index-list .item .n { font-family: var(--mono); font-size: 11px; }
.services-pinned .right { display: flex; flex-direction: column; gap: 28px; }
.services-pinned .card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px;
}
.services-pinned .card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.services-pinned .card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); margin: 14px 0 12px; line-height: 1.1; letter-spacing: -0.02em; }
.services-pinned .card .lede { font-family: var(--serif); font-style: italic; font-size: 17px; margin: 0 0 14px; }
.services-pinned .card .desc { color: var(--ink-soft); margin: 0 0 18px; line-height: 1.55; }
.services-pinned .card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.services-pinned .card .tag { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }

/* services — layout: horizontal carousel */
.services-h-wrap { max-width: var(--content-max); margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); margin-left: 0; margin-right: 0; padding-left: var(--gutter); padding-right: var(--gutter); -ms-overflow-style: none; scrollbar-width: none; }
.services-h-wrap::-webkit-scrollbar { display: none; }
.services-h { display: flex; gap: 24px; }
.services-h .card { flex: 0 0 min(520px, 80vw); scroll-snap-align: start; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 36px; min-height: 460px; display: flex; flex-direction: column; }
.services-h .card .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); }
.services-h .card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 14px 0; letter-spacing: -0.02em; line-height: 1.1; }
.services-h .card .lede { font-family: var(--serif); font-style: italic; font-size: 17px; margin: 0 0 14px; }
.services-h .card .desc { color: var(--ink-soft); margin: 0 0 auto; line-height: 1.55; }
.services-h .card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.services-h .card .tag { font-family: var(--mono); font-size: 11px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); }

/* discovery callout */
.discovery {
  max-width: var(--content-max); margin: 80px auto 0;
  background: var(--ink); color: var(--bg);
  padding: 36px;
  border-radius: 4px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 720px) { .discovery { grid-template-columns: 1fr; } }
.discovery .label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.discovery .title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 400; }
.discovery .body { color: rgba(244, 239, 231, 0.7); margin: 0; max-width: 60ch; }

/* ==== Pricing ==== */
.pricing { padding: 140px var(--gutter); background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
  min-height: 320px;
  transition: transform .35s ease, border-color .35s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.price-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 20px; }
.price-card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1.1; }
.price-card .lede { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); margin: 0 0 18px; line-height: 1.4; }
.price-card .desc { color: var(--ink-soft); margin: 0; line-height: 1.55; }
.price-card .best {
  margin-top: auto; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.price-card .best strong { color: var(--ink); font-weight: 500; }

/* CTA strip */
.cta-strip {
  padding: 120px var(--gutter);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cta-strip h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 auto 32px; max-width: 18ch;
  text-wrap: balance;
}
.cta-strip h2 em { font-style: italic; }
.cta-strip h2 .dot { color: var(--accent); }
.cta-strip .sub { color: var(--ink-soft); max-width: 50ch; margin: 0 auto 36px; }

/* ==== About page ==== */
.about-hero {
  padding: 160px var(--gutter) 100px;
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) { .about-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 130px; } }
.about-hero .left .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.about-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 0.98; letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.about-hero h1 em { font-style: italic; }
.about-hero h1 .dot { color: var(--accent); }
.about-hero .right {
  padding-top: 16px;
}
.about-hero .right p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 24px; text-wrap: pretty; }
.about-hero .meta { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.about-hero .meta .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.about-hero .meta .row .k { color: var(--ink-mute); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; }
.about-hero .meta .row .v { color: var(--ink); font-weight: 500; }

.beliefs {
  padding: 100px var(--gutter);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.beliefs-grid {
  max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 720px) { .beliefs-grid { grid-template-columns: 1fr; } }
.belief { background: var(--bg-soft); padding: 36px; }
.belief .num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 14px; display: block; }
.belief h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.belief p { color: var(--ink-soft); margin: 0; line-height: 1.55; }

.how-section { padding: 120px var(--gutter); }
.how-grid { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }
.step { padding: 28px 0; border-top: 1px solid var(--ink); position: relative; }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-mute); margin-bottom: 18px; display: block; }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.02em; }
.step p { color: var(--ink-soft); margin: 0; font-size: 14px; line-height: 1.5; }

/* ==== Contact ==== */
.contact {
  padding: 140px var(--gutter);
  background: var(--ink); color: var(--bg);
  position: relative;
}
.contact .head { max-width: var(--content-max); margin: 0 auto 80px; display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 48px; align-items: end; }
@media (max-width: 880px) { .contact .head { grid-template-columns: 1fr; } }
.contact .eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); margin-bottom: 18px; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.contact h2 em { font-style: italic; }
.contact h2 .dot { color: var(--accent); }
.contact .head .right p { color: rgba(244, 239, 231, 0.7); margin: 0; font-size: 17px; line-height: 1.5; }
.contact .head .right a { color: var(--accent); border-bottom: 1px solid currentColor; }

.form { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 56px; }
@media (max-width: 720px) { .form { grid-template-columns: 1fr; } }
.field { padding: 28px 0; border-bottom: 1px solid rgba(244, 239, 231, 0.18); position: relative; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(244, 239, 231, 0.6);
  margin-bottom: 10px;
}
.field label .char-count {
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: rgba(244, 239, 231, 0.4);
  transition: color .25s ease;
}
.field label .char-count.is-warn { color: var(--accent); }
.field label .char-count.is-full { color: #ff7a59; }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--bg);
  font-family: var(--sans); font-size: 18px;
  padding: 4px 0;
  outline: none;
}
.field textarea { resize: vertical; min-height: 80px; line-height: 1.5; font-size: 17px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 239, 231, 0.3); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23F4EFE7' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right center; background-size: 12px; padding-right: 20px; }
.field select option { background: var(--ink); color: var(--bg); }
.field:focus-within { border-bottom-color: var(--accent); }
.field:focus-within label { color: var(--accent); }

.form-submit { grid-column: 1 / -1; margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form-submit .agree { font-size: 13px; color: rgba(244, 239, 231, 0.6); max-width: 50ch; }
.btn-send {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  background: var(--accent); color: var(--ink);
  border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  transition: transform .25s ease, background .25s ease;
}
.btn-send:hover { background: var(--bg); transform: translateY(-1px); }
.btn-send .arrow { transition: transform .25s ease; }
.btn-send:hover .arrow { transform: translateX(3px); }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

/* toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translate(-50%, 24px);
  z-index: 200;
  padding: 14px 22px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 231, 0.12);
  font-size: 14px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0;
  transition: opacity .35s ease, transform .35s ease;
  box-shadow: 0 24px 60px -20px rgba(26, 23, 20, 0.5);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* footer */
.foot { padding: 56px var(--gutter); background: var(--bg-deeper); border-top: 1px solid var(--line); }
.foot-inner { max-width: var(--content-max); margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-mute); margin: 0 0 16px; text-transform: uppercase; font-weight: 400; }
.foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: var(--ink-soft); font-size: 14px; transition: color .2s ease; }
.foot a:hover { color: var(--ink); }
.foot .brand-block { font-size: 13px; color: var(--ink-mute); line-height: 1.6; }
.foot .brand-block img { width: 140px; margin-bottom: 16px; display: block; }
.foot .legal { max-width: var(--content-max); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--ink-mute); font-family: var(--mono); letter-spacing: 0.06em; }

/* shared reveal animation */
.ambe-reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y, 24px));
  transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1), transform .9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.ambe-reveal.is-in { opacity: 1; transform: translateY(0); }

.ambe-reveal-text .word {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  /* breathing room for italic descenders (y, g, j) AND swashes that extend past the glyph box */
  padding: 0 0.18em 0.22em 0.04em;
  margin: 0 -0.18em -0.22em -0.04em;
}
.ambe-reveal-text .word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ambe-reveal-text .word-inner.is-in { transform: translateY(0); }

/* anim-low override */
.app.anim-low .ambe-reveal { transition-duration: 0.3s; }
.app.anim-low .ambe-reveal-text .word-inner { transition-duration: 0.3s; }

/* type pairing — sans-only */
.app.type-sans .hero-headline, .app.type-sans .section-title, .app.type-sans .hero-headline .accent, .app.type-sans .section-title em,
.app.type-sans .service h3, .app.type-sans .services-pinned .card h3, .app.type-sans .services-h .card h3,
.app.type-sans .discovery .title, .app.type-sans .price-card h3, .app.type-sans .cta-strip h2,
.app.type-sans .about-hero h1, .app.type-sans .belief h3, .app.type-sans .step h4, .app.type-sans .contact h2,
.app.type-sans .principle h3, .app.type-sans .service .lede, .app.type-sans .services-pinned .card .lede,
.app.type-sans .services-h .card .lede, .app.type-sans .price-card .lede {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.app.type-sans .hero-headline em, .app.type-sans .section-title em { font-style: normal; }

/* type pairing — tahoma */
.app.type-tahoma .hero-headline, .app.type-tahoma .section-title, .app.type-tahoma .hero-headline .accent, .app.type-tahoma .section-title em,
.app.type-tahoma .service h3, .app.type-tahoma .services-pinned .card h3, .app.type-tahoma .services-h .card h3,
.app.type-tahoma .discovery .title, .app.type-tahoma .price-card h3, .app.type-tahoma .cta-strip h2,
.app.type-tahoma .about-hero h1, .app.type-tahoma .belief h3, .app.type-tahoma .step h4, .app.type-tahoma .contact h2,
.app.type-tahoma .principle h3 {
  font-family: Tahoma, Geneva, sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.app.type-tahoma { font-family: Tahoma, Geneva, sans-serif; }
.app.type-tahoma .hero-headline em, .app.type-tahoma .section-title em { font-style: normal; }

/* dark theme override on top of cream variables */
.app.theme-dark { --bg: #14110e; --bg-soft: #1b1814; --bg-deeper: #100d0a; --ink: #F4EFE7; --ink-soft: #c8c0b3; --ink-mute: #8a8276; --line: rgba(244, 239, 231, 0.1); --line-soft: rgba(244, 239, 231, 0.06); }
.app.theme-dark .nav-inner { background: rgba(20, 17, 14, 0.7); border-color: rgba(244, 239, 231, 0.1); }
.app.theme-dark .nav.is-scrolled .nav-inner { background: rgba(20, 17, 14, 0.92); }
.app.theme-dark .nav-cta { background: var(--accent); color: var(--ink); }
.app.theme-dark .price-card { background: var(--bg-soft); }
.app.theme-dark .belief { background: var(--bg-soft); }
.app.theme-dark .services-pinned .card { background: var(--bg-soft); }
.app.theme-dark .services-h .card { background: var(--bg-soft); }
.app.theme-dark .principles { background: var(--bg-soft); }
.app.theme-dark .pricing { background: var(--bg-soft); }
.app.theme-dark .foot { background: var(--bg-deeper); }
.app.theme-dark .grain { display: none; }

/* bi-tonal: hero in cream, services+ in dark */
.app.theme-bi .hero, .app.theme-bi .principles, .app.theme-bi .about-hero, .app.theme-bi .beliefs { color: var(--ink); }
.app.theme-bi .services, .app.theme-bi .pricing, .app.theme-bi .cta-strip, .app.theme-bi .how-section { background: #14110e; color: #F4EFE7; --ink: #F4EFE7; --ink-soft: #c8c0b3; --ink-mute: #8a8276; --line: rgba(244, 239, 231, 0.1); --bg-soft: #1b1814; --bg: #14110e; }

/* tweaks panel placement: ensure it overlays */
.tweaks-host { position: fixed; z-index: 200; }

/* ---------- Legal pages (Imprint, Privacy, Terms) ---------- */
/* On legal pages the .app div only holds the Nav + LangSwitch; the legal
 * body and Footer are siblings below it. Suppress the default 100vh min-height
 * so .app collapses to its content height and doesn't push siblings below the
 * fold. */
.app.legal-only { min-height: 0; }
.legal-main {
  max-width: 720px;
  margin: 140px auto 80px;
  padding: 0 24px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-main h1 { font-family: var(--serif); font-size: 40px; margin: 0 0 24px; line-height: 1.15; letter-spacing: -0.02em; }
.legal-main h2 { font-family: var(--serif); font-size: 22px; margin: 40px 0 12px; font-weight: 500; letter-spacing: -0.015em; }
.legal-main h3 { font-family: var(--sans); font-size: 14px; margin: 24px 0 8px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.legal-main p, .legal-main li { margin: 0 0 12px; }
.legal-main ul { padding-left: 22px; margin: 0 0 16px; }
.legal-main a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-main a:hover { text-decoration: none; }
.legal-main code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-soft);
  padding: 1px 6px; border-radius: 3px;
  border: 1px solid var(--line);
}
.legal-main .meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-mute);
  margin: 0 0 32px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .legal-main { margin-top: 96px; font-size: 16px; }
  .legal-main h1 { font-size: 32px; }
}

/* ---------- Error pages (404, 500) ---------- */
body.error-page { background: var(--bg); color: var(--ink); }
.error-main {
  max-width: 560px;
  margin: 200px auto 80px;
  padding: 0 24px;
  text-align: center;
}
.error-main .error-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.error-main h1 {
  font-family: var(--serif);
  font-size: 44px; line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.error-main h1 .dot { color: var(--accent); }
.error-main p {
  font-family: var(--serif);
  font-size: 18px; line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.error-main .back-link {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}
.error-main .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 540px) {
  .error-main { margin-top: 140px; }
  .error-main h1 { font-size: 32px; }
}
