/* sophussciera.dk — business-paper profile
   Paper: salmon. Ink: warm black. One rubric red. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata.woff") format("woff");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --paper: #f5d6c6;
  --paper-deep: #efc9b5;
  --paper-light: #f9e3d7;
  --ink: #1b1512;
  --ink-soft: #563c33;
  --ink-faint: #8a6658;
  --red: #a8261c;
  --red-ink: #8f1f17;
  --chart-a: #126fa8;
  --chart-b: #b5302a;
  --chart-old: #b9897a;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;

  --mast-h: 4rem;
  --gutter: clamp(1rem, 3.2vw, 2.5rem);
  --maxw: 88rem;
  --rule: 3px solid var(--ink);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem; --s10: 8rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mast-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  -webkit-tap-highlight-color: rgba(168, 38, 28, .18);
  touch-action: manipulation;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--paper); }
html { scrollbar-color: var(--ink-faint) var(--paper-deep); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border: 3px solid var(--paper-deep); border-radius: 8px; }
input, textarea { caret-color: var(--red); }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: .22em; text-decoration-color: var(--red); transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out); }
a:hover { color: var(--red-ink); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: .75rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus-visible { top: .75rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.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; }
.num, .tnum { font-variant-numeric: lining-nums; }

/* ---------- Masthead ---------- */
.mast { position: relative; z-index: 20; background: var(--paper); }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--ink); transform: scaleX(var(--rule, 1)); transform-origin: 0 50%; }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: var(--mast-h); }
.mast__name { font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; padding-block: .5rem; }
.mast__name:hover { color: var(--ink); text-decoration-line: underline; }
.mast__mid { color: var(--red); } /* same red as the full stop in the site icon */
.mast nav ul { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); }
.mast nav a { font-weight: 600; font-size: .9375rem; text-decoration: none; padding-block: .75rem; display: inline-block; position: relative; }
.mast nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.mast nav a:hover { color: var(--ink); }
.mast nav a:hover::after, .mast nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 3rem; padding: .8rem 1.35rem; background: var(--ink); color: var(--paper); font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; border-radius: 3px; box-shadow: 0 1px 0 rgba(27, 21, 18, .25), 0 6px 14px -8px rgba(27, 21, 18, .5); transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn:hover { background: var(--red); color: var(--paper); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(27, 21, 18, .25), 0 10px 18px -10px rgba(27, 21, 18, .55); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translateY(2px); }
.link-strong { font-weight: 700; font-size: 1rem; padding-block: .6rem; display: inline-block; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 4vw, 3rem); overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: end; }
.hero__photo { grid-column: 1 / span 5; grid-row: 1; align-self: end; margin-bottom: 0; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: bottom; }
/* The masks only exist while the loupe is open, and never as a zero-length gradient
   (Safari paints a degenerate radial gradient as empty, which hid the portrait on phones). */
[data-loupe] { --L: calc(var(--r, 0px) * 1.1); }
[data-loupe].is-on .hero__base { -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), transparent calc(var(--L) - .5px), #000 calc(var(--L) + .5px)); mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), transparent calc(var(--L) - .5px), #000 calc(var(--L) + .5px)); }
.hero__alt { position: absolute; inset: 0; pointer-events: none; visibility: hidden; }
[data-loupe].is-on .hero__alt { visibility: visible; -webkit-mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), #000 calc(var(--L) - .5px), transparent calc(var(--L) + .5px)); mask-image: radial-gradient(circle at var(--mx, 50%) var(--my, 35%), #000 calc(var(--L) - .5px), transparent calc(var(--L) + .5px)); }
.loupe { position: absolute; left: var(--mx, 50%); top: var(--my, 35%); width: calc(var(--r, 0px) * 2.2); height: calc(var(--r, 0px) * 2.2); translate: -50% -50%; border: 3px solid var(--ink); border-radius: 50%; pointer-events: none; box-shadow: 0 10px 30px -12px rgba(27, 21, 18, .55), inset 0 0 0 1px rgba(245, 214, 198, .35); opacity: var(--ro, 0); }
.loupe-hint { position: absolute; left: 0; bottom: 1rem; max-width: 15rem; font-size: .8125rem; line-height: 1.4; font-weight: 500; color: var(--ink-soft); background: color-mix(in srgb, var(--paper) 88%, transparent); padding: .5rem .6rem; opacity: 0; transition: opacity .4s var(--ease-out); }
.js .loupe-hint { opacity: 1; }
.loupe-hint .hint-touch { display: none; }
@media (hover: none) { .loupe-hint .hint-fine { display: none; } .loupe-hint .hint-touch { display: inline; } }
[data-loupe] { cursor: none; }
@media (hover: none) { [data-loupe] { cursor: pointer; } }
.no-motion [data-loupe] { cursor: auto; }
.hero__text { grid-column: 6 / span 7; grid-row: 1; padding-bottom: clamp(2rem, 6vh, 4rem); }
.hero__name { font-weight: 850; cursor: default; user-select: none; -webkit-user-select: none; font-size: clamp(3.25rem, 8.4vw, 6rem); line-height: .88; letter-spacing: -.035em; text-transform: uppercase; margin-bottom: var(--s6); }
.hero__name > span { display: block; }
.hero__name .ch { display: inline-block; font-variation-settings: "wght" var(--wght, 850); }
.hero__lede { font-family: var(--serif); font-size: clamp(1.1875rem, 1.6vw, 1.4375rem); line-height: 1.45; max-width: 34ch; color: var(--ink); font-variation-settings: "opsz" 24; margin-bottom: var(--s6); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); }
.hero__facts { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .9375rem; color: var(--ink-soft); font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li + li::before { content: ""; width: 5px; height: 5px; background: var(--red); border-radius: 50%; margin-right: 1rem; margin-left: -.5rem; }
.hero__rule { border: 0; border-top: var(--rule); margin: 0; }

/* ---------- Ticker (kurslinje) ---------- */
.ticker { position: relative; display: flex; align-items: stretch; background: var(--ink); color: var(--paper); border-top: var(--rule); height: 3.25rem; overflow: hidden; }
.ticker__view { flex: 1; overflow: hidden; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.tick { display: inline-flex; align-items: center; gap: .6rem; padding-inline: 1.5rem; font-size: .875rem; white-space: nowrap; border-right: 1px solid rgba(245, 214, 198, .22); }
.tick b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .8125rem; }
.tick span { color: #e3bfae; font-weight: 500; }
.tick em { font-style: normal; font-weight: 800; }
.tri { width: .7rem; height: .7rem; }
.tri.up { fill: #8cc8f0; }
.tri.dn { fill: #ff8a7d; }
.ticker__toggle { flex: none; width: 3.25rem; display: grid; place-items: center; background: var(--ink); color: var(--paper); border: 0; border-right: 1px solid rgba(245, 214, 198, .22); cursor: pointer; transition: background-color .2s var(--ease-out); }
.ticker__toggle:hover { background: #2d241f; }
.ticker__toggle svg { width: 1rem; height: 1rem; fill: currentColor; }
.ticker__toggle .i-play { display: none; }
.ticker__toggle[aria-pressed="true"] .i-play { display: block; }
.ticker__toggle[aria-pressed="true"] .i-pause { display: none; }
.ticker__toggle:focus-visible { outline-color: #ffb4a9; outline-offset: -4px; }
.no-motion .ticker__toggle { display: none; }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(4rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem); }
.statement__text { font-weight: 800; font-size: clamp(2.25rem, 5.6vw, 5.25rem); line-height: 1.02; letter-spacing: -.035em; max-width: 22ch; text-wrap: balance; }
.statement__text .nw { white-space: nowrap; }
.statement__text .hl { position: relative; }
.statement__text .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--red); transform: scaleX(var(--hl, 1)); transform-origin: 0 50%; }

/* ---------- Case stack ---------- */
.stack-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s6); }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.03em; }
.section-sub { font-family: var(--serif); font-size: 1.125rem; color: var(--ink-soft); margin-top: var(--s3); max-width: 52ch; }

.stack { position: relative; padding-bottom: var(--s9); }
.sheet::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--shade, 0) * .16); pointer-events: none; }
.sheet { position: sticky; top: calc(var(--mast-h) * 0 + 1rem + var(--i, 0) * .9rem); min-height: min(40rem, calc(100svh - 4rem)); background: var(--sheet-bg, var(--paper-light)); border-top: var(--rule); box-shadow: 0 -1px 0 rgba(27, 21, 18, .08), 0 -22px 40px -30px rgba(27, 21, 18, .55); transform-origin: 50% 0; margin-bottom: 8vh; }
.sheet:nth-child(2) { --sheet-bg: #f7dccd; }
.sheet:nth-child(3) { --sheet-bg: var(--paper-light); }
.sheet:nth-child(4) { --sheet-bg: #f7dccd; margin-bottom: 0; }
.sheet__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); padding-block: clamp(1.75rem, 4vw, 3.25rem); min-height: inherit; align-items: start; }
.sheet__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: var(--s5); }
.sheet__exhibit { grid-column: 8 / span 5; padding-top: .5rem; }
.sheet__title { font-weight: 800; font-size: clamp(2.125rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
.sheet__title a { text-decoration: none; }
.sheet__title a:hover { color: var(--ink); text-decoration-line: underline; text-decoration-thickness: 4px; text-underline-offset: .12em; }
.sheet__deck { font-family: var(--serif); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; max-width: 46ch; color: var(--ink); text-wrap: pretty; }

.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: var(--s4) var(--s5); padding-top: var(--s4); border-top: 1px solid rgba(27, 21, 18, .28); max-width: 44rem; }
.meta dt { font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.meta dd { font-size: .9375rem; font-weight: 600; line-height: 1.35; }
.grade { display: inline-flex; align-items: baseline; gap: .35rem; }
.grade b { font-size: 1.375rem; font-weight: 850; letter-spacing: -.02em; line-height: 1; }

.readmore { font-weight: 700; font-size: 1.0625rem; display: inline-flex; align-items: center; gap: .5rem; padding-block: .5rem; align-self: flex-start; }
.readmore svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
.readmore:hover svg { transform: translateX(4px); }

/* exhibits */
.exhibit { display: flex; flex-direction: column; gap: var(--s3); }
.exhibit figcaption, .fig figcaption { font-size: .8125rem; line-height: 1.4; color: var(--ink-soft); font-weight: 500; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ai-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.poster { background: var(--ink); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; box-shadow: 0 2px 2px rgba(27, 21, 18, .15), 0 18px 30px -18px rgba(27, 21, 18, .6); }
.poster svg { display: block; width: 100%; height: 100%; }

/* charts */
.bars { display: flex; flex-direction: column; gap: var(--s3); }
.bar { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: .75rem; font-size: .9375rem; position: relative; }
.bar__label { font-weight: 600; }
.bar__track { height: 1.25rem; position: relative; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--chart-a)); border-radius: 0 4px 4px 0; }
.bar__val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }

.dchart { width: 100%; height: auto; overflow: visible; }
.dchart text { font-family: var(--sans); fill: var(--ink-soft); font-size: 13px; font-weight: 600; font-variant-numeric: lining-nums; }
.dchart .v { fill: var(--ink); font-weight: 700; }
.dchart .axis { stroke: var(--ink); stroke-width: 1.5; }
.dchart .grid { stroke: rgba(27, 21, 18, .14); stroke-width: 1; }
.dchart rect, .dchart path.mark { transition: opacity .2s var(--ease-out); }
.dchart .hit { fill: transparent; cursor: default; }
.dchart:has(.hit:hover) .mark { opacity: .45; }
.dchart .grp:hover .mark { opacity: 1; }

.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 600; line-height: 1.35; padding: .5rem .65rem; border-radius: 3px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(4px); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); max-width: 16rem; }
.tip.on { opacity: 1; transform: none; }
.tip b { font-variant-numeric: tabular-nums; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .8125rem; font-weight: 600; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend i { width: .75rem; height: .75rem; border-radius: 2px; background: var(--c); display: inline-block; }

/* ---------- About ---------- */
.about { padding-block: clamp(4rem, 10vw, 8rem); border-top: var(--rule); }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s8); }
.about__intro { grid-column: 1 / span 7; }
.media { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s5); align-items: start; }
.about__intro p { font-family: var(--serif); font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.55; max-width: 38ch; margin-top: var(--s5); text-wrap: pretty; }
.clip { background: var(--ink); border-radius: 3px; overflow: hidden; box-shadow: 0 2px 2px rgba(27, 21, 18, .15), 0 22px 36px -22px rgba(27, 21, 18, .7); }
.clip video { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink); }
.clip--wide video { aspect-ratio: 16 / 9; }
.clip__cap { color: var(--paper); padding: .9rem 1rem 1rem; font-size: .875rem; line-height: 1.4; }
.clip__cap strong { display: block; font-size: 1rem; }

.cols3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s6); }
.col h3 { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; padding-bottom: var(--s3); border-bottom: 2px solid var(--ink); margin-bottom: var(--s4); }
.timeline li { display: grid; grid-template-columns: 6.25rem 1fr; gap: .75rem; padding-block: .6rem; border-bottom: 1px solid rgba(27, 21, 18, .2); font-size: .9375rem; }
.timeline .yr { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.timeline .what { font-weight: 600; line-height: 1.35; }
.timeline .what small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .875rem; }
.timeline .is-next .what, .timeline .is-next .yr { color: var(--red-ink); }
.tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.tools li { font-size: .875rem; font-weight: 600; padding: .35rem .7rem; border: 1.5px solid var(--ink); border-radius: 999px; }

/* ---------- Colophon ---------- */
.colophon { border-top: var(--rule); padding-block: clamp(3rem, 7vw, 5rem); }
.colophon__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); row-gap: var(--s6); align-items: start; }
.colophon__head { grid-column: 1 / span 5; }
.colophon__head p { font-family: var(--serif); font-size: 1.125rem; line-height: 1.55; margin-top: var(--s4); max-width: 40ch; color: var(--ink); }
.colophon dl { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); }
.colophon dt { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); padding-bottom: .4rem; border-bottom: 2px solid var(--ink); margin-bottom: .6rem; }
.colophon dd { font-size: .9375rem; line-height: 1.5; }
@media (max-width: 64rem) { .colophon__head, .colophon dl { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .colophon dl { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: clamp(4rem, 10vw, 8rem) var(--s7); }
.contact ::selection { background: var(--paper); color: var(--ink); }
.contact__title { font-weight: 850; font-size: clamp(2.75rem, 7vw, 6rem); line-height: .9; letter-spacing: -.035em; max-width: 12ch; }
.contact__lede { font-family: var(--serif); font-size: 1.1875rem; max-width: 40ch; margin-top: var(--s5); color: #f3d4c4; }
.contact__links { margin-top: var(--s7); display: flex; flex-direction: column; gap: var(--s3); }
.contact__links a { font-size: clamp(1.375rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; text-decoration-color: #e05a4e; color: var(--paper); padding-block: .25rem; display: inline-block; width: fit-content; overflow-wrap: anywhere; }
.contact__links a:hover { color: #ffb4a9; }
.contact a:focus-visible { outline-color: #ffb4a9; }
.foot { margin-top: var(--s9); padding-top: var(--s4); border-top: 1px solid rgba(245, 214, 198, .35); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: .8125rem; color: #e3bfae; }
.foot a { color: inherit; text-decoration-color: rgba(245, 214, 198, .5); }

/* ---------- Case page ---------- */
.case-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem); border-bottom: var(--rule); }
.back { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9375rem; text-decoration: none; padding-block: .5rem; margin-bottom: var(--s6); }
.back svg { width: 1rem; height: 1rem; transition: transform .25s var(--ease-out); }
.back:hover { text-decoration-line: underline; }
.back:hover svg { transform: translateX(-3px); }
.case-title { font-weight: 850; font-size: clamp(2.5rem, 6.4vw, 5.75rem); line-height: .95; letter-spacing: -.035em; max-width: 15ch; text-wrap: balance; }
.case-deck { font-family: var(--serif); font-size: clamp(1.1875rem, 1.7vw, 1.5rem); line-height: 1.45; max-width: 42ch; margin-top: var(--s6); text-wrap: pretty; }
.case-head__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); align-items: end; }
.case-head__text { grid-column: 1 / span 7; }
.case-head__exhibit { grid-column: 9 / span 4; }
.case-head__meta { grid-column: 1 / -1; }
.case-head .meta { margin-top: var(--s7); max-width: none; }

.case-body { padding-block: clamp(3rem, 7vw, 5rem); }
.prose-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--s5); }
.sec { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid rgba(27, 21, 18, .28); }
.sec:first-child { border-top: 0; padding-top: 0; }
.sec > h2 { grid-column: 1 / span 4; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; padding-right: var(--s5); margin-bottom: var(--s5); text-wrap: balance; }
.sec > .body { grid-column: 5 / span 8; }
.prose { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.68; max-width: 66ch; font-variation-settings: "opsz" 14; }
.prose > * + * { margin-top: 1em; }
.prose strong { font-weight: 650; }
.prose ul { list-style: none; }
.prose ul li { padding-left: 1.25rem; position: relative; }
.prose ul li + li { margin-top: .45em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 2px; background: var(--red); }
.prose blockquote { font-family: var(--sans); font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin-block: 1.75em; max-width: 30ch; position: relative; padding-top: 1rem; }
.prose blockquote::before { content: ""; position: absolute; top: 0; left: 0; width: 3rem; height: 4px; background: var(--red); }
.prose blockquote cite { display: block; font-size: .875rem; font-weight: 600; font-style: normal; color: var(--ink-soft); margin-top: .75rem; letter-spacing: 0; }
.fig { margin-top: var(--s7); margin-bottom: var(--s3); max-width: 44rem; }
.fig__title { font-size: 1rem; font-weight: 800; margin-bottom: var(--s2); letter-spacing: -.01em; }
.fig__sub { font-size: .875rem; color: var(--ink-soft); margin-bottom: var(--s5); }
.fig figcaption { margin-top: var(--s4); }
.note { font-size: .875rem; color: var(--ink-soft); font-family: var(--sans); line-height: 1.45; }

.plan { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-top: var(--s5); }
.plan th, .plan td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid rgba(27, 21, 18, .22); vertical-align: top; }
.plan th { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.plan td:first-child { font-weight: 700; white-space: nowrap; width: 5.5rem; }
.plan td { font-family: var(--sans); }
.plan .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; }
.plan tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin-top: var(--s6); }
.gallery figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgba(27, 21, 18, .2), 0 14px 24px -16px rgba(27, 21, 18, .5); }
.gallery figcaption { margin-top: .7rem; font-size: .875rem; line-height: 1.45; }
.gallery figcaption b { display: block; font-size: .9375rem; }

.audit { counter-reset: a; display: grid; gap: 0; margin-top: var(--s5); }
.audit li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid rgba(27, 21, 18, .22); font-family: var(--sans); }
.audit .k { font-size: 1.75rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.audit .k small { font-size: .75rem; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); }
.audit p { font-size: .9375rem; line-height: 1.5; }
.audit p b { display: block; font-size: 1rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s5); }
.card { padding: var(--s5); background: var(--paper-light); border-top: 3px solid var(--ink); font-family: var(--sans); }
.card h3 { font-size: 1.1875rem; font-weight: 800; line-height: 1.15; letter-spacing: -.015em; margin-bottom: var(--s3); }
.card p { font-size: .9375rem; line-height: 1.55; }
.card p + p { margin-top: .6em; }

nav.next { border-top: var(--rule); }
nav.next a { display: block; text-decoration: none; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
nav.next span { display: inline-flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 700; margin-top: var(--s4); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
nav.next span svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease-out); }
nav.next a:hover span svg { transform: translateX(4px); }
nav.next strong { display: block; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; transition: color .2s var(--ease-out); }
nav.next a:hover strong { color: var(--red-ink); }

/* ---------- Motion (progressive) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .sheet__text { grid-column: 1 / span 12; }
  .sheet__exhibit { grid-column: 1 / span 12; max-width: 30rem; margin-top: var(--s6); }
  .sec > h2 { grid-column: 1 / -1; }
  .case-head__text, .case-head__exhibit { grid-column: 1 / -1; }
  .case-head__exhibit { max-width: 26rem; margin-top: var(--s6); }
  .sec > .body { grid-column: 1 / -1; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .about__intro { grid-column: 1 / span 12; }
  .media { grid-template-columns: 1fr; }
  .media .clip:not(.clip--wide) { max-width: 26rem; }
}
@media (max-width: 47.99rem) {
  :root { --mast-h: 3.5rem; }
  .mast__name { font-size: 1rem; }
  .mast nav ul { gap: 1rem; }
  .mast nav li.hide-sm { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { grid-column: 1; grid-row: 2; width: min(100%, 26rem); margin-inline: auto; }
  .hero__text { grid-column: 1; grid-row: 1; padding-bottom: var(--s6); }
  .hero__name { margin-bottom: var(--s5); font-size: clamp(2.25rem, 12.4vw, 6rem); }
  .loupe-hint { position: static; margin-top: .75rem; max-width: none; }
  .sheet { position: relative; top: auto; min-height: 0; margin-bottom: 0; box-shadow: none; }
  .sheet__inner { padding-block: var(--s7); }
  .cols3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .duo { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 4.5rem 1fr auto; }
  .audit li { grid-template-columns: 3.75rem 1fr; }
  .plan { font-size: .875rem; }
}
@media (max-width: 26rem) {
  .gallery { grid-template-columns: 1fr; }
}
