/* ==================================================================================================
   lvnt.ai — site stylesheet (hand-maintained; not generated)
   Brand source of truth: branding/BRAND-GUIDELINES.md (v2.1, Strata Cedar).
   Rules kept here: one accent (Cedar), 3px radius only, 1px hairlines, no shadows, no gradients,
   negative space first. The lockup stands alone — no descriptor, no tagline, anywhere. All motion is switched off under prefers-reduced-motion.
   ================================================================================================== */

/* ---- Fonts (self-hosted variable WOFF2, built from branding/fonts by scripts/site-fonts.mjs) ---- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-var.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------------------------------ */
:root {
  /* Brand palette */
  --limestone: #ECE7D9;
  --sandstone: #E2DBC9;
  --olive-ink: #1E2118;
  --olive-black: #0E110C;
  --olive-raised: #171B13;
  --off-white: #EFEBDF;
  --cedar: #6F8A5B;
  --cedar-on-light: #566E44;

  /* Semantic — light (default) */
  --ground: var(--limestone);
  --raised: var(--sandstone);
  --ink: var(--olive-ink);
  --muted: #5E5E50;            /* 5.3:1 on Limestone, 4.8:1 on Sandstone */
  --faint-text: #676757;       /* ADJUSTED for AA: brand faint #7A7A6A is 3.5:1 on Limestone; this is 4.7:1 */
  --faint: #7A7A6A;            /* brand faint, kept for non-text marks (dashed slot borders, placeholder lines) */
  --hairline: #D3CCB9;
  --accent-text: var(--cedar-on-light); /* 4.6:1 on Limestone — use on the ground only, not on Sandstone */
  --focus: var(--cedar-on-light);       /* 3:1+ against both light surfaces (Cedar is only 2.8:1 on Sandstone) */
  --selection: #CFD8C3;

  /* Type */
  --font-sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --text-display: clamp(2.125rem, 1.2rem + 4.6vw, 4rem);  /* 34 at 320px → 64 */
  --text-h1: clamp(1.75rem, 1.45rem + 1.1vw, 2.125rem);    /* 28 → 34 */
  --text-h2: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);    /* 22 → 26 */
  --text-body: 1.125rem;   /* 18 */
  --text-small: 1rem;      /* 16 */
  --text-caption: 0.8125rem; /* 13 */
  --text-label: 0.6875rem;   /* 11 */

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --col-gap: clamp(16px, 2vw, 32px);
  --space-section: clamp(64px, 9vw, 96px);
  --header-h: 88px;
  --header-h-condensed: 64px;
  --ribbon-h: 0px;
  --radius: 3px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

:root[data-draft] { --ribbon-h: 32px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--olive-black);
    --raised: var(--olive-raised);
    --ink: var(--off-white);
    --muted: #9A9A8C;
    --faint-text: #86877A;
    --faint: #6C6D61;
    --hairline: #23271E;
    --accent-text: var(--cedar);
    --focus: var(--cedar);
    --selection: #34402B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: var(--olive-black);
  --raised: var(--olive-raised);
  --ink: var(--off-white);
  --muted: #9A9A8C;
  --faint-text: #86877A;
  --faint: #6C6D61;
  --hairline: #23271E;
  --accent-text: var(--cedar);
  --focus: var(--cedar);
  --selection: #34402B;
  color-scheme: dark;
}

@media (max-width: 759px) {
  :root { --header-h: 64px; --header-h-condensed: 64px; }
  :root[data-draft] { --ribbon-h: 28px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--ribbon-h) + var(--header-h-condensed) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: calc(var(--ribbon-h) + var(--header-h));
  overflow-x: clip;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--selection); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ---------------------------------------------------------------------------------------- */
.display {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.h1 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h1);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.25;
}
.label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-label);
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.lede {
  font-size: var(--text-h2);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 34ch;
}
.statement {
  font-size: var(--text-h2);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 36ch;
}

/* ---- Links & buttons ---------------------------------------------------------------------------- */
.link,
main a:not([class]) {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--faint);
  transition: color 0.2s ease, text-decoration-color 0.2s ease, text-underline-offset 0.25s var(--ease-out);
}
.link:hover,
main a:not([class]):hover {
  color: var(--accent-text);
  text-decoration-color: currentColor;
  text-underline-offset: 0.32em;
}
.link:active { opacity: 0.75; }
.link--large {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.625rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-small);
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.4em;
  transition: color 0.2s ease;
}
.link-arrow span { display: inline-block; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover { color: var(--accent-text); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:active span { transform: translateX(6px); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 calc(22px - 0.2em) 0 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.button:hover { background: var(--ink); color: var(--ground); }
.button:active { transform: translateY(1px); }

/* ---- Skip link & draft ribbon ------------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-small);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.draft-ribbon {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--ribbon-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-inline: var(--gutter);
  background: var(--ink);
  color: var(--ground);
  font-family: var(--font-sans);
  white-space: nowrap;
  view-transition-name: draft-ribbon;
}
.draft-ribbon__title {
  font-weight: 600;
  font-size: var(--text-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.draft-ribbon__aside { font-size: var(--text-caption); letter-spacing: 0.02em; }
@media (max-width: 599px) { .draft-ribbon__aside { display: none; } }

/* ---- Header ------------------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: var(--ribbon-h);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  view-transition-name: site-header;
}
.site-header[data-condensed] { border-bottom-color: var(--hairline); }
/* A 1px Cedar line along the header's lower edge that grows with the page's scroll progress (site.js sets
   --scroll-p). It sits on the header's own hairline and only shows once the header has condensed. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--cedar);
  transform: scaleX(var(--scroll-p, 0));
  transform-origin: left center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.site-header[data-condensed]::after { opacity: 1; }

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: height 0.35s var(--ease-out);
}
.site-header[data-condensed] .site-header__inner { height: var(--header-h-condensed); }

.brand,
.site-footer__lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.brand { margin-right: auto; padding-block: 8px; transition: opacity 0.2s linear; }
/* Home: while the large hero lockup is on screen the header lockup stays out of the way, and it docks in as
   the hero leaves (site.js sets --hero-p from 0 to 1). Without JavaScript or with reduced motion --hero-p is
   never set, so the fallback of 1 keeps the header lockup fully visible. */
.js .page-home .brand { opacity: clamp(0, calc((var(--hero-p, 1) - 0.45) * 3), 1); }
.js .page-home .brand:focus-visible { opacity: 1; }
.brand__mark { height: 0.84em; width: auto; overflow: visible; }
.brand__word { margin-right: -0.16em; }
.mark { stroke: var(--cedar); }

.site-menu { display: flex; align-items: center; gap: clamp(20px, 3.2vw, 44px); }

.site-nav__list {
  display: flex;
  gap: clamp(18px, 2.6vw, 36px);
  list-style: none;
  padding: 0;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: 10px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--ink); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.site-nav a[aria-current]::after { display: none; }
.nav-indicator {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--cedar);
  view-transition-name: nav-indicator;
}

.site-menu__aside { display: flex; align-items: center; gap: 20px; }
.site-menu__email { display: none; }

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 64px;
  padding: 0 calc(12px - 0.2em) 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-label);
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}
.theme-toggle:hover,
.menu-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle:active,
.menu-toggle:active { transform: translateY(1px); }
.menu-toggle { display: none; min-height: 40px; }
html:not(.js) .theme-toggle { display: none; }

/* Mobile menu: the same nav, re-laid as a full-height panel under the header. */
@media (max-width: 759px) {
  .js .menu-toggle { display: inline-flex; }

  .js .site-menu {
    position: fixed;
    top: calc(var(--ribbon-h) + var(--header-h));
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 40px;
    padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ground);
    border-top: 1px solid var(--hairline);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.28s ease, transform 0.36s var(--ease-out), visibility 0s linear 0.36s;
  }
  html[data-menu-open] .site-menu {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }
  html[data-menu-open] { overflow: hidden; }

  .js .site-nav__list { flex-direction: column; gap: 0; counter-reset: nav; }
  .js .site-nav li { border-bottom: 1px solid var(--hairline); }
  .js .site-nav a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding-block: 22px;
    color: var(--ink);
    font-size: var(--text-h1);
    letter-spacing: -0.01em;
  }
  .js .site-nav a::before {
    counter-increment: nav;
    content: counter(nav, decimal-leading-zero);
    min-width: 1.5rem;
    color: var(--faint-text);
    font-size: var(--text-caption);
    letter-spacing: 0;
  }
  .js .site-nav a::after { display: none; }
  .js .nav-indicator { bottom: -1px; }

  .js .site-menu__aside { flex-direction: column; align-items: flex-start; gap: 20px; }
  .js .site-menu__email {
    display: inline;
    color: var(--ink);
    font-size: var(--text-body);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
    text-decoration-color: var(--faint);
  }

  /* Without JavaScript the header is static and the nav simply wraps. */
  html:not(.js) body { padding-top: var(--ribbon-h); }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header__inner { height: auto; flex-wrap: wrap; padding-block: 16px; }
}

/* ---- Content-needed slots (placeholders — never live copy) ------------------------------------- */
.slot {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px dashed var(--faint);
  border-radius: var(--radius);
  color: var(--muted);
}
.slot__label,
.draft-copy__label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
  color: var(--accent-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-label);
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.slot__id {
  color: var(--faint-text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
}
.slot__note {
  max-width: 62ch;
  color: var(--muted);
  font-size: var(--text-small);
  line-height: 1.55;
  text-wrap: pretty;
}
.slot__length { color: var(--faint-text); }
.slot__lines { display: grid; gap: 14px; margin-top: 20px; }
.slot__lines span {
  display: block;
  height: 1px;
  background: color-mix(in srgb, var(--faint) 45%, transparent);
}
.slot__lines span:last-child:not(:first-child) { width: 58%; }

.slot--statement .slot__lines { gap: 26px; margin-top: 28px; }
@media (max-width: 479px) { .slot { padding: 14px 16px 16px; } }

.slot--inline { padding: 10px 14px 12px; }
.slot--inline .slot__label { margin-bottom: 4px; }
.slot--inline .slot__note { font-size: var(--text-caption); font-family: var(--font-sans); line-height: 1.5; }

/* ---- Draft copy (written, awaiting Mark's approval — the check refuses to launch with any left) --- */
.draft-copy {
  position: relative;
  padding: 2px 0 4px 18px;
  border-left: 1px dashed var(--faint);
}
.draft-copy__label { margin-bottom: 12px; }
.draft-copy > :last-child { margin-bottom: 0; }

/* ---- Structure placeholders (portfolio preview only — never live) -------------------------------- */
.ph {
  border: 1px dashed var(--faint);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  line-height: 1.5;
}
.ph code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.ph--media { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; letter-spacing: 0.04em; }
.ph--text { display: grid; gap: 10px; padding: 18px 20px; font-family: var(--font-serif); font-size: var(--text-small); }
.ph--note { max-width: 78ch; margin-bottom: clamp(24px, 3vw, 36px); padding: 12px 16px; }

/* ---- Sections ------------------------------------------------------------------------------------ */
.section > .wrap {
  position: relative;
  padding-block: var(--space-section);
}
.section > .wrap::before,
.site-footer > .wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 28px;
}
.section__num {
  margin-bottom: 14px;
  color: var(--faint-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}
.section__bar { margin-bottom: clamp(28px, 4vw, 44px); }
.section__action { margin-top: 32px; }
.section__para { max-width: 58ch; color: var(--muted); text-wrap: pretty; }
.statement + .section__para { margin-top: 1.1em; }
.lede--follow { margin-top: 0.9em; max-width: 44ch; font-size: var(--text-body); line-height: 1.6; }

@media (min-width: 900px) {
  .section__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
  .section__head { grid-column: 1 / span 4; }
  .section__body { grid-column: 5 / -1; }
  .section__head .section__title { position: sticky; top: calc(var(--ribbon-h) + var(--header-h-condensed) + 32px); }
}

/* ---- Hero (home): the lockup centred and large, a rule drawn out from it, one sentence, the sectors ---- */
.hero__grid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--ribbon-h) - var(--header-h));
  padding-block: clamp(40px, 8vw, 88px) clamp(96px, 12vw, 132px);
  text-align: center;
}
/* As the hero scrolls away it drifts up and fades (site.js sets --hero-p); the strata of the mark lift apart. */
.hero__center {
  display: grid;
  justify-items: center;
  width: 100%;
  transform: translate3d(0, calc(var(--hero-p, 0) * -9vh), 0);
  opacity: calc(1 - var(--hero-p, 0) * 1.15);
}
/* Same construction as the header lockup (.brand): mark 0.84em tall, gap 0.42em, 0.16em tracking. */
.hero-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42em;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(3.25rem, 1rem + 11.5vw, 10rem); /* 53px at 320 → 160px */
  line-height: 1;
  letter-spacing: 0.16em;
}
.hero-mark { flex: none; height: 0.84em; width: auto; overflow: visible; }
.hero-mark .mark__stratum { transform: translateY(calc(var(--hero-p, 0) * (var(--i) - 2) * 7px)); }
.hero-mark .mark__trunk { transform: translateY(calc(var(--hero-p, 0) * 5px)); }
.hero-lockup__word { margin-right: -0.16em; }

/* A hairline with a short Cedar centre, drawn outwards from the middle on the first visit of the session. */
.hero__rule {
  position: relative;
  display: block;
  width: min(560px, 76%);
  height: 1px;
  margin: clamp(30px, 4.6vw, 48px) auto clamp(26px, 3.8vw, 38px);
  background: var(--hairline);
  transform-origin: center;
}
.hero__rule::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 1px;
  margin-left: -22px;
  background: var(--cedar);
}
.hero__statement { max-width: 34ch; margin-inline: auto; }

/* The sectors, in their own capitals, divided by short upright hairlines. */
.sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 10px;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.sectors li { display: inline-flex; align-items: center; }
.sectors li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-inline: clamp(12px, 1.6vw, 18px);
  background: var(--faint);
  opacity: 0.6;
}
/* On a phone the list wraps, and a divider would start a line: space the words instead. */
@media (max-width: 599px) {
  .sectors { column-gap: 20px; font-size: 0.875rem; }
  .sectors li + li::before { display: none; }
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: clamp(30px, 4.2vw, 42px);
}

/* Scroll cue: the mark's trunk, as a hairline with a Cedar segment running down it. */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3.2vw, 34px);
  width: 28px;
  height: 58px;
  margin-left: -14px;
  opacity: calc(1 - var(--hero-p, 0) * 3);
}
.hero__cue::before,
.hero__cue::after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 0.5px);
  width: 1px;
}
.hero__cue::before { bottom: 0; background: var(--hairline); }
.hero__cue::after {
  height: 20px;
  background: var(--cedar);
  transform-origin: top center;
  transform: scaleY(0);
  animation: cue-run 2.8s var(--ease-out) 2.2s infinite;
}
.hero__cue:focus-visible { outline-offset: 2px; }
@keyframes cue-run {
  0% { transform: translateY(0) scaleY(0); }
  30% { transform: translateY(0) scaleY(1); }
  75%, 100% { transform: translateY(38px) scaleY(0); }
}

/* ---- Home overview index ------------------------------------------------------------------------ */
.index-list { position: relative; list-style: none; padding: 0; counter-reset: index-row; }
.index-row {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  grid-template-areas: "num title arrow" "body body body";
  column-gap: var(--col-gap);
  row-gap: 18px;
  align-items: baseline;
  padding-block: clamp(26px, 3.4vw, 40px);
}
.index-row__num {
  grid-area: num;
  color: var(--faint-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-caption);
  font-variant-numeric: tabular-nums;
}
.index-row__num::before { counter-increment: index-row; content: counter(index-row, decimal-leading-zero); }
.index-row__text { max-width: 46ch; color: var(--muted); }
.index-row__title { grid-area: title; }
.index-row__body { grid-area: body; }
.index-row__arrow {
  grid-area: arrow;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-h2);
  line-height: 1;
  transition: transform 0.4s var(--ease-out), color 0.2s ease;
}
.index-row__link {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}
.index-row__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.index-row__link:focus-visible { outline: none; }
.index-row__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius); }
.index-row:hover .index-row__link { color: var(--accent-text); }
.index-row:hover .index-row__arrow { color: var(--accent-text); transform: translateX(6px); }
.index-row:active .index-row__arrow { transform: translateX(10px); }

@media (min-width: 900px) {
  .index-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas: none;
    align-items: start;
  }
  .index-row__num { grid-area: auto; grid-column: 1 / span 1; padding-top: 0.75rem; }
  .index-row__title { grid-area: auto; grid-column: 2 / span 3; }
  .index-row__body { grid-area: auto; grid-column: 5 / span 7; }
  .index-row__arrow { grid-area: auto; grid-column: 12 / -1; justify-self: end; padding-top: 0.35rem; }
}

.section--closing .closing-email { margin-bottom: 12px; }

/* ---- Inner page intro ---------------------------------------------------------------------------- */
.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(48px, 9vw, 120px) clamp(48px, 7vw, 88px);
}
.page-intro__eyebrow { margin-bottom: clamp(18px, 2.4vw, 28px); }
.page-intro__title { max-width: 18ch; }
.page-intro__lede { margin-top: clamp(36px, 6vw, 72px); }
.page-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.page-intro--tight .page-intro__grid { padding-bottom: clamp(32px, 5vw, 56px); }
.page-intro--holding .page-intro__grid { padding-bottom: clamp(28px, 4vw, 48px); }
.page-intro__place { margin-top: clamp(18px, 2.4vw, 28px); max-width: none; }
.page-intro--error .page-intro__grid { min-height: min(640px, calc(100svh - var(--ribbon-h) - var(--header-h))); align-content: center; }

@media (min-width: 900px) {
  .page-intro__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .page-intro__eyebrow, .page-intro__title, .page-intro__place { grid-column: 1 / span 10; }
  .page-intro__lede { grid-column: 5 / -1; }
  .page-intro--error .page-intro__lede { grid-column: 1 / span 8; }
}

/* ---- Ledger (About), roster (Team), contact ------------------------------------------------------ */
.ledger { position: relative; display: grid; }
.ledger__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-block: 24px;
}
.ledger__desc { max-width: 46ch; color: var(--muted); text-wrap: pretty; }
@media (min-width: 640px) {
  .ledger__row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: baseline; }
}

.roster { position: relative; list-style: none; padding: 0; }
.roster__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: clamp(22px, 3vw, 34px);
}
@media (min-width: 760px) {
  .roster__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; }
  .roster__name { grid-column: 1 / span 7; }
  .roster__title { grid-column: 8 / -1; }
}

.contact-list { position: relative; display: grid; }
.contact-list__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-block: 28px;
}
.contact-list dt { padding-top: 2px; }
@media (min-width: 640px) {
  .contact-list__row { grid-template-columns: 9rem minmax(0, 1fr); column-gap: var(--col-gap); align-items: baseline; }
  .contact-list__row:has(.slot) { align-items: start; }
  .contact-list__row:has(.slot) dt { padding-top: 12px; }
}

/* Row hairlines are drawn lines, so they can draw themselves in: one above every row, one under the list. */
:is(.index-list, .roster, .ledger, .contact-list) > *::before,
:is(.index-list, .roster, .ledger, .contact-list)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
  transform-origin: left center;
}
:is(.index-list, .roster, .ledger, .contact-list) > *::before { top: 0; }
:is(.index-list, .roster, .ledger, .contact-list)::after { bottom: 0; }
/* Home index: hovering a row draws a Cedar line over its hairline. */
.index-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cedar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.index-row:hover::after,
.index-row:focus-within::after { transform: scaleX(1); }

/* ---- Portfolio: holdings grid, property page ------------------------------------------------------ */
.holdings-grid,
.gallery { list-style: none; padding: 0; display: grid; }
.holdings-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 4vw, 52px) var(--col-gap);
}
.holdings-grid > li { display: grid; }
.holding-card { position: relative; display: grid; align-content: start; gap: 6px; }
.holding-card__media {
  margin-bottom: 12px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--raised);
}
.holding-card--placeholder .holding-card__media { background: none; }
.holding-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.holding-card:hover .holding-card__img { transform: scale(1.02); }
.holding-card__link { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.holding-card__link::after { content: ""; position: absolute; inset: 0; }
.holding-card__link:focus-visible { outline: none; }
.holding-card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius); }
.holding-card:hover .holding-card__link { color: var(--accent-text); }
.holding-card__meta { color: var(--muted); font-size: var(--text-small); }

.holding__lead { padding-bottom: var(--space-section); }
.holding__lead-img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.holding__para { max-width: 62ch; margin-top: 1em; color: var(--muted); text-wrap: pretty; }
.holding__facts { margin-top: clamp(28px, 4vw, 44px); }
.gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--col-gap); }
.gallery__img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.holding__pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.link-arrow--back:hover span { transform: translateX(-4px); }
.link-arrow--back:active span { transform: translateX(-6px); }

/* ---- The mark (About) ---------------------------------------------------------------------------- */
.mark-feature { display: grid; gap: 36px; align-items: center; }
.mark-feature__figure {
  display: grid;
  place-items: center;
  width: clamp(140px, 22vw, 200px);
  aspect-ratio: 1;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.mark-feature__mark { width: 58%; height: auto; overflow: visible; }
@media (min-width: 640px) {
  .mark-feature { grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
}

/* ---- Footer ---------------------------------------------------------------------------------------- */
.site-footer > .wrap { position: relative; }
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px var(--col-gap);
  padding-block: clamp(48px, 7vw, 80px);
}
.site-footer__lockup { font-size: 1.25rem; }
.site-footer__list { display: grid; gap: 8px; margin-top: 16px; list-style: none; padding: 0; }
.site-footer__list a {
  color: var(--muted);
  font-size: var(--text-small);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.site-footer__list a:hover { color: var(--ink); text-decoration-color: currentColor; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 24px 40px;
  color: var(--faint-text);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
}
.site-footer__top {
  margin-left: auto;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--faint);
}
.site-footer__top:hover { color: var(--ink); text-decoration-color: currentColor; }

@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / span 6; }
  .site-footer__col { grid-column: span 3; }
}

/* ---- Motion: section reveal (content is fully visible without JS or with reduced motion) --------- */
.reveal-ready [data-reveal] {
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }

/* ---- Motion: hairlines draw themselves in as they scroll into view (site.js adds .draw-ready + .is-drawn) -- */
.draw-ready :is(.section, .site-footer) > .wrap::before { transition: transform 1.2s var(--ease-out); }
.draw-ready :is(.section, .site-footer):not(.is-drawn) > .wrap::before { transform: scaleX(0); }
.draw-ready :is(.index-list, .roster, .ledger, .contact-list) > *::before {
  transition: transform 1s var(--ease-out) calc(var(--row, 0) * 90ms + 120ms);
}
.draw-ready :is(.index-list, .roster, .ledger, .contact-list)::after {
  transition: transform 1s var(--ease-out) calc(var(--rows, 0) * 90ms + 120ms);
}
.draw-ready :is(.index-list, .roster, .ledger, .contact-list):not(.is-drawn) > *::before,
.draw-ready :is(.index-list, .roster, .ledger, .contact-list):not(.is-drawn)::after { transform: scaleX(0); }

/* Every page ends with the cedar drawing itself in the footer as the footer arrives. */
.draw-ready .site-footer:not(.is-drawn) .brand__mark :is(.mark__stratum, .mark__trunk) { opacity: 0; }
.draw-ready .site-footer.is-drawn .brand__mark .mark__stratum {
  animation: mark-draw 0.7s cubic-bezier(0.5, 0, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 150ms + 250ms);
}
.draw-ready .site-footer.is-drawn .brand__mark .mark__trunk {
  animation: mark-grow 0.4s cubic-bezier(0.5, 0, 0.2, 1) 830ms backwards;
}

/* ---- Motion: the Strata Cedar draws in (home hero once per session; About mark on reveal) -------- */
[data-intro] .hero-mark .mark__stratum,
.reveal-ready .is-in .mark-feature__mark .mark__stratum {
  animation: mark-draw 0.7s cubic-bezier(0.5, 0, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 150ms + 120ms);
}
[data-intro] .hero-mark .mark__trunk,
.reveal-ready .is-in .mark-feature__mark .mark__trunk {
  animation: mark-grow 0.4s cubic-bezier(0.5, 0, 0.2, 1) backwards;
  animation-delay: 700ms;
}
@keyframes mark-draw {
  0% { stroke-dasharray: 0 var(--len2); stroke-dashoffset: var(--half); opacity: 0; }
  12% { opacity: 1; }
  100% { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: 0; opacity: 1; }
}
@keyframes mark-grow {
  0% { stroke-dasharray: 0 48; opacity: 0; }
  20% { opacity: 1; }
  100% { stroke-dasharray: 24 48; opacity: 1; }
}
[data-intro] .intro-step {
  animation: intro-rise 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--step) * 120ms + 220ms);
}
@keyframes intro-rise { from { opacity: 0; transform: translateY(14px); } }
/* Home intro, once per session: the rule draws outwards from its centre, then the sectors arrive one by one. */
[data-intro] .hero__rule { animation: rule-draw 1.1s var(--ease-out) 0.55s backwards; }
[data-intro] .sectors li { animation: intro-rise 0.7s var(--ease-out) backwards; animation-delay: calc(var(--s) * 90ms + 820ms); }
@keyframes rule-draw { from { transform: scaleX(0); } }

/* ---- Motion: cross-document view transitions ------------------------------------------------------ */
@view-transition { navigation: auto; }

::view-transition-old(root) { animation: vt-fade-out 0.18s ease both; }
::view-transition-new(root) { animation: vt-rise-in 0.42s var(--ease-out) both; }
/* The header is the same on every page: swap it without a crossfade so it never flashes. */
::view-transition-group(site-header),
::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-group(draft-ribbon),
::view-transition-old(draft-ribbon),
::view-transition-new(draft-ribbon) { animation: none; }
::view-transition-old(site-header),
::view-transition-old(draft-ribbon) { display: none; }
/* The current-page underline glides to its new nav item. */
::view-transition-group(nav-indicator) { animation-duration: 0.5s; animation-timing-function: var(--ease-out); }

@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-rise-in { from { opacity: 0; transform: translateY(10px); } }

/* Theme switch (same-document transition started by site.js): one soft crossfade of everything. */
html.vt-theme .site-header,
html.vt-theme .draft-ribbon,
html.vt-theme .nav-indicator { view-transition-name: none; }
html.vt-theme::view-transition-old(root) { animation: none; }
html.vt-theme::view-transition-new(root) { animation: vt-fade-in 0.45s ease both; }
@keyframes vt-fade-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero__center, .hero-mark .mark__stratum, .hero-mark .mark__trunk { transform: none !important; opacity: 1 !important; }
  .hero__cue::after { animation: none !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Print ----------------------------------------------------------------------------------------- */
@media print {
  :root, :root[data-theme] {
    --ground: #fff; --raised: #f2f2f2; --ink: #000; --muted: #333; --faint-text: #444; --faint: #888;
    --hairline: #bbb; --accent-text: #000; color-scheme: light;
  }
  body { padding-top: 0; }
  .draft-ribbon, .site-header { position: static; }
  .draft-ribbon { border-bottom: 1px solid #000; }
  .skip-link, .menu-toggle, .theme-toggle, .site-footer__top, .site-menu__aside { display: none !important; }
  .site-menu { position: static !important; visibility: visible !important; opacity: 1 !important; transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__grid, .page-intro--error .page-intro__grid { min-height: 0 !important; }
  .index-row__arrow { display: none; }
  .section > .wrap::before, .site-footer > .wrap::before,
  :is(.index-list, .roster, .ledger, .contact-list) > *::before,
  :is(.index-list, .roster, .ledger, .contact-list)::after {
    transform: none !important; background: #bbb; print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .site-header::after, .hero__cue, .index-row::after { display: none !important; }
  .hero__center, .hero-mark .mark__stratum, .hero-mark .mark__trunk { transform: none !important; opacity: 1 !important; }
  a[href^="mailto:"]::after { content: ""; }
}
