/* Hallmark · shape: custom, product page for a Mac app · genre: modern-minimal · theme: custom (by request, from the DAW Studio brand: ivory plate, ink knob, red pointer) · job: join
 * hero: Stage, the head on the left, the brand knob rendered in 3D on the right, then the real app window as a guided tour · nav: edge-aligned, the mark, three anchors, one action · footer: a single line with the mark · imagery: real captures of the current build on a synthetic demo session (arrangement, mixer, Light theme), all ten stock-effect editors, and the brand mark · signature: an example AI proposal you can audition, its EQ curve following a knob
 * axes: light/expanded-grotesk/red · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 · weakest: E, the 3D knob needs a still fallback; the brand SVG sits under the canvas until WebGL draws */
/* Hallmark · waive 47c · the hero canvas renders the product's own logo in 3D, not a drawn product UI · the knob is the DAW Studio mark */
/* Hallmark · answered F15 · the proposal pair sits tighter (24px) than text columns (64px) because the chart and the move are one object */

:root {
  --ivory: oklch(96.2% 0.011 85);
  --plate: oklch(86.5% 0.019 85);
  --paper-2: oklch(93.4% 0.014 85);
  --ink: oklch(21.5% 0.008 265);
  --ink-2: oklch(38% 0.01 265);
  --muted: oklch(50% 0.012 265);
  --rule: oklch(21.5% 0.008 265 / 0.14);
  --red: oklch(65.5% 0.215 34);
  --red-deep: oklch(57% 0.2 34);
  --red-ink: oklch(21.5% 0.008 265);
  --shadow: oklch(21.5% 0.008 265 / 0.18);
  --graphite: oklch(21.5% 0.008 265);
  --graphite-2: oklch(26% 0.009 265);
  --graphite-3: oklch(31% 0.01 265);
  --on-dark: oklch(94% 0.01 85);
  --on-dark-2: oklch(78% 0.012 85);
  --on-dark-rule: oklch(94% 0.01 85 / 0.16);
  --frame-edge: oklch(0% 0 0 / 0.5);
  --dim: oklch(10% 0.008 265 / 0.55);
  --focus: oklch(62% 0.2 34);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-sm: 0.875rem; --text-md: 1rem; --text-lead: clamp(1.125rem, 0.4vw + 1rem, 1.375rem); --text-title: clamp(1.25rem, 0.6vw + 1rem, 1.625rem);
  --text-section: clamp(2.25rem, 3vw + 1rem, 4rem); --text-display: clamp(3rem, 5.6vw + 0.5rem, 6.25rem);
  --radius: 14px; --radius-lg: 28px; --radius-pill: 999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --dur-short: 200ms; --dur-long: 480ms;
  --container: 1360px; --gutter: clamp(16px, 4vw, 56px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in oklab, var(--red) 30%, transparent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.04em; max-width: 9ch; }
h2 { font-size: var(--text-section); max-width: 16ch; }
h3 { font-size: var(--text-title); line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: 50; padding: var(--space-xs) var(--space-md); background: var(--ink); color: var(--ivory); }
.skip:focus-visible { top: var(--space-md); }

/* nav */
.nav { display: flex; align-items: center; gap: var(--space-lg); height: 76px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
.nav__links a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); padding-block: var(--space-xs); }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); border: 1px solid transparent; font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform 120ms var(--ease-out); }
.btn--red { background: var(--red); color: var(--red-ink); }
.btn--red:hover { background: var(--red-deep); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--line-light { border-color: var(--on-dark-rule); color: var(--on-dark); background: transparent; }
.btn--line-light:hover { border-color: var(--on-dark); }
.btn--small { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* hero: Stage */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; min-height: calc(100svh - 76px); max-height: 980px; padding-block: var(--space-xl) var(--space-2xl); }
.hero__text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero .lead { font-size: var(--text-lead); line-height: 1.45; color: var(--ink-2); max-width: 30ch; }
.hero__knob { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; justify-self: center; }
.hero__knob canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero__fallback { position: absolute; inset: 12%; width: 76%; height: auto; filter: drop-shadow(0 30px 40px var(--shadow)); transition: opacity var(--dur-long) var(--ease-out); }
.webgl .hero__fallback { opacity: 0; }

/* bands */
.band { padding-block: var(--space-4xl); }
.band--graphite { background: var(--graphite); color: var(--on-dark); }
.band--ink { background: var(--ink); color: var(--on-dark); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.head p { color: var(--ink-2); max-width: 44ch; }
.band--graphite .head p, .band--ink p { color: var(--on-dark-2); }

/* the proposal */
.proposal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-lg); align-items: stretch; }
.scope { margin: 0; background: var(--graphite-2); border: 1px solid var(--on-dark-rule); border-radius: var(--radius-lg); padding: var(--space-lg); display: grid; gap: var(--space-md); }
.scope__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); font-size: var(--text-sm); color: var(--on-dark-2); }
.ab { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--graphite); border: 1px solid var(--on-dark-rule); }
.ab__btn { min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-dark-2); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.ab__btn[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.ab__btn:hover { color: var(--on-dark); }
.ab__btn[aria-pressed="true"]:hover { color: var(--ink); }
.ab__btn:active { opacity: 0.85; }
.scope__plot { width: 100%; height: auto; display: block; }
.grid line { stroke: var(--on-dark-rule); stroke-width: 1; }
.grid text { fill: var(--on-dark-2); font: 400 11px var(--font-mono); }
.band-mark { fill: color-mix(in oklab, var(--red) 16%, transparent); }
.curve { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; }
.curve--flat { stroke: var(--on-dark-2); stroke-width: 1.5; stroke-dasharray: 4 5; }
.scope__foot { display: flex; align-items: center; gap: var(--space-lg); }
.amount { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--on-dark-2); white-space: nowrap; }
.amount output { font-family: var(--font-mono); color: var(--on-dark); }
.dial { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--ivory); box-shadow: inset 0 0 0 4px var(--plate); flex: none; }
.dial__pointer { position: absolute; left: 50%; top: 50%; width: 3px; height: 15px; margin-left: -1.5px; border-radius: 3px; background: var(--red); transform-origin: 50% 0; transform: rotate(var(--turn, 135deg)); }
input[type="range"] { flex: 1; min-width: 0; accent-color: var(--red); height: 44px; cursor: pointer; }

.op { display: grid; gap: var(--space-lg); align-content: start; background: var(--graphite-2); border: 1px solid var(--on-dark-rule); border-radius: var(--radius-lg); padding: var(--space-xl); }
.op__meta { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); color: var(--on-dark-2); }
.op__params { margin: 0; display: grid; gap: var(--space-xs); border-top: 1px solid var(--on-dark-rule); padding-top: var(--space-md); }
.op__params div { display: flex; justify-content: space-between; gap: var(--space-md); }
.op__params dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.op__params dd { margin: 0; font-family: var(--font-mono); font-size: var(--text-sm); }
.op__why { display: grid; gap: var(--space-xs); }
.op__label { font-size: var(--text-sm); color: var(--on-dark-2); }
.op__evidence { font-size: var(--text-sm); color: var(--on-dark-2); }
.op__evidence b { font-family: var(--font-mono); font-weight: 500; color: var(--on-dark); }
.op__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.op__state { font-size: var(--text-sm); color: var(--on-dark); min-height: 1.5em; }
.op__note { font-size: var(--text-sm); color: var(--on-dark-2); border-top: 1px solid var(--on-dark-rule); padding-top: var(--space-md); }

/* assistants */
.assist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.assist li { display: grid; gap: var(--space-md); align-content: start; padding: var(--space-xl) var(--space-xl) var(--space-xl) 0; }
.assist li + li { padding-left: var(--space-xl); border-left: 1px solid var(--rule); }
.assist__no { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--plate); }
.assist p { color: var(--ink-2); max-width: 36ch; }
.assist__state { font-size: var(--text-sm); color: var(--muted); }
.assist__state--now { color: var(--ink); font-weight: 500; }

/* the app tour: the real window, zoomed onto one part at a time */
.tour { padding-block: var(--space-3xl) var(--space-4xl); }
.tour__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.tour__head p { color: var(--ink-2); max-width: 40ch; }
.tour__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: start; }
.tour__stage { position: sticky; top: var(--space-xl); perspective: 1600px; }
.window { position: relative; overflow: hidden; border-radius: 16px; background: var(--graphite); box-shadow: 0 1px 0 1px var(--frame-edge), 0 40px 80px -30px var(--shadow), 0 18px 30px -18px var(--shadow); transform-origin: 50% 100%; }
.window__zoom { position: relative; transform-origin: 0 0; transition: transform 700ms var(--ease-out); }
.window img { width: 100%; transition: opacity var(--dur-long) var(--ease-out); }
.window img + img { position: absolute; inset: 0; }
.window img:not(.is-on) { opacity: 0; }
.spot { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 8px; box-shadow: 0 0 0 200vmax transparent; border: 2px solid transparent; transition: box-shadow var(--dur-long) var(--ease-out), border-color var(--dur-long) var(--ease-out); pointer-events: none; }
.spot.is-on { box-shadow: 0 0 0 200vmax var(--dim); border-color: var(--red); }
@supports (animation-timeline: view()) {
  .window { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @keyframes lift { from { transform: rotateX(16deg) translateY(40px) scale(0.94); } to { transform: none; } }
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.step { border-bottom: 1px solid var(--rule); }
.step__btn { display: flex; align-items: baseline; gap: var(--space-md); width: 100%; min-height: 56px; padding: var(--space-md) 0 var(--space-xs); border: 0; background: transparent; color: var(--ink); font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: var(--text-title); line-height: 1.2; text-align: left; white-space: nowrap; cursor: pointer; }
.step__no { font: 500 var(--text-sm)/1 var(--font-mono); color: var(--muted); transition: color var(--dur-short) var(--ease-out); }
.step__btn[aria-pressed="true"] .step__no { color: var(--red-deep); }
.step__btn:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.step__btn:active { opacity: 0.85; }
.step__body { color: var(--ink-2); padding: 0 0 var(--space-md) calc(2ch + var(--space-md) + 0.5ch); max-width: 48ch; }
.step:has([aria-pressed="false"]) .step__body { display: none; }

/* effects rack: every stock editor, one at a time */
.rack { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-2xl); align-items: start; }
.rack__list { display: grid; border-top: 1px solid var(--on-dark-rule); }
.rack__tab { min-height: 48px; padding: 0 var(--space-md); border: 0; border-bottom: 1px solid var(--on-dark-rule); background: transparent; color: var(--on-dark-2); font: 500 var(--text-md)/1 var(--font-body); text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.rack__tab::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--graphite-3); transition: background-color var(--dur-short) var(--ease-out); }
.rack__tab:hover { color: var(--on-dark); background: var(--graphite-2); }
.rack__tab[aria-selected="true"] { color: var(--on-dark); background: var(--graphite-2); }
.rack__tab[aria-selected="true"]::after { background: var(--red); box-shadow: 0 0 12px var(--red); }
.rack__tab:active { opacity: 0.85; }
.rack__view { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--on-dark-rule); background: var(--graphite-2); aspect-ratio: 4 / 3; }
.rack__view img { width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease-out); }
.rack__view img.is-swapping { opacity: 0; }

/* principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xl) var(--space-3xl); }
.principles li { display: grid; gap: var(--space-md); padding-top: var(--space-lg); border-top: 1px solid var(--rule); }
.principles h3 { font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem); max-width: 14ch; }
.principles p { color: var(--ink-2); max-width: 42ch; }

/* spec sheet */
.head--split { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-xl); }
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: var(--space-lg); padding-block: var(--space-md); border-bottom: 1px solid var(--rule); }
.spec dt { font-size: var(--text-sm); color: var(--muted); }
.spec dd { margin: 0; font-size: var(--text-lead); }

/* close */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: end; }
.close > div { display: grid; gap: var(--space-md); }
.close h2 { color: var(--on-dark); }
.form { display: grid; gap: var(--space-xs); }
.form label { font-size: var(--text-sm); color: var(--on-dark-2); }
.form__row { display: flex; gap: var(--space-xs); }
.input { flex: 1; min-width: 0; min-height: 50px; padding: 0 var(--space-md); border-radius: var(--radius-pill); border: 1px solid var(--on-dark-2); background: var(--graphite-2); color: var(--on-dark); font: inherit; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.input:disabled { opacity: 0.5; cursor: not-allowed; }
.form__msg { font-size: var(--text-sm); color: var(--on-dark-2); min-height: 1.5em; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-md); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--muted); }

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero, .head, .proposal, .close { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { min-height: 0; max-height: none; }
  .hero__knob { max-width: 420px; }
  .assist { grid-template-columns: minmax(0, 1fr); }
  .assist li, .assist li + li { padding: var(--space-xl) 0; border-left: 0; border-top: 1px solid var(--rule); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .tour__head, .tour__grid, .rack { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .tour__stage { top: var(--space-xs); z-index: 2; }
  .steps { border-top-width: 1px; }
  .rack__list { display: flex; overflow-x: auto; border-top: 0; gap: var(--space-xs); padding-bottom: var(--space-xs); scrollbar-width: none; }
  .rack__tab { flex: none; border: 1px solid var(--on-dark-rule); border-radius: var(--radius-pill); gap: var(--space-sm); }
  .spec div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 40rem) {
  .form__row { flex-direction: column; }
  .scope__foot { flex-direction: column; align-items: stretch; }
  .op { padding: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ab__btn, .hero__fallback, .window__zoom, .spot, .rack__view img, .window img { transition: none; }
  .window { animation: none; }
}
