/* Jonathan Rewers personal site v20
   Danish simplicity: white, spare, unframed. Blues and greys. */

:root {
  --paper: #FFFFFF;
  --surface: #F3F5F7;
  --ink: #0F172A;
  --ink-on-grey: #475569;
  --rule: #E3E7EB;
  --link: #00799E;
  --ramp: #0090CC;
  --sans-display: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --max: 1120px;
  --gutter: 4vw;
  --portrait-stem: url("assets/portrait/active-1024.webp"); /* fallback only; HTML uses <picture> */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-thickness 200ms ease, color 200ms ease;
}
a:hover { text-decoration-thickness: 2px; }
::selection { background: #D6EEF8; color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--ramp); z-index: 200; pointer-events: none;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, padding 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--rule); padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand {
  font-family: var(--sans-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand span { color: var(--ramp); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.875rem; /* 14px floor */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-on-grey);
  text-decoration: none;
}
.nav-links a:hover { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-links a.is-active { color: var(--ramp); }
.nav-cta {
  border: 1px solid var(--ramp);
  color: var(--link) !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--ramp); color: #fff !important; }
@media (max-width: 900px) { .nav-links { gap: 1rem; flex-wrap: nowrap; } .brand { white-space: nowrap; } .nav-links a { font-size: 0.875rem; } }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Type */
h1, h2, h3 {
  font-family: var(--sans-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h1 em, h2 em { font-style: italic; font-weight: 700; color: var(--ramp); }
.kicker {
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ramp);
  margin-bottom: 0.9rem;
}
.section-lede {
  margin-top: 0.9rem;
  max-width: 40rem;
  color: var(--ink-on-grey);
  font-size: 1.05rem;
}
.placeholder {
  background: #EEF6FA;
  color: var(--link);
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  display: inline;
}

/* Hero: JR at the far left on pure white, the statement set over the couch cushions.
   The cutout figure is a separate top layer, so type can only ever pass behind him. */
.hero { position: relative; background: #FFFFFF; overflow: hidden; }
.hero-stage {
  position: relative;
  height: calc(100svh - 72px); min-height: 620px; max-height: 1000px;
}
.hero-bg, .hero-figure {
  position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none;
  aspect-ratio: 1024 / 765; will-change: transform;
}
.hero-bg img { display: block; height: 100%; width: auto; max-width: none; }
.hero-figure { z-index: 3; pointer-events: none; }
.hero-copy {
  --stage-h: min(max(calc(100svh - 72px), 620px), 1000px);
  --stage-w: calc(var(--stage-h) * 1.3386);
  position: absolute; z-index: 2;
  left: calc(var(--stage-w) * 0.565);
  right: var(--gutter);
  top: 31%;
  will-change: transform;
}
.hero-copy::before { /* very soft wash so type reads cleanly over cushion texture */
  content: ""; position: absolute; inset: -6% -4% -8% -6%; z-index: -1;
  background: radial-gradient(ellipse at 40% 45%, rgba(255,255,255,0.72), rgba(255,255,255,0) 70%);
}
.hero-eyebrow {
  font-family: var(--sans-display); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-on-grey); margin: 0 0 1.2rem;
}
.hero-loc { color: var(--link); }
.hero-sep { margin: 0 0.7em; color: #94A3B8; }
.hero-title {
  font-family: var(--sans-display); font-weight: 800; color: var(--ink);
  font-size: clamp(56px, calc(var(--stage-h) * 0.118), 120px);
  line-height: 0.98; letter-spacing: -0.035em; margin: 0; max-width: none;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.16em; margin-bottom: -0.1em; }
.hero-title .ln > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--ramp); position: relative; }
.hero-sub {
  margin: 1.6rem 0 0; max-width: 30rem; color: var(--ink);
  font-size: 1.125rem; line-height: 1.55;
}
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--sans-display); font-weight: 700; font-size: 1rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; text-decoration: none;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--link); color: #FFFFFF; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,121,158,0.22); }
.btn-arrow { transition: transform 200ms ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-link { font-family: var(--sans-display); font-weight: 700; color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.btn-link:hover { text-decoration-thickness: 2px; }

/* Variant b: lighter, larger, word by word */
.hero[data-hero="b"] .hero-title { font-weight: 700; font-size: clamp(60px, calc(var(--stage-h) * 0.135), 128px); letter-spacing: -0.045em; }
.hero[data-hero="b"] .hero-title em { font-weight: 800; }
/* Variant c: tighter, accent underlined in Ramp */
.hero[data-hero="c"] .hero-title { letter-spacing: -0.04em; }
.hero[data-hero="c"] .hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0.1em; bottom: 0.02em; height: 0.08em;
  background: var(--ramp); transform-origin: left; transform: scaleX(1);
}

/* Load motion (JS adds .is-loading, then .is-in) */
.js .hero.is-loading .hero-eyebrow,
.js .hero.is-loading .hero-sub,
.js .hero.is-loading .hero-actions { opacity: 0; transform: translateY(14px); }
.hero-eyebrow, .hero-sub, .hero-actions { transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.hero.is-in .hero-eyebrow { transition-delay: 100ms; }
.hero.is-in .hero-sub { transition-delay: 700ms; }
.hero.is-in .hero-actions { transition-delay: 850ms; }
.hero-title .ln > span, .hero-title .w { transition: transform 900ms cubic-bezier(.2,.7,.2,1), opacity 900ms ease, filter 900ms ease; }
.js .hero[data-hero="a"].is-loading .hero-title .ln > span { transform: translateY(105%); }
.js .hero[data-hero="b"].is-loading .hero-title .w { opacity: 0; filter: blur(8px); transform: translateY(0.25em); }
.js .hero[data-hero="c"].is-loading .hero-title .ln > span { transform: translateX(12%); opacity: 0; }
.js .hero[data-hero="c"].is-loading .hero-title em::after { transform: scaleX(0); }
.hero[data-hero="c"] .hero-title em::after { transition: transform 700ms cubic-bezier(.2,.7,.2,1) 900ms; }
.hero-title .w { display: inline-block; }
.js .hero.is-loading .hero-figure, .js .hero.is-loading .hero-bg { opacity: 0; }
.hero-figure, .hero-bg { transition: opacity 900ms ease; }

/* Tablet and phone: words in the white above, JR fully visible below on the same ground */
@media (max-width: 899px) {
  .hero-stage { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero-copy { position: relative; left: auto; right: auto; top: auto; order: 0; padding: 2.5rem var(--gutter) 0; }
  .hero-copy::before { display: none; }
  .hero-title, .hero[data-hero="b"] .hero-title { font-size: clamp(48px, 9.5vw, 92px); }
  .hero-bg { position: relative; order: 1; width: 100%; height: auto; margin-top: -4vw; }
  .hero-bg img { width: 100%; height: auto; }
  .hero-figure { top: auto; width: 100%; height: auto; }
}
@media (max-width: 760px) {
  .hero-copy { padding-top: 1.75rem; }
  .hero-title, .hero[data-hero="b"] .hero-title { font-size: clamp(44px, 12.5vw, 64px); }
  .hero-sub { font-size: 1.0625rem; }
  .hero-figure { display: none; }
  .hero-bg { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero { transition: none !important; }
}

/* Meta + stats bands */
.band {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem var(--gutter);
}
.cred-strip {
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-grey);
  line-height: 1.7;
}
.stats {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat-num {
  font-family: var(--sans-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--ramp);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-lab {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  color: var(--ink-on-grey);
  max-width: 14em;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

/* Sections */
.section { padding: 5.5rem var(--gutter); }
.section-surface { background: var(--surface); }
.section + .section { border-top: 1px solid var(--rule); }
.section-surface + .section, .section + .section-surface { border-top: none; }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
.quote-box {
  margin-top: 1.8rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--ramp);
}
.quote-text {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink);
}
.quote-attr {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-on-grey);
}
.about-copy p { margin-bottom: 1.15rem; color: var(--ink); }
.about-copy .creed {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 0.4rem;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Work teaser + portfolios tiles */
.work-teaser {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.2rem;
}
@media (max-width: 960px) { .work-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .work-teaser { grid-template-columns: 1fr; } }

.tile {
  display: block;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: transform 200ms ease;
  will-change: transform;
  appearance: none;
  -webkit-appearance: none;
}
.tile:hover { text-decoration: none; transform: translateY(-2px); }
.tile-media {
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}
.tile:hover .tile-media img { transform: scale(1.02); }
.tile-body { padding: 1rem 0 0.4rem; }
.tile-cat {
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ramp);
}
.tile h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.2rem;
}
.tile p {
  font-size: 0.95rem;
  color: var(--ink-on-grey);
  line-height: 1.5;
}
.tile-years {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-on-grey);
}
.tile .tile-title-link {
  color: var(--ink);
  text-decoration: none;
}
.tile:hover .tile-title-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .tile, .tile-media img, a { transition: none !important; }
  .tile:hover { transform: none; }
  .tile:hover .tile-media img { transform: none; }
}

.filters {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 2rem 0 1.5rem;
}
.filter {
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink-on-grey);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}
.filter:hover { color: var(--link); border-color: var(--link); }
.filter.active {
  background: var(--ramp);
  border-color: var(--ramp);
  color: #0F172A; /* ink on Ramp ~4.98:1 */
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.tile-grid .tile.hide { display: none; }
@media (max-width: 960px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: 1fr; } }

.section-art {
  width: 100%;
  margin: 0 0 2rem;
  background: var(--surface);
}

/* Resume */
.timeline { margin-top: 2.4rem; border-left: 1px solid var(--rule); }
.tl-item { position: relative; padding: 0 0 1.6rem 1.6rem; }
.tl-item::before {
  content: "";
  position: absolute; left: -4px; top: 0.45rem;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ramp);
}
.tl-years {
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ramp);
}
.tl-item h3 { margin: 0.25rem 0 0.15rem; font-size: 1.2rem; }
.tl-org { font-weight: 600; color: var(--ink-on-grey); font-size: 0.95rem; margin-bottom: 0.35rem; }
.tl-item p { color: var(--ink); max-width: 48em; }
.edu {
  margin-top: 2rem;
  background: var(--paper);
  border-top: 2px solid var(--ramp);
  padding: 1.6rem 0 0;
}
.edu h3 { margin-bottom: 0.8rem; }
.edu li {
  list-style: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.edu li:last-child { border-bottom: none; }

/* Academia */
.acad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 2.2rem;
}
.acad-card h3 { margin-bottom: 0.8rem; }
.acad-card li {
  list-style: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.acad-card li:last-child { border-bottom: none; }
.acad-card p { margin-bottom: 0.75rem; color: var(--ink); }
.forthcoming {
  font-family: var(--sans-display);
  font-weight: 700;
  color: var(--ramp);
}
@media (max-width: 860px) { .acad-grid { grid-template-columns: 1fr; } }

/* Selected talks */
.talks { margin-top: 2.8rem; }
.talks-head { margin-bottom: 0.4rem; }
.talks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.talk {
  border-top: 2px solid var(--rule);
  padding-top: 1.1rem;
}
.talk-when {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ramp);
}
.talk h3 { margin: 0.4rem 0; font-size: 1.2rem; }
.talk p { font-size: 0.95rem; color: var(--ink-on-grey); }
.talk .book-link { margin-top: 0.85rem; }
@media (max-width: 960px) { .talks-grid { grid-template-columns: 1fr; } }

/* Writing */
.books {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.book {
  display: block;
  padding: 0 0 1rem;
  text-decoration: none;
  color: inherit;
  border-top: 2px solid var(--rule);
  padding-top: 1.1rem;
  transition: transform 200ms ease;
}
.book:hover { transform: translateY(-2px); text-decoration: none; }
.book-year {
  font-family: var(--sans-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ramp);
}
.book h3 { margin: 0.4rem 0; font-size: 1.2rem; }
.book p { font-size: 0.95rem; color: var(--ink-on-grey); }
.book-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.book:hover .book-link { text-decoration-thickness: 2px; }
@media (max-width: 960px) { .books { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .books { grid-template-columns: 1fr; } }

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 4.5rem var(--gutter) 2.5rem;
}
.footer h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.footer > .wrap > p { margin-top: 0.9rem; color: var(--ink-on-grey); max-width: 38em; }
.foot-links {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem;
}
.foot-links a {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.875rem;
}
.foot-made {
  margin-top: 2.8rem;
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.foot-fine {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  color: var(--ink-on-grey);
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--paper);
  max-width: 640px; width: 100%;
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  border-top: 3px solid var(--ramp);
  max-height: 90vh; overflow: auto;
}
.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: none; font-size: 1.6rem;
  cursor: pointer; color: var(--ink-on-grey); line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-cat {
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ramp);
}
.modal h3 { margin: 0.5rem 0 0.25rem; font-size: 1.6rem; }
.modal-meta { font-size: 0.875rem; font-weight: 700; color: var(--ink-on-grey); margin-bottom: 0.9rem; }
.modal-body { font-size: 1rem; }
.modal-links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.modal-links .ml-label {
  width: 100%;
  font-family: var(--sans-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-on-grey);
}
.modal-links a {
  font-family: var(--sans-display);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
body.static .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Portfolios page header */
.page-hero {
  padding: 3.5rem var(--gutter) 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { max-width: 14em; }
.cta-row { margin-top: 1.6rem; }
.cta-row a {
  font-family: var(--sans-display);
  font-weight: 700;
}

/* r3 hero refinements */
.hero-mark { display: none; }
@media (min-width: 900px) {
  .hero-copy { top: 35%; }
  .hero-copy .hero-eyebrow { display: none; }
  .hero-mark { display: block; position: absolute; z-index: 2; right: var(--gutter); top: 12%;
    font-family: var(--sans-display); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-on-grey); text-align: right; }
  .hero-mark .hero-loc { display: block; margin-bottom: 0.35rem; }
  .hero-mark .hero-sep { display: none; }
}

/* ===== r3 editorial polish ===== */
.placeholder { background: none; color: var(--ink-on-grey); font-family: var(--sans-body); font-weight: 400;
  font-size: 1rem; letter-spacing: 0; padding: 0; border-bottom: 1px dotted #94A3B8; border-radius: 0; }
.nav-links a:not(.nav-cta) { position: relative; padding: 0.3rem 0; transition: color 200ms ease; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ramp); transform: scaleX(0); transform-origin: left; transition: transform 250ms ease; }
.nav-links a:not(.nav-cta):hover { text-decoration: none; color: var(--ink); }
.nav-links a:not(.nav-cta):hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--ink); }
.nav-cta { background: var(--ink); border-color: var(--ink) !important; color: #fff !important; }
.nav-cta:hover { background: var(--link) !important; border-color: var(--link) !important; }

/* Stats with character */
.stats-band { background: #FFFFFF; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 4.5rem var(--gutter) 5rem; }
.stats-kicker { max-width: var(--max); margin: 0 auto 2rem; font-family: var(--sans-display); font-weight: 700;
  font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-on-grey); }
.stats { gap: 0 !important; }
.stat { border-left: 1px solid var(--rule); padding: 0.4rem 1.6rem 0.4rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--sans-display); font-weight: 800; color: var(--ramp) !important;
  font-size: clamp(56px, 6.4vw, 104px) !important; line-height: 0.95; letter-spacing: -0.045em; }
.stat-lab { margin-top: 0.9rem; font-size: 1rem !important; color: var(--ink) !important; max-width: 14em; }
@media (max-width: 760px) { .stat { border-left: 0; padding: 1rem 0; border-top: 1px solid var(--rule); } }

/* Section kickers and leads */
.kicker { color: var(--link) !important; }

/* Selected work teaser: large plates, editorial grid */
.work-teaser { grid-template-columns: repeat(6, 1fr) !important; gap: 3rem 2rem !important; }
.work-teaser .tile { grid-column: span 2; background: none; border: 0; box-shadow: none; }
.work-teaser .tile:nth-child(1) { grid-column: span 4; grid-row: span 2; }
.work-teaser .tile:nth-child(1) .tile-media { aspect-ratio: 4 / 3.1; }
.work-teaser .tile:nth-child(1) h3 { font-size: clamp(28px, 2.6vw, 40px); }
.tile-media { overflow: hidden; border-radius: 6px; background: var(--surface); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: none !important; }
.tile:hover .tile-media img { transform: scale(1.045) !important; }
.tile .tile-title-link { background: linear-gradient(var(--link), var(--link)) 0 100% / 0 2px no-repeat; transition: background-size 300ms ease; }
.tile:hover .tile-title-link { background-size: 100% 2px; color: var(--ink); }
@media (max-width: 960px) { .work-teaser { grid-template-columns: repeat(2, 1fr) !important; }
  .work-teaser .tile, .work-teaser .tile:nth-child(1) { grid-column: span 1; grid-row: auto; }
  .work-teaser .tile:nth-child(1) { grid-column: span 2; } }
@media (max-width: 620px) { .work-teaser { grid-template-columns: 1fr !important; }
  .work-teaser .tile, .work-teaser .tile:nth-child(1) { grid-column: auto; } }

/* Closing contact moment */
.footer { background: var(--ink) !important; color: #E2E8F0; padding-top: 7rem !important; }
.footer .kicker { color: #7DD3FC !important; }
.contact-big { font-family: var(--sans-display); font-weight: 800; color: #FFFFFF;
  font-size: clamp(56px, 9vw, 140px); line-height: 0.95; letter-spacing: -0.045em; margin: 0.6rem 0 1.4rem; }
.contact-big em { font-style: normal; color: #38BDF8; }
.contact-lead .placeholder { color: #CBD5E1; border-bottom-color: #64748B; }
.btn-light { background: #FFFFFF !important; color: var(--ink) !important; margin-top: 0.6rem; }
.btn-light:hover { background: #E0F2FE !important; }
.footer p, .footer .foot-fine { color: #CBD5E1; }
.footer .foot-links a { color: #7DD3FC; }
.footer .foot-links a:hover { color: #FFFFFF; }
.footer .foot-made { color: #FFFFFF; font-family: var(--sans-display); font-weight: 700; }
.footer .contact-big { font-size: clamp(56px, 9vw, 140px); }
.footer > .wrap > p { color: #CBD5E1; }
.page-hero { padding-top: 5rem !important; padding-bottom: 3rem !important; }
.page-hero .kicker, .page-hero p { max-width: 40rem; }
.tile-grid { gap: 3rem 2rem !important; }
.filters button, .filter { transition: background 200ms ease, color 200ms ease; }
@media (min-width: 900px) {
  .hero-title { font-size: min(clamp(56px, calc(var(--stage-h) * 0.118), 120px), calc((100vw - var(--stage-w) * 0.565 - var(--gutter)) / 6.4)); }
  .hero[data-hero="b"] .hero-title { font-size: min(clamp(60px, calc(var(--stage-h) * 0.135), 128px), calc((100vw - var(--stage-w) * 0.565 - var(--gutter)) / 5.6)); }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .hero-copy { top: 31%; }
  .hero-sub { font-size: 1.0625rem; margin-top: 1.1rem; }
  .hero-actions { margin-top: 1.4rem; }
  .hero-mark { top: 8%; }
}
/* teaser: two columns of large plates */
.work-teaser { grid-template-columns: repeat(2, 1fr) !important; gap: 3.5rem 2.5rem !important; }
.work-teaser .tile, .work-teaser .tile:nth-child(1) { grid-column: auto !important; grid-row: auto !important; display: block; }
.work-teaser .tile-media, .work-teaser .tile:nth-child(1) .tile-media { aspect-ratio: 4 / 3; }
.work-teaser .tile h3, .work-teaser .tile:nth-child(1) h3 { font-size: clamp(24px, 2.2vw, 32px); margin-top: 0.4rem; }
@media (max-width: 620px) { .work-teaser { grid-template-columns: 1fr !important; } }

/* r4: sofa runs solid to the right edge and off the bottom edge (extended cushion module, no masks) */
@media (min-width: 900px) {
  .hero-bg { aspect-ratio: 2700 / 712; -webkit-mask-image: none; mask-image: none; }
  .hero-figure { aspect-ratio: 1024 / 712; }
  .hero-copy { --stage-w: calc(var(--stage-h) * 1.4382); }
}
@media (max-width: 899px) { .hero-figure { display: none; } }
@media (min-width: 900px) and (max-width: 1199px) { .hero-copy { top: 42%; } }

/* Hero phrase tightening (Will preview pass, 2026-11-06, at JR's request):
   "Cities are / my medium." — pull the two lines closer together. */
.hero-title { line-height: 0.90; }
.hero-title .ln { padding-bottom: 0.02em; }

/* Hero copy lowered (Will preview pass, 2026-11-06, at JR's request):
   the "Cities are" line sat too close to JR's hand — drop the whole
   statement block down the couch at desktop widths. */
@media (min-width: 900px) { .hero-copy { top: 42%; } }
@media (min-width: 900px) and (max-width: 1279px) { .hero-copy { top: 38%; } }
@media (min-width: 900px) and (max-width: 1199px) { .hero-copy { top: 46%; } }

/* Round-1 accessibility/layout fixes (2026-11-07): focus visibility + modal focus */
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 2px; }
.modal { outline: none; }
.tile:focus-visible, .filter:focus-visible, .btn:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

/* ===== Round-2 corrections (2026-11-07 panel): mobile nav, filters, cred strip ===== */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .875rem; font-weight: 700; color: var(--ink); cursor: pointer; margin-left: auto; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: .2rem; padding: .6rem 0 .9rem; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.nav-cta) { display: block; padding: .45rem 0; font-size: 1rem; }
  .nav-links .nav-cta { margin-top: .4rem; }
}
.cred-strip { margin-top: 1.1rem; font-size: .95rem; font-weight: 700; color: var(--ink); max-width: 34rem; line-height: 1.5; }
.cred-strip span { display: block; font-weight: 400; color: var(--ink-on-grey); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .15rem; }
.filter-count { margin: .9rem 0 0; font-size: .9rem; color: var(--ink-on-grey); }
.tile-docs { margin-top: .55rem; font-size: .85rem; font-weight: 700; color: var(--link); }
.modal-empty { margin-top: 1.2rem; font-size: .92rem; color: var(--ink-on-grey); border-top: 1px solid var(--rule); padding-top: .9rem; }
.books-subhead { grid-column: 1 / -1; margin: 1.6rem 0 -.4rem; font-size: 1.05rem; }
.stats-note { margin-top: .8rem; font-size: .85rem; color: var(--ink-on-grey); }
.record-links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; font-weight: 700; }
.quote-pause { margin-top: .8rem; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: .3rem .8rem; font: inherit; font-size: .8rem; cursor: pointer; color: var(--ink-on-grey); }

/* ===== Round-3 corrections (2026-11-07 panel): targets, skip link ===== */
.filter { min-height: 44px; padding-left: 1rem; padding-right: 1rem; }
.modal-close { width: 44px; height: 44px; }
.quote-pause { min-height: 40px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--link); padding: .7rem 1.1rem; font-weight: 700; z-index: 200; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* ===== Round 7 (2026-11-22): Griffel structure wins; Haskin improvements =====
   Mattan's discipline stays: first person, numbered sections, plain warm
   headlines, proof compressed, evidence one click deep. Andrew's additions:
   purpose up front, people before systems, one story of the method, and a
   contact route that says what happens next. No new gadgets. */
.proof-band { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 3.4rem 0 3.6rem; }
.proof-kicker { font-family: var(--sans-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-on-grey); margin-bottom: 1.4rem; }
.proof-line { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem 0; }
.proof-line li { padding: 0.2rem 1.2rem; border-left: 1px solid var(--rule); font-size: 1rem; color: var(--ink); }
.proof-line li:first-child { border-left: 0; padding-left: 0; }
.proof-line strong { font-family: var(--sans-display); font-weight: 800; color: var(--ramp); font-size: 1.2rem; margin-right: 0.4rem; letter-spacing: -0.01em; }
.proof-note { margin-top: 1.1rem; max-width: 46rem; font-size: 0.92rem; color: var(--ink-on-grey); }
.start-here { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.5rem; font-family: var(--sans-display); font-weight: 700; }
.start-here span { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-on-grey); }
.start-here a { font-size: 1rem; }
.about-lede { font-family: var(--sans-display); font-weight: 700; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.method { margin-top: 3.4rem; border-top: 1px solid var(--rule); padding-top: 2.2rem; }
.method > h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.method-step { border-top: 2px solid var(--rule); padding-top: 1rem; }
.method-num { font-family: var(--sans-display); font-weight: 800; font-size: 0.875rem; letter-spacing: 0.14em; color: var(--ramp); }
.method-step h4 { font-family: var(--sans-display); font-weight: 700; font-size: 1.12rem; margin: 0.35rem 0 0.45rem; color: var(--ink); }
.method-step p { font-size: 0.98rem; color: var(--ink-on-grey); }
@media (max-width: 860px) { .method-grid { grid-template-columns: 1fr; } .proof-line li { border-left: 0; padding-left: 0; width: 100%; } }
/* Three signature pieces on the homepage; the rest lives in Portfolios */
.work-teaser { grid-template-columns: repeat(3, 1fr) !important; gap: 2.5rem !important; }
@media (max-width: 960px) { .work-teaser { grid-template-columns: 1fr !important; } }

/* ===== Round 8 (2026-11-22): design rebuild after the Webby panel (55-61) =====
   Panel deductions addressed: hero composition/clipping, generic type,
   resume density, repeated headline formula, polish details.
   Type: Fraunces (editorial serif) for display; Inter for text and UI.
   Arial/Helvetica and DM Sans are gone. */
.hero-title, h2, .contact-big { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; }
h1 em, h2 em { color: var(--ink); } /* sections: accent word in ink italic serif; hero and footer keep their colour accents via their own rules */
.hero-title { line-height: 1.04; }
.about-lede { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.42; letter-spacing: -0.005em; }
.tl-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.proof-line strong { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.section { padding-top: 6.75rem; padding-bottom: 6.75rem; }
.quote-pause { border: none; min-height: 0; padding: 0.2rem 0; text-decoration: underline; text-underline-offset: 3px; font-size: 0.78rem; color: var(--ink-on-grey); background: none; }

/* Proof band: a true four-column grid, no ragged wrap */
.proof-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem 1.5rem; }
.proof-line li { border-left: 1px solid var(--rule); padding-left: 1.2rem; }
.proof-line li:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 900px) { .proof-line { grid-template-columns: repeat(2, 1fr); } .proof-line li { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .proof-line { grid-template-columns: 1fr; } }

/* Split hero (desktop): photograph in its own column, copy on clean white.
   Nothing sits on the sofa; nothing clips; every element is visible. */
@media (min-width: 900px) {
  .hero[data-layout="split"] .hero-stage {
    display: grid; grid-template-columns: 52% 48%;
    height: min(94svh, 900px); min-height: 660px; max-height: none;
  }
  .hero[data-layout="split"] .hero-bg {
    position: relative; left: auto; bottom: auto;
    width: 100%; height: 100%; aspect-ratio: auto;
  }
  .hero[data-layout="split"] .hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: 10% 50%;
  }
  .hero[data-layout="split"] .hero-figure { display: none; }
  .hero[data-layout="split"] .hero-mark { display: none; }
  .hero[data-layout="split"] .hero-copy {
    position: relative; left: auto; right: auto; top: auto;
    align-self: center; padding: 3rem 4.5vw 3rem 3.5rem; max-width: 44rem;
  }
  .hero[data-layout="split"] .hero-copy::before { display: none; }
  .hero[data-layout="split"] .hero-copy .hero-eyebrow { display: block; }
  .hero[data-layout="split"] .hero-title {
    font-size: clamp(3.1rem, 4.4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.02em;
  }
  .hero[data-layout="split"] .hero-sub { font-size: 1.13rem; line-height: 1.6; margin-top: 1.5rem; max-width: 32rem; }
  .hero[data-layout="split"] .cred-strip { margin-top: 1.6rem; }
  .hero[data-layout="split"] .hero-actions { margin-top: 2.2rem; }
}
@media (max-width: 760px) {
  .hero-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; }
}

/* ===== Round 9 (2026-11-22): finish pass toward 85+ =====
   Panel round 2 (68-76) deductions addressed: accidental hero crop,
   all-caps credential wall, proof baselines, redundant card labels,
   utility chrome, brochure-level interactivity. */

/* Hero: the photograph becomes a framed plate inside the white field.
   Nothing is cropped by the frame of the page; the crop is the picture's own. */
@media (min-width: 900px) {
  .hero[data-layout="split"] .hero-stage {
    grid-template-columns: 50% 50%;
    height: min(88svh, 840px); min-height: 620px; align-items: center;
  }
  .hero[data-layout="split"] .hero-bg {
    margin: 2.5rem 0 2.5rem 3rem; height: calc(100% - 5rem);
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  }
  .hero[data-layout="split"] .hero-bg img { object-position: 7% 50%; }
  .hero[data-layout="split"] .hero-copy { padding-right: 5vw; }
}

/* Credential block: sentence case, two calm lines, no caps wall */
.hero .cred-strip {
  text-transform: none; letter-spacing: 0; font-weight: 600;
  font-size: 1.05rem; line-height: 1.55; color: var(--ink);
}
.hero .cred-strip span {
  display: block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-on-grey);
  margin-bottom: 0.3rem;
}

/* Proof grid: figure on its own line, label beneath, baselines aligned */
.proof-line li { display: flex; flex-direction: column; gap: 0.2rem; }
.proof-line strong { white-space: nowrap; font-size: 1.3rem; }

/* Seeing the City Whole explorer */
.whole { margin-top: 3rem; border-top: 1px solid var(--rule); padding-top: 2.2rem; }
.whole-title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.whole-lede { margin-top: 0.5rem; color: var(--ink-on-grey); max-width: 38rem; }
.whole-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.3rem; }
.whole-chip {
  font-family: var(--sans-display); font-size: 0.95rem; font-weight: 600;
  background: transparent; color: var(--ink); border: 1px solid var(--rule);
  padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer; min-height: 44px;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.whole-chip:hover { border-color: var(--link); color: var(--link); }
.whole-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.whole-panel {
  margin-top: 1.3rem; max-width: 44rem; font-size: 1.08rem; line-height: 1.6;
  border-left: 2px solid var(--ramp); padding-left: 1.2rem; color: var(--ink);
}
.whole-panel strong { font-family: var(--serif); font-weight: 600; }

/* Contact form (dark footer) */
.contact-form {
  margin-top: 1.6rem; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem 1.4rem; max-width: 44rem;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--sans-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #7DD3FC;
}
.contact-form input, .contact-form select {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: #fff; border: 1px solid transparent;
  border-radius: 8px; padding: 0.7rem 0.9rem; min-height: 48px; width: 100%;
}
.contact-form input:focus, .contact-form select:focus { outline: 3px solid #38BDF8; outline-offset: 1px; }
.contact-form .btn { justify-self: start; }
.contact-form .form-note { grid-column: 1 / -1; font-size: 0.88rem; color: #94A3B8; margin-top: 0; }
@media (max-width: 640px) { .contact-form { grid-template-columns: 1fr; } }

/* ===== Round 10 (2026-11-22): the sign-off pass =====
   Round 3 (79-82) deductions addressed: plate crowding the copy,
   half-empty contact section, duplicated card labels, resume density,
   thin interactive, form missing the problem field. */

/* Hero plate: real breathing room between the frame and the copy */
@media (min-width: 900px) {
  .hero[data-layout="split"] .hero-stage { grid-template-columns: 47% 53%; }
  .hero[data-layout="split"] .hero-bg {
    width: auto;
    margin: 2.5rem 1.5rem 2.5rem 3rem;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  }
  .hero[data-layout="split"] .hero-copy { padding-left: 2.5rem; }
}

/* Contact: form and aside share the dark stage */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem 4rem; align-items: start; margin-top: 0.5rem; }
.contact-form { margin-top: 0; max-width: none; }
.contact-form .form-wide { grid-column: 1 / -1; }
.contact-form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); background: #fff; border: 1px solid transparent;
  border-radius: 8px; padding: 0.7rem 0.9rem; width: 100%; resize: vertical;
}
.contact-form textarea:focus { outline: 3px solid #38BDF8; outline-offset: 1px; }
.contact-form .form-status { grid-column: 1 / -1; font-size: 0.9rem; color: #7DD3FC; margin: 0; }
.contact-form .btn { white-space: nowrap; }
.contact-form .form-status:empty { display: none; }
.contact-aside .aside-title { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; color: #fff; }
.next-steps { list-style: none; counter-reset: step; margin: 1.1rem 0 1.4rem; padding: 0; display: grid; gap: 0.9rem; }
.next-steps li { position: relative; padding-left: 2.4rem; color: #CBD5E1; line-height: 1.55; }
.next-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.05rem; width: 1.7rem; height: 1.7rem;
  border: 1px solid #38BDF8; border-radius: 50%; color: #7DD3FC;
  font-family: var(--sans-display); font-size: 0.85rem; font-weight: 700;
  display: grid; place-items: center;
}
.next-steps strong { color: #fff; }
.contact-aside p { color: #CBD5E1; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Explorer diagram: the systems, drawn */
.whole-diagram { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 1.4rem; }
.whole-diagram .wl { stroke: #CBD5E1; stroke-width: 1.5; transition: stroke 200ms ease, stroke-width 200ms ease; }
.whole-diagram .wl.is-on { stroke: var(--ramp); stroke-width: 3; }
.whole-diagram .wn { cursor: pointer; }
.whole-diagram .wn rect { fill: #fff; stroke: var(--rule); stroke-width: 1.5; transition: fill 200ms ease, stroke 200ms ease, opacity 200ms ease; }
.whole-diagram .wn text { font-family: var(--sans-display); font-size: 16px; font-weight: 600; fill: var(--ink); transition: fill 200ms ease; }
.whole-diagram .wn.is-on rect { fill: var(--ink); stroke: var(--ink); }
.whole-diagram .wn.is-on text { fill: #fff; }
.whole-diagram .wn.is-dim { opacity: 0.45; }

/* Timeline read-more */
.tl-toggle {
  font-family: var(--sans-display); font-size: 0.85rem; font-weight: 700;
  color: var(--link); background: none; border: none; padding: 0.2rem 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 32px;
}

/* Work cards: aligned titles, plates with more presence */
.tile { display: flex; flex-direction: column; }
.tile h3 { min-height: 2.5em; }
.tile-media img, .ph img { filter: contrast(1.07) saturate(1.06); }
.book-cat { color: var(--ink-on-grey); }

/* ===== Round 11 (2026-11-22): the Mattan pass =====
   Resume leaves the homepage; the widget becomes a statement;
   proof is stated once; drafts sit one click down. */

/* One clean left edge in the split hero copy column */
@media (min-width: 900px) {
  .hero[data-layout="split"] .hero-copy > * { margin-left: 0 !important; }
  /* Portrait composed in its plate: a gentle zoom lifts the dead white above the head */
  .hero[data-layout="split"] .hero-bg img { height: 118%; object-position: 8% 24%; }
}

/* Seeing the City Whole, as a statement */
.whole-statement {
  margin-top: 0.9rem; max-width: 46rem;
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.5;
}

/* Resume brief on the homepage */
.resume-brief .tl-item { padding-bottom: 1.1rem; }
.resume-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }

/* Card and book labels are labels, not links */
.tile-cat, .book-cat, .book-year { color: var(--ink-on-grey); }

/* Writing: prototypes one click down */
.books-toggle {
  font-family: var(--sans-display); font-size: 1rem; font-weight: 700; color: var(--ink);
  background: none; border: none; border-top: 1px solid var(--rule);
  padding: 1.1rem 0 0.4rem; margin-top: 1.6rem; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 0.5rem; width: 100%; min-height: 44px;
}
.books-toggle:hover { color: var(--link); }
.books-toggle .btn-arrow { transition: transform 200ms ease; }
.books-toggle.is-open .btn-arrow { transform: rotate(90deg); }
.books-proto { display: contents; }
.books-proto[hidden] { display: none; }

/* ===== Round 12 (2026-11-22): the gate pass =====
   The map returns, quietly, under the sentence that leads it. */
.whole-quiet { max-width: 430px; margin-top: 1.6rem; }
.whole-caption {
  margin-top: 0.7rem; font-family: var(--sans-display);
  font-size: 0.98rem; font-weight: 600; color: var(--ink-on-grey);
}

/* ===== Round 13 (2026-11-22): the Griffel descriptor line ===== */
.descriptor {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.28rem; color: var(--ink); margin-top: 1.5rem;
}

/* ===== Round 13b (2026-11-22): plate delivery ===== */
.tile-media { background: #f4f1ea; }
.tile-media img { animation: plateIn .7s ease both; }
@keyframes plateIn { from { opacity: 0; } to { opacity: 1; } }
.record-links { row-gap: 1rem; }
