/* ===========================================================================
   Plainbox Studio — Global Styles
   One stylesheet. Tokens first, then base, then components, then page styles.
   Edit a brand color in :root and the whole site moves with it.
   =========================================================================== */

/* ----------------------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #1A1A1A;
  --ivory: #F5F1E8;
  --paper: #FFFFFF;
  --signal: #DD5A28;
  --stone: #5A5A5A;
  --bone: #E8E2D5;
  --smoke: #B8B4A8;
  --hairline: #D8D4C8;
  --ash: #2A2A2A;
  --mist: #A8A8A0;

  /* Type */
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans:  "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "IBM Plex Mono", "Consolas", "Courier New", monospace;

  --text-mono-xs: 11px;
  --text-xs: 12px;
  --text-mono-sm: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 38px;
  --text-3xl: 48px;
  --text-4xl: 64px;
  --text-5xl: 84px;

  /* Spacing — 8pt */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;
  --space-10: 192px;

  /* Layout */
  --max-content: 1320px;
  --outer-margin: 96px;
  --body-max: 720px;
  --read-max: 640px;
}

@media (max-width: 1100px) {
  :root { --outer-margin: 64px; }
}
@media (max-width: 720px) {
  :root { --outer-margin: 24px; }
}

/* ----------------------------------------------------------------------------
   2. Base
   ---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 26px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

ul, ol { list-style: none; }

/* Page wrapper for the inner pages */
.page { background: var(--paper); }
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--outer-margin);
  padding-right: var(--outer-margin);
}

.section { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.section--tight { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.section--dark {
  background: var(--ink);
  color: var(--ivory);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
@media (max-width: 720px) {
  .section { padding-top: var(--space-4); padding-bottom: var(--space-4); }
  .section--dark { padding-top: var(--space-6); padding-bottom: var(--space-6); }
}

/* Type roles */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .rule {
  display: inline-block;
  width: 48px;
  height: 1.5px;
  background: var(--signal);
}

.h1, .h2, .h3, .h4 { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.h1 { font-size: var(--text-5xl); line-height: 92px; }
.h2 { font-size: var(--text-4xl); line-height: 72px; }
.h3 { font-size: var(--text-3xl); line-height: 56px; }
.h4 { font-size: var(--text-2xl); line-height: 44px; }
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em, .h1 em, .h2 em, .h3 em, .h4 em { font-style: italic; }

.lede {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  max-width: 580px;
  color: rgba(26, 26, 26, 0.88);
}
@media (min-width: 900px) {
  .lede--single-line { max-width: none; white-space: nowrap; }
}
.section--dark .lede { color: rgba(245, 241, 232, 0.88); }

.body { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; color: var(--ink); max-width: var(--body-max); }
.body p + p { margin-top: var(--space-3); }
.body em { font-style: italic; }
.section--dark .body { color: var(--ivory); }

.mono-caption {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--text-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(21px, 2.25vw, 36px);
  line-height: 1.15;
  padding-left: var(--space-3);
  border-left: 1px solid var(--signal);
  max-width: 880px;
  margin: var(--space-7) 0;
  text-wrap: balance;
}
.section--dark .pullquote { color: var(--ivory); }

.pullquote-figure {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  max-width: 1040px;
  margin: 0;
}
.pullquote-figure__portrait-wrap {
  flex: 0 0 220px;
  width: 220px;
  align-self: stretch;
  background: var(--bone);
}
.pullquote-figure__portrait-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.pullquote-figure__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pullquote-figure__body .pullquote {
  margin: 0;
  max-width: none;
}
.pullquote-figure__attribution {
  margin-top: var(--space-3);
  padding-left: var(--space-3);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.pullquote-figure__portrait-wrap--md { flex: 0 0 176px; width: 176px; }
@media (max-width: 720px) {
  .pullquote-figure { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .pullquote-figure__portrait-wrap,
  .pullquote-figure__portrait-wrap--md { flex: 0 0 120px; width: 120px; height: 120px; }
}

/* Architectural rule frame (used around inner-page heroes) */
.rule-signal {
  height: 1px;
  background: var(--signal);
  width: 100%;
  display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ----------------------------------------------------------------------------
   3. Buttons
   ---------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 16px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}

/* Primary on dark grounds (signal block) */
.btn--primary {
  background: var(--signal);
  color: var(--ivory);
  border-color: var(--signal);
}
.btn--primary:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* Primary on light pages (ink block) */
.btn--primary-light {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn--primary-light:hover { background: var(--ivory); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

.section--dark .btn--ghost { color: var(--ivory); border-color: var(--ivory); }
.section--dark .btn--ghost:hover { background: var(--ivory); color: var(--ink); }

.link-mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: border-color 180ms ease-out;
}
.link-mono:hover { border-bottom-color: var(--signal); }

.link-inline {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease-out;
}
.link-inline:hover { border-bottom-color: var(--signal); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ----------------------------------------------------------------------------
   4. Cards
   ---------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: var(--space-5);
}
.card--ivory { background: var(--ivory); border-color: var(--smoke); }
.card--dark { background: var(--ash); border: 0; color: var(--ivory); }

.card .card__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-4);
  display: block;
}
.card .card__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}
.card--dark .card__title { color: var(--ivory); }
.card .card__body { font-size: 16px; line-height: 1.55; color: var(--ink); }
.card--dark .card__body { color: var(--ivory); }

/* ----------------------------------------------------------------------------
   5. Image / screen frame
   ---------------------------------------------------------------------------- */
.frame {
  border: 1.5px solid var(--smoke);
  padding: var(--space-5);
  background: var(--ivory);
}
.frame > .frame__placeholder,
.frame > img {
  width: 100%;
  display: block;
}
.frame__placeholder {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(26,26,26,0.04) 12px 13px),
    var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  text-align: center;
  padding: var(--space-5);
}
.frame__caption {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: var(--space-3);
}

/* ----------------------------------------------------------------------------
   6. Top nav (shared on every page)
   ---------------------------------------------------------------------------- */
.plainbox-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 22px;
  color: var(--ivory);
  background: rgba(20, 20, 20, 0.28);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(245, 241, 232, 0.14);
}

/* On inner pages: glass-on-paper variant (resolved per Section 8.1, Option A, adapted) */
.page .plainbox-nav {
  position: sticky;
  top: 0;
  left: auto; right: auto;
  margin: 0;
  border-left: 0; border-right: 0; border-top: 0;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  padding: 0 var(--outer-margin);
  height: 72px;
}

.plainbox-nav__brand {
  display: inline-flex;
  align-items: center;
}
/* Two-variant brand mark. The default light-background variant shows; the
   dark-background variant is hidden until a page opts in via
   `<body data-nav-theme="dark">`. */
.plainbox-nav__logo {
  height: 40px;
  width: auto;
}
.plainbox-nav__logo--on-light { display: block; }
.plainbox-nav__logo--on-dark { display: none; }
body[data-nav-theme="dark"] .plainbox-nav__logo--on-light { display: none; }
body[data-nav-theme="dark"] .plainbox-nav__logo--on-dark { display: block; }

.plainbox-nav__items {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}
@media (max-width: 1180px) {
  .plainbox-nav__items { gap: 28px; }
}
.plainbox-nav__items a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: inherit;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms ease-out;
  white-space: nowrap;
}
.plainbox-nav__items a:hover,
.plainbox-nav__items a[aria-current="page"] { border-bottom-color: var(--signal); }

.plainbox-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 18px;
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--ivory);
  transition: background 200ms ease-out, color 200ms ease-out;
}
.plainbox-nav__cta-arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.plainbox-nav__cta:hover { background: transparent; color: inherit; }
.page .plainbox-nav__cta {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.page .plainbox-nav__cta:hover { background: transparent; color: var(--ink); }

.plainbox-nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

@media (max-width: 900px) {
  .plainbox-nav__items,
  .plainbox-nav__cta { display: none; }
  .plainbox-nav__toggle { display: inline-block; }
  /* Allow the nav to grow downward when the drawer opens by wrapping
     extra rows into the same flex container. */
  .plainbox-nav { padding: 0 var(--outer-margin); height: 64px; flex-wrap: wrap; align-content: flex-start; }
  .page .plainbox-nav { padding: 0 var(--outer-margin); height: 64px; flex-wrap: wrap; align-content: flex-start; }

  /* Open state: the nav expands; items become a stacked column on row 2,
     and the CTA flows onto row 3. Both get an explicit opaque background
     (set on the parent) so the hero doesn't bleed through. */
  .plainbox-nav--open {
    height: auto;
    padding-bottom: var(--space-4);
  }
  .plainbox-nav--open .plainbox-nav__items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    flex-basis: 100%;
    width: 100%;
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(245, 241, 232, 0.14);
  }
  .plainbox-nav--open .plainbox-nav__cta {
    display: inline-flex;
    flex-basis: 100%;
    width: auto;
    align-self: flex-start;
    margin-top: var(--space-3);
  }

  /* Opaque drawer surfaces so menu items are legible over hero/video. */
  .page .plainbox-nav--open { background-color: var(--paper); border-bottom: 1px solid var(--hairline); }
  .page .plainbox-nav--open .plainbox-nav__items { border-top-color: var(--hairline); }
  body.home .plainbox-nav--open { background-color: var(--ink); }
  body.home[data-hero-mode="light"] .plainbox-nav--open { background-color: #e5ddcf; }
  body.home[data-hero-mode="light"] .plainbox-nav--open .plainbox-nav__items { border-top-color: rgba(26, 26, 26, 0.14); }
}

/* ----------------------------------------------------------------------------
   7. Footer (shared) — tight, single-row brand left / columns right
   ---------------------------------------------------------------------------- */
.plainbox-footer {
  background: var(--paper);
  border-top: 1px solid var(--hairline);
  padding: var(--space-5) var(--outer-margin) var(--space-3);
  color: var(--ink);
}
.plainbox-footer__top {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  align-items: start;
  gap: var(--space-6);
  padding-bottom: var(--space-4);
}
.plainbox-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plainbox-footer__brandlink {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.plainbox-footer__logo {
  display: block;
  height: 32px;
  width: auto;
}
.plainbox-footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--stone);
  margin-top: 6px;
}
.plainbox-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.plainbox-footer__col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-2);
}
.plainbox-footer__col a {
  display: block;
  padding: 3px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease-out;
  width: -moz-fit-content;
  width: fit-content;
}
.plainbox-footer__col a:hover { border-bottom-color: var(--signal); }
.plainbox-footer__col-viewall {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.plainbox-footer__bottom {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 900px) {
  .plainbox-footer__top { grid-template-columns: 1fr; gap: var(--space-4); }
  .plainbox-footer__cols { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
}
@media (max-width: 720px) {
  .plainbox-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plainbox-footer { padding: var(--space-4) var(--outer-margin) var(--space-3); }
  .plainbox-footer__cols { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ----------------------------------------------------------------------------
   8. Home — hero (fixed viewport composition, video bg)
   ---------------------------------------------------------------------------- */
body.home {
  background: #000;
  color: var(--ivory);
  overflow: hidden;
}
.home-stage { position: fixed; inset: 0; }

.home-bg { position: fixed; inset: 0; z-index: 0; background: #0a0a0a; overflow: hidden; }
.home-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.home-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 45%);
  pointer-events: none;
}

.home-hero {
  position: fixed;
  left: 56px;
  bottom: 56px;
  z-index: 5;
  max-width: 640px;
  color: var(--ivory);
}
.home-hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.home-hero__rule { width: 48px; height: 1.5px; background: var(--signal); display: inline-block; }

.home-hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-wrap: balance;
  padding-left: 0.08em;
}
.home-hero__headline em { font-style: italic; }

.home-hero__lede {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  max-width: 540px;
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: 40px;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.home-hero__primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  background: var(--signal);
  color: var(--ivory);
  padding: 16px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid var(--signal);
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out;
}
.home-hero__primary:hover {
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
}
.home-hero__ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ivory);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245, 241, 232, 0.4);
}
.home-hero__ghost:hover { border-bottom-color: var(--signal); }

.home-side {
  position: fixed;
  right: var(--outer-margin, 24px);
  bottom: 56px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.55);
  white-space: nowrap;
}

/* Home page nav on top of video (override the page .plainbox-nav reset) */
body.home .plainbox-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  padding: 0 var(--outer-margin);
  background: rgba(20, 20, 20, 0.28);
  border: 1px solid rgba(245, 241, 232, 0.14);
  border-top: 0; border-left: 0; border-right: 0;
  color: var(--ivory);
}
body.home .plainbox-nav__cta {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
body.home .plainbox-nav__cta:hover { background: transparent; color: var(--ivory); }

@media (max-width: 900px) {
  .home-hero { left: 24px; right: 24px; bottom: 24px; max-width: none; }
}
@media (max-width: 600px) {
  .home-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: nowrap;
  }
  /* Explicit nowrap on the text span — don't rely on inheritance. */
  .home-hero__eyebrow > span { white-space: nowrap; }
  .home-hero__rule { width: 24px; flex: 0 0 24px; }
  .home-hero__headline {
    font-size: 28px;
    line-height: 1.08;
    margin-bottom: 14px;
  }
  .home-hero__lede {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
  }
  /* Suppress hard-coded <br> breaks in the lede on phones so copy flows
     as one paragraph instead of leaving a gap before the closing sentence. */
  .home-hero__lede br { display: none; }
  .home-hero__actions { gap: 14px; }
  .home-hero__primary { padding: 11px 18px; font-size: 12px; }
  .home-hero__ghost { font-size: 10px; }
}
@media (max-width: 1100px) {
  .home-side { display: none; }
}

/* Light-mode home variation (sampled cream from the software-screen footage) */
body.home[data-hero-mode="light"] { background: #e5ddcf; color: var(--ink); }
body.home[data-hero-mode="light"] .home-bg { background: #e5ddcf; }
/* Fit the laptop within the viewport instead of filling it — the source
   composition already sits on the same cream, so contain blends seamlessly.
   Pinned to the far right so the hero copy on the left has room to breathe. */
body.home[data-hero-mode="light"] .home-bg video {
  object-fit: contain;
  object-position: 100% 50%;
  transform: scale(0.8) translate(12%, 8%);
  transform-origin: 100% 50%;
}
/* On tablets (iPad landscape ~1180px and portrait iPad Pro 12.9" ~1024px):
   the desktop scale(0.8) translate(12%) leaves the laptop sitting where
   it crowds the long headline copy. Shrink without any extra rightward
   translate so the laptop sits flush against the viewport's right edge
   (no off-screen clipping) while still freeing the left half for text. */
@media (min-width: 901px) and (max-width: 1280px) {
  body.home[data-hero-mode="light"] .home-bg video {
    transform: scale(0.55) translate(0%, 4%);
  }
}
@media (max-width: 900px) {
  body.home[data-hero-mode="light"] .home-bg video {
    object-position: 50% 25%;
    transform: scale(1.4);
    transform-origin: 50% 25%;
  }
}
/* On phones: position the laptop in the upper-middle of the viewport with
   enough breathing room below the nav and above the hero eyebrow. */
@media (max-width: 600px) {
  body.home[data-hero-mode="light"] .home-bg video {
    object-position: 50% 22%;
    transform: scale(1.15);
    transform-origin: 50% 22%;
  }
}
body.home[data-hero-mode="light"] .home-bg::after {
  background:
    linear-gradient(180deg, rgba(229,221,207,0) 0%, rgba(229,221,207,0) 55%, rgba(229,221,207,0.6) 100%),
    linear-gradient(90deg, rgba(229,221,207,0.7) 0%, rgba(229,221,207,0) 45%);
}
body.home[data-hero-mode="light"] .home-hero { color: var(--ink); }
body.home[data-hero-mode="light"] .home-hero__lede { color: rgba(26, 26, 26, 0.78); }
body.home[data-hero-mode="light"] .home-hero__primary {
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
}
body.home[data-hero-mode="light"] .home-hero__primary:hover {
  background: transparent; color: var(--ink);
}
body.home[data-hero-mode="light"] .home-hero__ghost {
  color: var(--ink); border-bottom-color: rgba(26, 26, 26, 0.4);
}
body.home[data-hero-mode="light"] .home-hero__ghost:hover { border-bottom-color: var(--signal); }
body.home[data-hero-mode="light"] .home-side { color: rgba(26, 26, 26, 0.45); }
body.home[data-hero-mode="light"] .plainbox-nav {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: var(--hairline);
  color: var(--ink);
}
body.home[data-hero-mode="light"] .plainbox-nav__items a { color: var(--ink); }
body.home[data-hero-mode="light"] .plainbox-nav__cta {
  background: var(--ink); color: var(--ivory); border-color: var(--ink);
}
body.home[data-hero-mode="light"] .plainbox-nav__cta:hover {
  background: transparent; color: var(--ink);
}

/* When the mobile drawer is open, force an opaque surface that wins
   source-order against the translucent closed-state `background` shorthand
   rules above. The extra `.plainbox-nav.plainbox-nav--open` chaining adds a
   class to the selector for the specificity bump, and backdrop-filter is
   cleared so iOS Safari doesn't tint the opaque color through a blur. */
@media (max-width: 900px) {
  /* Two-class chaining ensures the open-state rules outrank the closed-state
     `.page .plainbox-nav` (height: 64px) and `body.home .plainbox-nav`
     (height: 72px) rules. Without this the drawer can't expand and items
     overflow below the nav onto the page hero, where they often vanish
     against a matching background (ink-on-ink on inner pages). */
  body.home .plainbox-nav.plainbox-nav--open,
  body.home[data-hero-mode="light"] .plainbox-nav.plainbox-nav--open,
  .page .plainbox-nav.plainbox-nav--open {
    height: auto;
    padding-bottom: var(--space-4);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.home .plainbox-nav.plainbox-nav--open { background-color: var(--ink); }
  body.home[data-hero-mode="light"] .plainbox-nav.plainbox-nav--open { background-color: #e5ddcf; }
  .page .plainbox-nav.plainbox-nav--open { background-color: var(--paper); }
}

/* ----------------------------------------------------------------------------
   9. Inner-page hero (typographic only)
   ---------------------------------------------------------------------------- */
.inner-hero {
  background: var(--ink);
  color: var(--ivory);
  padding: var(--space-6) 0 var(--space-6);
}
.inner-hero__rules {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.inner-hero__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
}
.inner-hero__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.inner-hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 1100px;
  color: var(--ivory);
}
.inner-hero__headline em { font-style: italic; }
.inner-hero__lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.85);
  max-width: 620px;
  margin-top: var(--space-2);
}
@media (min-width: 900px) {
  .inner-hero__lede--single-line { max-width: none; white-space: nowrap; }
}

/* ----------------------------------------------------------------------------
   10. Two-column section, comparison table
   ---------------------------------------------------------------------------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-6);
}
.compare th, .compare td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-4) var(--space-4);
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  line-height: 1.55;
}
.compare thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  border-top: 0;
  padding-bottom: var(--space-3);
}
.compare thead th:nth-child(2) { color: var(--stone); }
.compare thead th:nth-child(3) { color: var(--signal); }
.compare tbody td:first-child {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  width: 18%;
}
.compare tbody td:nth-child(2) { color: var(--stone); width: 41%; border-right: 1px solid var(--signal); }
.compare tbody td:nth-child(3) { color: var(--ink); width: 41%; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100% !important; }
  .compare tbody td { border-top: 0; padding: var(--space-2) 0; border-right: 0 !important; }
  .compare tbody tr { padding: var(--space-4) 0; border-top: 1px solid var(--hairline); }
  .compare tbody td:first-child { color: var(--signal); }
  .compare tbody td:nth-child(2)::before,
  .compare tbody td:nth-child(3)::before {
    display: block;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: var(--space-3);
    margin-bottom: 4px;
  }
  .compare tbody td:nth-child(2)::before { content: "AI-Assisted"; color: var(--stone); }
  .compare tbody td:nth-child(3)::before { content: "AI-Native"; color: var(--signal); }
}

/* ----------------------------------------------------------------------------
   11. Three streams (dark)
   ---------------------------------------------------------------------------- */
.streams {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-7);
}
.stream { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-6); align-items: start; }
.stream__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(72px, 9vw, 120px);
  line-height: 1;
  color: var(--signal);
}
.stream__body { max-width: 720px; }
.stream__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: var(--space-4);
}
.stream__intro {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.88);
  margin-bottom: var(--space-4);
}
.stream dl { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.stream dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--ivory);
}
.stream dd {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.82);
}
@media (max-width: 720px) {
  .stream { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ----------------------------------------------------------------------------
   12. Three delivery cards
   ---------------------------------------------------------------------------- */
.delivery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 1000px) { .delivery { grid-template-columns: 1fr; } }
.delivery .card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: inset 0 4px 0 transparent;
  transition: box-shadow 200ms ease-out;
}
.delivery .card:hover { box-shadow: inset 0 4px 0 var(--signal); }
.delivery .card .card__eyebrow {
  margin-bottom: 0;
  font-size: 14px;
}
.delivery .card h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.1;
  margin-top: var(--space-2);
}
.delivery .card .item { padding-top: var(--space-3); border-top: 1px solid var(--hairline); }
.delivery .card .item:first-of-type { border-top: 0; padding-top: 0; }
.delivery .card .item__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 6px;
}
.delivery .card .item__body { font-size: 15px; line-height: 1.55; color: var(--stone); }

/* ----------------------------------------------------------------------------
   13. Engagement arc timeline
   ---------------------------------------------------------------------------- */
.arc {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  position: relative;
  padding-top: var(--space-5);
}
.arc::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--hairline);
}
.arc__phase { position: relative; padding-top: var(--space-3); }
.arc__phase::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  background: var(--signal);
}
.arc__phase .arc__time {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
  display: block;
}
.arc__phase h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: var(--space-2);
}
.arc__phase p { font-size: 14px; line-height: 1.55; color: var(--stone); }
@media (max-width: 900px) {
  .arc { grid-template-columns: 1fr; gap: var(--space-5); padding-top: var(--space-2); }
  .arc::before { display: none; }
  .arc__phase { border-top: 1px solid var(--hairline); padding-top: var(--space-4); }
  .arc__phase::before { top: -5px; }
}

/* ----------------------------------------------------------------------------
   14. CTA strip
   ---------------------------------------------------------------------------- */
.cta-strip {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* ----------------------------------------------------------------------------
   15. Two-column body
   ---------------------------------------------------------------------------- */
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  margin-top: var(--space-5);
}
.cols-2 .body { max-width: none; }
@media (min-width: 901px) {
  .cols-2--media-heavy { grid-template-columns: 1fr 1.5fr; gap: var(--space-5); }
}
@media (max-width: 900px) {
  .cols-2 { grid-template-columns: 1fr; gap: var(--space-4); }
  /* When the media column should anchor mobile (image first, copy second). */
  .cols-2--media-heavy > :first-child { order: 2; }
  .cols-2--media-heavy > :last-child { order: 1; }
}

.cols-headline {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-7);
  align-items: start;
}
.cols-headline .h2 { margin-bottom: 0; }
@media (max-width: 900px) { .cols-headline { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ----------------------------------------------------------------------------
   16. Partner cards (Who We Are)
   ---------------------------------------------------------------------------- */
.partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (max-width: 1100px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .partners { grid-template-columns: 1fr; } }
.partner-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid var(--hairline);
  transition: border-color 200ms ease-out;
}
.partner-card:hover { border-color: var(--ink); }
.partner-card__portrait {
  aspect-ratio: 1 / 1.1;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.partner-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Force Chrome/Skia to use high-quality (lanczos-style) downsampling
     instead of its default fast bilinear, which aliases the stipple
     detail in the hedcuts. Safari/Core Graphics already does this. */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.partner-card__name {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
}
.partner-card__role {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.partner-card__brief {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--stone);
}
.partner-card__link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}

/* ----------------------------------------------------------------------------
   17. Four criteria (Who We Work With, dark)
   ---------------------------------------------------------------------------- */
.criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-7);
}
@media (max-width: 900px) { .criteria { grid-template-columns: 1fr; } }
.criterion {
  background: var(--ivory);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: var(--space-4) var(--space-5);
  align-items: start;
}
.criterion__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 1;
  color: var(--signal);
}
.criterion__title {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-3);
}
.criterion__body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.criterion__dq {
  grid-column: 1 / -1;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--smoke);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  line-height: 1.55;
}
/* On phones, stack the number above the title/body so all three rows use
   the full card width (matching the disqualifier line below). */
@media (max-width: 720px) {
  .criterion {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-4);
  }
  .criterion__num { font-size: 56px; line-height: 0.9; }
}

/* ----------------------------------------------------------------------------
   18. Case studies
   ---------------------------------------------------------------------------- */
.case-tabs {
  display: flex;
  gap: var(--space-7);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.case-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  padding: var(--space-3) 0;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
.case-tabs__tab:hover { color: var(--ink); }
.case-tabs__tab--active {
  color: var(--signal);
  border-bottom-color: var(--signal);
}
.case-tabs__tab:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
.case-tabs__panel[hidden] { display: none; }

.case-feature { display: flex; flex-direction: column; gap: var(--space-5); }
.case-feature__head { max-width: 880px; }
.case-feature__tag {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-3);
  display: block;
}
.case-feature__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4vw, 56px); line-height: 1.05; text-wrap: balance; }
.case-feature__sub { font-family: var(--font-sans); font-size: 18px; line-height: 1.55; color: var(--stone); max-width: 680px; margin-top: var(--space-4); }
.case-feature__frames { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-top: var(--space-5); }
@media (max-width: 900px) { .case-feature__frames { grid-template-columns: 1fr; } }
.case-feature__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  max-width: 760px;
}
.case-feature__list li {
  padding-left: var(--space-4);
  position: relative;
  font-size: 16px;
  line-height: 1.55;
}
.case-feature__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1.5px;
  background: var(--signal);
}
.case-feature__list strong { font-weight: 600; }

.case-divider {
  margin: var(--space-8) 0;
  height: 1px;
  background: var(--hairline);
}

/* ----------------------------------------------------------------------------
   19. Contact email block (dark)
   ---------------------------------------------------------------------------- */
.contact-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}
.contact-email__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
}
.contact-email__address {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  color: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out;
  word-break: break-word;
}
.contact-email__address:hover { border-bottom-color: var(--signal); }
.contact-email__caption {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.7);
}

/* Contact form — bottom-border inputs per design system */
.contact-form-wrap {
  max-width: 720px;
}
.contact-form-wrap__head { margin-bottom: var(--space-5); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .contact-form__row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink);
}
.field__optional {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  margin-left: 4px;
}
.field__input {
  font: inherit;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--smoke);
  padding: 8px 0;
  width: 100%;
  outline: none;
  transition: border-color 180ms ease-out;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.field__input:hover { border-bottom-color: var(--stone); }
.field__input:focus { border-bottom: 2px solid var(--ink); padding-bottom: 7px; }
.field__input--textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 12px;
  line-height: 1.55;
}
.field--error .field__input { border-bottom-color: var(--signal); }
.field--error .field__input:focus { border-bottom: 2px solid var(--signal); padding-bottom: 7px; }
.field__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  margin-top: 4px;
}
.field--error .field__hint { color: var(--signal); }

.contact-form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-2);
}
.contact-form__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-form__status {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-top: var(--space-2);
}
.contact-form__confirmation {
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--hairline);
  background: var(--ivory);
  color: var(--ink);
}
.contact-form__confirmation-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
.contact-form__confirmation-body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* ----------------------------------------------------------------------------
   20. Editorial long-form (founders-note + partner pages)
   ---------------------------------------------------------------------------- */
.editorial {
  max-width: calc(var(--read-max) + var(--outer-margin) * 2);
  margin: 0 auto;
  padding: var(--space-6) var(--outer-margin);
}
.editorial__eyebrow {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-4);
  display: block;
}
.editorial__h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-5);
  text-wrap: balance;
}
.editorial__role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--stone);
  margin-top: calc(-1 * var(--space-3));
  margin-bottom: var(--space-4);
}
.editorial__body { font-family: var(--font-sans); font-size: 16px; line-height: 1.7; color: var(--ink); }
.editorial__body p + p { margin-top: var(--space-4); }
.editorial__signature {
  margin-top: var(--space-3);
  line-height: 0;
}
.editorial__signature img {
  display: block;
  height: 130px;
  width: auto;
  max-width: 100%;
}
.editorial__back {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.editorial__footnote {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.editorial__footnote a { color: var(--signal); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.editorial__endlinks {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}
.editorial__endlinks .editorial__back,
.editorial__endlinks .editorial__footnote { margin-top: 0; }
.editorial__endlinks--signature {
  align-items: flex-end;
  margin-top: var(--space-2);
}
.editorial__endlinks--signature .editorial__signature { margin-top: 0; }
/* On phones the row collapses, so put the signature above the Back link
   instead of below. */
@media (max-width: 720px) {
  .editorial__endlinks--signature {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* Partner detail layout (portrait beside bio on desktop) */
.partner-detail {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-6) var(--outer-margin) var(--space-6);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-6);
  align-items: start;
}
.partner-detail__portrait {
  width: 240px;
  aspect-ratio: 1 / 1.1;
  background: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.partner-detail__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}
.partner-detail__body { max-width: var(--read-max); }
@media (max-width: 900px) {
  .partner-detail { grid-template-columns: 1fr; padding-left: var(--outer-margin); padding-right: var(--outer-margin); }
  .partner-detail__portrait { width: 200px; }
}

/* Small helper */
.measure { max-width: var(--body-max); }
.measure-read { max-width: var(--read-max); }
.italic-display {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--signal);
  margin: var(--space-5) 0;
}

/* Hide on small */
.sm-hidden { }
@media (max-width: 720px) { .sm-hidden { display: none; } }

/* ----------------------------------------------------------------------------
   Field Notes — listing on /field-notes.html
   ---------------------------------------------------------------------------- */
.field-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--read-max);
}
.field-notes-list__item {
  border-top: 1px solid var(--hairline);
}
.field-notes-list__item:last-child {
  border-bottom: 1px solid var(--hairline);
}
.field-notes-list__link {
  display: block;
  padding: var(--space-5) 0;
  color: var(--ink);
  transition: background 180ms ease-out;
}
.field-notes-list__link:hover .field-notes-list__title em,
.field-notes-list__link:hover .field-notes-list__cta {
  color: var(--signal);
}
.field-notes-list__meta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field-notes-list__tag { color: var(--signal); font-weight: 500; }
.field-notes-list__date { color: var(--stone); }
.field-notes-list__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-top: var(--space-3);
  color: var(--ink);
  text-wrap: balance;
}
.field-notes-list__title em { font-style: italic; transition: color 180ms ease-out; }
.field-notes-list__dek {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--stone);
  margin-top: var(--space-3);
  max-width: 720px;
}
.field-notes-list__cta {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 180ms ease-out;
}

