/* ==========================================================================
   Denon PerL Pro — Product Design Case Study
   Tokens → primitives → sections → responsive → motion preferences

   Loaded AFTER css/case-study-shared.css, which sets `body { background:#fff;
   font-family:'Manrope' }`. The body rule below intentionally overrides that;
   the shared nav keeps its own styling because .case-nav-back sets font and
   colour at class specificity, which outranks the element rules here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #0B131A;
  --accent: #ED4D33;
  --paper: #F4F1EA;          /* warm · cool #EDF0F3 · mono #F1F1EF */
  --card: #FFFFFF;
  --muted: rgba(11, 19, 26, .62);
  --line: rgba(11, 19, 26, .12);

  --amber: #FFA806;
  --mist: #EAEDF1;
  --success: #4ADE80;

  --line-on-dark: rgba(255, 255, 255, .1);
  --rule-on-dark: rgba(255, 255, 255, .16);
  --footer-line-on-dark: rgba(255, 255, 255, .14);

  --font-display: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1200px;
  --gutter: 48px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: .72; }

::selection { background: #ED4D33; color: #fff; }

img { max-width: 100%; }

h1, h2, h3, p { margin: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  max-width: var(--shell);
  width: 100%;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Standard content column for a light section. */
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 110px var(--gutter) 40px;
}

/* Dark sections bleed full width; the column lives in .section-inner. */
.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 120px var(--gutter) 40px;
}

/* --------------------------------------------------------------------------
   4. Type & recurring elements
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.eyebrow--loose { margin-bottom: 30px; }

/* Eyebrow that carries a trailing pill. */
.eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow-row .eyebrow { margin-bottom: 0; }

.h2 {
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -.015em;
  max-width: 900px;
}
.h2--wide { max-width: 1000px; }

.h2--big {
  font-weight: 900;
  font-size: clamp(40px, 7vw, 104px);
  line-height: .94;
  letter-spacing: -.02em;
  max-width: none;
}

.h3 {
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.h3--lg { font-size: 24px; }

.lede {
  font-size: 19px;
  line-height: 1.6;
  opacity: .74;
  max-width: 660px;
  margin-top: 32px;
}
.lede--wide { max-width: 720px; margin-top: 34px; }
.lede--tight { margin-top: 20px; }
.lede--700 { max-width: 700px; }

.lede--on-dark {
  opacity: 1;
  color: rgba(255, 255, 255, .72);
  max-width: 700px;
  margin-top: 34px;
}

/* Hairline grid — the 2px gap, filled by the line colour, is the divider. */
.hairline {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.hairline--on-dark {
  background: var(--line-on-dark);
  border-color: var(--line-on-dark);
}
.hairline > * { background: var(--card); }
.hairline--paper > * { background: var(--paper); }
.hairline--on-dark > * { background: var(--ink); }

.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

.pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  opacity: .6;
  white-space: nowrap;
}
.pill--accent-outline {
  font-size: 11px;
  letter-spacing: .16em;
  padding: 6px 11px;
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
.pill--solid-ink,
.pill--solid-accent {
  font-size: 12px;
  letter-spacing: .16em;
  padding: 6px 12px;
  border: none;
  color: #fff;
  opacity: 1;
}
.pill--solid-ink { background: var(--ink); }
.pill--solid-accent { background: var(--accent); }

/* Small mono label, used for meta cells, palette names and status board. */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 9px;
}

/* --------------------------------------------------------------------------
   Portfolio chrome — tint the shared sticky nav to paper so it doesn't read as
   a stray white bar over the warm ground.
   -------------------------------------------------------------------------- */
.case-nav {
  background: rgba(244, 241, 234, .86);
  border-bottom-color: rgba(11, 19, 26, .1);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background:
    radial-gradient(58% 68% at 90% 16%, rgba(237, 77, 51, .60), transparent 62%),
    radial-gradient(46% 58% at 104% 44%, rgba(255, 49, 6, .34), transparent 56%),
    radial-gradient(38% 48% at 72% 6%, rgba(255, 168, 6, .42), transparent 60%),
    var(--paper);
}

.hero-bar {
  padding-block: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Colour is inherited so the same mark works on paper and on ink. */
.wordmark {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: .04em;
}
.wordmark--lg { font-size: 28px; }

.hero-bar__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .6;
}

.hero-h1 {
  font-weight: 900;
  font-size: clamp(52px, 9.2vw, 150px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-body {
  max-width: 620px;
  margin-top: 34px;
  font-size: 19.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: .74;
}

.hero-meta {
  padding-block: 40px 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
}

.hero-meta__value {
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
}
.hero-meta__value span {
  font-weight: 400;
  opacity: .6;
}

/* --------------------------------------------------------------------------
   6. Context (01)
   -------------------------------------------------------------------------- */
.section--context { padding-top: 130px; }

.context-grid { margin-top: 76px; }

.context-card { padding: 34px 30px 40px; }

.context-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.context-card p {
  font-size: 16.5px;
  line-height: 1.55;
  opacity: .82;
}

/* --------------------------------------------------------------------------
   7. Scope — six modalities (02)
   -------------------------------------------------------------------------- */
.scope-grid { margin-top: 70px; }

.scope-card {
  padding: 38px 32px 46px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.scope-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: auto;
}

.scope-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.scope-card p {
  font-size: 15.5px;
  line-height: 1.55;
  opacity: .68;
}

/* --------------------------------------------------------------------------
   8. Audit (03) — dark
   -------------------------------------------------------------------------- */
.section--audit { margin-top: 120px; }

.rule-row {
  margin-top: 70px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.rule-row__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.rule-row__line {
  flex: 1;
  height: 1px;
  background: var(--rule-on-dark);
}
.rule-row__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

.audit-grid { margin-top: 36px; }

.audit-card { padding: 40px 34px 46px; }

.audit-card__num {
  font-family: var(--font-mono);
  font-size: 34px;
  color: rgba(255, 255, 255, .22);
  margin-bottom: 20px;
}

.audit-card p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .66);
}

/* Pill + paragraph note. Used under the audit, the process grid and the
   reception quotes. */
.note {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 760px;
}
.note .pill { margin-top: 2px; }
.note p {
  font-size: 17px;
  line-height: 1.6;
  opacity: .78;
}
.note--on-dark p {
  opacity: 1;
  color: rgba(255, 255, 255, .8);
}

/* The audit note is the last thing in the dark section, so it carries the
   section's bottom padding. */
.section--audit .note { padding-bottom: 110px; }

/* Moderated-session clips — square stills that swap for a player on click. */
.sessions {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-on-dark);
  border: 1px solid var(--line-on-dark);
}
.sessions > li { display: flex; }

.session {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.session img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transition: opacity .3s ease, transform .5s ease;
}
.session:hover img,
.session:focus-visible img { opacity: 1; transform: scale(1.02); }
.session:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Accent disc with a CSS triangle — no icon asset needed. */
.session__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 6px 20px rgba(11, 19, 26, .45);
}
.session__play::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translateX(3px);
}

.session__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(11, 19, 26, .85));
}

.session__frame {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  display: block;
}

/* Wide figure + caption, e.g. the research synthesis board. */
.figure {
  margin: 56px 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
  /* The card is always light, including inside a dark section. */
  color: var(--ink);
}
.figure--on-dark { border-color: var(--line-on-dark); }
.figure img {
  display: block;
  width: 100%;
  height: auto;
}
.figure figcaption {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
  opacity: .68;
}
.figure figcaption strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Evolution (04)
   -------------------------------------------------------------------------- */
.section--evolution { padding-top: 120px; }

.timeline { margin-top: 64px; }

.timeline-step { padding: 26px 24px 30px; }

.timeline-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.timeline-step__title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.timeline-step__body {
  font-size: 14px;
  line-height: 1.5;
  opacity: .62;
}

/* Step 07 closes the 4-col grid's second row, which otherwise holds 3 of 4. */
.timeline-step--wide { grid-column: span 2; }

.compare {
  margin-top: 76px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.compare__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.compare__caption {
  font-size: 15px;
  opacity: .6;
}

.phone {
  position: relative;
  width: 300px;
  margin: 0 auto;
}
.phone img,
.phone video {
  display: block;
  width: 300px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(11, 19, 26, .16));
}

/* Screen recordings carry a baked-in white background, unlike the transparent
   PNG exports. Multiply drops that white into --paper so they sit on the page
   the same way; the drop-shadow goes with it, since it would multiply too. */
.phone--rec img,
.phone--rec video {
  mix-blend-mode: multiply;
  filter: none;
}

/* Pairs without annotation markers get a caption under each phone instead. */
.compare--plain { margin-top: 96px; align-items: start; }
.compare__note {
  margin-top: 30px;
  font-size: 15px;
  line-height: 1.55;
  opacity: .74;
}
.compare__note strong { font-weight: 700; opacity: 1; }

/* Numbered overlay markers, positioned per-instance with --top. */
.marker {
  position: absolute;
  left: 6%;
  top: var(--top);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(11, 19, 26, .3);
}
.marker--accent {
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(237, 77, 51, .4);
}

.legend {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legend li {
  display: flex;
  gap: 13px;
}
.legend p {
  font-size: 15px;
  line-height: 1.5;
  opacity: .78;
}
.legend--after p { opacity: .82; }

.legend__dot {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.legend--after .legend__dot { background: var(--accent); }

/* Reset list semantics without losing them for assistive tech. */
.legend {
  list-style: none;
  padding: 0;
}

/* --------------------------------------------------------------------------
   10. App flow (06)
   -------------------------------------------------------------------------- */
.flow-card {
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 44px 40px 34px;
}

/* The "before" strip sits on paper so the redesigned one reads as the subject. */
.flow-card--muted {
  background: transparent;
  padding-bottom: 40px;
}
.flow-card--muted + .flow-card { margin-top: 2px; }
.flow-card .compare__header { margin-bottom: 30px; }
.flow-card img {
  display: block;
  width: 100%;
  height: auto;
}

.flow-captions {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.flow-captions__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 6px;
}
.flow-captions__label {
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. Visual language (06)
   -------------------------------------------------------------------------- */
.specimen-grid {
  margin-top: 58px;
  grid-template-columns: 1.1fr 1fr;
}

.specimen { padding: 44px 40px; }

.specimen__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 26px;
}

.specimen__aa {
  font-weight: 900;
  font-size: 64px;
  line-height: .9;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.specimen__mono {
  font-family: var(--font-mono);
  font-size: 30px;
  margin-bottom: 8px;
}
.specimen__caption {
  font-size: 15px;
  opacity: .6;
}
.specimen__caption--spaced { margin-bottom: 30px; }

/* Wins over `.hairline > *`, which would otherwise paint the cell --card. */
.hairline > .motif {
  background: var(--ink);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.motif .specimen__label {
  color: rgba(255, 255, 255, .5);
  opacity: 1;
}
.motif__grid {
  width: 100%;
  height: 150px;
  background-image: radial-gradient(rgba(255, 255, 255, .4) 1.4px, transparent 1.5px);
  background-size: 16px 16px;
}
.motif__caption {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .66);
}

/* Palette butts directly against the specimen grid above it. */
.palette {
  margin-top: 2px;
  border-top: none;
}
.swatch {
  height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.swatch span {
  font-family: var(--font-mono);
  font-size: 12px;
}
.swatch span + span { font-size: 11px; }

.swatch--ink { background: #0B131A; color: #fff; }
.swatch--ink span + span { color: rgba(255, 255, 255, .6); }
.swatch--accent { background: #ED4D33; color: #fff; }
.swatch--accent span + span { color: rgba(255, 255, 255, .75); }
.swatch--amber { background: #FFA806; color: #0B131A; }
.swatch--amber span + span { color: rgba(11, 19, 26, .7); }
.swatch--mist { background: #EAEDF1; color: #0B131A; }
.swatch--mist span + span { color: rgba(11, 19, 26, .6); }
.swatch--paper {
  background: #F4F1EA;
  color: #0B131A;
  box-shadow: inset 0 0 0 1px rgba(11, 19, 26, .06);
}
.swatch--paper span + span { color: rgba(11, 19, 26, .6); }

/* --------------------------------------------------------------------------
   12. Sound, voice & motion (07)
   -------------------------------------------------------------------------- */
.sensory-grid { margin-top: 58px; }

.sensory { padding: 44px 40px 48px; }
.sensory .h3 { margin-bottom: 10px; }
.sensory > p {
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.55;
  opacity: .68;
}

.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 88px;
  margin-bottom: 28px;
}
.eq span {
  flex: 1;
  height: 100%;
  background: var(--accent);
  transform-origin: bottom;
  animation: cs-eq 1.1s ease-in-out infinite;
}
.eq span:nth-child(3),
.eq span:nth-child(5),
.eq span:nth-child(7) { background: var(--ink); }
.eq span:nth-child(2) { animation-delay: .15s; }
.eq span:nth-child(3) { animation-delay: .3s; }
.eq span:nth-child(4) { animation-delay: .45s; }
.eq span:nth-child(5) { animation-delay: .6s; }
.eq span:nth-child(6) { animation-delay: .75s; }
.eq span:nth-child(7) { animation-delay: .9s; }
.eq span:nth-child(8) { animation-delay: 1.05s; }

.pulse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  height: 88px;
  margin-bottom: 28px;
}
.pulse span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  animation: cs-pulse 1.4s ease-in-out infinite;
}
.pulse span:nth-child(2),
.pulse span:nth-child(4) { background: var(--ink); }
.pulse span:nth-child(2) { animation-delay: .2s; }
.pulse span:nth-child(3) { animation-delay: .4s; }
.pulse span:nth-child(4) { animation-delay: .6s; }
.pulse span:nth-child(5) { animation-delay: .8s; }

.rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: 4px;
}
.rows--spec li { justify-content: space-between; }

.rows__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.rows__quote { font-size: 14.5px; }
.rows__name {
  font-size: 14.5px;
  font-weight: 600;
}
.rows__value {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: .55;
}

/* --------------------------------------------------------------------------
   13. Automotive HMI (09) — entry point to the separate case study
   -------------------------------------------------------------------------- */
/* A link, not an embed — this shows none of the automotive work, it just reads
   as a door to it. Built from the page's own parts: ink ground, the signature
   dot-grid, and the hero's accent wash. */
.hmi-entry {
  position: relative;
  margin-top: 44px;
  display: block;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s ease;
}

/* Accent wash, echoing the hero's radial gradients. */
.hmi-entry::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Accent only — layering amber over ink muddies to brown at these opacities. */
  background: radial-gradient(40% 120% at 99% 50%, rgba(237, 77, 51, .42), transparent 62%);
  opacity: .82;
  transition: opacity .3s ease;
  z-index: -1;
}

/* The signature motif, at specimen values, fading in from the right so the
   type stays clean. */
.hmi-entry__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .4) 1.4px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: .16;
  -webkit-mask-image: linear-gradient(90deg, transparent 22%, #000 92%);
  mask-image: linear-gradient(90deg, transparent 22%, #000 92%);
  z-index: -1;
}

.hmi-entry:hover {
  opacity: 1;                     /* override the global a:hover fade */
  transform: translateY(-3px);
}
.hmi-entry:hover::before { opacity: 1; }
.hmi-entry:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hmi-entry__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px 40px 38px;
}

.hmi-entry__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
/* Deliberately below the section H2 (58px) so the hierarchy stays clear. */
.hmi-entry__title {
  display: block;
  font-weight: 800;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hmi-entry__sub {
  display: block;
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .64);
}

/* Outlined disc rather than a solid one — a solid fill at this size was the
   loudest thing on the page. It fills on hover instead. */
.hmi-entry__go {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.hmi-entry__go svg { width: 16px; height: 16px; }
.hmi-entry:hover .hmi-entry__go {
  transform: translateX(5px);
  background: var(--accent);
  color: #fff;
}

.hmi-entry__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 40px 20px;
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   13b. Post-launch reception (10) — dark
   -------------------------------------------------------------------------- */
.reception-grid { margin-top: 58px; }

.quote {
  margin: 0;
  padding: 40px 34px 40px;
  display: flex;
  flex-direction: column;
}

.quote blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: rgba(255, 255, 255, .72);
  /* `balance` strands a short first line at narrow widths; `pretty` only
     fixes the orphan. */
  text-wrap: pretty;
}
.quote--after blockquote { color: #fff; }

/* Opening mark hangs in the margin so the text stays optically aligned. */
.quote blockquote::before {
  content: '\201C';
  float: left;
  margin-left: -.42em;
  color: var(--accent);
  font-weight: 700;
}

.quote figcaption {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}
.quote cite { font-style: normal; }

/* On ink, the solid-ink BEFORE pill needs an edge to stay visible. */
.pill--outlined { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.compare__caption--on-dark {
  opacity: 1;
  color: rgba(255, 255, 255, .5);
}

.section--reception { margin-top: 120px; }
.section--reception .note { padding-bottom: 20px; }

/* --------------------------------------------------------------------------
   14. Closing — dark
   -------------------------------------------------------------------------- */
.section--closing { margin-top: 110px; }
.section--closing .section-inner { padding-bottom: 100px; }

.closing-h2 {
  font-weight: 900;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.02em;
  max-width: 1000px;
}

.status-board { margin-top: 64px; }

.status { padding: 32px 28px; }
.status__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 14px;
}
.status__value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.status__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.status__dot--amber { background: var(--amber); }
.status__dot--success { background: var(--success); }

.closing-footer {
  margin-top: 90px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--footer-line-on-dark);
  padding-top: 30px;
}
.closing-footer__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .5);
}

/* --------------------------------------------------------------------------
   15. Responsive
   Breakpoints are a production addition — the prototype defines none.
   Confirm with the designer before treating them as final.
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  :root { --gutter: 36px; }

  .specimen-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }

  /* 3- and 4-col grids drop to 2; odd trailing cells span the full row. */
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .context-grid > :last-child { grid-column: 1 / -1; }

  .flow-captions { grid-template-columns: repeat(3, 1fr); }

  .compare { gap: 48px; }

  /* At 2 columns the 7th step already closes the row on its own. */
  .timeline-step--wide { grid-column: auto; }

}

@media (max-width: 860px) {
  .specimen-grid { grid-template-columns: 1fr; }
  .sensory-grid { grid-template-columns: 1fr; }

  .palette { grid-template-columns: repeat(2, 1fr); }
  .palette > :last-child { grid-column: 1 / -1; }

  .compare { grid-template-columns: 1fr; gap: 72px; }

  .flow-card { padding: 32px 28px 26px; }
  .flow-card--muted { padding-left: 0; padding-right: 0; }
  .specimen,
  .motif,
  .sensory,
  .quote { padding: 36px 30px 40px; }


  .figure { padding: 20px 20px 18px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; }

  .section { padding-top: 84px; }
  .section--context,
  .section--evolution { padding-top: 84px; }
  .section-inner { padding-top: 88px; }
  .section--audit { margin-top: 88px; }
  .section--closing { margin-top: 84px; }

  .cols-2 { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .status-board { grid-template-columns: 1fr; }
  .context-grid > :last-child { grid-column: auto; }

  .audit-card { padding: 32px 26px 36px; }
  .section--audit .note { padding-bottom: 84px; }
  .section--reception { margin-top: 88px; }
  .quote blockquote { font-size: 20px; }

  /* Entry link: the disc drops below the type rather than squeezing it. */
  .hmi-entry__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 34px 26px 32px;
  }
  .hmi-entry__meta {
    flex-direction: column;
    gap: 8px;
    padding: 18px 26px 20px;
  }
  .hmi-entry__go { width: 44px; height: 44px; }
  .hmi-entry__sub { font-size: 17px; }
  /* The dots would sit under the type once it wraps full-width. */
  .hmi-entry__grid { opacity: .12; }

  .scope-card { min-height: 0; padding: 32px 26px 38px; }

  .closing-footer { margin-top: 64px; }
}

/* Below ~360px the spec's 52px H1 floor overruns the column and "touchpoints."
   is clipped. Drop the floor here only; at 360px and up the scale is untouched. */
@media (max-width: 360px) {
  .hero-h1 { font-size: clamp(40px, 13vw, 52px); }
}

@media (max-width: 560px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-bar { flex-direction: column; align-items: flex-start; gap: 10px; }

  .cols-4 { grid-template-columns: 1fr; }
  .flow-captions { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: 1fr; }
  .palette > :last-child { grid-column: auto; }

  /* Keep the phone shots inside the viewport. */
  .phone { width: 100%; max-width: 300px; }
  .phone img,
  .phone video { width: 100%; }

  .sessions { grid-template-columns: 1fr; }

  .rows--spec li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* --------------------------------------------------------------------------
   16. Motion
   -------------------------------------------------------------------------- */
@keyframes cs-eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}

@keyframes cs-pulse {
  0%, 100% { opacity: .35; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

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

  /* Freeze the loops at a legible mid-state rather than hiding them. */
  .eq span,
  .pulse span { animation: none; }
  .eq span { transform: scaleY(.62); }
  .eq span:nth-child(even) { transform: scaleY(.9); }
  .pulse span { opacity: 1; transform: none; }

  /* Keep the entry link's hover feedback, minus the movement. */
  .hmi-entry,
  .hmi-entry__go { transition: box-shadow .3s ease; }
  .hmi-entry:hover,
  .hmi-entry:hover .hmi-entry__go { transform: none; }
}
