/* =========================================================
   Nina's Gallery: warm & earthy theme
   Change colors here and they update everywhere.
   ========================================================= */
:root {
  --cream: #f7f1e8;
  --oatmeal: #ece2d3;
  --sand: #dccbb2;
  --terracotta: #8f7650;   /* bronze accent (from the logo's gold) */
  --rust: #6f5a3b;         /* deeper bronze */
  --mustard: #c99a3b;
  --sage: #8d9b7c;
  --sage-deep: #5c6a51;
  --ink: #2f2621;
  --muted: #74665c;
  --line: rgba(47, 38, 33, .14);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.35rem; }
h1 em, h2 em, .logo em { font-style: italic; color: var(--terracotta); }
p { margin: 0 0 1em; }
.small { font-size: .85rem; color: var(--muted); }
.muted { color: var(--muted); }
code { font-size: .85em; background: var(--oatmeal); padding: .1em .4em; border-radius: 4px; }

.eyebrow {
  font: 500 .76rem/1.4 var(--sans);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: var(--cream); padding: .5em 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.7em; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--cream);
  font: 500 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { color: var(--cream); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(247,241,232,.7); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.text-link {
  font: 500 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease);
}
a:hover .text-link, .text-link:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(247, 241, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, padding .4s, color .4s;
}
.site-header.scrolled { border-color: var(--line); padding-block: 12px; }
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; color: var(--cream); }
.site-header.over-hero.scrolled { background: rgba(247, 241, 232, .94); color: var(--ink); }
.logo { font: 400 1.55rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; margin: 0; }
.site-header.over-hero:not(.scrolled) .logo em { color: var(--sand); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.site-nav a {
  font: 500 .76rem var(--sans); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: .3em 0; position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current]:not(.nav-cta) { color: var(--terracotta); }
.over-hero:not(.scrolled) .site-nav a[aria-current] { color: inherit; }
.nav-cta { border: 1.5px solid currentColor; border-radius: 999px; padding: .65em 1.3em !important; transition: background .3s, color .3s, border-color .3s; }
.nav-cta:hover, .nav-cta[aria-current] { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; color: inherit; z-index: 2;
  }
  .menu-btn span { display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--cream); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .site-nav a { font: 400 2rem var(--serif); letter-spacing: 0; text-transform: none; }
  .nav-cta { font: 500 .85rem var(--sans) !important; letter-spacing: .16em !important; text-transform: uppercase !important; margin-top: 10px; }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .menu-open { color: var(--ink) !important; }
}

/* ---------- Layout ---------- */
main { display: block; }
.section { padding: clamp(64px, 10vw, 130px) var(--gutter); }
.section-tint { background: var(--oatmeal); }
.section-sage { background: var(--sage-deep); color: var(--cream); }
.section-sage .eyebrow { color: var(--sand); }
.wrap { max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }
.page-head { padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(28px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.page-head p.lead { max-width: 620px; font-size: 1.15rem; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.section-title h2 { margin: 0; }

/* ---------- Image frames & placeholders ---------- */
.frame { position: relative; overflow: hidden; aspect-ratio: var(--ar, 4 / 5); background: var(--sand); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame.loaded { aspect-ratio: auto; }
.frame.loaded .ph-label { display: none; }
.frame.loaded img { position: static; height: auto; }
.frame.fill, .frame.fill.loaded { aspect-ratio: auto; height: 100%; }
.frame.fill.loaded img { position: absolute; height: 100%; }
.frame.contain img { object-fit: contain; }
.ph-label {
  position: absolute; left: 12px; bottom: 10px; z-index: 0;
  font: 500 .66rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(47, 38, 33, .5);
}
.ph-0 { background: radial-gradient(circle at 30% 30%, #e7c58c 0 18%, transparent 45%), radial-gradient(circle at 75% 70%, #b8603f 0 20%, transparent 55%), linear-gradient(160deg, #d9b98f, #a8705a); }
.ph-1 { background: radial-gradient(ellipse at 60% 35%, #f2dfc0 0 15%, transparent 50%), linear-gradient(180deg, #a9b59a 0 55%, #6f7d5f 55% 100%); }
.ph-2 { background: radial-gradient(circle at 70% 25%, #f0c65a 0 12%, transparent 40%), linear-gradient(200deg, #c98a5a, #7f3f2a 70%); }
.ph-3 { background: radial-gradient(circle at 35% 60%, #e9d8bd 0 22%, transparent 50%), linear-gradient(120deg, #5c6a51, #a4ae8c); }
.ph-4 { background: radial-gradient(circle at 50% 40%, #f4e6cf 0 10%, transparent 38%), linear-gradient(170deg, #d7a65c, #b8603f 60%, #6d3523); }
.ph-5 { background: linear-gradient(180deg, #e8d6bb 0 40%, #c99a3b 40% 48%, #8d9b7c 48% 100%); }

/* ---------- HOME: hero slideshow ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); color: var(--cream); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.active { opacity: 1; }
.slide .frame { height: 100%; transform: scale(1.12); }
.slide.active .frame { animation: kenburns var(--slide-ms, 6000ms) linear forwards; }
.slide:nth-child(even).active .frame { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate(-1%, 0); } to { transform: scale(1.14) translate(1%, -1.5%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(36, 26, 20, .72) 0%, rgba(36, 26, 20, .35) 45%, rgba(36, 26, 20, 0) 75%),
              linear-gradient(0deg, rgba(36, 26, 20, .55), transparent 35%),
              linear-gradient(180deg, rgba(36, 26, 20, .5), transparent 140px);
}
.hero-content {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-46%);
  max-width: 720px;
}
.hero-content .eyebrow { color: var(--sand); }
.hero-content h1 { margin-bottom: .35em; }
.hero-content h1 em { color: #d9c7a3; }
.hero-content .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 520px; opacity: .92; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-content > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hero-content > *:nth-child(2) { animation-delay: .15s; }
.hero-content > *:nth-child(3) { animation-delay: .3s; }
.hero-content > *:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-bar {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.hero-caption { font: 400 .95rem var(--serif); opacity: .9; margin: 0; }
.hero-controls { display: flex; align-items: center; gap: 18px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 42px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; display: grid; align-items: center; }
.hero-dots span { display: block; height: 2px; background: rgba(247, 241, 232, .35); position: relative; overflow: hidden; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleX(0); transform-origin: left; }
.hero-dots .active span::after { animation: fillbar var(--slide-ms, 6000ms) linear forwards; }
@keyframes fillbar { to { transform: scaleX(1); } }
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(247, 241, 232, .6);
  background: transparent; color: var(--cream); font-size: 1.4rem; cursor: pointer; transition: background .3s, color .3s;
}
.hero-arrow:hover { background: var(--cream); color: var(--ink); }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 16px; width: 1.5px; height: 42px;
  background: linear-gradient(var(--cream), transparent); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .2; transform: translateY(-6px); } 50% { opacity: .9; transform: translateY(4px); } }
@media (max-width: 640px) {
  .hero-caption { display: none; }
  .hero-bar { justify-content: center; }
  .scroll-cue { display: none; }
}

/* ---------- HOME: welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto; }
.welcome-photo { position: relative; }
.welcome-photo .frame { border-radius: 999px 999px var(--radius) var(--radius); --ar: 4 / 5; }
.welcome-photo .frame.loaded { aspect-ratio: 4 / 5; }
.welcome-photo .frame.loaded img { position: absolute; height: 100%; }
.badge {
  position: absolute; right: -14px; bottom: 28px; width: 128px; height: 128px; border-radius: 50%;
  background: var(--mustard); color: var(--ink); display: grid; place-content: center; text-align: center;
  font: 400 1rem/1.15 var(--serif); transform: rotate(-10deg); box-shadow: 0 10px 30px rgba(47, 38, 33, .18);
  animation: bob 5s ease-in-out infinite;
}
.badge strong { display: block; font-size: 1.7rem; font-weight: 600; }
@keyframes bob { 50% { transform: rotate(-4deg) translateY(-8px); } }
.welcome h2 { margin-bottom: .4em; }
.welcome .lead { font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 2em 0; padding: 1.4em 0; border-block: 1px solid var(--line); }
.facts strong { display: block; font: 400 1.5rem/1.2 var(--serif); color: var(--terracotta); }
.facts span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .badge { right: 0; width: 108px; height: 108px; font-size: .9rem; }
}
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- HOME: moving strips ---------- */
.strips { padding: clamp(56px, 8vw, 100px) 0; overflow: hidden; background: var(--oatmeal); }
.strips .section-title { padding: 0 var(--gutter); max-width: 1240px; margin-inline: auto; }
.strip { overflow: hidden; margin-bottom: 18px; }
.strip-track { display: flex; gap: 18px; width: max-content; animation: slide-left 70s linear infinite; }
.strip.reverse .strip-track { animation-name: slide-right; animation-duration: 80s; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes slide-left { to { transform: translateX(-50%); } }
@keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.strip-card { display: block; width: clamp(180px, 22vw, 290px); flex: none; border-radius: 10px; overflow: hidden; transition: transform .5s var(--ease); }
.strip-card .frame, .strip-card .frame.loaded { aspect-ratio: 4 / 5; }
.strip-card .frame.loaded img { position: absolute; height: 100%; }
.strip-card:hover { transform: translateY(-8px) rotate(-1deg); }

/* ---------- HOME: explore cards ---------- */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); max-width: 1240px; margin: 0 auto; }
.door { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--cream); aspect-ratio: 3 / 4; }
.door .frame { position: absolute; inset: 0; height: 100%; transition: transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36, 26, 20, .8), rgba(36, 26, 20, 0) 60%); }
.door:hover .frame { transform: scale(1.06); }
.door-text { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; }
.door-text .num { font: 500 .72rem var(--sans); letter-spacing: .2em; color: var(--sand); }
.door-text h3 { margin: .3em 0 .2em; }
.door-text p { margin: 0; opacity: .85; font-size: .95rem; transform: translateY(8px); opacity: 0; transition: .5s var(--ease); }
.door:hover .door-text p, .door:focus .door-text p { opacity: .85; transform: none; }
@media (hover: none) { .door-text p { opacity: .85; transform: none; } }
@media (max-width: 820px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 4 / 3; } }

/* ---------- HOME: teaching highlight + quote ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto; }
.split .frame { border-radius: var(--radius); --ar: 5 / 4; }
.split .frame.loaded { aspect-ratio: 5 / 4; }
.split .frame.loaded img { position: absolute; height: 100%; }
blockquote.quote { margin: 0 0 1.4em; font: 300 italic clamp(1.5rem, 2.8vw, 2.2rem)/1.3 var(--serif); }
blockquote.quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--mustard); margin-bottom: .1em; font-style: normal; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--terracotta); color: var(--cream); text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); position: relative; overflow: hidden; }
.cta-band h2 em { color: var(--ink); }
.cta-band p { max-width: 560px; margin: 0 auto 2em; opacity: .92; }
.cta-band .eyebrow { color: var(--oatmeal); }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(247, 241, 232, .25);
}
.cta-band::before { width: 420px; height: 420px; left: -140px; top: -180px; }
.cta-band::after { width: 300px; height: 300px; right: -80px; bottom: -160px; background: rgba(201, 154, 59, .25); border: 0; }

/* ---------- PORTFOLIO grid (masonry) ---------- */
.masonry { columns: 3 300px; column-gap: clamp(16px, 2.4vw, 32px); max-width: 1240px; margin: 0 auto; }
.art-card {
  display: block; width: 100%; break-inside: avoid; margin: 0 0 clamp(20px, 3vw, 40px);
  padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit; font: inherit;
}
.art-card .frame { border-radius: 4px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.art-card:hover .frame { transform: translateY(-6px); box-shadow: 0 22px 40px -18px rgba(47, 38, 33, .45); }
.art-cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: .9rem; }
.art-cap strong { font: 400 1.1rem var(--serif); }
.art-cap span { color: var(--muted); white-space: nowrap; }
.student-grid { columns: 4 220px; }
.student-grid .art-cap span { white-space: normal; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--cream); color: var(--ink);
}
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; animation: fade .35s ease; }
.lightbox::backdrop { background: rgba(47, 38, 33, .5); }
@keyframes fade { from { opacity: 0; } }
.lb-body { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: center; height: 100%; padding: 70px 0 40px; }
.lb-img { height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-img .frame, .lb-img .frame.loaded { width: 100%; height: 100%; aspect-ratio: auto; background: transparent; }
.lb-img .frame:not(.loaded) { max-width: 520px; height: auto; aspect-ratio: 4 / 5; }
.lb-img .frame.ph-0:not(.loaded), .lb-img .frame.ph-1:not(.loaded), .lb-img .frame.ph-2:not(.loaded),
.lb-img .frame.ph-3:not(.loaded), .lb-img .frame.ph-4:not(.loaded), .lb-img .frame.ph-5:not(.loaded) { background: var(--sand); }
.lb-img .frame.loaded img { position: absolute; height: 100%; }
.lb-body figcaption h3 { font-size: 2rem; }
.lb-count { font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.lb-close { position: fixed; top: 16px; right: 20px; font-size: 2.2rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ink); z-index: 2; }
.lb-nav { height: 60px; font-size: 2.6rem; background: none; border: 0; cursor: pointer; color: var(--ink); transition: color .2s; }
.lb-nav:hover, .lb-close:hover { color: var(--terracotta); }
@media (max-width: 820px) {
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { position: fixed; bottom: 14px; z-index: 2; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
  .lb-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 60px 16px 70px; overflow-y: auto; }
  .lb-body figcaption h3 { font-size: 1.5rem; }
}

/* ---------- TEACHING ---------- */
.philosophy { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; align-items: start; }
.philosophy-text p { font-size: 1.08rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.6em 0 0; }
.pill-list li { padding: .5em 1.1em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: .85rem; }
@media (max-width: 820px) { .philosophy { grid-template-columns: 1fr; } }

.photo-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(12px, 2vw, 24px); max-width: 1240px; margin: 0 auto; }
.photo-row figure { margin: 0; }
.photo-row .frame { height: clamp(240px, 32vw, 420px); border-radius: var(--radius); }
.photo-row figcaption { font-size: .85rem; color: var(--muted); padding-top: 10px; }
@media (max-width: 720px) { .photo-row { grid-template-columns: 1fr; } }

.level { max-width: 1240px; margin: 0 auto clamp(48px, 6vw, 80px); }
.level-head { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 28px; }
.level-head h3 { margin: 0; }
.level-head span { color: var(--muted); font-size: .9rem; }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.5vw, 32px); }
@media (max-width: 720px) { .lessons { grid-template-columns: 1fr; } }
.lesson-card {
  display: grid; grid-template-columns: 42% 1fr; text-decoration: none; background: var(--cream);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.section-tint .lesson-card { background: var(--cream); }
.lesson-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(47, 38, 33, .4); }
.lesson-card .frame { min-height: 230px; }
.lesson-body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; align-items: flex-start; }
.lesson-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag { display: inline-block; font: 500 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); background: rgba(141, 155, 124, .2); padding: .45em .9em; border-radius: 999px; margin-bottom: 14px; }
@media (max-width: 480px) { .lesson-card { grid-template-columns: 1fr; } .lesson-card .frame { min-height: 200px; } }

/* ---------- PDF viewer ---------- */
.doc-viewer { max-width: 900px; margin: 0 auto; display: grid; gap: 18px; }
.doc-viewer canvas { width: 100%; height: auto; background: #fff; border-radius: 4px; box-shadow: 0 16px 40px -20px rgba(47, 38, 33, .35); }
.pdf-status { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--sand); border-radius: var(--radius); background: rgba(255, 255, 255, .4); color: var(--muted); }
.doc-viewer { user-select: none; }
.lesson-nav .btn { white-space: normal; text-align: center; }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 900px; margin: 40px auto 0; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; align-items: start; }
.about-photo { position: sticky; top: 100px; }
.about-photo .frame, .about-photo .frame.loaded { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about-photo .frame.loaded img { position: absolute; height: 100%; }
.about-text h3 { margin-top: 1.6em; }
.about-text .lead { font: 300 clamp(1.3rem, 2.2vw, 1.65rem)/1.45 var(--serif); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-photo { position: static; max-width: 420px; } }

/* ---------- RESUME ---------- */
.resume-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- CONTACT ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: 0 auto; }
.contact-info .lead { font-size: 1.15rem; color: var(--muted); }
.contact-info a { color: var(--terracotta); }
.contact-card { margin-top: 2em; padding: 24px; border-radius: var(--radius); background: var(--oatmeal); }
.contact-card p { margin: 0 0 .4em; }
form.lead-form { background: #fffaf3; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 22px; box-shadow: 0 30px 60px -40px rgba(47, 38, 33, .35); }
.field label { display: block; font: 500 .74rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--sand); padding: 10px 2px; border-radius: 0;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--terracotta); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hp { position: absolute; left: -5000px; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.success { color: var(--sage-deep); font-weight: 500; }
.form-status.error { color: var(--rust); }
form.lead-form button { justify-self: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--oatmeal); padding: clamp(48px, 7vw, 80px) var(--gutter) 32px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .logo { font-size: 1.8rem; margin-bottom: .5em; }
.site-footer .logo em { color: #d9c7a3; }
.site-footer p { font-size: .9rem; opacity: .8; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav a, .site-footer a { text-decoration: none; font-size: .9rem; }
.site-footer a:hover { color: #d9c7a3; }
.site-footer .small { color: var(--sand); margin-top: 1em; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}

/* ---------- Lesson tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags .tag { margin-bottom: 0; }
.tag-alt { color: var(--rust); background: rgba(143, 118, 80, .16); }

/* ---------- Curriculum map ---------- */
.map-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); }
.chip {
  font: 500 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: .8em 1.4em; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--sand); background: transparent; color: var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.chip.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.map-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; animation: rise .6s var(--ease) both;
}
.map-card:nth-child(2) { animation-delay: .04s; } .map-card:nth-child(3) { animation-delay: .08s; }
.map-card:nth-child(4) { animation-delay: .12s; } .map-card:nth-child(5) { animation-delay: .16s; }
.map-card:nth-child(6) { animation-delay: .2s; }  .map-card:nth-child(7) { animation-delay: .24s; }
.map-card:nth-child(8) { animation-delay: .28s; } .map-card:nth-child(9) { animation-delay: .32s; }
.map-card .eyebrow { margin-bottom: .5rem; }
.map-card h4 { font-size: 1.25rem; margin-bottom: .35em; }
.map-project { font-style: italic; font-family: var(--serif); color: var(--sage-deep); margin-bottom: .8em; }
.map-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; }
.map-card dt { font: 500 .68rem/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.map-card dd { margin: 0; }

/* ---------- HOME: painting collage hero ---------- */
.hero-collage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - 72px);
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(32px, 5vw, 64px);
  max-width: 1440px; margin: 0 auto; overflow: hidden;
}
.hc-text > * { opacity: 0; transform: translateY(24px); animation: rise 1s var(--ease) forwards; }
.hc-text > *:nth-child(2) { animation-delay: .12s; }
.hc-text > *:nth-child(3) { animation-delay: .24s; }
.hc-text > *:nth-child(4) { animation-delay: .36s; }
.hc-text .lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 480px; margin-bottom: 2em; }
.hc-stage-wrap { position: relative; }
.hc-stage {
  --mx: 0; --my: 0;
  position: relative; height: clamp(440px, 74svh, 720px);
  --h: clamp(190px, 31svh, 320px);
}
.hc-card {
  position: absolute; left: var(--x); top: var(--y);
  padding: 0; border: 0; background: none; cursor: pointer;
  transform:
    translate(-50%, -50%)
    translate(calc(var(--mx) * var(--d) * 14px), calc(var(--my) * var(--d) * 14px))
    rotate(var(--r)) scale(var(--s, 1));
  transition: transform .9s var(--ease), filter .6s;
  opacity: 0; animation: card-in .9s var(--ease) forwards;
}
.hc-card:nth-child(1) { animation-delay: .15s; } .hc-card:nth-child(2) { animation-delay: .3s; }
.hc-card:nth-child(3) { animation-delay: .45s; } .hc-card:nth-child(4) { animation-delay: .6s; }
.hc-card:nth-child(5) { animation-delay: .75s; } .hc-card:nth-child(6) { animation-delay: .9s; }
@keyframes card-in { from { opacity: 0; margin-top: 40px; } to { opacity: 1; margin-top: 0; } }
.hc-float {
  display: block; padding: clamp(6px, .7vw, 10px); background: #fffdf9;
  box-shadow: 0 2px 4px rgba(47, 38, 33, .08), 0 22px 44px -18px rgba(47, 38, 33, .45);
  animation: drift 7s ease-in-out infinite; animation-delay: calc(var(--float) * -1);
}
@keyframes drift { 50% { transform: translateY(-9px) rotate(.6deg); } }
.hc-float img { display: block; height: calc(var(--h) * var(--k, 1)); width: auto; max-width: none; }
.hc-card:hover { --s: 1.03; }
.hc-card.front { --r: 0deg !important; --s: 1.08; }
.hc-card.front .hc-float { box-shadow: 0 4px 8px rgba(47, 38, 33, .1), 0 34px 60px -20px rgba(47, 38, 33, .55); }
.hc-card:focus-visible { outline: none; }
.hc-card:focus-visible .hc-float { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.hc-caption { text-align: center; font: 400 1rem var(--serif); color: var(--muted); margin: 8px 0 0; min-height: 1.5em; }
.hc-caption em { color: var(--ink); }
@media (max-width: 820px) {
  .hero-collage { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; }
  .hc-stage-wrap { order: -1; }
  .hc-stage { height: clamp(360px, 62svh, 520px); --h: clamp(150px, 24svh, 220px); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-card, .hc-text > * { opacity: 1; animation: none; transform: translate(-50%, -50%) rotate(var(--r)); }
  .hc-text > * { transform: none; }
}

/* ---------- HOME: painting strip (uncropped) ---------- */
.strip-card { width: auto; height: clamp(200px, 24vw, 300px); border-radius: 6px; }
.strip-card img { height: 100%; width: auto; max-width: none; }

[hidden] { display: none !important; }
.btn-small { padding: .75em 1.3em; font-size: .74rem; }
.door .frame.loaded { aspect-ratio: auto; }
.door .frame.loaded img { position: absolute; height: 100%; }

/* =========================================================
   Greige + black header look (matches Nina's logo)
   ========================================================= */
:root {
  --page: #e1e0dc;        /* greige page background */
  --card: #f9f6ee;        /* logo cream, for cards */
  --oatmeal: #d6d4ce;     /* tinted sections */
  --muted: #625750;
  --line: rgba(47, 38, 33, .16);
}
body { background: var(--page); }

/* Black header bar with cream logo top-left */
.site-header, .site-header.scrolled {
  background: #000; color: #fff; border-bottom: 0; backdrop-filter: none;
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark { height: 56px; width: auto; border-radius: 2px; transition: height .4s var(--ease); }
.site-header.scrolled .brand-mark { height: 46px; }
.site-header .logo { font: 600 1.6rem/1 var(--serif); letter-spacing: -.01em; }
.site-header .logo em { color: #fff; font-weight: 400; }
.site-nav a[aria-current]:not(.nav-cta) { color: #fff; }
.nav-cta:hover, .nav-cta[aria-current] { background: #fff; border-color: #fff; color: #000; }
@media (max-width: 820px) {
  .brand-mark { height: 46px; }
  .site-header .logo { font-size: 1.3rem; }
  .site-nav { background: #000; color: #fff; }
  .menu-open { color: #fff !important; }
}
@media (max-width: 380px) { .site-header .logo { display: none; } }

/* Cream cards on greige, like the logo square */
.lesson-card, .section-tint .lesson-card, .map-card, .pill-list li, .contact-card { background: var(--card); }
form.lead-form { background: var(--card); }
.lightbox { background: var(--page); }
.pdf-status { background: rgba(249, 246, 238, .6); }
.section-tint { background: var(--oatmeal); }
.strips { background: var(--oatmeal); }

/* Bronze call-to-action band (deeper shade so cream text stays readable) */
.cta-band { background: var(--rust); }
.cta-band h2 em { color: #e9dcc3; }
/* Six-painting collage: slightly smaller prints so the two rows breathe */
.hc-stage.many { --h: clamp(170px, 27svh, 280px); }
@media (max-width: 820px) {
  .hc-stage.many { height: clamp(520px, 78svh, 640px); --h: clamp(130px, 19svh, 170px); }
}

/* Headshot a little smaller */
.welcome-photo { max-width: 340px; width: 100%; justify-self: center; }
.about-photo { max-width: 360px; width: 100%; justify-self: center; }
@media (max-width: 820px) {
  .welcome-photo { max-width: 280px; }
  .about-photo { max-width: 300px; margin: 0 auto; }
}

/* Seven-painting collage */
@media (max-width: 820px) {
  .hc-stage.many { height: clamp(600px, 92svh, 760px); }
}
.hc-stage.seven { --h: clamp(150px, 23svh, 240px); }
@media (max-width: 820px) { .hc-stage.seven { --h: clamp(120px, 17svh, 160px); } }
