:root {
  --bg: #0B0A0D;
  --bg-2: #14111A;
  --bg-3: #1B1620;
  --line: #2A2330;
  --ink: #EDE6D6;
  --ink-dim: #B6AC97;
  --ink-mute: #807761;
  --copper: #C9763B;
  --amber: #E8B65A;
  --oxblood: #6B1A2A;
  --pulse: #A23048;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --grotesk: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --rad: 2px;
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
a:hover { border-bottom-color: var(--amber); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: var(--rad); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; margin: 0 0 .4em; line-height: 1.05; }
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(32px, 4.5vw, 56px); }
h3 { font-size: clamp(22px, 2.6vw, 32px); }
.eyebrow {
  font-family: var(--grotesk);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .04em; }

/* Layout shell */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.row { display: grid; gap: 32px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-head .shell {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif); font-size: 24px; letter-spacing: .02em;
  color: var(--ink); border-bottom: none;
}
.brand em { font-style: italic; color: var(--amber); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-dim); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.cta-mini) { display: none; } }
.cta-mini {
  border: 1px solid var(--copper); padding: 8px 14px;
  color: var(--ink); border-radius: var(--rad);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.cta-mini:hover { background: var(--copper); border-bottom-color: transparent; }

/* Hero: instrument panel */
.instrument {
  position: relative; padding: 56px 0 96px;
  border-bottom: 1px solid var(--line);
}
.instrument::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 10% 110%, rgba(201,118,59,.18), transparent 60%),
    radial-gradient(50% 40% at 95% 10%, rgba(162,48,72,.20), transparent 60%);
  z-index: 0;
}
.instrument .shell { position: relative; z-index: 1; }
.panel-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  min-width: 0;
}
@media (max-width: 920px) { .panel-grid { grid-template-columns: 1fr; } }

.panel-left { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.brand-line {
  display: flex; align-items: center; gap: 14px; color: var(--ink-mute);
}
.brand-line .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(232,182,90,.6);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(232,182,90,.55); }
  70% { box-shadow: 0 0 0 18px rgba(232,182,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,182,90,0); }
}
@media (prefers-reduced-motion: reduce) { .brand-line .dot { animation: none; } }

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: -.005em;
  margin: 0;
  overflow-wrap: break-word;
}
.headline em { font-style: italic; color: var(--amber); }
.headline .l2 { display: block; color: var(--ink-dim); font-size: .58em; margin-top: .25em; }

.tagline { color: var(--ink-dim); max-width: 46ch; font-size: 17px; }
.tagline strong { color: var(--ink); font-weight: 500; }

/* State selector */
.state-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  padding: 22px; border-radius: var(--rad);
  min-width: 0;
}
.state-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.state-head .eyebrow { color: var(--amber); }
.state-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
@media (max-width: 600px) { .state-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; } }
.state-btn {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 16px 6px 12px;
  border-radius: var(--rad);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s, color .2s, background .2s;
}
.state-btn .glyph { width: 26px; height: 26px; color: var(--ink-mute); transition: color .25s, transform .35s ease; }
.state-btn:hover { border-color: var(--copper); color: var(--ink); }
.state-btn[aria-pressed="true"] {
  border-color: var(--amber);
  color: var(--ink);
  background: color-mix(in oklab, var(--copper) 14%, transparent);
}
.state-btn[aria-pressed="true"] .glyph { color: var(--amber); transform: translateY(-1px) scale(1.05); }

@media (max-width: 600px) {
  :root { --pad-x: 18px; }
  .instrument { padding: 48px 0 72px; }
  .brand-line {
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
  }
  .brand-line .eyebrow {
    letter-spacing: .14em;
    overflow-wrap: anywhere;
  }
  .headline { font-size: clamp(42px, 13vw, 58px); }
  .tagline {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .state-panel {
    padding: 18px;
    overflow: hidden;
  }
  .state-head {
    gap: 10px;
    align-items: center;
  }
  .state-head > span:last-child { white-space: nowrap; }
  .state-grid {
    display: flex;
    grid-template-columns: none;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .state-btn {
    flex: 0 0 76px;
    min-height: 78px;
    padding: 12px 4px 10px;
    font-size: 10px;
    letter-spacing: .08em;
    scroll-snap-align: start;
  }
  .state-btn .glyph {
    width: 22px;
    height: 22px;
  }
  .state-read {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }
  .state-read dd { overflow-wrap: anywhere; }
  .state-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .panel-right { min-height: 320px; }
}

.state-read {
  display: grid; grid-template-columns: auto 1fr; gap: 14px 18px;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.state-read dt { color: var(--ink-mute); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.state-read dd { margin: 0; color: var(--ink); font-size: 15px; }
.state-read dd .mono { color: var(--amber); }

.state-cta {
  margin-top: 22px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--rad);
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--copper); background: var(--copper); color: #1A0F08;
  font-weight: 600;
  transition: transform .15s ease, background .2s;
}
.btn:hover { background: var(--amber); border-color: var(--amber); border-bottom-color: var(--amber); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--amber); background: transparent; color: var(--amber); }
.btn .arrow { display: inline-block; transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Motion path canvas */
.panel-right {
  position: relative;
  min-width: 0;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--rad);
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(201,118,59,.10), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg-3));
  overflow: hidden;
}
.panel-right svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-right .corner {
  position: absolute; padding: 14px 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: .08em;
}
.panel-right .corner.tl { top: 0; left: 0; }
.panel-right .corner.tr { top: 0; right: 0; text-align: right; }
.panel-right .corner.bl { bottom: 0; left: 0; }
.panel-right .corner.br { bottom: 0; right: 0; text-align: right; }
.panel-right .corner .v { color: var(--amber); }
.panel-right .center-glyph {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--amber) 40%, transparent);
  display: grid; place-items: center;
  pointer-events: none;
}
.panel-right .center-glyph::after {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--copper) 50%, transparent);
  animation: rotate 60s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .panel-right .center-glyph::after { animation: none; } }
@keyframes rotate { to { transform: rotate(360deg); } }

/* Section base */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section .sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; max-width: 720px; }
section .sec-head .eyebrow { color: var(--copper); }

/* Product instrument */
.products .tab-strip {
  display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 40px;
}
.products .tab {
  appearance: none; background: transparent; border: none;
  padding: 18px 22px; color: var(--ink-dim);
  font-family: var(--grotesk); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.products .tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.products .tab:hover { color: var(--ink); }

.product-panels { position: relative; }
.product-panel { display: none; }
.product-panel[aria-hidden="false"] { display: block; }

.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; } }
.product-art {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  aspect-ratio: 4/5;
  border-radius: var(--rad);
  position: relative; overflow: hidden;
}
.product-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-art .mark {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--serif); font-style: italic; font-size: 20px;
  color: var(--amber);
}
.product-art .meta {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-mute);
  letter-spacing: .12em; text-transform: uppercase;
}
.product-detail h3 { margin-top: 0; }
.ledger { border-top: 1px solid var(--line); margin-top: 24px; }
.ledger dl { display: grid; grid-template-columns: 1fr 2fr; margin: 0; }
.ledger dt, .ledger dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ledger dt { color: var(--ink-mute); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; padding-right: 16px; }
.ledger dd { color: var(--ink); font-size: 15px; }
.ledger dd ul { margin: 0; padding-left: 18px; }
.ledger dd li { margin-bottom: 6px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px;
}
.price-row .price { font-family: var(--serif); font-size: 40px; color: var(--ink); }
.price-row .price small { font-family: var(--grotesk); font-size: 13px; color: var(--ink-mute); letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; }

/* Ritual proof */
.proof-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 980px) { .proof-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof-cards { grid-template-columns: 1fr; } }
.proof-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  padding: 22px; border-radius: var(--rad);
  display: flex; flex-direction: column; gap: 12px; min-height: 220px;
  transition: transform .25s ease, border-color .25s;
}
.proof-card:hover { border-color: var(--copper); transform: translateY(-2px); }
.proof-card .day { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--amber); }
.proof-card .ritual { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.proof-card .verb { color: var(--ink-dim); font-size: 14px; }
.proof-card .pulse { margin-top: auto; font-family: ui-monospace, "SF Mono", monospace; font-size: 11px; color: var(--ink-mute); letter-spacing: .12em; }

/* Private desk */
.desk {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--rad);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
}
@media (max-width: 860px) { .desk { grid-template-columns: 1fr; } }
.desk h3 { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); }
.desk .review-line {
  font-family: var(--grotesk); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--copper); margin-top: 18px;
}
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field textarea, .field select {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; border-radius: var(--rad);
  font-family: var(--grotesk); font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; }
.field textarea { min-height: 100px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-dim); font-size: 13px; }
.consent input { margin-top: 4px; }

/* Footer */
footer { padding: 56px 0 32px; background: #08070A; color: var(--ink-mute); border-top: 1px solid var(--line); }
footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { footer .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer .foot-grid { grid-template-columns: 1fr; } }
footer h4 { color: var(--ink); font-family: var(--grotesk); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; font-size: 14px; }
footer ul a { color: var(--ink-dim); border-bottom: none; }
footer ul a:hover { color: var(--amber); }
footer .legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .04em; }
footer .legal .name { font-family: var(--serif); font-style: italic; color: var(--ink); }

/* Generic content pages */
.content { padding: 80px 0 96px; max-width: 760px; }
.content h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 12px; }
.content .lede { color: var(--ink-dim); font-size: 18px; margin-bottom: 32px; }
.content h2 { font-size: 26px; margin-top: 40px; margin-bottom: 14px; }
.content p, .content li { color: var(--ink-dim); font-size: 16px; line-height: 1.7; }
.content ul { padding-left: 22px; }

/* Checkout flow */
.checkout-wrap { padding: 48px 0 96px; }
.checkout-progress {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap;
}
.checkout-progress .step {
  display: flex; align-items: center; gap: 8px;
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.checkout-progress .step .n {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 11px;
}
.checkout-progress .step.is-active { color: var(--ink); }
.checkout-progress .step.is-active .n { border-color: var(--amber); color: var(--amber); }
.checkout-progress .step.is-done .n { border-color: var(--copper); color: var(--copper); }
.checkout-progress .sep { color: var(--line); }

.checkout-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } }
.checkout-main { display: grid; gap: 24px; }
.opt-list { display: grid; gap: 12px; }
.opt-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--rad);
  padding: 18px; cursor: pointer; background: var(--bg-2);
  transition: border-color .2s, background .2s;
}
.opt-card:hover { border-color: var(--copper); }
.opt-card input { appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); }
.opt-card input:checked { border-color: var(--amber); box-shadow: inset 0 0 0 4px var(--amber); }
.opt-card > span:not(.opt-price) { min-width: 0; }
.opt-card .opt-title { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.opt-card .opt-desc { display: block; color: var(--ink-dim); font-size: 13px; margin-top: 4px; }
.opt-card .opt-price { font-family: var(--serif); font-size: 22px; color: var(--amber); }
.opt-card:has(input:checked) { border-color: var(--amber); background: color-mix(in oklab, var(--copper) 8%, var(--bg-2)); }

@media (max-width: 600px) {
  .opt-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .opt-card .opt-price {
    grid-column: 2;
    font-size: 20px;
  }
}

.summary {
  position: sticky; top: 88px;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  border-radius: var(--rad); padding: 24px;
}
.summary h3 { font-family: var(--grotesk); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 18px; }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-dim); border-bottom: 1px dashed var(--line); }
.summary .row.total { color: var(--ink); font-size: 18px; padding-top: 18px; border-bottom: none; border-top: 1px solid var(--line); margin-top: 10px; }
.summary .row.total b { font-family: var(--serif); font-size: 22px; color: var(--amber); font-weight: 400; }
.summary .small { font-size: 12px; color: var(--ink-mute); margin-top: 14px; line-height: 1.6; }

.notice {
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 18px 20px; border-radius: var(--rad);
  color: var(--ink-dim); font-size: 14px; line-height: 1.6;
}
.notice strong { color: var(--ink); }

.confirmation {
  text-align: center; padding: 96px 0;
}
.confirmation .mark {
  width: 88px; height: 88px; margin: 0 auto 28px;
  border-radius: 50%; border: 1px solid var(--amber);
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--copper) 16%, transparent);
}
.confirmation .mark svg { width: 36px; height: 36px; color: var(--amber); }
.confirmation h1 { font-size: clamp(36px, 5vw, 64px); }
.confirmation .ref { font-family: ui-monospace, "SF Mono", monospace; color: var(--ink-mute); margin: 14px 0 24px; }

/* Utilities */
.divider { height: 1px; background: var(--line); margin: 24px 0; }
.muted { color: var(--ink-mute); }
.center { text-align: center; }
.flex { display: flex; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
