/* benking.ca */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

/* Mirrors tokens.ts. Change values there first. */
:root {
  --c-white: #FFFFFF;
  --c-surface: #F5F5F5;
  --c-border: #E5E5E5;
  --c-muted: #6B6B6B;
  --c-ink: #1A1A1A;
  --c-accent: #0F4C81;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;

  --bg: var(--c-white);
  --bg-2: var(--c-surface);
  --ink: var(--c-ink);
  --ink-2: var(--c-muted);
  --rule: var(--c-border);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: var(--s-12);
  --max: 1440px;
  --measure: 66ch;
  --hh: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
::selection { background: var(--ink); color: var(--bg); }
html { scrollbar-color: var(--c-muted) var(--c-white); }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { margin: 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: var(--s-3) var(--s-4); font-weight: 600; }
.skip:focus { left: var(--s-2); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Type tokens */
.t-caption { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
.t-body { margin: 0; font-size: 18px; line-height: 28px; font-weight: 400; font-stretch: 100%; letter-spacing: 0; text-transform: none; }
.t-title { margin: 0; font-size: 28px; line-height: 32px; font-weight: 600; font-stretch: 100%; letter-spacing: -0.01em; text-transform: none; }
.t-heading { margin: 0; font-size: 48px; line-height: 48px; font-weight: 800; font-stretch: 68%; letter-spacing: 0; text-transform: none; }
.t-display { margin: 0; font-size: 96px; line-height: 88px; font-weight: 800; font-stretch: 68%; letter-spacing: 0; text-transform: none; }
.muted { color: var(--c-muted); }
.strong { font-weight: 600; }
@media (max-width: 767px) {
  :root { --gutter: var(--s-4); }
  .t-display { font-size: 48px; line-height: 48px; }
  .t-heading { font-size: 28px; line-height: 32px; }
}

/* Display voice: heading token by default, page titles step up to display */
.display { font-size: 48px; line-height: 48px; font-weight: 800; font-stretch: 68%; letter-spacing: 0; text-transform: none; }
@media (max-width: 767px) { .display { font-size: 28px; line-height: 32px; } }

/* ---------- Header ---------- */
.masthead { position: sticky; top: 0; z-index: 30; background: var(--c-white); }
.masthead__row { display: flex; align-items: center; gap: var(--s-8); padding-block: var(--s-4); font-size: 18px; line-height: 28px; }
.mark { margin-right: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
/* Inline links that stand alone get a 44px tap area without changing the line box */
.tap { display: inline-block; padding-block: 12px; margin-block: -12px; }
.index { display: flex; gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.index a { display: block; padding-block: var(--s-2); text-decoration: none; }
.mark:hover, .index a:hover { color: var(--c-accent); }
.index a[aria-current="page"] { text-decoration: underline; text-underline-offset: var(--s-2); text-decoration-thickness: 2px; }

/* Work menu: a disclosure in the main nav. Opens on click or tap, and on hover with a mouse (js/site.js). */
.menu { position: relative; display: flex; align-items: center; }
.menu__toggle { display: grid; place-items: center; width: 28px; height: 44px; margin-right: -6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.menu__toggle:hover { color: var(--c-accent); }
.menu.is-current .menu__link { text-decoration: underline; text-underline-offset: var(--s-2); text-decoration-thickness: 2px; }
.menu__chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease-out); }
.menu.is-open .menu__chev { transform: rotate(180deg); }
.menu__list { position: absolute; z-index: 40; top: 100%; left: calc(-1 * var(--s-4)); min-width: 240px; margin: 0; padding: var(--s-2) 0; list-style: none; background: var(--c-white); border: 1px solid var(--c-border); box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.18s, transform 0.18s var(--ease-out), visibility 0s 0.18s; }
.menu.is-open .menu__list { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.18s var(--ease-out); }
.index .menu__list a { padding: var(--s-2) var(--s-4); white-space: nowrap; }
.index .menu__list a:hover { background: var(--c-surface); }
.menu__label { padding: var(--s-2) var(--s-4) var(--s-1); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.menu__sep { height: 1px; margin: var(--s-2) var(--s-4); background: var(--c-border); }
@media (max-width: 767px) { .menu__list { left: 0; } .menu__toggle { width: 44px; margin-right: -12px; } }
@media (prefers-reduced-motion: reduce) { .menu__list, .menu__chev { transition: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--s-12); padding: var(--s-3) var(--s-6);
  font: inherit; font-size: 18px; line-height: 24px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  background: var(--c-accent); color: var(--c-white); border: 1px solid var(--c-accent);
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s;
}
.btn:hover { background: var(--c-white); border-color: var(--c-accent); color: var(--c-accent); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }
.btn .icon { width: 1.1em; height: 1.1em; }

/* Mobile menu: one "Menu" button opens a panel with every nav link. Desktop never shows these. */
.navtoggle, .index__cta { display: none; }
@media (max-width: 767px) {
  :root { --hh: 68px; }
  .masthead__row { gap: var(--s-4); padding-block: var(--s-3); }
  .masthead__row > .btn { display: none; }
  .navtoggle { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-right: calc(-1 * var(--s-2)); padding: 0 var(--s-2); border: 0; background: none; font: inherit; font-weight: 600; color: var(--c-ink); cursor: pointer; }
  .navtoggle__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
  .navtoggle__icon path { transform-origin: 10px 10px; transition: transform 0.2s var(--ease-out); }
  .navtoggle__top { transform: translateY(-3px); }
  .navtoggle__bot { transform: translateY(3px); }
  .masthead.is-open .navtoggle__top { transform: rotate(45deg); }
  .masthead.is-open .navtoggle__bot { transform: rotate(-45deg); }
  .masthead nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--hh)); overflow-y: auto; overscroll-behavior: contain; background: var(--c-white); border-bottom: 1px solid var(--c-border); box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08); }
  .masthead.is-open nav { display: block; }
  .index { flex-direction: column; gap: 0; padding: var(--s-2) var(--gutter) var(--s-6); }
  .index a, .index .menu__list a { display: block; padding: var(--s-3) 0; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; white-space: normal; }
  .index .menu__list a:hover { background: none; }
  .menu { display: block; margin-bottom: var(--s-2); padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-border); }
  .index .menu__link, .menu__toggle { display: none; }
  .menu__list { position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .menu__label { padding: var(--s-4) 0 var(--s-1); }
  .menu__sep { margin: var(--s-2) 0; }
  .index__cta { display: block; padding-top: var(--s-4); }
  .index .index__cta .btn { display: flex; width: 100%; padding: var(--s-3) var(--s-6); font-size: 18px; line-height: 24px; letter-spacing: 0; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { .navtoggle__icon path { transition: none; } }

/* ---------- Home ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: end; padding-block: var(--s-8) var(--s-12); }
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.work--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work--2 .project__pic { aspect-ratio: 4 / 3; }
.project { display: flex; flex-direction: column; gap: var(--s-2); text-decoration: none; }
.project__pic { aspect-ratio: 1; overflow: hidden; background: var(--c-surface); }
.project__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.project:hover .project__pic img { transform: scale(1.03); }
/* A looping clip laid over part of a tile image (the Breth phone screen). Positioned in % of the 4:3 tile;
   it scales with the image on hover, around the tile's centre, so the two stay aligned. */
.project__pic { position: relative; }
.project__pic .tile-vid { position: absolute; height: auto; aspect-ratio: 4 / 3; background: transparent; transform-origin: -48.55% 34.12%; transition: transform 0.9s var(--ease-out); }
.project:hover .project__pic .tile-vid { transform: scale(1.03); }
.project__pic .tile-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 0.9s var(--ease-out); }
.project:hover .project__pic .tile-svg { transform: scale(1.03); }
/* Mobili-T tile: the Cyclops swallows, using the exact mark from MobiliT_Cyclops_Origin.ai.
   Real swallow rhythm: a quick lift, a short hold at the top, then a slow glide down. No overshoot.
   Distances are in the mark's units (200 = about 33 px in the photo). Matches the photo exactly at rest. */
.cyclops__eye, .cyclops__mouth { transform-box: fill-box; transform-origin: 50% 50%; animation: 4s linear infinite both; }
.cyclops__eye { animation-name: swallow-eye; }
.cyclops__mouth { animation-name: swallow-mouth; }
/* About 1.3 s of rest per cycle; a quick lift, a short hold, then a long 2 s glide down. */
@keyframes swallow-mouth {
  0%, 12% { transform: none; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  21% { transform: translateY(-200px) scale(1, 0.92); }
  30% { transform: translateY(-200px) scale(1, 0.92); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  80%, 100% { transform: none; }
}
@keyframes swallow-eye {
  0%, 12% { transform: none; animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  21% { transform: translateY(-70px); }
  30% { transform: translateY(-70px); animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
  80%, 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .cyclops__eye, .cyclops__mouth { animation: none; } }
.project:hover .t-title { color: var(--c-accent); }
.proof { margin-top: var(--s-16); padding-block: var(--s-8); background: var(--c-surface); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin-block: 0; }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; }
.band { padding-block: var(--s-16); }
.band--surface { background: var(--c-surface); }
.band__head { display: flex; flex-direction: column; gap: var(--s-3); max-width: 60ch; margin-bottom: var(--s-8); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin: 0 0 var(--s-8); padding: 0; list-style: none; }
.points li { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.points--work li { padding-top: 0; border-top: 0; }
.points--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.points__pic { aspect-ratio: 3 / 2; margin-bottom: var(--s-2); overflow: hidden; background: var(--c-surface); }
.points__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.project:hover .points__pic img { transform: scale(1.03); }
#foundations + .band, #ownership + .band, #explorations + .band { padding-top: 0; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: start; }
.note { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-6); background: var(--c-surface); }
.note p { margin: 0; }
.quote { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); align-items: center; margin: 0; }
.quote__pic { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-white); }
.quote__pic img { width: 100%; height: 100%; object-fit: cover; }
.quote__text { display: flex; flex-direction: column; gap: var(--s-4); }
.quote blockquote { margin: 0; }
@media (prefers-reduced-motion: reduce) { .project__pic img, .points__pic img { transition: none; } }
@media (max-width: 1023px) {
  .statement { grid-template-columns: 1fr; gap: var(--s-3); align-items: start; }
  .statement h1 { max-width: 24ch; }
  .quote { grid-template-columns: 1fr; gap: var(--s-6); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .statement { grid-template-columns: 1fr; gap: var(--s-3); padding-block: var(--s-6); }
  .work, .points, .split { grid-template-columns: 1fr; }
  .work { gap: var(--s-8); }
  .proof { padding-block: var(--s-6); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts dd { font-size: 18px; line-height: 28px; letter-spacing: 0; }
  .band { padding-block: var(--s-12); }
}

/* ---------- Shared pieces ---------- */
.meta { font-size: 14px; line-height: 20px; color: var(--c-muted); }
.spec { margin: 0; display: grid; grid-template-columns: 7rem minmax(0, 1fr); border-top: 1px solid var(--c-border); }
.spec dt, .spec dd { margin: 0; padding-block: var(--s-3); border-bottom: 1px solid var(--c-border); }
.spec dt { padding-right: var(--s-3); font-size: 14px; line-height: 28px; color: var(--c-muted); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.mt-12 { margin-top: var(--s-12); }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-16); }
.section--grey { background: var(--c-surface); }
.section__head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 60rem; margin-bottom: var(--s-8); }
.section__head p { margin: 0; max-width: 60ch; color: var(--c-muted); }
.section__head h1, .doc-head h1 { font-size: 96px; line-height: 88px; }
.section__head h2, .part__head h2 { font-size: 48px; line-height: 48px; font-weight: 800; font-stretch: 68%; letter-spacing: 0; text-transform: none; }
.fold { margin: 0; border: 0; border-top: 1px solid var(--c-border); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--s-6); }
.principles li { display: flex; flex-direction: column; gap: var(--s-2); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.principles b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c-muted); }
.principles p { margin: 0; color: var(--c-muted); }

.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8) var(--s-12); align-items: start; }
.prose { max-width: var(--measure); }
.prose p:last-child { margin-bottom: 0; }

.contact__mail { display: inline-block; font-size: 48px; line-height: 48px; font-weight: 800; font-stretch: 68%; text-decoration: none; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--c-accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

.footer { border-top: 1px solid var(--c-border); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.footer__row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-8); justify-content: space-between; padding-block: var(--s-6); }
.footer a { color: var(--c-ink); }
.footer a:hover { color: var(--c-accent); }

/* ---------- Case study pages ---------- */
.doc-head__inner { padding-block: var(--s-16) var(--s-8); }
.doc-head__ref { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin-bottom: var(--s-4); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.doc-head h1 { max-width: 16ch; }
.doc-head__sub { margin: var(--s-6) 0 0; max-width: 60ch; color: var(--c-muted); }
.doc-head__text { margin-bottom: var(--s-8); }
.doc-head__media { width: 100%; background: var(--c-surface); }
.doc-head__media img { width: 100%; max-height: 82svh; object-fit: cover; }
/* Paired hero: in-person and remote side by side (How I lead). */
.doc-head__media--pair { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s-2); height: min(60svh, 560px); background: transparent; }
.doc-head__media--pair img { height: 100%; max-height: none; }
.doc-head__media--pair .pair__board { object-position: 0 0; }
.doc-head__media--pair img:first-child { object-position: 8% 50%; }
@media (max-width: 767px) { .doc-head__media--pair { grid-template-columns: 1fr; height: auto; } .doc-head__media--pair img { aspect-ratio: 4 / 3; height: auto; } }

.summary { margin-top: var(--s-12); padding: var(--s-8); background: var(--c-surface); }
.summary__bar { margin-bottom: var(--s-4); }
.summary dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-8); }
.summary dt { margin-bottom: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--c-border); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.summary dd { margin: 0; }
.summary dd ul { margin: 0; padding-left: var(--s-4); }
.summary .wide { grid-column: span 2; }

.doc { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: var(--s-16); padding-block: var(--s-16); }
.toc { position: sticky; top: calc(var(--hh) + var(--s-6)); align-self: start; font-size: 14px; line-height: 20px; }
.toc h2 { margin-bottom: var(--s-2); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--c-border); }
.toc a { display: block; padding: var(--s-2) 0 var(--s-2) var(--s-4); margin-left: -1px; text-decoration: none; color: var(--c-muted); border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--c-accent); }
.toc a.is-active { color: var(--c-ink); border-left-color: var(--c-ink); font-weight: 600; }

.part + .part { margin-top: var(--s-24); }
.part__head { margin-bottom: var(--s-6); }
.lede { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; max-width: 36ch; }

.decision { margin-block: var(--s-8); border-top: 1px solid var(--c-ink); }
.decision__head { padding: var(--s-4) 0 var(--s-2); }
.decision dl { margin: 0; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); }
.decision dt, .decision dd { margin: 0; padding-block: var(--s-3); border-bottom: 1px solid var(--c-border); }
.decision dt { font-size: 14px; line-height: 28px; color: var(--c-muted); }
.decision dd { max-width: 64ch; }
.decision dd.impact { font-weight: 600; }

.fig { margin: var(--s-8) 0; }
.fig img { width: 100%; background: var(--c-surface); }
.fig--native img { width: auto; }
.fig figcaption { margin-top: var(--s-2); max-width: 70ch; font-size: 14px; line-height: 20px; color: var(--c-muted); }
.fig-row { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-8) 0; }
.fig-row .fig { margin: 0; }
.fig-row .fig img { aspect-ratio: 1; object-fit: cover; }

.checks { list-style: none; padding: 0; margin: 0 0 var(--s-4); max-width: var(--measure); }
.checks li { display: grid; grid-template-columns: var(--s-6) 1fr; gap: var(--s-3); padding-block: var(--s-3); border-bottom: 1px solid var(--c-border); }
.checks .icon { width: 20px; height: 20px; margin-top: var(--s-1); }

.voice { margin: var(--s-8) 0; padding: var(--s-8); background: var(--c-surface); }
.voice p { max-width: 36ch; margin-bottom: var(--s-3); font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.voice footer { font-size: 14px; line-height: 20px; color: var(--c-muted); }

.draft p:last-child { margin-bottom: 0; }

.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; margin-top: var(--s-24); padding-block: var(--s-8); border-top: 1px solid var(--c-ink); text-decoration: none; }
.next small { display: block; margin-bottom: var(--s-2); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.next strong { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.next:hover strong { color: var(--c-accent); }
.next .icon { width: var(--s-12); height: var(--s-12); transition: transform 0.35s var(--ease-out); }
.next:hover .icon { transform: translateX(var(--s-2)); }

/* ---------- Foundations (archive.html) ---------- */
.archive { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-ink); }
.archive li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) minmax(0, 20rem); gap: var(--s-6); padding-block: var(--s-8); border-bottom: 1px solid var(--c-border); align-items: start; }
.archive .meta { display: block; margin-top: var(--s-2); }
.archive p { margin: 0; max-width: 60ch; }
.archive img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--c-surface); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-16); align-items: start; }
.about-grid .fig { margin-top: 0; }
.about-grid .fig img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Titles share the title token */
.principles h3, .decision__head h3, .summary__bar, .archive h2 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1023px) {
  .cols, .about-grid, .doc { grid-template-columns: 1fr; }
  .about-grid { gap: var(--s-8); }
  .toc { display: none; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .archive li img { grid-column: 1 / -1; grid-row: 1; }
  .summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .section { padding-block: var(--s-12); }
  .section__head h1, .doc-head h1 { font-size: 48px; line-height: 48px; }
  .section__head h2, .part__head h2, .contact__mail { font-size: 28px; line-height: 32px; }
  .doc-head__inner { padding-block: var(--s-8) var(--s-6); }
  .doc-head__text { margin-bottom: var(--s-6); }
  .principles, .archive li, .summary dl, .fig-row { grid-template-columns: 1fr; }
  .principles { gap: var(--s-8); }
  .archive li { gap: var(--s-3); }
  .summary { padding: var(--s-6) var(--s-4); }
  .summary .wide { grid-column: auto; }
  .part + .part { margin-top: var(--s-16); }
  .decision dl { grid-template-columns: 1fr; }
  .decision dt { border-bottom: 0; padding-bottom: 0; }
  .voice { padding: var(--s-6) var(--s-4); }
  .lede, .voice p, .next strong { font-size: 24px; }
}

/* ---------- Image-led chapters (Breth, Explorations) ---------- */
.chapter { padding-block: var(--s-16); border-top: 1px solid var(--c-border); }
.section__head + .chapter, .proof + .wrap > .chapter:first-child { border-top: 0; padding-top: var(--s-8); }
.chapter__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4) var(--s-8); align-items: start; margin-bottom: var(--s-8); }
.chapter__title { display: flex; flex-direction: column; gap: var(--s-2); }
.chapter__head > p { max-width: 60ch; }
.shot { margin: 0 0 var(--s-6); }
.shot--follow { margin: var(--s-6) 0 0; }
.shot img { width: 100%; max-height: 80svh; object-fit: cover; background: var(--c-surface); }
.shot--full img { max-height: none; object-fit: contain; } /* tall reference sheets: show the whole image */
.shot figcaption, .gallery figcaption { margin-top: var(--s-2); font-size: 14px; line-height: 20px; color: var(--c-muted); }
.gallery { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--s-6); }
.gallery--follow { margin-top: var(--s-6); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: var(--ar, 4 / 3); object-fit: cover; background: var(--c-surface); }

.more { margin-top: var(--s-8); border-top: 1px solid var(--c-ink); border-bottom: 1px solid var(--c-border); }
.more summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding-block: var(--s-4); font-weight: 600; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 28px; line-height: 28px; font-weight: 400; }
.more[open] summary::after { content: "\2212"; }
.more summary:hover { color: var(--c-accent); }
.more__body { display: flex; flex-direction: column; gap: var(--s-12); padding-block: var(--s-6) var(--s-8); }
.steps { margin-top: var(--s-12); padding-block: 0; } /* the same step layout, always open */
.more__item { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-4) var(--s-8); align-items: start; }
.more__text { display: flex; flex-direction: column; gap: var(--s-2); }

@media (max-width: 1023px) {
  .chapter__head, .more__item { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery[style*="--n:1"] { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .chapter { padding-block: var(--s-12); }
  .gallery { grid-template-columns: 1fr; gap: var(--s-6); }
  .gallery[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
}

/* Copy email: copies the address instead of opening a mail app. */
.contact__mail { display: inline-flex; align-items: center; min-height: 44px; gap: var(--s-4); margin: 0; padding: 0; border: 0; background: none; color: var(--c-ink); font-family: inherit; text-align: left; cursor: pointer; }
.contact__mail .icon { width: 0.6em; height: 0.6em; stroke-width: 2; color: var(--c-muted); transition: color 160ms var(--ease-out); }
.contact__mail:hover .icon, .contact__mail.is-copied .icon { color: var(--c-accent); }
.contact__hint { margin: var(--s-2) 0 0; font-size: 14px; line-height: 20px; color: var(--c-muted); }
.contact__mail.is-copied + .contact__hint { color: var(--c-accent); }
.link-copy { display: inline-block; margin: 0; padding: 12px 0; margin-block: -12px; border: 0; background: none; font: inherit; color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.link-copy:hover { color: var(--c-accent); }
.toast { position: fixed; left: 50%; bottom: var(--s-6); z-index: 50; padding: var(--s-3) var(--s-4); background: var(--c-ink); color: var(--c-white); font-size: 14px; line-height: 20px; border-radius: 2px; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; transform: translate(-50%, 0); } }

/* Looping video clips: muted, play only while on screen. */
.vid { display: block; width: 100%; height: auto; background: var(--c-surface); }
.shot .vid { max-height: 80svh; object-fit: cover; }
.gallery .vid { aspect-ratio: var(--ar, 4 / 3); object-fit: cover; }
/* Clips with thin black bars baked into the top and bottom: enlarge slightly inside a clipped frame. */
.trim-y__clip { overflow: hidden; }
.trim-y .vid { transform: scale(1.04); }
.more__close { display: flex; flex-direction: column; gap: var(--s-3); max-width: 66ch; padding-top: var(--s-8); border-top: 1px solid var(--c-border); }
.more__close p { margin: 0; }
/* Hides 1px export edges on a clip by overscanning it slightly. */
.shot--trim { overflow: hidden; }
.shot--trim .vid { width: calc(100% + 6px); max-width: none; margin-inline: -3px; }

/* Interactive demo embedded in a case study. */
.demo { display: grid; gap: var(--s-6); margin-top: var(--s-16); }
.demo__head { display: grid; gap: var(--s-2); max-width: 66ch; }
.demo__head p { margin: 0; }
.demo__frame { border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; background: #F7F9F9; }
.demo__frame iframe { display: block; width: 100%; height: 1120px; border: 0; }
@media (max-width: 767px) { .demo { margin-top: var(--s-12); } .demo__frame iframe { height: 1900px; } }

/* Breth user guide: a simple page viewer (one page at a time, arrows, swipe, jump list). */
.guide { display: grid; gap: var(--s-3); width: min(100%, calc(74svh * 1800 / 1391)); } /* keeps page + controls on one screen */
.guide__stage { position: relative; aspect-ratio: 1800 / 1391; overflow: hidden; background: var(--c-white); border: 1px solid var(--c-border); touch-action: pan-y; }
.guide__page { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s var(--ease-out); }
.guide__page.is-loading { opacity: 0.35; }
.guide__nav { position: absolute; top: 50%; display: grid; place-items: center; width: var(--s-12); height: var(--s-12); margin-top: calc(-1 * var(--s-6)); border: 1px solid var(--c-border); border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--c-ink); cursor: pointer; transition: background 0.2s, opacity 0.2s; }
.guide__nav:hover { background: var(--c-white); border-color: var(--c-ink); }
.guide__nav:disabled { opacity: 0; pointer-events: none; }
.guide__nav--prev { left: var(--s-4); }
.guide__nav--prev .icon { transform: rotate(180deg); }
.guide__nav--next { right: var(--s-4); }
.guide__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-6); }
.guide__count { margin: 0; font-size: 16px; line-height: 24px; font-variant-numeric: tabular-nums; }
.guide__title { margin-left: var(--s-2); color: var(--c-muted); }
.guide__jump { display: flex; align-items: center; gap: var(--s-2); font-size: 16px; color: var(--c-muted); }
.guide__jump select { min-height: 40px; padding: 0 var(--s-3); border: 1px solid var(--c-border); background: var(--c-white); font: inherit; color: var(--c-ink); }
@media (max-width: 767px) { .guide__nav { width: 44px; height: 44px; margin-top: -22px; } .guide__nav--prev { left: var(--s-2); } .guide__nav--next { right: var(--s-2); } }

/* Breth: breathing exercise picker. One player, six path-shape buttons. */
.ex { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-8); align-items: stretch; }
.ex__side { display: flex; flex-direction: column; }
.ex__stage { position: relative; aspect-ratio: 1; overflow: hidden; background: #000; }
.ex__stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s var(--ease-out); }
.ex__stage video.is-front { opacity: 1; }
.ex__picker { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: var(--s-3); }
.ex__opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); min-height: var(--s-16); padding: var(--s-4); border: 1px solid var(--c-border); background: var(--c-white); color: var(--c-ink); font: inherit; font-size: 16px; line-height: 24px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.ex__opt svg { width: 56px; height: 56px; flex: none; fill: none; stroke: var(--c-muted); stroke-width: 2.5; stroke-linejoin: round; transition: stroke 0.2s; }
.ex__opt:hover { border-color: var(--c-muted); }
.ex__opt[aria-checked="true"] { border-color: var(--c-ink); background: var(--c-surface); font-weight: 600; }
.ex__opt[aria-checked="true"] svg { stroke: var(--ex); }
.ex__now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 767px) {
  .ex { grid-template-columns: 1fr; gap: var(--s-4); }
  .ex__picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .ex__picker { grid-auto-rows: auto; }
  .ex__opt { gap: var(--s-1); padding: var(--s-3) var(--s-2); font-size: 14px; line-height: 20px; }
  .ex__opt svg { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .ex__stage video { transition: none; } }
