*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font: 1.0625rem/1.65 var(--font-body);
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 2rem 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 1rem; }
h2 { font-size: 1.6rem; }
a { color: var(--color-accent); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
pre { background: var(--color-surface); padding: var(--space-3); border-radius: var(--radius); overflow-x: auto; }
:not(pre) > code { background: var(--color-surface); padding: 0.1em 0.35em; border-radius: 4px; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 4px solid var(--color-accent); color: var(--color-muted); }
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th, td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--color-border); }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
main article { max-width: var(--measure); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--space-2); top: var(--space-2); background: var(--color-bg); padding: var(--space-2); z-index: 10; }
.site-header { border-bottom: 1px solid var(--color-border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-3); padding-bottom: var(--space-3); }
.site-header nav { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-header nav a { text-decoration: none; color: var(--color-fg); }
.site-header nav a[aria-current="page"] { color: var(--color-accent); font-weight: 600; }
.brand { text-decoration: none; color: var(--color-fg); display: inline-flex; align-items: center; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-dark { display: inline; }
  .logo-light:has(+ .logo-dark) { display: none; }
}
.hero { padding: var(--space-5) 0 var(--space-4); }
.tagline { font-size: 1.35rem; color: var(--color-muted); margin: 0; }
.site-footer { margin-top: var(--space-5); border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.9rem; }
.site-footer .wrap { padding-top: var(--space-3); padding-bottom: var(--space-4); }
.mode-banner { background: var(--color-accent); color: var(--color-accent-fg); text-align: center; padding: var(--space-2) var(--space-3); font-size: 0.9rem; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 0 0.6em; }
.entries { list-style: none; padding: 0; }
.entries li { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.entries p { margin: 0.25rem 0 0; color: var(--color-muted); }
.entries time { color: var(--color-muted); font-size: 0.9rem; margin-left: 0.5em; }
.coming-soon { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: var(--space-2); padding: var(--space-4); }
.coming-soon .status { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-accent); }
.contact-form { display: grid; gap: var(--space-3); max-width: 32rem; margin: var(--space-4) 0; }
.contact-form label { display: grid; gap: var(--space-1); font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; padding: 0.6rem 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); color: var(--color-fg); }
.contact-form .hp { position: absolute; left: -9999px; }
button { font: inherit; cursor: pointer; padding: 0.6rem 1.1rem; border: 0; border-radius: var(--radius); background: var(--color-accent); color: var(--color-accent-fg); }
.analytics-consent { position: fixed; inset: auto 1rem 1rem 1rem; max-width: 34rem; margin-left: auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3); display: grid; gap: var(--space-3); z-index: 20; box-shadow: 0 8px 30px rgb(0 0 0 / 0.18); }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0; }
.analytics-consent span { display: block; }
.analytics-consent div { display: flex; gap: var(--space-2); justify-content: flex-end; }
.analytics-consent [data-analytics-decline], .analytics-settings { background: transparent; color: var(--color-fg); border: 1px solid var(--color-border); }
.analytics-settings { margin-top: var(--space-2); padding: 0.3rem 0.7rem; font-size: 0.85rem; }

/* ------------------------------------------------------------------
   Puppet Master Design Co. Site styles on top of the scaffold base.
   Every colour/font comes from the brand map in site.config.json
   (--color-*, --font-*); nothing brand-specific is hard-coded here.
   The joke is in the copy: the layout stays straight-faced and premium.
   ------------------------------------------------------------------ */
:root { --measure: 62ch; --maxw: 72rem; --string: var(--color-string, var(--color-border)); }
body { font-size: 1.0625rem; letter-spacing: 0.005em; -webkit-font-smoothing: antialiased; }
::selection { background: var(--color-fg); color: var(--color-bg); }
a { color: var(--color-fg); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

/* Display type: uppercase, heavy, tight, like the wordmark */
h1, h2 { text-transform: uppercase; font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: var(--space-5) 0 var(--space-4); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); margin: 4.5rem 0 1.25rem; max-width: 22ch; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.4rem; }
h3 + p { margin-top: 0; }
/* The puppet string: a hairline dropping onto every section heading */
h2::before { content: ""; display: block; width: 1px; height: 3.5rem; margin: 0 0 1.25rem 0.1em; background: var(--string); }

/* Header */
.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 5; background: var(--color-bg); }
.site-header .wrap { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.site-header .logo { height: 44px; width: auto; vertical-align: middle; }
/* legal pages live in the footer, not the primary nav */
.site-header nav a[href^="/privacy"], .site-header nav a[href^="/terms"] { display: none; }
@media (max-width: 48rem) {
  .site-header .wrap { gap: var(--space-2); }
  .site-header nav { gap: 0.15rem 1.1rem; }
  .site-header nav a { font-size: 0.7rem; letter-spacing: 0.1em; }
}
.site-header nav { gap: var(--space-2) var(--space-4); }
.site-header nav a { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--color-fg); border-bottom-color: var(--color-fg); }

/* Tables: the agency's spec-sheet voice */
table { font-size: 0.97rem; margin: 1.5rem 0 2rem; }
th { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-muted); border-bottom: 1px solid var(--color-fg); padding-bottom: 0.6rem; }
td { padding: 0.85rem 0.75rem; vertical-align: top; }
td:first-child, th:first-child { padding-left: 0; }
td:first-child { white-space: nowrap; }
@media (max-width: 40rem) { td:first-child { white-space: normal; } }

/* Lists */
ol, ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }
li::marker { font-family: var(--font-mono); color: var(--color-muted); }

/* Testimonials and clinical notes */
blockquote { margin: 3.25rem 0 1.5rem; padding: 1.75rem; border: 1px solid var(--color-border); color: var(--color-fg); background: var(--color-bg); position: relative; }
blockquote::before { content: ""; position: absolute; top: -2.5rem; left: 2rem; width: 1px; height: 2.5rem; background: var(--string); }
blockquote p { margin: 0 0 0.75rem; font-size: 1.05rem; }
blockquote p:last-child { margin: 0; }
blockquote strong { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-muted); }

/* Punchlines: a paragraph that is only bold text */
p:not(.line):has(> strong:only-child) { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.2; letter-spacing: -0.005em; margin: 2rem 0; }

/* Films */
video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--color-ink, #000); border: 1px solid var(--color-border); }
p:has(> video) { margin: 2rem 0; }

/* Articles */
main article { max-width: 52rem; padding-bottom: var(--space-5); }
main article > p, main article > ol, main article > ul { max-width: var(--measure); }
.entries { margin-top: 2rem; border-top: 1px solid var(--color-fg); }
.entries li { padding: 1.5rem 0; margin: 0; }
.entries a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.35rem; text-decoration: none; }
.entries a:hover { text-decoration: underline; }

/* ---------------- Home ----------------
   The hero is a full-bleed stage-grey band on a 12-column grid: copy on the left, the primary
   artwork hung from the header on a single string on the right. Under it, the photograph and the
   film sit side by side as an asymmetric 7/5 pair. */
:root { --gutter: 1.5rem; --band: var(--color-stage, var(--color-surface)); --hero-pad: clamp(3rem, 7vw, 6rem); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: var(--color-surface); } }
:root[data-theme="dark"] { --band: var(--color-surface); }

main:has(> .hero) { display: flex; flex-wrap: wrap; column-gap: var(--gutter); align-items: flex-start; counter-reset: fig film; }
main:has(> .hero) > * { flex: 1 1 100%; min-width: 0; }
main:has(> .hero) > p, main:has(> .hero) > ol { max-width: var(--measure); }

.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start;
  text-align: left; padding: var(--hero-pad) 0 calc(var(--hero-pad) * 0.9);
  background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
}
.hero-copy { grid-column: 1 / 8; grid-row: 1; }
.hero-art { grid-column: 8 / 13; grid-row: 1; align-self: center; position: relative; }
/* the string the whole artwork hangs from, dropping from the header rule to the control bar */
.hero-art::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 100vh; background: var(--string); }
.hero-art img { display: block; width: 100%; height: auto; }
.hero h1 {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; line-height: 1.4;
  color: var(--color-muted); margin: 0 0 1.75rem; max-width: none;
}
.hero h1::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; }
.hero .tagline {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.25rem, 6.4vw, 4.75rem); line-height: 0.95; letter-spacing: -0.025em;
  color: var(--color-fg); max-width: 11ch; margin: 0; text-wrap: balance;
}
.hero h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: 0.01em; line-height: 1.25;
  margin: 2.5rem 0 0.9rem; padding-top: 1.25rem; border-top: 1px solid var(--color-fg); max-width: 30rem; text-wrap: balance;
}
.hero h2::before { display: none; }
.hero-copy > p:not(.tagline):not(.links) { max-width: 30rem; margin: 0; }
.hero .links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; font-size: 0; }
.hero .links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.35rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none; color: var(--color-fg); border: 1px solid var(--color-fg);
  transition: background-color var(--pm-duration-fast, 120ms) ease, color var(--pm-duration-fast, 120ms) ease;
}
.hero .links a:first-child, .hero .links a:hover { background: var(--color-fg); color: var(--band); }
.hero .links a:first-child:hover { background: transparent; color: var(--color-fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-art img { filter: invert(1); } }
:root[data-theme="dark"] .hero-art img { filter: invert(1); }

/* the photograph and the film: a 7/5 pair, bottoms aligned, captioned */
main:has(> .hero) > figure { margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; }
main:has(> .hero) > figure.photo:has(+ figure.film) { flex: 0 1 calc((100% - var(--gutter)) * 7 / 12); }
main:has(> .hero) > figure.photo + figure.film { flex: 0 1 calc((100% - var(--gutter)) * 5 / 12); align-self: flex-end; }

/* ---- Home sections: each h2 and its content is a <section> (see sectionize in layout.mjs) ---- */
main:has(> .hero) > .section { margin-top: clamp(4rem, 8vw, 7rem); }
.section > h2 { margin-top: 0; }
.section > p, .section > ol { max-width: var(--measure); }
/* link rows outside the hero: mono labels with an arrow, separators dropped */
.section > p.links { display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; font-size: 0; margin: 1.75rem 0 0; max-width: none; }
.section > p.links a {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none;
}
.section > p.links a::after { content: "\2192"; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; transition: transform var(--pm-duration-fast, 120ms) ease; }
.section > p.links a:hover { text-decoration: underline; }
.section > p.links a:hover::after { transform: translateX(3px); }

/* the process: five steps, each hanging on its own string */
.section:has(> #our-proven-process) ol { list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: none; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.section:has(> #our-proven-process) li { counter-increment: step; position: relative; margin: 0; padding: 1.1rem 0 1.25rem 4rem; border-top: 1px solid var(--color-border); color: var(--color-muted); }
.section:has(> #our-proven-process) li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.15rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--color-fg); }
.section:has(> #our-proven-process) li strong { display: block; margin-bottom: 0.2rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; letter-spacing: -0.005em; color: var(--color-fg); }
@media (min-width: 64rem) {
  .section:has(> #our-proven-process) ol { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 4rem; }
  .section:has(> #our-proven-process) li { padding: 1.1rem 0 0; border-top: 1px solid var(--color-fg); }
  .section:has(> #our-proven-process) li::before { position: static; display: block; margin-bottom: 1.5rem; }
  .section:has(> #our-proven-process) li::after { content: ""; position: absolute; left: 0; bottom: 100%; width: 1px; height: 2.5rem; background: var(--string); }
  .section:has(> #our-proven-process) li:nth-child(2)::after { height: 1.5rem; }
  .section:has(> #our-proven-process) li:nth-child(3)::after { height: 3.25rem; }
  .section:has(> #our-proven-process) li:nth-child(4)::after { height: 2rem; }
  .section:has(> #our-proven-process) li:nth-child(5)::after { height: 2.75rem; }
}

/* services: a 2x2 grid of entries rather than a two-column table */
.section:has(> #what-we-do) table, .section:has(> #what-we-do) tbody, .section:has(> #what-we-do) tr, .section:has(> #what-we-do) td { display: block; width: auto; }
.section:has(> #what-we-do) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.section:has(> #what-we-do) table { margin: 2.5rem 0 0; border: 0; }
.section:has(> #what-we-do) tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--gutter); }
.section:has(> #what-we-do) tr { padding: 1.25rem 0 1.5rem; border: 0; border-top: 2px solid var(--color-fg); }
.section:has(> #what-we-do) td { padding: 0; border: 0; white-space: normal; }
.section:has(> #what-we-do) td:first-child { margin-bottom: 0.5rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.1; color: var(--color-fg); }
.section:has(> #what-we-do) td + td { color: var(--color-muted); max-width: 40ch; }
@media (min-width: 48.01rem) { .section:has(> #what-we-do) tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the AI section: headline left, argument right, on a surface band */
.section:has(> #ai-did-the-design-nobody-did-the-thinking) {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: var(--color-surface); box-shadow: 0 0 0 100vmax var(--color-surface); clip-path: inset(0 -100vmax);
}
@media (min-width: 64rem) {
  .section:has(> #ai-did-the-design-nobody-did-the-thinking) { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
  .section:has(> #ai-did-the-design-nobody-did-the-thinking) > h2 { grid-column: 1 / 7; grid-row: 1 / 3; align-self: start; margin: 0; font-size: clamp(2rem, 3.6vw, 3rem); }
  .section:has(> #ai-did-the-design-nobody-did-the-thinking) > p { grid-column: 8 / 13; margin: 0; }
  .section:has(> #ai-did-the-design-nobody-did-the-thinking) > p.links { margin-top: 1.5rem; }
}

/* testimonials: a carousel-free wall, each quote on its own string */
.wall { columns: 1; column-gap: var(--gutter); padding-top: 3.25rem; margin-top: 1rem; }
.wall > blockquote { break-inside: avoid; margin: 0 0 3.25rem; display: block; }
.wall > blockquote:nth-child(3n + 2)::before { height: 1.75rem; top: -1.75rem; }
.wall > blockquote:nth-child(3n)::before { height: 3rem; top: -3rem; }
@media (min-width: 40rem) { .wall { columns: 2; } }
@media (min-width: 64rem) { .wall { columns: 3; } }

/* the guarantee: a certificate hung on two strings, then the closing line on the same ink band */
.section:has(> #the-puppet-master-guarantee), .section:has(> #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it) {
  background: var(--color-fg); color: var(--color-bg); box-shadow: 0 0 0 100vmax var(--color-fg); clip-path: inset(0 -100vmax);
}
.section:has(> #the-puppet-master-guarantee) { position: relative; padding: clamp(5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; }
.section:has(> #the-puppet-master-guarantee) > * { position: relative; max-width: 40rem; margin-left: auto; margin-right: auto; }
.section:has(> #the-puppet-master-guarantee)::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: clamp(3rem, 6vw, 4.5rem); bottom: 0;
  width: min(100%, 48rem); border: 1px solid var(--color-muted); outline: 1px solid var(--color-muted); outline-offset: -8px;
}
.section:has(> #the-puppet-master-guarantee)::after {
  content: ""; position: absolute; top: 0; height: clamp(3rem, 6vw, 4.5rem); left: 50%; transform: translateX(-50%);
  width: min(70%, 32rem); border-left: 1px solid var(--color-muted); border-right: 1px solid var(--color-muted);
}
.section > #the-puppet-master-guarantee { max-width: 20ch; margin-bottom: 1.25rem; padding-top: 1rem; }
.section > #the-puppet-master-guarantee::before { display: none; }
.section:has(> #the-puppet-master-guarantee) > p { color: var(--color-bg); padding: 0 1.5rem; }
.section:has(> #the-puppet-master-guarantee) > p:has(> strong:only-child) { margin: 1.75rem auto 0; padding-bottom: 2.5rem; font-size: clamp(1.15rem, 2.4vw, 1.6rem); max-width: 28ch; }
.section:has(> #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it) { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem); margin-top: 0 !important; }
.section > #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it { font-size: clamp(1.8rem, 5vw, 4rem); max-width: 18ch; line-height: 0.98; letter-spacing: -0.02em; }
.section > #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it::before { background: var(--color-muted); }
.section:has(> #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it) > p { color: var(--color-bg); font-size: 1.15rem; margin: 1.5rem 0 0; }
.section:has(> #we-know-what-we-re-doing-you-re-just-not-letting-us-do-it) a { color: var(--color-bg); font-weight: 600; text-decoration-thickness: 2px; }
main:has(> .hero) + .site-footer { margin-top: 0; }

@media (max-width: 48rem) {
  .hero { --hero-pad: 2.75rem; grid-template-columns: minmax(0, 1fr); }
  .hero-art { grid-column: 1; grid-row: 1; align-self: start; width: min(66%, 18rem); margin: calc(var(--hero-pad) * -1 + 1.5rem) auto 2.25rem; }
  .hero-copy { grid-column: 1; grid-row: 2; }
  .hero .tagline { font-size: clamp(2rem, 11vw, 2.75rem); }
  .hero h2 { margin-top: 2rem; }
  .hero .links { gap: 0.5rem; }
  .hero .links a { flex: 1 1 auto; justify-content: center; }
  main:has(> .hero) > figure.photo:has(+ figure.film), main:has(> .hero) > figure.photo + figure.film { flex-basis: 100%; }
  main:has(> .hero) > figure { margin-top: 2rem; }
}

/* ---------------- Figures (home and case files) ---------------- */
main figure { margin: 2rem 0; min-width: 0; }
main figure img, main figure video { display: block; }
figure.photo { counter-increment: fig; }
figure.film { counter-increment: film; }
figcaption { display: flex; gap: 0.9rem; align-items: baseline; margin-top: 0.75rem; font-size: 0.85rem; line-height: 1.45; color: var(--color-muted); max-width: 60ch; }
figcaption::before { flex: none; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-fg); }
figure.photo figcaption::before { content: "Fig. " counter(fig, decimal-leading-zero); }
figure.film figcaption::before { content: "Film " counter(film, decimal-leading-zero); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Footer */
.site-footer { font-size: 0.8rem; letter-spacing: 0.02em; }
.site-footer a { color: var(--color-muted); }

/* Coming soon */
.coming-soon .logo { width: min(80vw, 520px); height: auto; margin: 0 auto 1.5rem; }
.coming-soon h1 { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.24em; color: var(--color-muted); margin: 0 auto; max-width: none; }
.coming-soon .tagline { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 5vw, 3rem); line-height: 1.05; color: var(--color-fg); margin: 0 auto; max-width: 16ch; }
.coming-soon .status { color: var(--color-muted); }

/* Logo swap and artwork inversion also follow a theme forced by the style tool */
:root[data-theme="dark"] .logo-dark { display: inline; }
:root[data-theme="dark"] .logo-light:has(+ .logo-dark) { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="light"] .logo-dark { display: none; }
  :root[data-theme="light"] .logo-light:has(+ .logo-dark) { display: inline; }
}

/* Photography: black-and-white editorial, full width of the column */
p:has(> img[src*="/photos/"]) { margin: 2rem 0; max-width: none; }
img[src*="/photos/"] { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); }

/* Client controls (style tool) */
.style-tool { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; font-family: var(--font-body); }
.style-tool-toggle { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 0.7rem 1rem; border-radius: 0; background: var(--color-fg); color: var(--color-bg); border: 1px solid var(--color-fg); position: relative; }
.style-tool-toggle::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 1.25rem; background: var(--string); }
:root[data-client-meddled] .style-tool-toggle::after { content: " •"; }
.style-tool-panel { width: min(22rem, calc(100vw - 2rem)); background: var(--color-bg); color: var(--color-fg); border: 1px solid var(--color-fg); padding: 1.25rem; display: grid; gap: 0.9rem; box-shadow: 0 12px 30px rgb(0 0 0 / 0.18); }
.style-tool-panel[hidden] { display: none; }
.style-tool-title { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; }
.style-tool-themes { border: 0; padding: 0; margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.style-tool-themes legend, .style-tool-field { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-muted); padding: 0; margin-bottom: 0.4rem; }
.style-tool-themes label { font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.style-tool-field { display: grid; gap: 0.35rem; }
.style-tool-field select { font: 0.9rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--color-fg); background: var(--color-bg); border: 1px solid var(--color-border-strong, var(--color-border)); padding: 0.5rem; border-radius: 0; }
.style-tool-verdict { margin: 0; font-size: 0.85rem; color: var(--color-muted); font-style: italic; min-height: 1.3em; }
.style-tool-reset { justify-self: start; font-size: 0.8rem; padding: 0.5rem 0.8rem; border-radius: 0; background: transparent; color: var(--color-fg); border: 1px solid var(--color-fg); }
.style-tool-reset:hover, .style-tool-toggle:hover { text-decoration: underline; }
.style-tool :focus-visible { outline: 3px solid var(--color-fg); outline-offset: 2px; }
@media print { .style-tool { display: none; } }

/* ---------------- Mobile navigation ----------------
   .js-nav is set by nav.js; without it the toggle stays hidden and the links stay visible. */
.nav-toggle { display: none; }
@media (max-width: 64rem) {
  .site-header .wrap { flex-wrap: nowrap; gap: var(--space-2); padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-header .logo { height: 36px; }
  .js-nav .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto;
    min-height: 44px; padding: 0 0.25rem 0 0.75rem; border-radius: 0;
    background: transparent; color: var(--color-fg); border: 0;
    font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  }
  .js-nav .nav-toggle[hidden] { display: none; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: currentColor; transition: transform 160ms ease, opacity 160ms ease;
  }
  .nav-toggle-bars { position: relative; order: 2; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .js-nav .site-header nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 0.25rem var(--space-3) 1rem;
    background: var(--color-bg); border-bottom: 1px solid var(--color-fg);
    box-shadow: 0 18px 30px rgb(0 0 0 / 0.12); max-height: calc(100dvh - 60px); overflow-y: auto;
  }
  .js-nav .site-header.nav-open nav { display: flex; }
  .js-nav .site-header nav a {
    font-size: 0.95rem; letter-spacing: 0.1em; padding: 1rem 0; border-bottom: 1px solid var(--color-border);
  }
  .js-nav .site-header nav a[aria-current="page"] { border-bottom-color: var(--color-border); }
  .js-nav .site-header nav a[aria-current="page"]::before { content: "\2014  "; }
  /* legal pages are reachable from the menu on mobile too */
  .js-nav .site-header nav a[href^="/privacy"], .js-nav .site-header nav a[href^="/terms"] { display: block; font-size: 0.75rem; color: var(--color-muted); }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; } }

/* ---------------- Mobile layout ---------------- */
@media (max-width: 48rem) {
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); margin: 2rem 0 1.25rem; }
  h2 { font-size: clamp(1.35rem, 6.2vw, 1.7rem); margin: 3rem 0 1rem; }
  h2::before { height: 2rem; margin-bottom: 0.9rem; }
  main article { padding-bottom: 2rem; }
  p:has(> img[src*="/photos/"]), p:has(> video) { margin: 1.5rem 0; }
  blockquote { padding: 1.25rem; }
  .site-footer { margin-top: 2rem; }
}

/* Tables become stacked cards on phones: two cramped columns read worse than one. */
@media (max-width: 40rem) {
  main table, main thead, main tbody, main tr, main td { display: block; width: 100%; }
  main thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  main tr { padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
  main td { padding: 0; border: 0; }
  main td:first-child { font-weight: 700; margin-bottom: 0.25rem; }
  main td:not(:first-child) { color: var(--color-muted); }
  main table { border-top: 1px solid var(--color-fg); }
}

/* Client controls: a compact corner button on phones instead of a wide bar over the content. */
@media (max-width: 48rem) {
  .style-tool { right: 0.75rem; bottom: 0.75rem; }
  .style-tool-toggle { width: 48px; height: 48px; padding: 0; font-size: 0; letter-spacing: 0; display: grid; place-items: center; }
  .style-tool-toggle::after { content: "Aa"; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0; text-transform: none; }
  :root[data-client-meddled] .style-tool-toggle::after { content: "Aa\2022"; }
  .style-tool-toggle::before { display: none; }
  .style-tool-panel { width: calc(100vw - 1.5rem); max-height: 70dvh; overflow-y: auto; }
}

/* ---------------- Transcript lines ("Speaker:" paragraphs) ---------------- */
p.line .speaker { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; margin-right: 0.4em; }

/* ---------------- Case files: listing ----------------
   A listing with photography is a grid of file cards; each card hangs on its own string. */
main article.listing { max-width: none; }
main article.listing > .entries-cards { max-width: none; }
.entries-cards { list-style: none; padding: 0; margin: 4.5rem 0 0; border-top: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4.5rem var(--gutter); }
.entries-cards .entry-card { position: relative; display: flex; flex-direction: column; padding: 0; margin: 0; border: 0; }
.entry-card::before { content: ""; position: absolute; left: 2rem; bottom: 100%; width: 1px; height: 3rem; background: var(--string); }
.entry-thumb { order: -1; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-surface); }
.entry-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--pm-duration-slow, 320ms) var(--pm-ease-standard, ease); }
.entry-card:hover .entry-thumb img { transform: scale(1.025); }
.entries-cards .entry-card > a { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; text-decoration: none; font-family: inherit; font-size: inherit; text-transform: none; }
/* the whole card is the link target */
.entries-cards .entry-card > a::after { content: ""; position: absolute; inset: 0; }
.entries-cards .entry-card > a:focus-visible { outline: none; }
.entry-card:has(> a:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 6px; }
.entry-kicker { display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); }
.entry-kicker::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.entry-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--color-fg); }
.entry-card:hover .entry-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.entries-cards .entry-card p { margin: 0.6rem 0 0; color: var(--color-muted); max-width: 46ch; }
@media (min-width: 48.01rem) { .entries-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- Case files: the dossier ----------------
   Header strip, the photograph as a mounted exhibit beside a spec sheet, then numbered
   sections with their headings on a left rail. 12 columns from 64rem. */
main article.dossier { max-width: none; counter-reset: fig section; --sec: clamp(3.5rem, 6vw, 5rem); }
.dossier > h1 { max-width: none; margin: clamp(2rem, 5vw, 4rem) 0 clamp(1.75rem, 3vw, 2.5rem); }
.dossier > h1 .kicker {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.24em; line-height: 1.4; color: var(--color-muted);
}
.dossier > h1 .kicker::after { content: ""; flex: 1; height: 1px; background: var(--color-fg); }
.dossier > h1 .title { display: block; font-size: clamp(2.25rem, 6vw, 4.75rem); line-height: 0.95; letter-spacing: -0.025em; max-width: 13ch; text-wrap: balance; }

/* exhibits: mounted prints with a lettered caption */
.dossier figure { counter-increment: fig; padding: 0.75rem; border: 1px solid var(--color-border-strong); background: var(--color-bg); }
.dossier figure img, .dossier figure video { border: 0; }
.dossier figure figcaption::before { content: "Exhibit " counter(fig, upper-alpha); }
.dossier > h1 + figure { margin-top: 0; }

/* the spec sheet */
.dossier table { margin: 2rem 0; border-top: 2px solid var(--color-fg); font-size: 0.95rem; }
.dossier thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dossier table, .dossier tbody, .dossier tr, .dossier td { display: block; width: auto; }
.dossier tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.dossier tr { padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
.dossier td { padding: 0; border: 0; white-space: normal; color: var(--color-fg); font-weight: 400; }
.dossier td:first-child { margin-bottom: 0.3rem; font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-muted); }
.dossier td:first-child strong { font-weight: 500; }
.dossier td + td { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
/* the diagnosis: the last line of the sheet, inverted like a stamp */
.dossier tbody tr:last-child { grid-column: 1 / -1; margin-top: 1rem; padding: 1rem 1.15rem 1.1rem; border: 0; background: var(--color-fg); }
.dossier tbody tr:last-child td { color: var(--color-bg); }
.dossier tbody tr:last-child td + td { font-weight: 700; text-transform: uppercase; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.1; letter-spacing: -0.005em; }

/* numbered sections */
.dossier > h2 {
  counter-increment: section; position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  max-width: none; margin: var(--sec) 0 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--color-fg);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.1;
}
.dossier > h2::before { position: absolute; bottom: 100%; left: 0; height: 2.75rem; margin: 0; }
.dossier > h2::after { content: counter(section, decimal-leading-zero); order: -1; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; color: var(--color-muted); }
.dossier > p, .dossier > blockquote { max-width: var(--measure); }

/* the consultation, as a transcript */
.dossier > p.line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.2rem; margin: 0; padding: 0.95rem 0; border-bottom: 1px solid var(--color-border); font-size: 1.1rem; line-height: 1.45; }
.dossier > p.line .speaker { color: var(--color-muted); margin: 0; font-size: 0.7rem; letter-spacing: 0.14em; }
.dossier > h2 + p.line { padding-top: 0; }

/* the prescription */
.dossier > blockquote { margin-top: 3.25rem; padding: 1.5rem 1.75rem; border: 0; border-left: 2px solid var(--color-fg); background: var(--color-surface); }
.dossier > blockquote::before { left: 0; }
.dossier > blockquote p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.35; }

/* the way out */
.dossier > p.links { margin: 2.5rem 0 0; }
.dossier > p.links a, .pager a { text-decoration: none; }
.dossier > p.links a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.dossier > p.links a::before { content: "\2190"; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; }
.dossier > p.links a:hover { text-decoration: underline; }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: var(--sec); padding-top: 1.25rem; border-top: 2px solid var(--color-fg); }
.pager a { display: flex; flex-direction: column; gap: 0.45rem; min-height: 44px; padding: 0.25rem 0; color: var(--color-fg); }
.pager-next { text-align: right; align-items: flex-end; }
.pager-label { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted); }
.pager-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.1; }
.pager a:hover .pager-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.pager-prev .pager-title::before { content: "\2190\00a0"; }
.pager-next .pager-title::after { content: "\00a0\2192"; }

@media (max-width: 40rem) {
  /* the exhibit runs edge to edge on phones */
  .dossier > h1 + figure { margin-left: calc(var(--space-3) * -1); margin-right: calc(var(--space-3) * -1); border-left: 0; border-right: 0; }
  .dossier tbody { grid-template-columns: minmax(0, 1fr); }
  .dossier tr:not(:last-child) { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; }
  .dossier tr:not(:last-child) td:first-child { margin: 0; font-weight: 400; }
  .dossier tr:not(:last-child) td + td { font-size: 1rem; color: var(--color-fg); }
  .dossier > blockquote { padding: 1.25rem; }
  .dossier > h2::before { height: 1.75rem; }
}

@media (min-width: 64rem) {
  main article.dossier { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .dossier > * { grid-column: 4 / 11; min-width: 0; }
  .dossier > h1, .dossier > .pager { grid-column: 1 / -1; }
  .dossier > h1 + figure { grid-column: 1 / 9; margin-bottom: 0; }
  .dossier > h1 + figure + table { grid-column: 9 / 13; margin: 0; }
  .dossier > h1 + figure + table tbody { grid-template-columns: minmax(0, 1fr); }
  /* section headings on the left rail, level with the first line of their section */
  .dossier > h2 { grid-column: 1 / 4; margin-bottom: 0; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .dossier > h2 + * { margin-top: var(--sec); padding-top: 1.1rem; border-top: 1px solid var(--color-fg); }
  .dossier > h2 + p.line { margin-top: var(--sec); padding-top: 1.1rem; }
  .dossier > p.line { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--gutter); }
  .dossier > p.line .speaker { padding-top: 0.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-thumb img, .hero .links a { transition: none; }
  .entry-card:hover .entry-thumb img { transform: none; }
}

/* ---------------- Footer: brand, site map, parody note, legal ---------------- */
.site-footer { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--color-fg); font-size: 0.85rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem var(--gutter); padding-top: 3rem; padding-bottom: 2.5rem; }
.footer-brand .logo { height: 40px; width: auto; }
.footer-tagline { margin: 1rem 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1rem; line-height: 1.15; color: var(--color-fg); max-width: 16ch; }
.footer-note { margin: 0.75rem 0 0; color: var(--color-muted); max-width: 34ch; }
.footer-note a { color: var(--color-fg); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); }
.footer-nav li { margin: 0; border-top: 1px solid var(--color-border); }
.footer-nav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; text-decoration: none; color: var(--color-fg); }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); color: var(--color-muted); font-size: 0.78rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--color-muted); }
@media (min-width: 48.01rem) {
  .site-footer .wrap { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / 6; }
  .footer-nav { grid-column: 7 / 13; }
  .footer-nav ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-legal { grid-column: 1 / -1; }
}

/* ---------------- Client controls, docked in the header on small screens ---------------- */
.style-tool-docked { position: static; flex-direction: row; margin-left: auto; z-index: auto; }
.style-tool-docked + .nav-toggle { margin-left: 0.25rem !important; }
.style-tool-docked .style-tool-toggle {
  width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 0; letter-spacing: 0;
  background: transparent; color: var(--color-fg); border: 1px solid var(--color-border-strong, var(--color-border));
}
.style-tool-docked .style-tool-toggle::before { display: none; }
.style-tool-docked .style-tool-toggle::after { content: "Aa"; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; text-transform: none; }
:root[data-client-meddled] .style-tool-docked .style-tool-toggle::after { content: "Aa\2022"; }
.style-tool-docked .style-tool-panel { position: absolute; top: 100%; right: var(--space-3); width: min(22rem, calc(100vw - 2rem)); max-height: 75dvh; overflow-y: auto; }

/* ---------------- Film library: poster grid, duration on every film ---------------- */
figure.film { position: relative; }
figure.film[data-duration]::after {
  content: attr(data-duration); position: absolute; top: 0.6rem; right: 0.6rem; padding: 0.3rem 0.5rem; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; line-height: 1; background: var(--color-fg); color: var(--color-bg);
}
.dossier figure.film[data-duration]::after { top: 1.35rem; right: 1.35rem; }
main article.library { max-width: none; }
.library > p { max-width: var(--measure); }
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3.5rem var(--gutter); margin: 3rem 0 0; }
.film-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.film-card > h2, .film-card > h3 { order: 2; margin: 1.1rem 0 0.4rem; max-width: none; }
.film-card > h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.film-card > h2::before { display: none; }
.film-card > figure { order: 1; margin: 0; }
.film-card > p { order: 3; margin: 0.25rem 0 0; color: var(--color-muted); max-width: 52ch; }
.film-card > p a { color: var(--color-fg); }
.film-card::before { content: ""; position: absolute; left: 2rem; bottom: 100%; width: 1px; height: 2.25rem; background: var(--string); }
@media (min-width: 48.01rem) {
  .film-grid-h2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-grid-h3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .section > p.links a::after { transition: none; } }

/* ---------------- Services: "What we do" cards and the price-list sign ---------------- */
#what-we-do + p + table { width: min(calc(var(--maxw) - 2 * var(--space-3)), calc(100vw - 2 * var(--space-3))); max-width: none; margin: 3.5rem 0 1rem; border: 0; }
#what-we-do + p + table thead, #price-list + table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#what-we-do + p + table tbody { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem var(--gutter); }
#what-we-do + p + table tr { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.4rem; border: 1px solid var(--color-fg); background: var(--color-bg); }
#what-we-do + p + table tr::before { content: ""; position: absolute; left: 1.5rem; bottom: 100%; width: 1px; height: 3rem; background: var(--string); }
#what-we-do + p + table tr:nth-child(3n + 2)::before { height: 2rem; }
#what-we-do + p + table tr:nth-child(3n)::before { height: 2.5rem; }
#what-we-do + p + table td { display: block; padding: 0; border: 0; white-space: normal; margin: 0; }
#what-we-do + p + table td:first-child { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.1rem; line-height: 1.15; color: var(--color-fg); }
#what-we-do + p + table td:first-child strong { font-weight: 700; }
#what-we-do + p + table td:first-child code { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.3rem 0.5rem; border-radius: 0; background: var(--color-fg); color: var(--color-bg); }
#what-we-do + p + table td + td { color: var(--color-muted); font-size: 0.95rem; line-height: 1.55; }
@media (min-width: 40rem) { #what-we-do + p + table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { #what-we-do + p + table tbody { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the price list: the sign every designer has pinned to the wall, set in the house mono */
#price-list + table { display: block; max-width: 46rem; margin: 2.5rem 0 0; padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 1.25rem; background: var(--color-fg); color: var(--color-bg); outline: 1px solid var(--color-fg); outline-offset: 6px; border: 0; font-family: var(--font-mono); }
#price-list + table tbody { display: block; }
#price-list + table tbody::before { content: "\2014\00a0\00a0Price list\00a0\00a0\2014"; display: block; text-align: center; padding-bottom: 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--color-muted); font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; }
#price-list + table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 0.8rem 0; border: 0; border-bottom: 1px dashed var(--color-muted); }
#price-list + table tr:last-child { border-bottom: 0; }
#price-list + table td { display: block; width: auto; padding: 0; border: 0; margin: 0; color: var(--color-bg); font-size: 0.82rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; white-space: normal; }
#price-list + table td + td { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
#price-list + table + p { max-width: 46rem; margin: 1.75rem 0 0; font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.6; letter-spacing: 0.04em; color: var(--color-muted); }
#price-list + table + p + p { margin-top: 2rem; }

/* ---------------- Pick two ---------------- */
main article.pick-two-page { max-width: none; }
.pick-two-page > h1 { max-width: 16ch; }
.pick-two-page > p { max-width: var(--measure); }
.pick-two { margin-top: 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem var(--gutter); }
.pick-two[hidden] { display: none; }
/* the control bar and three strings; pulling a string lifts its tile */
.pt-rig { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); padding-top: 7rem; }
.pt-bar { position: absolute; top: 1.5rem; left: 0; right: 0; height: 4px; background: var(--color-fg); }
.pt-bar::before, .pt-bar::after { content: ""; position: absolute; top: -0.6rem; width: 4px; height: calc(0.6rem + 4px); background: var(--color-fg); }
.pt-bar::before { left: 0; }
.pt-bar::after { right: 0; }
.pt-option {
  position: relative; display: grid; align-content: space-between; gap: 1.5rem; min-height: 9rem; padding: 1.1rem 1.1rem 1rem; text-align: left;
  background: var(--color-bg); color: var(--color-fg); border: 1px solid var(--color-fg); border-radius: 0;
  transition: transform var(--pm-duration-slow, 320ms) var(--pm-ease-emphasis, ease), background-color var(--pm-duration-base, 200ms) ease, color var(--pm-duration-base, 200ms) ease;
}
.pt-option::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 12rem; background: var(--string); }
.pt-option[aria-pressed="true"] { transform: translateY(-3.5rem); background: var(--color-fg); color: var(--color-bg); }
.pt-option[aria-pressed="true"]::before { background: var(--color-fg); }
.pt-option:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 4px; }
.pt-option-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 4.5vw, 3rem); line-height: 0.95; letter-spacing: -0.02em; }
.pt-option-state { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.85; }
.pt-option.pt-dropped { animation: pt-drop 420ms var(--pm-ease-emphasis, ease); }
@keyframes pt-drop { 0% { transform: translateY(-3.5rem); } 70% { transform: translateY(0.6rem); } 100% { transform: translateY(0); } }
.pt-message { min-height: 1.6em; margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.3rem); }
/* the estimate: a spec sheet with the verdict stamped on it */
.pt-quote { border-top: 2px solid var(--color-fg); padding-top: 1.25rem; }
.pt-quote[hidden] { display: none; }
.pt-quote-kicker, .pt-score dt, .pt-sheet dt, .pt-missing { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-muted); margin: 0; }
.pt-quote-name { margin: 0.5rem 0 1.25rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -0.02em; }
.pt-sheet { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; }
.pt-sheet > div { padding: 0.8rem 0; border-bottom: 1px solid var(--color-border); }
.pt-sheet dd { margin: 0.3rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.pt-verdict { margin: 1.25rem 0 0.75rem; padding: 1rem 1.15rem 1.1rem; background: var(--color-fg); color: var(--color-bg); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.15; }
.pt-score { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); margin: 0; border-top: 2px solid var(--color-fg); }
.pt-score > div { padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
.pt-score dd { margin: 0.35rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.pt-reset { justify-self: start; min-height: 48px; padding: 0 1.35rem; background: transparent; color: var(--color-fg); border: 1px solid var(--color-fg); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.pt-reset:hover { background: var(--color-fg); color: var(--color-bg); }
/* the no-JS version */
.pt-outcomes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem var(--gutter); }
.pt-outcome { margin: 0; padding-top: 1rem; border-top: 2px solid var(--color-fg); }
.pt-outcome h3 { margin: 0 0 0.75rem; text-transform: uppercase; }
@media (min-width: 48.01rem) {
  .pt-outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pick-two .pt-sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
}
@media (min-width: 64rem) {
  .pick-two { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .pt-rig, .pt-message { grid-column: 1 / -1; }
  .pt-quote { grid-column: 1 / 8; }
  .pt-score { grid-column: 9 / 13; grid-template-columns: minmax(0, 1fr); }
  .pt-reset { grid-column: 9 / 13; }
  .pick-two:not(.pt-has-quote) .pt-score, .pick-two:not(.pt-has-quote) .pt-reset { grid-column: 1 / 6; }
}
@media (max-width: 40rem) {
  .pt-rig { gap: 0.5rem; }
  .pt-option { min-height: 7.5rem; padding: 0.8rem 0.7rem; }
  .pt-option-label { font-size: clamp(1.1rem, 6vw, 1.6rem); }
  .pt-option-state { font-size: 0.6rem; letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-option { transition: none; }
  .pt-option.pt-dropped { animation: none; }
}
#price-list + table th { color: var(--color-bg); }
@media (min-width: 64.01rem) and (max-width: 75rem) { .site-header nav { column-gap: 1.1rem; } .site-header nav a { font-size: 0.72rem; letter-spacing: 0.1em; } }
