@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations"),
       url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}

:root {
  --espresso: #4A2E1D;
  --espresso-90: #5a3d2b;
  --amber: #E0A458;
  --creme: #F4F1EA;
  --paper: #FBF9F4;
  --ink-soft: rgba(74, 46, 29, .68);
  --line: rgba(74, 46, 29, .14);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--creme);
  color: var(--espresso);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--amber); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--espresso); color: var(--creme); padding: 8px 14px; z-index: 10; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 600; font-size: clamp(21px, 2.2vw, 25px); letter-spacing: -.02em; text-decoration: none; }
.wordmark span { color: var(--amber); }
.nav-link { font-size: 14px; text-decoration: none; letter-spacing: .02em; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s var(--ease); }
.nav-link:hover { border-color: var(--espresso); }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--amber); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
.lede { color: var(--ink-soft); max-width: 34em; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--espresso); color: var(--creme);
  text-decoration: none; font-weight: 500; font-size: 16px;
  padding: 16px 26px; border-radius: 999px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn svg { transition: transform .25s var(--ease); }
.btn:hover { background: var(--espresso-90); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }

.btn-amber { background: var(--amber); color: var(--espresso); }
.btn-amber:hover { background: #ebb46f; }

/* Header over dark hero */
.site-header.on-dark { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: var(--creme); }
.site-header.on-dark .nav-link { border-color: rgba(244, 241, 234, .3); }
.site-header.on-dark .nav-link:hover { border-color: var(--creme); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--creme);
  background:
    radial-gradient(90% 70% at 88% 18%, rgba(224, 164, 88, .20), rgba(224, 164, 88, 0) 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(20, 10, 4, .35), rgba(20, 10, 4, 0) 70%),
    var(--espresso);
  padding: clamp(112px, 16vw, 168px) 0 clamp(72px, 10vw, 128px);
}
.hero::after { /* fine baseline rule */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(224,164,88,0), rgba(224,164,88,.45), rgba(224,164,88,0));
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 28px;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 .soft { display: block; font-weight: 400; color: rgba(244, 241, 234, .58); }
.hero .lede { font-size: clamp(18px, 1.8vw, 21px); color: rgba(244, 241, 234, .78); margin: 0 0 40px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.text-link {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--creme);
  border-bottom: 1px solid rgba(244, 241, 234, .35); padding-bottom: 2px;
  transition: border-color .2s var(--ease);
}
.text-link:hover { border-color: var(--amber); }

.hero-visual { position: relative; width: 100%; max-width: 460px; margin: 0 auto; padding-bottom: 12%; }
.hero-visual figure { margin: 0; border-radius: 6px; overflow: hidden; background: #3a2416; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hv-main { width: 78%; margin-left: auto !important; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -20px rgba(10, 5, 2, .55); }
.hv-small {
  position: absolute; left: 0; bottom: 0; width: 44%; aspect-ratio: 4 / 5;
  box-shadow: 0 24px 48px -16px rgba(10, 5, 2, .6);
  outline: 6px solid var(--espresso);
}
.hv-tag {
  position: absolute; top: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(244, 241, 234, .9); color: var(--espresso);
}
.hv-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* Sections */
section { scroll-margin-top: 24px; }
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Before / After */
.ba-grid { display: grid; gap: clamp(48px, 6vw, 40px); }
@media (min-width: 820px) { .ba-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

.ba-item { margin: 0; }
.ba-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.ba-name { font-size: 15px; color: var(--ink-soft); }

.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 1856 / 2304;
  overflow: hidden;
  border-radius: 6px;
  background: #e9e4da;
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
  cursor: ew-resize;
  isolation: isolate;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-after img { opacity: 0; transition: opacity .45s var(--ease); }
.ba-after img.is-active { opacity: 1; }

.ba-label {
  position: absolute; top: 14px; z-index: 2;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(244, 241, 234, .86); color: var(--espresso);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-label.before { left: 14px; }
.ba-label.after { right: 14px; }

.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: ew-resize;
}
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--creme); box-shadow: 0 0 0 .5px rgba(74,46,29,.15); }
.ba-knob {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--creme); color: var(--espresso);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(40, 24, 14, .22);
  transition: transform .2s var(--ease);
}
.ba:active .ba-knob, .ba-handle:focus-visible .ba-knob { transform: scale(1.08); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { box-shadow: 0 0 0 3px var(--amber), 0 6px 20px rgba(40, 24, 14, .22); }

/* Segmented toggle */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
.seg button {
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .02em;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.seg button[aria-pressed="true"] { background: var(--espresso); color: var(--creme); }
.seg button:not([aria-pressed="true"]):hover { color: var(--espresso); }

/* Video */
.video-section { background: var(--espresso); color: var(--creme); }
.video-section .eyebrow { color: rgba(244,241,234,.7); }
.video-section .lede { color: rgba(244,241,234,.72); }
.video-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .video-grid { grid-template-columns: 1fr auto; gap: 80px; } }
.video-frame {
  position: relative; margin: 0 auto;
  width: min(100%, 380px, calc(78svh * 9 / 16));
  aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #2e1d12;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.sound-btn {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(244, 241, 234, .9); color: var(--espresso);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .2s var(--ease);
}
.sound-btn:hover { background: var(--creme); }
.sound-btn .ico-on { display: none; }
.sound-btn[aria-pressed="true"] .ico-on { display: block; }
.sound-btn[aria-pressed="true"] .ico-off { display: none; }
.video-note { font-size: 13px; color: rgba(244,241,234,.55); margin-top: 24px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { border-top: 1px solid var(--line); padding: 28px 0 32px; }
.step-num { font-size: 13px; font-weight: 500; color: var(--amber); letter-spacing: .08em; display: block; margin-bottom: 28px; }
.steps h3 { font-size: clamp(21px, 2.2vw, 25px); line-height: 1.25; max-width: 16ch; }
.steps p { margin: 10px 0 0; color: var(--ink-soft); font-size: 15px; }

/* Pricing */
.pricing { background: var(--paper); }
.price-grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .price-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.price {
  border: 1px solid var(--line); border-radius: 6px; background: var(--creme);
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 220px;
}
.price h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 500; }
.price .amount { font-size: clamp(48px, 7vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.price-cta { margin-top: clamp(40px, 6vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.price-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Contact */
.contact-card {
  display: grid; gap: 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
}
@media (min-width: 860px) { .contact-card { grid-template-columns: 1fr auto; align-items: end; gap: 48px; } }
.contact-card .eyebrow { margin-bottom: 14px; }
.contact-card h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 16ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid var(--amber); padding-bottom: 3px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.contact-mail svg { color: var(--amber); flex: none; }
.contact-mail:hover { border-color: var(--espresso); }
@media (min-width: 560px) {
  .contact-mail {
    font-size: 18px; padding: 14px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--creme);
  }
  .contact-mail:hover { border-color: var(--espresso); }
}
.copy-btn {
  font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .02em;
  background: none; border: 0; padding: 6px 2px; cursor: pointer; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line);
}
.copy-btn:hover { color: var(--espresso); }
.copy-btn.is-done { color: var(--espresso); text-decoration-color: var(--amber); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 40px; }
.legal h2 { font-size: 20px; letter-spacing: -.01em; margin: 40px 0 10px; line-height: 1.3; }
.legal p, .legal li { color: var(--espresso); }
.legal address { font-style: normal; }
.legal .muted { color: var(--ink-soft); font-size: 14px; }
.back { display: inline-block; margin-bottom: 32px; font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--espresso); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
