/* Ink demo page. Palette tokens are rewritten live by ink.config.js (css block of each palette). */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  --bg: #f3efe6; --fg: #141414; --muted: #5c5850; --line: #d8d1c2; --accent: #b3261a; --panel: rgba(250, 247, 240, .8); --on-accent: #fff;
  --pad: clamp(16px, 4.5vw, 64px); --r: 20px;
  --display: "Space Grotesk", system-ui, sans-serif; --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--body); transition: background-color .5s, color .5s; overflow-x: hidden; }
a { color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--fg); color: var(--bg); padding: 12px 16px; border-radius: 10px; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; gap: 28px; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 24px/1 var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand-drop { width: 20px; height: 20px; color: var(--accent); }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 12px 0; }
.top nav a:hover { color: var(--fg); }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 15px; text-decoration: none; }

/* ---------- hero: the fluid fills it ---------- */
.hero { position: relative; overflow: hidden; }
.stage { position: relative; min-height: max(100svh, 720px); display: grid; padding: 104px var(--pad) 120px; isolation: isolate; }
.poster, .fluid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.poster { object-fit: cover; transition: opacity .6s; }
.fluid { opacity: 0; transition: opacity .6s; touch-action: none; }
.surface { position: absolute; inset: 0; z-index: -1; outline: none; }
.surface:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }
[data-ink].ink-live .fluid { opacity: 1; }
[data-ink].ink-live .poster { opacity: 0; }

.hero-copy { grid-column: 1 / -1; align-self: center; max-width: 1400px; pointer-events: none; }
.hero-copy .lede, .hero-copy .hero-cta, .hero-copy .kicker { pointer-events: auto; }
.kicker { margin: 0 0 16px; font: 600 13px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; max-width: 11ch; font: 700 clamp(60px, 11.6vw, 200px)/.9 var(--display); letter-spacing: -0.045em; color: var(--fg); touch-action: none; pointer-events: auto; transition: color .6s; }
[data-ink].ink-live h1 { color: transparent; }
[data-ink].ink-live h1::selection { color: var(--bg); background: var(--fg); }
.lede { margin: 28px 0 0; max-width: 38ch; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 16px var(--body); text-decoration: none; }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn:hover { transform: translateY(-1px); }

.hint { position: absolute; left: 50%; top: 88px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--panel); backdrop-filter: blur(8px); font-size: 13px; color: var(--muted); pointer-events: none; opacity: 0; transition: opacity .6s; white-space: nowrap; }
[data-ink].ink-live .hint { opacity: 1; animation: hint-out 1s 7s forwards; }
@keyframes hint-out { to { opacity: 0; } }
.hint-coarse { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-coarse { display: inline; } }

.read { position: absolute; left: var(--pad); bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.read > div { min-width: 104px; padding: 8px 12px; border-radius: 12px; background: var(--panel); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line); }
.read span { display: block; font-size: 12px; color: var(--muted); }
.read b { font: 600 19px/1.25 var(--display); font-variant-numeric: tabular-nums; }
.read b span { display: inline; font: inherit; color: inherit; }
.fallback { position: absolute; left: var(--pad); right: var(--pad); top: 84px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--panel); }

/* ---------- studio ---------- */
.studio { position: absolute; right: var(--pad); bottom: 24px; width: 348px; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--panel); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .12); scroll-margin-top: 24px; }
.studio h2 { margin: 0 0 8px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.swatches button { appearance: none; border: 0; cursor: pointer; min-height: 60px; padding: 30px 2px 6px; border-radius: 12px; font: 600 12px/1.1 var(--body); color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.swatches button::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 18px; border-radius: 7px; background: radial-gradient(circle at 40% 55%, transparent 0 0), var(--s1); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.swatches button::after { content: ""; position: absolute; left: 50%; top: 11px; width: 22px; height: 10px; margin-left: -11px; border-radius: 50%; background: var(--s2); }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--fg); }
.acts, .toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.acts button, .toggles button { appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 14px var(--body); color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.acts button:hover, .toggles button:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.acts .act-main { background: var(--fg); color: var(--bg); }
.toggles button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ranges { display: grid; gap: 2px; }
.ranges label { display: block; font-size: 14px; }
.ranges label > span { display: flex; justify-content: space-between; }
.ranges output { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; height: 36px; margin: 0; accent-color: var(--accent); }

/* ---------- sections ---------- */
.how, .yours, .faq { padding: clamp(56px, 8vw, 112px) var(--pad); max-width: 1320px; margin: 0 auto; }
.how h2, .yours h2, .faq h2 { margin: 0 0 32px; font: 700 clamp(34px, 4.6vw, 60px)/1.02 var(--display); letter-spacing: -0.035em; max-width: 18ch; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.cols article { border-top: 1.5px solid var(--fg); padding-top: 16px; }
.num { font: 600 13px var(--display); color: var(--accent); letter-spacing: .1em; }
.cols h3 { margin: 8px 0 8px; font: 600 21px/1.2 var(--display); letter-spacing: -0.01em; }
.cols p, .yours li, .faq p { color: var(--muted); }
.cols p { margin: 0; }
.yours { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; border-top: 1px solid var(--line); }
.yours ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.yours li b { color: var(--fg); }
.faq { border-top: 1px solid var(--line); }
.faq details { max-width: 820px; border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 60px; display: flex; align-items: center; font: 600 19px/1.3 var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 24px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 20px; max-width: 64ch; }
.foot { padding: 24px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot p { margin: 0; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 1100px) { .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .hero { display: grid; gap: 16px; padding-bottom: 24px; }
  .stage { min-height: min(100svh, 900px); padding: 92px var(--pad) 32px; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; }
  .read, .studio { position: static; width: auto; margin: 0 var(--pad); }
  .yours { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { gap: 12px; padding-top: 12px; }
  .top nav { display: none; }
  .cta { margin-left: auto; padding: 0 16px; font-size: 14px; }
  h1 { font-size: clamp(52px, 17vw, 96px); }
  .read > div { min-width: 0; flex: 1 1 40%; padding: 6px 10px; }
  .read b { font-size: 17px; }
  .cols { grid-template-columns: 1fr; gap: 24px; }
  .hint { top: 72px; }
}
