@font-face { font-family: "Mazius Display"; src: url("fonts/MaziusDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mazius Display"; src: url("fonts/MaziusDisplay-Extraitalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
/* Rony Mikhael — shared design system
   Tokens, fluid type, grid, theme, components */

:root {
  --bg: #f4f1ec;
  --bg-alt: #ebe7e0;
  --ink: #141413;
  --ink-soft: #55524c;
  --line: #d4cfc6;
  --accent: #b4401f;
  --font: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(2.8rem, 1.2rem + 7vw, 8rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1440px;
}

/* Tone system: dark by default; sections marked data-tone="light" fade the whole page to the light palette as they pass mid-screen */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #111110; }
@property --bg-alt { syntax: "<color>"; inherits: true; initial-value: #1a1a18; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #f1eee8; }
@property --ink-soft { syntax: "<color>"; inherits: true; initial-value: #a29e95; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #2f2e2b; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e07a55; }
:root {
  --bg: #111110; --bg-alt: #1a1a18; --ink: #f1eee8; --ink-soft: #a29e95; --line: #2f2e2b; --accent: #e07a55;
  --inv-bg: #f4f1ec; --inv-ink: #141413; --inv-soft: #55524c; --inv-line: #d4cfc6; --inv-accent: #b4401f;
  color-scheme: dark;
}
:root[data-tone="light"] {
  --bg: #f4f1ec; --bg-alt: #ebe7e0; --ink: #141413; --ink-soft: #55524c; --line: #d4cfc6; --accent: #b4401f;
  --inv-bg: #111110; --inv-ink: #f1eee8; --inv-soft: #a29e95; --inv-line: #2f2e2b; --inv-accent: #e07a55;
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  :root { transition: --bg .5s cubic-bezier(.4,0,.2,1), --bg-alt .5s cubic-bezier(.4,0,.2,1), --ink .5s cubic-bezier(.4,0,.2,1), --ink-soft .5s cubic-bezier(.4,0,.2,1), --line .5s cubic-bezier(.4,0,.2,1), --accent .5s cubic-bezier(.4,0,.2,1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Type */
.eyebrow { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1.5rem; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.display { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-4); letter-spacing: -0.02em; line-height: 1; }
.display em, .next-case h2 em { font-style: italic; }
h2 { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.02em; line-height: 1.04; }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.2; }
.lede { font-size: var(--step-1); line-height: 1.35; max-width: 34ch; letter-spacing: -0.01em; }
.muted { color: var(--ink-soft); }
.accent { color: var(--accent); }
.serif-em { font-style: italic; font-weight: 400; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.logo { font-weight: 600; font-size: .9em; text-transform: uppercase; letter-spacing: .16em; text-decoration: none; }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); align-items: center; font-size: var(--step--1); }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); font: inherit; font-size: var(--step--1); cursor: pointer; padding: .5rem 0; }
@media (max-width: 760px) {
  .site-header { backdrop-filter: none; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; }
  /* Full-screen navigation */
  .nav { --bg: var(--inv-bg); --ink: var(--inv-ink); --ink-soft: var(--inv-soft); --line: var(--inv-line); --accent: var(--inv-accent); color: var(--ink); position: fixed; inset: 0; z-index: 1; background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; padding: 5rem var(--gutter) 2.5rem; overflow-y: auto; font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.035em; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
  .nav.open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
  .nav a { display: block; padding: .15em 0; }
  .nav   body.menu-open { overflow: hidden; }
  body.menu-open .logo, body.menu-open .menu-btn { color: var(--inv-ink); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .nav, .nav.open { transition: none; } }

/* Sections */
section { padding: clamp(4rem, 9vw, 9rem) 0; }
.hairline { border-top: 1px solid var(--line); }
.hero { padding-top: clamp(3rem, 8vw, 8rem); padding-bottom: clamp(4rem, 9vw, 9rem); position: relative; overflow: hidden; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg { position: absolute; inset: 0; z-index: -1; container-type: size; pointer-events: none; opacity: .32; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), transparent 35%, transparent 60%, var(--bg)); }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } }
.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); align-items: end; }
.hero-grid .display { grid-column: 1 / -1; }
.hero-grid .lede { grid-column: 1 / span 6; }
.hero-grid .hero-cta { grid-column: 9 / -1; justify-self: end; }
@media (max-width: 900px) {
  .hero-grid .lede, .hero-grid .hero-cta { grid-column: 1 / -1; justify-self: start; }
}

.btn { display: inline-block; border: 1px solid var(--ink); border-radius: 999px; padding: .85rem 1.6rem; text-decoration: none; font-size: var(--step-0); transition: background .2s, color .2s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.solid { background: var(--ink); color: var(--bg); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Video */
.video-frame { margin-top: clamp(2.5rem, 6vw, 5rem); aspect-ratio: 16 / 9; background: var(--bg-alt); border: 1px solid var(--line); position: relative; overflow: hidden; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); font-size: var(--step--1); text-align: center; padding: 1rem; }

/* Two-column text blocks */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem var(--gutter); }
.split > .label { grid-column: 1 / span 3; }
.split > .body { grid-column: 4 / -1; }
@media (max-width: 900px) { .split > .label, .split > .body { grid-column: 1 / -1; } }
.statement { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.15; max-width: 26ch; }
.prose p { max-width: 60ch; margin: 0 0 1.25em; color: var(--ink-soft); }
.prose p:first-child { color: var(--ink); }

/* Impact accordion */
.accordion { border-top: 1px solid var(--ink); margin-top: 3rem; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger { width: 100%; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1rem; align-items: baseline; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: 1.6rem 0; cursor: pointer; }
.acc-trigger:hover .acc-title { color: var(--accent); }
.acc-num { font-size: var(--step--1); color: var(--ink-soft); }
.acc-title { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.12; transition: color .2s; }
.acc-icon { font-size: var(--step-2); line-height: 1; transition: transform .3s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon { transform: rotate(45deg); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc-panel > div { overflow: hidden; }
.acc-trigger[aria-expanded="true"] + .acc-panel { grid-template-rows: 1fr; }
.acc-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem var(--gutter); padding: 0 0 2.25rem calc(3.5rem + 1rem); align-items: start; }
.acc-content .copy { grid-column: 1; }
.acc-content .copy p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 48ch; }
.acc-content .tags { font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.25rem; }
.acc-content .media { grid-column: 2; margin: 0; }
.acc-content .media img { display: block; width: 100%; height: auto; max-height: 28rem; object-fit: contain; object-position: left top; }
@media (max-width: 760px) {
  .acc-trigger { grid-template-columns: 2.75rem 1fr auto; }
  .acc-content { grid-template-columns: minmax(0, 1fr); padding-left: calc(2.75rem + 1rem); }
  .acc-content .copy, .acc-content .media { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .acc-panel, .acc-icon { transition: none; } }

/* Engagement cards */
.engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 3rem; border-top: 1px solid var(--ink); }
.engagement { padding: 2rem 2rem 2.5rem 0; border-right: 1px solid var(--line); }
.engagement:not(:first-child) { padding-left: 2rem; }
.engagement:last-child { border-right: 0; }
.engagement p { color: var(--ink-soft); margin: 1rem 0 0; }
@media (max-width: 900px) {
  .engagements { grid-template-columns: 1fr; }
  .engagement, .engagement:not(:first-child) { padding: 1.75rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Sector lists */
.sectors-primary { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1.5rem 2rem; margin-top: 2.5rem; font-size: var(--step-1); letter-spacing: -0.02em; }
@media (min-width: 1000px) { .sectors-primary span { white-space: nowrap; } }
@media (max-width: 999px) { .sectors-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; } }
.sectors-all { columns: 3 14rem; column-gap: 2rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--ink-soft); }
.sectors-all li { padding: .3rem 0; border-bottom: 1px solid var(--line); break-inside: avoid; }

/* Quote */
.quote { font-size: var(--step-2); letter-spacing: -0.02em; line-height: 1.2; max-width: 30ch; margin: 0; }
.quote-by { margin-top: 1.5rem; color: var(--ink-soft); font-size: var(--step--1); }

/* Journal teasers */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem var(--gutter); margin-top: 3rem; }
.post { border-top: 1px solid var(--ink); padding-top: 1rem; }
.post .cat { font-size: var(--step--1); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.post h3 { margin: .6rem 0 0; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* Timeline (experience) */
.timeline { margin-top: 3rem; border-top: 1px solid var(--ink); }
.t-row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem var(--gutter); padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.t-row .when { color: var(--ink-soft); font-size: var(--step--1); padding-top: .35rem; }
.t-row p { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) { .t-row { grid-template-columns: 1fr; } }

/* Case study */
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ink); font-size: var(--step--1); }
.cs-meta dt { color: var(--ink-soft); margin-bottom: .3rem; }
.cs-meta dd { margin: 0; }
@media (max-width: 760px) { .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cs-hero { margin-top: 3rem; aspect-ratio: 16 / 9; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: var(--step--1); }
.cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: 3rem; }
.cs-gallery .ph { aspect-ratio: 4 / 3; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: var(--step--1); }
.cs-gallery .ph.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .cs-gallery { grid-template-columns: 1fr; } }

/* CTA + footer */
.cta { text-align: left; }
.cta .display { max-width: 16ch; }
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { text-decoration: none; }
.site-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Placeholder marker: remove once real content is in */
.todo { outline: 1px dashed var(--accent); outline-offset: 3px; }

/* Culture statement + testimonials */
.testimonials { display: grid; margin-top: 1rem; }
.t-slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.t-slide.is-active { opacity: 1; visibility: visible; }
.t-quote { margin: 0; font-size: var(--step-1); line-height: 1.4; letter-spacing: -0.01em; max-width: 52ch; }
.t-slide .quote-by { margin-top: 1.75rem; }
.t-slide .quote-by strong { color: var(--ink); font-weight: 500; }
.t-controls { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; font-size: var(--step--1); color: var(--ink-soft); flex-wrap: wrap; }
.t-btn { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .4rem .9rem; font: inherit; cursor: pointer; }
.t-btn:hover { border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .t-slide { transition: none; } }

/* Speaking tables */
.table-wrap { margin-top: 2rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.data-table caption { text-align: left; font-size: var(--step-1); letter-spacing: -0.02em; color: var(--ink); padding-bottom: 1rem; }
.data-table th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: .75rem 1rem .75rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.data-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table td:nth-child(2) { color: var(--ink); font-size: var(--step-0); letter-spacing: -0.01em; }
.data-table td:nth-child(3) { color: var(--ink-soft); }
@media (max-width: 760px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { border-top: 1px solid var(--ink); padding: 1rem 0; }
  .data-table td { border: 0; padding: .25rem 0; }
  .data-table td::before { content: attr(data-label); display: block; font-size: var(--step--1); color: var(--ink-soft); }
}
@media (max-width: 760px) { .data-table caption { display: block; width: 100%; } }

/* Results list inside accordion */
.results { list-style: none; margin: 0 0 1rem; padding: 0; max-width: 48ch; }
.results li { padding: .55rem 0; border-top: 1px solid var(--line); color: var(--ink); }
.results li:last-child { border-bottom: 1px solid var(--line); }

/* Journal landing */
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.pill { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-size: var(--step--1); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill .n { opacity: .6; margin-left: .35rem; }
.filter-bar { padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 4rem; z-index: 40; background: var(--bg); }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 9rem 9rem minmax(0, 1fr) auto; gap: 1rem var(--gutter); align-items: baseline; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.entry[hidden] { display: none; }
.entry .when, .entry .cat { font-size: var(--step--1); color: var(--ink-soft); }
.entry .cat { text-transform: uppercase; letter-spacing: .08em; }
.entry h2 { font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.1; }
.entry h2 a { text-decoration: none; }
.entry h2 a:hover { color: var(--accent); }
.entry p { margin: .75rem 0 0; color: var(--ink-soft); max-width: 56ch; }
.entry .go { font-size: var(--step-1); }
.entries-empty { padding: 3rem 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  .entry { grid-template-columns: 1fr; gap: .35rem; padding: 1.5rem 0; }
  .entry .go { display: none; }
  .filter-bar { top: 4rem; }
}

/* Case study additions */
.cs-hero img, .cs-gallery .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-hero:has(img), .cs-gallery .ph:has(img) { border: 0; }
.cs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: var(--step-0); }
.cs-list li { padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.credits dt { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: .25rem; }
.next-case h2 { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-3); letter-spacing: -0.02em; margin: 1rem 0 0; }
.next-case h2 a { text-decoration: none; }

.cs-hero { grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.cs-gallery .ph { min-width: 0; overflow: hidden; }
@media (max-width: 760px) { .cs-gallery { grid-template-columns: minmax(0, 1fr); } }
.quote.long { font-size: var(--step-1); max-width: 52ch; line-height: 1.35; }

/* Involvement line in case-study hero */
.cs-involve { margin: 2rem 0 0; font-size: var(--step--1); max-width: 70ch; }
.cs-involve-label { display: block; color: var(--ink-soft); margin-bottom: .3rem; }
.cs-involve + .cs-meta { margin-top: 1.5rem; }

/* Hanging punctuation: opening quotation marks sit in the margin */
.quote, .t-quote { text-indent: -0.42em; }

/* Floating image that follows the mouse over Impact accordion triggers (fine pointers only) */
.peek { position: fixed; left: 0; top: 0; z-index: 50; width: max-content; max-width: clamp(14rem, 26vw, 24rem); pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); will-change: transform, opacity; background: transparent; border: 0; overflow: visible; line-height: 0; transition: opacity .2s ease; }
.peek.is-on { opacity: 1; }
.peek img { width: auto; height: auto; max-width: 100%; max-height: min(26rem, 62vh); object-fit: contain; display: block; }
.peek-ph { width: 18rem; height: 12rem; line-height: 1.4; display: grid; place-items: center; color: var(--ink-soft); font-size: var(--step--1); border: 1px dashed var(--ink-soft); box-sizing: border-box; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* Full-width media flow for case studies (images, gifs, video at natural proportions) */
.cs-hero.has-media { aspect-ratio: auto; display: block; border: 0; background: none; }
.cs-hero.has-media img, .cs-hero.has-media video, .cs-media img, .cs-media video { display: block; width: 100%; height: auto; }
.cs-media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: row dense; align-items: start; gap: var(--gutter); margin-top: 3rem; }
.cs-media .m { grid-column: 1 / -1; min-width: 0; background: var(--bg-alt); }
.cs-media .m.half { grid-column: span 6; }
.cs-media .m.third { grid-column: span 4; }
.cs-media .m.quarter { grid-column: span 3; }
.cs-media .m.mid { grid-column: 3 / span 8; }
.cs-media .m.mark { grid-column: 5 / span 4; background: none; }
@media (max-width: 760px) { .cs-media .m.half, .cs-media .m.mid { grid-column: 1 / -1; } .cs-media .m.third, .cs-media .m.quarter { grid-column: span 6; } .cs-media .m.mark { grid-column: 3 / span 8; } }
.cs-media .video-embed { aspect-ratio: 16 / 9; background: #000; }
.cs-media .video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Case studies take on the colour of their own project page (Behance / studiomined.com) */
:root.cs-themed:not(#x) {
  --bg: var(--cs-bg); --bg-alt: var(--cs-alt); --ink: var(--cs-ink); --ink-soft: var(--cs-soft); --line: var(--cs-line); --accent: var(--cs-ink);
  --inv-bg: var(--cs-ink); --inv-ink: var(--cs-bg); --inv-soft: var(--cs-soft); --inv-line: var(--cs-line); --inv-accent: var(--cs-bg);
}
:root.cs-themed:not(#x) { color-scheme: light; }
:root.cs-themed:not(#x) body { background: var(--cs-bg); color: var(--cs-ink); }
.cs-themed :root.cs-dark:not(#x) { color-scheme: dark; }

/* ===== Motion system ===== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .3s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s ease .12s both; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-group(site-header) { animation-duration: .4s; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Reveal: fade up and in */
.js [data-r] { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js [data-r].in { opacity: 1; transform: none; will-change: auto; }

/* Media: lands slightly smaller, enlarges into place while the picture settles inside */
.js [data-r="media"] { transform: translate3d(0, 56px, 0) scale(.93); overflow: hidden; border-radius: 2px; transition-duration: 1.1s, 1.3s; }
.js [data-r="media"].in { transform: none; }
.js [data-r="media"] > img, .js [data-r="media"] > video, .js [data-r="media"] > picture > img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-r="media"].in > img, .js [data-r="media"].in > video, .js [data-r="media"].in > picture > img { transform: none; }

/* Hairlines draw across */
.js .hairline { position: relative; border-top-color: transparent; }
.js .hairline::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out); }
.js .hairline.in::before { transform: scaleX(1); }

/* Headline: words rise out of a mask */
.js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .wi { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms + 120ms); }
.js .split-h.in .wi { transform: none; }

/* Scroll progress (case studies) */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none; }

/* Hover micro-interactions */
.nav a:not(.btn), .site-footer a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); padding-bottom: 2px; }
.nav a:not(.btn):hover, .site-footer a:hover { background-size: 100% 1px; }
.nav a[aria-current="page"] { text-decoration: none; background-size: 100% 1px; }

.btn { position: relative; overflow: hidden; isolation: isolate; transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .5s var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease-out); z-index: -1; }
.btn:hover, .btn.solid:hover { background: transparent; color: var(--bg); }
.btn.solid { background: var(--ink); }
.btn.solid::before { background: var(--accent); }
.btn:hover::before { transform: none; }
.btn.solid:hover { border-color: var(--accent); color: #fff; }

.entry { transition: padding .5s var(--ease-out); }
.entry h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease-out), color .2s; }
.entry:hover h2 a { background-size: 100% 2px; }
.entry .go { transition: transform .5s var(--ease-out); display: inline-block; }
.entry:hover .go { transform: translateX(.5rem); }
.acc-title { transition: color .2s, transform .5s var(--ease-out); }
.acc-trigger:hover .acc-title { transform: translateX(.6rem); }
.next-case h2 a { display: inline-block; transition: transform .6s var(--ease-out); }
.next-case h2 a:hover { transform: translateX(.75rem); }
.engagement { transition: background-color .4s; }
.logo { transition: letter-spacing .5s var(--ease-out); }
.logo:hover { letter-spacing: .22em; }
.cs-media .m img, .cs-media .m video { transition: transform 1.8s var(--ease-out); }

@media (prefers-reduced-motion: reduce) { .progress { display: none; } }

/* Solid buttons always hover to the standard orange, including on themed case-study pages */
.btn.solid::before { background: var(--btn-hover, var(--accent)); }
.btn.solid:hover { border-color: var(--btn-hover, var(--accent)); }
:root.cs-themed:not(#x) { --btn-hover: #b4401f; }

/* Next case study: same left-to-right 1px underline as the other links */
.next-case h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: .08em; text-decoration: none; transition: background-size .6s var(--ease-out), transform .6s var(--ease-out); }
.next-case h2 a:hover { text-decoration: none; background-size: 100% 1px; }

/* Typography: balanced headings, no orphans or widows */
h1, h2, h3, h4, .display, .lede, .quote, .t-quote, .acc-title, .eyebrow, caption, figcaption { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
.data-table td:nth-child(5) a.listen, a.listen { white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); padding-bottom: 2px; text-decoration: none; }
a.listen:hover { background-size: 100% 1px; }
@media (max-width: 760px) {
  .nav a[aria-current="page"] { font-family: "Mazius Display", var(--font); font-style: italic; font-weight: 400; background-size: 0 1px; letter-spacing: -0.01em; }
}

/* Book a call */
.calls-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.currency { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.cur { font: inherit; font-size: .85rem; letter-spacing: .08em; border: 0; background: transparent; color: var(--ink-soft); padding: .4rem 1rem; border-radius: 999px; cursor: pointer; transition: background-color .35s var(--ease-out), color .35s var(--ease-out); }
.cur[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2rem; border-top: 1px solid var(--ink); }
.call { display: flex; flex-direction: column; padding: 2rem 2rem 2.5rem 0; border-right: 1px solid var(--line); }
.call:not(:first-child) { padding-left: 2rem; }
.call:last-child { border-right: 0; }
.call-meta { margin: .9rem 0 0; color: var(--ink-soft); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.call-price { margin: 1.25rem 0 0; font-family: var(--font); font-size: var(--step-1); font-weight: 500; line-height: 1.2; letter-spacing: -0.015em; }
.call-blurb { margin: 1.25rem 0 0; color: var(--ink-soft); }
.call-list { margin: 1.25rem 0 2rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.call-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .95em; }
.call .btn { margin-top: auto; align-self: flex-start; }
.calls-note { margin-top: 2rem; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) {
  .calls { grid-template-columns: 1fr; }
  .call, .call:not(:first-child) { padding: 1.75rem 0 2rem; border-right: 0; border-bottom: 1px solid var(--line); }
}

.call-price sup { font-family: var(--font); font-size: .6em; font-weight: 500; letter-spacing: .08em; vertical-align: super; line-height: 0; margin-left: .25em; color: var(--ink-soft); }
.contact-list { margin: 2.5rem 0 0; border-top: 1px solid var(--ink); }
.contact-list > div { display: grid; grid-template-columns: minmax(7rem, 1fr) 3fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contact-list dt { color: var(--ink-soft); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-list dd { margin: 0; overflow-wrap: anywhere; min-width: 0; font-size: var(--step-1); letter-spacing: -0.01em; }
.contact-list a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); padding-bottom: 2px; }
.contact-list a:hover { background-size: 100% 1px; }

.call-price .sym { font-family: var(--font); font-size: .45em; font-weight: 500; vertical-align: baseline; margin-right: .12em; letter-spacing: 0; }

.data-table .host { display: block; margin-top: .25rem; color: var(--ink-soft); font-size: .85em; }

/* Nav button */
.nav .btn { padding: .6rem 1.2rem; font-size: inherit; background-image: none; }
.nav .btn[aria-current="page"] { background-size: 0 0; }
@media (max-width: 760px) { .nav .btn { display: inline-flex; margin-top: 1.25rem; padding: .9rem 1.6rem; font-size: var(--step-0); } }
.nav .btn { letter-spacing: 0; font-weight: 500; }

/* Arrow links: animated underline, arrow nudges in its own direction */
a.has-arr { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease-out); }
a.has-arr:hover, a.has-arr:focus-visible { background-size: 100% 1px; }
a.has-arr .arr { display: inline-block; transition: transform .45s var(--ease-out); }
a.has-arr:hover .arr, a.has-arr:focus-visible .arr { transform: translateX(5px); }
a.has-arr.arr-ne:hover .arr, a.has-arr.arr-ne:focus-visible .arr { transform: translate(4px, -4px); }
.next-case h2 a.has-arr:hover { transform: none; }

/* Mobile menu footer */
.nav-foot { display: none; }
@media (max-width: 760px) {
  .nav-foot { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .nav .nav-foot a { display: inline-block; padding: 0 0 2px; font-size: .95rem; font-family: var(--font); font-style: normal; letter-spacing: 0; }
  .nav .nav-mail { font-size: 1.05rem; }
  .nav-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .9rem; color: var(--ink-soft); }
}

.call-name { margin: 0; font-family: "Mazius Display", var(--font); font-style: normal; font-weight: 400; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }

/* Behind-the-scenes grid: three across, natural aspect ratios (masonry columns) */
.cs-grid3 { column-count: 3; column-gap: var(--gutter); margin-top: 3rem; }
.cs-grid3 figure { margin: 0 0 var(--gutter); break-inside: avoid; background: var(--bg-alt); overflow: hidden; }
.cs-grid3 img { display: block; width: 100%; height: auto; transition: transform 1.8s var(--ease-out); }
.cs-grid3 figure:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .cs-grid3 { column-count: 2; } }
@media (max-width: 560px) { .cs-grid3 { column-count: 1; } }
@media (prefers-reduced-motion: reduce) { .cs-grid3 img { transition: none; } .cs-grid3 figure:hover img { transform: none; } }

/* Book page: cancellation policy */
.policy-acc { margin-top: 4rem; }
.policy-acc .acc-trigger { grid-template-columns: 1fr auto; }
.policy-acc .acc-title { font-size: var(--step-1); }
.policy { padding-bottom: 1.5rem; }
.policy dl { margin: .5rem 0 0; border-top: 1px solid var(--line); }
.policy dl > div { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.policy dt { color: var(--ink-soft); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.policy dd { margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .policy dl > div { grid-template-columns: 1fr; gap: .25rem; } }

/* Text selection: a new hue from the button orange's family on every selection (set in script.js) */
:root { --sel-h: 13; }
::selection { background: hsl(var(--sel-h) 82% 58%); color: #14110f; text-shadow: none; }
::-moz-selection { background: hsl(var(--sel-h) 82% 58%); color: #14110f; text-shadow: none; }

/* ---------- Space hero (index-b test) ---------- */
.space-hero { position: relative; height: 340vh; height: 340svh; }
.space-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 900px; perspective-origin: 50% 50%; isolation: isolate; }
.space-field { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.space-item { position: absolute; left: 50%; top: 50%; width: var(--w, 16vw); height: auto; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; opacity: 0; backface-visibility: hidden; }
.space-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 42% 38% at 50% 50%, color-mix(in srgb, var(--bg) 85%, transparent), transparent 80%); }
.space-copy { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.space-copy a { pointer-events: auto; }
.space-copy .display { max-width: 15ch; transition: none; font-size: clamp(2.6rem, 1rem + 5.2vw, 6.5rem); text-wrap: balance; margin: 0; }
.space-copy .eyebrow { margin-bottom: 1.75rem; }
.space-reveal { display: grid; justify-items: center; gap: 1.75rem; margin-top: 2.25rem; max-width: 34rem; }
.space-reveal .lede { margin: 0; text-wrap: balance; }
.space-reveal .hero-cta { margin: 0; }
.space-cue { position: relative; margin: 1.75rem 0 0; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); transform: translateY(calc(-1 * var(--lede-h, 0px))); transition: transform .9s var(--ease-out); }
.space-cue::after { content: ""; display: block; width: 1px; height: 2.5rem; margin: .6rem auto 0; background: currentColor; transform-origin: top; animation: cue 1.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.js .space-reveal > * { opacity: 0; transform: translateY(1.25rem); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .space-reveal > .hero-cta { transition-delay: .12s; }
.space-hero.revealed .space-reveal > * { opacity: 1; transform: none; }
.space-hero.revealed .space-cue { transform: none; }
@media (max-width: 760px) { .space-hero { height: 280vh; height: 280svh; } .space-stage { perspective: 700px; } }
/* No-motion fallback: a still constellation, everything visible */
@media (prefers-reduced-motion: reduce) {
  .space-hero { height: auto; }
  .space-stage { position: relative; height: 100svh; min-height: 40rem; }
  .space-cue { display: none; }
}

@media (min-width: 900px) { .space-copy .display { max-width: 17.5ch; } }
.space-copy { will-change: transform; }
/* Nav stays out of the way until the hero has played */
[data-space-nav] .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background-color .5s, border-color .5s, backdrop-filter .5s; }
[data-space-nav] .site-header .menu-btn, [data-space-nav] .site-header .nav > a { opacity: 0; transform: translateY(.6rem); visibility: hidden; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s .55s; transition-delay: 0s; }
[data-space-nav].nav-in .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom-color: var(--line); backdrop-filter: blur(10px); }
[data-space-nav].nav-in .site-header .menu-btn, [data-space-nav].nav-in .site-header .nav > a { opacity: 1; transform: none; visibility: visible; transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), visibility 0s; transition-delay: calc(var(--i, 0) * 70ms); }
@media (max-width: 760px) { [data-space-nav] .site-header .nav > a { opacity: 1; transform: none; visibility: visible; } }
@media (prefers-reduced-motion: reduce) { [data-space-nav] .site-header { position: sticky; } [data-space-nav] .site-header * { transition: none !important; } }

/* Hero name eyebrow + editorial intro (index-b) */
.space-copy .eyebrow-name { color: #fff; opacity: 1; }
.intro-note { padding-block: clamp(5rem, 12vw, 11rem) clamp(4rem, 9vw, 8rem); }
.intro-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter, 1.5rem); align-items: start; }
.intro-text { grid-column: 1 / span 9; margin: 0; font-family: "Mazius Display", var(--font); font-weight: 400; font-size: clamp(1.75rem, 1rem + 2.4vw, 3.4rem); line-height: 1.14; letter-spacing: -0.015em; text-wrap: pretty; hanging-punctuation: first; }
.intro-text a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.intro-text sup { font-size: .42em; line-height: 0; vertical-align: baseline; position: relative; top: -1.05em; }
.intro-text .intro-mark button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: .5em .45em; margin: -.5em -.4em; line-height: 1; touch-action: manipulation; }
.intro-text .intro-rgd { font-family: var(--font); letter-spacing: .06em; margin-left: .2em; top: -1.3em; font-size: .3em; }
.intro-caption { grid-column: 10 / span 3; justify-self: end; max-width: 17rem; margin: .6em 0 0; color: var(--ink-soft); text-wrap: balance; }
@media (max-width: 900px) {
  .intro-text { grid-column: 1 / -1; }
  .intro-caption { grid-column: 1 / -1; justify-self: start; margin-top: 2rem; max-width: 22rem; }
}

/* Logo arrives by the travelling name; keep its hover */
[data-space-nav] .site-header .logo { opacity: 0; visibility: hidden; }
[data-space-nav].nav-in .site-header .logo { opacity: 1; visibility: visible; }
.name-traveler { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; white-space: nowrap; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; margin: 0; }
/* Intro: lines rise out of a mask */
.js .intro-text.split-lines .w-sup { overflow: visible; }
.js .intro-text.split-lines .w-sup .wi { transform: translate3d(0, .6em, 0); opacity: 0; transition: transform 1.1s var(--ease-out), opacity .8s; transition-delay: calc(var(--i, 0) * 110ms + 200ms); }
.js .intro-text.split-lines .wi { transition-delay: calc(var(--i, 0) * 110ms + 100ms); }
.js .intro-text.split-lines.in .wi { transform: none; opacity: 1; }
/* Asterisk: highlighter sweep on the note */
.intro-caption .hl-target { background-image: linear-gradient(hsl(8 82% 62%), hsl(8 82% 62%)); background-repeat: no-repeat; background-size: 0% 100%; background-position: 0 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: .1em .2em; margin: 0 -.2em; transition: background-size .8s var(--ease-out), color .4s; }
.intro-caption.hl .hl-target { background-size: 100% 100%; color: #14110f; }
@media (prefers-reduced-motion: reduce) { .intro-caption .hl-target { transition: none; } }

/* ---------- Journal entries ---------- */
.e-hero .eyebrow a { color: inherit; text-decoration: none; }
.e-hero .eyebrow a:hover { color: var(--ink); }
.e-title { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 6rem); max-width: 18ch; text-wrap: balance; }
.e-dek { margin-top: 1.75rem; color: var(--ink-soft); }
.e-cover-band { padding-top: 0; }
.e-cover { margin: 0; }
.e-cover img { display: block; width: 100%; max-height: 82vh; object-fit: cover; }
.e-cover figcaption, .e-fig figcaption { margin-top: .75rem; font-size: var(--step--1); color: var(--ink-soft); }
.e-cover figcaption a, .e-fig figcaption a { color: inherit; }
.e-body-band { padding-top: clamp(3rem, 7vw, 6rem); }
.entry-body { --col: 40rem; max-width: 66rem; margin: 0 auto; font-size: clamp(1.06rem, 1rem + .25vw, 1.2rem); line-height: 1.62; }
.entry-body > :is(p, ul, ol, h3, h4, blockquote, hr) { max-width: var(--col); margin-left: auto; margin-right: auto; }
.entry-body > p { margin-top: 0; margin-bottom: 1.3em; }
.entry-body > p:first-child::first-line { font-weight: 500; }
.entry-body a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.entry-body a:hover { color: var(--accent); }
.entry-body h3 { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.015em; margin-top: 2.4em; margin-bottom: .7em; text-wrap: balance; }
.entry-body h4 { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin-top: 2.6em; margin-bottom: 1em; }
.entry-body ul, .entry-body ol { padding-left: 1.2em; margin-top: 0; margin-bottom: 1.4em; }
.entry-body li { margin-bottom: .35em; }
.entry-body blockquote { font-family: "Mazius Display", var(--font); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; margin-top: 1.6em; margin-bottom: 1.6em; padding: 0; text-wrap: balance; }
.entry-body hr { border: 0; border-top: 1px solid var(--line); margin-top: 2.5em; margin-bottom: 2.5em; }
.entry-body .aside { color: var(--ink-soft); padding-left: 1.25rem; border-left: 1px solid var(--line); }
.entry-body .e-fig { margin: 0; }
.entry-body .e-fig img { display: block; width: 100%; height: auto; }
.entry-body > .e-wide { margin: 2.6em auto; max-width: 56rem; }
.e-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 1.2vw, 1rem); margin: 2.6em 0; align-items: start; }
.e-gallery.e-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.e-gallery .e-fig img { aspect-ratio: 4 / 5; object-fit: cover; }
.e-gallery .e-fig:only-child, .e-gallery .e-fig:last-child:nth-child(odd):not(.e-3 *) { grid-column: 1 / -1; }
.e-gallery .e-fig:last-child:nth-child(odd):not(.e-3 *) img { aspect-ratio: 16 / 9; }
.e-foot { max-width: 40rem; margin: 3.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); }
.e-foot p { margin: 0 0 .5rem; }
.e-foot a { color: inherit; }
.e-pager { padding-block: clamp(2.5rem, 5vw, 4rem); }
.e-pager .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.e-next { display: grid; gap: .6rem; text-decoration: none; color: inherit; }
.e-next:last-child { text-align: right; justify-items: end; }
.e-next .eyebrow { margin: 0; }
.e-next-title { font-family: "Mazius Display", var(--font); font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; transition: color .2s; }
.e-next:hover .e-next-title { color: var(--accent); }
@media (max-width: 760px) {
  .e-gallery.e-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .e-pager .wrap { grid-template-columns: 1fr; }
  .e-next:last-child { text-align: left; justify-items: start; }
}

/* Full-width nav bar (keeps the site margin) */
.site-header .wrap { max-width: none; }
/* Journal CTA */
.journal-cta .contact-list { max-width: 48rem; }
.e-cover, .entry-body .e-fig { background: var(--bg-alt); }

.cs-hero .m picture, .cs-media .m picture { display: block; }
.cs-hero .m picture img, .cs-media .m picture img { display: block; width: 100%; height: auto; }
/* Hanging punctuation: a leading mark sits outside the text edge */
.hang-mark { position: absolute; right: 100%; padding-right: .3em; }
.intro-caption { position: relative; }

/* links inside the line reveal rise as one piece so the underline stays whole */
.js .intro-text .w-link { white-space: nowrap; padding-bottom: .2em; margin-bottom: -.2em; }

/* Homepage journal cards */
.post > a { display: grid; gap: .7rem; color: inherit; text-decoration: none; }
.post-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); margin-bottom: .4rem; }
.post-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post > a:hover .post-img img { transform: scale(1.04); }
.post h3 { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-1); line-height: 1.12; letter-spacing: -0.01em; margin: 0; text-wrap: balance; transition: color .2s; }
.post > a:hover h3 { color: var(--accent); }
.post:has(.post-img) { border-top: 0; padding-top: 0; }

/* Impact on touch screens: image under each title */
.acc-thumb { display: none; }
@media (hover: none), (pointer: coarse) {
  .acc-item.has-thumb .acc-thumb { display: block; grid-column: 2 / -1; margin-top: 1.1rem; overflow: hidden; line-height: 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
  .acc-thumb img { display: block; width: auto; max-width: 100%; height: auto; max-height: 62vw; transform: scale(1.18) translate3d(0, 6%, 0); transform-origin: 50% 100%; transition: transform 1.5s var(--ease-out); }
  .acc-item.has-thumb .acc-thumb.in { clip-path: inset(0 0 0 0); }
  .acc-thumb.in img { transform: none; }
  .acc-item.has-thumb .acc-content .media { display: none; }
  .acc-item.has-thumb .acc-icon { grid-row: 1; grid-column: 3; }
  .acc-item.has-thumb .acc-num, .acc-item.has-thumb .acc-title { grid-row: 1; }
  .acc-item.has-thumb .acc-content { grid-template-columns: minmax(0, 1fr); }
  .acc-trigger:hover .acc-title { transform: none; }
  .entry.has-thumb .acc-thumb { display: block; margin: .9rem 0 1rem; overflow: hidden; line-height: 0; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); }
  .entry.has-thumb .acc-thumb.in { clip-path: inset(0 0 0 0); }
  .entry.has-thumb .acc-thumb img { width: 100%; height: auto; max-height: none; object-fit: contain; }
}
@media (prefers-reduced-motion: reduce) { .acc-thumb, .acc-thumb img { transition: none !important; clip-path: none !important; transform: none !important; } }

/* Mobile menu must cover the screen even when the header has a backdrop blur */
body.menu-open .site-header, [data-space-nav].menu-open .site-header { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
[data-space-nav].menu-open .site-header .menu-btn, [data-space-nav].menu-open .site-header .logo { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 900px) { [data-space-nav].nav-in .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; transition: background-color .5s, border-color .5s; } }

/* ---------- Journal v2: editorial grid ---------- */
.jgrid-band { padding-top: clamp(2rem, 4vw, 3.5rem); }
.jgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); align-items: start; }
.jcard { grid-column: span 4; min-width: 0; }
.jcard[hidden] { display: none; }
.jcard > a, .jcard figure > a { display: grid; gap: .75rem; color: inherit; text-decoration: none; }
.jcard-img { display: block; overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 5; transition: transform .6s var(--ease-out); will-change: transform; }
.jcard-img img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.0); transition: transform .9s var(--ease-out); }
.jcard-meta { font-size: var(--step--1); color: var(--ink-soft); margin-top: .35rem; }
.jcard-title { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: var(--step-2); line-height: 1.06; letter-spacing: -0.015em; margin: 0; text-wrap: pretty; transition: color .2s; }
.jcard-dek { color: var(--ink-soft); line-height: 1.5; max-width: 38ch; }
.jcard > a:hover .jcard-title { color: var(--accent); }
/* lead story */
.jcard-wide { grid-column: span 8; }
.t-portrait .jcard-img { aspect-ratio: 4 / 5; }
.t-landscape .jcard-img { aspect-ratio: 16 / 10; }
.t-square .jcard-img { aspect-ratio: 1 / 1; }
.jcard-post.jcard-wide .jcard-title { font-size: var(--step-3); max-width: 24ch; }
.jcard-post.jcard-wide .jcard-dek { font-size: var(--step-0); max-width: 52ch; }
/* pull quotes */
.jcard-quote figure { margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.jcard-quote blockquote { margin: 0; }
.jcard-quote blockquote p { margin: 0; font-family: "Mazius Display", var(--font); font-size: clamp(1.7rem, 1rem + 1.5vw, 2.6rem); overflow-wrap: break-word; hyphens: manual; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; text-indent: -.42em; }
.jcard-quote blockquote p::before { content: "“"; }
.jcard-quote blockquote p::after { content: "”"; }
.jcard-quote figcaption { margin-top: 1.2rem; font-size: var(--step--1); color: var(--ink-soft); }
.jcard-quote a:hover blockquote p { color: var(--accent); }
.jcard-quote.jcard-wide blockquote p { max-width: 22ch; }
.jcard-quote.q-small blockquote p { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.3; letter-spacing: 0; }
.jcard-quote.q-medium blockquote p { font-size: clamp(1.7rem, 1rem + 1.5vw, 2.6rem); }
.jcard-quote.q-large blockquote p { font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); }
.jcard-quote.q-xl blockquote p { font-size: clamp(2.8rem, 1.2rem + 5vw, 6.4rem); line-height: .98; }
/* instagram */
.jcard-caption { line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.jcard-src { font-size: var(--step--1); color: var(--ink-soft); }
.jcard-ig a:hover .jcard-src { color: var(--accent); }
@media (max-width: 1000px) {
  .jgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .jcard { grid-column: span 3; }
  .jcard-lead, .jcard-wide { grid-column: span 6; }
}
@media (max-width: 600px) {
  .jgrid { grid-template-columns: minmax(0, 1fr); }
  .jcard, .jcard-lead, .jcard-wide { grid-column: 1 / -1; }
}

.t-original .jcard-img { aspect-ratio: auto; }
.t-original .jcard-img img { height: auto; }

/* ===== Case studies, editorial pass: paired copy, sticky accordions, floating grid ===== */
.cs-media { grid-auto-flow: row; row-gap: clamp(1rem, 2vw, 2rem); margin-top: clamp(3rem, 7vw, 6rem); }
.cs-media .m { background: none; }
.cs-media .m.bleed { grid-column: 1 / -1; width: 96vw; margin-left: calc(50% - 48vw); }
.cs-media .m.panel { background: var(--panel); display: grid; place-items: center; padding: 9% 8%; align-self: stretch; }
.cs-media .m.panel img { width: 82%; }
.cs-media .cs-pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; margin-block: clamp(3rem, 9vw, 9rem); }
.cs-pair > .m { grid-column: 1 / span 6; }
.cs-pair > .cs-pair-text { grid-column: 8 / span 4; }
.cs-pair.img-right > .m { grid-column: 7 / span 6; grid-row: 1; }
.cs-pair.img-right > .cs-pair-text { grid-column: 1 / span 4; grid-row: 1; }
.cs-pair > * { position: sticky; top: calc(4.5rem + 6vh); }
.cs-pair-text p { margin: 0 0 1.1em; max-width: 46ch; color: var(--ink-soft); }
.cs-pair-text p.eyebrow { color: var(--ink); margin-bottom: 1.25rem; }
.cs-pair-text p.lead { color: var(--ink); }
@media (max-width: 900px) {
  .cs-media .cs-pair { margin-block: 2.5rem; row-gap: 1.5rem; }
  .cs-pair > .m, .cs-pair.img-right > .m, .cs-pair > .cs-pair-text, .cs-pair.img-right > .cs-pair-text { grid-column: 1 / -1; grid-row: auto; position: static; }
  .cs-pair.img-right > .cs-pair-text { order: 2; }
  .cs-media .m.bleed { width: auto; margin-left: 0; }
}

/* Long copy folds away under the challenge; an open section's title holds to the top while it is read */
.cs-acc { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.cs-acc details { border-top: 1px solid var(--line); }
.cs-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; font-size: var(--step-0); position: sticky; top: 4.4rem; z-index: 2; background: var(--bg); }
.cs-acc summary::-webkit-details-marker { display: none; }
.cs-acc summary .t { transition: transform .5s var(--ease-out); }
.cs-acc summary:hover .t { transform: translateX(.4rem); }
.cs-acc summary .i { position: relative; width: .9rem; height: .9rem; flex: none; }
.cs-acc summary .i::before, .cs-acc summary .i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--ease-out); }
.cs-acc summary .i::after { transform: rotate(90deg); }
.cs-acc details[open] summary .i::after { transform: rotate(0deg); }
.cs-acc summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.cs-acc-body { padding: .25rem 0 2rem; }
.cs-acc-body p { max-width: 60ch; margin: 0 0 1.1em; color: var(--ink-soft); }
@supports (interpolate-size: allow-keywords) {
  .cs-acc { interpolate-size: allow-keywords; }
  .cs-acc details::details-content { block-size: 0; overflow: clip; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
  .cs-acc details[open]::details-content { block-size: auto; }
}
@media (max-width: 900px) { .cs-acc summary { top: 3.6rem; } }

/* Floating, staggered grid (Pioneering Tech, behind the scenes) */
.cs-float { margin-top: clamp(3rem, 7vw, 6rem); display: grid; gap: clamp(2rem, 6vw, 6rem); }
.cs-float .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.cs-float .m { grid-column: var(--c); margin-top: var(--y, 0); overflow: hidden; }
.cs-float .m img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .cs-float .row { grid-template-columns: 1fr 1fr; }
  .cs-float .m { grid-column: span 1; margin-top: 0; }
  .cs-float .m.wide { grid-column: 1 / -1; }
  .cs-float .m:nth-child(2) { margin-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) { .cs-acc details::details-content { transition: none; } }
.cs-media { row-gap: clamp(1.25rem, 3vw, 3.5rem); }
.cs-gallery-sec .cs-media { margin-top: 0; }
.cs-gallery-sec { padding-top: clamp(1rem, 3vw, 3rem); }
.cs-media > .cs-pair:first-child { margin-top: clamp(1rem, 4vw, 4rem); }

/* Journal quotes: pull quotes keep the hairline and sit beside their post; my own quotes get a card of their own */
.jcard-quote figcaption { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; justify-content: space-between; }
.jcard-quote .q-date { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jcard-quote .q-attr { color: var(--ink); }
.jcard-standalone figure { border-top: 0; padding: clamp(1.75rem, 3.2vw, 3rem); background: #fff; color: #14110f; border-radius: 2px; }
.jcard-standalone blockquote p { text-indent: -.42em; }
.jcard-standalone figcaption { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgb(20 17 15 / .14); }
.jcard-standalone .q-date { color: rgb(20 17 15 / .55); }
.jcard-standalone .q-attr { color: #14110f; }

/* Homepage marquee: big Mazius line that drifts on its own and leans into the scroll */
.mq-band { padding: clamp(3rem, 8vw, 7rem) 0; overflow: hidden; }
.mq { overflow: hidden; padding-block: .08em .28em; }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-unit { display: flex; flex: none; align-items: center; }
.mq-unit span { font-family: "Mazius Display", var(--font); font-weight: 400; font-size: clamp(3.5rem, 2rem + 9vw, 12rem); line-height: 1.15; letter-spacing: -0.03em; white-space: nowrap; padding-right: .35em; }
.mq-unit .mq-dot { font-size: clamp(1.6rem, 1rem + 3vw, 4.5rem); padding-right: .35em; transform: translateY(-.1em); opacity: .6; }
.mq-unit span:nth-child(3) { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .mq-track { transform: none !important; } .mq { overflow-x: auto; } }

/* Justified rows (Behance-style), a narrow centred column, and a centred note */
.cs-media .cs-row { grid-column: 1 / -1; display: flex; gap: var(--gutter); align-items: flex-start; }
.cs-media .cs-row > .m { flex: var(--ar) 1 0; min-width: 0; }
.cs-media .m.narrow { grid-column: 4 / span 6; }
.cs-media .cs-note { grid-column: 3 / span 8; margin-block: clamp(2rem, 6vw, 5rem) clamp(.5rem, 2vw, 1.5rem); }
.cs-media .cs-note p { margin: 0; color: var(--ink-soft); max-width: 62ch; }
.cs-media .m.video-embed { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .cs-media .cs-row { flex-wrap: wrap; }
  .cs-media .cs-row > .m { flex-basis: calc(50% - var(--gutter)); }
  .cs-media .m.narrow, .cs-media .cs-note { grid-column: 1 / -1; }
}

/* No orphans: let the browser even out the last lines of paragraphs site-wide */
p, li, dd, figcaption, blockquote, .lede, .statement { text-wrap: pretty; }

/* 404: concepts that made the cut, scattered on a desk */
.nf-stage { position: relative; min-height: 100svh; padding: clamp(7rem, 12vw, 10rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.nf-copy { position: relative; z-index: 2; pointer-events: none; }
.nf-copy a, .nf-copy .btn { pointer-events: auto; }
.nf-copy .lede { max-width: 40ch; margin-top: 1.5rem; }
.nf-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.nf-desk { position: absolute; inset: 64px 0 0; z-index: 1; }
.nf-card { touch-action: none; }
@media (max-width: 760px) { .nf-desk { position: relative; inset: auto; height: 70svh; margin-top: 2rem; } }
.nf-card { position: absolute; left: 0; top: 0; width: clamp(120px, 14vw, 220px); cursor: grab; user-select: none; will-change: transform; transition: filter .3s; }
.nf-card.is-held { cursor: grabbing; filter: drop-shadow(0 20px 30px rgb(0 0 0 / .4)); }
.nf-card img { display: block; width: 100%; height: auto; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nf-card { transition: none; } }

/* Work hero: the reel without the fade at the edges */
.hero-bg.no-fade::after { content: none; }

/* Mobile: each project row takes its case study's colours; sector pills scroll sideways */
@media (max-width: 760px) {
  /* each project fills the screen; the page colour fades to it as it reaches the middle (script.js) */
  .entry[style*="--row-bg"] { min-height: 100svh; align-content: center; border-bottom-color: transparent; }
  .acc-item[style*="--row-bg"] { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; border-bottom-color: transparent; }
  .filter-bar .wrap { padding-inline: 0; }
  .filter-bar .pills { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .filter-bar .pills::-webkit-scrollbar { display: none; }
  .filter-bar .pills li { flex: none; scroll-snap-align: start; }
  .filter-bar .pills li:last-child { padding-right: var(--gutter); }
}

/* Mobile heroes: bigger, tighter headlines; quieter bylines for contrast */
@media (max-width: 760px) {
  .hero .display { font-size: clamp(3.1rem, 13.2vw, 4.4rem); line-height: .94; letter-spacing: -0.035em; }
  .space-copy .display { font-size: clamp(3rem, 12.8vw, 4.4rem); line-height: .94; letter-spacing: -0.035em; max-width: none; }
  .hero .lede, .space-reveal .lede { font-size: 1.0625rem; line-height: 1.45; letter-spacing: 0; color: var(--ink-soft); max-width: 30ch; }
  .hero .lede { margin-top: 1.75rem !important; }
}

/* Mobile: pinned project rows that fade one to the next (script.js adds .fade-stack, .is-stacked, .is-active).
   The outgoing row is gone before the incoming one appears, and every row uses the same fixed layout,
   so the year, image, headline, line and arrow land in the same spot each time. */
@media (max-width: 760px) {
  .fade-stack > .is-stacked { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: none; will-change: opacity; }
  .fade-stack > .is-stacked.is-shown { visibility: visible; }
  .fade-stack > .is-stacked .acc-thumb { clip-path: none !important; }
  .fade-stack > .is-stacked .acc-thumb img { transform: none !important; transition: none !important; }

  /* Work list */
  .entries.fade-stack > .is-stacked { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding-top: 10.25rem; padding-bottom: 1.5rem; }
  .entries.fade-stack > .is-stacked .when { order: 1; }
  .entries.fade-stack > .is-stacked .cat { order: 2; margin-top: .3rem; }
  .entries.fade-stack > .is-stacked > div { order: 3; display: flex; flex-direction: column; margin-top: 1rem; }
  .entries.fade-stack > .is-stacked .acc-thumb { order: -1; display: flex; align-items: center; justify-content: flex-start; height: 34svh; margin: 0 0 1.25rem; }
  .entries.fade-stack > .is-stacked .acc-thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
  .entries.fade-stack > .is-stacked h2 { line-height: 1.1; min-height: 3.3em; margin: 0; }
  .entries.fade-stack > .is-stacked > div > p { line-height: 1.5; min-height: 4.5em; margin: .9rem 0 0; }
  .entries.fade-stack > .is-stacked .go { order: 4; margin-top: .75rem; }

  /* Impact */
  .accordion.fade-stack > .is-stacked { display: block; padding-top: 6.5rem; padding-bottom: 1.5rem; }
  .accordion.fade-stack > .is-stacked .acc-trigger { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; align-items: start; row-gap: 0; padding-top: 1rem; }
  .accordion.fade-stack > .is-stacked .acc-num { grid-column: 1; grid-row: 1; }
  .accordion.fade-stack > .is-stacked .acc-icon { grid-column: 2; grid-row: 1; }
  .accordion.fade-stack > .is-stacked .acc-thumb { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: flex-start; height: 34svh; margin: 1.5rem 0 3rem; }
  .accordion.fade-stack > .is-stacked .acc-thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
  .accordion.fade-stack > .is-stacked .acc-title { grid-column: 1 / -1; grid-row: 3; }
  .accordion.fade-stack > .is-stacked:has(.acc-trigger[aria-expanded="true"]) { overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .fade-stack > .is-stacked, .fade-stack > .is-stacked.is-active { transition: none; }
}

@media (max-width: 760px) { .filter-bar { padding: .7rem 0; } }

.intro-eyebrow { grid-column: 1 / -1; margin: 0 0 clamp(1.25rem, 2.5vw, 2rem); color: var(--ink-soft); }

/* Homepage: why I do this, after the marquee */
.manifesto { padding: clamp(2rem, 5vw, 4rem) 0 clamp(5rem, 10vw, 9rem); }
.manifesto-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: clamp(2rem, 4vw, 3.5rem); }
.manifesto .statement { grid-column: 1 / span 10; margin: 0; max-width: 40ch; text-wrap: balance; }
.manifesto-body { grid-column: 6 / span 6; }
.manifesto-body p { margin: 0 0 1.2em; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; max-width: 46ch; }
.manifesto-body p:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .manifesto .statement, .manifesto-body { grid-column: 1 / -1; }
  .acc-content { padding-left: 0; }
}
.manifesto-eyebrow { grid-column: 1 / -1; margin: 0 0 calc(-1 * clamp(.75rem, 2vw, 2rem)); }
/* Desktop: the pronunciation note sits level with the last line of the bio */
@media (min-width: 901px) { .intro-caption { align-self: end; margin: 0; } }

/* Journal: videos play in place (poster first, the player loads on click) */
.jvid { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.jvid-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.jvid-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out), opacity .3s; }
.jvid-icon { position: absolute; left: 50%; top: 50%; width: 4.25rem; height: 4.25rem; margin: -2.125rem 0 0 -2.125rem; border-radius: 50%; background: rgb(255 255 255 / .92); box-shadow: 0 6px 24px rgb(0 0 0 / .25); transition: transform .3s var(--ease-out), background .2s; }
.jvid-icon::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .7rem 0 .7rem 1.15rem; border-color: transparent transparent transparent #14110f; }
.jvid-play:hover .jvid-icon, .jvid-play:focus-visible .jvid-icon { transform: scale(1.08); background: #fff; }
.jvid-play:hover img { transform: scale(1.03); }
.jvid-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.jvid iframe, .jvid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.jcard-v { display: grid; gap: .75rem; }
.jcard-video .jcard-src { color: var(--ink-soft); text-decoration: none; justify-self: start; }
.jcard-video .jcard-src:hover { color: var(--accent); }
/* Homepage: anything from the journal can be featured */
.post-video { display: grid; gap: .7rem; align-content: start; border-top: 0; padding-top: 0; }
.post-video h3, .post-video .post-text { margin: 0; }
.post-video .jvid { margin-bottom: .4rem; }
.post-text { margin: 0; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-src { font-size: var(--step--1); color: var(--ink-soft); text-decoration: none; justify-self: start; }
.post > a:hover .post-src, a.post-src:hover { color: var(--accent); }
.post-quote blockquote { margin: 0; }
.post-quote blockquote p { margin: 0; font-family: "Mazius Display", var(--font); font-size: var(--step-1); line-height: 1.12; letter-spacing: -0.01em; text-wrap: pretty; text-indent: -.42em; }
.post-quote blockquote p::before { content: "“"; } .post-quote blockquote p::after { content: "”"; }
.post-quote > a:hover blockquote p { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .jvid-play img, .jvid-icon { transition: none; } }
.post > a.post-src { display: inline; color: var(--ink-soft); }
.post > a.post-src:hover { color: var(--accent); }
