:root {
  --bg: #0e1410;
  --bg-2: #121a16;
  --surface: #18221d;
  --surface-2: #1e2a24;
  --paper: #e6d7bf;
  --paper-2: #f3ead8;
  --ink: #1c140e;
  --brass: #c9a66b;
  --brass-deep: #8d6a3a;
  --text: #e8efe8;
  --muted: rgba(232, 239, 232, 0.58);
  --soft: rgba(232, 239, 232, 0.38);
  --line: rgba(201, 166, 107, 0.22);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  --font: "Figtree", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --radius: 14px;
  --wrap: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 18% -10%, rgba(201, 166, 107, 0.16), transparent 55%),
    radial-gradient(700px 500px at 110% 12%, rgba(40, 72, 52, 0.5), transparent 50%),
    var(--bg);
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

img, video, canvas { max-width: 100%; display: block; }

button, input { font: inherit; }
[hidden] { display: none !important; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--brass);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  max-width: var(--wrap);
  min-width: 0;
  margin-inline: auto;
}

body > header,
body > main,
body > aside,
main > section,
body > footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 8;
  background: rgba(14, 20, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

.hero {
  padding: 56px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 48px;
  align-items: start;
}

.kicker {
  margin: 0 0 14px;
  color: var(--brass);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 0.98;
  text-wrap: balance;
}

.lead {
  margin: 0 0 12px;
  max-width: 42ch;
  font-size: 18px;
  color: var(--muted);
}

.quiet {
  margin: 0;
  font-size: 14px;
  color: var(--soft);
}

.press {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    var(--shadow);
}

.press-lamp {
  position: absolute;
  top: -28px;
  left: 18%;
  width: 140px;
  height: 70px;
  background: radial-gradient(ellipse at 50% 100%, rgba(201, 166, 107, 0.28), transparent 70%);
  pointer-events: none;
}

.platen {
  height: 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a5130, var(--brass), #6a5130);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 0;
}

.press.is-pressing .platen {
  animation: platen 720ms ease;
}

@keyframes platen {
  0% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

.bed {
  position: relative;
  min-height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #243028, #151c18);
  border: 1px dashed rgba(201, 166, 107, 0.35);
  cursor: pointer;
}

.bed.is-hot {
  border-color: var(--brass);
  background: #1c2822;
}

#live, #preview {
  width: 100%;
  height: 320px;
  object-fit: cover;
  background: #0a0f0c;
}

.bed-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.bed-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 28px;
}

.bed-hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.scan-corners b {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--brass);
  pointer-events: none;
}
.scan-corners b:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.scan-corners b:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.scan-corners b:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.scan-corners b:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

.press-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.press-status {
  min-height: 1.3em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.btn {
  appearance: none;
  border: 0;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 20px rgba(141, 106, 58, 0.28);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(141, 106, 58, 0.4);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible,
.specimen:focus-visible,
.bed:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--surface-2);
  box-shadow: none;
}

.proof {
  margin-top: 28px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px 14px 14px 14px;
  padding: 22px 24px 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    8px 14px 30px rgba(0,0,0,0.28);
  transform: rotate(-0.4deg);
  animation: stamp 480ms ease;
}

@keyframes stamp {
  from { opacity: 0; transform: rotate(-0.4deg) translateY(10px) scale(0.98); }
  to { opacity: 1; transform: rotate(-0.4deg) translateY(0) scale(1); }
}

.proof-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(28, 20, 14, 0.25);
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-mark { color: var(--brass-deep); font-weight: 700; }
.proof-kind {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.1;
}
.proof-body {
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}
.proof-extra {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}
.proof-extra dt { color: rgba(28,20,14,0.55); }
.proof-extra dd { margin: 0; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proof .btn { box-shadow: none; }
.proof .btn-ghost { color: var(--ink); border-color: rgba(28,20,14,0.2); }

.ledger {
  padding: 8px 0 8px;
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ledger-grid div {
  padding: 32px 24px;
  position: relative;
  transition: background 0.28s ease;
}

.ledger-grid div::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.ledger-grid div:hover {
  background: var(--surface);
}

.ledger-grid div:hover::before {
  transform: scaleX(1);
}

.ledger-grid div.is-live {
  animation: block-in 0.55s ease backwards;
}

.ledger-grid div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.ledger-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.ledger-grid span {
  color: var(--muted);
  font-size: 14px;
}

.specimens,
.drawer,
.how,
.faq {
  padding: 88px 0 12px;
}

.section-head { max-width: 640px; margin-bottom: 32px; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.1;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.card-deck {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.specimen {
  text-align: left;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  padding: 22px 22px 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 28px rgba(0,0,0,0.22);
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.specimen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(201,166,107,0.14) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}

.specimen:hover::before {
  animation: sheen 0.7s ease;
}

.specimen.is-live {
  animation: block-in 0.55s ease backwards;
}

@keyframes sheen {
  to { transform: translateX(130%); }
}

@keyframes block-in {
  from { transform: translateY(12px); }
  to { transform: translateY(0); }
}

.specimen:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  background: var(--surface-2);
  border-color: rgba(201, 166, 107, 0.45);
}

.specimen-foil {
  font-family: var(--display);
  color: var(--brass);
  font-size: 22px;
  transition: transform 0.28s ease, letter-spacing 0.28s ease;
}

.specimen:hover .specimen-foil {
  transform: translateX(4px);
  letter-spacing: 0.08em;
}

.specimen-cta {
  margin-top: 8px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.28s ease;
}

.specimen:hover .specimen-cta {
  transform: translateX(6px);
}

.specimen-shift { margin-top: 18px; }
.specimen-tall { min-height: 280px; }

.specimen-type {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

.specimen strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.specimen-copy {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.drawer-index.is-live {
  animation: block-in 0.55s ease backwards;
}

.drawer-index {
  max-width: 520px;
}

.drawer-index h2 { margin: 0 0 12px; }

.drawer-count {
  margin: 22px 0 18px;
  font-family: var(--display);
  font-size: 42px;
  line-height: 1;
  color: var(--brass);
}

.drawer-count span {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.28s ease;
}

.steps li.is-live {
  animation: block-in 0.55s ease backwards;
}

.steps li:hover {
  padding-left: 8px;
}

.steps strong { display: block; font-size: 18px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.faq-list { display: grid; gap: 10px; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 18px;
  transition: border-color 0.28s ease, transform 0.28s ease;
}

details.is-live {
  animation: block-in 0.55s ease backwards;
}

details:hover {
  border-color: rgba(201, 166, 107, 0.4);
  transform: translateY(-2px);
}

summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
}

details p {
  margin: 0 0 16px;
  color: var(--muted);
}

.foot {
  margin-top: 88px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  background: #0b100d;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.foot-brand .brand-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.foot-brand p:last-child,
.foot-req p,
.foot li { color: var(--muted); }

.foot h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-family: var(--font);
  letter-spacing: 0;
}

.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 0 0 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

.foot-req {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.req-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--soft);
}

.foot-links { display: flex; gap: 16px; }

.cookie-note {
  border-top: 1px dashed var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.cookie-note-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-note p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.cookie-note .btn { flex-shrink: 0; }

.bed-sample {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 148px;
  background: var(--paper-2);
  color: var(--ink);
  padding: 8px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: default;
  text-align: center;
}
.bed-sample-lab {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.bed-sample img {
  width: 100%;
  background: #fff;
  padding: 6px;
  border-radius: 4px;
}
.bed-sample-cap {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: 16px;
}
.bed-sample .btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink);
  border-color: rgba(28, 20, 14, 0.2);
}

.legal-page {
  padding: 48px 0 80px;
  max-width: 72ch;
}
.legal-page h1 { font-size: 42px; }
.legal-page p, .legal-page li { color: var(--muted); }

@media (max-width: 980px) {
  .hero-grid,
  .ledger-grid,
  .card-deck,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .specimen-shift { margin-top: 0; }
  .nav { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); max-width: var(--wrap); }
  .hero { padding-top: 28px; }
  .hero-grid,
  .ledger-grid,
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .ledger-grid div:not(:last-child)::after { display: none; }
  .specimens, .drawer, .how, .faq { padding-top: 64px; }
  .foot-bottom { flex-direction: column; }
  .cookie-note-inner { flex-direction: column; align-items: stretch; }
  .bed { min-height: 220px; }
  #live, #preview { height: 240px; }

  @keyframes mob-in {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
  }
  @keyframes lamp-breathe {
    50% { opacity: 0.35; }
  }
  @keyframes platen-idle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
  }
  @keyframes corner-pulse {
    50% { opacity: 0.28; }
  }
  @keyframes foil-nudge {
    0%, 100% { transform: none; }
    40% { transform: translateX(5px); }
  }
  @keyframes cta-nudge {
    0%, 100% { transform: none; }
    45% { transform: translateX(6px); }
  }
  @keyframes line-draw {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
  }
  @keyframes cta-pulse {
    50% {
      transform: translateY(-2px);
      box-shadow: 0 14px 28px rgba(141, 106, 58, 0.48);
    }
  }

  .specimen.is-live,
  .ledger-grid div.is-live,
  .steps li.is-live,
  details.is-live,
  .drawer-index.is-live,
  .press.is-live,
  .hero-copy.is-live {
    animation: mob-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .specimen.is-live::before {
    animation: sheen 0.85s ease 0.12s;
  }
  .specimen.is-live .specimen-foil {
    animation: foil-nudge 0.7s ease 0.18s;
  }
  .specimen.is-live .specimen-cta {
    animation: cta-nudge 0.7s ease 0.28s;
  }

  .ledger-grid div.is-live::before {
    animation: line-draw 0.55s ease 0.15s forwards;
  }

  .press-lamp {
    animation: lamp-breathe 2.6s ease-in-out infinite;
  }
  .platen {
    animation: platen-idle 2.8s ease-in-out infinite;
  }
  .press.is-pressing .platen {
    animation: platen 720ms ease;
  }
  .scan-corners b {
    animation: corner-pulse 1.8s ease-in-out infinite;
  }
  .scan-corners b:nth-child(2) { animation-delay: 0.12s; }
  .scan-corners b:nth-child(3) { animation-delay: 0.24s; }
  .scan-corners b:nth-child(4) { animation-delay: 0.36s; }

  .press-bar .btn:not(.btn-ghost) {
    animation: cta-pulse 2.2s ease-in-out infinite;
  }

  .steps li.is-live {
    padding-left: 8px;
  }
}

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