/* ==========================================================================
   Roanlight Dental, "The Chairside Edition"
   An editorial/press-sheet direction: sage newsprint ground, forest ink,
   mulberry folios, oat fills. Rules, folios and the side rail are the
   structure; the faces are Plus Jakarta Sans for display, Inter for utility,
   carried heavy so a geometric sans still sets like a press sheet.
   ========================================================================== */


:root {
  --paper: #e9e7de;          /* sage-tinted newsprint */
  --paper-lift: #f4f2ec;     /* plates, cards */
  --ink: #1b241f;            /* forest-black */
  --ink-2: #4c5a51;
  --ink-3: #5a6760;
  --pine: #23483a;           /* brand */
  --pine-deep: #163026;
  --mulberry: #8c4a63;       /* folios, accents */
  --oat: #dfc9a6;
  --rule: rgba(27, 36, 31, 0.22);
  --rule-soft: rgba(27, 36, 31, 0.12);

  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --utility: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wght-h: 700;             /* section headings */
  --wght-hero: 800;          /* the one hero line per page */

  --shell: 1360px;
  --gut: clamp(20px, 4vw, 56px);
  --rail: 76px;

  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 40px;
  --sp-5: 64px; --sp-6: 96px; --sp-7: 136px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset & base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--utility);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* Paper tooth. Fixed, non-interactive, cheap. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--oat); color: var(--ink); }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--mulberry);
  outline-offset: 3px;
  border-radius: 1px;
}

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gut); }
.skip {
  position: absolute; left: 12px; top: 12px; z-index: 1000;
  background: var(--pine); color: var(--paper-lift);
  padding: 10px 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; transform: translateY(-200%);
  transition: transform 180ms var(--ease);
}
.skip:focus { transform: none; }

/* ---------- type scale -------------------------------------------------- */
.display {
  font-family: var(--display); font-weight: var(--wght-h); line-height: 1.0;
  letter-spacing: -0.02em; text-wrap: balance;
}
.d-xl { font-size: clamp(42px, 6.2vw, 88px); font-weight: var(--wght-hero); }
.d-lg { font-size: clamp(38px, 5.2vw, 70px); }
.d-md { font-size: clamp(28px, 3.4vw, 44px); }
.d-sm { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.1; }
.display em { font-style: normal; font-weight: var(--wght-hero); color: var(--mulberry); }

.label {
  font-family: var(--utility); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.folio {
  font-family: var(--utility); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mulberry);
  font-variant-numeric: tabular-nums;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.prose p { margin-bottom: 1.1em; color: var(--ink-2); max-width: 66ch; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- rules & links ---------------------------------------------- */
.rule { height: 1px; background: var(--rule); border: 0; }
.rule-thick { height: 3px; background: var(--ink); border: 0; }

.uline {
  position: relative; text-decoration: none; display: inline-block;
  padding-bottom: 3px; font-weight: 600;
}
.uline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(1); transform-origin: left;
  transition: transform 320ms var(--ease);
}
.uline:hover::after, .uline:focus-visible::after { transform: scaleX(0.28); }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; min-height: 48px;
  font-family: var(--utility); font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--pine); background: var(--pine); color: var(--paper-lift);
  cursor: pointer; border-radius: 0;
  transition: transform 220ms var(--ease), background-color 220ms var(--ease), color 220ms var(--ease);
}
.btn:hover { background: var(--pine-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .tick { transition: transform 260ms var(--ease); }
.btn:hover .tick { transform: translateX(4px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-oat { background: var(--oat); border-color: var(--oat); color: var(--pine-deep); }
.btn-oat:hover { background: #efe0c6; border-color: #efe0c6; }

/* ---------- photographic grade ----------------------------------------- */
/* One consistent warm grade across every photo so mixed stock reads as a set. */
.plate { position: relative; overflow: hidden; background: var(--pine-deep); }
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.58) sepia(0.2) saturate(0.9) contrast(1.06) brightness(1.02);
}
.plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(35, 72, 58, 0.16), rgba(223, 201, 166, 0.14));
  mix-blend-mode: multiply;
}
.plate-frame { position: relative; }
.plate-frame::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--rule); z-index: -1;
}

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead {
  position: sticky; top: 0; z-index: 500;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead-in {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-top: 18px; padding-bottom: 18px;
}
/* On scroll the masthead settles rather than resizing: a paint-only shadow and
   a transform on the wordmark, so nothing reflows mid-scroll. */
.masthead { transition: box-shadow 300ms var(--ease); }
.masthead.is-compact { box-shadow: 0 12px 26px rgba(27, 36, 31, 0.07); }
.masthead .wordmark { transition: transform 320ms var(--ease); transform-origin: left center; }
.masthead.is-compact .wordmark { transform: scale(0.9); }

.wordmark { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.wordmark-name {
  font-family: var(--display); font-size: 25px; font-weight: var(--wght-hero);
  letter-spacing: -0.03em; line-height: 1;
}
.wordmark-name .sprig { color: var(--mulberry); font-style: normal; font-weight: var(--wght-hero); }
.wordmark-sub {
  font-family: var(--utility); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
  border-left: 1px solid var(--rule); padding-left: 12px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--utility); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-decoration: none; color: var(--ink);
  position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--mulberry); transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--mulberry); }
.nav .btn { margin-left: 6px; }

.nav-toggle {
  display: none; align-items: center; gap: 8px; background: none;
  border: 1px solid var(--rule); padding: 10px 14px; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-toggle svg { display: block; }

/* ==========================================================================
   Folio rail, the running head of the magazine
   ========================================================================== */
.rail {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); z-index: 400;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; pointer-events: none; border-right: 1px solid var(--rule-soft);
}
.rail-text {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--utility); font-size: 10px; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.rail-track { position: relative; width: 1px; height: 34vh; background: var(--rule-soft); }
.rail-bar {
  position: absolute; inset: 0; background: var(--mulberry);
  transform: scaleY(0); transform-origin: top; will-change: transform;
}
.rail-num {
  font-family: var(--utility); font-weight: 600; font-size: 14px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Sections
   ========================================================================== */
main { position: relative; }
.section { padding: var(--sp-7) 0; position: relative; }
.section-tight { padding: var(--sp-6) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 3px solid var(--ink);
  margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.section-head p { color: var(--ink-2); max-width: 40ch; font-size: 15px; }

/* ---------- Hero (the cover) ------------------------------------------- */
.cover { padding-top: clamp(40px, 4.6vw, 68px); padding-bottom: 0; overflow: hidden; }
.cover-grid {
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(24px, 4vw, 64px); align-items: end;
}
.cover-meta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--rule);
}
.cover-meta .dot { width: 4px; height: 4px; background: var(--mulberry); border-radius: 50%; }
.cover h1 { margin-bottom: clamp(22px, 2.6vw, 34px); }
.cover h1 .line { display: block; overflow: hidden; }
.cover h1 .line > span { display: block; }
.cover-lede { margin-bottom: clamp(26px, 3vw, 38px); }
.cover-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-bottom: clamp(30px, 5vw, 72px); }

.cover-plate {
  position: relative; aspect-ratio: 4 / 4.4; align-self: end;
  max-height: min(66vh, 600px);
  margin-right: calc(var(--gut) * -1);
}
.cover-plate .plate { position: absolute; inset: 0; }
.cover-plate .plate img { transform: translateY(0) scale(1.06); will-change: transform; }
.cover-stamp {
  position: absolute; left: -28px; bottom: 34px; z-index: 3;
  background: var(--oat); color: var(--pine-deep);
  padding: 14px 18px; max-width: 190px;
  font-family: var(--utility); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.5;
}

/* cover lines, the blurbs down a magazine's front */
.coverlines {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); margin-top: clamp(24px, 3vw, 40px);
}
.coverlines li { padding: 22px 26px 26px 0; border-right: 1px solid var(--rule-soft); }
.coverlines li:last-child { border-right: 0; }
.coverlines li:not(:first-child) { padding-left: 26px; }
.coverlines strong {
  display: block; font-family: var(--display); font-weight: var(--wght-h);
  font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; margin: 8px 0 6px;
}
.coverlines span { font-size: 14px; color: var(--ink-2); }

/* ---------- Index (services) ------------------------------------------- */
.index-list { border-top: 1px solid var(--rule); }
.index-row {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 0.85fr) 44px;
  align-items: center; gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(20px, 2.3vw, 30px) 0 clamp(20px, 2.3vw, 30px) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; position: relative;
  transition: background-color 300ms var(--ease), padding 300ms var(--ease);
}
.index-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--mulberry); transform: scaleY(0); transform-origin: center;
  transition: transform 340ms var(--ease);
}
.index-row:hover, .index-row:focus-visible { background: var(--paper-lift); }
.index-row:hover::before, .index-row:focus-visible::before { transform: scaleY(1); }
.index-title {
  font-family: var(--display); font-weight: var(--wght-h); font-size: clamp(26px, 2.7vw, 38px);
  line-height: 1.05; letter-spacing: -0.02em;
  transition: transform 340ms var(--ease);
}
.index-row:hover .index-title, .index-row:focus-visible .index-title { transform: translateX(10px); }
.index-desc { font-size: 15px; color: var(--ink-2); }
.index-arrow {
  justify-self: end; margin-right: 4px; color: var(--ink-3);
  transition: transform 340ms var(--ease), color 340ms var(--ease);
}
.index-row:hover .index-arrow, .index-row:focus-visible .index-arrow { transform: translateX(6px); color: var(--mulberry); }
.index-row .folio { padding-left: clamp(8px, 1.4vw, 18px); }

/* ---------- Spread (about / trust) ------------------------------------- */
.spread {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 84px); align-items: center;
}
.spread-plate { aspect-ratio: 5 / 6; }
.pullquote { position: relative; padding-left: clamp(24px, 3vw, 46px); }
.pullquote::before {
  content: "\201C"; position: absolute; left: -6px; top: -0.22em;
  font-family: var(--display); font-size: clamp(80px, 8vw, 132px);
  line-height: 1; color: var(--oat); z-index: -1;
}
.pullquote q {
  font-family: var(--display); font-style: normal; font-weight: var(--wght-h);
  font-size: clamp(25px, 2.6vw, 38px); line-height: 1.22; letter-spacing: -0.015em;
  quotes: none; display: block;
}
.pullquote cite {
  display: block; margin-top: var(--sp-3); font-style: normal;
  font-family: var(--utility); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}

.colophon { margin-top: clamp(30px, 4vw, 48px); border-top: 1px solid var(--rule); }
.colophon div {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--sp-3);
  padding: 15px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline;
}
.colophon dt { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.colophon dd { font-size: 16px; color: var(--ink); }

/* ---------- Letters (testimonials) ------------------------------------- */
.letters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.letter { display: flex; flex-direction: column; padding: 0 clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--rule-soft); }
.letter:first-child { padding-left: 0; border-left: 0; }
.letter:last-child { padding-right: 0; }
.letter p {
  font-family: var(--utility); font-size: 18px; line-height: 1.55; color: var(--ink);
}
.letter p::first-letter {
  float: left; font-size: 3.1em; line-height: 0.82; padding: 0.06em 0.1em 0 0;
  font-family: var(--display); font-weight: var(--wght-hero); color: var(--mulberry);
}
.letter footer {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule);
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}

/* ---------- Back page (contact CTA) ------------------------------------ */
.backpage { background: var(--pine); color: var(--paper-lift); overflow: hidden; }
.backpage .label, .backpage .colophon dt { color: rgba(244, 242, 236, 0.62); }
.backpage .folio { color: var(--oat); }
.backpage .colophon { border-top-color: rgba(244, 242, 236, 0.28); }
.backpage .colophon div { border-bottom-color: rgba(244, 242, 236, 0.16); }
.backpage .colophon dd { color: var(--paper-lift); }
.backpage a.uline { color: var(--oat); }
.backpage-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 80px); align-items: start;
}
.backpage h2 { margin-bottom: var(--sp-3); }
.backpage .lede { color: rgba(244, 242, 236, 0.78); }

/* ---------- Footer ------------------------------------------------------ */
.foot { padding: var(--sp-5) 0 var(--sp-4); border-top: 3px solid var(--ink); }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-4); margin-bottom: var(--sp-5);
}
.foot h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.foot li { margin-bottom: 9px; }
.foot a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.foot a:hover { color: var(--mulberry); }
.foot-base {
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  padding-top: var(--sp-3); border-top: 1px solid var(--rule);
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em;
}

/* ==========================================================================
   Page furniture for interior pages
   ========================================================================== */
.pagehead { padding: clamp(48px, 6vw, 84px) 0 clamp(34px, 4vw, 56px); border-bottom: 3px solid var(--ink); }
.pagehead .crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: var(--sp-3); }
.pagehead .crumbs a { text-decoration: none; }
.pagehead .crumbs a:hover { color: var(--mulberry); }
.pagehead h1 { margin-bottom: var(--sp-3); max-width: 20ch; }
.pagehead .lede { max-width: 56ch; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 5vw, 76px); align-items: start; }
.sticky-note { position: sticky; top: 118px; }

.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.fact-grid div { padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-right: 1px solid var(--rule-soft); }
.fact-grid div:last-child { border-right: 0; }
.fact-grid div:not(:first-child) { padding-left: var(--sp-3); }
.fact-grid strong { display: block; font-family: var(--display); font-size: clamp(30px, 3.2vw, 44px); font-weight: var(--wght-hero); line-height: 1; margin-bottom: 8px; }
.fact-grid span { font-size: 13px; color: var(--ink-2); }

.steps { counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: var(--sp-3);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--rule-soft);
}
.steps li::before {
  counter-increment: step; content: "p." counter(step, decimal-leading-zero);
  font-family: var(--utility); font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--mulberry); padding-top: 5px;
}
.steps h3 { font-family: var(--display); font-weight: var(--wght-h); font-size: 22px; margin-bottom: 5px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ---------- Journal ----------------------------------------------------- */
.journal-list { border-top: 1px solid var(--rule); }
.journal-row {
  display: grid; grid-template-columns: 168px minmax(0, 1fr) 152px;
  gap: clamp(20px, 3vw, 44px); align-items: start;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; transition: background-color 280ms var(--ease);
}
.journal-row:hover, .journal-row:focus-visible { background: var(--paper-lift); }
.journal-row .plate { aspect-ratio: 4 / 3; }
.journal-row .plate img { transition: transform 600ms var(--ease); }
.journal-row:hover .plate img { transform: scale(1.05); }
.journal-row h2 { font-family: var(--display); font-weight: var(--wght-h); font-size: clamp(23px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 10px; }
.journal-row p { font-size: 15px; color: var(--ink-2); max-width: 60ch; }
.journal-row .meta { text-align: right; }

.article { max-width: 100%; }
.article-body { max-width: 68ch; margin: 0 auto; }
.article-body > * { margin-bottom: 1.15em; }
.article-body p { font-family: var(--utility); font-size: 18px; line-height: 1.68; color: #26312a; }
.article-body h2 { font-family: var(--display); font-weight: var(--wght-h); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; margin-top: 1.7em; }
.article-body ul { margin-left: 0; }
.article-body li { font-family: var(--utility); font-size: 17px; line-height: 1.6; color: #26312a; padding-left: 26px; position: relative; margin-bottom: 10px; }
.article-body li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 1px; background: var(--mulberry); }
.article-body .callout {
  border-left: 3px solid var(--mulberry); background: var(--paper-lift);
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-3); margin: 1.8em 0;
}
.article-body .callout p { font-family: var(--utility); font-size: 16px; line-height: 1.6; margin: 0; color: var(--ink-2); }
.article-lead { font-family: var(--utility); font-size: clamp(20px, 1.9vw, 23px) !important; line-height: 1.45 !important; color: var(--ink) !important; }
.article-lead::first-letter { float: left; font-size: 3.3em; line-height: 0.8; padding: 0.05em 0.1em 0 0; font-family: var(--display); font-weight: var(--wght-hero); color: var(--mulberry); }

/* ---------- Contact form ------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: var(--utility); font-size: 16px; color: var(--ink);
  background: var(--paper-lift); border: 1px solid var(--rule);
  padding: 13px 14px; border-radius: 0; min-height: 48px; width: 100%;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--mulberry); outline-offset: 1px; border-color: var(--mulberry); }
.field .hint { font-size: 13px; color: var(--ink-3); }
.form-note { font-size: 14px; color: var(--ink-2); margin-top: var(--sp-2); }
.form-status { font-size: 15px; color: var(--pine); font-weight: 600; margin-top: var(--sp-2); }

.map-plate { aspect-ratio: 3 / 2; background: var(--paper-lift); border: 1px solid var(--rule); position: relative; overflow: hidden; }
.map-plate svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   Motion, the page assembles like a press sheet.
   Every start state is gated behind html.js so a JS failure leaves content
   fully visible, and every one resolves to static under reduced motion.
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal { transition: opacity 620ms var(--ease), transform 620ms var(--ease); }
.js .reveal-group > * { opacity: 0; transform: translateY(18px); transition: opacity 560ms var(--ease), transform 560ms var(--ease); }
.js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .reveal-group.is-in > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: 70ms; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal-group.is-in > *:nth-child(6) { transition-delay: 350ms; }
.js .reveal-group.is-in > *:nth-child(7) { transition-delay: 420ms; }
.js .reveal-group.is-in > *:nth-child(8) { transition-delay: 490ms; }

/* Page-load overture. Same rule: only armed when JS is running. */
.js .overture .masthead-in > * { opacity: 0; transform: translateY(-10px); }
.js .overture .cover-meta, .js .overture .cover-lede,
.js .overture .cover-actions, .js .overture .coverlines,
.js .overture .cover-stamp { opacity: 0; transform: translateY(14px); }
.js .overture .cover h1 .line > span { transform: translateY(105%); }
.js .overture .cover-plate .plate img { transform: translateY(26px) scale(1.14); }
.js .overture .masthead { border-bottom-color: transparent; }

.js .curtain-up .masthead-in > *,
.js .curtain-up .cover-meta, .js .curtain-up .cover-lede,
.js .curtain-up .cover-actions, .js .curtain-up .coverlines,
.js .curtain-up .cover-stamp { opacity: 1; transform: none; }
.js .curtain-up .cover h1 .line > span { transform: none; }
.js .curtain-up .cover-plate .plate img { transform: translateY(0) scale(1.06); }

.js .curtain-up .masthead { transition: border-color 500ms 250ms var(--ease); border-bottom-color: var(--rule); }
.js .curtain-up .masthead-in > * { transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.js .curtain-up .masthead-in > *:nth-child(1) { transition-delay: 120ms; }
.js .curtain-up .masthead-in > *:nth-child(2) { transition-delay: 190ms; }
.js .curtain-up .masthead-in > *:nth-child(3) { transition-delay: 250ms; }
.js .curtain-up .cover h1 .line > span { transition: transform 900ms var(--ease); }
.js .curtain-up .cover h1 .line:nth-child(1) > span { transition-delay: 330ms; }
.js .curtain-up .cover h1 .line:nth-child(2) > span { transition-delay: 420ms; }
.js .curtain-up .cover h1 .line:nth-child(3) > span { transition-delay: 510ms; }
.js .curtain-up .cover-meta { transition: opacity 600ms 260ms var(--ease), transform 600ms 260ms var(--ease); }
.js .curtain-up .cover-lede { transition: opacity 640ms 620ms var(--ease), transform 640ms 620ms var(--ease); }
.js .curtain-up .cover-actions { transition: opacity 640ms 720ms var(--ease), transform 640ms 720ms var(--ease); }
.js .curtain-up .cover-stamp { transition: opacity 640ms 900ms var(--ease), transform 640ms 900ms var(--ease); }
.js .curtain-up .coverlines { transition: opacity 700ms 820ms var(--ease), transform 700ms 820ms var(--ease); }
.js .curtain-up .cover-plate .plate img { transition: transform 1200ms 180ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; transition-delay: 0ms !important;
  }
  .js .reveal, .js .reveal-group > *,
  .js .overture .masthead-in > *, .js .overture .cover-meta, .js .overture .cover-lede,
  .js .overture .cover-actions, .js .overture .coverlines, .js .overture .cover-stamp {
    opacity: 1 !important; transform: none !important;
  }
  .js .overture .cover h1 .line > span { transform: none !important; }
  .js .overture .cover-plate .plate img { transform: scale(1.06) !important; }
  .rail-bar { transform: scaleY(1) !important; }
}

/* ==========================================================================
   Front desk, the chat concierge, dressed as a reply card
   ========================================================================== */
.desk-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 700;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 14px 20px; min-height: 52px;
  background: var(--pine); color: var(--paper-lift); border: 1px solid var(--pine-deep);
  font-family: var(--utility); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 14px 34px rgba(22, 48, 38, 0.24);
  transition: transform 260ms var(--ease), background-color 260ms var(--ease);
}
.desk-launch:hover { transform: translateY(-3px); background: var(--pine-deep); }
.desk-launch .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--oat); }
.desk-launch[aria-expanded="true"] { transform: translateY(6px); opacity: 0; pointer-events: none; }

.desk {
  position: fixed; right: 22px; bottom: 22px; z-index: 710;
  width: min(392px, calc(100vw - 44px)); max-height: min(640px, calc(100vh - 44px));
  display: flex; flex-direction: column;
  background: var(--paper-lift); border: 1px solid var(--ink);
  box-shadow: 0 26px 60px rgba(22, 48, 38, 0.26);
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.desk.is-open { opacity: 1; transform: none; pointer-events: auto; }

.desk-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px; background: var(--pine); color: var(--paper-lift);
}
.desk-head .title { font-family: var(--display); font-size: 19px; font-weight: var(--wght-h); letter-spacing: -0.01em; line-height: 1.1; }
.desk-head .sub { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244, 242, 236, 0.62); }
.desk-close {
  background: none; border: 1px solid rgba(244, 242, 236, 0.35); color: inherit;
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.desk-close:hover { background: rgba(244, 242, 236, 0.14); }

.desk-log {
  flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px;
  scrollbar-width: thin;
}
.desk-msg { max-width: 88%; font-size: 15px; line-height: 1.55; }
.desk-msg .who { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }
.desk-msg.agent { border-left: 2px solid var(--oat); padding-left: 12px; color: var(--ink); }
.desk-msg.you { align-self: flex-end; background: var(--pine); color: var(--paper-lift); padding: 11px 14px; }
.desk-msg.you .who { color: rgba(244, 242, 236, 0.6); }
.desk-msg.note { font-size: 13px; color: var(--mulberry); border-left: 2px solid var(--mulberry); padding-left: 12px; }
.desk-dots { display: inline-flex; gap: 5px; padding-left: 12px; border-left: 2px solid var(--oat); }
.desk-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: deskblink 1.1s infinite; }
.desk-dots i:nth-child(2) { animation-delay: 0.16s; }
.desk-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes deskblink { 0%, 60%, 100% { opacity: 0.28; } 30% { opacity: 1; } }

.desk-prompts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px; }
.desk-prompts[hidden] { display: none; }
.desk-prompts button {
  background: none; border: 1px solid var(--rule); padding: 8px 12px;
  font-size: 12px; letter-spacing: 0.04em; cursor: pointer; color: var(--ink-2);
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.desk-prompts button:hover { border-color: var(--mulberry); color: var(--mulberry); }

.desk-form { display: flex; gap: 0; border-top: 1px solid var(--rule); }
.desk-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: 15px 16px;
  font-family: var(--utility); font-size: 15px; color: var(--ink); min-height: 52px;
}
.desk-form input:focus { outline: 2px solid var(--mulberry); outline-offset: -2px; }
.desk-form button {
  background: var(--ink); color: var(--paper-lift); border: 0; padding: 0 20px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; min-height: 52px;
  transition: background-color 200ms var(--ease);
}
.desk-form button:hover { background: var(--pine); }
.desk-form button:disabled { opacity: 0.45; cursor: not-allowed; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .rail { display: none; }
  body { --rail: 0px; }
}
@media (min-width: 1181px) {
  .masthead-in, main .shell, .foot .shell { padding-left: calc(var(--gut) + var(--rail) - 20px); }
}

@media (max-width: 1020px) {
  :root { --sp-7: 92px; --sp-6: 72px; }
  .cover-grid { grid-template-columns: 1fr; align-items: start; }
  .cover-plate { margin-right: 0; aspect-ratio: 16 / 11; order: -1; margin-bottom: var(--sp-4); }
  .plate-frame::before { content: none; }
  .cover-stamp { left: auto; right: 16px; bottom: 16px; }
  .cover-actions { padding-bottom: var(--sp-4); }
  .spread { grid-template-columns: 1fr; }
  .spread-plate { aspect-ratio: 16 / 10; }
  .backpage-grid, .two-col { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-row { grid-template-columns: 62px minmax(0, 1fr) 34px; }
  .index-desc { display: none; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .masthead.is-menu-open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-lift); border-bottom: 1px solid var(--ink); padding: 8px var(--gut) 22px;
  }
  .masthead.is-menu-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 16px; }
  .masthead.is-menu-open .nav .btn { margin: 16px 0 0; justify-content: center; }
  .sticky-note { position: static; }
}

@media (max-width: 900px) {
  .coverlines { grid-template-columns: 1fr; }
  .coverlines li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .coverlines li:not(:first-child) { padding-left: 0; }
  .letters { grid-template-columns: 1fr; gap: var(--sp-4); }
  .letter { padding: 0; border-left: 0; border-top: 1px solid var(--rule-soft); padding-top: var(--sp-3); }
  .letter:first-child { border-top: 0; padding-top: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-left: 0 !important; }
}

@media (max-width: 760px) {
  :root { --sp-7: 68px; --sp-6: 56px; --sp-5: 44px; }
  body { font-size: 16px; }
  .cover-meta { gap: 12px; }
  .cover-meta .dot { display: none; }
  .coverlines { grid-template-columns: 1fr; }
  .coverlines li { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .coverlines li:not(:first-child) { padding-left: 0; }
  .letters { grid-template-columns: 1fr; gap: var(--sp-4); }
  .letter { padding: 0; border-left: 0; border-top: 1px solid var(--rule-soft); padding-top: var(--sp-3); }
  .letter:first-child { border-top: 0; padding-top: 0; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid div { border-right: 0; border-bottom: 1px solid var(--rule-soft); padding-left: 0 !important; }
  .form-grid { grid-template-columns: 1fr; }
  .journal-row { grid-template-columns: 1fr; }
  .journal-row .plate { aspect-ratio: 16 / 9; }
  .journal-row .meta { text-align: left; }
  .colophon div { grid-template-columns: 1fr; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .section-head { border-bottom-width: 2px; }
  .desk { right: 10px; left: 10px; bottom: 10px; width: auto; max-height: calc(100vh - 20px); }
  .desk-launch { right: 12px; bottom: 12px; }
  .article-body p, .article-body li { font-size: 18px; }
}
