/* ==========================================================
   Haley Rowland — portfolio
   Shared styles. Colours/type mirror the Figma file.
   ========================================================== */

:root {
  /* colour */
  --bg: #FBFBF9;
  --ink: #2D2C2A;        /* main text (warm deep grey) */
  --ink-2: #56534E;      /* body text */
  --muted: #8E8B85;      /* small labels */
  --light: #BEBAB3;      /* upcoming chapters */
  --rule: #E2DED7;       /* lines */
  --placeholder: #E7E3DC;
  --orange: #DC5B2A;     /* accent 1: header + section labels */
  --orange-small: #C94E1E; /* accent 1 at tiny sizes */
  --violet: #7065CA;     /* accent 2: projects + process */
  --tint: #EFEDFA;       /* soft violet background */

  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* layout */
  --pad: 32px;
  --header-h: 61px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--pad);
  color: var(--orange);
  position: relative;
  z-index: 30;
  background: var(--bg);
}
.site-header .name { font-size: 16px; font-weight: 500; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a:hover, .site-header .name:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; font-size: 15px; color: var(--orange); }

/* ==========================================================
   HOME — intro pinned left, work one per row (Figma "F4")
   ========================================================== */

.home {
  display: grid;
  grid-template-columns: 520px minmax(0, 1fr);
  padding-bottom: 120px;
}

/* left: you */
.me { padding: 56px var(--pad) 0; }
.me-inner { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 18px; }

.me-trigger { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
.headshot {
  width: 96px; height: 96px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--orange);
}
.hi {
  font-size: 30px; line-height: 1.3;
  text-decoration: underline dotted var(--muted); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s;
}
.me-trigger:hover .hi, .me-trigger[aria-expanded="true"] .hi { text-decoration-color: var(--violet); }
.me-trigger:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; border-radius: 8px; }

.intro-lead { font-size: 30px; line-height: 1.3; margin: 0; font-weight: 400; max-width: 440px; }
.c-orange { color: var(--orange); }
.c-violet { color: var(--violet); }

/* rotating intro words (click to change) */
.swap {
  font: inherit; line-height: inherit; display: inline-block;
  text-decoration: underline dotted transparent; text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s;
}
.swap.c-orange { color: var(--orange); }
.swap.c-violet { color: var(--violet); }
.swap:hover, .swap:focus-visible { text-decoration-color: currentColor; outline: none; }
.swap.flip { animation: swap-in .45s ease; }
@keyframes swap-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: none; }
}
.swap .prep { display: inline-block; text-decoration: inherit; text-underline-offset: inherit; }
.swap .prep.morph { animation: prep-morph .5s ease; }
@keyframes prep-morph {
  from { opacity: 0; filter: blur(3px); }
  to   { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .swap.flip, .swap .prep.morph { animation: none; } }

/* "a little more" card: opens from the photo / "Hi, I'm Haley." */
.me-card {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s ease, opacity .25s ease;
}
.me-card > div { overflow: hidden; }
.me-card.open { grid-template-rows: 1fr; opacity: 1; }
.me-card > div > * { margin: 0; }
.me-card > div {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--tint); border-radius: 14px;
  padding: 0 24px; max-width: 440px;
  transition: padding .35s ease;
}
.me-card.open > div { padding: 22px 24px; }
.me-card .label { color: var(--violet); }
.me-card p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.me-card .edu { font-family: var(--mono); font-size: 12px; line-height: 1.55; color: var(--ink-2); }
.me-photos { position: relative; height: 150px; width: 316px; margin: 4px auto 6px !important; }
.me-photos img {
  position: absolute; top: 8px; width: 104px; height: auto; aspect-ratio: 3/4; object-fit: cover;
  border: 4px solid #fff; border-radius: 3px; box-shadow: 0 2px 10px rgba(45,44,42,.14);
  transform: translateY(12px) rotate(0deg); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.me-photos img:nth-child(1) { left: 0; }
.me-photos img:nth-child(2) { left: 106px; top: 0; z-index: 1; }
.me-photos img:nth-child(3) { left: 212px; top: 12px; }
.me-card.open .me-photos img { opacity: 1; }
.me-card.open .me-photos img:nth-child(1) { transform: rotate(-7deg); transition-delay: .08s; }
.me-card.open .me-photos img:nth-child(2) { transform: rotate(4deg); transition-delay: .14s; }
.me-card.open .me-photos img:nth-child(3) { transform: rotate(-2deg); transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .me-photos img { transition: none; } }
.me-card .currently { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.3; color: var(--ink); }

.me-links { list-style: none; margin: 0; padding: 8px 0 0; display: flex; gap: 20px; font-family: var(--mono); font-size: 12px; color: var(--orange-small); }
.me-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* right: the work */
.work { padding: 56px var(--pad) 0 0; }
.work-label { color: var(--orange-small); font-weight: 400; margin: 0 0 20px; }
.projects { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 32px; }

.project {
  display: grid;
  grid-template-columns: 320px minmax(0, 360px);
  grid-template-areas: "label ." "media more";
  column-gap: 40px; row-gap: 10px;
}
.project-label { grid-area: label; display: flex; align-items: baseline; gap: 12px; }
.project-name { font-size: 15px; transition: color .2s; }
.project-tags { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

.project-media {
  grid-area: media; display: block; position: relative;
  width: 320px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--placeholder);
}
.project-media img, .project-media video { width: 100%; height: 100%; object-fit: cover; }
.project-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.project.playing .project-media video { opacity: 1; }

.project-more {
  grid-area: more; align-self: end;
  display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .25s ease, transform .3s ease;
}
.project-more .one { font-size: 17px; line-height: 1.4; color: var(--ink-2); }
.project-more .view { font-size: 14px; font-weight: 500; color: var(--violet); }

.project:hover .project-name, .project:focus-visible .project-name { color: var(--violet); }
.project:hover .project-more, .project:focus-visible .project-more { opacity: 1; transform: none; }
.project:focus-visible { outline: none; }
.project:focus-visible .project-media { outline: 2px solid var(--violet); outline-offset: 3px; }

/* touch screens: no hover, so always show the one-liner */
@media (hover: none) {
  .project-more { opacity: 1; transform: none; }
}

/* ==========================================================
   PROJECT PAGE
   ========================================================== */

.hero { padding: 16px var(--pad) 0; }
.hero-media {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #111;
  width: min(100%, calc(70vh * 16 / 9));
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }

.project-head {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(240px, 2fr);
  gap: clamp(40px, 5vw, 80px); padding: 48px var(--pad); max-width: 1400px;
}
.project-title { font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.05; margin: 0 0 14px; }
.one-liner { font-size: 19px; line-height: 1.45; margin: 0; }
.meta { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.meta dt { color: var(--orange-small); margin-bottom: 6px; }
.meta dd { margin: 0; font-size: 14px; line-height: 1.45; }

/* story: rail + chapters */
.story {
  display: grid; grid-template-columns: 230px minmax(0, 1fr);
  gap: 72px; padding: 56px var(--pad) 0;
}

.rail { position: sticky; top: 32px; align-self: start; }
.rail-title { color: var(--muted); margin: 0 0 18px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before, .rail-progress {
  content: ""; position: absolute; left: 5px; top: 20px; width: 2px;
}
.rail ol::before { bottom: var(--rail-end, 20px); background: var(--rule); }
.rail-progress { background: var(--violet); height: 0; transition: height .35s ease; }
.rail li a {
  display: flex; align-items: baseline; gap: 0;
  min-height: 40px; position: relative; padding: 10px 0 10px 28px;
  font-size: 15px; line-height: 1.3; color: var(--light);
  transition: color .25s;
}
.rail li a::before { /* node */
  content: ""; position: absolute; left: 6px; top: 20px;
  width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--bg); border: 2px solid var(--rule);
  transition: all .25s;
}
.rail .num { font-family: var(--mono); width: 20px; flex: none; }
.rail li.read a { color: var(--ink-2); }
.rail li.read .num { color: var(--muted); }
.rail li.read a::before { background: var(--violet); border-color: var(--violet); }
.rail li.current a { color: var(--violet); font-weight: 500; }
.rail li.current a::before {
  background: var(--violet); border-color: var(--violet);
  width: 11px; height: 11px;
  box-shadow: 0 0 0 4px rgba(112, 101, 202, .15);
}
.rail li a:hover { color: var(--violet); }
/* sub-headings under a chapter: no dots, smaller, indented to the chapter name */
.rail .rail-subs {
  position: static; margin: 0; max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.rail ol > li.current > .rail-subs { max-height: 260px; opacity: 1; margin: -4px 0 6px; }
.rail .rail-subs::before { content: none; }
.rail .rail-subs li a { min-height: 0; padding: 5px 0 5px 48px; font-size: 13px; font-weight: 400; color: var(--light); }
.rail .rail-subs li a::before { content: none; }
.rail .rail-subs li.read a { color: var(--ink-2); }
.rail .rail-subs li.current a { color: var(--violet); font-weight: 500; }
.rail .rail-subs li a:hover { color: var(--violet); }

.chapter { padding-bottom: 80px; scroll-margin-top: 32px; }
.chapter-label { font-size: 15px; font-weight: 500; color: var(--violet); margin: 0 0 24px; }
.chapter-label .num { font-family: var(--mono); font-weight: 400; margin-right: 12px; }
.headline { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25; margin: 0 0 18px; max-width: 760px; }
.body { max-width: 680px; }
.body p { font-size: 15.5px; line-height: 1.48; color: var(--ink-2); margin: 0 0 14px; }

.media-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; max-width: 680px; }
.media-row video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--placeholder); }

.figure { margin: 24px 0 0; }
.figure img { width: 100%; border-radius: 4px; }
.figure figcaption { margin-top: 0; padding-top: 12px; font-size: 11px; color: var(--muted); }

.placeholder {
  margin-top: 24px; border-radius: 4px; background: var(--placeholder);
  min-height: 380px; position: relative;
}
.placeholder span {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}

.body.lead p { font-size: 19px; line-height: 1.5; color: var(--ink); }
.body ul { margin: 0 0 16px; padding-left: 20px; }
.body li { font-size: 15.5px; line-height: 1.48; color: var(--ink-2); margin-bottom: 4px; }
.body strong, .principles strong { font-weight: 500; color: var(--ink); }

.sub { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 44px 0 12px; max-width: 680px; }
.sub.first { margin-top: 8px; }
/* a lead-in that introduces a featured video: quieter than .sub, louder than body */
.lead-in { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.4; color: var(--ink); max-width: 600px; margin: 36px 0 -4px; }

.media-row figure { margin: 0; }
.media-row.photos img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: none; }
.media-row.photos { max-width: 680px; }
.media-row.stills img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.media-row.portrait video { aspect-ratio: 3 / 4; }
.body ol { margin: 0 0 16px; padding-left: 20px; }
.media-row figcaption { margin-top: 0; padding-top: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.media-row figcaption.label { font-size: 11px; color: var(--muted); }
.media-row figcaption .label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.figure + .body, .media-row + .body, .insights + .pull-quote { margin-top: 24px; }
.figure.wide.roomy { margin-bottom: 40px; }
.figure { max-width: 680px; }
.figure.wide { max-width: 680px; margin: 24px 0; }
.journey-scroll { overflow-x: auto; }
.gestures { list-style: none; margin: 20px 0 0; padding: 0; max-width: 560px; }
.gestures li { display: grid; grid-template-columns: 56px 130px 28px 1fr; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.gestures li:first-child { border-top: 1px solid var(--rule); }
.g-mark { display: flex; gap: 6px; align-items: center; }
.g-mark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--violet); }
.g-mark .line { width: 36px; height: 12px; border-radius: 6px; background: var(--violet); }
.g-name { color: var(--muted); }
.g-arrow { color: var(--muted); }
.g-action { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.jm { display: block; width: 100%; min-width: 600px; height: auto; }
.jm-text text { font-family: var(--sans); font-size: 19px; fill: var(--ink-2); text-anchor: middle; }
.jm-text text.o { fill: var(--orange); font-weight: 500; }
.jm-lines path { fill: none; stroke: var(--muted); stroke-width: 1.4; marker-end: url(#jm-a); }
.jm-lines.o path { stroke: var(--orange); marker-end: url(#jm-ao); }
.jm-head { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.jm-head.o { stroke: var(--orange); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; max-width: 1040px; margin-top: 20px; }
.pair > .figure, .pair > .body { margin: 0; max-width: none; }
.pair > .body p:last-child { margin-bottom: 0; }
.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 680px; margin-top: 20px; }
.figure-pair > .figure { margin: 0; max-width: none; }
.figure + .figure { margin-top: 16px; }

.pull-quote { margin: 24px 0 8px; padding-left: 18px; border-left: 2px solid rgba(112, 101, 202, .35); max-width: 680px; }
.pull-quote p { font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-2); margin: 0 0 6px; }
.pull-quote cite { font-style: normal; font-size: 13px; color: var(--muted); }

.placeholder.short { min-height: 96px; margin: 16px 0 20px; max-width: 680px; }

.principles-head { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; color: var(--muted); margin-top: 16px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); max-width: 680px; }
.principles li { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.principles .t em { display: block; font-family: var(--sans); font-style: normal; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 4px; }

.insights { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; max-width: 680px; }
.insight { padding: 0; }
.insight h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.3; color: var(--violet); margin: 0 0 6px; }
.insight p { font-size: 15.5px; line-height: 1.48; color: var(--ink-2); margin: 0; }

.principles { list-style: none; margin: 8px 0 0; padding: 0; max-width: 680px; }
.principles li { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 12px 0; align-items: baseline; }
.principles .n { font-family: var(--mono); font-size: 13px; color: var(--violet); }
.principles .t { font-family: var(--serif); font-size: 17px; }
.principles .d { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

.process-card { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 40px; padding: 12px 0; margin-top: 12px; }
.process-card img { width: 100%; border-radius: 4px; }
.process-card h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0 0 14px; }
.steps { margin: 0; }
.steps > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; margin-bottom: 14px; }
.steps dt { color: var(--violet); padding-top: 3px; }
.steps dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.next-project {
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--pad) 72px calc(var(--pad) + 230px + 72px);
}
.next-project img { width: 220px; height: 150px; object-fit: cover; border-radius: 4px; }
.next-project .label { color: var(--orange); margin-bottom: 6px; }
.next-project .t { font-family: var(--serif); font-size: 36px; transition: color .2s; }
.next-project:hover .t { color: var(--violet); }

/* ==========================================================
   ABOUT
   ========================================================== */

.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.about {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 640px);
  gap: 80px; padding: 56px var(--pad) 96px; align-items: start;
}
.about-portrait { margin: 0; position: sticky; top: 32px; }
.about-portrait img { width: 100%; height: auto; border-radius: 4px; }
.about-label { color: var(--orange-small); margin: 0 0 16px; }
.about-title { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.22; margin: 0 0 32px; }
.about-bio { font-size: 16px; line-height: 1.375; color: var(--ink-2); }
.about-bio p { margin: 0 0 1em; }
.more-link { font-size: 15px; font-weight: 500; color: var(--violet); }
.more-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about-quote { margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule); }
.about-quote p { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; margin: 0 0 10px; }
.about-quote cite { font-style: normal; color: var(--muted); }

.about-contact { margin-top: 56px; }
.about-contact ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.about-contact a { font-size: 17px; color: var(--violet); }
.about-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* mobile process bar (hidden on desktop) */
.process-bar { display: none; }

/* ==========================================================
   SMALLER SCREENS
   ========================================================== */

@media (max-width: 900px) {
  :root { --pad: 20px; }

  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-nav.open {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--pad) 20px; background: var(--bg);
    box-shadow: 0 10px 20px rgba(45, 44, 42, .06);
  }

  .home { grid-template-columns: 1fr; padding-bottom: 72px; }
  .me { padding: 32px var(--pad) 0; }
  .me-inner { position: static; }
  .hi, .intro-lead { font-size: 24px; }
  .headshot { width: 80px; height: 80px; }
  .work { padding: 48px var(--pad) 0; }
  .projects { gap: 48px; }
  .project { grid-template-columns: 1fr; grid-template-areas: "label" "media" "more"; }
  .project-media { width: 100%; }
  .project-more { opacity: 1; transform: none; padding-top: 4px; }

  .about { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .about-portrait { position: static; max-width: 360px; }
  .about-title { font-size: 28px; }
  .about-bio { font-size: 15px; }
  .about-quote p { font-size: 20px; }

  .project-head { grid-template-columns: 1fr; gap: 32px; padding: 32px var(--pad); }
  .project-title { font-size: 44px; }
  .one-liner { font-size: 19px; }

  .story { display: block; padding-top: 24px; }
  .rail { display: none; }
  .chapter { padding-bottom: 72px; scroll-margin-top: 64px; }
  .headline { font-size: 24px; }
  .body p, .body li { font-size: 15px; }
  .media-row, .insights, .pair, .figure-pair { grid-template-columns: 1fr; }
  .principles li { grid-template-columns: 20px 1fr; }
  .principles-head { display: none; }
  .body.lead p { font-size: 19px; }
  .sub { font-size: 22px; margin-top: 48px; }
  .pull-quote p { font-size: 17px; }
  .principles .d { grid-column: 2; }
  .principles .d::before { content: "→ "; color: var(--violet); }
  .process-card { grid-template-columns: 1fr; gap: 20px; }
  .steps > div { grid-template-columns: 1fr; gap: 4px; }
  .next-project { padding: 0 var(--pad) 56px; gap: 16px; }
  .next-project img { width: 120px; height: 84px; }
  .next-project .t { font-size: 26px; }

  /* sticky process bar */
  .process-bar {
    display: block; position: sticky; top: 0; z-index: 20;
    background: var(--bg);
    box-shadow: 0 6px 14px rgba(45, 44, 42, .07);
  }
  .process-bar-toggle {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 12px var(--pad) 10px; color: var(--violet); font-size: 14px; font-weight: 500;
  }
  .process-bar-toggle .num { font-family: var(--mono); font-weight: 400; }
  .process-bar-toggle .caret { margin-left: auto; transition: transform .2s; }
  .process-bar.open .caret { transform: rotate(180deg); }
  .process-bar-track { height: 2px; background: var(--rule); margin: 0 var(--pad) 10px; }
  .process-bar-fill { height: 100%; width: 0; background: var(--violet); transition: width .3s; }
  .process-bar-list { display: none; list-style: none; margin: 0; padding: 0 var(--pad) 12px; }
  .process-bar.open .process-bar-list { display: block; }
  .process-bar-list a { display: flex; gap: 14px; align-items: center; padding: 7px 10px; border-radius: 10px; color: var(--light); font-size: 15px; }
  .process-bar-list a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--rule); background: var(--bg); flex: none; box-sizing: border-box; }
  .process-bar-list .num { font-family: var(--mono); width: 14px; }
  .process-bar-list li.read a { color: var(--ink-2); }
  .process-bar-list li.read a::before, .process-bar-list li.current a::before { background: var(--violet); border-color: var(--violet); }
  .process-bar-list li.current a { background: var(--tint); color: var(--violet); font-weight: 500; }
  .scrim { position: fixed; inset: 0; background: rgba(45, 44, 42, .12); z-index: 15; display: none; }
  .scrim.open { display: block; }
}

/* project page: embedded film + simple system diagrams */
.hero-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sys { display: block; width: 100%; height: auto; }
.sys-box rect { fill: var(--bg); stroke: var(--rule); stroke-width: 1.2; }
.sys-box rect.hub { stroke: var(--violet); stroke-width: 1.6; }
.sys-text text { font-family: var(--sans); font-size: 13px; fill: var(--ink-2); text-anchor: middle; }
.sys-text text.s { font-size: 11px; fill: var(--muted); }
.sys-text text.hub { fill: var(--violet); font-weight: 500; }
.sys-lines path { fill: none; stroke: var(--muted); stroke-width: 1.2; marker-end: url(#sys-a); }
.sys-head { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.figure.wide.narrow { max-width: 440px; }
.media-row.two { grid-template-columns: repeat(2, 1fr); }
.figure video { display: block; width: 100%; border-radius: 4px; background: var(--placeholder); }
.figure-pair + .body { margin-top: 28px; }
.figure-pair > .figure + .figure { margin-top: 0; }
/* cut-out objects (no background): same box, contained, no rounding */
.figure-pair.cutouts img { aspect-ratio: 4 / 3; object-fit: contain; border-radius: 0; }
/* uneven split: wide photo + narrow tall image, same height (Haley's mock: 461 / 210) */
.figure.split .split-row { display: grid; grid-template-columns: 461fr 210fr; gap: 10px; aspect-ratio: 680 / 383; }
.figure.split .split-row img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.figure.split .split-row img.paper { border: 1px solid var(--rule); }
.figure.triptych .media-row { margin-top: 0; gap: 10px; }

/* separator before Next project: violet hairline across the text column */
.next-project { position: relative; padding-top: 56px; padding-bottom: 32px; }
.next-project::before {
  content: ""; position: absolute; top: 0; height: 1px; background: var(--violet);
  left: calc(var(--pad) + 230px + 72px);
  width: min(680px, calc(100% - var(--pad) - 230px - 72px - var(--pad)));
}
.back-home { margin: 0; padding: 0 var(--pad) 72px calc(var(--pad) + 230px + 72px); font-family: var(--mono); font-size: 12px; }
.back-home a { color: var(--orange-small); }
.back-home a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) {
  .next-project { padding-top: 40px; padding-bottom: 24px; }
  .next-project::before { left: var(--pad); width: calc(100% - 2 * var(--pad)); }
  .back-home { padding: 0 var(--pad) 56px; }
}

/* light-background animations: a hairline frame so they don't float on the page */
.figure.framed video, .figure.framed img { border: 1px solid var(--rule); }

/* a quiet footnote hanging off the paragraph above */
.footnote { max-width: 600px; margin: 4px 0 32px; padding: 2px 0 2px 16px; border-left: 2px solid var(--violet); }
.footnote h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; line-height: 1.4; margin: 0 0 4px; color: var(--ink); }
.footnote p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* 16:9 video embeds inside a figure */
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
