:root {
  --paper: #f2f0ea;
  --ink: #171915;
  --muted: #5c6058;
  --red: #e43535;
  --line: #d6d7ce;
  --surface: #e9e9e0;
  --sage: #79988b;
  --gutter: clamp(24px, 4vw, 72px);
  --header-height: 100px;
  color-scheme: light;
}
:root[data-time="night"] {
  --paper: #080a08;
  --ink: #f6f0df;
  --muted: #b4b7a9;
  --line: #30362e;
  --surface: #141a14;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 30px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 'Instrument Sans', sans-serif; -webkit-font-smoothing: antialiased; transition: background-color .45s, color .45s; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-family: 'Lora', serif; font-weight: 400; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(54px, 5.7vw, 86px); }
h2 { font-size: clamp(36px, 3.6vw, 54px); }
h3 { font-size: 28px; }
em { font-weight: inherit; }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; font-family: 'Lora', serif; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a, button { outline-offset: 6px; }
:focus-visible { outline: 2px solid var(--red); }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - var(--gutter) * 2, 1280px); margin-inline: auto; }
.eyebrow, .micro, .section-index { font: 10px/1.6 'IBM Plex Mono', monospace; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { margin-bottom: 24px; }
.muted, .micro { color: var(--muted); }
.lead { max-width: 430px; font-size: 17px; line-height: 1.75; color: var(--muted); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: var(--gutter); padding: 10px 16px; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.pill { font-family: 'Lora', serif; display: inline-flex; justify-content: center; align-items: center; gap: 24px; padding: 15px 28px; min-height: 52px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; line-height: 1.35; text-decoration: none; white-space: nowrap; background: transparent; transition: background .2s, color .2s, transform .2s; }
.pill:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.pill .arrow { font-size: 19px; line-height: 1; }
.pill-primary { background: var(--red); border-color: var(--red); color: #fff; }
.pill-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 13px; text-decoration: none; padding-block: 10px; border-bottom: 1px solid var(--line); }
.text-link:hover { border-color: var(--ink); }
.theme-switch { display: grid; place-items: center; width: 36px; height: 40px; border: 0; padding: 0; background: transparent; border-radius: 50%; }
.celestial { display: block; width: 19px; height: 19px; border-radius: 50%; background: #ffcb7d; transition: background .4s, box-shadow .4s; }
[data-time="night"] .celestial { background: radial-gradient(circle at 36% 34%,#d9d4c4 0 9%,transparent 10%),radial-gradient(circle at 65% 65%,#e5dfcd 0 13%,transparent 14%),#f6f0df; box-shadow: 0 0 20px #f6f0df30; }

.residency-hero { padding-top: var(--header-height); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 5%; min-height: min(920px,100svh); }
.hero-copy { padding-block: 60px 95px; position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 35px; }
.house-stage { position: relative; min-height: 580px; height: min(720px,calc(100svh - 120px)); display: flex; align-items: center; justify-content: center; padding: 65px 4px 70px; }
.house-stage::after { content: ''; position: absolute; bottom: 65px; width: 90%; height: 28px; border-radius: 50%; background: radial-gradient(ellipse,#64706028,transparent 69%); }
.house-link { display: block; position: relative; z-index: 1; height: 100%; width: 100%; max-width: 450px; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.house-link:hover { transform: translateY(-5px); }
.house-art { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: opacity .65s; }
.house-night { position: absolute; inset: 0; opacity: 0; }
[data-time="night"] .house-day { opacity: 0; }
[data-time="night"] .house-night { opacity: 1; }
.house-caption { position: absolute; bottom: 25px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.house-caption a { font-size: 12px; text-decoration: none; }
.stage-sun { position: absolute; right: 3%; top: 4%; width: 54px; height: 54px; }
.stage-sun .celestial { width: 44px; height: 44px; }
.cloud { position: absolute; width: 46px; height: 10px; border-radius: 50%; background: #d8d9cc; opacity: .7; top: 18%; left: 0; box-shadow: inset 0 -3px 4px #afb8a940; }
.cloud::before, .cloud::after { content: ''; position: absolute; bottom: 3px; border-radius: 50%; background: inherit; }
.cloud::before { width: 24px; height: 14px; left: 7px; }
.cloud::after { width: 17px; height: 10px; right: 5px; }
[data-time="night"] .cloud { opacity: .12; }
.chapter-nav { display: flex; gap: 36px; align-items: center; border-block: 1px solid var(--line); padding: 20px 0; }
.chapter-nav a { display: flex; gap: 15px; text-decoration: none; font-size: 12px; }
.chapter-nav a:hover { color: var(--red); }
.chapter-nav span { font: 10px/1.7 'IBM Plex Mono',monospace; color: var(--muted); }
.chapter-nav .chapter-location { margin-left: auto; }
.editorial-section { padding-block: clamp(72px,8vw,124px); scroll-margin-top: 25px; }
.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 9%; margin-bottom: 50px; align-items: start; }
.section-heading .section-index { padding-top: 9px; }
.section-heading h2 { max-width: 680px; }
.section-heading .lead { margin-top: 24px; max-width: 610px; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 65px; }
.fact { padding: 26px 30px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact-number { font: 400 clamp(46px,4.6vw,68px)/1.15 'Lora',serif; letter-spacing: -.06em; }
.fact p:last-child { margin-top: 15px; color: var(--muted); font-size: 14px; }
.life-section { background: var(--surface); transition: background-color .45s; }
.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; align-items: center; }
.life-copy h2 { margin-bottom: 26px; }
.life-copy .lead { margin-bottom: 34px; }
.included-list { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; font-size: 13px; }
.included-list li::before { content: '↗'; margin-right: 10px; color: var(--sage); }
.portrait-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.portrait-grid figure:nth-child(2) { padding-top: 54px; }
.portrait-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 40%; }
.portrait-grid figcaption { display: flex; justify-content: space-between; font-size: 11px; margin-top: 12px; }
.life-copy .text-link { margin-top: 30px; }
.phase-list { border-top: 1px solid var(--line); }
.phase { display: grid; grid-template-columns: 1fr 2fr; gap: 9%; padding: 36px 0; border-bottom: 1px solid var(--line); }
.phase-title { display: flex; gap: 18px; align-items: baseline; }
.phase-title .micro { white-space: nowrap; }
.phase-title h3 { font-size: 26px; }
.phase p { max-width: 640px; color: var(--muted); font-size: 15px; }
.phase p strong { color: var(--ink); font-weight: 500; }
.closing { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 20px 0 90px; }
.closing h2 { max-width: 700px; }
.closing .eyebrow { margin-bottom: 18px; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 11px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.application-hero { padding-top: calc(var(--header-height) + 100px); padding-bottom: 92px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 11%; }
.application-intro h1 { margin-bottom: 30px; }
.application-intro .lead { max-width: 405px; }
.application-intro .micro { margin-top: 38px; display: flex; align-items: center; gap: 9px; }
.location-dot { display: inline-block; height: 5px; width: 5px; background: var(--sage); border-radius: 50%; }
.cohort-list { padding-top: 3px; }
.cohort-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 22px; }
.cohort-heading h2 { font: 10px/1.6 'IBM Plex Mono',monospace; letter-spacing: .1em; text-transform: uppercase; }
.cohort { border-top: 1px solid var(--line); padding: 29px 0 33px; }
.cohort-top { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 10px; }
.cohort h3 { font-size: clamp(36px,3.2vw,48px); }
.cohort h3 span { color: var(--muted); }
.cohort-date { font: 10px/1.6 'IBM Plex Mono',monospace; text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.cohort-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 29px; }
.cohort-deadline { font-size: 12px; color: var(--muted); }
.cohort-deadline span { display: block; margin-top: 3px; color: var(--ink); }
.cohort .pill { min-width: 132px; }
.cohort:last-child { border-bottom: 1px solid var(--line); }
.cohort-note { color: var(--muted); font-size: 12px; padding-top: 18px; }
.process-section { border-top: 1px solid var(--line); padding-top: 65px; }
.process-heading { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 48px; }
.process-heading h2 { font-size: 43px; }
.process-heading p { max-width: 320px; font-size: 14px; color: var(--muted); }
.process-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 45px; list-style: none; padding: 0; }
.process-step { border-top: 1px solid var(--line); padding-top: 18px; }
.step-number { font: 11px/1.6 'IBM Plex Mono',monospace; color: var(--red); }
.process-step h3 { font-size: 29px; margin-top: 29px; margin-bottom: 17px; }
.process-step p { color: var(--muted); font-size: 14px; max-width: 285px; }
.before-apply { display: grid; grid-template-columns: 1fr 1.05fr; gap: 11%; padding-block: 85px 65px; }
.before-apply h2 { font-size: 38px; margin-bottom: 22px; }
.before-apply .lead { font-size: 15px; max-width: 340px; }
.before-apply .text-link { margin-top: 22px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 24px; font-size: 16px; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: '+'; font-size: 23px; font-weight: 400; }
.questions details[open] summary::after { content: '−'; }
.questions details p { color: var(--muted); font-size: 14px; padding: 0 34px 25px 0; }
.inline-button { border: 0; padding: 0; color: inherit; background: none; text-decoration: underline; text-underline-offset: 5px; }
.city-signoff { position: relative; height: clamp(145px,17vw,255px); overflow: hidden; margin-top: 0; mask-image: linear-gradient(transparent,#000 28%); }
.city-signoff img { width: 100%; height: 100%; object-fit: cover; object-position: right bottom; transition: opacity .6s; }
.city-signoff .city-night { position: absolute; inset: 0; opacity: 0; }
[data-time="night"] .city-signoff .city-day { opacity: 0; }
[data-time="night"] .city-signoff .city-night { opacity: 1; }
.apply-page .site-footer { border-top: 0; }
/* The guide remains available without a floating prompt competing with the page. */
body .bh-root { --bh-paper: var(--paper); --bh-ink: var(--ink); --bh-red: var(--red); right: 24px; bottom: 24px; }
body .bh-root .bh-nudge { display: none; }
body .bh-root .bh-launcher { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: none; }
body .bh-root .bh-launcher:hover { background: var(--surface); }
body .bh-root .bh-panel { max-height: calc(100dvh - 110px); }
@media (min-width: 1600px) { .residency-hero { min-height: 900px; } }
@media (max-width: 1050px) {
  .residency-hero { gap: 2%; grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 64px; }
  .house-stage { min-height: 520px; height: 640px; }
  .hero-actions { gap: 14px; }
  .section-heading, .phase { grid-template-columns: .7fr 1.5fr; gap: 6%; }
  .life-grid { gap: 6%; }
  .application-hero, .before-apply { gap: 7%; }
  .cohort-top { align-items: start; }
  .cohort-date { max-width: 95px; }
  .cohort-bottom { flex-wrap: wrap; align-items: center; }
  .process-list { gap: 28px; }
}
@media (max-width: 760px) {
  :root { --gutter: 24px; --header-height: 80px; }


  .theme-switch { width: 28px; }
  h1, .hero-copy h1 { font-size: clamp(46px,8.5vw,64px); }
  h2 { font-size: 36px; }
  .eyebrow { margin-bottom: 20px; font-size: 9px; }
  .residency-hero { display: flex; flex-direction: column; min-height: 0; gap: 0; align-items: stretch; }
  .hero-copy { text-align: center; padding: 50px 0 20px; }
  .hero-copy h1 { margin-bottom: 23px; }
  .hero-copy .lead { margin-inline: auto; font-size: 15px; max-width: 380px; }
  .hero-actions { justify-content: center; margin-top: 25px; gap: 18px; }
  .hero-actions .text-link { display: none; }
  .house-stage { height: 500px; min-height: 0; width: min(100%,430px); margin-inline: auto; padding-top: 35px; }
  .house-link { max-width: 295px; }
  .house-caption { bottom: 14px; }
  .house-caption .micro { font-size: 8px; }
  .stage-sun { top: 6%; right: 0; width: 44px; }
  .stage-sun .celestial { width: 32px; height: 32px; }
  .cloud { left: 0; top: 30%; width: 35px; }
  .chapter-nav { gap: 20px; padding-block: 18px; justify-content: space-between; }
  .chapter-nav a { font-size: 10px; gap: 7px; }
  .chapter-nav .chapter-location { display: none; }
  .section-heading, .phase { display: block; }
  .section-heading { margin-bottom: 35px; }
  .section-heading .section-index { margin-bottom: 20px; padding: 0; }
  .section-heading .lead { font-size: 15px; }
  .facts { margin-top: 40px; }
  .fact { padding: 18px 14px 0; }
  .fact-number { font-size: 43px; }
  .fact p:last-child { font-size: 12px; margin-top: 12px; }
  .life-grid { display: flex; flex-direction: column; gap: 45px; align-items: stretch; }
  .life-copy .lead { font-size: 15px; max-width: 480px; }
  .portrait-grid { max-width: 530px; gap: 16px; }
  .phase { padding-block: 27px; }
  .phase-title { margin-bottom: 17px; }
  .phase p { font-size: 14px; }
  .closing { flex-direction: column; align-items: start; padding-bottom: 65px; }
  .closing h2 { font-size: 39px; }
  .application-hero { padding-top: 135px; padding-bottom: 52px; grid-template-columns: 1fr; gap: 54px; }
  .application-intro h1 { margin-bottom: 24px; }
  .application-intro .lead { font-size: 15px; }
  .application-intro .micro { margin-top: 24px; }
  .cohort-heading { padding-bottom: 19px; }
  .cohort { padding-block: 26px; }
  .cohort h3 { font-size: 40px; }
  .cohort-top { align-items: center; }
  .cohort-date { max-width: 130px; font-size: 9px; }
  .cohort-bottom { flex-wrap: nowrap; gap: 15px; margin-top: 23px; }
  .cohort .pill { font-size: 12px; padding: 12px 18px; min-width: 120px; gap: 14px; }
  .cohort-deadline { font-size: 11px; }
  .process-section { padding-top: 48px; }
  .process-heading { display: block; margin-bottom: 32px; }
  .process-heading h2 { font-size: 36px; }
  .process-heading p { margin-top: 20px; }
  .process-list { grid-template-columns: 1fr; gap: 29px; }
  .process-step { display: grid; grid-template-columns: 32px 1fr; gap: 4px 14px; }
  .step-number { grid-row: 1 / 3; padding-top: 6px; }
  .process-step h3 { margin: 0 0 8px; font-size: 28px; }
  .process-step p { grid-column: 2; max-width: none; }
  .before-apply { grid-template-columns: 1fr; gap: 35px; padding-top: 65px; padding-bottom: 40px; }
  .before-apply h2 { font-size: 35px; }
  .before-apply .text-link { margin-top: 13px; }
  .questions summary { font-size: 15px; padding-block: 20px; }
  .city-signoff { height: 155px; }
  .site-footer { align-items: start; flex-direction: column; gap: 14px; padding: 25px 0 65px; }
  body .bh-root { right: 20px; bottom: 20px; }
}
@media (max-width: 370px) {
  :root { --gutter: 20px; }

  .hero-copy h1 { font-size: 44px; }
  .cohort h3 { font-size: 34px; }
  .cohort-date { max-width: 95px; }
  .cohort .pill { padding: 11px 14px; min-width: 110px; gap: 9px; }
  .fact { padding-inline: 10px; }
  .fact-number { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
