/* ─────────────────────────────────────────────────────────────
   Riva Jain — editorial edition
   Archivo (variable width) for display, Newsreader for reading.
   One accent: vermilion. The dot is the recurring mark.
   ───────────────────────────────────────────────────────────── */

:root {
  --paper: #efebe2;
  --paper-2: #e6e1d5;
  --ink: #15130f;
  --mute: #6b655b;
  --rule: rgba(21, 19, 15, 0.2);
  --accent: #ff3d17;
  --accent-ink: #c9300f; /* accent for small text on paper */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 4vw, 64px);
  --measure: 62ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12110e;
    --paper-2: #1b1915;
    --ink: #ece6d9;
    --mute: #9a9285;
    --rule: rgba(236, 230, 217, 0.18);
    --accent: #ff5530;
    --accent-ink: #ff6a48;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12110e;
  --paper-2: #1b1915;
  --ink: #ece6d9;
  --mute: #9a9285;
  --rule: rgba(236, 230, 217, 0.18);
  --accent: #ff5530;
  --accent-ink: #ff6a48;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(17px, 0.45vw + 15px, 21px);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ── the dot ── */
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
}
.dot--sm {
  width: 0.62em;
  height: 0.62em;
  margin: 0 0.35em 0 0;
  vertical-align: -0.04em;
}

/* ── small label voice ── */
.sf-label,
.sec-num,
.entry-side,
.tags,
.bar,
.cat-letter,
.drawer-k,
.colo-col h3,
.fig-cap i,
.so-row,
.now-list li > span {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ─────────── top bar ─────────── */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 14px var(--gutter);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
body.scrolled .bar {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: var(--rule);
}
.bar a {
  text-decoration: none;
}
.bar-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: -0.02em;
}
.bar-mark i {
  font-style: normal;
  color: var(--accent);
  margin-left: 0.02em;
}
.bar-nav {
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 2rem);
}
.bar-nav a {
  position: relative;
  color: var(--mute);
  transition: color 0.2s;
}
.bar-nav a:hover,
.bar-nav a.on {
  color: var(--ink);
}
.bar-nav a::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.bar-nav a.on::before {
  transform: scale(1);
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.theme {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  overflow: hidden;
  position: relative;
}
.theme span {
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--ink);
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 41;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ─────────── masthead ─────────── */
.masthead {
  min-height: min(100svh, 64rem);
  padding: 90px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
}
.mast-name {
  display: flex;
  flex-direction: column;
  line-height: 0.8;
  font-weight: 400;
}
.mast-riva {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  font-size: clamp(7rem, 31vw, 34rem);
  letter-spacing: -0.035em;
  margin-left: -0.04em;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.mast-jain {
  align-self: flex-end;
  font-family: var(--serif);
  font-size: clamp(6rem, 25vw, 28rem);
  letter-spacing: -0.04em;
  margin-top: -0.12em;
  animation: rise 1s 0.12s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.mast-jain em {
  font-weight: 300;
  font-style: italic;
}
.dot--mast {
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.02em;
  animation: pop 0.6s 0.7s cubic-bezier(0.3, 1.8, 0.5, 1) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.25em);
  }
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}

/* ─────────── standfirst ─────────── */
.standfirst {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem var(--gutter);
  padding: clamp(5rem, 12vw, 11rem) var(--gutter);
}
.sf-label {
  grid-column: 1 / span 3;
  color: var(--mute);
}
.num {
  color: var(--accent-ink);
  margin-right: 0.6em;
}
.sf-body {
  grid-column: 4 / span 6;
  max-width: var(--measure);
}
.sf-body p + p {
  margin-top: 1.1em;
}
.sf-body p:first-child {
  font-size: 1.32em;
  line-height: 1.38;
}
.dropcap::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  font-size: 5.1em;
  line-height: 0.78;
  margin: 0.06em 0.08em 0 -0.03em;
  color: var(--accent);
}
.sf-body strong {
  font-weight: 700;
}
mark {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 38%, transparent) 62%);
  color: inherit;
  padding: 0 0.05em;
}
.mark--alt {
  background: none;
  font-style: italic;
  color: var(--accent-ink);
}
.open {
  white-space: nowrap;
  font-style: italic;
}
.open::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.3em;
  vertical-align: 0.06em;
  animation: blink 2.4s infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.sf-links {
  list-style: none;
  padding: 0;
  margin: 2.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.sf-links a,
.ext {
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.35s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.sf-links a:hover,
.ext:hover {
  background-size: 100% 2px;
}
.sf-links a::after {
  content: " ↗";
  color: var(--accent-ink);
}

/* ─────────── now ─────────── */
.now {
  border-block: 1px solid var(--ink);
  background: var(--paper-2);
}
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  width: max-content;
  animation: slide 28s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.marquee-track span:nth-of-type(even) {
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.marquee-track i {
  width: 0.9em;
  height: 0.9em;
  font-size: clamp(2rem, 6vw, 5rem);
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  width: 0.35em;
  height: 0.35em;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
.now-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem var(--gutter);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.now-q {
  grid-column: 1 / span 5;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 70;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.now-q em {
  font-family: var(--serif);
  font-weight: 300;
  text-transform: none;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.now-list {
  grid-column: 7 / span 6;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: now;
}
.now-list li {
  counter-increment: now;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  font-size: 1.15em;
  line-height: 1.35;
}
.now-list li:last-child {
  border-bottom: 1px solid var(--rule);
}
.now-list li > span {
  color: var(--accent-ink);
}
.now-list cite {
  font-style: italic;
}

/* ─────────── generic section ─────────── */
.sec {
  padding: clamp(5rem, 11vw, 10rem) var(--gutter) clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--rule);
}
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.sec-num {
  grid-column: 1 / -1;
  color: var(--accent-ink);
  margin-bottom: 0.8rem;
}
.sec-title {
  grid-column: 1 / -1;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 72;
  text-transform: uppercase;
  font-size: clamp(5rem, 19vw, 19rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  margin-left: -0.05em;
}
.sec-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: -0.05em;
}
.sec-title .dot {
  width: 0.17em;
  height: 0.17em;
}
.sec-dek {
  grid-column: 7 / span 5;
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.35;
  color: var(--mute);
}
.sec-head--right .sec-num,
.sec-head--right .sec-title {
  text-align: right;
}
.sec-head--right .sec-title {
  margin: 0 -0.03em 0 0;
}
.sec-head--right .sec-dek {
  grid-column: 2 / span 5;
}

/* ─────────── work / research rails ─────────── */
.sec-head--sm {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.sec-head--sm .sec-title {
  font-size: clamp(3.6rem, 10vw, 9rem);
}
.sec-head--sm .sec-dek {
  margin-top: 1.4rem;
  font-size: 1.05em;
}
.rail-ctl {
  grid-column: 1 / -1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.sec-head--right .rail-ctl {
  justify-self: start;
}
.rail-count b {
  color: var(--accent-ink);
}
.rail-btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.rail-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.rail-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(30rem, 84vw);
  column-gap: clamp(1.25rem, 3vw, 3rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 1.5rem;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.rail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.entry {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding-top: 1.2rem;
  border-top: 2px solid var(--ink);
}
.entry-side {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--mute);
  margin-bottom: 1.4rem;
}
.entry-idx {
  font-size: 1.5rem;
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--accent);
}
.entry-title {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.3vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.entry-role {
  margin-top: 0.5rem;
  font-style: italic;
  color: var(--accent-ink);
}
.entry-desc {
  margin-top: 1rem;
  line-height: 1.45;
}
.entry-notes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  counter-reset: n;
  font-size: 0.9em;
  line-height: 1.42;
}
.entry-notes li {
  counter-increment: n;
  position: relative;
  padding: 0.6rem 0 0.6rem 1.8rem;
  border-top: 1px dotted var(--rule);
}
.entry-notes li::before {
  content: counter(n, lower-roman) ".";
  position: absolute;
  left: 0;
  top: 0.62rem;
  font-style: italic;
  color: var(--accent-ink);
}
.entry .tags {
  margin-top: auto;
  padding-top: 1.2rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0;
  margin-top: 1.6rem;
  color: var(--mute);
  font-weight: 500;
}
.tags span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 0.7em;
  vertical-align: 0.18em;
}
.ext {
  display: inline-block;
  margin-top: 1.2rem;
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}

/* ─────────── side projects ─────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem var(--gutter);
  align-items: start;
  padding: 1.4rem 0 clamp(3rem, 6vw, 5rem);
  border-top: 2px solid var(--ink);
}
.feature-title {
  margin-top: 1.2rem;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  font-size: clamp(4rem, 10vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.feature-title::after {
  content: "";
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--accent);
}
.feature-desc {
  margin-top: 1.4rem;
  max-width: 40ch;
  font-size: 1.2em;
  line-height: 1.4;
}
.feature-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--rule);
}
.feature-video::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: -0.7rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--accent);
  z-index: 1;
}
.feature-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.rail-wrap > .rail-ctl {
  margin: 0 0 1.4rem;
}

.drawer {
  margin-top: 3rem;
  max-width: 70ch;
  font-size: 1.15em;
  line-height: 1.6;
}
.drawer-k {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--mute);
}
.drawer-i {
  font-style: italic;
}
.drawer-i:not(:last-child)::after {
  content: " ·";
  font-style: normal;
  color: var(--accent);
}
.drawer--sm {
  margin-top: 1.6rem;
  font-size: 1em;
}

/* ─────────── design ─────────── */
.cat {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--ink);
}
.cat-title {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cat-letter {
  font-style: normal;
  color: var(--accent-ink);
  flex: none;
  min-width: 4rem;
}
.cat-lead {
  margin: 1.4rem 0 0 calc(4rem + 1.2rem);
  max-width: var(--measure);
  font-size: 1.15em;
}
.cat > .rail-wrap {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.rail--figs {
  grid-auto-columns: max-content;
  align-items: start;
}
.fig {
  display: block;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: start;
}
.rail--figs .fig-img {
  height: clamp(16rem, 30vw, 27rem);
}
.fig-img {
  display: block;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.fig--tall .fig-img {
  aspect-ratio: 3 / 4;
}
.rail--figs .fig-cap {
  width: 0;
  min-width: 100%;
}
.fig--wide .fig-img {
  aspect-ratio: 16 / 10;
}
.fig--sq .fig-img {
  aspect-ratio: 1;
}
.fig-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), filter 0.4s;
}
.fig-img::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.fig:hover .fig-img img {
  transform: scale(1.04);
}
.fig:hover .fig-img::after {
  transform: scale(1);
}
.fig-cap {
  display: flex;
  gap: 0.7rem;
  align-items: baseline;
  margin-top: 0.75rem;
  font-style: italic;
  font-size: 1.05em;
}
.fig-cap i {
  font-style: normal;
  color: var(--accent-ink);
  flex: none;
}
.fig-cap small {
  font-style: normal;
  font-family: var(--display);
  font-size: 0.7rem;
  color: var(--mute);
}
.cat-notes {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0 var(--gutter);
}
.cat-notes li {
  padding: 1.4rem 0;
  border-top: 1px dotted var(--rule);
}
.cat-notes h4 {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 110;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.cat-notes p {
  margin-top: 0.5rem;
}
.cat-notes .tags {
  margin-top: 0.8rem;
}

/* ─────────── magazine spread ─────────── */
.spread {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.spread-pages {
  display: flex;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  padding: 1.5rem 0 2.5rem;
}
.spread-page {
  position: relative;
  flex: var(--ar, 0.707) 1 0;
  min-width: 0;
  aspect-ratio: var(--ar, 0.707);
  cursor: zoom-in;
  transform: rotate(-1.4deg);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1), box-shadow 0.5s;
}
.spread-page:nth-child(even) {
  transform: translateY(1.8rem) rotate(1.2deg);
}
.spread-page:hover {
  z-index: 2;
  transform: translateY(-0.6rem) rotate(0) scale(1.04);
  box-shadow: 0 30px 50px -24px rgba(0, 0, 0, 0.65);
}
.spread-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-2);
}
.spread-n {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 700;
}
.spread-cap {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, var(--measure));
  gap: 0.4rem var(--gutter);
  align-items: baseline;
}
.spread-cap .fig-cap {
  margin: 0;
}
.spread-cap .tags {
  grid-column: 2;
  margin-top: 0.6rem;
}

/* ─────────── words ─────────── */
.words {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  border-top: 1px solid var(--ink);
}
.word {
  grid-column: span 6;
  position: relative;
  padding: 2.4rem 0 2.8rem 3rem;
  border-bottom: 1px solid var(--rule);
}
.word:nth-child(4n + 1),
.word:nth-child(4n + 4) {
  grid-column: span 7;
}
.word:nth-child(4n + 2),
.word:nth-child(4n + 3) {
  grid-column: span 5;
}
.word-n {
  position: absolute;
  left: 0;
  top: 2.7rem;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
}
.word h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.word p {
  margin-top: 1rem;
  max-width: 48ch;
  font-size: 1.1em;
}

/* ─────────── colophon ─────────── */
.colophon {
  padding: clamp(5rem, 11vw, 10rem) var(--gutter) clamp(3rem, 6vw, 6rem);
}
.colo-grid {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 2.5rem var(--gutter);
  border-top: 1px solid var(--ink);
  padding-top: 2rem;
}
.colo-col h3 {
  color: var(--accent-ink);
  margin-bottom: 1rem;
}
.colo-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.colo-col li {
  padding: 0.75rem 0;
  border-top: 1px dotted var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.35;
}
.colo-col b {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 100;
  font-size: 0.95rem;
}
.colo-col span {
  font-size: 0.95em;
}
.colo-col b + span {
  color: var(--mute);
  font-style: italic;
}

/* ─────────── sign-off ─────────── */
.sign-off {
  padding: clamp(4rem, 10vw, 9rem) var(--gutter) 2.5rem;
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.so-pre {
  display: flex;
  align-items: center;
}
.so-big {
  display: block;
  margin: 1.5rem 0 3rem -0.04em;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(4.5rem, 18vw, 20rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  transition: color 0.3s;
}
.so-big em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  text-transform: none;
}
.so-big .dot {
  transition: transform 0.4s cubic-bezier(0.3, 1.8, 0.5, 1);
}
.so-big:hover {
  color: var(--accent);
}
.so-big:hover .dot {
  transform: scale(1.6);
}
.so-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
}
.so-row a {
  text-decoration: none;
  opacity: 0.75;
}
.so-row a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ─────────── lightbox ─────────── */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop {
  background: var(--ink);
}
.lightbox[open] {
  animation: lb-in 0.45s cubic-bezier(0.2, 0.7, 0.1, 1);
}
@keyframes lb-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
.lb-close {
  position: fixed;
  right: var(--gutter);
  top: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "wdth" 112;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.lb-close span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  font-size: 1.1rem;
}
.lb-inner {
  display: grid;
  grid-template-columns: minmax(0, 30rem) 1fr;
  height: 100%;
}
.lb-text {
  padding: 80px var(--gutter) 2rem;
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}
.lb-kicker {
  display: flex;
  align-items: center;
  color: var(--mute);
}
.lb-text h3 {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-weight: 900;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
}
.lb-desc {
  margin-top: 1.6rem;
  font-size: 1.12em;
}
.lb-desc--quiet {
  font-style: italic;
  color: var(--mute);
}
.lb-strip {
  display: flex;
  gap: 2rem;
  padding: 80px var(--gutter) 2rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-items: stretch;
}
.lb-strip figure {
  margin: 0;
  flex: none;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}
.lb-strip img {
  height: calc(100% - 2rem);
  width: auto;
  max-width: min(80vw, 1100px);
  object-fit: contain;
  background: var(--paper-2);
}
.lb-strip figcaption {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mute);
}

/* ─────────── cursor dot ─────────── */
.cursor-dot {
  position: fixed;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.cursor-dot.live {
  opacity: 1;
}
.cursor-dot.big::after {
  transform: scale(1);
}

/* ─────────── reveal ─────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─────────── responsive ─────────── */
@media (max-width: 1100px) {
  .bar-nav {
    display: none;
  }
  .sf-body {
    grid-column: 3 / -1;
  }
  .sf-label {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 760px) {
  .masthead {
    padding-top: 76px;
    min-height: 82svh;
  }
  .standfirst,
  .now-grid,
  .sec-head,
  .words {
    grid-template-columns: 1fr;
  }
  .sf-label,
  .sf-body,
  .now-q,
  .now-list,
  .sec-dek,
  .sec-head--right .sec-dek,
  .word,
  .word:nth-child(n) {
    grid-column: 1 / -1;
  }
  .now-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .spread-pages {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
  .spread-page {
    flex: none;
    height: 72vw;
    scroll-snap-align: center;
  }
  .spread-cap {
    grid-template-columns: 1fr;
  }
  .spread-cap .tags {
    grid-column: 1;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .rail--figs .fig-img {
    height: 60vw;
  }
  .cat-title {
    flex-direction: column;
    gap: 0.4rem;
  }
  .cat-lead {
    margin-left: 0;
  }
  .word {
    padding-left: 2.4rem;
  }
  .colo-grid {
    grid-template-columns: 1fr;
  }
  .lb-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
  }
  .lb-text {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    overflow: visible;
    padding-top: 70px;
  }
  .lb-strip {
    flex-direction: column;
    padding: 1.5rem var(--gutter) 3rem;
    overflow: visible;
  }
  .lb-strip figure {
    height: auto;
  }
  .lb-strip img {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
}
