@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090a09;
  --surface: #141512;
  --ink: #f4e7d2;
  --muted: #c2b9a8;
  --line: #3c3b34;
  --accent: #d1dfa9;
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
button:enabled { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1224px, calc(100% - clamp(2rem, 7vw, 5.25rem))); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; z-index: 5; padding: .6rem 1rem; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 4.25rem; }
.wordmark { font: 500 2rem/1 var(--serif); text-decoration: none; justify-self: start; }
.format { color: var(--muted); font-size: .875rem; }
nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.site-header nav { justify-self: end; }
nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .9rem; }
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: #0b0d0b; }
.hero-inner { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 2rem; min-height: clamp(24rem, 38vw, 32rem); padding-block: 3.5rem; }
.status { color: var(--accent); font-size: .875rem; font-weight: 600; }
.hero h1 { margin-top: .7rem; font: 400 clamp(3.4rem, 5.9vw, 5.8rem)/.89 var(--serif); letter-spacing: -.025em; }
.hero h1 em { font-weight: 400; }
.intro { max-width: 33ch; margin-top: 1.3rem; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.button { display: inline-flex; min-height: 44px; align-items: center; margin-top: 1.3rem; padding: .55rem 1rem; background: var(--accent); color: var(--bg); text-decoration: none; font-weight: 700; }
.button:hover { color: var(--bg); background: var(--ink); }
.hero-wave { width: 100%; border: 1px solid #e5d3a752; background: #10110e; padding: .5rem; }
.hero-wave img { width: 100%; height: auto; border: 1px solid var(--line); }
.hero-wave figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .65rem; font-size: .875rem; margin: .4rem .35rem 0; }
.hero-wave figcaption span { color: var(--muted); }

.pivot-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.12fr); align-items: center; gap: clamp(1.4rem, 4vw, 3.5rem); padding-block: clamp(2.25rem, 5vw, 4.25rem); border-bottom: 1px solid var(--line); }
.pivot-copy h2 { margin-block: .65rem; }
.pivot-copy > p:last-child { max-width: 33ch; color: var(--muted); font-size: 1.1rem; }
.pivot-recording video { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.pivot-recording figcaption { margin-top: .5rem; color: var(--muted); font-size: .875rem; }

.demo, .collection { padding-block: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font: 400 clamp(2.4rem, 4.5vw, 3.6rem)/1 var(--serif); letter-spacing: -.01em; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.15rem; margin-bottom: 1.4rem; }
.section-heading h2 + p { color: var(--muted); margin-top: .45rem; }
.effect-demo { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.effect-demo + .effect-demo { margin-top: clamp(2.5rem, 5vw, 4rem); }
.effect-demo h3 { font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.05 var(--serif); }
.switches { display: flex; flex-wrap: wrap; }
.switches button, .outline { min-height: 44px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: .875rem; padding: .5rem .9rem; }
.switches button + button { border-left: 0; }
button[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 700; }
button:enabled:hover:not([aria-pressed="true"]) { background: var(--surface); color: var(--ink); }
.demo-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; padding-block: .65rem; }
.demo-controls p { color: var(--muted); }
.demo-controls .switches { flex-shrink: 0; }
.outline { flex-shrink: 0; }

.comparison { --wipe: 50%; display: grid; grid-template-columns: minmax(0, 2.12fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
.image-stage, .scope-frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: #11120f; }
.image-stage { aspect-ratio: 16 / 9; }
.image-stage img, .scope-frame img { width: 100%; height: 100%; object-fit: fill; }
.image-stage img { position: absolute; inset: 0; }
.wipe-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--wipe)) 0 0); }
.image-label { position: absolute; top: .65rem; background: #090a09df; padding: .2rem .45rem; font-size: .875rem; }
.image-label.first { left: .65rem; }
.image-label.last { right: .65rem; }
.guide { position: absolute; inset: 0 auto 0 var(--wipe); width: 2px; transform: translateX(-50%); background: var(--ink); box-shadow: 0 0 0 1px #090a0977; pointer-events: none; }
.handle { position: absolute; display: grid; place-items: center; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.75rem; height: 2.75rem; border: 1px solid var(--bg); border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 1.25rem; font-weight: 700; }
.image-wipe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.image-stage:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.comparison-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: .7rem; }
.image-panel figcaption, .wave-panel p { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.wave-panel { min-width: 0; border: 1px solid var(--line); padding: .85rem; background: var(--surface); }
.wave-panel figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .45rem; margin-bottom: .7rem; font-size: .875rem; }
.wave-legend { display: inline-flex; align-items: center; gap: .28rem; color: var(--muted); }
.wave-legend i { display: inline-block; width: .75rem; height: 2px; background: #e7b98c; }
.wave-legend i:nth-of-type(2) { margin-left: .32rem; background: var(--accent); }
.scope { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); }
.scale { display: flex; flex-direction: column; justify-content: space-between; padding-right: .4rem; text-align: right; font-variant-numeric: tabular-nums; font-size: .75rem; line-height: .85; color: var(--muted); }
.scope-frame { aspect-ratio: 420 / 270; }
.is-diagnostic .image-label, .is-diagnostic .guide, .is-diagnostic .image-wipe,
.comparison[data-mode="before"] .last, .comparison[data-mode="after"] .first,
.comparison[data-mode="before"] .guide, .comparison[data-mode="after"] .guide { display: none; }
.preview-status { color: var(--muted); margin-top: .65rem; }

.collection { border-top: 1px solid var(--line); }
.product-list { border-top: 1px solid var(--line); }
.product-list article { display: grid; grid-template-columns: minmax(5.5rem, 9rem) minmax(0, 1fr); align-items: center; gap: clamp(.85rem, 3vw, 1.65rem); padding-block: 1rem; border-bottom: 1px solid var(--line); }
.product-list img { width: min(100%, 6rem); height: auto; }
.product-list h3 { font: 400 1.62rem/1.15 var(--serif); }
.product-list p { margin-top: .22rem; color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem 1.25rem; min-height: 4rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 800px) {
  .pivot-demo { grid-template-columns: minmax(0, 1fr); }
  .comparison { grid-template-columns: minmax(0, 1fr); }
  .scope-frame { aspect-ratio: 420 / 180; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 650px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-wave { justify-self: start; }
}
@media (max-width: 520px) {
  .header-inner { grid-template-columns: 1fr auto; gap: .45rem; }
  .format { display: none; }
  .site-header nav { gap: .85rem; }
  .hero-inner { min-height: 27rem; }
  .demo-controls { align-items: start; flex-direction: column; padding-block: .85rem; gap: .75rem; }
  .product-list article { grid-template-columns: 5rem minmax(0, 1fr); }
}
