/* Aenue landing page. A headline on a plane of light, the app drawn from the app, a profile
 * designed from a description, one roast told from charge to drop, and the mark as LEDs.
 * The brand's spectrum is WebGL light (shaders.js). app.css has the window. */

@font-face { font-family: "Atipla ND"; src: url(fonts/atipla-nd-book.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Atipla ND"; src: url(fonts/atipla-nd-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atipla ND"; src: url(fonts/atipla-nd-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atipla ND"; src: url(fonts/atipla-nd-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "InterVariable"; src: url(fonts/inter-variable.woff2) format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }

:root {
  --bg: #080706; --bg-2: #0d0c0b; --bg-3: #131211;
  --line: rgba(236, 232, 225, 0.09); --line-2: rgba(236, 232, 225, 0.16);
  --t1: #ece8e1; --t2: rgba(236, 232, 225, 0.66); --t3: rgba(236, 232, 225, 0.42); --t4: rgba(236, 232, 225, 0.26);
  --magenta: #ff4fd8; --red: #ff2d3f; --orange: #ff7a1a; --blue: #4d94ff; --cyan: #00e5ff; --violet: #b06cff; --green: #00ff9c;
  --display: "Atipla ND", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "InterVariable", "Inter", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(96px, 11vw, 160px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--t1);
  font: 400 16px/1.55 var(--body);
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--body); }
h4, h5, h6 { font-family: var(--display); }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
::selection { background: rgba(255, 80, 60, 0.35); }

/* the brand's grain, over everything */
.grain { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

h1 { font: 500 clamp(44px, 7.2vw, 104px)/0.96 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
h2 { font: 500 clamp(32px, 4.2vw, 56px)/1.02 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
h3 { font: 500 21px/1.3 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.muted { color: var(--t3); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--t2); }
p { color: var(--t2); text-wrap: pretty; }
.fine { font: 400 11.5px/1.7 var(--body); color: var(--t3); }
.w { display: inline-block; white-space: pre; }

/* a word lit by the spectrum */
.lit { background: linear-gradient(92deg, #ff4fd8 0%, #ff5a3c 28%, #ff9a3c 46%, #4d94ff 70%, #00e5ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* lit words (hero and headlines), painted by the lit shader; the gradient stays until it is live */
.lit:has(> canvas) { position: relative; display: inline-block; white-space: nowrap; }
h2 .lit:has(> canvas) { white-space: normal; }
.lit > canvas { position: absolute; left: -0.3em; top: -0.3em; width: calc(100% + 0.6em); height: calc(100% + 0.6em); pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.lit > canvas.is-live { opacity: 1; }
.lit:has(> canvas.is-live) { background: none; }

.e-magenta { --e: var(--magenta); } .e-orange { --e: var(--orange); } .e-blue { --e: var(--blue); } .e-cyan { --e: var(--cyan); } .e-violet { --e: var(--violet); } .e-green { --e: var(--green); }

/* ───────── Buttons and links ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 18px 0 20px; border-radius: 10px;
  background: var(--t1); color: #0a0908; font: 500 15.5px/1 var(--body); white-space: nowrap;
  transition: background 0.2s, transform 0.25s var(--ease), box-shadow 0.3s;
}
.btn::after { content: "›"; font-size: 20px; line-height: 1; margin-left: 5px; transform: translateY(-1px); transition: transform 0.2s; }
.btn:not(.btn--ghost, .btn--soon):hover { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 10px 40px -10px rgba(255, 255, 255, 0.35); }
.btn:hover::after { transform: translate(2px, -1px); }
.btn:not(.btn--soon):active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--t1); outline-offset: 3px; }
.btn > svg { width: 13px; height: 16px; margin-right: 6px; fill: currentColor; }
.btn--ghost { background: var(--lg-ghost-tint, rgba(40,120,235,.16)); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background-color: var(--lg-ghost-hover, rgba(40,120,235,.24)); }
.btn--sm { height: 36px; padding: 0 12px 0 14px; border-radius: 9px; font-size: 14px; }
.btn--sm::after { font-size: 17px; }
.btn--soon { border: 0; cursor: default; background: var(--lg-soon-tint, rgba(0,56,131,.4)); color: var(--t1); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--soon::after { display: none; }
.link { color: var(--t1); font-weight: 500; border-bottom: 1px solid var(--line-2); }
.link::after { content: " ›"; }

/* ───────── Header: it scrolls away with the page ───────── */
.top { position: absolute; inset: 0 0 auto; z-index: 5; height: 76px; display: flex; align-items: center; padding: 0 var(--gutter); }
.top__inner { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 36px; }
.wordmark { display: inline-block; width: 100px; height: 16px; background: var(--t1); -webkit-mask: url(assets/aenue-wordmark.svg) no-repeat center / contain; mask: url(assets/aenue-wordmark.svg) no-repeat center / contain; }
.top__links { display: flex; gap: 28px; font-size: 14.5px; color: var(--t2); }
.top__links a { transition: color 0.2s; }
.top__links a:hover { color: var(--t1); }
.top .btn { margin-left: auto; }
@media (max-width: 900px) { .top__links { display: none; } }

/* ───────── Shader canvases ───────── */
.shader { position: absolute; pointer-events: none; z-index: 0; }
.shader canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.shader canvas.is-live { opacity: 1; }

/* ───────── Hero: a plane of light ───────── */
.guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; max-width: var(--max); margin: 0 auto; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); }
.guides i { border-left: 1px solid rgba(236,232,225,.07); }
.guides i:last-child { border-right: 1px solid rgba(236,232,225,.07); }
@media (max-width: 700px) { .guides { grid-template-columns: repeat(2, 1fr); } }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 172px var(--gutter) 100px; }
.shader--hero { inset: -60px 0 auto 0; height: min(1180px, 150vh); }
.hero__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.hero__copy h1 { max-width: 16ch; }
.hero__lead { margin-top: 30px; max-width: 560px; }
.hero__cta { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: 36px; }
.hero__fine { margin-top: 18px; }

/* The window, with the brand's light running around its edge (the halo shader) */
.mock { position: relative; z-index: 1; width: min(1520px, calc(100vw - 2 * var(--gutter))); left: 50%; translate: -50% 0; margin: 64px 0 0; perspective: 2000px; }
.mock__halo { position: absolute; left: -96px; top: -96px; width: calc(100% + 192px); height: calc(100% + 192px); z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.mock__halo.is-live { opacity: 1; }

/* ───────── Telemetry strip ───────── */
.tick { position: relative; z-index: 1; margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; display: flex; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tick__row { display: flex; flex: none; width: max-content; gap: 56px; padding: 14px 28px; font: 400 12px/1 var(--body); color: var(--t3); animation: tick 48s linear infinite; }
.tick__row span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.tick__row span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--c, var(--t3)); box-shadow: 0 0 8px var(--c, transparent); }
.tick__row i { font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; }
.tick__row b { font-weight: 500; color: var(--t1); font-variant-numeric: tabular-nums; }
@keyframes tick { to { transform: translateX(-100%); } }
.tick:hover .tick__row { animation-play-state: paused; }

/* ───────── Sections ───────── */
.sec { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: var(--sec) var(--gutter) 0; }
.sec__head { max-width: 1120px; display: grid; gap: 18px; }
.sec__head h2 > .sub { display: block; text-wrap: balance; }
.sec__head .lead { max-width: 640px; }

/* ───────── Your controls, in the context of the app ───────── */
.beam { --control-focus: 0; --learning-focus: 0; position: relative; isolation: isolate; overflow: clip; margin-top: clamp(88px, 10vw, 136px); padding: 56px var(--gutter) 40px; }
.shader--beam {
  position: absolute; inset: -48px calc(50% - 50vw); z-index: -1; opacity: .8;
  mask-image: linear-gradient(transparent, #000 14%, #000 58%, rgba(0,0,0,.45) 76%, transparent 96%);
}
.beam__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; gap: 32px; }
.beam__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; }
.beam h2 { font-size: clamp(36px, 4.2vw, 56px); letter-spacing: -.03em; max-width: 19ch; }
.beam__intro > p { max-width: 44ch; justify-self: end; font-size: 16px; line-height: 1.6; padding-bottom: 3px; }
.beam__track { position: relative; min-width: 0; height: calc(var(--control-visual-height, 740px) + 130svh); }
.beam__visual { position: sticky; isolation: isolate; top: var(--control-sticky-top, 24px); min-width: 0; margin: 0; }
.beam__scene { --control-scale: 1; --ui-fit: 1; position: relative; isolation: isolate; width: var(--control-scene-width, 100%); margin-inline: auto; aspect-ratio: 1240 / 700; border-radius: 20px; perspective: 1600px; }
.beam__window { position: absolute; inset: 0; border-radius: inherit; }
.beam__scene .win--control { --plot-height: 536px; width: 1240px; height: 700px; transform: scale(var(--control-scale)); background-color: rgba(5,6,8,.62); clip-path: inset(0 round 26px); }
.beam__scene .win--control .win__sidebar { display: none; }
.win--control .win__sbtn { left: 94px; }
.win--control .win__title { left: 148px; }
.win--control .win__chart { left: 12px; width: 914px; height: 632px; transform-origin: center left; transition: transform .8s var(--ease), opacity .8s var(--ease); }
.win--control .chart-footer { right: 144px; bottom: 12px; gap: 10px; }
.win--control .status { height: 46px; flex-basis: 370px; }
.win--control .status b { font-size: 13px; font-weight: 500; }
.win--control .status > div > span { font-size: 11px; }
.win--control .mk { height: 30px; font-size: 12px; }
.win--control .insp { left: auto; right: 12px; width: 286px; height: auto; overflow: visible; }
.win--control .insp > :not(.igroup--stats) { display: none; }
.win--control .igrid > div:nth-child(n+7) { display: none; }
.win--control .igroup--stats { transition: opacity .7s var(--ease); }
.win--control .ai-pointer, .win--control .tip, .win--control .readout { display: none; }
.beam__inspector { position: absolute; z-index: 3; right: 1%; top: 34%; width: max(286px, 23.1%); transform-origin: right top; transform: translate(calc(-28px * var(--control-focus)), calc(-18px * var(--control-focus))) scale(calc(var(--ui-fit) * (1 + .08 * var(--control-focus) - .04 * var(--learning-focus)))); }
.native-controls { width: 100%; display: flex; flex-direction: column; --group: rgba(31,32,38,.68); }
.beam .native-controls { --inspector-material: rgba(18,20,25,calc(.82 * var(--control-focus))); position: relative; isolation: isolate; border-radius: 16px; padding: 0 8px 8px; background: transparent; box-shadow: 0 18px 48px rgba(0,0,0,calc(.32 * var(--control-focus))), 0 0 0 .5px rgba(255,255,255,calc(.18 * var(--control-focus))); }
.beam .native-controls::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; clip-path: inset(0 round 16px); background: var(--inspector-material); backdrop-filter: blur(28px) saturate(1.25); -webkit-backdrop-filter: blur(28px) saturate(1.25); }
.beam .native-controls h6 { font-family: var(--body); font-weight: 500; color: var(--w2); }
.beam .native-controls > .igroup { border-radius: 12px; }
.native-controls .controls-footer { height: 34px; min-height: 34px; margin-top: 6px; font-size: 11px; }
.native-controls .ctl__track i, .native-controls .ctl__track em { transition: none; }
.native-controls .ctl__track em { transform: scale(calc(1 + .08 * var(--control-activity, 0))); box-shadow: 0 0 0 calc(5px * var(--control-activity, 0)) color-mix(in srgb, var(--c) 24%, transparent), 0 1px 3px rgba(0,0,0,.4); }
.native-controls .ctl__name { color: var(--w1); font-weight: 400; }
.native-controls .ctl[data-selected="true"] .ctl__name { color: var(--c); font-weight: 500; }
.native-controls .ctl[data-selected="true"] .ctl__track i { background: var(--c); }
.native-controls .ctl__track input { position: absolute; left: -11px; top: -20px; width: calc(100% + 22px); height: 44px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; opacity: 0; cursor: pointer; }
.native-controls input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 21px; height: 22px; }
.native-controls input::-moz-range-thumb { width: 22px; height: 22px; border: 0; }
.native-controls .ctl:focus-within .ctl__track em { box-shadow: 0 0 0 3px rgba(10,132,255,.3), 0 1px 3px rgba(0,0,0,.5); }
.native-controls .claude-heading { margin-top: 8px; }
.native-controls .claude-heading > span { font-size: 11px; }
.beam__conversation { transform-origin: right top; transform: translate(calc(-24px * var(--learning-focus)), calc(8px * var(--learning-focus))) scale(calc(1 + .08 * var(--learning-focus))); }
.beam .beam__learning { opacity: 1; margin: 0; padding-block: 10px; }
.beam__learning .sup__head { align-items: baseline; gap: 8px; }
.beam__learning .sup__head b { font-variant-numeric: tabular-nums; }
.beam .beam__learning p { min-height: 4.5em; margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--w2); }
.beam__response { display: grid; }
.beam__response-measure, .beam__response-copy, .beam__thinking { grid-area: 1 / 1; }
.beam__response-measure { visibility: hidden; }
.beam__thinking { display: none; align-items: start; gap: 8px; color: var(--w2); }
.beam__thinking > i { flex: none; width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; border: 1.5px solid rgba(176,108,255,.22); border-top-color: var(--violet); animation: claude-thinking .8s linear infinite; }
.beam__typing-cursor { display: none; width: 1.5px; height: 1em; vertical-align: -2px; margin-left: 2px; background: var(--violet); animation: claude-caret .9s steps(1) infinite; }
.beam[data-reply-state="thinking"] .beam__thinking { display: flex; }
.beam[data-reply-state="thinking"] .beam__response-copy { visibility: hidden; }
.beam[data-reply-state="typing"] .beam__typing-cursor { display: inline-block; }
.beam[data-reply-state="thinking"] .claude-heading i, .beam[data-reply-state="typing"] .claude-heading i { background: var(--violet); animation: claude-status 1.25s ease-in-out infinite; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes claude-thinking { to { transform: rotate(360deg); } }
@keyframes claude-caret { 50% { opacity: 0; } }
@keyframes claude-status { 50% { opacity: .4; } }
.beam .native-controls .ask { height: 34px; font-size: 11px; }
.beam .native-controls .ask__send { width: 22px; height: 22px; }
.beam .win--control .win__chart { transform: translateX(calc(-6px * var(--control-focus))) scale(calc(1 - .015 * var(--control-focus))); opacity: calc(1 - .12 * var(--control-focus)); transition: none; }
.beam .win--control .igroup--stats { opacity: calc(1 - .38 * var(--control-focus)); transition: none; }
.beam__conversation .igroup { background-color: rgba(37,39,48,calc(.62 + .2 * var(--learning-focus))); box-shadow: 0 12px 30px rgba(0,0,0,calc(.25 * var(--learning-focus))), 0 0 0 .5px rgba(255,255,255,calc(.2 * var(--learning-focus))); }
.beam.is-direct .beam__inspector, .beam.is-direct .beam__conversation { transition: transform .6s var(--ease); }
.beam__chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.beam__chapters button { position: relative; display: grid; gap: 5px; padding: 14px 0 0; text-align: left; border: 0; background: none; color: var(--t2); font: 400 15px/1.4 var(--body); cursor: pointer; }
.beam__chapters button::before, .beam__chapters button::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: rgba(255,255,255,.12); }
.beam__chapters button::after { background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.beam__chapters button[aria-pressed="true"] { color: var(--t1); }
.beam__chapters button[aria-pressed="true"]::after { transform: scaleX(1); }
.beam__chapters button:last-child::after { background: var(--violet); }
.beam__chapters button:hover { color: var(--t1); }
.beam__chapters button:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 2px; }
.beam__chapters small { font: 400 12px/1.4 var(--body); color: var(--t3); }
.beam__visual figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; color: var(--t3); }
.beam__visual figcaption > :first-child { color: var(--t2); }
.beam.is-learning .beam__learning { animation: context-note .4s var(--ease); }
@keyframes context-note { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .beam__intro { gap: 32px; }
  .beam__window { overflow: hidden; }
}
@media (max-width: 600px) {
  .beam { padding-block: 32px; }
  .shader--beam { opacity: .7; }
  .beam__inner { gap: 24px; }
  .beam__intro { grid-template-columns: 1fr; gap: 16px; }
  .beam__intro > p { justify-self: start; max-width: 40ch; }
  .beam__scene { width: 100%; min-height: 0; aspect-ratio: auto; display: grid; gap: 0; }
  .beam__window { position: relative; height: clamp(120px, 24svh, 230px); border-radius: 16px 16px 0 0; }
  .beam__scene .win--control { transform: translate(-22px, 0) scale(.48); width: 1240px; height: 700px; }
  .win--control .insp, .win--control .win__tools, .win--control .lights, .win--control .win__sbtn { display: none; }
  .win--control .win__title { left: 64px; top: 16px; }
  .win--control .win__title b { font-size: 20px; }
  .win--control .win__title span { font-size: 16px; }
  .win--control .win__chart { top: 72px; }
  .beam__window::after { content: ""; position: absolute; inset: 70% 0 0; background: linear-gradient(transparent, rgba(10,12,16,.8)); pointer-events: none; }
  .beam__inspector { position: relative; top: auto; right: auto; width: 100%; margin-top: -8px; }
  .beam[data-focus] .beam__inspector { transform: translateY(calc(-4px * var(--control-focus))); }
  .beam[data-focus] .beam__conversation { transform: translateY(calc(-4px * var(--learning-focus))); }
  .beam .native-controls { --inspector-material: rgba(13,15,20,.78); padding: 4px 8px 12px; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.12); border-radius: 0 0 16px 16px; }
  .beam .native-controls::before { clip-path: inset(0 round 0 0 16px 16px); }
  .beam[data-focus] .native-controls > .igroup, .beam[data-focus] .beam__conversation { margin-inline: 0; }
  .native-controls .ctl { height: 48px; }
  .native-controls .ctl__track input { top: -22px; height: 48px; }
  .native-controls .controls-footer { height: 38px; min-height: 38px; font-size: 12px; }
  .beam .beam__learning p { font-size: 14px; min-height: 4.5em; }
  .beam .native-controls .ask { height: 40px; font-size: 13px; }
  .beam__chapters { gap: 12px; margin-top: 20px; }
  .beam__chapters button { font-size: 13px; min-height: 48px; }
  .beam__chapters small { display: none; }
  .beam__visual figcaption { flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.4; margin-top: 12px; padding-top: 10px; }
}
@media (max-width: 600px) and (max-height: 740px) {
  .beam .native-controls .ask { display: none; }
  .beam .beam__learning p { min-height: 4.5em; }
  .native-controls .controls-footer { height: 34px; min-height: 34px; }
  .beam__chapters { margin-top: 16px; }
  .beam__visual figcaption { margin-top: 10px; }
}
.beam__track[data-sticky="false"] { height: auto; }
.beam__track[data-sticky="false"] .beam__visual { position: relative; top: auto; }
.no-js .beam__track { height: auto; }
.no-js .beam__visual { position: relative; top: auto; }
@media (pointer: coarse) { .native-controls .ctl { height: 48px; } .native-controls .ctl__track input { top: -22px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .beam *, .beam *::after { transition: none !important; animation: none !important; } }

/* ───────── One roast, start to finish ───────── */
.story__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 56px); align-items: start; margin-top: 64px; }
.story__steps { display: grid; position: relative; z-index: 2; grid-column: 1; grid-row: 1; }
.step { min-height: 74vh; display: grid; align-content: center; gap: 16px; scroll-margin-top: 13svh; }
.js .step { opacity: var(--step-opacity, 1); }
.step__time { display: inline-flex; align-items: center; gap: 12px; font: 400 14px/1 var(--body); color: var(--e, var(--t3)); }
.step__time b { font: 500 13px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--t1); padding: 6px 9px; border-radius: 7px; background: rgba(236,232,225,.07); font-variant-numeric: tabular-nums; }
.step h3 { font: 500 clamp(26px, 2.6vw, 36px)/1.08 var(--display); letter-spacing: -0.025em; }
.step p { max-width: 42ch; }
.stage {
  --copy-mask: linear-gradient(90deg, transparent 0%, transparent 20%, rgba(0,0,0,.04) 26%, rgba(0,0,0,.15) 31%, rgba(0,0,0,.5) 38%, rgba(0,0,0,.84) 45%, #000 54%);
  --edge-mask: linear-gradient(0deg, transparent, rgba(0,0,0,.08) 3%, rgba(0,0,0,.4) 8%, rgba(0,0,0,.8) 14%, #000 21%, #000 82%, rgba(0,0,0,.8) 88%, rgba(0,0,0,.4) 94%, rgba(0,0,0,.08) 98%, transparent);
  --right-mask: linear-gradient(270deg, transparent, rgba(0,0,0,.08) 5px, rgba(0,0,0,.4) 12px, rgba(0,0,0,.8) 24px, #000 40px);
  position: sticky; top: max(24px, calc(50svh - var(--stage-h, 600px) / 2));
  grid-column: 1 / -1; grid-row: 1; align-self: start; z-index: 0;
  height: min(86svh, 820px); max-height: calc(100svh - 48px); overflow: hidden; isolation: isolate;
}
.stage__scene { position: absolute; inset: 0; background: transparent; -webkit-mask-image: var(--copy-mask), var(--edge-mask), var(--right-mask); -webkit-mask-composite: source-in; mask-image: var(--copy-mask), var(--edge-mask), var(--right-mask); mask-composite: intersect; }
.roast-is-focused .grain { opacity: 0; }
.stage .win { position: absolute; left: 0; top: 0; transform-origin: 0 0; border-radius: 0; box-shadow: none; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.stage .readout, .stage .tip, .stage .ai-pointer { display: none; }
.stage .ctl__track i, .stage .ctl__track em { transition-duration: .28s; }
.stage .sugg { transition: height .28s var(--ease), opacity .2s; }
.stage:empty { display: none; }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; gap: 0; }
  .story__steps { grid-column: 1; grid-row: 2; }
  .stage {
    --copy-mask: linear-gradient(90deg, transparent, rgba(0,0,0,.2) 6px, rgba(0,0,0,.65) 18px, #000 40px);
    grid-column: 1; grid-row: 1; top: 0; height: min(52svh, 480px); max-height: none; z-index: 3; background: var(--bg);
  }
  .step { min-height: 64svh; padding-block: 24px; scroll-margin-top: calc(18svh + min(26svh, 240px)); }
  .step p { max-width: 52ch; }
}
@media (prefers-reduced-motion: reduce) { .stage .sugg, .stage .ctl__track i, .stage .ctl__track em { transition: none; } }

/* ───────── The native profile workflow ───────── */
.design-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.design-head h2 { max-width: 18ch; }
.design-head__copy { display: grid; gap: 14px; }
.design-head .lead { max-width: 42ch; }
.design-bento { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.design-card { --card-padding: clamp(18px, 2.1vw, 28px); min-width: 0; padding: var(--card-padding); background: #111214; border-radius: 20px; outline: 1px solid rgba(255,255,255,.08); outline-offset: -1px; container-type: inline-size; }
.design-card--coffee { grid-row: 1 / 3; }
.design-card--coffee .design-card__ui { position: sticky; top: 24px; }
.design-card--run { grid-column: 2; }
.design-card--phases { grid-column: 2; grid-row: 2; }
.design-card--ask { grid-column: 1 / -1; grid-row: 3; }
.design-card__heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.design-card__heading > div { min-width: 0; }
.design-card h3 { font: 500 clamp(21px, 1.9vw, 26px)/1.12 var(--display); letter-spacing: -.025em; text-wrap: balance; }
.design-card__description { color: var(--t2); font: 400 15px/1.5 var(--body); margin-top: 10px; text-wrap: pretty; }
.design-card__ui { margin-top: 24px; min-width: 0; font-family: var(--body); color: #f4f4f7; --green: #00ff9c; --cyan: #00e5ff; --plan: #9298a8; }
.demo-replay { flex: none; position: relative; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255,255,255,.055); color: var(--t3); cursor: pointer; }
.demo-replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.demo-replay:hover { color: var(--t1); background: rgba(255,255,255,.1); }
.profile-design button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.profile-design button:disabled { cursor: default; opacity: .4; }
.profile-sheet { display: grid; gap: 20px; border-radius: 12px; background: #20212c; padding: 20px 16px 16px; outline: 1px solid rgba(255,255,255,.05); outline-offset: -1px; }
.profile-sheet__title { padding-inline: 5px; }
.profile-sheet__title p { color: rgba(255,255,255,.48); font: 400 12px/1.4 var(--body); }
.profile-sheet__title h4 { margin: 2px 0 0; font: 600 18px/1.3 var(--display); letter-spacing: -.02em; }
.profile-sheet fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.profile-sheet legend { padding: 0 10px 9px; font: 600 13px/1.3 var(--body); color: rgba(255,255,255,.85); }
.profile-fields { background: rgba(255,255,255,.035); border-radius: 10px; padding: 0 10px; }
.profile-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; border-top: 1px solid rgba(255,255,255,.06); font: 400 13px/1.35 var(--body); position: relative; }
.profile-field:first-child { border-top: 0; }
.profile-field > span:first-child { flex: none; color: rgba(255,255,255,.8); }
.profile-field input:not([type="checkbox"]), .profile-field select { font: inherit; color: #f0f0f6; min-width: 0; width: 100%; max-width: 60%; border: 0; padding: 6px 0; background: transparent; text-align: right; border-radius: 3px; }
.profile-field input::placeholder { color: rgba(255,255,255,.37); }
.profile-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.profile-field input::-webkit-inner-spin-button, .profile-field input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.profile-field input:focus-visible, .profile-field select:focus-visible { outline: 1px solid var(--blue); outline-offset: 0; }
.profile-field .profile-select { display: grid; grid-template-columns: minmax(0, 1fr) 20px; min-width: 0; flex: 1; align-items: center; }
.profile-select select { color: #0a84ff; appearance: none; grid-column: 1 / -1; grid-row: 1; padding-right: 22px; max-width: none; text-align-last: right; }
.profile-select svg { grid-column: 2; grid-row: 1; justify-self: end; width: 16px; height: 16px; fill: none; stroke: #0a84ff; stroke-width: 1.7; pointer-events: none; }
.profile-unit { display: flex; align-items: center; justify-content: end; gap: 5px; min-width: 0; color: rgba(255,255,255,.45); }
.profile-field .profile-unit input { max-width: 90px; font-variant-numeric: tabular-nums; }
.profile-field--toggle { gap: 16px; }
.profile-field--toggle > span:first-child { flex: 1; font-size: 12px; }
.profile-field input[type="checkbox"] { appearance: none; width: 32px; height: 20px; border-radius: 12px; position: relative; background: rgba(255,255,255,.16); margin: 0; cursor: pointer; flex: none; }
.profile-field input[type="checkbox"]:checked { background: #0a84ff; }
.profile-field input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; height: 16px; width: 16px; background: #e8e9ef; border-radius: 50%; transition: transform .2s var(--ease); }
.profile-field input[type="checkbox"]:checked::after { transform: translateX(12px); }
.profile-sheet__note { font: 400 11.5px/1.45 var(--body); color: rgba(255,255,255,.46); padding: 0 6px; }
.profile-sheet__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-sheet__preview { font: 400 10px/1.4 var(--body); color: rgba(255,255,255,.38); }
.native-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 16px; background: #164c7f; color: #cbe6ff; min-height: 32px; padding: 6px 12px 6px 9px; font: 500 12.5px/1.3 var(--body); cursor: pointer; }
.native-button svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.native-button:hover { background: #1d5c96; }
.profile-chart { background: #0c0d0f; border-radius: 12px; padding: 16px 14px 0; overflow: hidden; }
.profile-chart__title { display: flex; align-items: start; gap: 12px; justify-content: space-between; padding: 0 4px; }
.profile-chart__title > div { min-width: 0; }
.profile-chart__title b { font: 500 12px/1.4 var(--display); display: block; }
.profile-chart__title > div > span { font: 400 10.5px/1.4 var(--body); color: rgba(255,255,255,.38); display: block; margin-top: 3px; }
/* The dry run's state, as the app's toolbar line shows it: clean, running, or waiting for an update. */
.dry-badge { display: inline-flex; align-items: center; gap: 5px; flex: none; color: var(--green); font: 500 11.5px/1.3 var(--body); white-space: nowrap; }
.dry-badge svg { width: 14px; height: 14px; }
.dry-badge__spin { display: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.7); animation: spin .7s linear infinite; }
.dry-badge[data-state="running"] { color: rgba(255,255,255,.55); font-weight: 400; }
.dry-badge[data-state="running"] svg { display: none; }
.dry-badge[data-state="running"] .dry-badge__spin { display: block; }
.dry-badge[data-state="stale"] { color: #64a8ff; font-weight: 400; }
.dry-badge[data-state="stale"] svg { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.profile-legend { display: flex; align-items: center; gap: 12px; margin: 12px 4px 0; font: 400 11px/1.3 var(--body); color: rgba(255,255,255,.62); }
.profile-legend span { display: inline-flex; align-items: center; gap: 5px; }
.profile-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.profile-legend em { margin-left: auto; font-style: normal; color: rgba(255,255,255,.36); font-size: 10.5px; }
.profile-plot { width: 100%; margin-top: 6px; overflow: visible; }
.profile-plot text { font: 400 13px/1 var(--body); }
.profile-plot .plot-phase { font: 600 14px/1 var(--body); }
.profile-plot .plot-plan { fill: none; stroke: #9298a8; stroke-width: 2; stroke-dasharray: 7 5; }
.profile-plot .plot-run { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; }
.profile-plot .plot-ror { fill: none; stroke: var(--cyan); stroke-width: 2; }
.profile-plot .plot-ror-plan { fill: none; stroke: #00e5ff; opacity: .3; stroke-width: 1.8; stroke-dasharray: 7 5; }
.profile-plot .plot-grid { stroke: rgba(255,255,255,.055); stroke-dasharray: 2 4; }
.profile-plot .plot-st { fill: none; stroke-width: 2; stroke-linejoin: round; }
.profile-plot .plot-st-lbl { font: 700 11.5px/1 var(--body); }
.profile-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 13px 4px 15px; gap: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.profile-stats .is-ror { color: var(--cyan); }
@container (max-width: 560px) { .profile-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; } }
.profile-stats dt { font: 400 10px/1.4 var(--body); color: rgba(255,255,255,.38); }
.profile-stats dd { font: 400 13px/1.4 var(--body); margin-top: 2px; white-space: nowrap; }
.phase-editor { font: 400 13px/1.4 var(--body); }
.phase-editor__label { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 500; padding: 0 12px 8px; }
.phase-preview { color: var(--violet); visibility: hidden; }
.is-playing .phase-preview { visibility: visible; }
.phase-list { background: #1a1b20; border-radius: 12px; padding: 0 12px; }
.phase-row { --phase-color: var(--blue); padding: 16px 0; border-top: 1px solid rgba(255,255,255,.07); display: grid; gap: 6px; }
.phase-row:first-child { border-top: 0; }
.phase-row--maillard { --phase-color: var(--violet); }
.phase-row--development { --phase-color: var(--magenta); }
.phase-row__title, .phase-row__detail { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phase-row__title b { font-weight: 500; }
.phase-row__title b::before { content: ""; display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: var(--phase-color); margin-right: 7px; }
.phase-row output { font-family: var(--body); font-variant-numeric: tabular-nums; }
.phase-row__detail { align-items: end; font-size: 12px; color: rgba(255,255,255,.48); }
.phase-row__meta { display: grid; gap: 1px; min-width: 0; line-height: 1.4; }
/* Segmented steppers, in the app's manner: a recessed track, a raised segment under the pointer,
   and a short divider that steps aside for it. */
.phase-nudges, .drop-nudges { display: inline-flex; flex: none; padding: 2px; border-radius: 9px; background: rgba(0,0,0,.28); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1), inset 0 1px 2px rgba(0,0,0,.35); }
.phase-nudges button, .drop-nudges button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 26px; padding: 0 10px 0 8px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.74); font: 500 12px/1 var(--body); letter-spacing: .005em; cursor: pointer; transition: background .2s var(--ease), color .2s, box-shadow .2s, transform .12s; }
.drop-nudges button { width: 30px; padding: 0; }
.phase-nudges button + button::before, .drop-nudges button + button::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 1px; background: rgba(255,255,255,.12); transition: opacity .2s; }
.phase-nudges svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; opacity: .7; transition: opacity .2s; }
.drop-nudges svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.phase-nudges button:hover:not(:disabled), .drop-nudges button:hover:not(:disabled) { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 .5px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4); }
.phase-nudges button:hover:not(:disabled) svg { opacity: 1; }
.phase-nudges button:hover::before, .phase-nudges button:hover + button::before, .drop-nudges button:hover::before, .drop-nudges button:hover + button::before { opacity: 0; }
.phase-nudges button:active:not(:disabled), .drop-nudges button:active:not(:disabled) { transform: scale(.96); background: rgba(255,255,255,.17); }
.phase-nudges button:focus-visible, .drop-nudges button:focus-visible { outline: 2px solid rgba(77,148,255,.85); outline-offset: 1px; }
.phase-nudges button:disabled, .drop-nudges button:disabled { cursor: default; color: rgba(255,255,255,.34); }
/* Grouped rows and footnotes in the app's inspector manner. */
.native-footnote { padding: 8px 12px 0; color: rgba(255,255,255,.46); font: 400 11.5px/1.45 var(--body); }
.native-footnote + .phase-editor__label { margin-top: 18px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid rgba(255,255,255,.07); }
.settings-row:first-child { border-top: 0; }
.settings-row > div { display: flex; align-items: center; gap: 10px; }
.settings-row output { font-family: var(--body); font-variant-numeric: tabular-nums; }
.settings-row > output, .settings-row__value { color: rgba(255,255,255,.62); }

/* Ask the designer: the request field, its reply, a few samples, and the dry run's notes. */
.ask-box { padding: 6px 6px 6px 12px; }
.ask-field { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.ask-field input { flex: 1; min-width: 0; border: 0; padding: 6px 0; background: transparent; color: #f0f0f6; font: 400 13px/1.35 var(--body); border-radius: 3px; }
.ask-field input::placeholder { color: rgba(255,255,255,.4); }
.ask-field input:focus-visible { outline: none; }
.ask-box:focus-within { box-shadow: inset 0 0 0 1px rgba(77,148,255,.55); }
.ask-field button { position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 26px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #c9a6ff; cursor: pointer; }
.ask-field button svg { width: 15px; height: 15px; fill: currentColor; }
.ask-field button:hover { background: rgba(176,108,255,.22); color: #e6d4ff; }
.ask-box__working, .ask-box__reply { display: none; margin: 4px 6px 6px 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.07); font: 400 12.5px/1.5 var(--body); }
.ask-box__working { align-items: center; gap: 8px; color: rgba(255,255,255,.55); }
.ask-box__working i { flex: none; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.18); border-top-color: rgba(255,255,255,.7); animation: spin .7s linear infinite; }
.ask-box__reply { color: rgba(255,255,255,.88); }
.ask-box { transition: box-shadow .35s var(--ease); }
.ask-field { position: relative; }
.ask-field__auto { position: absolute; left: 0; right: 40px; top: 50%; transform: translateY(-50%); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; color: #f0f0f6; font: 400 13px/1.35 var(--body); transition: opacity .35s var(--ease); }
.ask-box[data-auto="typing"] .ask-field__auto::after { content: ""; display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; vertical-align: -.22em; background: #c9a6ff; animation: claude-caret 1s steps(1) infinite; }
.ask-box[data-auto="typing"], .ask-box[data-auto="sent"] { box-shadow: inset 0 0 0 1px rgba(176,108,255,.38); }
.ask-box[data-auto="typing"] input::placeholder, .ask-box[data-auto="sent"] input::placeholder, .ask-box[data-auto][data-state="working"] input::placeholder { color: transparent; }
.ask-box[data-state="working"] .ask-field__auto { opacity: .4; }
.ask-box[data-state="done"] .ask-field__auto, .ask-box[data-state="unknown"] .ask-field__auto { opacity: 0; }
.ask-field button { transition: background .2s, color .2s, transform .15s var(--ease); }
.ask-box[data-auto="sent"] [data-ask-send] { background: rgba(176,108,255,.36); color: #f4eaff; transform: scale(.9); }
.ask-box__out { display: grid; }
.ask-box__out > * { grid-area: 1 / 1; }
/* While the card plays itself, the reply has a fixed place so the card never jumps. */
.ask-box[data-auto] .ask-box__out { min-height: calc(3 * 1.5em + 9px); margin: 4px 6px 6px 0; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.07); font: 400 12.5px/1.5 var(--body); }
.ask-box[data-auto] .ask-box__working, .ask-box[data-auto] .ask-box__reply { display: block; margin: 0; padding: 0; border: 0; opacity: 0; transition: opacity .4s var(--ease); }
.ask-box[data-auto] .ask-box__working { display: flex; align-self: start; }
.ask-box[data-auto][data-state="working"] .ask-box__working, .ask-box[data-auto][data-state="done"] .ask-box__reply { opacity: 1; }
.ask-box[data-state="working"] .ask-box__working { display: flex; }
.ask-box[data-state="done"] .ask-box__reply, .ask-box[data-state="unknown"] .ask-box__reply { display: block; animation: reply-in .5s var(--ease) both; }
.ask-box[data-state="unknown"] .ask-box__reply { color: rgba(255,255,255,.6); }
@keyframes reply-in { from { opacity: 0; transform: translateY(4px); } }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-inline: 2px; }
.ask-chips button { position: relative; border: 0; border-radius: 999px; padding: 5px 11px; background: rgba(255,255,255,.065); color: rgba(255,255,255,.78); font: 400 12px/1.3 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.ask-chips button:hover { background: rgba(176,108,255,.2); color: #fff; }
.ask-chips button[data-active] { background: rgba(176,108,255,.26); color: #f1e6ff; }
.dry-notes { list-style: none; margin: 0; }
.dry-notes li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; align-items: start; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.07); font: 400 12.5px/1.45 var(--body); color: rgba(255,255,255,.88); }
.dry-notes li:first-child { border-top: 0; }
.dry-notes li.is-note { color: rgba(255,255,255,.55); }
.dry-notes svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: rgba(255,255,255,.4); stroke-width: 1.3; stroke-linecap: round; }
.dry-notes .is-ok svg { stroke: var(--green); }
.dry-notes li.is-new { animation: reply-in .5s var(--ease) both; }
/* A wide ask card puts the dry run beside the request. */
@container (min-width: 640px) {
  .ask-designer { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .ask-designer > :nth-child(-n+4) { grid-column: 1; }
  .ask-designer > :nth-child(5) { grid-column: 2; grid-row: 1; margin-top: 0; }
  .ask-designer > :nth-child(6) { grid-column: 2; grid-row: 2 / span 3; }
}
.design-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.design-footer p { font: 400 12px/1.6 var(--body); color: var(--t3); max-width: 66ch; }
.designer__btns { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.designer__btns button { position: relative; font: 400 12px/1.4 var(--body); color: var(--t2); background: transparent; border: 0; padding: 6px 0; cursor: pointer; white-space: nowrap; }
.designer__btns button:hover { color: var(--t1); }
@keyframes field-preview { 0%, 70%, 100% { background: transparent; } 20%, 45% { background: rgba(77,148,255,.08); } }
@keyframes trace-preview { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.is-playing .profile-field { animation: field-preview 1.4s both; }
.is-playing .profile-field:nth-child(2) { animation-delay: .12s; }
.is-playing .profile-field:nth-child(3) { animation-delay: .24s; }
.is-playing .profile-field:nth-child(n+4) { animation-delay: .36s; }
.is-playing .plot-run, .is-playing .plot-ror, .is-playing .plot-st, .profile-plot.is-drawing .plot-run, .profile-plot.is-drawing .plot-ror, .profile-plot.is-drawing .plot-st { stroke-dasharray: 1; animation: trace-preview 1.25s var(--ease) both; }
.is-playing .phase-row--maillard [data-direction="slower"] { background: rgba(176,108,255,.22); color: #e4ccff; box-shadow: inset 0 .5px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.4); }
.is-playing .phase-row--maillard [data-direction="slower"]::before, .is-playing .phase-row--maillard [data-direction="faster"]::before { opacity: 0; }
@container (max-width: 350px) { .profile-sheet { padding-inline: 12px; } .profile-field { gap: 8px; font-size: 12px; } .profile-chart__title { flex-wrap: wrap; } .phase-row__detail { gap: 8px; } }
@media (max-width: 900px) {
  .design-head { align-items: start; flex-direction: column; gap: 22px; margin-bottom: 28px; }
  .design-head .lead { max-width: 46ch; }
  .design-bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .design-card--coffee, .design-card--run, .design-card--phases, .design-card--ask { grid-column: 1; grid-row: auto; }
  .design-card { --card-padding: 20px; }
  .design-card--coffee .design-card__ui { position: static; }
  .design-card h3 { font-size: 25px; }
  .design-card__description { font-size: 16px; }
  .design-footer p { font-size: 14px; }
  .profile-field { min-height: 45px; font-size: 16px; }
  .profile-field--toggle > span:first-child { font-size: 14px; }
  .profile-sheet legend { font-size: 15px; }
  .profile-sheet__note, .profile-sheet__preview { font-size: 12px; }
  .profile-sheet__actions { flex-wrap: wrap; }
  .native-button { font-size: 14px; min-height: 38px; }
  .phase-editor { font-size: 16px; }
  .phase-row { padding-block: 15px; }
  .phase-editor__label { font-size: 13px; }
  .phase-row__detail { font-size: 12px; align-items: end; }
  .phase-nudges button { min-height: 30px; font-size: 12px; }
  .design-footer { align-items: start; flex-direction: column; gap: 12px; }
  .designer__btns button { font-size: 14px; }
  .profile-stats dd { font-size: 13px; }
  .ask-field input, .ask-field__auto { font-size: 16px; }
  .ask-chips button { font-size: 13px; padding: 7px 13px; }
  .dry-notes li, .ask-box__reply, .ask-box__working, .native-footnote, .ask-box[data-auto] .ask-box__out { font-size: 13px; }
  .ask-box[data-auto] .ask-box__out { min-height: calc(4 * 1.5em + 9px); }
}
@media (pointer: coarse) {
  .drop-nudges button { width: 44px; height: 36px; }
  .phase-nudges button { height: 36px; min-width: 48px; }
  .ask-field button { width: 40px; height: 34px; }
  .demo-replay::after, .phase-nudges button::after, .drop-nudges button::after, .designer__btns button::after, .ask-chips button::after { content: ""; position: absolute; top: 50%; left: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .profile-design *, .profile-design *::after { animation: none !important; transition: none !important; }
}

/* Two columns */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__copy { display: grid; gap: 20px; align-content: start; }
.split__copy p { max-width: 46ch; }
.lines { list-style: none; margin: 4px 0 0; padding: 0; }
.lines li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--t2); }
.lines li:last-child { border-bottom: 1px solid var(--line); }
.lines b { color: var(--t1); font-weight: 500; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ───────── Download: the mark as LEDs ───────── */
.cta { max-width: calc(var(--max) + 2 * var(--gutter)); margin: var(--sec) auto 0; padding: 0 var(--gutter) clamp(90px, 12vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.cta__mark { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; }
.cta__mark canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.cta__mark canvas.is-live { opacity: 1; }
.cta__copy { display: grid; gap: 22px; justify-items: start; }
.cta__copy h2 { font-size: clamp(40px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.035em; max-width: 8ch; }
.cta__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; padding-top: 8px; }
.cta__cols h4 { margin: 0 0 12px; font: 500 15px/1 var(--display); color: var(--t1); }
.cta__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--t2); }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; } .cta__mark { max-width: 420px; } .cta__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cta__cols { grid-template-columns: 1fr; } }

/* ───────── Footer ───────── */
.foot { border-top: 1px solid var(--line); padding: 36px var(--gutter) 56px; }
.foot__inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot .wordmark { width: 76px; height: 12px; background: var(--t3); }
.foot p { font-size: 13px; color: var(--t3); max-width: 640px; }
.foot nav { display: flex; gap: 20px; font-size: 13px; color: var(--t2); }

/* ───────── Motion: initial states, only when JS will animate ───────── */
.js.motion [data-reveal], .js.motion [data-stagger] > *, .js.motion [data-split] .w, .js.motion .mock { opacity: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tick__row { animation: none; } }
