/* LaMontay: "the peak", at night.
   One real mountain, darkened, fixed behind every page; the page around it is near-black. Nothing
   covers it: on the home page the words appear in the dark sky beside the summit and in the shadow
   below it, one scene at a time; on the other pages they keep to the left while the peak holds the
   right. As you scroll the peak fades a little, never away. White type, one sea-green.
   Bodoni Moda, a high-contrast Didone, for the name and the headlines; Jost to read and to label. */

:root {
  /* colour */
  --ink: #0d0d0d;           /* the page */
  --black: #000000;         /* menu, footer, intro */
  --white: #ffffff;
  --accent: #22b3a0;        /* sea-green: 7.4:1 on the page, 4.7:1 on the brightest sky (#353535), 8:1 under black text */
  --error: #ff8a80;         /* 8.5:1 on the page */

  /* type */
  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", "Bodoni MT", "Times New Roman", serif;
  --font-sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  /* motion */
  --ease-pen: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-slow: 700ms;

  /* layout: tighter than before */
  --gutter: clamp(20px, 4.5vw, 56px);
  --wrap: 1200px;
  --gx: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  --header-h: 68px;
  --section: clamp(64px, 10vh, 112px);
  --measure: 52ch;

  --fg: var(--white);
  --hl: var(--accent);
  --rule: rgba(255, 255, 255, 0.22);
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-color: #333 var(--ink);
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--accent); color: var(--black); }
img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--fg);
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.4rem + 4.2vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 1.25rem + 2.8vw, 3.75rem); line-height: 1.02; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }
strong { font-weight: 600; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:not([class]) { color: var(--fg); text-decoration-color: var(--hl); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, a, [role="button"] { touch-action: manipulation; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#lm-contact-widget { display: none !important; }
/* the 404 page: the ways back, one per line on a phone, in a row when there is room */
.legal-head .notfound-links, .prose .notfound-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.legal-head .notfound-links li, .prose .notfound-links li { margin: 0; padding: 0; }
.prose .notfound-links li::before { content: none; }

/* the quiet voice: the Didone in italic */
.lead,
.hero-sub,
.statement p,
.principle p,
.never-list span,
.fact dd,
.ledger-row p:not(.ledger-tag),
.card p:not(.card-label),
.method-step > p,
.closer-side p:not(.closer-mail),
.sent p,
.next-steps span,
.stat-story,
.footer-brand p:first-of-type {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  line-height: 1.35;
}
.lead { max-width: 30ch; }

/* the metadata voice: small spaced capitals in Jost */
.label,
.stat-label,
.ledger-no,
.ledger-tag,
.card-label,
.menu-link-no,
.step-mark,
.method-step dt,
.footer h2,
.footer-base,
.legal-date,
.lang-link,
.menu-btn-label,
.slot strong,
.next-steps li::before {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section,
.page-head,
.footer { position: relative; overflow: clip; }
main { display: block; position: relative; }
.section { padding-block: var(--section); color: var(--fg); }

/* the small label above each headline: "No. 02 — Le constat" */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--fg);
}
.label-no { color: var(--hl); }
.label-no::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--hl); }

/* ---------- the mark ---------- */
.mark-svg { width: 100%; height: auto; overflow: visible; }
.mark-l { fill: none; stroke: currentColor; stroke-width: 9; stroke-linejoin: miter; stroke-linecap: square; }
.mark-pole { fill: none; stroke: currentColor; stroke-width: 4; }
.mark-flag { fill: var(--hl); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand-mark { position: relative; display: block; width: 26px; }
.wordmark { --wm: 1.375rem; display: inline-flex; align-items: baseline; gap: calc(var(--wm) * 0.4); white-space: nowrap; }
/* Collectif at exactly twice the size of LaMontay (French); LaMontay twice Collective (English) */
.wordmark-script { font-family: var(--font-display); font-weight: 600; font-size: calc(var(--wm) * 0.5); line-height: 1; letter-spacing: 0.02em; }
.wordmark-type { font-family: var(--font-display); font-weight: 600; font-size: var(--wm); line-height: 1; letter-spacing: -0.01em; }
html[lang^="en"] .wordmark-script { font-size: var(--wm); letter-spacing: -0.01em; }
html[lang^="en"] .wordmark-type { font-size: calc(var(--wm) * 0.5); letter-spacing: 0.02em; }
.brand--large .brand-mark { width: 36px; }
.brand--large .wordmark { --wm: 1.5rem; }
@media (max-width: 439px) { .site-header .wordmark, .menu-top .wordmark { display: none; } }

/* ---------- buttons: square, sea-green with black type ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 200ms ease, border-color 200ms ease, transform 140ms var(--ease-out);
}
.btn-icon { width: 14px; height: 14px; flex: none; transition: transform 300ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.6875rem; }
.btn[disabled] { cursor: progress; opacity: 0.75; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--white); border-color: var(--white); }
  .btn:hover .btn-icon { transform: translate(2px, -2px); }
}

.text-link {
  position: relative;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.text-link::after { content: " \2192"; content: " \2192" / ""; color: var(--hl); }
.text-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--hl); transform-origin: 100% 50%; transition: transform 500ms var(--ease-pen); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover::before { transform: scaleX(0); }
}

/* ---------- header ---------- */
.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 110;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; }
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--fg);
  background: rgba(13, 13, 13, 0);
  transition: background-color 300ms ease;
}
/* once the page moves (but not over the home scenes, where the dark sky is the header) */
html:not(.scenes) .site-header.is-solid {
  background: rgba(13, 13, 13, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.header-inner .brand { margin-right: auto; }
.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 6px;
  color: var(--fg);
  text-decoration: none;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .lang-link:hover { color: var(--hl); } }
@media (max-width: 719px) { .header-cta { display: none; } }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px 0 10px;
  border: 0;
  background: none;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.cap { position: relative; display: block; width: 24px; height: 24px; transition: transform 500ms var(--ease-pen); }
.cap i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 500ms var(--ease-pen); }
.cap i:first-child { top: 8px; }
.cap i:last-child { top: 15px; }
.menu-btn[aria-expanded="true"] .cap { transform: rotate(-90deg); }
.menu-close .cap i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-close .cap i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-btn:active { transform: scale(0.97); }

/* ---------- menu: black, one clean list, top-aligned ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--black);
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity 250ms ease;
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.menu-body { display: grid; gap: 40px; padding-block: clamp(24px, 6svh, 64px) 48px; }
.menu-nav ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.menu-nav li { border-bottom: 1px solid var(--rule); }
.menu-nav a {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  color: var(--fg);
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}
.menu.is-open .menu-nav a { opacity: 1; transform: none; transition-delay: calc(60ms + var(--i, 0) * 40ms); }
.menu-nav li:nth-child(1) a { --i: 0; }
.menu-nav li:nth-child(2) a { --i: 1; }
.menu-nav li:nth-child(3) a { --i: 2; }
.menu-nav li:nth-child(4) a { --i: 3; }
.menu-link-no { color: var(--hl); }
.menu-link-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.05; letter-spacing: -0.015em; transition: color 200ms ease; }
.menu-link-note { display: none; }
.menu-nav a[aria-current="page"] .menu-link-title { color: var(--hl); }
@media (hover: hover) and (pointer: fine) { .menu-nav a:hover .menu-link-title { color: var(--hl); } }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.menu-mail { color: var(--fg); text-decoration-color: var(--hl); }
html.menu-open { overflow: hidden; }

/* ---------- reveals ---------- */
.js [data-reveal]:not([data-reveal-children]),
.js [data-reveal-children] > *,
.js [data-rise] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-in:not([data-reveal-children]),
.js [data-reveal-children].is-in > *,
.js .is-risen [data-rise] { opacity: 1; transform: none; }

/* ---------- the backdrop: one peak, darkened, fixed behind every page ----------
   The photograph is set by its height (--ih) and placed so its summit (62.1% across, 29.4% down
   the frame) lands at --sx / --sy. The sky is pressed down to charcoal (never brighter than
   #353535, so white and sea-green type stay readable on it) and the rock to black; its top, sides and
   base dissolve into the page, so it has no visible frame. The script fades it as you scroll. */
:root { --ih: max(100lvh, 56.25vw); --sx: 60%; --sy: 31lvh; }
@media (min-width: 1100px) { body:not(.page--home) { --ih: max(92lvh, 50vw); --sx: 74%; --sy: 36lvh; } }
@media (max-aspect-ratio: 4 / 5) { :root, body:not(.page--home) { --ih: min(125vw, 50lvh); --sx: 54%; --sy: 47lvh; } }
.backdrop { position: fixed; inset: 0 0 auto; z-index: -1; height: 100lvh; overflow: hidden; background: var(--ink); pointer-events: none; }
.backdrop-img {
  position: absolute;
  height: var(--ih);
  width: calc(var(--ih) * 16 / 9);
  max-width: none;
  left: calc(var(--sx) - var(--ih) * 16 / 9 * 0.621);
  top: calc(var(--sy) - var(--ih) * 0.294);
  object-fit: cover;
  filter: grayscale(1) contrast(1.4) brightness(0.25);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28%, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 28%, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%);
  mask-composite: intersect;
  opacity: var(--peak-opacity, 1);
}
/* the shadow at its foot: the base sinks into the page, and it rises a little as you scroll */
.backdrop-fade {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--sy) + var(--ih) * 0.3);
  height: calc(var(--ih) * 0.7 + 40lvh);
  background: linear-gradient(to bottom, rgba(13, 13, 13, 0) 0, rgba(13, 13, 13, 0.75) calc(var(--ih) * 0.1), rgba(13, 13, 13, 0.97) calc(var(--ih) * 0.17), var(--ink) calc(var(--ih) * 0.22));
  transform: translateY(calc(var(--mist, 0) * -8lvh));
}
.hero-mist { display: none; }
/* the dark veil behind long reading (inner pages, and the home page when it can't play as scenes) */
.frost { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.88); opacity: var(--frost, 0); }
@media (min-width: 1100px) {
  .frost { background: linear-gradient(to right, rgba(13, 13, 13, 0.9) 0, rgba(13, 13, 13, 0.9) 54%, rgba(13, 13, 13, 0.25) 66%, rgba(13, 13, 13, 0.25) 100%); }
}
.hero-grid,
.index-track { display: none; }

/* ---------- the home page: scenes around the peak ----------
   Each section is a stretch of scroll. While it is the one in view, its words appear in fixed
   places, in the sky beside the summit and in the shadow below it, and leave before the next
   arrive, so nothing ever slides across the mountain. When the footer comes up, they all leave.
   Without the script (or on a screen too short for it) the sections simply flow. */
.scene { position: relative; }
.stage { display: grid; gap: 24px; }
.z { min-width: 0; }

/* the flowing fallback */
html:not(.scenes) .scene:not(.hero) { padding-block: var(--section); }
html:not(.scenes) .stage { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* the scenes */
html.scenes .scene { height: 130svh; }
html.scenes .scene.hero { height: 100svh; }
html.scenes .scene--method { height: 300svh; }
html.scenes .stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(12px, 4svh, 40px)) var(--gx) clamp(20px, 5svh, 44px);
  gap: 16px 24px;
  /* the left and right hold the sky beside the peak; the middle is the mountain's and stays empty */
  grid-template-columns: minmax(0, 34fr) minmax(0, 40fr) minmax(0, 26fr);
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-areas:
    "tl tl tr"
    "l  .  r"
    ".  .  ."
    "bl bl br"
    "b  b  b";
}
html.scenes .z-tl { grid-area: tl; max-width: min(40vw, 34rem); }
html.scenes .z-tr { grid-area: tr; justify-self: end; text-align: right; }
html.scenes .z-l { grid-area: l; }
html.scenes .z-r { grid-area: r; justify-self: end; }
html.scenes .z-bl { grid-area: bl; align-self: end; }
html.scenes .z-br { grid-area: br; justify-self: end; align-self: end; }
html.scenes .z-b { grid-area: b; }
/* a phone: everything above the peak or below it, nothing beside it */
@media (max-aspect-ratio: 4 / 5), (max-width: 699px) {
  html.scenes .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr auto auto auto;
    grid-template-areas: "tl" "tr" "l" "r" "." "bl" "br" "b";
    gap: 12px;
  }
  html.scenes .z-tl { max-width: none; }
  html.scenes .z-tr, html.scenes .z-r, html.scenes .z-br { justify-self: start; text-align: left; }
}

/* how a scene's words come and go: in one after another, out quickly and together */
html.scenes .scene .z {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
html.scenes .scene.is-active .z {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(100ms + var(--zi, 0) * 80ms);
}
.z:nth-child(2) { --zi: 1; }
.z:nth-child(3) { --zi: 2; }
.z:nth-child(4) { --zi: 3; }

/* ---------- the hero ---------- */
.hero { color: var(--fg); }
html:not(.scenes) .hero { min-height: 100svh; }
html:not(.scenes) .hero .stage { min-height: 100svh; padding-top: calc(var(--header-h) + 32px); padding-bottom: 32px; align-content: space-between; }
.hero-mission > * { max-width: 26rem; }
.hero-title { font-family: var(--font-display); font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.hero-title .line { display: block; }
.hero .hero-sub { margin-top: 12px; max-width: 22rem; }
.hero-cta { margin-top: 18px; }

.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.04em 0.08em 0.14em 0; margin: -0.04em -0.08em -0.14em 0; }
.hero-title .w > span { display: inline-block; }
.js .hero-title .w > span { transform: translateY(115%); transition: transform 800ms var(--ease-pen); transition-delay: calc(100ms + var(--wi, 0) * 80ms); }
.js .is-risen .hero-title .w > span { transform: none; }
.rotator { display: inline-block; position: relative; vertical-align: bottom; overflow: hidden; padding: 0 0.1em 0.14em 0; margin: 0 -0.1em -0.14em 0; }
.rotator-words { display: inline-block; }
.rotator-word { display: inline-block; font-style: italic; color: var(--accent); transition: transform 600ms var(--ease-pen), opacity 450ms ease; }
.rotator-word:not(.is-current) { position: absolute; left: 0; top: 0; transform: translateY(110%); opacity: 0; }
.rotator-word.is-leaving { transform: translateY(-110%); opacity: 0; }

/* the name, in the shadow at bottom left: the top word exactly twice the one below it */
.hero-wordmark {
  --wm-size: clamp(3rem, 1.4rem + 6vw, 7.5rem);
  margin: 0;
  overflow: hidden;
  font-weight: 600;
  line-height: 0.88;
  color: var(--white);
}
.hero-wordmark-word { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 0.02em 0.06em 0.06em 0; }
.hw-big { font-size: var(--wm-size); letter-spacing: -0.03em; }
.hw-small { margin-top: 0.12em; padding-left: 0.04em; font-size: calc(var(--wm-size) / 2); font-style: italic; font-weight: 500; letter-spacing: -0.01em; color: var(--accent); }
.js .hero-wordmark-word { transform: translateY(104%); transition: transform 1300ms var(--ease-pen); transition-delay: var(--wm-delay, 900ms); }
.js .is-risen .hero-wordmark-word { transform: none; }
@media (max-width: 699px) { .hero-wordmark { --wm-size: clamp(2.75rem, 15vw, 4rem); } }

/* ---------- statement and the stats ---------- */
.statement { display: grid; gap: 24px; }
.statement h2 { max-width: 16ch; }
.scene .lead { max-width: 20ch; }
html.scenes .z-r.lead { text-align: right; }
@media (max-aspect-ratio: 4 / 5), (max-width: 699px) { html.scenes .z-r.lead { text-align: left; } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.stat { display: flex; flex-direction: column; padding: 16px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--rule); }
.stat .stat-label { order: -1; margin: 0 0 8px; color: var(--accent); }
.stat-num { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem); line-height: 1; color: var(--fg); }
.stat-story { margin-top: 6px; }
@media (max-width: 699px) {
  .stat { padding: 12px 10px 0 0; } .stat + .stat { padding-left: 10px; }
  .stat .stat-label { font-size: 0.5625rem; letter-spacing: 0.08em; overflow-wrap: anywhere; }
  .stat-story { font-size: 1rem; }
}

/* ---------- the work: three plain columns ---------- */
.work-head h2 { max-width: 13ch; }
html.scenes .z-tr.work-head h2 { margin-left: auto; }
html.scenes .work-head .label { justify-content: flex-end; }
@media (max-aspect-ratio: 4 / 5), (max-width: 699px) { html.scenes .work-head .label { justify-content: flex-start; } html.scenes .z-tr.work-head h2 { margin-left: 0; } }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.card { display: flex; flex-direction: column; padding: 16px 20px 0 0; }
.card + .card { padding-left: 20px; border-left: 1px solid var(--rule); }
.card-peak { display: none; }
.card .card-label { color: var(--accent); }
.card h3 { margin-top: 8px; }
.card p:not(.card-label) { margin-top: 4px; }
@media (max-width: 699px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card, .card + .card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .card .card-label { display: none; }
  .card h3 { margin: 0; font-size: 1.1875rem; }
  .card p:not(.card-label) { margin: 0; font-size: 1rem; }
}

/* ---------- the method: a thin arrow climbs three checkpoints ---------- */
.method-copy h2 { max-width: 14ch; }
.method-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.method-step { padding: 18px 0; border-top: 1px solid var(--rule); }
.method-step:last-child { border-bottom: 1px solid var(--rule); }
.method-step h3 { display: flex; align-items: baseline; gap: 12px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
.step-mark { min-width: 1.25rem; color: var(--accent); }
.method-step > p { margin-top: 6px; }
.method-step dl { display: grid; gap: 12px; margin: 18px 0 0; }
.method-step dd { margin: 4px 0 0; color: var(--fg); }
@media (min-width: 640px) { .method-step dl { grid-template-columns: 1fr 1fr; gap: 24px; } }
html.scenes .method-steps { border-top: 1px solid var(--rule); padding-top: 18px; max-width: 28rem; }
html.scenes .method-step { grid-area: 1 / 1; border: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out); }
html.scenes .method-step.is-current { opacity: 1; transform: none; }
.method-dial { width: 88px; }
.climb { width: 100%; height: auto; overflow: visible; }
html.scenes .method-dial .climb { height: min(40svh, 340px); width: auto; }
@media (max-aspect-ratio: 4 / 5), (max-width: 699px) { .method-dial { display: none; } }
html:not(.scenes) .method-dial { display: none; }
.climb-track { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.climb-progress { stroke: var(--accent); stroke-width: 2; }
.climb-check circle { fill: var(--ink); stroke: var(--white); stroke-width: 1.25; transition: fill 400ms ease, stroke 400ms ease; }
.climb-check text { fill: var(--white); font-family: var(--font-sans); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; }
.climb-check.is-passed circle { fill: var(--accent); stroke: var(--accent); }
.climb-check.is-current circle { fill: var(--white); stroke: var(--white); }
.climb-check.is-current text { fill: var(--accent); }
.climb-head { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: square; }

/* ---------- the closing call ---------- */
.closer { display: grid; gap: 28px; }
.closer h2,
.closer-title { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem); line-height: 0.95; letter-spacing: -0.025em; max-width: 11ch; }
.closer-side { display: grid; gap: 18px; justify-items: start; align-content: end; max-width: 24rem; }
.closer-side p + p { margin-top: 0; }
.closer-side .closer-mail { font-size: 0.9375rem; }
html.scenes .z-tr.closer-side { justify-items: end; text-align: right; }
@media (max-aspect-ratio: 4 / 5), (max-width: 699px) { html.scenes .z-tr.closer-side { justify-items: start; text-align: left; } }
@media (min-width: 900px) { .closer { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; } }

/* ---------- inner pages: the words keep to the left of the peak ---------- */
.page-head {
  padding-top: calc(var(--header-h) + clamp(40px, 9svh, 96px));
  padding-bottom: clamp(56px, 9svh, 96px);
}
.page-head h1 { max-width: 14ch; }
@media (max-aspect-ratio: 4 / 5) { .page-head { min-height: 92svh; } }
.page-head .hero-sub { max-width: 26rem; margin-top: 18px; }
@media (min-width: 1100px) {
  body:not(.page--home) main .wrap { max-width: none; margin-left: 0; padding-left: var(--gx); padding-right: 0; width: 56vw; }
}

.split { display: grid; gap: 32px; align-items: start; }
.principles { display: grid; border-bottom: 1px solid var(--rule); }
.principle { padding: 20px 0; border-top: 1px solid var(--rule); }
.principle p { margin-top: 6px; max-width: var(--measure); }

.never-list { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.never-list li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--rule); }
.never-list strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; }

.facts { margin: 28px 0 0; border-bottom: 1px solid var(--rule); }
.fact { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule); }
.fact dt { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; }
.fact dd { margin: 0; max-width: var(--measure); }

/* the ledger (services page) */
.ledger { list-style: none; margin: 28px 0 0; padding: 0; border-bottom: 1px solid var(--rule); }
.ledger-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.ledger-no { grid-row: span 3; padding-top: 6px; color: var(--accent); }
.ledger-tag { color: var(--accent); }

.uploads { display: grid; gap: 16px; margin-top: 40px; }
.slot { display: grid; align-content: end; margin: 0; padding: 24px; border: 1px solid var(--rule); font-size: 0.9375rem; line-height: 1.55; }
.slot strong { color: var(--accent); }
.slot--wide { aspect-ratio: 16 / 9; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 48px; align-items: start; }
.form-card { padding: clamp(20px, 3.5vw, 40px); border: 1px solid var(--rule); border-top: 2px solid var(--accent); background: var(--ink); }
.form-card h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.form-card > form > p:not([class]),
.form-card > div > p { margin-top: 10px; }
.field { display: grid; gap: 6px; margin-top: 22px; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--fg); }
.field .hint { margin: 0; font-size: 0.9375rem; }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.55);   /* 6:1 on the page: visible as a control */
  border-radius: 0;
  background: var(--ink);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 200ms ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { margin: 0; color: var(--error); font-size: 0.9375rem; font-weight: 600; }
.field-error:empty { display: none; }
.consent { margin-top: 24px; font-size: 0.9375rem; max-width: var(--measure); }
.form-actions { margin-top: 24px; }
.form-status { margin-top: 16px; font-size: 0.9375rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.sent p { margin-top: 12px; }
.next-steps { list-style: none; margin: 24px 0 0; padding: 0; counter-reset: step; border-bottom: 1px solid var(--rule); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; column-gap: 8px; padding: 18px 0; border-top: 1px solid var(--rule); }
.next-steps li::before { content: "No. " counter(step, decimal-leading-zero); grid-row: span 2; padding-top: 6px; color: var(--accent); letter-spacing: 0.08em; }
.next-steps strong { font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.direct { margin-top: 32px; display: grid; gap: 4px; }
.direct a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); color: var(--fg); text-decoration-color: var(--accent); overflow-wrap: anywhere; }

/* ---------- legal pages: plain Jost for long reading ---------- */
.page--legal main { padding-top: calc(var(--header-h) + clamp(40px, 9svh, 96px)); padding-bottom: var(--section); }
.legal-head { display: grid; gap: 16px; max-width: 62ch; padding-bottom: 32px; border-bottom: 1px solid var(--rule); }
.legal-head h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem); }
.legal-body { display: grid; gap: 40px; margin-top: 40px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; font-size: 0.9375rem; }
.toc a { display: block; padding: 5px 0; color: var(--fg); text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .toc a:hover { color: var(--accent); } }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 44px; margin-bottom: 14px; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 1.875rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1.1875rem; }
.prose ul,
.prose ol { padding-left: 1.2em; margin: 1em 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.table-scroll { overflow-x: auto; margin: 20px 0; border: 1px solid var(--rule); }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.9375rem; }
.prose th,
.prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 600; }
.todo,
.note { margin: 18px 0; padding: 14px 18px; border: 1px dashed var(--accent); font-size: 0.9375rem; }
.note { border-style: solid; border-color: var(--rule); }
.todo-inline { display: inline; margin: 0; padding: 1px 6px; }
@media (min-width: 1100px) { .page--legal main .wrap { width: 62vw; } }
@media (min-width: 1280px) {
  .legal-body { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .toc { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* ---------- footer: black, compact ---------- */
.footer { z-index: 5; padding-top: clamp(48px, 8vh, 80px); padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); background: var(--black); color: var(--fg); font-size: 0.9375rem; }
.footer-peak { display: none; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 16px; justify-items: start; max-width: 34ch; }
.footer h2 { margin-bottom: 12px; color: var(--hl); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer ul a { display: inline-block; padding: 6px 0; color: var(--fg); text-decoration: none; transition: color 200ms ease; }
.footer ul a[aria-current="page"] { color: var(--hl); }
@media (hover: hover) and (pointer: fine) { .footer ul a:hover { color: var(--hl); } }
.footer .text-link { color: var(--fg); font-size: 1rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 56px; } }
@media (min-width: 1100px) { body:not(.page--home) .footer .wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); } }

/* ---------- the intro (home page, once per visit): the mark draws itself on black ---------- */
.intro { display: none; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 35; pointer-events: none; }
.has-intro.intro-playing .intro { pointer-events: auto; }
.intro-panel { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: var(--black); color: var(--fg); transition: transform 1200ms var(--ease-pen); }
.intro-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); opacity: 0; transition: opacity 300ms ease; }
.intro.is-lifting .intro-panel { transform: translateY(-100%); }
.intro.is-lifting .intro-panel::after { opacity: 1; }
.intro.is-done { display: none; }
.intro-mark { position: relative; display: grid; justify-items: center; gap: 22px; transition: transform 1200ms var(--ease-pen), opacity 700ms var(--ease-pen); }
.intro.is-lifting .intro-mark { transform: translateY(40vh); opacity: 0; }
.intro-svg { width: clamp(72px, 12vw, 112px); }
.intro-svg .mark-l { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-svg .mark-pole,
.intro-svg .mark-flag { opacity: 0; transform-origin: 70px 62px; transform: scaleY(0.2); }
.intro .wordmark { opacity: 0; transform: translateY(10px); --wm: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.intro-rule { display: block; width: 96px; height: 1px; background: var(--accent); transform: scaleX(0); }
.intro.is-drawn .intro-svg .mark-l { stroke-dashoffset: 0; transition: stroke-dashoffset 1100ms var(--ease-pen) 150ms; }
.intro.is-drawn .intro-svg .mark-pole,
.intro.is-drawn .intro-svg .mark-flag { opacity: 1; transform: none; transition: opacity 400ms ease 1150ms, transform 600ms var(--ease-pen) 1150ms; }
.intro.is-drawn .wordmark { opacity: 1; transform: none; transition: opacity 700ms var(--ease-pen) 1250ms, transform 700ms var(--ease-pen) 1250ms; }
.intro.is-drawn .intro-rule { transform: scaleX(1); transition: transform 700ms var(--ease-pen) 1550ms; }
html.intro-playing { overflow: hidden; }

/* ---------- smooth scrolling (Lenis) ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- reduced motion: the scenes still change, by a plain fade ---------- */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not([data-reveal-children]),
  .js [data-reveal-children] > *,
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  .js .hero-title .w > span,
  .js .hero-wordmark-word { transform: none; transition: none; }
  html.scenes .scene .z,
  html.scenes .scene.is-active .z,
  html.scenes .method-step { transform: none; transition: opacity 150ms ease; transition-delay: 0ms; }
  .rotator-word { transition: none; }
  .menu-nav a { transform: none; opacity: 1; transition: none; }
  .cap,
  .cap i,
  .btn-icon { transition: none; }
}

/* on a tall screen the photograph is far wider than the screen: its sides fade off-screen, not on it */
@media (max-aspect-ratio: 4 / 5) {
  .backdrop-img {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%);
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 22%);
  }
}
