/* Bitter — design system
   Palette: Obsidian · Slate · Mist · Bone
   Type: Inter (display opsz), tight tracking, light weights
*/
:root {
  --obsidian: #111111;
  --slate: #3a3d40;
  --mist: #c6c7c5;
  --bone: #f1efea;
  --bone-2: #e9e6df;
  --ink: var(--obsidian);
  --ink-2: var(--slate);
  --ink-3: #7c7f82;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.28);
  --bg: var(--bone);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--obsidian); color: var(--bone); }

/* ---------- type ---------- */
.display {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.display-xl { font-size: clamp(52px, 8.2vw, 116px); }
.display-lg { font-size: clamp(40px, 5.6vw, 76px); }
.display-md { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.lede {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 38ch;
  text-wrap: pretty;
}
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; }
.micro {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--ink-2);
  font-weight: 500;
}
.on-dark { --ink: var(--bone); --ink-2: rgba(241, 239, 234, 0.72); --ink-3: rgba(241, 239, 234, 0.45); --line: rgba(241, 239, 234, 0.14); --line-strong: rgba(241, 239, 234, 0.3); color: var(--ink); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1480px; margin-inline: auto; }
.section { padding-block: clamp(88px, 11vw, 160px); }
.hair { border-top: 1px solid var(--line); }
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--obsidian); color: var(--bone);
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em;
  border: 1px solid var(--obsidian);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--slate); border-color: var(--slate); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(17,17,17,0.05); border-color: var(--ink); transform: none; }
.on-dark .btn { background: var(--bone); color: var(--obsidian); border-color: var(--bone); }
.on-dark .btn:hover { background: #fff; border-color: #fff; }
.on-dark .btn.ghost { background: transparent; color: var(--bone); border-color: var(--line-strong); }
.on-dark .btn.ghost:hover { background: rgba(241,239,234,0.08); }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link:hover { border-color: var(--ink); gap: 12px; }
.link svg { width: 14px; height: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bone) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 42px; height: 27px; }
.brand span { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.nav-cta { display: flex; align-items: center; gap: 22px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: min(calc(100svh - 76px), 880px);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vw, 120px) 0;
  position: relative; z-index: 2;
}
.hero-copy .lede { margin-top: clamp(24px, 2.6vw, 36px); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(30px, 3.4vw, 48px); flex-wrap: wrap; }
.hero-eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero-visual { position: relative; min-height: 420px; }
.hero-img {
  position: absolute; inset: 0;
  left: -8%; right: calc(-1 * var(--gutter));
}
.hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
  filter: contrast(1.03);
}
.hero-img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, var(--bone) 0%, rgba(241,239,234,0.85) 14%, rgba(241,239,234,0) 46%),
    linear-gradient(180deg, rgba(241,239,234,0.35) 0%, rgba(241,239,234,0) 24%, rgba(241,239,234,0) 78%, var(--bone) 100%);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-top: 56px; padding-bottom: 40px; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 4.6; margin-inline: calc(-1 * var(--gutter)); }
  .hero-img { left: 0; right: 0; }
  .hero-img img { object-position: 50% 45%; }
  .hero-img::before { background: linear-gradient(180deg, var(--bone) 0%, rgba(241,239,234,0) 20%, rgba(241,239,234,0) 80%, var(--bone) 100%); }
    }

/* ---------- signal ---------- */
.signal-line { text-align: center; max-width: 18ch; margin-inline: auto; }
.wavebox {
  margin-top: clamp(40px, 6vw, 88px);
  height: clamp(220px, 30vw, 400px);
  position: relative;
}
.wavebox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- closer (dark) ---------- */
.dark { background: var(--obsidian); }
.closer { position: relative; overflow: hidden; text-align: center; }
.closer-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  opacity: 0.38;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
}
.closer-inner { position: relative; z-index: 1; padding-block: clamp(32px, 6vw, 96px); }
.closer .display-lg { max-width: 16ch; margin: 18px auto 0; }
.closer .lede { margin: 26px auto 0; max-width: 46ch; }
.cta-actions { display: flex; justify-content: center; gap: 16px; margin-top: 40px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 32px; font-size: 12.5px; color: var(--ink-3); }
.footer-row { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.footer-row .brand { margin-right: auto; color: var(--ink); }
.footer-row a:not(.brand):hover { color: var(--ink); }
.footer .brand svg { width: 34px; height: 22px; }
.footer .brand span { font-size: 18px; }

/* ---------- legal page ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; margin: 64px 0 20px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.015em; margin: 32px 0 8px; }
.legal h4 { font-size: 15px; font-weight: 500; margin: 22px 0 6px; }
.legal p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 12px; }
.legal a { border-bottom: 1px solid var(--line-strong); }
.legal address { font-style: normal; font-size: 15px; line-height: 1.65; color: var(--ink-2); margin-bottom: 12px; }
.legal .src { font-size: 12px; color: var(--ink-3); }

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