/* immersive.css — Mini Scholars: one continuous scroll performance.
   Preloader → parallax hero (rising centerpiece) → dark statement + stats →
   hover-expand gallery → Services / Waitlist / Contact / Footer chapters.
   Builds on styles/colors_and_type.css + styles/site.css tokens. */

:root {
  --deep:    #36453D;   /* softened pine — preloader + dark chapters */
  --deep-2:  #20292500; /* (unused placeholder kept for clarity) */
  --paper:   #F5F1E8;   /* warmer hero paper */
  --slate:   #566661;   /* softened slate-green for headings */
}

html { scrollbar-gutter: stable; overflow-x: clip; }
body.immersive { margin: 0; padding: 0; background: var(--paper); color: var(--ink); overflow-x: clip; width: 100%; max-width: 100%; position: relative; }

/* image-slot sets touch-action:none on its inner <img> for desktop pan/reframe;
   on a published page that traps touch-scroll when a swipe starts on a photo.
   Re-enable normal touch gestures so the whole page always scrolls. */
image-slot::part(image) { touch-action: auto !important; }
image-slot { touch-action: pan-y; }
.cp-img, .g-card img, .svc-media img { touch-action: pan-y; }

@keyframes blink   { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes drift   { 0%, 100% { transform: translate(0,0) scale(1); } 50% { transform: translate(14px,-18px) scale(1.05); } }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================ PRELOADER ============================ */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--deep);
  display: flex; flex-direction: column; gap: 26px;
  align-items: center; justify-content: center;
  transform: translateY(0);
}
.pre-logo {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 3px rgba(244,239,230,0.16), 0 16px 42px -14px rgba(0,0,0,0.5);
}
.preloader.lift { transform: translateY(-100%); transition: transform 1.45s cubic-bezier(.45,0,.15,1); }
.preloader.done { transition: none; pointer-events: none; }
.pre-word {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.3rem, 4.2vw, 2.6rem); color: #F4EFE6;
  letter-spacing: 0.005em; display: inline-flex; align-items: baseline;
  white-space: nowrap;
}
.pre-letter { opacity: 0; transition: opacity .12s ease; }
.pre-letter.show { opacity: 1; }
.pre-cursor {
  width: 3px; height: 1.05em; background: var(--terra);
  border-radius: 2px; margin-left: 6px; align-self: center;
  animation: blink .7s step-end infinite;
}
.pre-cursor.hide { display: none; }
.pre-sub {
  position: absolute; bottom: 9%; left: 0; right: 0; text-align: center;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(244,239,230,0.5);
}

/* ============================ FIXED NAV ============================ */
.imm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; pointer-events: none;
}
@media (min-width: 768px) { .imm-nav { padding: 26px 40px; } }
@media (min-width: 1100px){ .imm-nav { padding: 30px 64px; } }
.imm-nav > * { pointer-events: auto; }
.imm-nav { transition: background .35s ease, box-shadow .35s ease; }
.imm-nav.scrolled {
  background: rgba(245,241,232,0.74);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(58,58,55,0.08);
}
.imm-nav.scrolled.on-dark {
  background: rgba(54,69,61,0.58);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-progress {
  position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  pointer-events: none;
}
.nav-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--terra); border-radius: 0 2px 2px 0;
}
.imm-brand {
  font-family: var(--font-serif); font-weight: 700; font-size: 22px;
  letter-spacing: 0.01em; cursor: pointer; color: var(--nav-color, var(--slate));
  transition: color .35s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 30px; height: 38px; display: block; flex: none;
  background-color: var(--nav-color, var(--slate));
  -webkit-mask: url("../assets/logo-emblem-plain.png") center / contain no-repeat;
  mask: url("../assets/logo-emblem-plain.png") center / contain no-repeat;
  transition: background-color .35s ease;
}
.imm-nav .nav-links { display: none; gap: 34px; align-items: center; }
@media (min-width: 900px) { .imm-nav .nav-links { display: flex; } }
.imm-nav .nav-link {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--nav-color, var(--slate));
  text-decoration: none; cursor: pointer; opacity: 0.85; transition: color .35s ease, opacity .2s;
}
.imm-nav .nav-link:hover { opacity: 1; }
.nav-cta {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--nav-color, var(--slate));
  border: 1px solid currentColor; border-radius: 999px; padding: 9px 20px;
  cursor: pointer; background: transparent; transition: color .35s ease, background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ============================ HERO ============================ */
.hero {
  position: relative; min-height: 100vh; overflow: visible;
  background: var(--paper);
}
.hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-blobs .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.5; }
.hero-blobs .b1 { width: 520px; height: 520px; background: var(--ms-rose, #DA9DA7); top: -120px; left: -120px; animation: drift 16s ease-in-out infinite; }
.hero-blobs .b2 { width: 460px; height: 460px; background: var(--ms-sage, #ABD0C3); bottom: -140px; right: -100px; animation: drift 20s ease-in-out infinite reverse; }

/* rising centerpiece photo card (Velar house mechanic, re-skinned) */
.centerpiece {
  position: fixed; left: 50%; bottom: 0; z-index: 5;
  width: 100%; max-width: 100%; height: 40vh; /* height set precisely by JS so it never overlaps the text */
  transform: translateX(-50%) translateY(112vh);
  pointer-events: none; will-change: transform, opacity;
}
.centerpiece.rise { transform: translateX(-50%) translateY(0); transition: transform 1.5s cubic-bezier(.45,0,.15,1) .35s; }
.centerpiece.scrollctl { transition: none; }
.cp-frame {
  width: 100%; height: 100%; border-radius: 0; overflow: hidden;
  position: relative;
  /* fully transparent — the cutout's sky shows the page background, so the
     building blends seamlessly into the site */
  background: transparent;
}
.cp-frame .cp-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 15%; display: block;
}
.cp-frame image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-tag {
  position: absolute; left: clamp(18px, 4vw, 56px); bottom: 18px; z-index: 3;
  display: flex; align-items: center; gap: 9px; color: #fff;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(40,52,47,0.42); backdrop-filter: blur(6px);
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
}
.cp-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); }

/* hero text — visible by default (the preloader lift reveals it); the scroll
   engine drives the fade in JS, never a freezable CSS transition */
.hero-text {
  position: relative; z-index: 10;
  padding: clamp(96px, 16vh, 170px) 24px 0;
}
@media (min-width: 768px) { .hero-text { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1100px){ .hero-text { padding-left: 64px; padding-right: 64px; } }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--terra); margin: 0 0 18px;
  display: flex; align-items: center; gap: 12px; white-space: nowrap; flex-wrap: nowrap;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--terra); }
.hero-display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 8.6vw, 140px); line-height: 0.92; letter-spacing: -0.03em;
  color: var(--slate); margin: 0; text-transform: none;
}
.hero-display .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; color: var(--terra); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-aside {
  max-width: 280px; font-family: var(--font-body); font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6; color: var(--ink-2); opacity: 0.85; text-align: right; padding-bottom: 0.6em;
}
@media (max-width: 1099px) { .hero-aside { display: none; } }
.hero-sub-m {
  display: none; font-family: var(--font-body); font-size: clamp(14px,3.4vw,16px);
  line-height: 1.6; color: var(--ink-2); margin-top: 18px; max-width: 30ch;
}
@media (max-width: 1099px) { .hero-sub-m { display: block; } }
.hero-cta-row { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn-solid {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: #fff; background: var(--terra); border: none;
  border-radius: 999px; padding: 15px 32px; cursor: pointer; transition: background .2s, transform .08s;
  white-space: nowrap;
}
.btn-solid:hover { background: #dba089; }
.btn-solid:active { transform: translateY(1px); background: var(--terra-2, #C5805F); }
.btn-line {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--slate); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 15px 28px; cursor: pointer; transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-line:hover { border-color: var(--slate); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint .bar { width: 1px; height: 40px; background: linear-gradient(var(--muted), transparent); }
@media (max-width: 860px) { .scroll-hint { display: none; } }
/* short viewports: tighten the hero so the centerpiece always has room */
@media (max-height: 660px) {
  .hero-text { padding-top: clamp(76px, 13vh, 100px); }
  .hero-display { font-size: clamp(34px, 7vw, 96px); }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-cta-row { margin-top: 20px; }
  .btn-solid, .btn-line { padding: 12px 26px; }
}

/* ============================ DARK STATEMENT + STATS ============================ */
.statement-wrap { position: relative; height: 240vh; z-index: 20; }
.statement {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--deep); color: #ECE7DD;
  display: flex; align-items: center;
}
.statement .st-grain { position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(80% 60% at 75% 20%, rgba(212,150,125,0.18), transparent 60%); pointer-events: none; }
.statement .st-inner {
  position: relative; width: 100%; max-width: 1220px; margin: 0 auto;
  padding: 0 clamp(24px,5vw,64px);
  display: grid; grid-template-columns: 1.15fr 0.62fr; gap: clamp(28px,4vw,72px); align-items: center;
}
.statement .st-main { min-width: 0; }
.st-photo {
  height: clamp(320px, 58vh, 560px); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.5); will-change: transform; position: relative;
  transform-origin: center center; z-index: 3;
}
.st-photo image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
/* tablet/mobile: keep the aerial — it sits full-width below the stats and
   still gets the expansion finale */
@media (max-width: 999px) {
  .statement .st-inner { display: block; }
  .st-photo { height: clamp(150px, 22vh, 280px); margin-top: clamp(18px, 4vh, 30px); }
}
/* landscape phones: not enough height for text + stats + photo */
@media (max-width: 999px) and (max-height: 560px) {
  .st-photo { display: none; }
}
.st-eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra); margin: 0 0 clamp(20px,3vw,34px); }
.st-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 50px); line-height: 1.28; letter-spacing: -0.015em;
  color: #F1ECE2; margin: 0;
}
.st-line { display: block; will-change: transform, opacity; }
.st-text b { font-weight: 700; color: #fff; }
.st-text .accent { color: var(--terra); font-style: italic; font-family: var(--font-serif); }
.st-stats { display: flex; gap: 0; margin-top: clamp(40px, 6vw, 76px); max-width: 980px; }
.st-stat { flex: 1; padding-left: clamp(18px, 2.4vw, 38px); border-left: 1px solid rgba(255,255,255,0.18); }
.st-stat:first-child { padding-left: 0; border-left: none; }
.st-num { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.05; color: #fff; letter-spacing: -0.02em; }
.st-lbl { font-family: var(--font-body); font-size: clamp(12.5px, 1vw, 15px); color: rgba(255,255,255,0.74); margin-top: clamp(4px,0.6vw,10px); letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .st-text { font-size: clamp(20px,5.8vw,28px); max-width: none; }
  .st-eyebrow { margin-bottom: 16px; }
  .st-stats { flex-wrap: wrap; gap: 18px 0; margin-top: clamp(26px, 5vh, 44px); }
  .st-stat { flex: 0 0 50%; padding-left: clamp(14px,4vw,20px); }
  .st-stat:nth-child(3) { border-left: none; padding-left: 0; padding-top: 8px; }
}

/* ============================ HOVER-EXPAND GALLERY ============================ */
/* ============================ HORIZONTAL GALLERY ============================ */
.gallery-wrap { position: relative; height: 320vh; z-index: 25; background: var(--deep); }
.gallery {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--deep);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(22px, 4.5vh, 46px);
  --g-item-w: min(640px, 72vw); --g-gap: 28px;
}
.gallery .ticker-wrap { position: absolute; inset: 0; display: flex; align-items: center; overflow: hidden; z-index: 0; pointer-events: none; }
.gallery .ticker-track { display: flex; width: max-content; animation: tickerScroll 40s linear infinite; will-change: transform; }
.gallery .ticker-track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 13vw, 210px);
  color: rgba(255,255,255,0.05); white-space: nowrap; letter-spacing: -0.02em; padding-right: 0.35em; user-select: none;
}
.gallery .g-head { position: relative; text-align: center; z-index: 2; padding: 0 24px; flex: none; margin-top: clamp(40px, 7vh, 80px); }
.gallery .g-eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--terra); margin: 0 0 10px; }
.gallery .g-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 46px); color: #F1ECE2; margin: 0; letter-spacing: -0.01em; }
.g-track {
  position: relative; z-index: 1; display: flex; gap: var(--g-gap);
  padding-left: calc((100vw - var(--g-item-w)) / 2);
  will-change: transform; width: max-content;
}
.g-card {
  flex: none; width: var(--g-item-w); height: min(54vh, 520px);
  border-radius: 16px; overflow: hidden; position: relative; margin: 0;
  box-shadow: 0 28px 64px -30px rgba(0,0,0,0.6);
  background: rgba(32,41,37,0.4);
}
.g-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.g-cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 9px; color: #fff;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(32,38,34,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.g-cap .g-num { font-family: var(--font-serif); font-style: italic; color: var(--terra); }
.g-cap .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); flex: none; }
@media (max-width: 600px) {
  .gallery { --g-item-w: 80vw; --g-gap: 16px; }
  .g-card { height: 46vh; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-wrap { height: auto; }
  .gallery { position: relative; height: auto; padding: 80px 0; }
  .g-track { transform: none !important; overflow-x: auto; padding: 24px; }
}

/* ============================ CREAM CONTENT CHAPTERS ============================ */
.content-wrap { position: relative; z-index: 30; background: var(--paper); }
.chapter { position: relative; }
.chapter-head { max-width: 1200px; margin: 0 auto; padding: clamp(70px,10vw,130px) clamp(24px,5vw,64px) 0; }
.chapter-eyebrow { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; }
.chapter-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 76px); line-height: 0.95; letter-spacing: -0.025em; color: var(--slate); margin: 0; }
.chapter-title .ital { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--terra); letter-spacing: -0.01em; }

/* services as editorial rows */
.svc-list { max-width: 1200px; margin: clamp(36px,5vw,64px) auto 0; padding: 0 clamp(24px,5vw,64px) clamp(40px,6vw,90px); }
.svc-row {
  display: grid; grid-template-columns: 64px 1.1fr 1.3fr 200px; gap: clamp(16px,3vw,40px); align-items: center;
  padding: clamp(22px,3vw,34px) 0; border-top: 1px solid var(--line);
}
.svc-row:last-child { border-bottom: 1px solid var(--line); }
.svc-idx { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--terra); }
.svc-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,2.2vw,30px); color: var(--slate); line-height: 1.1; letter-spacing: -0.01em; }
.svc-desc { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.svc-desc b { color: var(--ink); font-weight: 700; }
.svc-media { width: 200px; height: 130px; border-radius: 14px; overflow: hidden; box-shadow: var(--sh-card, 0 8px 24px -14px rgba(58,58,55,.35)); }
.svc-media image-slot { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .svc-row { grid-template-columns: 40px 1fr; grid-auto-rows: auto; row-gap: 12px; }
  .svc-media { grid-column: 1 / -1; width: 100%; height: 180px; order: 5; }
  .svc-desc { grid-column: 1 / -1; }
}

/* reveal-on-scroll — translate only (never opacity) so a paused timeline
   can never leave content invisible */
.reveal { transform: translateY(22px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transform: none; }

/* waitlist chapter */
.wl-grid {
  max-width: 1200px; margin: clamp(30px,4vw,56px) auto 0;
  padding: 0 clamp(24px,5vw,64px) clamp(70px,9vw,120px);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px,5vw,80px); align-items: start;
  position: relative; z-index: 1;
}
.wl-copy { font-family: var(--font-body); font-size: clamp(15px,1.2vw,18px); line-height: 1.65; color: var(--ink-2); margin: 0 0 26px; max-width: 38ch; }
.wl-copy b { color: var(--ink); }
.wl-note { font-family: var(--font-body); font-size: 12.5px; line-height: 1.6; color: var(--muted); margin: 28px 0 0; max-width: 42ch; }
.wl-label { font-family: var(--font-body); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin: 0 0 8px; }
.wl-policies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px,3vw,44px); }
.wl-policies li {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink);
  padding: 14px 0; border-top: 1px solid var(--line);
}
.wl-idx { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--terra); flex: none; }
@media (max-width: 860px) {
  .wl-grid { display: block; }
  .wl-policies { grid-template-columns: 1fr; margin-top: 30px; }
}

/* footer logo is a transparent cutout — no box against the cream */
/* flat footer top (wave divider removed) — hairline + breathing room instead */
.site-footer { padding-top: 0; border-top: 1px solid var(--line); }
.site-footer .footer-inner { padding-top: 56px; }

/* footer map */
.footer-map {
  position: relative; display: block; max-width: 1180px;
  margin: 8px auto 0; padding: 0 clamp(24px,5vw,64px) clamp(40px,5vw,64px);
}
.footer-map iframe {
  width: 100%; height: 260px; border: 0; display: block;
  border-radius: 16px; filter: saturate(0.86) contrast(0.96);
  box-shadow: var(--sh-card, 0 10px 30px -16px rgba(58,58,55,.4));
}
.footer-map-pin {
  position: absolute; right: calc(clamp(24px,5vw,64px) + 14px); bottom: calc(clamp(40px,5vw,64px) + 14px);
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--terra); color: #fff; font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em; padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 6px 18px -8px rgba(58,58,55,.5); transition: background .18s;
}
.footer-map:hover .footer-map-pin { background: var(--terra-2, #C5805F); }
@media (max-width: 540px) {
  .footer-map { padding-bottom: 36px; }
  .footer-map iframe { height: 200px; }
  .footer-map-pin { font-size: 11px; padding: 8px 12px; right: calc(clamp(24px,5vw,64px) + 10px); bottom: calc(36px + 10px); }
}

/* mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 55; background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu a { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px,9vw,46px);
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); text-decoration: none; }
.mobile-menu a:hover { color: var(--terra); }
.menu-toggle { background: none; border: none; cursor: pointer; display: grid; gap: 7px; padding: 6px; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { display: block; width: 26px; height: 1.5px; background: var(--nav-color, var(--slate)); transition: width .2s, background .35s ease; }
.menu-toggle:hover span:first-child { width: 18px; }

@media (prefers-reduced-motion: reduce) {
  .gallery .ticker-track { animation: none; }
  .hero-blobs .blob { animation: none; }
}

/* ============================ CONTACT + FOOTER — MOBILE ============================ */
/* The DS site.css ships .contact (2-col) and .footer-inner (3-col) with no
   responsive rules; stack them and right-size padding/type for phones. */
@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: clamp(26px, 5vw, 40px); padding: clamp(48px,9vw,64px) clamp(22px,6vw,40px) clamp(54px,10vw,72px); }
  .contact.panel { padding: clamp(48px,10vw,68px) clamp(22px,6vw,44px); margin-top: 0; }
  .contact .section-h1 { font-size: clamp(34px, 9vw, 52px); line-height: 1.04; }
  .contact-copy { font-size: 16px; max-width: 46ch; }
  .contact-form { gap: 18px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 16px; }

  .footer-inner { grid-template-columns: 1fr; gap: clamp(26px,6vw,36px); padding: clamp(28px,6vw,40px) clamp(22px,6vw,40px) clamp(40px,9vw,56px); }
  .footer-brand img { height: 46px; }
  .footer-col h4 { font-size: 22px; margin-bottom: 8px; }
}
@media (max-width: 540px) {
  /* first/last name stack so very-round inputs aren't crushed */
  .field-row { grid-template-columns: 1fr; gap: 16px; }
  .contact.panel .checkbox { align-items: flex-start; }
}

/* ============================ SMALL PHONES ============================ */
@media (max-width: 480px) {
  .imm-nav { padding: 14px 18px; }
  .imm-brand { font-size: 19px; gap: 8px; }
  .brand-mark { width: 24px; height: 30px; }
  .pre-logo { width: 96px; height: 96px; }
  .pre-word { font-size: clamp(1.02rem, 5.6vw, 1.4rem); }
  .pre-sub { font-size: 10px; letter-spacing: 0.2em; }
  .hero-display { font-size: clamp(28px, 8.8vw, 40px); }
  .hero-text { padding-left: 18px; padding-right: 18px; }
  .btn-solid, .btn-line { padding: 13px 22px; font-size: 11px; }
  .cp-tag { font-size: 10px; padding: 7px 12px; left: 12px; bottom: 12px; }
  .chapter-head { padding-left: 18px; padding-right: 18px; }
  .svc-list, .wl-grid { padding-left: 18px; padding-right: 18px; }
  .g-cap { font-size: 10px; padding: 8px 12px; left: 10px; bottom: 10px; }
}
