/* ============================================================
   nancie caraway — v6 "a white book with green chapters"
   Warm white pages, ink type, disciplined structure.
   The cinematic moments — title cards, quotes, contact, footer —
   turn deep green with ivory and gold, like chapter breaks.
   The green rail keeps the brand on screen at all times.
   ============================================================ */

:root {
  --paper:       #F6F5F0;                       /* the page */
  --ink:         #131810;
  --text:        rgba(19, 24, 16, 0.88);
  --dim:         rgba(19, 24, 16, 0.64);
  --line:        rgba(19, 24, 16, 0.14);
  --line-strong: rgba(19, 24, 16, 0.34);

  --green:       #0C3C1E;                       /* her forest — chapters + rail */
  --green-deep:  #05180B;                       /* film-frame surround on green — darker so the strip reads */
  --ivory:       #ECEAE2;
  --i-text:      rgba(236, 234, 226, 0.92);
  --i-dim:       rgba(236, 234, 226, 0.8);
  --i-line:      rgba(236, 234, 226, 0.18);
  --i-line-strong: rgba(236, 234, 226, 0.42);

  --gold:        #B08A3C;                       /* marks on white */
  --gold-i:      #C9A55C;                       /* marks on green */
  --moss:        #2E5B3F;                       /* links on white */

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:  "Newsreader", Georgia, serif;
  --sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .66, .16, 1);
  --rail-w: 16rem;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);

  interpolate-size: allow-keywords;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  font-weight: 390;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(12, 60, 30, 0.12);
}

::selection { background: var(--green); color: var(--ivory); }

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in .5s var(--ease) both; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--moss); text-decoration-color: rgba(46, 91, 63, 0.4); text-underline-offset: 3px; transition: color .25s ease, text-decoration-color .25s ease; }
a:hover { color: var(--green); text-decoration-color: var(--green); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 600;
  background: var(--green); color: var(--ivory);
  font-family: var(--sans); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .7rem 1.1rem; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:hover, .skip-link:focus { color: var(--ivory); }
.skip-link:focus { top: 1rem; }

/* ---------- wordmark (the one italic in the system) ------------------ */
.wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 1;
  font-weight: 430;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--ivory);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .25s ease, font-variation-settings .6s var(--ease);
}
.wordmark:hover { color: var(--ivory); opacity: .8; font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0; }

/* the hero's Saunders quote — a real quotation, name small beneath it */
.hero-quote {
  margin: clamp(1.5rem, 3vw, 2.3rem) auto 0;
  max-width: 46ch;
  text-align: center;
}
.hero-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.08rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--i-text);
  max-width: none;
}
.hero-quote cite {
  display: block;
  margin-top: .85rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 450;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-i);
}
.hero-quote cite::before { content: "\2014\00a0"; }

/* ---------- top bar (small screens) — green, like the rail ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green);
  border-bottom: 1px solid var(--i-line);
}
@supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
  .site-header {
    background-color: rgba(4, 19, 9, .93);
    background-image: linear-gradient(180deg, rgba(236, 234, 226, .06), rgba(236, 234, 226, 0) 36%);
    -webkit-backdrop-filter: blur(24px) saturate(1.2) brightness(.6);
    backdrop-filter: blur(24px) saturate(1.2) brightness(.6);
  }
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem var(--gutter);
  position: relative;
  z-index: 2;                /* the drawer (z 1) rolls up BEHIND the bar */
}
.site-header .wordmark { font-size: 1.3rem; }

.site-nav a, .rail-nav a {
  position: relative;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 450;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--i-dim);
  padding: .3rem 0;
  transition: color .25s ease;
}
.site-nav a:hover, .rail-nav a:hover { color: var(--ivory); }
.site-nav a[aria-current="page"], .rail-nav a[aria-current="page"] { color: var(--ivory); }
.site-nav a[aria-current="page"]::before, .rail-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.85rem; top: 50%;
  width: .28rem; height: .28rem;
  margin-top: -0.14rem;
  border-radius: 50%;
  background: var(--gold-i);
}

/* the mobile menu: a drawer that props out from under the header like a
   rolling screen — not a full-page sheet. It lives inside a clipped SLOT in
   the sticky header (a roller housing: the drawer vanishes into it, never
   painting over the bar), and the pull tab is a CHILD of the drawer — one
   transform moves drawer + tab as a single physical object. Motion is a JS
   spring (no CSS transitions here): it continues from wherever the finger
   leaves it and carries the release velocity. */
.nav-slot {
  position: absolute;
  left: 0; right: 0;
  top: 100%;                          /* the slot's mouth = the header's edge */
  height: calc(var(--mh, 420px) + 140px);  /* open drawer + tab + bounce + shadow */
  overflow: hidden;                   /* the housing: clips the stowed drawer */
  pointer-events: none;               /* only the drawer itself takes hits */
  z-index: 1;
}
.site-nav {
  display: flex;
  position: absolute;
  left: 0; right: 0;
  top: -24px;                         /* 24px bleed above the mouth: the spring's
                                         settle can never open a seam at the top */
  pointer-events: auto;
  flex-direction: column;
  align-items: center;
  padding: calc(1.4rem + 24px) 1.25rem 2.2rem;
  background: rgba(4, 19, 9, .96);
  border-bottom: 1px solid var(--i-line);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .6);
  transform: translateY(calc(-1 * var(--mh, 420px)));
  visibility: hidden;
}
.site-nav.open {
  transform: none;
  visibility: visible;
}
.site-nav ul { display: flex; flex-direction: column; gap: clamp(.2rem, 1.2vh, .7rem); text-align: center; list-style: none; margin: 0; }
.site-nav li { display: flex; justify-content: center; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .3rem 1rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.35rem, 5.2vw, 1.8rem);
  font-weight: 440;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.site-nav a:hover { color: var(--ivory); opacity: .75; }
.site-nav a:active { opacity: .45; }   /* instant press feedback on touch */
.site-nav a[aria-current="page"]::before { left: -1.15rem; }

/* the hanging pull tab: bolted onto the drawer's bottom edge — a CHILD of
   the drawer, so the two are one object and can never drift apart. When the
   drawer stows, its bottom edge (tab included) docks at the header's edge. */
.rail-tab-m {
  position: absolute;
  left: 50%;
  top: calc(100% - 10px);   /* hangs off the drawer's bottom edge, top tucked */
  width: 48px;
  height: 52px;
  padding: 0 7px;
  background: none;
  border: 0;
  cursor: pointer;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .35));
  touch-action: none;                     /* the tab is draggable */
  visibility: visible;                    /* stays out while the drawer sleeps */
}
.rail-tab-m svg { display: block; width: 34px; height: 40px; margin: 0 auto; }
.rail-tab-m .tab-body { fill: rgba(4, 19, 9, .94); transition: fill .25s ease; }
.rail-tab-m .hinge { stroke: rgba(236, 234, 226, .22); stroke-width: 1.5; }
.rail-tab-m:hover .tab-body { fill: rgba(14, 46, 25, .97); }
/* a soft golden breath while it waits — only when the drawer is closed */
.rail-tab-m[aria-expanded="false"] { animation: tab-glow 4.5s ease-in-out infinite; }
@keyframes tab-glow {
  0%, 55%, 100% { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .35)); }
  25% { filter: drop-shadow(0 5px 9px rgba(0, 0, 0, .35)) drop-shadow(0 0 9px rgba(201, 165, 92, .85)); }
}
@media (min-width: 1100px) { .nav-slot, .site-nav, .rail-tab-m { display: none !important; } }

/* ---------- left rail — always green --------------------------------- */
.rail { display: none; }
.rail-tab { display: none !important; }
@media (min-width: 1100px) {
  .site-header { display: none; }
  main, .site-footer { margin-left: var(--rail-w); }
  .rail {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--rail-w);
    padding: 2.6rem 2.2rem 2.2rem;
    background: var(--green);
    border-right: 1px solid rgba(236, 234, 226, .14);
    z-index: 60;
  }
  /* roller-blind: the rail tucks away to the left on scroll, leaving its own
     right edge as a thin glassy strip; page expands to the free width. All
     three movers (rail `left`, tab `left`, main `margin-left`) animate the
     same layout timeline, so they stay glued — no gaps mid-flight. */
  .rail-tab { display: block !important; }
  .contact-page .rail-tab { display: none !important; }
  .rail { left: 0; transition: left .55s var(--ease); }
  body.rail-hidden .rail { left: calc(1.6rem - var(--rail-w)); cursor: pointer; }
  main, .site-footer { transition: margin-left .55s var(--ease); }
  body.rail-hidden main, body.rail-hidden .site-footer { margin-left: 1.6rem; }

  /* the pull tab — an actual blind pull, glassy, always on the rail's edge.
     Click it any time to toggle the menu, even at the top of the page. */
  .rail-tab {
    display: block;
    position: fixed;
    top: 50%;
    left: var(--rail-w);
    transform: translateY(-50%);
    width: 34px;
    height: 72px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 61;
    transition: left .55s var(--ease);
    filter: drop-shadow(2px 6px 10px rgba(0, 0, 0, .3));
  }
  body.rail-hidden .rail-tab { left: 1.6rem; }
  .rail-tab svg { display: block; width: 100%; height: 100%; overflow: visible; }
  .rail-tab .tab-body {
    fill: rgba(4, 19, 9, .94);
    stroke: none;
    transition: fill .25s ease;
  }
  .rail-tab .hinge { stroke: rgba(236, 234, 226, .22); stroke-width: 1.5; }
  .rail-tab:hover .tab-body { fill: rgba(14, 46, 25, .97); }

  /* glass: translucent frosted rail; content slides a touch underneath */
  @supports ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))) {
    .rail {
      background-color: rgba(4, 19, 9, .93);
      background-image: linear-gradient(180deg, rgba(236, 234, 226, .07), rgba(236, 234, 226, 0) 22%);
      -webkit-backdrop-filter: blur(28px) saturate(1.2) brightness(.6);
      backdrop-filter: blur(28px) saturate(1.2) brightness(.6);
    }
    main, .site-footer { margin-left: calc(var(--rail-w) - 1.4rem); }
  }
  .rail .wordmark { font-size: 1.9rem; line-height: 1.06; }
  .rail-nav { display: flex; flex-direction: column; gap: 1rem; margin-top: 4rem; }
  .rail-nav a { align-self: flex-start; }
}

/* ---------- layout ---------------------------------------------------- */
main { flex: 1 0 auto; display: flex; flex-direction: column; }
main > * { flex: none; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); max-width: 84rem; margin-inline: auto; }
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 2.75rem); }

.kicker {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--dim);
}

.slug { display: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 470;
  line-height: 1;
  letter-spacing: -0.022em;
  color: var(--ink);
  text-wrap: balance;
}
.display-xl { font-size: clamp(3rem, 8vw, 7rem); }
.display-l  { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.display-m  { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }

p { max-width: 62ch; }
.lede { font-family: var(--serif); font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; font-weight: 400; color: var(--ink); max-width: 44ch; }

.footnote { font-family: var(--sans); font-size: .9rem; letter-spacing: .08em; color: var(--dim); }

/* ---------- green chapters ------------------------------------------- */
.on-dark { background: var(--green); color: var(--i-text); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--ivory); }
.on-dark p { color: var(--i-text); }
.on-dark a { color: var(--ivory); text-decoration-color: var(--i-line-strong); }
.on-dark a:hover { color: var(--gold-i); text-decoration-color: var(--gold-i); }
.on-dark .kicker { color: var(--gold-i); }
.on-dark .footnote { color: var(--i-dim); }
.on-dark .lede { color: var(--ivory); }
.on-dark ::selection { background: var(--ivory); color: var(--green); }

/* ---------- buttons --------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: .9rem 2.3rem;
  transition: background .3s ease, color .3s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--green); }
.on-dark .btn { background: transparent; color: var(--ivory); border-color: var(--i-line-strong); }
.on-dark .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--green); }

/* ---------- photography: film frames ---------------------------------- */
/* Contained photos sit in a deep-green filmstrip frame with paper
   sprocket holes punched along the top and bottom edges.
   Full-width stills (.bleed) stay frameless — they are the projection. */
.frame {
  position: relative;
  background: var(--green);
  padding: 16px 11px;
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16'%3E%3Crect x='8' y='4.5' width='12' height='7' rx='2.6' fill='%23F6F5F0'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  pointer-events: none;
  opacity: .92;
}
.frame::before { top: 0; }
.frame::after { bottom: 0; }
.on-dark .frame { background: var(--green-deep); outline: 1px solid var(--i-line); outline-offset: 0; }
.frame .ph { overflow: hidden; height: 100%; border: 0; }
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;
  filter: saturate(.95);
  transition: transform 1.1s var(--ease), filter .5s ease;
}
.frame:hover img { transform: scale(1.02); filter: none; }
.bleed img { filter: saturate(.95); transition: filter .5s ease; }
.bleed:hover img { filter: none; }

/* captions sit inside the frame, like a label on the strip */
figure.frame figcaption,
.caption {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .05em;
  color: var(--i-dim);
  padding: .8rem .2rem .4rem;
}

/* ---------- media placeholder ----------------------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
}
.placeholder::before { content: none; }
.placeholder span {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
}
.on-dark .placeholder { border-color: var(--i-line); }
.on-dark .placeholder span { color: var(--i-dim); }
.placeholder--bleed { aspect-ratio: 21 / 9; }
.placeholder--portrait { aspect-ratio: 3 / 4; }
.placeholder--square { aspect-ratio: 1 / 1; }
.placeholder--tall { aspect-ratio: 4 / 5; }

/* ---------- footer — the site closes on green ------------------------- */
.site-footer { position: relative; z-index: 1; background: var(--green); border-top: 1px solid var(--i-line); }
.site-footer::after { content: none; }
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.7rem, 3.6vw, 2.6rem) var(--gutter);
  max-width: 84rem;
  margin-inline: auto;
}
.site-footer .wordmark { font-size: 1.55rem; }
.site-footer .contact-lines { text-align: right; font-family: var(--sans); font-size: .9rem; }
.site-footer .contact-lines a { display: inline-block; margin-bottom: .3rem; color: var(--i-dim); text-decoration: none; }
.site-footer .contact-lines a:hover { color: var(--ivory); }
.site-footer .contact-lines .place { color: var(--i-dim); letter-spacing: .04em; }
@media (max-width: 560px) {
  .site-footer .inner { flex-direction: column; align-items: flex-start; }
  .site-footer .contact-lines { text-align: left; }
}

/* ---------- back to top ------------------------------------------------ */
.to-top {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 295;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(4, 19, 9, .93);
  color: var(--ivory);
  border: 1px solid rgba(236, 234, 226, .35);
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .25s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(236, 234, 226, .85); }
/* keep clear of the message icon / open message card on Home */
body:has(.msg-mini) .to-top {
  bottom: calc(clamp(1rem, 2.5vw, 2rem) + 4.6rem);
  right: calc(clamp(1rem, 2.5vw, 2rem) + 6px);   /* centered over the message icon */
}
body:has(.msg-pop:not([hidden])) .to-top { opacity: 0; pointer-events: none; }

/* ---------- reveal / lightbox ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vmin, 3rem);
  background: rgba(6, 15, 9, 0.94);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(94vw, 90rem);
  max-height: 88vh;
  width: auto; height: auto;
  transform: scale(.98);
  transition: transform .3s var(--ease);
}
.lightbox.open img { transform: none; }
.lightbox .close {
  position: absolute; top: 1rem; right: 1.1rem;
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 1.3rem; line-height: 1;
  color: var(--ivory);
  background: transparent;
  border: 1px solid rgba(236, 234, 226, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.lightbox .close:hover { background: var(--ivory); color: var(--green); }
body.no-scroll { overflow: hidden; }

/* ====================================================================
   HOME — the title card he loved, on green
   ==================================================================== */
.hero-index {
  position: relative;
  background: var(--green);
  padding: clamp(3.5rem, 7vh, 5.5rem) 0;
  overflow: hidden;
}
.hero-index::before {
  content: "";
  position: absolute;
  left: 50%; top: -25%;
  width: 120vmin; height: 120vmin;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(236, 234, 226, 0.07), transparent 70%);
  pointer-events: none;
}
.statement-hero { max-width: none; position: relative; text-align: center; margin-inline: auto; }
.statement-hero::before {
  content: "";
  display: block;
  width: 4.5rem; height: 1px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  background: var(--gold-i);
}
.statement-hero .mast {
  transition: font-variation-settings .7s var(--ease);
}
.statement-hero .mast:hover {
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
}
.statement-hero .mast {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-weight: 420;
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  line-height: .95;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--ivory);
}
.statement-hero .rest {
  display: block;
  margin: clamp(1.3rem, 2.6vw, 2.1rem) auto 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
  font-weight: 390;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  line-height: 1.5;
  max-width: 44ch;
  color: var(--i-text);
}

/* manifesto — large ink lines on the white page */
.intro { padding-block: clamp(2.25rem, 5vw, 3.75rem); }
.intro .stanza {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 0;
  font-weight: 430;
  /* sized so each sentence holds one line on desktop */
  font-size: clamp(1.05rem, 1.62vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: none;
  text-align: left;
  margin: 0;
}
.stanza .line { display: block; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stanza .line + .line { margin-top: .24em; margin-left: 0; }
.reveal.in .line { opacity: 1; transform: none; }
.reveal.in .line:nth-child(1) { transition-delay: .1s; }
.reveal.in .line:nth-child(2) { transition-delay: .22s; }
.reveal.in .line:nth-child(3) { transition-delay: .34s; }
.reveal.in .line:nth-child(4) { transition-delay: .46s; }
.reveal.in .line:nth-child(5) { transition-delay: .58s; }


.bleed { display: block; line-height: 0; overflow: hidden; aspect-ratio: 21 / 9; }
.bleed img, .bleed object { width: 100%; height: 100%; display: block; aspect-ratio: auto; object-fit: cover; }
.bleed--hero { margin-top: 0; }

.section-intentions { padding-top: clamp(2.75rem, 6vw, 4.75rem); }
.intentions {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.intentions .media { max-width: 28rem; width: 100%; margin-top: 0; justify-self: start; }
.intentions .body { padding-top: 0; }
.intentions .body p + p { margin-top: 1.35rem; }
.intentions .body .btn { margin-top: 1.8rem; }
@media (max-width: 820px) {
  .intentions { grid-template-columns: 1fr; }
  .intentions .media { max-width: 26rem; }
}

.print-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  padding-block: 0;
}
.print-row .frame { transform: none; }
.print-row .frame img { aspect-ratio: 4 / 5; }
.print-row .frame:nth-child(n), .print-row .frame:nth-child(n):hover { transform: none; }
@media (max-width: 900px) { .print-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .print-row { grid-template-columns: 1fr; } }

/* ====================================================================
   ABOUT
   ==================================================================== */
/* headline lockup: a quiet italic question, then the name at poster size */
.about-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: clamp(1.6rem, 3.6vw, 2.6rem);
}
.about-title .ask {
  /* sized at ~60% of the name; js/main.js then tracks it out so its ink
     spans exactly the width of NANCIE CARAWAY at every screen size */
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-weight: 430;
  font-size: clamp(1.2rem, 5.16vw, 3.84rem);
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.about-title .name {
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-size: clamp(2rem, 8.6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -0.02em;
  margin-top: .12em;
  white-space: nowrap;
}

/* the bio as three chapters — Where, Why, Who. Each scene pairs a photo
   with its text (the Who scene flips: text left, photo right), rows centred
   on the photo; then the credentials as labelled rows, each with its
   artifact in a film frame. Text runs the full column — no measure cap. */
.about-story { --photo-w: 26rem; --scene-gap: clamp(2.5rem, 5vw, 4.5rem); max-width: 68rem; }
.about-story .scene {
  display: grid;
  grid-template-columns: var(--photo-w) minmax(0, 1fr);
  column-gap: var(--scene-gap);
  align-items: center;
}
.about-story .scene + .scene { margin-top: clamp(3rem, 6vw, 5rem); }
.about-story .scene.flip { grid-template-columns: minmax(0, 1fr) var(--photo-w); }
.about-story .scene.flip .scene-photo { order: 2; }
.about-story .scene-photo { margin: 0; }
.about-story .scene-text > p,
.about-story .cred > p {
  max-width: none;
  font-size: clamp(1.02rem, 1.25vw, 1.15rem);
  line-height: 1.62;
  margin: 0;
}
.about-story .scene-text > p + p { margin-top: 1.4rem; }
.about-story .scene-text > .lede {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.42;
  max-width: none;
}
.about-story .chapter {
  display: block;
  margin-bottom: .9rem;
  color: var(--ink);
}
.about-story .chapter::before {              /* the site's gold tip */
  content: "";
  display: inline-block;
  width: 1.5rem; height: 2px;
  margin: 0 .75rem .22em 0;
  background: var(--gold);
  vertical-align: middle;
}
.about-story .lede + .chapter { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.about-story .close-line {
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem) !important;
  line-height: 1.4 !important;
  margin-top: 1.2rem !important;
}
.about-story .aside { font-style: italic; color: var(--dim); }

/* credentials — four tiles, 2 × 2: artifact + label up top, text below */
.about-story .creds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.about-story .cred {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2vw, 1.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line);
}
.about-story .cred-key { display: flex; align-items: center; gap: 1.3rem; min-width: 0; }
.about-story .cred-key .kicker {           /* tile title: serif, not a tracked label */
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 470;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.1;
  color: var(--ink);
}
.frame.thumb { width: 7.5rem; flex: none; padding: 12px 8px; }
.frame.thumb::before, .frame.thumb::after { left: 8px; right: 8px; height: 12px; background-size: 21px 12px; }
.frame.thumb .ph img { aspect-ratio: 5 / 7; object-fit: cover; width: 100%; height: auto; display: block; }

@media (max-width: 1240px) { .about-story { --photo-w: 22rem; } }
@media (max-width: 820px) {
  /* phones: one column — portrait, Where + Why, crew photo, Who, then rows */
  .about-story .scene, .about-story .scene.flip { grid-template-columns: 1fr; row-gap: 1.6rem; }
  .about-story .scene.flip .scene-photo { order: 0; }
  .about-story .scene + .scene { margin-top: 2.4rem; }
  .about-story .scene-photo { max-width: 30rem; }
  .about-story .creds { grid-template-columns: 1fr; margin-top: 2.4rem; gap: 1rem; }
  .about-story .cred { padding: 1.2rem 1.1rem; gap: 1rem; }
  .frame.thumb { width: 5.6rem; padding: 10px 6px; }
  .frame.thumb::before, .frame.thumb::after { left: 6px; right: 6px; height: 10px; background-size: 17px 10px; }
}

/* pull-quote — a green chapter */
.pull-quote-band { background: var(--green); border: 0; overflow: visible; }
.pull-quote-band .inner {
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 2fr) minmax(0, .5fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.pull-quote-band .quote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.32;
  text-align: center;
  font-weight: 430;
  letter-spacing: -0.015em;
  max-width: none;
  color: var(--ivory);
}
.pull-quote-band .frame .ph { border-color: var(--i-line); }
.pull-quote-band .inner > .frame,
.pull-quote-band .inner > .frame:hover { transform: none; }
@media (max-width: 820px) {
  .pull-quote-band .inner { grid-template-columns: 1fr 1fr; }
  .pull-quote-band .quote { grid-column: 1 / -1; grid-row: 1; }
}

.cv-block h2 { text-align: left; margin-bottom: clamp(1.3rem, 3vw, 2.1rem); }
.cv-row {
  display: grid;
  grid-template-columns: minmax(9rem, .32fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding-block: clamp(1.3rem, 2.8vw, 2rem);
  border-top: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 1px solid var(--line); }
.cv-row p { max-width: 64ch; }
.cv-row strong { color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .cv-row { grid-template-columns: 1fr; gap: .6rem; } }

/* ====================================================================
   CINEMA
   ==================================================================== */
.page-hero {
  position: relative;
  text-align: center;
  padding-block: clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 50%; top: -40%;
  width: 100vmin; height: 100vmin;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(236, 234, 226, 0.08), transparent 70%);
  pointer-events: none;
}
.page-hero .display-xl { font-size: clamp(3.6rem, 10.5vw, 9rem); letter-spacing: -0.025em; }
.page-hero .footnote { margin-top: 1.6rem; }

main { counter-reset: scene; }
/* section openers: editorial thick-thin double rule + deep-green caps serif.
   Reads as structure (magazine section signage), not as another row of text. */
.works-head {
  position: relative;
  margin: 0 0 clamp(1.7rem, 3.6vw, 2.5rem);
  padding-top: 1.2rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 470;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--green);
}
.works-head::before {
  /* thick rule, gold-tipped */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 46px, var(--green) 46px);
}
.works-head::after {
  /* thin echo line beneath it */
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
/* intro line under a section opener */
.works-intro {
  margin: calc(-1 * clamp(1.7rem, 3.6vw, 2.5rem) + 1rem) 0 clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--dim);
  max-width: none;
}
.work { border-top: 1px solid var(--line); scroll-margin-top: 3rem; }
.wrap > .work:last-of-type { border-bottom: 1px solid var(--line); }
.work summary {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.8rem) 0;
  cursor: pointer;
  list-style: none;
}
.work summary::-webkit-details-marker { display: none; }
.work summary h3 {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.05;
  transition: color .3s ease;
}
/* scene numbers — CSS-generated, delete this block to remove them */
.work summary h3::before {
  content: counter(scene, decimal-leading-zero);
  counter-increment: scene;
  font-family: var(--sans);
  font-weight: 450;
  font-size: .88rem;
  letter-spacing: .14em;
  color: var(--gold);
  flex: none;
}
.work summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1;
  color: var(--dim);
  transition: rotate .4s var(--ease), color .3s ease;
}
.work summary:hover h3 { color: var(--moss); }
.work summary:hover::after { color: var(--green); }
.work[open] summary::after { rotate: 45deg; color: var(--green); }
.work::details-content {
  height: 0;
  overflow: clip;
  transition: height .55s var(--ease), content-visibility .55s allow-discrete;
}
.work[open]::details-content { height: auto; }
.work .inner { padding: .3rem 0 clamp(1.7rem, 3.6vw, 2.5rem); }
.work .media { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.work .credit-lines { font-family: var(--sans); font-size: .95rem; line-height: 1.9; letter-spacing: .04em; color: var(--dim); margin-bottom: 1.1rem; }
.work p.synopsis { max-width: 64ch; }
.work .allcaps { font-family: var(--sans); font-size: .95rem; letter-spacing: .12em; margin-top: 1.2rem; color: var(--dim); }
.wrap > h2.display-l { margin-bottom: clamp(1.2rem, 3vw, 2rem); }
h2.kicker { margin: clamp(1.9rem, 4.2vw, 3rem) 0 .5rem; }

.profs-media {
  display: grid;
  grid-template-columns: minmax(0, .74fr) minmax(0, 1fr) minmax(0, .78fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 64rem;
}
.profs-media .stack { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-content: start; }
@media (max-width: 820px) { .profs-media { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .profs-media { grid-template-columns: 1fr; } }

/* flexible two-up media rows — column ratio set per work */
.duo {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 56rem;
}
@media (max-width: 640px) { .duo { grid-template-columns: 1fr !important; } }

/* Pukui: portrait / archive video / book cover */
.pukui-media {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, .58fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 64rem;
}
@media (max-width: 820px) {
  .pukui-media { grid-template-columns: 1fr 1fr; }
  .pukui-media > .frame--video { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .pukui-media { grid-template-columns: 1fr; } }

/* archive video inside a film frame */
.video-embed { position: relative; aspect-ratio: 4 / 3; background: #0A0F0A; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); max-width: 46rem; }
@media (max-width: 560px) { .media-pair { grid-template-columns: 1fr; } }
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
  max-width: 56rem;
}
@media (max-width: 640px) { .media-split { grid-template-columns: 1fr; } }
.media-solo { max-width: 30rem; }
.media-wide { max-width: 46rem; }

/* Gerwig — a green chapter */
.quote-band { padding-block: clamp(2.4rem, 5.4vw, 3.8rem); margin-block: clamp(1.8rem, 4vw, 2.8rem); }
.quote-band blockquote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.4;
  font-weight: 420;
  letter-spacing: -0.015em;
  max-width: 30ch;
  color: var(--ivory);
}
.quote-band blockquote p { color: var(--ivory); max-width: none; }
.quote-band blockquote p + p { margin-top: 1.2rem; }
.quote-band cite {
  display: block;
  margin-top: 1.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-i);
}

/* ====================================================================
   JOURNALISM
   ==================================================================== */
.journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.journal-grid > figure { position: sticky; top: 3rem; }
@media (max-width: 820px) { .journal-grid { grid-template-columns: 1fr; } .journal-grid > figure { position: static; max-width: 26rem; } }

.article-list { list-style: none; margin-top: clamp(1.3rem, 2.8vw, 2rem); }
.article-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.2rem;
  padding-block: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.article-list li:last-child { border-bottom: 1px solid var(--line); }
.article-list a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 440;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s ease;
}
.article-list a:hover { color: var(--moss); }
.article-list .pub {
  font-family: var(--sans);
  font-size: .88rem;
  letter-spacing: .1em;
  color: var(--dim);
  margin-left: auto;
  white-space: nowrap;
}
@media (max-width: 560px) { .article-list .pub { margin-left: 0; } }

/* ====================================================================
   INSPIRATION / COMPARABLES
   ==================================================================== */
.inspo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 820px) { .inspo-grid { grid-template-columns: 1fr; } }

.comparable { padding-block: clamp(1rem, 2vw, 1.5rem); border-top: 1px solid var(--line); }
.comparable:last-child { border-bottom: 1px solid var(--line); }
.comparable .title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 440;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.comparable .note { margin-top: .6rem; color: var(--text); font-size: 1.0625rem; max-width: 56ch; }

.film-strip {
  /* four frames, one row — columns sized to each image's aspect ratio so
     all frames share one height (Petra wide, Zadie tall, book, Fleabag) */
  display: grid;
  grid-template-columns: .711fr .675fr 1.49fr .708fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}
.film-strip .frame:nth-child(n) { grid-column: auto; grid-row: auto; margin: 0; z-index: auto; }
@media (max-width: 720px) { .film-strip { grid-template-columns: 1fr; } }

/* quotes — a green chapter of hairline rows */
.quote-wall { padding-block: clamp(2rem, 5vw, 3.5rem); }
.quote-wall figure { padding-block: clamp(1.3rem, 2.8vw, 2rem); border-top: 1px solid var(--i-line); max-width: none; margin: 0; }
.quote-wall figure:first-of-type { border-top: 0; }
.quote-wall figure:nth-of-type(odd), .quote-wall figure:nth-of-type(even) { margin-left: 0; margin-right: 0; }
.quote-wall figure + figure { margin-top: 0; }
.quote-wall figcaption {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 450;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-i);
  margin-bottom: .9rem;
}
.quote-wall blockquote {
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "SOFT" 0, "WONK" 0;
  font-weight: 420;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
  max-width: 34ch;
  color: var(--ivory);
}
.quote-wall .qtitle { font-weight: 500; }

/* About: the Professor tile has no artifact — its title carries a gold tip;
   the last tile (Degrees) closes the grid full-width */
.about-story .creds .cred:last-child { grid-column: 1 / -1; }
.about-story .cine-pointer {
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
}
.about-story .cine-pointer a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: .22em; }
.about-story .cine-pointer a:hover { color: var(--gold); }
.about-story .cine-pointer a::after { content: " \2192"; font-style: normal; }

/* About: personal statement — the green closing chapter */
.pull-quote-band .ps-head {
  margin: .9rem 0 clamp(1.2rem, 2.4vw, 1.8rem);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: .045em;
  line-height: 1.05;
}
.pull-quote-band .ps-body p {
  max-width: 60ch;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.62;
}
.pull-quote-band .ps-body p + p { margin-top: 1.2rem; }
.pull-quote-band .cover-strip { margin-top: clamp(2rem, 4.5vw, 3.2rem); }

/* home: dialogue teasers — script lines in the green chapter, source after */
.on-dark .works-head::before { background: linear-gradient(90deg, var(--gold-i) 0 46px, var(--i-line-strong) 46px); }
.on-dark .works-head::after { background: var(--i-line); }
.teaser-wall { padding-block: clamp(.6rem, 1.5vw, 1.2rem) 0; }
.teaser-wall blockquote {
  font-style: italic;
  font-variation-settings: "opsz" 60, "SOFT" 0, "WONK" 1;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem);
  max-width: 58ch;
}
.teaser-wall figcaption { margin: 1rem 0 0; color: var(--i-dim); }
.teaser-wall figcaption::before {
  content: "";
  display: inline-block;
  width: 1.1rem; height: 2px;
  margin: 0 .6rem .22em 0;
  background: var(--gold-i);
  vertical-align: middle;
}


/* ====================================================================
   CONTACT — same page pattern as the rest of the site
   ==================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas:
    "head  photo"
    "form  photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-grid .c-head  { grid-area: head; }
.contact-grid .c-form  { grid-area: form; }
.contact-grid .c-photo { grid-area: photo; position: sticky; top: 3rem; }
@media (max-width: 820px) {
  /* stacked: heading, then the photo, then the form — never at the end */
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "photo" "form";
    grid-template-rows: none;
  }
  .contact-grid .c-photo { position: static; max-width: 26rem; margin-top: 1.8rem; }
}

form.contact { margin-top: clamp(1.8rem, 4vw, 2.8rem); max-width: 32rem; }
.field-group-label {
  display: block;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.field { margin-bottom: 1.8rem; }
.field label {
  display: block;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 450;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .5rem;
}
.field label .req { color: var(--dim); font-weight: 400; text-transform: none; letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1.125rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: .55rem 0;
  transition: border-color .25s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--green);
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }

/* Contact fits one desktop screen — no scrolling needed */
@media (min-width: 821px) {
  .contact-page main > .section { padding-block: clamp(1.1rem, 3vh, 2.6rem); }
  .contact-page .c-head .reveal { margin-top: 1rem !important; }
  .contact-page form.contact { margin-top: 1.4rem; }
  .contact-page .field { margin-bottom: 1.15rem; }
  .contact-page .field-group-label { margin-bottom: .6rem; }
  .contact-page .field input, .contact-page .field textarea { padding: .4rem 0; }
  .contact-page .field textarea { min-height: 4.6rem; }
  .contact-page .c-photo { max-width: min(100%, calc((100dvh - 23rem) * .667)); justify-self: end; }  /* .667 = the clapperboard portrait's 2:3 ratio: fills the one-screen height */
}


/* ---------- new media rows (About + Inspiration updates) ------------- */
/* three posters in the About photo column (last on phones) */
.poster-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 1.5vw, 1.1rem);
}
.poster-strip .frame img { aspect-ratio: 5 / 7; }
@media (max-width: 560px) { .poster-strip { grid-template-columns: 1fr; } }

/* six covers inside the pull-quote chapter */
.cover-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.6rem, 1.4vw, 1rem);
  align-items: start;
  margin-top: clamp(1.6rem, 3.6vw, 2.4rem);
}
.cover-strip .frame img { aspect-ratio: 5 / 7; }
@media (max-width: 900px) { .cover-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cover-strip { grid-template-columns: 1fr 1fr; } }

/* Inspiration: six posters, two columns beside the list */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.7rem, 1.5vw, 1.1rem);
  align-items: start;
}
.poster-grid .frame img { aspect-ratio: 5 / 7; }
@media (max-width: 560px) { .poster-grid { grid-template-columns: 1fr 1fr; } }


/* ---------- message from Nancie (home page pop-up) -------------------- */
/* theater dim while the message arrives — never blocks clicks */
.msg-scrim {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: rgba(5, 24, 11, .40);
  opacity: 0;
  transition: opacity .9s var(--ease);
  pointer-events: none;
}
.msg-scrim.on { opacity: 1; }
.msg-scrim[hidden] { display: none; }

.msg-pop {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 300;
  width: min(23.5rem, calc(100vw - 2rem));
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--gold-i);
  border-radius: 16px;
  /* glowing golden frame */
  box-shadow:
    0 0 0 1px rgba(176, 138, 60, .28),
    0 0 16px rgba(201, 165, 92, .62),
    0 0 44px rgba(176, 138, 60, .38),
    0 30px 70px -20px rgba(19, 24, 16, .35);
  padding: 1.05rem 1.15rem 1.2rem;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.msg-pop.show {
  opacity: 1;
  transform: none;
  animation: msg-glow 3.4s ease-in-out 1s infinite;
}
@keyframes msg-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(176, 138, 60, .28),
      0 0 16px rgba(201, 165, 92, .58),
      0 0 42px rgba(176, 138, 60, .34),
      0 30px 70px -20px rgba(19, 24, 16, .35);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(176, 138, 60, .40),
      0 0 26px rgba(201, 165, 92, .85),
      0 0 62px rgba(176, 138, 60, .55),
      0 30px 70px -20px rgba(19, 24, 16, .35);
  }
}
.msg-pop[hidden] { display: none; }
.msg-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .65rem; }
.msg-avatar-wrap { position: relative; flex: none; width: 46px; height: 46px; }
.msg-avatar {
  display: block;
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-i);
}
/* messenger-style "online" dot */
.msg-dot {
  position: absolute;
  right: -1px; bottom: -1px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #3FBF62;
  border: 2px solid var(--green);
}
.msg-name {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 1;
  font-weight: 430;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--ivory);
}
.msg-close {
  margin-left: auto;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid rgba(236, 234, 226, .4);
  border-radius: 999px;
  color: var(--ivory);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.msg-close:hover { background: var(--ivory); border-color: var(--ivory); color: var(--green); }
/* "she's typing…" dots */
.msg-typing { display: flex; gap: 6px; padding: .5rem 0 .55rem; }
.msg-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(236, 234, 226, .8);
  animation: msg-typing 1.1s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes msg-typing {
  0%, 55%, 100% { opacity: .3; transform: translateY(0); }
  25% { opacity: 1; transform: translateY(-3px); }
}
.msg-typing[hidden] { display: none; }
.msg-body[hidden] { display: none; }
/* card tucking itself down into the mini button */
.msg-pop.min {
  transform-origin: calc(100% - 28px) calc(100% + 6px);
  transform: translateY(10px) scale(.08);
  opacity: 0;
  transition: transform .55s var(--ease), opacity .45s ease .08s;
  pointer-events: none;
}
/* minimized message button, gold-ringed, glowing */
.msg-mini {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 300;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--gold-i);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(176, 138, 60, .28),
    0 0 14px rgba(201, 165, 92, .55),
    0 0 34px rgba(176, 138, 60, .32),
    0 16px 40px -14px rgba(19, 24, 16, .45);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .4s var(--ease), transform .5s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.msg-mini.show { opacity: 1; transform: scale(1); }
.msg-mini:hover { transform: scale(1.07); box-shadow:
    0 0 0 1px rgba(176, 138, 60, .38),
    0 0 20px rgba(201, 165, 92, .75),
    0 0 46px rgba(176, 138, 60, .45),
    0 16px 40px -14px rgba(19, 24, 16, .45); }
.msg-mini[hidden] { display: none; }
.msg-mini svg { display: block; }
/* golden "1 unread" badge */
.msg-badge {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 23px; height: 23px;
  padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-i);
  color: var(--green-deep);
  border: 2px solid var(--green);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
}
.msg-badge[hidden] { display: none; }
.msg-text { font-size: .96rem; line-height: 1.62; color: var(--ivory); max-width: none; }
.msg-text + .msg-text { margin-top: .6rem; }
.msg-alert { color: #ED7A6C; font-weight: 700; }   /* red flag, tuned to stay readable on green */
@media (prefers-reduced-motion: reduce) {
  .rail, body.rail-hidden .rail { transition: none; }
  main, .site-footer { transition: none; }
  .rail-tab, .rail-tab-m { transition: none; animation: none; }
  .site-nav { transition: none; }
  .to-top { transition: opacity .3s ease; transform: none; }
  .msg-pop { transform: none; transition: opacity .4s ease; }
  .msg-pop.show { animation: none; }   /* glow stays, but doesn't pulse */
  .msg-pop.min { transform: none; transition: opacity .35s ease; }
  .msg-typing span { animation: none; }
  .msg-mini { transform: none; transition: opacity .35s ease; }
  .msg-mini.show, .msg-mini:hover { transform: none; }
}

/* ---------- reduced motion -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stanza .line { opacity: 1; transform: none; transition: none; }
  .frame img, .frame:hover img { transform: none; transition: filter .5s ease; }
  .wordmark, .wordmark:hover { font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 1; }
}

/* ---------- touch comfort (small screens) ---------------------------- */
@media (max-width: 1099px) {
  .article-list a { padding-block: .25rem; }
  .site-footer .contact-lines a { padding-block: .3rem; }
  .comparable .title { padding-block: .1rem; }
}
@media (min-width: 1100px) {
  .rail-nav a { padding: .42rem 0; }
}

/* ====================================================================
   CINEMATIC MOTION — Ken Burns bleeds, projector lightbox,
   film-advance sprockets, typewriter manifesto
   ==================================================================== */

/* slow documentary drift on the full-width photos */
@keyframes ken-burns {
  from { transform: scale(1.015) translateX(0); }
  to   { transform: scale(1.075) translateX(-1.2%); }
}
.bleed img {
  animation: ken-burns 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* lightbox opens like a projector warming up: lights down, image flickers on */
@keyframes projector-in {
  0%   { opacity: 0;   transform: scale(.965); }
  16%  { opacity: .8; }
  24%  { opacity: .25; }
  36%  { opacity: .9; }
  46%  { opacity: .5; }
  58%  { opacity: 1;   transform: scale(1); }
  100% { opacity: 1;   transform: scale(1); }
}
.lightbox.open img { animation: projector-in .85s ease-out; }

/* hovering a framed photo advances the film through the gate */
@keyframes film-advance {
  from { background-position: 0 center; }
  to   { background-position: 28px center; }
}
.frame:hover::before,
.frame:hover::after {
  animation: film-advance .85s linear infinite;
}

/* typewriter caret for the manifesto */
.stanza .line.typing-now::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: .92em;
  margin-left: 3px;
  vertical-align: -0.08em;
  background: var(--gold);
  animation: caret-blink .75s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .bleed img { animation: none; }
  .lightbox.open img { animation: none; }
  .frame:hover::before, .frame:hover::after { animation: none; }
  .stanza .line.typing-now::after { animation: none; }
}

/* confirmation note after the form sends (shown when returning with ?sent=1) */
.form-sent {
  margin-top: 1.4rem;
  padding: .75rem 1rem .8rem;
  border-left: 3px solid var(--gold);
  background: rgba(12, 60, 30, .06);
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
  font-size: 1.1rem;
  color: var(--green);
  max-width: 32rem;
}
.form-sent[hidden] { display: none; }

/* the abstract band animates internally — keep Ken Burns off it */
.bleed img.art { animation: none; }
.bleed object.art { pointer-events: none; }   /* it's a picture, not a widget */

/* animated projector band inside the quotes chapter: transparent artwork,
   pulled up beside the last quotes, running flush into the footer */
.quote-wall .band {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  margin-top: clamp(-1rem, -1vw, -0.5rem);
  margin-bottom: calc(-1 * clamp(2rem, 5vw, 3.5rem));  /* flush to the footer */
  pointer-events: none;
}
/* the wall's own padding stays for the quotes; the band butts the footer */
.inspo-page .site-footer { border-top: 0; }

/* invisible tap-catcher behind the mobile drawer */
.menu-catch { display: none; }
.menu-catch.on {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 39;
  background: transparent;
}
@media (min-width: 1100px) { .menu-catch { display: none !important; } }
