@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --night: #0E0C0A;
  --ivory: #F3EDE3;
  --soft: rgba(243, 237, 227, 0.66);
  --faint: rgba(243, 237, 227, 0.60);
  --amber: #E8A867;
  --line: rgba(243, 237, 227, 0.14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--night);
  color: var(--ivory);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ivory); outline-offset: 4px; border-radius: 2px; }
.wrap { position: relative; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Warm light, like a lamp in a dark room */
.glow {
  position: fixed; inset: -20%;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 72% 38%, rgba(222, 164, 96, 0.30), transparent 70%),
    radial-gradient(30% 36% at 24% 78%, rgba(168, 98, 62, 0.20), transparent 70%);
  filter: blur(20px);
  animation: breathe 14s ease-in-out infinite alternate;
}
@keyframes breathe {
  from { transform: translate3d(-2%, 1%, 0) scale(1); opacity: .85; }
  to   { transform: translate3d(2%, -1%, 0) scale(1.06); opacity: 1; }
}

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.wordmark { font: 400 28px/1 var(--serif); letter-spacing: -0.01em; }
.status {
  font: 500 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
}

/* Hero */
.hero { padding-block: clamp(64px, 12vh, 140px) 0; }
.hero h1 {
  font: 400 clamp(56px, 10vw, 152px)/0.96 var(--serif);
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--soft); }
.hero-row { display: grid; grid-template-columns: minmax(0, 32em) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 40px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--soft); }
.wave-hero { display: block; width: 100%; height: clamp(96px, 12vw, 160px); color: var(--amber); }
.wave-hero rect, .wave-sm rect { transform-box: fill-box; transform-origin: center; animation: talk 1.4s ease-in-out infinite alternate; }
.wave-hero rect:nth-child(3n), .wave-sm rect:nth-child(3n) { animation-delay: -.5s; }
.wave-hero rect:nth-child(3n+1), .wave-sm rect:nth-child(3n+1) { animation-delay: -.9s; animation-duration: 1.1s; }
.wave-hero rect:nth-child(4n), .wave-sm rect:nth-child(4n) { animation-duration: 1.7s; }
@keyframes talk { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

/* How it will work */
.features-wrap { padding-block: clamp(48px, 8vw, 112px) clamp(64px, 10vw, 128px); }
.how { font: 400 clamp(32px, 4vw, 52px)/1.05 var(--serif); letter-spacing: -0.015em; }
.features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feature { display: flex; flex-direction: column; }
.feature h3 { margin-top: 8px; font: 600 22px/1.25 var(--sans); letter-spacing: -0.02em; }
.feature > p:last-child { margin-top: 8px; font-size: 16px; color: var(--soft); }
.step { margin-top: 28px; font: 500 13px/1 var(--sans); color: var(--amber); font-variant-numeric: tabular-nums; }
.mini {
  height: 232px; padding: 24px; border-radius: 24px;
  background: rgba(243, 237, 227, 0.05); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mini-record { align-items: center; text-align: center; }
.mini-q { font: 400 24px/1.2 var(--serif); }
.mini-btn {
  display: grid; place-items: center; width: 56px; height: 56px; margin-top: 24px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 10px rgba(232, 168, 103, 0.14), 0 0 0 20px rgba(232, 168, 103, 0.06);
}
.mini-btn span { width: 12px; height: 20px; border-radius: 6px; background: var(--night); }
.mini-hint { margin-top: 24px; font-size: 13px; color: var(--soft); }
.story { display: flex; align-items: center; gap: 12px; }
.story-2 { opacity: .55; }
.play { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ivory); }
.play::after { content: ""; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--night); border-block: 7px solid transparent; }
.story-text { display: grid; gap: 2px; }
.story-text b { font-size: 15px; font-weight: 600; }
.story-text small { font-size: 13px; color: var(--soft); }
.wave-sm { display: block; width: 100%; height: 40px; margin-block: 16px 20px; color: var(--amber); }
.mini-label { font-size: 15px; font-weight: 600; }
.people { display: flex; margin-top: 20px; }
.people span {
  display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 50%;
  border: 2px solid var(--night); background: #3A2F26; font-size: 15px; font-weight: 600;
}
.people span:nth-child(2) { background: #5B4632; }
.people span:nth-child(3) { background: #7A5A3A; }
.people .more { background: rgba(243, 237, 227, 0.12); font-size: 13px; }
.mini-send {
  display: grid; place-items: center; height: 44px; margin-top: 24px; border-radius: 999px;
  background: var(--ivory); color: var(--night); font-size: 14px; font-weight: 600;
}

@media (max-width: 860px) {
  .hero-row { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; max-width: 560px; }
}

/* Footer */
.foot { padding-top: 28px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-bottom: 36px; display: grid; gap: 12px; }
.made { font-size: 14px; color: var(--soft); }
.made a { color: var(--ivory); text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.made a:hover { border-color: var(--ivory); }
.legal { max-width: 62em; font-size: 13px; line-height: 1.6; color: var(--faint); }

@media (prefers-reduced-motion: reduce) {
  .glow, rect { animation: none !important; }
  * { transition: none !important; }
}
