:root {
  --ink: #171313;
  --smoke: #100f0f;
  --smoke-2: #1a1718;
  --bone: #f3ece4;
  --bone-2: #e8ddd2;
  --wine: #68011e;
  --wine-dark: #3e0013;
  --rose: #cf7481;
  --sage: #d8bc54;
  --gold: #efc522;
  --plum: #5f4167;
  --line: rgba(101, 57, 60, 0.22);
  --max: 1520px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bone); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: 0.75rem 1rem; background: var(--gold); color: #111; font-weight: 900; text-decoration: none; }
.skip:focus { top: 1rem; }

.site-nav { position: relative; z-index: 20; min-height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 0 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); background: var(--smoke); color: var(--bone); }
.cv-logo { display: inline-flex; align-items: baseline; gap: 0.5rem; white-space: nowrap; text-decoration: none; }
.cv-logo span { font: italic 700 1.65rem/1 Georgia, serif; letter-spacing: -0.05em; }
.cv-logo strong { color: var(--rose); font-size: 1.42rem; letter-spacing: -0.04em; }
.desktop-nav { justify-self: center; display: flex; align-items: center; gap: 2rem; }
.desktop-nav a { color: #ddd2c7; text-decoration: none; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--gold); }
.status-pill { padding: 0.5rem 0.75rem; border: 1px solid rgba(207,116,129,0.55); border-radius: 999px; color: var(--rose); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.site-menu { display: none; }

.eyebrow { margin: 0 0 1rem; color: var(--rose); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { margin: 0; line-height: 0.95; letter-spacing: -0.055em; text-transform: uppercase; }
h1 { font-size: clamp(3.5rem, 7.5vw, 8.8rem); }
h2 { font-size: clamp(2.8rem, 5.8vw, 7rem); }
h1 em, h2 em { color: var(--sage); font-family: Georgia, serif; font-weight: 500; text-transform: none; }
.lede { max-width: 44rem; margin: 2rem 0 0; color: #d5ccc4; font-size: clamp(1.05rem, 1.35vw, 1.35rem); }

.hero { overflow: hidden; position: relative; min-height: calc(100vh - 78px); padding: clamp(4rem, 8vw, 8rem) max(2rem, calc((100vw - var(--max)) / 2)); background: radial-gradient(circle at 80% 30%, rgba(104,1,30,0.34), transparent 35%), linear-gradient(145deg, #0f0e0e 0%, #181315 62%, #2e0714 100%); color: var(--bone); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.2; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent 70%); }
.hero-copy { position: relative; z-index: 2; width: min(58rem, 64vw); }
.hero-copy h1 { max-width: 12ch; }
.hero-actions, .coming-actions, .support-contact > div:last-child { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.25rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0.9rem 1.3rem; border: 1px solid rgba(255,255,255,0.24); color: inherit; text-decoration: none; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.button.primary { border-color: var(--gold); background: var(--gold); color: #1b1510; }
.button.secondary { background: rgba(255,255,255,0.02); }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.7rem 1.8rem; margin: 2rem 0 0; padding: 0; list-style: none; color: #b8aba6; font-size: 0.82rem; }
.hero-facts li::before { content: "•"; margin-right: 0.6rem; color: var(--rose); }
.hero-product { position: relative; z-index: 3; width: min(1180px, 82vw); margin: clamp(3rem, 7vw, 7rem) 0 0 auto; }
.hero-product .preview-dock { border-top: 0; }
.hero-product .preview-dock header { grid-template-columns: minmax(240px, 0.8fr) 1fr; }

.vocal-preview { overflow: hidden; border: 1px solid rgba(239,197,34,0.3); background: #0d0c0c; color: var(--bone); box-shadow: 0 35px 80px rgba(0,0,0,0.42); }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: linear-gradient(180deg, #5b031b, #2f0611); }
.preview-toolbar > div { display: flex; align-items: baseline; gap: 0.8rem; }
.preview-toolbar > div span { color: #d7b7ba; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.preview-toolbar > div strong { font-size: 1.05rem; text-transform: uppercase; }
.preview-toolbar nav { display: flex; gap: 0.35rem; }
.preview-toolbar button { min-height: 40px; padding: 0.55rem 0.8rem; border: 1px solid rgba(255,255,255,0.18); background: #171415; color: #bcb2ad; cursor: pointer; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }
.preview-toolbar button.is-active { border-color: var(--gold); background: var(--gold); color: #18100c; }
.preview-stage { position: relative; aspect-ratio: 1622 / 970; background: #111; }
.preview-stage picture, .preview-stage picture img { width: 100%; height: 100%; }
.preview-stage picture img { object-fit: contain; }
.screen-canvas { position: absolute; z-index: 3; pointer-events: none; }
.tune-canvas { left: 13.4%; top: 24.2%; width: 65.7%; height: 36.5%; border-radius: 0.2rem; }
.dynamics-canvas { inset: 0; }
.tone-canvas { left: 51.3%; top: 34.4%; width: 34.4%; height: 17.4%; }
.space-canvas { left: 13.4%; top: 31%; width: 72.6%; height: 26.5%; }
.reduction-bank { position: absolute; display: flex; gap: 0.26%; width: 19.6%; height: 2.25%; }
.reduction-bank.fet { left: 41.3%; top: 36.5%; }
.reduction-bank.opto { left: 70.2%; top: 36.5%; }
.reduction-bank i { flex: 1; border: 1px solid rgba(0,0,0,0.6); border-radius: 2px; background: #1d1918; }
.reduction-bank.fet i.is-lit { background: #d97970; }
.reduction-bank.opto i.is-lit { background: #e4bd4b; }
.preview-meters { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.preview-meters > div { position: absolute; display: flex; flex-direction: column-reverse; gap: 1.3%; width: 1.5%; height: 36.6%; }
.preview-meters [data-preview-meter="input-left"] { left: 4.05%; top: 30.1%; }
.preview-meters [data-preview-meter="input-right"] { left: 5.86%; top: 30.1%; }
.preview-meters [data-preview-meter="output-left"] { left: 92.45%; top: 30.1%; }
.preview-meters [data-preview-meter="output-right"] { left: 94.28%; top: 30.1%; }
.preview-meters i { flex: 1; min-height: 1px; border: 1px solid rgba(0,0,0,0.74); background: rgba(12,11,11,0.93); }
.preview-meters i.is-green { background: #27892f; }
.preview-meters i.is-gold { background: #f3bd23; }
.preview-meters i.is-red { background: #9f202c; }
.preview-dock { padding: 1.25rem; border-top: 1px solid rgba(255,255,255,0.09); background: #171415; }
.preview-dock header { display: grid; grid-template-columns: minmax(270px, 0.7fr) 1fr; gap: 2rem; align-items: end; padding-bottom: 1.2rem; }
.preview-dock header b { color: var(--rose); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }
.preview-dock h3 { margin: 0.35rem 0 0; font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1; text-transform: uppercase; }
.preview-dock header p { margin: 0; color: #bfb5b0; font-size: 0.88rem; }
.control-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.control-grid label, .control-grid fieldset { min-width: 0; margin: 0; padding: 0.7rem 0.8rem; border: 1px solid rgba(255,255,255,0.12); background: #211d1e; color: #ddd3ce; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.control-grid output { float: right; color: var(--gold); }
.control-grid input[type="range"] { width: 100%; margin: 0.75rem 0 0; accent-color: var(--rose); cursor: pointer; }
.control-grid fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
.control-grid legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.control-grid button, .scene-row button { min-height: 36px; border: 1px solid rgba(255,255,255,0.14); background: #100e0f; color: #bbb1ad; cursor: pointer; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }
.control-grid button.is-active, .scene-row button.is-active { border-color: var(--gold); background: var(--gold); color: #18100c; }
.scene-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-bottom: 0.7rem; }
.simulation-note { margin: 0; padding: 0.8rem 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); background: #0f0e0e; color: #948a86; font-size: 0.72rem; text-align: center; }

.problem-section, .workflow-section, .architecture-section, .coming-section, .support-main { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 10vw, 10rem) 2rem; }
.problem-section > header, .workflow-section > header { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.problem-section > header .eyebrow, .workflow-section > header .eyebrow { grid-column: 1 / -1; margin-bottom: -2rem; }
.problem-section > header > p:last-child, .workflow-section > header > p:last-child { max-width: 38rem; margin: 0; color: #6e5f5d; font-size: 1.1rem; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem-grid article { min-height: 270px; padding: 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-grid b { color: var(--rose); font-size: 0.72rem; letter-spacing: 0.12em; }
.problem-grid h3 { margin: 3rem 0 1rem; font-size: 1.25rem; line-height: 1.05; text-transform: uppercase; }
.problem-grid p { margin: 0; color: #6a5d5a; font-size: 0.9rem; }

.workflow-section { max-width: none; background: var(--wine-dark); color: var(--bone); }
.workflow-section > header, .workflow-list { max-width: var(--max); margin-left: auto; margin-right: auto; }
.workflow-section > header > p:last-child { color: #c9b5b8; }
.workflow-list { border-top: 1px solid rgba(255,255,255,0.16); }
.workflow-list article { display: grid; grid-template-columns: 70px minmax(260px, 0.85fr) 1fr; gap: 2rem; align-items: center; min-height: 180px; border-bottom: 1px solid rgba(255,255,255,0.16); }
.workflow-list article > span { color: var(--rose); font-size: 0.74rem; font-weight: 900; }
.workflow-list article div p { margin: 0 0 0.5rem; color: var(--gold); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; }
.workflow-list h3 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.7rem); line-height: 1; text-transform: uppercase; }
.workflow-list article > p { max-width: 40rem; color: #c7babe; }

.difference-section { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(3rem, 8vw, 9rem); padding: clamp(5rem, 10vw, 10rem) max(2rem, calc((100vw - var(--max)) / 2)); background: var(--smoke); color: var(--bone); }
.difference-section h2 { font-size: clamp(3rem, 5vw, 6.4rem); }
.difference-copy > p { margin-top: 0; color: #d4cbc6; font-size: 1.2rem; }
.difference-copy ul { margin: 3rem 0 0; padding: 0; list-style: none; }
.difference-copy li { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.12); color: #bcb0ac; font-size: 0.9rem; font-weight: 800; text-transform: uppercase; }
.difference-copy li::before { content: "✓"; margin-right: 0.8rem; color: var(--gold); }

.architecture-section { max-width: none; background: #ded0c2; }
.architecture-section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.architecture-section h2 { max-width: 14ch; }
.signal-path { display: flex; align-items: center; gap: 0.55rem; overflow-x: auto; margin-top: 4rem; padding: 1.4rem; border: 1px solid rgba(70,32,37,0.2); background: rgba(255,255,255,0.38); scrollbar-width: thin; }
.signal-path span, .signal-path strong { flex: none; padding: 0.65rem 0.7rem; white-space: nowrap; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-path strong { border: 1px solid rgba(81,7,31,0.25); background: #f3eae0; }
.signal-path i { flex: 0 0 18px; height: 1px; background: var(--wine); }

.coming-section { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.coming-section h2 { font-size: clamp(2.8rem, 5vw, 6rem); }
.coming-section p:last-child { max-width: 50rem; color: #6b5c59; }
.coming-actions { justify-content: flex-end; }
.coming-section .button.secondary, .support-contact .button.secondary { border-color: rgba(70,32,37,0.3); }

.product-footer { display: flex; justify-content: space-between; gap: 2rem; align-items: end; padding: 3.2rem max(2rem, calc((100vw - var(--max)) / 2)); background: var(--wine-dark); color: var(--bone); }
.footer-logo span { font-size: 1.45rem; }
.product-footer p { margin: 0.75rem 0 0; color: #c5afb4; }
.product-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: flex-end; }
.product-footer nav a { color: #d3c5c6; font-size: 0.78rem; font-weight: 800; text-decoration: none; }

.tour-page { background: var(--smoke); color: var(--bone); }
.tour-intro { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) 2rem 4rem; }
.tour-intro h1 { max-width: 12ch; font-size: clamp(3.5rem, 7vw, 8rem); }
.tour-intro > p:last-child { max-width: 48rem; margin: 2rem 0 0; color: #c9bdb8; font-size: 1.08rem; }
.tour-shell { max-width: 1600px; margin: 0 auto; padding: 0 2rem 5rem; }
.tour-notes { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 2rem clamp(5rem, 10vw, 10rem); }
.tour-notes article { padding: 1.5rem; border: 1px solid rgba(255,255,255,0.12); border-left: 0; }
.tour-notes article:first-child { border-left: 1px solid rgba(255,255,255,0.12); }
.tour-notes b { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tour-notes p { color: #b9adaa; font-size: 0.88rem; }

.support-main > section:first-child { padding: 2rem 0 4rem; }
.support-main h1 { max-width: 12ch; font-size: clamp(3.5rem, 7vw, 8rem); }
.support-main .lede { color: #6d5d5b; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.status-grid article { padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.status-grid b { color: var(--wine); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.status-grid h2 { margin-top: 2.5rem; font-size: 1.7rem; line-height: 1.05; }
.status-grid p { color: #6c5d5a; }
.support-contact { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; margin-top: 5rem; padding: 3rem; background: var(--wine-dark); color: var(--bone); }
.support-contact h2 { font-size: 3rem; }
.support-contact p { color: #c9b7ba; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 1rem; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .tour-notes { grid-template-columns: repeat(2, 1fr); }
  .tour-notes article:nth-child(3) { border-left: 1px solid rgba(255,255,255,0.12); }
  .hero-copy { width: min(58rem, 82vw); }
  .hero-product { width: 94vw; margin-right: -1rem; }
  .preview-toolbar button span { display: none; }
  .workflow-list article { grid-template-columns: 50px 1fr; gap: 1rem; padding: 2rem 0; }
  .workflow-list article > p { grid-column: 2; margin: 0; }
  .difference-section, .problem-section > header, .workflow-section > header { grid-template-columns: 1fr; }
  .problem-section > header .eyebrow, .workflow-section > header .eyebrow { margin-bottom: -1rem; }
  .coming-section, .support-contact { grid-template-columns: 1fr; }
  .coming-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .site-nav { grid-template-columns: auto 1fr auto; min-height: 66px; padding: 0 1rem; gap: 0.8rem; }
  .desktop-nav { display: none; }
  .site-menu { display: block; justify-self: end; }
  .site-menu summary { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.4rem 0.6rem; cursor: pointer; list-style: none; color: #ded4cf; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
  .site-menu summary::-webkit-details-marker { display: none; }
  .site-menu summary i, .site-menu summary i::before, .site-menu summary i::after { display: block; width: 18px; height: 2px; background: currentColor; }
  .site-menu summary i { position: relative; }
  .site-menu summary i::before, .site-menu summary i::after { content: ""; position: absolute; left: 0; }
  .site-menu summary i::before { top: -6px; }
  .site-menu summary i::after { top: 6px; }
  .site-menu nav { position: absolute; left: 0; right: 0; top: 66px; display: grid; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); background: #171415; box-shadow: 0 20px 40px rgba(0,0,0,0.45); }
  .site-menu nav a { min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.08); color: #e0d7d2; font-size: 0.8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
  .status-pill { font-size: 0.55rem; }
  .cv-logo span { font-size: 1.3rem; }
  .cv-logo strong { font-size: 1.12rem; }
  .hero { min-height: 0; padding: 4rem 1rem; }
  .hero-copy { width: 100%; }
  .hero-product { width: calc(100vw - 1rem); margin: 3rem -1rem 0 0; }
  .hero-actions .button { width: 100%; }
  .hero-facts { display: grid; }
  .preview-toolbar { align-items: flex-start; }
  .preview-toolbar > div { display: grid; gap: 0; }
  .preview-toolbar nav { gap: 0.2rem; }
  .preview-toolbar button { min-width: 38px; padding: 0.4rem; }
  .preview-stage { aspect-ratio: 1622 / 970; }
  .preview-dock { padding: 1rem; }
  .preview-dock header, .hero-product .preview-dock header { grid-template-columns: 1fr; gap: 0.8rem; }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-row { grid-template-columns: repeat(2, 1fr); }
  .problem-section, .workflow-section, .architecture-section, .coming-section, .support-main { padding-left: 1rem; padding-right: 1rem; }
  .problem-section > header, .workflow-section > header { gap: 2rem; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article { min-height: 220px; }
  .workflow-list article { grid-template-columns: 40px 1fr; }
  .difference-section { padding-left: 1rem; padding-right: 1rem; }
  .signal-path { margin-left: 0; margin-right: 0; }
  .product-footer { display: grid; padding: 2.5rem 1rem; }
  .product-footer nav { justify-content: flex-start; display: grid; }
  .tour-intro { padding-left: 1rem; padding-right: 1rem; }
  .tour-shell { padding: 0 0 4rem; }
  .tour-notes { grid-template-columns: 1fr; padding-left: 1rem; padding-right: 1rem; }
  .tour-notes article { border-left: 1px solid rgba(255,255,255,0.12); }
  .status-grid { grid-template-columns: 1fr; }
  .support-contact { padding: 2rem 1rem; }
}

@media (max-width: 440px) {
  .status-pill { display: none; }
  .site-nav { grid-template-columns: auto 1fr; }
  .control-grid { grid-template-columns: 1fr; }
  .preview-toolbar > div span { display: none; }
  .preview-toolbar > div strong { font-size: 0.8rem; }
  .preview-toolbar button { min-width: 36px; }
  .simulation-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .button:hover, .button:focus-visible { transform: none; }
}
