/* Dramagi guides, examples and other static pages. Same system as the landing page
   (src/landing/landing.css): warm canvas, ink, one amber, Gloock for display, Schibsted for text. */
:root {
  color-scheme: light;
  --ground: #f6f5f2;
  --ground-2: #ecebe6;
  --ground-3: #e3e1da;
  --surface: #ffffff;
  --ink: #1c1b19;
  --soft: #5f5b55;
  --line: rgba(28, 25, 20, 0.1);
  --edge: #cfccc4;
  --accent: #d97706;
  --action: #b45309;
  --action-strong: #92400e;
  --past: #d97706;
  --past-soft: #fde7c4;
  --future: #4f46e5;
  --ok: #0f766e;
  --c-beat: #64748b;
  --c-decision: #0d9488;
  --c-incident: #dc2626;
  --c-revelation: #7c3aed;
  --c-arc: #db2777;
  --c-world: #0284c7;
  --c-character: #475569;
  --c-theme: #a16207;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --display: "Gloock", Georgia, serif;
  --m: clamp(20px, 2.8vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Amber paper: a fine dot grid over a paper grain (SVG noise, no image to load). Asked for by the owner. */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.16 0 0 0 0 0.02 0 0 0 0.75 0'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.22 0.6' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.9 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.35'/%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.38'/%3E%3C/svg%3E");
  --dots: radial-gradient(circle, rgba(60, 30, 0, 0.22) 1.1px, transparent 1.6px); /* taste-skill-ignore: dot grid asked for by the owner */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
::selection { background: var(--past-soft); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: var(--ground); padding: 8px 14px; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons: one shape, square corners, as on the landing page */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--action); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 120ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: transparent; color: var(--ink); padding: 0 4px; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: var(--edge); }
.btn.dark { background: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--action-strong); }
  .btn.ghost:hover { background: transparent; text-decoration-color: var(--ink); }
  .btn.dark:hover { background: #000; }
}

/* Navigation: identical to the landing page */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px var(--m) 0; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font: 400 24px/1 var(--display); text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a { text-decoration: none; }
.nav nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.nav .nav-cta { padding: 9px 14px; background: var(--ink); color: var(--ground); font-weight: 600; transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .nav nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 0.3em; } .nav .nav-cta:hover { background: #000; } }

/* ---------------- Page head: copy left, a picture of the data right ---------------- */
.phead { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: 0 0 0 var(--m); }
.phead-copy { grid-column: 1 / 7; grid-row: 1; padding: clamp(48px, 8vh, 110px) 0 56px; position: relative; z-index: 1; }
.phead.solo .phead-copy { grid-column: 1 / 11; }
.crumbs { margin: 0 0 22px; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; color: var(--edge); }
.phead h1 { font: 400 clamp(40px, 4.5vw, 72px) / 1 var(--display); letter-spacing: -0.025em; max-width: 15ch; }
.phead.solo h1 { max-width: 18ch; }
.lede { margin: 24px 0 0; font-size: 19px; line-height: 1.5; max-width: 46ch; }
.actions { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.meta { margin: 26px 0 0; font-size: 14px; color: var(--soft); max-width: 60ch; }
.meta a { color: var(--soft); }
.phead-visual { grid-column: 7 / -1; grid-row: 1; align-self: start; margin-top: clamp(40px, 7vh, 96px); background: var(--accent); border-radius: 24px 0 0 24px; padding: 44px 0 44px 44px; overflow: hidden; }

/* A panel of product UI on the amber stage */
.panel { background: var(--surface); border-radius: 12px 0 0 12px; box-shadow: 0 0 0 1px rgba(28, 25, 20, 0.14), 0 28px 60px -28px rgba(28, 25, 20, 0.45); /* taste-skill-ignore: product panel floating on the stage */ font: 400 13px/1.4 var(--sans); overflow: hidden; }
.panel-head { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.panel-head b { font-size: 14px; font-weight: 700; }
.panel-head span { color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.panel-head em { margin-left: auto; font-style: normal; font-weight: 600; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; }

/* ---------------- The lens strip: a framework on a story timeline ---------------- */
.strip { padding: 10px 18px 18px; }
.strip-acts, .strip-row .track { position: relative; height: 100%; }
.strip-acts { display: grid; grid-template-columns: 124px 1fr; height: 28px; margin-bottom: 4px; }
.strip-acts .track { position: relative; }
.strip-acts .act { position: absolute; top: 0; bottom: 0; padding: 4px 8px; font-size: 13px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--ground); border-left: 2px solid var(--surface); }
.strip-acts .act:nth-child(even) { background: var(--ground-2); }
.strip-row { display: grid; grid-template-columns: 124px 1fr; min-height: 58px; align-items: center; }
.strip-row + .strip-row { border-top: 1px dashed var(--line); }
.strip-row > b { font-size: 13px; font-weight: 600; color: var(--soft); padding-right: 10px; line-height: 1.25; }
.strip-row .track { height: 58px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); /* taste-skill-ignore: the app's 10% grid */ background-size: 10% 100%; }
.mk { position: absolute; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; text-decoration: none; z-index: 1; }
.mk i { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--c-beat); transition: transform 160ms var(--ease-out); }
.mk.key i { width: 15px; height: 15px; background: var(--accent); border-color: var(--accent); }
.mk span { position: absolute; bottom: calc(50% + 11px); white-space: nowrap; font-size: 13px; font-weight: 600; background: var(--surface); padding: 1px 4px; border-radius: 4px; opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
.mk.key span { opacity: 1; }
.mk.low span { bottom: auto; top: calc(50% + 11px); }
.mk:hover i, .mk:focus-visible i { transform: scale(1.35); }
.mk:hover span, .mk:focus-visible span { opacity: 1; z-index: 2; }
.win { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(217, 119, 6, 0.16); }
.strip-scale { display: grid; grid-template-columns: 124px 1fr; margin-top: 6px; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.strip-scale .track { display: flex; justify-content: space-between; }

/* Several lenses stacked (the frameworks hub) */
.stack .strip-row > b { font-size: 12.5px; color: var(--ink); }
.stack .mk.key span { opacity: 0; }
.stack .mk:hover span, .stack .mk:focus-visible span { opacity: 1; }
.stack .strip-row > b small { display: block; font-weight: 400; color: var(--soft); font-size: 13px; }

/* ---------------- Body sections: heading pinned left, content right ---------------- */
.sec { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; padding: clamp(72px, 8vw, 128px) var(--m) 0; }
.sec-head { grid-column: 1 / 5; }
.sec-head h2 { font: 400 clamp(28px, 2.5vw, 38px) / 1.08 var(--display); letter-spacing: -0.015em; padding-right: 12px; }
.sec-body { grid-column: 5 / 13; min-width: 0; }
.sec.intro { padding-top: 24px; }
.sec.intro .sec-body { grid-column: 5 / 12; }
.sec.intro .sec-body > p { font-size: 20px; line-height: 1.55; }
.sec-body > p, .sec-body > ul, .sec-body > ol, .sec-body > blockquote { max-width: 68ch; }
.sec-body > p { margin: 0 0 18px; }
.sec-body > ul, .sec-body > ol { margin: 0 0 22px; padding-left: 22px; }
.sec-body li { margin: 7px 0; }
.sec-body li::marker { color: var(--accent); }
.sec-body a { text-decoration-color: var(--edge); text-underline-offset: 0.2em; }
.sec-body a:hover { text-decoration-color: var(--ink); }
.sec-body h3 { margin: 40px 0 12px; font: 400 26px/1.15 var(--display); }
.sec-body > h3:first-child { margin-top: 0; }
.sec-body .note { color: var(--soft); font-size: 15px; }
.sec-body blockquote { margin: 18px 0; padding: 18px 22px; background: var(--ground-2); font-style: italic; }
.sec-body blockquote p { margin: 0; }
.sec-body blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--soft); }

/* Tables: real tables keep their rules, set like a printed index */
.table-wrap { overflow-x: auto; margin: 8px 0 26px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th { text-align: left; font-size: 13px; font-weight: 600; color: var(--soft); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
td { padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr { transition: background-color 120ms ease; }
@media (hover: hover) { tbody tr:hover { background: rgba(253, 231, 196, 0.45); } }
td a { text-decoration-color: var(--edge); text-underline-offset: 0.2em; }

/* ---------------- Beats, one row each ---------------- */
.beat { display: grid; grid-template-columns: 132px minmax(0, 1fr); column-gap: 28px; padding: 26px 0 34px; scroll-margin-top: 24px; }
.beat.key { background: rgba(253, 231, 196, 0.42); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.beat-at b { display: block; font: 400 52px/0.95 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.beat.key .beat-at b { color: var(--action); }
.beat-at span { display: block; margin-top: 8px; font-size: 13px; color: var(--soft); }
.beat h3 { margin: 0 0 8px; font: 600 21px/1.25 var(--sans); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.beat h3 small { font-size: 13px; font-weight: 600; color: var(--soft); }
.beat h3 em { font-style: normal; font-size: 13px; font-weight: 700; color: #fff; background: var(--action); padding: 2px 8px; border-radius: 5px; }
.beat p { margin: 0 0 12px; max-width: 64ch; }
.beat .ask { padding-left: 14px; border-left: 3px solid var(--accent); font-style: italic; }
.beat .eg { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 4px 0 0; padding: 7px 12px; background: var(--surface); border-radius: 8px; font-size: 14px; text-decoration: none; }
.beat .eg b { font-weight: 600; }
.beat .eg span { color: var(--soft); }
.beat .eg.off span:last-child { color: var(--action); font-weight: 600; }
@media (hover: hover) { .beat a.eg:hover { box-shadow: 0 0 0 1.5px var(--ink); } }

/* A real story laid on the lens: moments on a rail, the framework's parts beneath */
.story-track { margin: 8px 0 30px; }
.story-track > div { position: relative; padding-top: 104px; }
.story-track > div::before { content: ""; position: absolute; left: 0; right: 0; top: 103px; height: 2px; background: var(--edge); }
.story-track .bar { display: flex; height: 30px; margin-top: 16px; }
.story-track .bar span { flex: none; height: 100%; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--soft); background: var(--ground-2); border-right: 2px solid var(--ground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-track .bar span:nth-child(even) { background: var(--ground-3); }
.story-track a { position: absolute; top: 104px; width: 0; height: 0; text-decoration: none; }
.story-track a::before { content: ""; position: absolute; left: -7px; top: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ground); z-index: 1; }
.story-track a.off::before { background: var(--accent); }
.story-track a::after { content: ""; position: absolute; left: -0.5px; bottom: 8px; width: 1px; height: 8px; background: var(--edge); }
.story-track a.low::after { height: 46px; }
.story-track a span { position: absolute; left: 0; transform: translateX(-50%); bottom: 18px; white-space: nowrap; font-size: 13px; line-height: 1.25; text-align: center; background: var(--ground); padding: 0 4px; }
.story-track a.low span { bottom: 56px; }
.story-track a.end span { transform: translateX(calc(-100% + 10px)); text-align: right; }
.story-track a.start span { transform: translateX(-10px); text-align: left; }
.story-track a span b { display: block; font-weight: 600; }
.story-track a span i { font-style: normal; color: var(--soft); }
@media (hover: hover) { .story-track a:hover span b { text-decoration: underline; text-underline-offset: 0.2em; } }
.story-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; font-size: 14px; color: var(--soft); }
.story-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-right: 7px; }
.story-key span.off::before { background: var(--accent); }

/* The lens figure: one moment through every framework */
.lensfig { margin: 18px 0 36px; padding: clamp(20px, 3vw, 40px); background: var(--surface); }
.lensfig svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.lensfig .rail { stroke: var(--edge); stroke-width: 2; }
.lensfig .beam { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.lensfig .pick { fill: var(--accent); stroke: var(--surface); stroke-width: 4; }
.lensfig .lens { fill: rgba(217, 119, 6, 0.07); stroke: var(--ink); stroke-width: 1.4; }
.lensfig .lens:nth-child(3) { stroke: var(--accent); stroke-width: 2.4; }
.lensfig .ray { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.lensfig .ray.none { stroke: var(--edge); stroke-dasharray: 4 6; }
.lensfig .end { fill: var(--accent); }
.lensfig .end.none { fill: var(--edge); }
.lensfig .lbl { font: 400 23px var(--display); fill: var(--ink); dominant-baseline: middle; }
.lensfig .lbl.none { fill: var(--soft); font-style: italic; }
.lensfig .fw { font-size: 16px; font-weight: 600; fill: var(--soft); }
.lensfig .cap { font-size: 16px; font-weight: 600; fill: var(--soft); }
.lensfig .pickl { font-size: 18px; font-weight: 600; fill: var(--ink); }
.lensfig a:hover .lbl { fill: var(--action); }
.lensfig figcaption { margin-top: 18px; font-size: 14px; color: var(--soft); max-width: 70ch; }
.lensfig-list { display: none; list-style: none; margin: 18px 0 0; padding: 0; }
.lensfig-list li + li { margin-top: 2px; }
.lensfig-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; text-decoration: none; }
.lensfig-list b { font: 400 20px/1.2 var(--display); }
.lensfig-list span { font-size: 13px; font-weight: 600; color: var(--soft); text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .lensfig .lenses { animation: drift 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .lensfig .lens { animation: breathe 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.4s); transform-box: fill-box; transform-origin: center; }
  .lensfig .ray { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.2s var(--ease-out) forwards; animation-delay: calc(300ms + var(--i) * 120ms); }
  .lensfig .ray.none { stroke-dasharray: 4 6; stroke-dashoffset: 0; animation: none; }
  @supports (animation-timeline: view()) {
    .lensfig .ray { animation-timeline: view(); animation-range: entry 20% cover 45%; animation-delay: 0s; animation-fill-mode: both; }
  }
}
@keyframes drift { from { transform: translateX(-8px); } to { transform: translateX(8px); } }
@keyframes breathe { from { transform: scale(0.97); } to { transform: scale(1.03); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.faces { display: flex; flex-wrap: wrap; gap: 18px; margin: 6px 0 8px; }
.faces div { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.faces img { width: 120px; height: 120px; object-fit: cover; }
.faces figcaption { flex-basis: 100%; font-size: 13px; color: var(--soft); }

.plate { margin: 0 0 8px; }
.plate img { width: 100%; max-height: 520px; object-fit: cover; filter: grayscale(0.15) contrast(1.04); }
.plate figcaption { margin-top: 10px; font-size: 13px; color: var(--soft); }

/* ---------------- Collections: rows, not cards ---------------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { margin-top: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 32px; align-items: center; padding: 26px 20px; background: var(--ground-2); text-decoration: none; transition: background-color 160ms ease, padding-left 200ms var(--ease-out); }
.row h3 { font: 400 clamp(28px, 2.6vw, 38px) / 1.08 var(--display); letter-spacing: -0.01em; }
.row p { margin: 8px 0 0; font-size: 16px; max-width: 52ch; }
.row em { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 600; color: var(--action-strong); }
.row .mini { align-self: center; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--surface); padding-left: 28px; } .row:hover em { text-decoration: underline; text-underline-offset: 0.2em; } }
.mini { position: relative; height: 40px; }
.mini .acts { position: absolute; inset: 14px 0; display: flex; border-radius: 3px; overflow: hidden; }
.mini .acts span { flex: none; height: 100%; background: var(--ground-3); border-right: 2px solid var(--ground); }
.mini .acts span:nth-child(even) { background: var(--edge); }
.mini i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c-beat); }
.mini i.key { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--accent); border-color: var(--accent); }
.row-thumbs { display: flex; gap: 8px; }
.row-thumbs img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; filter: grayscale(0.3); }

/* ---------------- Example stories ---------------- */
.cast { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); overflow: hidden; }
.cast figure { margin: 0; display: grid; justify-items: center; gap: 5px; width: 70px; flex: none; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2; }
.cast img, .cast .ini { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cast .ini { display: grid; place-items: center; background: var(--ground-2); color: var(--soft); font: 400 20px/1 var(--display); }
.timeline { position: relative; height: 128px; margin: 8px 18px 16px; }
.timeline .lane { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.timeline .dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--tc, var(--c-beat)); }
.timeline .dot.ghost { background: var(--surface); border: 2px dashed var(--tc, var(--c-beat)); }
.timeline .bt { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--action); white-space: nowrap; }
.timeline .bt::before { content: ""; display: block; width: 2px; height: 10px; margin: 0 auto 2px; background: var(--accent); }
.timeline .sess { position: absolute; top: -4px; bottom: 22px; border-left: 1px dashed var(--edge); padding-left: 5px; font-size: 13px; color: var(--soft); }
.panel-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 18px 14px; border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.panel-foot span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: var(--tc); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 8px; background: var(--surface); border-radius: 6px; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tc, var(--c-beat)); }
.t-beat { --tc: var(--c-beat); }
.t-decision { --tc: var(--c-decision); }
.t-incident { --tc: var(--c-incident); }
.t-revelation { --tc: var(--c-revelation); }
.t-character { --tc: var(--c-character); }
.t-arc { --tc: var(--c-arc); }
.t-world { --tc: var(--c-world); }
.t-theme { --tc: var(--c-theme); }
.people { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.people li { margin: 0; }
.person { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 22px 0; scroll-margin-top: 24px; }
.person:not(:has(img)) { grid-template-columns: 1fr; }
.person img { width: 76px; height: 96px; object-fit: cover; }
.person h3 { margin: 0; font: 400 24px/1.1 var(--display); }
.person .role { margin: 4px 0 8px; font-size: 14px; color: var(--soft); }
.person p { margin: 0 0 6px; font-size: 15.5px; }
.person small { display: block; margin-top: 6px; color: var(--soft); font-size: 12px; }
.moment { position: relative; padding: 22px 0 22px 22px; scroll-margin-top: 24px; }
.moment::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 4px; border-radius: 2px; background: var(--tc, var(--c-beat)); }
.moment:target { background: rgba(253, 231, 196, 0.55); }
.sec-body .moment h3 { margin: 8px 0 6px; font: 600 20px/1.25 var(--sans); }
.moment > p { margin: 0 0 10px; max-width: 66ch; }
.moment blockquote { margin: 10px 0 12px; padding: 12px 16px; }
.moment .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.moment .tag, .moment .status { font-size: 13px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: var(--ground-2); color: var(--soft); }
.moment .status { background: transparent; box-shadow: inset 0 0 0 1px var(--edge); }
.moment .note { margin: 4px 0; font-size: 15px; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-top: 12px; font-size: 15px; }
.links b { display: block; font-size: 13px; font-weight: 700; }
.links .because b { color: #92400e; }
.links .leads b { color: #3730a3; }
.links ul { margin: 4px 0 0; padding-left: 18px; }
.links li { margin: 3px 0; }
.links .because li::marker { color: var(--past); }
.links .leads li::marker { color: var(--future); }

/* ---------------- FAQ: the landing page's accordion ---------------- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--ground-2); transition: background-color 200ms ease; }
.faq summary { list-style: none; cursor: pointer; min-height: 68px; padding: 21px 60px 21px 22px; font-size: 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 15px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform 200ms var(--ease-out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] { background: var(--accent); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 22px 22px; max-width: 62ch; }

/* ---------------- Closing band ---------------- */
.band { margin-top: clamp(96px, 10vw, 160px); padding: clamp(64px, 8vw, 120px) var(--m); background: var(--accent); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 20px; align-items: end; }
.band h2 { grid-column: 1 / 8; font: 400 clamp(44px, 5.6vw, 92px) / 0.95 var(--display); letter-spacing: -0.03em; }
.band div { grid-column: 8 / 13; }
.band p { margin: 0 0 22px; font-size: 18px; max-width: 40ch; }

/* ---------------- Footer: one quiet line ---------------- */
.foot { margin-top: 12svh; padding: 0 var(--m) 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 20px; font-size: 15px; color: var(--soft); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--ink); text-decoration: none; }
.foot > span:last-child { justify-self: end; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }

/* ---------------- Plain pages (privacy, 404) ---------------- */
.plain { padding: 0 var(--m); max-width: 880px; }
.plain h2 { margin: 44px 0 10px; font: 400 30px/1.1 var(--display); }
.plain p, .plain li { max-width: 66ch; }
.plain ul { padding-left: 22px; }

/* ---------------- Motion ---------------- */
@media (prefers-reduced-motion: no-preference) {
  .phead-copy > * { animation: rise 700ms var(--ease-out) both; }
  .phead-copy > :nth-child(2) { animation-delay: 60ms; }
  .phead-copy > :nth-child(3) { animation-delay: 120ms; }
  .phead-copy > :nth-child(4) { animation-delay: 180ms; }
  .phead-visual { animation: shutter 1100ms cubic-bezier(0.65, 0, 0.35, 1) both 120ms; }
  .phead-visual .panel { animation: settle 1400ms var(--ease-out) both 120ms; }
  .mk { animation: pop 500ms var(--ease-out) both; animation-delay: calc(500ms + var(--d, 0) * 40ms); }
  @supports (animation-timeline: view()) {
    .sec-head h2, .sec-body > *, .beat, .row, .moment, .person { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes shutter { from { clip-path: inset(0 0 100% 0 round 24px 0 0 24px); } to { clip-path: inset(0 round 24px 0 0 24px); } }
@keyframes settle { from { transform: translateY(36px) scale(1.03); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }

/* ---------------- Tablet ---------------- */
@media (max-width: 1100px) {
  .phead-copy { grid-column: 1 / -1; padding-right: var(--m); padding-bottom: 0; }
  .phead-visual { grid-column: 2 / -1; grid-row: 2; margin-top: 40px; }
  .sec-head { grid-column: 1 / -1; margin-bottom: 22px; }
  .sec-head h2 { position: static; max-width: 22ch; }
  .sec-body, .sec.intro .sec-body { grid-column: 1 / -1; }
  .band h2, .band div { grid-column: 1 / -1; }
  .band div { margin-top: 26px; }
}

/* ---------------- Phone ---------------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .beat.key { margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .phead { display: block; padding: 0; }
  .phead-copy { padding: 40px 20px 0; }
  .phead h1 { font-size: 9.4vw; max-width: none; }
  .lede { font-size: 17px; }
  .phead-visual { margin: 36px 0 0 12px; padding: 22px 0 22px 14px; border-radius: 18px 0 0 18px; }
  .strip-acts, .strip-row, .strip-scale { grid-template-columns: 84px 1fr; }
  .strip-acts, .strip-row, .strip-scale { grid-template-columns: 62px 1fr; }
  .strip { padding: 8px 12px 14px; }
  .strip-acts .act { font-size: 0; }
  .mk span, .mk.key span { opacity: 0; }
  .panel-head span { display: none; }
  .sec { display: block; padding: 64px 20px 0; }
  .sec.intro .sec-body > p { font-size: 18px; }
  .beat { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
  .beat-at b { font-size: 32px; }
  .beat-at span { font-size: 13px; }
  .row { grid-template-columns: 1fr; padding-right: 0; }
  .links { grid-template-columns: 1fr; }
  .story-track { overflow-x: auto; }
  .story-track > div { min-width: 640px; }
  .lensfig svg { display: none; }
  .lensfig-list { display: block; }
  .faq summary { font-size: 17px; padding: 18px 54px 18px 18px; }
  .band { display: block; padding: 56px 20px; }
  .band h2 { font-size: 14vw; }
  .foot { grid-template-columns: 1fr; gap: 8px; padding: 0 20px 24px; font-size: 14px; }
  .foot > span:last-child { justify-self: start; }
  .people { grid-template-columns: 1fr; }
}

/* Amber fields are paper (keep last so it wins over the flat fills above). */
.phead-visual, .band, .faq details[open] {
  background-color: var(--accent);
  background-image: var(--dots), var(--grain);
  background-size: 18px 18px, 220px 220px;
  background-position: 9px 9px, 0 0;
}
