/* ---------- typefaces ----------
   Served from this domain rather than fonts.googleapis.com: one fewer
   connection before the first paint, no third party watching who reads the
   page, and they work inside a self-contained copy of it. Latin subsets only;
   Arabic falls through to the reader's own system face. */

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Literata";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-400-italic-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-400-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-600-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plexmono-400-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plexmono-400-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plexmono-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plexmono-500-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-500-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/schibsted-500-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-600-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/schibsted-600-normal-latinx.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ============================================================
     Single visual world: a dark, tungsten-lit cutting room.
     The page commits to one theme on purpose, so the tokens do
     not change between light and dark viewers.
     ============================================================ */

  :root {
    --ground:      #0A0A0C;
    --ground-2:    #101013;
    --band:        #17171E;
    --band-edge:   #26262F;
    --surface:     #16161A;
    --frame:       #1C1C21;
    --frame-line:  rgba(242, 240, 236, 0.07);
    --ink:         #F2F0EC;
    --ink-soft:    #A5A099;
    --ink-faint:   #706C64;
    --rule:        #2A2925;
    --rule-soft:   #201F1C;
    --accent:      #E9A75C;
    --accent-dim:  rgba(233, 167, 92, 0.16);
    --scrim:       rgba(4, 4, 6, 0.88);

    --font-display: "Schibsted Grotesk", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-body:    Literata, Charter, "Iowan Old Style", Georgia, serif;
    --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

    /* one height for every media row on the page */
    --row-h: clamp(7.5rem, 26vw, 13.5rem);

    --gutter: 1.25rem;
    --indent: 1.6rem;   /* space between spine and content on mobile */
    --spine-x: 3px;
    --measure: 34rem;
    --top-masthead: 3.75rem;
    --top-lens: 6.2rem;
  }

  html {
    scroll-behavior: smooth;
    background: var(--ground);
  }

  body {
    background: var(--ground);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  body.is-locked { overflow: hidden; }

  ::selection { background: var(--accent); color: var(--ground); }

  a { color: inherit; }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
  }

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

  .wrap {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
  }

  /* ---------- masthead ---------- */

  .masthead {
    position: sticky;
    top: 0;
    z-index: 30;
    background: color-mix(in srgb, var(--ground) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule-soft);
  }

  .masthead-inner {
    max-width: 70rem;
    margin: 0 auto;
    padding: 1.1rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .masthead-name {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  /* the KA monogram, drawn in Figma: the masthead's only identity mark
     now that the wordmark has moved into the hero */
  .masthead-mark {
    display: block;
    height: 1.6rem;
    width: auto;
  }



  /* ---------- hero ---------- */

  .hero { padding: 0 0 clamp(2rem, 6vw, 3.5rem); }

  /* full-bleed opening frame, dissolving into the page.
     To drop in the real photo, set --hero-photo to url(data:image/jpeg;base64,...)
     and delete the .shot-note element from the markup. Everything else stays. */
  .hero-shot {
    --hero-photo: url("/images/hero.jpg");
    --hatch: 0;

    position: relative;
    /* shorter on phones so the cover crop keeps the front rows, not just the stage */
    height: min(56vh, 21rem);
    margin-top: calc(var(--top-masthead) * -1);
    margin-bottom: -7.5rem;
    overflow: hidden;
    background-color: #0E0E11;
    background-image:
      linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.06) 34%, rgba(10, 10, 12, 0.72) 100%),
      var(--hero-photo),
      radial-gradient(78% 62% at 72% 30%, rgba(233, 167, 92, 0.20), transparent 66%);
    background-size: cover, cover, cover;
    /* The right edge is pinned: he is on the stage at that side of the frame,
       so any crop has to come off the left. */
    background-position: center, 100% center, center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 38%, rgba(0, 0, 0, 0.5) 72%, transparent 100%);
  }

  .hero-shot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 12px, var(--frame-line) 12px 13px);
    opacity: var(--hatch, 1);
  }

  .shot-note {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    transform: translateY(-50%);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    line-height: 2;
    padding: 0 1.5rem;
  }

  .shot-note span {
    display: block;
    color: var(--ink-faint);
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .hero-text { position: relative; z-index: 2; }

  /* the byline the masthead used to carry, moved down here now the
     masthead is mark-only; sits directly above the location line so the
     two read as one dateline */
  .hero-name {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5rem;
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
  }

  .hero-line {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-size: clamp(2.15rem, 8.5vw, 4.5rem);
    text-wrap: balance;
    max-width: 19ch;
    margin-bottom: 1.5rem;
  }

  .hero-line em { font-style: normal; color: var(--accent); }

  .hero-deck {
    max-width: var(--measure);
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.75rem;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
  }

  .hero-facts b { color: var(--ink); font-weight: 500; }

  /* ---------- lens bar ---------- */

  .lens {
    position: sticky;
    top: var(--top-masthead);
    z-index: 25;
    background: color-mix(in srgb, var(--ground) 90%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule);
  }

  .lens-inner {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0.55rem var(--gutter);
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .lens-set {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .lens-set::-webkit-scrollbar { display: none; }

  .chip {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    padding: 0.42rem 0.6rem;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  }

  .chip:hover { color: var(--ink); border-color: var(--ink-faint); }

  .chip[aria-pressed="true"] {
    color: var(--ground);
    background: var(--accent);
    border-color: var(--accent);
  }

  .lens-count {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    display: none;
  }

  /* ---------- the strip of film ---------- */

  .now-mark,
  .start-mark {
    position: relative;
    padding-left: var(--indent);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .now-mark { padding-top: 2.25rem; padding-bottom: 0.5rem; }
  .start-mark { padding-top: 0.75rem; padding-bottom: 1.5rem; }

  .now-mark b { color: var(--accent); font-weight: 500; }

  .now-mark::before,
  .start-mark::before {
    content: "";
    position: absolute;
    left: var(--spine-x);
    width: 1px;
    background: var(--rule);
  }

  .now-mark::before { top: 0; height: 2.25rem; }
  .start-mark::before { top: 0; bottom: 0.9rem; }

  .now-mark::after,
  .start-mark::after {
    content: "";
    position: absolute;
    left: calc(var(--spine-x) - 4px);
    width: 9px;
    height: 1px;
    background: var(--accent);
  }

  .now-mark::after { top: 2.25rem; }
  .start-mark::after { bottom: 0.9rem; }

  .era {
    position: relative;
    padding-bottom: 1.5rem;
  }

  /* nothing follows the last chapter but the closing mark */
  .era:last-of-type { padding-bottom: 0; }
  .era:last-of-type .stone:last-of-type { padding-bottom: 1.25rem; }

  .era.is-empty { display: none; }

  /* Every other company sits on a raised band running the full width of the
     viewport, so a chapter reads as one block of time rather than a run of steps. */
  .era.is-banded::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: var(--band);
    border-top: 1px solid var(--band-edge);
    border-bottom: 1px solid var(--band-edge);
  }

  .era.is-banded .era-head { padding-top: 2.75rem; }

  .era-head {
    position: relative;
    padding: 2.5rem 0 1.25rem;
    scroll-margin-top: 7.5rem;
  }

  .era-rail { padding-left: var(--indent); }

  .era-span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--accent);
  }

  .era-span span:last-child { color: var(--ink-faint); }

  .era-body {
    padding-left: var(--indent);
    padding-top: 0.85rem;
    min-width: 0;
  }

  .era-role {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.5rem;
  }

  .era-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.85rem, 8vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 0.98;
    margin-bottom: 0.65rem;
  }

  .era-line {
    max-width: var(--measure);
    color: var(--ink-soft);
    font-size: 0.98rem;
  }

  .era-tally {
    margin-top: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
  }

  /* the sprocket: an era's mark on the strip */
  .era-marker {
    position: absolute;
    left: calc(var(--spine-x) - 4px);
    top: 2.5rem;
    width: 9px;
    height: 13px;
    border: 1px solid var(--rule);
    background: var(--ground);
    border-radius: 1px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
  }

  .era-head.is-past .era-marker,
  .era-head.is-live .era-marker {
    border-color: var(--accent);
    background: var(--accent);
  }

  .stone {
    position: relative;
    padding-bottom: 2.25rem;
    scroll-margin-top: 8rem;
  }

  .stone.is-hidden { display: none; }

  .spined::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--spine-x);
    width: 1px;
    background: linear-gradient(
      to bottom,
      var(--accent) var(--fill, 0%),
      var(--rule) var(--fill, 0%)
    );
  }

  .stone-dot {
    position: absolute;
    left: calc(var(--spine-x) - 2px);
    top: 0.55rem;
    width: 5px;
    height: 5px;
    background: var(--rule);
    transition: background-color 0.3s ease, transform 0.3s ease;
  }

  .stone.is-live .stone-dot,
  .stone.is-past .stone-dot { background: var(--accent); }
  .stone.is-live .stone-dot { transform: scale(1.8); }

  .stone-body {
    padding-left: var(--indent);
    min-width: 0;
  }

  .stone-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .stone-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    color: var(--ink-faint);
    transition: color 0.3s ease;
  }

  .stone.is-live .stone-year { color: var(--accent); }

  .tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    border: 1px solid var(--rule);
    padding: 0.22rem 0.44rem;
    transition: color 0.15s ease, border-color 0.15s ease;
  }

  .tag:hover { color: var(--accent); border-color: var(--accent); }

  .stone-where {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .stone-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.15rem, 4.8vw, 1.5rem);
    letter-spacing: -0.026em;
    line-height: 1.16;
    text-wrap: balance;
    max-width: 24ch;
    margin-bottom: 0.6rem;
  }

  .stone-body p {
    max-width: var(--measure);
    margin-bottom: 0.7rem;
    color: var(--ink-soft);
    font-size: 0.97rem;
  }

  .stone-body p:first-of-type { color: var(--ink); }

  .stone-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.75rem;
    margin: 0.6rem 0 0.2rem;
  }

  .stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }

  .stat b {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--accent);
  }

  .stat span {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  /* ---------- media strip ---------- */

  .strip {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.1rem;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* bleed off the right edge so the swipe is discoverable */
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }

  .strip::-webkit-scrollbar { display: none; }

  /* Cards are sized by the same row height as everything else on the page;
     their width follows from the shape of the frame inside them. */
  .card {
    flex: 0 0 auto;
    width: var(--card-w);
    scroll-snap-align: start;
    text-align: left;
    display: block;
    text-decoration: none;
    transition: transform 0.2s ease;
  }

  .card--video { --card-w: calc(var(--row-h) * 16 / 9); }
  .card--audio { --card-w: calc(var(--row-h) * 16 / 9); }
  .card--footage { --card-w: calc(var(--row-h) * 4 / 3); }
  .card--article { --card-w: calc(var(--row-h) * 5 / 4); }

  .card:hover { transform: translateY(-3px); }

  .thumb {
    position: relative;
    background: var(--frame);
    border: 1px solid var(--rule);
    overflow: hidden;
  }

  .card:hover .thumb { border-color: var(--accent); }

  .thumb { height: var(--row-h); }

  .thumb-video::before,
  .thumb-footage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg, transparent 0 10px, var(--frame-line) 10px 11px);
  }

  .thumb img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* A line of frames, sized exactly like every other media element: the shared
     row height, with each frame's width coming from its own shape (--ar). */
  .row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.15rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }

  .row::-webkit-scrollbar { display: none; }

  .row-item {
    position: relative;
    flex: 0 0 auto;
    height: var(--row-h);
    width: auto;
    aspect-ratio: var(--ar, 1.5);
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid var(--rule);
    display: block;
    text-decoration: none;
    margin: 0;
  }

  /* Screens rather than photographs: shown whole, never cropped, so no
     interface text is cut off. */
  .row-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Screens keep the shared row height like everything else; they only differ
     in being shown whole, since cropping an interface cuts off its text.
     This has to come after the rule above or `cover` wins on source order. */
  .row-screen {
    background: var(--ground);
  }

  .row-screen img { object-fit: contain; }

  .row-item figcaption,
  .row-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.6rem 0.55rem 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    background: linear-gradient(180deg, transparent, rgba(8, 8, 10, 0.85));
  }

  .row-cap b { color: var(--accent); font-weight: 500; }

  .row-reel:hover { border-color: var(--accent); }
  .row-reel:hover .play { border-color: var(--accent); background: rgba(233, 167, 92, 0.18); }
  .row-reel:hover .play::after { border-left-color: var(--accent); }

  .play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--ink-faint);
    background: rgba(10, 10, 12, 0.55);
    display: grid;
    place-items: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-left: 10px solid var(--ink);
    border-top: 6.5px solid transparent;
    border-bottom: 6.5px solid transparent;
  }

  .card:hover .play { border-color: var(--accent); background: rgba(233, 167, 92, 0.16); }
  .card:hover .play::after { border-left-color: var(--accent); }

  .stamp {
    position: absolute;
    bottom: 0.4rem;
    right: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.14rem 0.36rem;
    background: rgba(10, 10, 12, 0.72);
    border: 1px solid var(--rule);
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
  }

  .clip {
    position: absolute;
    inset: 0;
    padding: 0.8rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .clip-pub {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.4rem;
  }

  .clip-head {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.22;
    letter-spacing: -0.015em;
  }

  .clip-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
  }

  .clip-lines i { display: block; height: 3px; background: var(--frame-line); }
  .clip-lines i:nth-child(2) { width: 92%; }
  .clip-lines i:nth-child(3) { width: 78%; }
  .clip-lines i:nth-child(4) { width: 86%; }
  .clip-lines i:nth-child(5) { width: 41%; }

  .wave {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 1rem;
  }

  .wave i { display: block; width: 3px; background: var(--ink-faint); }
  .card:hover .wave i { background: var(--accent); }

  .tiles {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
  }

  .tiles i { display: block; background: var(--frame); }
  .tiles i:nth-child(2n) { background: #202026; }
  .tiles i:nth-child(5) { background: #2A2620; }

  .card-kind {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .card-kind b { color: var(--accent); font-weight: 500; }


  .card-title {
    margin-top: 0.18rem;
    font-size: 0.85rem;
    line-height: 1.32;
    color: var(--ink);
  }

  /* ---------- colophon ---------- */

  .colophon {
    border-top: 1px solid var(--rule);
    padding: 2.25rem 0 2rem;
  }

  .colophon-line {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 6vw, 2.5rem);
    letter-spacing: -0.032em;
    line-height: 1.08;
    text-wrap: balance;
    max-width: 22ch;
    margin-bottom: 1.75rem;
  }

  .contacts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    align-items: flex-start;
  }

  .contacts a {
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 3px;
  }

  .contacts a:hover { color: var(--accent); border-color: var(--accent); }

  .fine {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    max-width: 40rem;
    line-height: 1.85;
  }

  /* ============================================================
     Wider screens: the year rail appears to the left of the strip
     ============================================================ */

  @media (min-width: 860px) {
    :root {
      --gutter: clamp(2rem, 5vw, 4.5rem);
      --rail: 9rem;
      --indent: 2.25rem;
      --spine-x: 8.25rem;
      --top-lens: 6.6rem;
    }

    body { font-size: 17px; }

    .masthead-nav { gap: 1.6rem; font-size: 0.68rem; }

    .hero-shot {
      height: min(84vh, 38rem);
      margin-bottom: -10rem;
      background-position: center, 100% 46%, center;
      -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.5) 76%, transparent 100%);
      mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.5) 76%, transparent 100%);
    }

    .shot-note { top: 46%; font-size: 0.7rem; }

    .lens-count { display: block; }

    .now-mark,
    .start-mark { padding-left: calc(var(--spine-x) + var(--indent)); }

    .era-head,
    .stone {
      display: grid;
      grid-template-columns: var(--rail) minmax(0, 1fr);
    }

    .era-rail,
    .stone-rail {
      padding-left: 0;
      padding-right: 1.5rem;
      text-align: right;
    }

    .era-rail { padding-top: 0.15rem; }

    .era-span {
      flex-direction: column;
      align-items: flex-end;
      gap: 0.2rem;
      font-size: 0.92rem;
    }

    .era-body,
    .stone-body { padding-left: var(--indent); }

    .era-body {
      border-top: 1px solid var(--rule);
      padding-top: 1.1rem;
    }

    .era-head { padding: 4rem 0 1.75rem; }
    .era-marker { top: 4rem; }
    .stone { padding-bottom: 3rem; }
    .stone-dot { top: 0.42rem; }
    .era { padding-bottom: 2rem; }
    .era.is-banded .era-head { padding-top: 4.25rem; }

    /* year moves out of the head line and into the rail */
    .stone-rail { display: block; }
    .stone-head .stone-year { display: none; }
    .stone-rail .stone-year { font-size: 1rem; }

    .strip,
    .row {
      margin-right: 0;
      padding-right: 0;
    }


    .contacts {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.75rem 2.5rem;
      align-items: baseline;
    }
  }

  @media (max-width: 859px) {
    .stone-rail { display: none; }
  }

  /* ---------- motion ---------- */

  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1),
                transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
  }

  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .stone-dot, .stone-year, .card, .row-item, .era-marker { transition: none; }
  }

/* Episode frames carry a full title, so the caption clips rather than wraps
   over the picture. */
.row-cap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- embedded posts ---------- */

/* The platform renders its own card, on its own white ground. Keep it to the
   width of a media frame so it sits in the column rather than taking it over. */
.embed {
  margin-top: 1.15rem;
  max-width: min(100%, 20rem);
}

.embed .instagram-media {
  margin: 0 !important;
  min-width: 0 !important;
}

/* Before the script hydrates it, the blockquote is a bare link; make that
   moment look deliberate rather than broken. */
.embed blockquote:not([data-instgrm-payload-id]) {
  display: block;
  border: 1px solid var(--rule);
  background: var(--ground-2);
  padding: 0.9rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.embed blockquote a {
  color: inherit;
  text-decoration: none;
}

/* Two posts from the same year read as a pair, so they sit side by side and
   fall into a column only when there is no room for both. */
.embeds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
}

.embeds .embed {
  flex: 1 1 17rem;
  max-width: 22rem;
  margin-top: 1.15rem;
}


/* A logo is not a photograph: square frame, shown whole, with room around it
   so a mark on a white ground and a mark on a black one both sit calmly. */
.row-logo {
  background: var(--ground-2);
}

.row-logo img {
  object-fit: contain;
  padding: 9%;
  box-sizing: border-box;
}

/* ============================================================
   Chapters open on their two most recent moments; the rest are
   titles until asked for.
   ============================================================ */

.peek {
  border-top: 1px solid var(--rule-soft);
}

.stone-peek {
  padding-bottom: 0;
}

.peek-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-items: baseline;
  gap: 0.2rem 0.9rem;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0 0.7rem var(--indent);
  border-bottom: 1px solid var(--rule-soft);
  transition: background-color 0.15s ease;
}

.peek-row:hover { background: rgba(233, 167, 92, 0.05); }

.peek-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

.peek-row:hover .peek-year,
.peek-row[aria-expanded="true"] .peek-year { color: var(--accent); }

.peek-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}

.peek-meta {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.peek-detail {
  padding: 0.9rem 0 1.4rem var(--indent);
  border-bottom: 1px solid var(--rule-soft);
}

.peek-detail[hidden] { display: none; }

.peek-detail p {
  max-width: var(--measure);
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.peek-detail p:first-of-type { color: var(--ink); }

.peek-where {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

/* a chip is pressed while its chapter is the one open */
.chip[aria-pressed="true"] {
  color: var(--ground);
  background: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 860px) {
  .peek-row {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    padding-left: 0;
    gap: 0.2rem 0;
  }

  .peek-year {
    text-align: right;
    padding-right: 1.5rem;
    font-size: 0.85rem;
  }

  .peek-title,
  .peek-meta { padding-left: var(--indent); }

  .peek-meta { grid-column: 2; }

  .peek-detail { padding-left: calc(var(--rail) + var(--indent)); }
}

/* A collapsed moment is not laid out in the year-and-body columns its open
   sibling uses; its row and its panel each handle their own grid. Without
   this the title lands inside the narrow year column and wraps one word to
   a line. */
.stone-peek {
  display: block;
}

/* ---------- a published piece, as a frame ----------
   Sized like every other frame so writing stands in the same line as the
   photographs. The headline does the work; the outlet is a stamp. */

.piece {
  position: relative;
  flex: 0 0 auto;
  height: var(--row-h);
  width: auto;
  aspect-ratio: var(--ar, 1.4);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ground-2);
  scroll-snap-align: start;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.piece:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.piece > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.75);
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.piece:hover > img { opacity: 0.7; filter: saturate(1); }

/* ruled paper for a piece whose outlet gives us no artwork */
.piece-rules {
  position: absolute;
  inset: 12% 10% auto 10%;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.piece-rules i {
  display: block;
  height: 2px;
  background: var(--frame-line);
}

.piece-rules i:nth-child(2) { width: 88%; }
.piece-rules i:nth-child(3) { width: 94%; }
.piece-rules i:nth-child(4) { width: 46%; }

.piece-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.15) 30%, rgba(8, 8, 10, 0.88) 100%);
}

.piece-pub {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  gap: 0.4rem;
}

.piece-pub time { color: var(--ink-faint); }

.piece-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.22;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- handles, as marks ---------- */

.marks {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

/* the words navigate the page and the marks leave it, so the divider needs
   air on both sides rather than sitting flush against the last link */
.masthead-nav .marks {
  gap: 0.9rem;
  padding-left: 1.1rem;
  margin-left: 0.4rem;
  border-left: 1px solid var(--rule);
}

.mark {
  display: inline-flex;
  color: var(--ink-faint);
  transition: color 0.15s ease, transform 0.15s ease;
  /* the glyph is small, so the tap target is padded out around it */
  padding: 0.35rem;
  margin: -0.35rem;
}

.mark svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.mark:hover { color: var(--accent); transform: translateY(-1px); }

.marks-footer {
  margin-top: 1.25rem;
  gap: 1.1rem;
}

.marks-footer .mark { color: var(--ink-soft); }
.marks-footer .mark svg { width: 1.15rem; height: 1.15rem; }

@media (max-width: 560px) {
}

/* ============================================================
   Writing: the index, a piece, and the block on the timeline
   ============================================================ */

.page { padding-top: clamp(2.5rem, 8vw, 4.5rem); }

.page-head { margin-bottom: clamp(2rem, 5vw, 3rem); }

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.page-deck {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* ---------- a piece ---------- */

.essay { max-width: 40rem; }

.essay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}

.essay-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.essay-dek {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: var(--measure);
}

.essay-shot {
  margin: 0 0 2rem;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.essay-shot img { width: 100%; height: auto; display: block; object-fit: cover; }

.essay-body p {
  margin-bottom: 1.1rem;
  max-width: var(--measure);
  font-size: 1.05rem;
  line-height: 1.7;
}

.essay-source {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.essay-source a { color: var(--accent); text-decoration: none; }

.essay-back {
  display: inline-block;
  margin: 2.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.essay-back:hover { color: var(--accent); }

/* ---------- the block that sits under the timeline ---------- */

.writing-block {
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 0;
}

.writing-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.writing-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.writing-all {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
}

.writing-all:hover { color: var(--accent); }

/* a piece reads on the same measure as the timeline, with its date on the rail */
.essay-meta { border-left: 2px solid var(--accent); padding-left: 0.75rem; }


/* ---------- the menu ----------
   One button at every width. The panel drops from the masthead and holds
   everywhere the site goes, so nothing has to be squeezed into a bar. */

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.15s ease;
}

.burger:hover,
.burger[aria-expanded="true"] { color: var(--accent); }

.burger-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.1rem;
  height: 0.85rem;
}

.burger-bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* the two bars cross when the panel is open */
.burger[aria-expanded="true"] .burger-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  border-top: 1px solid var(--rule-soft);
  background: color-mix(in srgb, var(--ground) 96%, transparent);
  backdrop-filter: blur(12px);
}

.menu[hidden] { display: none; }

.menu-inner {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.9rem var(--gutter) 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Sized to be read, not to shout. A menu of three is a list, not a landing. */
.menu-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.014em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.menu-link:hover { color: var(--accent); padding-left: 0.4rem; }

/* the page you are on is stated, not offered */
.menu-link.is-here {
  color: var(--ink-faint);
  pointer-events: none;
}

.menu-link.is-here::after {
  content: "You are here";
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.7rem;
  vertical-align: 0.15em;
}

.menu-marks {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.9rem;
}

.menu-marks .mark { color: var(--ink-soft); }
.menu-marks .mark svg { width: 0.95rem; height: 0.95rem; }

.menu-fine {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ============================================================
   Writing pages have their own shape. The timeline sizes frames by their
   picture, which is right for a run of evidence and wrong for an index:
   there, every piece deserves the same room.
   ============================================================ */

/* The index runs three across at most, whatever the screen: bigger frames,
   larger headlines, and a preview long enough to judge a piece by. */
.wcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 2.5rem 1.75rem;
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
}

@media (min-width: 1000px) {
  .wcards { grid-template-columns: repeat(3, 1fr); }
}

.wcard { display: flex; flex-direction: column; }

/* the frame: same as a milestone's, held to one shape so an index lines up */
.wcard-face {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ground-2);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.wcard-face:hover { border-color: var(--accent); transform: translateY(-3px); }

.wcard-face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(0.75);
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.wcard-face:hover img { opacity: 0.7; filter: saturate(1); }

.wcard-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.15) 30%, rgba(8, 8, 10, 0.88) 100%);
}

.wcard-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wcard-dek {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* the reading page: one column, wide measure, cover at a fixed shape */
.essay-shot { aspect-ratio: 16 / 9; }
.essay-shot img { width: 100%; height: 100%; object-fit: cover; }

.essay-body ul {
  max-width: var(--measure);
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.essay-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.essay-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- navigation: links where there is room, a button where there isn't ---------- */

.masthead-nav { display: none; }

@media (min-width: 760px) {
  .masthead-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .masthead-nav a { text-decoration: none; transition: color 0.15s ease; }
  .masthead-nav a:hover { color: var(--accent); }

  /* the page you are on is stated, not offered */
  .masthead-nav a.is-here { color: var(--ink); pointer-events: none; }

  .masthead-nav .marks {
    gap: 0.9rem;
    padding-left: 1.1rem;
    margin-left: 0.1rem;
    border-left: 1px solid var(--rule);
  }

  /* the button and its panel belong to the phone */
  .burger { display: none; }
  .menu { display: none !important; }
}

/* ---------- navigation: links where there is room, a button where there isn't ---------- */

.masthead-nav { display: none; }

@media (min-width: 760px) {
  .masthead-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }

  .masthead-nav a { text-decoration: none; transition: color 0.15s ease; }
  .masthead-nav a:hover { color: var(--accent); }

  /* the page you are on is stated, not offered */
  .masthead-nav a.is-here { color: var(--ink); pointer-events: none; }

  .masthead-nav .marks {
    gap: 0.9rem;
    padding-left: 1.1rem;
    margin-left: 0.1rem;
    border-left: 1px solid var(--rule);
  }

  /* the button and its panel belong to the phone */
  .burger { display: none; }
  .menu { display: none !important; }
}

/* A frame with a line of the argument under it. The block is the flex item, so
   the text wraps to exactly the width the picture takes. */
/* An excerpt ends mid-thought on purpose; the fade says so before the link does. */
.essay-body.is-excerpt {
  position: relative;
  padding-bottom: 1.5rem;
}

.essay-body.is-excerpt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5rem;
  background: linear-gradient(to bottom, transparent, var(--ground));
  pointer-events: none;
}
