:root {
  --bg: #0e1012;
  --fg: #eceae4;
  --muted: #8a8a86;
  --accent: #c8a040;
  --rule: rgba(236, 234, 228, 0.14);

  --bg-target: var(--bg);
  --fg-target: var(--fg);
  --accent-target: var(--accent);

  --serif: "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shift: 1100ms;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--shift) var(--ease), color var(--shift) var(--ease);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

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

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

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2rem;
  mix-blend-mode: difference;
  color: #f5f5f5;
}

.mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.nav nav { display: flex; gap: 1.4rem; }
.nav nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  transition: opacity 200ms;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav { padding: 1rem 1.2rem; }
  .nav nav { gap: 1rem; }
  .nav nav a { font-size: 0.68rem; letter-spacing: 0.1em; }
}

@media (max-width: 520px) {
  .nav nav { gap: 0.7rem; }
  .nav nav a { font-size: 0.62rem; letter-spacing: 0.06em; }
}
.nav nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 900ms var(--ease) 200ms forwards;
}

.equation {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6.5vw, 6.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.45em;
}

.equation .term,
.equation .result,
.equation .op {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: fadeUp 800ms var(--ease) forwards;
}

.equation .term:nth-of-type(1) { animation-delay: 450ms; }
.equation .op:nth-of-type(1)   { animation-delay: 600ms; }
.equation .term:nth-of-type(2) { animation-delay: 750ms; }
.equation .op:nth-of-type(2)   { animation-delay: 900ms; }
.equation .term:nth-of-type(3) { animation-delay: 1050ms; }
.equation .op:nth-of-type(3)   { animation-delay: 1200ms; }
.equation .term:nth-of-type(4) { animation-delay: 1350ms; }
.equation .op.equals           { animation-delay: 1500ms; }
.equation .result              { animation-delay: 1650ms; }

.equation .term {
  font-style: italic;
  font-weight: 300;
  cursor: pointer;
  transition: color 400ms var(--ease), transform 400ms var(--ease);
  position: relative;
}

.equation .term::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease);
  opacity: 0.5;
}

.equation .term:hover::after { transform: scaleX(1); }
.equation .term:hover { color: var(--accent); }

.equation .op {
  color: var(--muted);
  font-weight: 300;
  font-size: 0.7em;
  font-feature-settings: "tnum";
}

.equation .result {
  font-weight: 600;
  font-style: normal;
}

.byline {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  max-width: 52ch;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 800ms var(--ease) 1900ms forwards;
}

.byline-cue {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-block;
  margin-top: 0.6rem;
  transition: color var(--shift) var(--ease);
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 800ms var(--ease) 2200ms forwards;
}

.scroll-cue .line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateX(-100%);
  animation: slideOver 2.8s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.section-head {
  padding: 6rem 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: baseline;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.section-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: -0.01em;
}

.section-sub {
  grid-column: 2;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- Work ---------- */
.work { padding-bottom: 4rem; }

.piece {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .piece {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .piece:nth-child(even) figure { order: 2; }
}

.piece figure {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
}

.piece figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms var(--ease), filter 800ms var(--ease);
  filter: saturate(0.92) contrast(1.02);
}

.piece:hover figure img { transform: scale(1.03); }

/* Writing still is a 16:9 frame — show the full image, minimal crop */
.piece-writing figure { aspect-ratio: 16 / 9; }

.piece-meta { padding: 0.5rem 0; }

.piece-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.piece h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.6rem;
}

.piece-role {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.4rem;
  transition: color var(--shift) var(--ease);
}

.piece-cast {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.piece-blurb {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 42ch;
  color: var(--fg);
  opacity: 0.85;
}

/* ---------- Poster link (external watch link, no embed) ---------- */
.poster-link {
  display: block;
  overflow: hidden;
}

.poster-link img {
  transition: transform 1400ms var(--ease), filter 800ms var(--ease);
}

.poster-link:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05) brightness(1.05);
}

/* ---------- Film piece (play affordance) ---------- */
.piece-film .film-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.piece-film figure { background: #000; }

.piece-film .film-link img {
  transition: transform 1400ms var(--ease), filter 800ms var(--ease);
}

.piece-film .film-link:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05) brightness(1.05);
}

.piece-film figure {
  aspect-ratio: 2 / 3;
  background: #0a0a0a;
  transition: aspect-ratio 600ms var(--ease);
}

.piece-film figure img { object-fit: cover; }

.piece-film figure.film-playing { aspect-ratio: 16 / 9; }

.piece.piece-film {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .piece.piece-film {
    grid-template-columns: 1fr minmax(0, 380px);
    gap: 4rem;
    align-items: start;
  }
}

/* Landscape film piece — wide stills (not portrait posters like Hold On) */
.piece.piece-film.landscape figure { aspect-ratio: 16 / 9; }

.piece.piece-film.landscape { grid-template-columns: 1fr; }

@media (min-width: 900px) {
  .piece.piece-film.landscape {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ---------- Auto-advancing slideshow ---------- */
.slideshow { position: absolute; inset: 0; width: 100%; height: 100%; }

.piece-film .slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease), transform 1400ms var(--ease), filter 800ms var(--ease);
}

.piece-film .slideshow .slide.is-active { opacity: 1; }

.piece-tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--fg);
  margin: 0.4rem 0 1.2rem;
  letter-spacing: -0.005em;
}

.piece-meta-grid {
  list-style: none;
  margin: 1.2rem 0 1.4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.4rem;
  transition: border-color var(--shift) var(--ease);
}

.piece-meta-grid li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.meta-label {
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.meta-value {
  color: var(--fg);
}

.script-meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.script-category {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.6rem 0 0.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  transition: color var(--shift) var(--ease), border-color var(--shift) var(--ease);
}

.script-category:first-of-type {
  margin-top: 0.8rem;
}

.script-cta {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.script-cta a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
  transition: color var(--shift) var(--ease), opacity 200ms;
}

.script-cta a:hover { opacity: 0.7; }

.xray-platform {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

/* ---------- X-ray inline (inside Writing) ---------- */
.xray-inline {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.xray-brand-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.xray-brand-inline .xray-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.xray-brand-inline .script-title {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.xray-tagline-inline {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

.xray-blurb-inline {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 0;
}

.xray-links-inline {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pitch-card {
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.pitch-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.pitch-card-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: start;
}

@media (min-width: 600px) {
  .pitch-card-inner {
    grid-template-columns: 180px 1fr;
    gap: 1.6rem;
  }
}

.pitch-thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.pitch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pitch-text .script-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.005em;
}

.pitch-tagline {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--fg);
  margin: 0.5rem 0 0.8rem;
}

/* ---------- Screenplay X-ray section ---------- */
.xray {
  padding: 6rem 2rem 4rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.xray .section-head {
  border-top: none;
  padding-top: 0;
}

.xray-head {
  align-items: center;
}

.xray-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  grid-column: 2;
}

.xray-icon {
  width: clamp(72px, 8vw, 110px);
  height: clamp(72px, 8vw, 110px);
  /* Source icon already has rounded corners painted in;
     no CSS rounding needed. */
  object-fit: cover;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  flex-shrink: 0;
}

.xray-brand h2 {
  margin: 0;
}

.xray-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 0 0;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .xray-inner {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.xray-tagline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 36ch;
  margin-bottom: 1.4rem;
}

.xray-blurb {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 52ch;
  color: var(--muted);
}

.xray-links {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.xray-link {
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  color: var(--fg);
  transition: color var(--shift) var(--ease), opacity 200ms;
}

.xray-link:last-child {
  border-bottom: 1px solid var(--rule);
}

.xray-link.primary {
  color: var(--accent);
}

.xray-link:hover { opacity: 0.7; }

@media (max-width: 600px) {
  .xray { padding: 4rem 1.2rem 3rem; }
}

.materials-line {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  line-height: 1.5;
  transition: border-color var(--shift) var(--ease);
}

.materials-line a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  transition: color var(--shift) var(--ease);
}

.contact-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 38ch;
  line-height: 1.5;
  margin-top: -0.6rem;
}

.piece-awards {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.35rem;
  transition: border-color var(--shift) var(--ease);
}

.piece-awards li {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: var(--fg);
  opacity: 0.85;
}

.award-mark {
  color: var(--accent);
  margin-right: 0.5em;
  transition: color var(--shift) var(--ease);
}

.film-iframe-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.film-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.piece-film .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  opacity: 0.85;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: opacity 300ms var(--ease), transform 500ms var(--ease);
}

.piece-film .film-link:hover .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.piece-cta {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.piece-cta a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
  color: var(--accent);
  transition: color var(--shift) var(--ease), opacity 200ms;
}

.piece-cta a:hover { opacity: 0.7; }

/* ---------- For Nara (interlude) ---------- */
.nara {
  padding: 6rem 2rem 5rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.nara-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.nara-eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nara-warning {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.7;
}

.nara-warning p {
  position: relative;
  padding-left: 1.4rem;
}

.nara-warning p::before {
  content: "↓";
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.5;
}

.nara-ask {
  margin-top: 0.6rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--shift) var(--ease), background-color 300ms;
}

.nara-ask strong {
  font-family: var(--sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent);
  transition: color var(--shift) var(--ease);
}

.nara-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.nara-piece {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  max-width: none;
  align-items: start;
}

@media (min-width: 760px) {
  .nara-piece {
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.nara-covers {
  display: grid;
  gap: 1.2rem;
}

.nara-piece .nara-cover {
  margin: 0;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  position: relative;
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  transition: transform 800ms var(--ease);
}

.nara-piece .nara-cover:nth-child(2) {
  transform: rotate(1deg) translateY(0.4rem);
}

.nara-piece:hover .nara-cover:nth-child(1) {
  transform: rotate(-0.6deg) translateY(-4px);
}

.nara-piece:hover .nara-cover:nth-child(2) {
  transform: rotate(1.6deg) translateY(0);
}

.nara-piece .nara-cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none;
  transform: none;
}

.nara-pitch {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  margin-bottom: 1.6rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.nara-piece:hover .nara-cover { transform: translateY(-4px) rotate(-0.6deg); }

.nara-text {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 52ch;
  display: grid;
  gap: 1rem;
}

.nara-lead {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.nara-coda {
  font-style: italic;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1.2rem;
  margin-top: 0.5rem;
  transition: border-color var(--shift) var(--ease);
}

@media (max-width: 600px) {
  .nara { padding: 4rem 1.2rem 3rem; }
}

/* ---------- Approach ---------- */
.approach { padding-bottom: 6rem; }

.approach-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .approach-grid { grid-template-columns: 1fr 1fr; gap: 4rem 6rem; }
  .approach-lead { grid-column: 1 / -1; }
  .approach-tail { grid-column: 1 / -1; }
}

.approach-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
  max-width: 38ch;
}

.defs { display: grid; gap: 1.6rem; }
.defs > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.defs dt {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
  transition: color var(--shift) var(--ease);
}

.defs dd {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
}

.approach-tail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 50ch;
}

/* ---------- Contact (the visible "footer") ---------- */
.contact-section {
  padding: 6rem 2rem 3rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

/* ---------- Piece list (Writing) ---------- */
.piece-list {
  list-style: none;
  margin: 0.6rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.piece-list li {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.4;
  padding-left: 1.6rem;
  position: relative;
  color: var(--fg);
}

.piece-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  transition: color var(--shift) var(--ease);
}

/* ---------- Writing piece: script hierarchy ---------- */
.script {
  margin: 1.2rem 0;
}

.script-primary {
  margin: 1.4rem 0 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

.script-primary .script-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
}

.script-secondary {
  margin: 1rem 0 1.4rem;
}

.script-secondary .script-title {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin-bottom: 0.3rem;
  color: var(--fg);
  opacity: 0.92;
}

.script-logline {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}

.script-list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.45rem;
  transition: border-color var(--shift) var(--ease);
}

.script-list li {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--muted);
}

.script-name {
  font-style: italic;
  color: var(--fg);
}

/* ---------- Escalating warning signs + void ---------- */
.signs {
  background: var(--bg);
  transition: background var(--shift) var(--ease);
  border-top: 1px solid var(--rule);
}

.sign {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.sign-text {
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  max-width: 32ch;
  line-height: 1.5;
}

.sign-octagon {
  display: block;
  margin-bottom: 2rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 4;
  opacity: 0.55;
  transition: opacity 600ms var(--ease);
}

/* Escalating outline octagons → real stop-sign shape at the end, all monochrome */
.sign-1 .sign-octagon { width: 70px; height: 70px; opacity: 0.4; }
.sign-2 .sign-octagon { width: 100px; height: 100px; opacity: 0.55; }
.sign-3 .sign-octagon {
  width: 140px; height: 140px;
  opacity: 0.75;
  stroke-width: 5;
}
.sign-4 .sign-octagon {
  width: 180px; height: 180px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 5;
  opacity: 0.95;
}
.sign-4 .sign-text {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--fg);
  opacity: 0.95;
}

/* Sign 5: a real stop sign — but with the red replaced by black.
   Black-filled octagon, thick white border (the white ring of a real
   stop sign), white STOP text in the middle. */
.sign-5 .sign-octagon {
  width: clamp(220px, 38vw, 360px);
  height: clamp(220px, 38vw, 360px);
  fill: #0a0a0a;
  stroke: #ffffff;
  stroke-width: 5;
  opacity: 1;
  margin-bottom: 0;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
}

.void {
  min-height: 200vh;
}

.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.3;
  max-width: 28ch;
}

.contact-link {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  letter-spacing: -0.015em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  transition: color 400ms var(--ease), text-decoration-color 400ms var(--ease);
  width: fit-content;
}

.contact-link:hover { color: var(--accent); }

.contact-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  transition: border-color var(--shift) var(--ease);
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(0.6em); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideOver {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Mobile tightening ---------- */
@media (max-width: 600px) {
  .nav { padding: 1rem 1.2rem; }
  .hero { padding: 6rem 1.2rem 4rem; }
  .section-head { padding: 4rem 1.2rem 2rem; grid-template-columns: 1fr; }
  .section-sub { grid-column: 1; }
  .piece { padding: 2.5rem 1.2rem; }
  .approach-grid { padding: 1rem 1.2rem 0; }
  footer { padding: 4rem 1.2rem 2rem; }
  .scroll-cue { left: 1.2rem; }
  .defs > div { grid-template-columns: 1fr; gap: 0.4rem; }
}
