/* ============================================================
   In Their Corner shared styles
   Palette from the printed trifold:
   Deep pine, cream, gold, coral, mist green, blush pink
   ============================================================ */

:root {
  --pine: #16302B;
  --pine-2: #1E3B33;
  --pine-3: #24463C;
  --cream: #F7F1E5;
  --cream-2: #FBF7EE;
  --gold: #C9A227;
  --gold-soft: #D9B54A;
  --coral: #E8927C;
  --coral-soft: #F4B8A8;
  --mist: #DDE9E2;
  --blush: #F7DFD6;
  --ink: #24312C;
  --ink-soft: #55645D;
  --line: rgba(22, 48, 43, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(22, 48, 43, 0.10);
  --shadow-lift: 0 16px 44px rgba(22, 48, 43, 0.16);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--pine-2); }

.container { width: min(1160px, 92%); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow.dark { color: var(--pine-2); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--pine); }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 62ch; }

section { padding: 88px 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--gold);
  color: var(--pine);
  font-size: 14.5px;
  text-align: center;
  padding: 9px 16px;
  font-weight: 600;
}
.announce a { color: var(--pine); font-weight: 700; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 48, 43, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
}
.brand-sub {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  font-size: 9.5px;
  color: var(--cream);
  opacity: 0.8;
  text-transform: uppercase;
}
nav.main { display: flex; align-items: center; gap: 26px; }
nav.main a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15.5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.main a:hover, nav.main a.active { border-bottom-color: var(--gold); color: #fff; }
.nav-cta {
  background: var(--coral);
  color: var(--pine) !important;
  padding: 10px 20px !important;
  border-radius: 999px;
  font-weight: 700;
  border-bottom: none !important;
  transition: transform 0.15s, background 0.2s;
}
.nav-cta:hover { background: var(--coral-soft); transform: translateY(-1px); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(247, 241, 229, 0.4);
  color: var(--cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(232, 146, 124, 0.12), transparent 60%),
    var(--pine);
  color: var(--cream);
  padding: 110px 0 0;
  overflow: hidden;
}
.hero h1 { color: var(--cream); }
.hero h1 .accent { color: var(--coral); font-style: italic; }
.hero .lede { color: rgba(247, 241, 229, 0.85); margin-top: 22px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero-logo-lockup { text-align: center; }
.hero-logo-lockup img { width: 170px; margin: 0 auto 20px; filter: drop-shadow(0 14px 34px rgba(0,0,0,0.35)); }
.hero-wordmark {
  font-family: var(--font-mono);
  letter-spacing: 0.3em;
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}
.hero-wordmark-sub {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  color: rgba(247, 241, 229, 0.75);
  font-size: 10.5px;
  margin-top: 6px;
  text-transform: uppercase;
}
.hero-ctas { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: var(--pine); }
.btn-coral:hover { background: var(--coral-soft); }
.btn-outline-light { border-color: rgba(247, 241, 229, 0.55); color: var(--cream); background: transparent; }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-pine { background: var(--pine-2); color: var(--cream); }
.btn-pine:hover { background: var(--pine-3); }
.btn-gold { background: var(--gold); color: var(--pine); }
.btn-gold:hover { background: var(--gold-soft); }

/* EKG divider that runs under the hero */
.ekg-band { margin-top: 80px; background: transparent; }
.ekg-band svg { width: 100%; height: 90px; display: block; }
.ekg-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: draw-ekg 5.5s ease-out forwards;
}
@keyframes draw-ekg { to { stroke-dashoffset: 0; } }
.ekg-dot { fill: var(--gold); opacity: 0; animation: dot-in 0.6s ease 5.2s forwards; }
@keyframes dot-in { to { opacity: 1; } }

/* ---------- Stat strip ---------- */
.stat-strip { background: var(--pine-2); color: var(--cream); padding: 40px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); }
.stat-label { font-size: 14.5px; opacity: 0.85; margin-top: 4px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.icon.mist { background: var(--mist); }
.icon.blush { background: var(--blush); }
.icon.goldbg { background: #F3E7C4; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card a.more { display: inline-block; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--pine-2); }
.card a.more:hover { color: var(--gold); }

/* Alternating tinted sections, like the trifold panels */
.tint-mist { background: var(--mist); }
.tint-blush { background: var(--blush); }
.tint-cream2 { background: var(--cream-2); }
.tint-pine { background: var(--pine); color: var(--cream); }
.tint-pine h2, .tint-pine h3 { color: var(--cream); }
.tint-pine p { color: rgba(247, 241, 229, 0.85); }

/* ---------- Flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.flip { perspective: 1100px; height: 250px; cursor: pointer; }
.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-front {
  background: var(--pine);
  color: var(--cream);
  align-items: center;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.flip-front .role-icon { font-size: 34px; margin-bottom: 14px; }
.flip-front h3 { color: var(--cream); font-size: 1.25rem; }
.flip-front .tap-hint {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.flip-back {
  background: #fff;
  border: 1px solid var(--line);
  transform: rotateY(180deg);
  box-shadow: var(--shadow);
}
.flip-back h4 { font-size: 1.02rem; margin-bottom: 8px; color: var(--pine); }
.flip-back p { font-size: 14.2px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Checklist ---------- */
.notebook {
  background: #fff;
  border: 2px solid var(--pine);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow);
  position: relative;
  max-width: 640px;
}
.notebook::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 26px;
  width: 2px;
  background: var(--coral-soft);
}
.notebook h3 { margin-bottom: 18px; padding-left: 22px; }
.notebook label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0 9px 22px;
  cursor: pointer;
  border-bottom: 1px dashed var(--line);
  font-size: 15.5px;
}
.notebook label:last-child { border-bottom: none; }
.notebook input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pine-2); margin-top: 3px; }
.notebook label.done span { text-decoration: line-through; color: var(--ink-soft); }

/* ---------- Accordion ---------- */
.accordion { max-width: 780px; }
.acc-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.acc-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--pine);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
}
.acc-btn .chev { transition: transform 0.25s; color: var(--gold); font-size: 14px; }
.acc-item.open .acc-btn .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-panel-inner { padding: 0 24px 22px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  max-width: 620px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 7px; font-size: 15px; color: var(--pine); }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--cream-2);
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.form-note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.hidden-field { display: none; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual {
  background: var(--pine);
  border-radius: var(--radius-lg);
  padding: 46px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
}

/* Photo placeholders Caroline will replace */
.photo-slot {
  background: repeating-linear-gradient(45deg, var(--mist), var(--mist) 12px, #d2e0d8 12px, #d2e0d8 24px);
  border: 2px dashed var(--pine-2);
  border-radius: var(--radius-lg);
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--pine-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 700px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--gold); }
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -32px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 2.5px solid var(--pine);
}
.tl-item h3 { font-size: 1.12rem; margin-bottom: 5px; }
.tl-item p { color: var(--ink-soft); font-size: 15.5px; }
.tl-when { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ---------- Monitor ---------- */
.monitor-shell {
  background: #0B1512;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.35);
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.monitor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9DB5AC;
  border-bottom: 1px solid rgba(157, 181, 172, 0.2);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.vital-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 18px;
  padding: 13px 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.vital-row:hover, .vital-row.active { background: rgba(255, 255, 255, 0.05); border-color: rgba(201, 162, 39, 0.35); }
.vital-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.vital-name small { display: block; font-size: 9.5px; opacity: 0.65; letter-spacing: 0.06em; margin-top: 3px; text-transform: none; }
.vital-num { font-family: var(--font-mono); font-size: 32px; font-weight: 700; text-align: right; }
.vital-wave { height: 52px; width: 100%; }
.vital-wave canvas { width: 100%; height: 52px; display: block; }

.c-green { color: #4ADE80; }
.c-blue { color: #60C5FA; }
.c-red { color: #F87171; }
.c-yellow { color: #FBBF24; }
.c-white { color: #E7EFEA; }
.c-purple { color: #C4A7F7; }

.monitor-explain {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  min-height: 240px;
}
.monitor-explain h3 { margin-bottom: 10px; }
.monitor-explain .range-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--mist);
  color: var(--pine);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 10px 0 14px;
}
.monitor-explain ul { padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.monitor-explain li { margin-bottom: 7px; }

.alarm-flash { animation: alarm-blink 0.55s linear infinite; }
@keyframes alarm-blink { 0%, 55% { background: rgba(248, 113, 113, 0.16); } 56%, 100% { background: transparent; } }

.alarm-banner {
  display: none;
  background: var(--blush);
  border: 1.5px solid var(--coral);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 20px;
  font-size: 15.5px;
}
.alarm-banner.show { display: block; }
.alarm-banner strong { color: #B4432C; }

/* ---------- Instagram / social ---------- */
.ig-card {
  background: linear-gradient(140deg, var(--pine), var(--pine-3));
  border-radius: var(--radius-lg);
  color: var(--cream);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid rgba(201, 162, 39, 0.3);
}
.ig-handle { font-family: var(--font-mono); color: var(--gold); letter-spacing: 0.08em; font-size: 18px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--pine);
  color: rgba(247, 241, 229, 0.85);
  padding: 66px 0 34px;
  margin-top: 0;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.foot-brand img { width: 54px; margin-bottom: 16px; }
.foot-brand p { font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
footer.site h4 {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 700;
}
footer.site ul { list-style: none; }
footer.site li { margin-bottom: 10px; }
footer.site a { color: rgba(247, 241, 229, 0.85); text-decoration: none; font-size: 15px; }
footer.site a:hover { color: var(--gold); }
.foot-legal {
  border-top: 1px solid rgba(247, 241, 229, 0.18);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0.8;
}
.disclaimer-line { font-size: 13px; opacity: 0.75; margin-top: 14px; max-width: 40ch; line-height: 1.55; }

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

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 90% -20%, rgba(232, 146, 124, 0.14), transparent 60%),
    var(--pine);
  color: var(--cream);
  padding: 84px 0 70px;
}
.page-hero h1 { color: var(--cream); font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-hero .lede { color: rgba(247, 241, 229, 0.85); margin-top: 16px; }

/* ---------- Chapter tabs ---------- */
.chapter-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }
.chapter-tab {
  border: 1.5px solid var(--pine-2);
  background: transparent;
  color: var(--pine-2);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
}
.chapter-tab.active, .chapter-tab:hover { background: var(--pine-2); color: var(--cream); }
.chapter { display: none; }
.chapter.show { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--pine);
    flex-direction: column;
    padding: 22px 6%;
    gap: 18px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.3);
    align-items: flex-start;
  }
  nav.main.open { display: flex; }
  .menu-btn { display: block; }
  .vital-row { grid-template-columns: 96px 1fr 84px; gap: 10px; }
  .vital-num { font-size: 24px; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .stat-grid, .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- Hover life: every info block reacts ---------- */
.card, .acc-item, .tl-item, .stat-grid > div, .notebook li, .ig-card,
.form-card, .photo-slot, .flip, .chapter-tab, .range-pill, blockquote {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}

/* Cards tint mint and their headings warm to coral */
.card:hover { background: var(--mist); border-color: var(--gold); }
.card:hover h3 { color: var(--coral); }
.card:hover .icon { transform: scale(1.12) rotate(-4deg); }
.card .icon { transition: transform 0.25s ease; }

/* Stat strip numbers glow and lift */
.stat-grid > div { border-radius: var(--radius); padding: 14px 8px; cursor: default; }
.stat-grid > div:hover { background: rgba(201, 162, 39, 0.12); transform: translateY(-3px); }
.stat-grid > div:hover .stat-num { color: var(--coral); }
.stat-num { transition: color 0.25s ease; }

/* Timeline items highlight and their dot turns gold */
.tl-item { padding: 10px 14px; margin-left: -14px; border-radius: var(--radius); }
.tl-item:hover { background: var(--mist); }
.tl-item:hover::before { background: var(--gold); transform: scale(1.25); }
.tl-item::before { transition: background 0.25s ease, transform 0.25s ease; }
.tl-item:hover h3 { color: var(--coral); }
.tl-item h3 { transition: color 0.25s ease; }

/* Accordion rows tint on hover, gold edge slides in */
.acc-item { border-left: 3px solid transparent; }
.acc-item:hover { border-left-color: var(--gold); background: var(--cream); }
.acc-item:hover .acc-btn { color: var(--coral); }
.acc-btn { transition: color 0.25s ease; }

/* Notebook checklist lines */
.notebook li { border-radius: 8px; padding: 6px 10px; }
.notebook li:hover { background: var(--blush); color: var(--pine-2); }

/* Flip cards get a stronger lift and gold ring before the flip */
.flip:hover { transform: translateY(-5px); }
.flip:hover .flip-front { border-color: var(--gold); box-shadow: var(--shadow-lift); }
.flip-front { transition: border-color 0.25s ease, box-shadow 0.25s ease; }

/* Photo slots, Instagram card, forms */
.photo-slot:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-3px); }
.ig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold); }
.form-card:hover { box-shadow: var(--shadow-lift); }

/* Pull quotes warm up */
blockquote:hover { background: var(--blush); border-left-color: var(--coral); }

/* Range pills on the monitor page */
.range-pill:hover { background: var(--gold); color: var(--pine); }

/* Footer links slide */
footer.site a { transition: color 0.2s ease, padding-left 0.2s ease; }
footer.site .foot-grid a:hover { padding-left: 5px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card, .tl-item, .stat-grid > div, .flip, .photo-slot, .ig-card { transition: none; }
}

/* ---------- Background video support (drop-in ready) ---------- */
.video-hero { position: relative; overflow: hidden; }
.video-hero video.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-hero .video-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 38, 32, 0.82), rgba(15, 38, 32, 0.68));
  z-index: 1;
}
.video-hero > .container { position: relative; z-index: 2; }

/* ============================================================
   V2 UPGRADE: professional typography, textures, video heroes,
   triage diagram, ICU room, quiz, 3D monitor, roadmap
   ============================================================ */

:root {
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --shadow-deep: 0 30px 80px rgba(10, 28, 24, 0.35);
}

body { font-family: var(--font-body); letter-spacing: 0.005em; font-size: 16.5px; }
h1, h2, h3, .stat-num { letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.65; }
p { line-height: 1.72; }

/* Subtle professional grain + gradient depth on tinted sections */
.tint-pine, .hero, .stat-strip {
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, 0.10), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(232, 146, 124, 0.08), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Section rhythm */
section.pad { padding: 92px 0; }
.section-head { max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); }

/* ---------- Video hero ---------- */
.video-hero { position: relative; overflow: hidden; }
.video-hero video.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(0.9);
}
.video-hero .video-tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(15, 33, 28, 0.90) 20%, rgba(15, 33, 28, 0.62) 60%, rgba(15, 33, 28, 0.82));
}
.video-hero > .container, .video-hero .ekg-band { position: relative; z-index: 2; }

/* ---------- Founder portrait ---------- */
.portrait-ring {
  width: 210px; height: 210px; border-radius: 50%;
  padding: 7px;
  background: conic-gradient(var(--gold), var(--coral), var(--gold));
  box-shadow: var(--shadow-lift);
  flex-shrink: 0;
}
.portrait-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 5px solid var(--cream); }
.founder-flex { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }

/* ---------- Dropdown nav ---------- */
.nav-drop { position: relative; }
.nav-drop > a::after { content: " \25BE"; font-size: 10px; color: var(--gold); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  background: var(--pine-2); border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 12px; padding: 8px; min-width: 215px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
  box-shadow: var(--shadow-deep); z-index: 60;
}
.nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel, .nav-drop.open .drop-panel {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.drop-panel a { display: block; padding: 10px 14px; border-radius: 8px; border-bottom: none !important; font-size: 14.5px; }
.drop-panel a:hover { background: rgba(201, 162, 39, 0.15); color: var(--gold); }
.drop-panel a span { display: block; font-size: 11.5px; opacity: 0.65; font-weight: 400; margin-top: 2px; }

/* ---------- Triage (Who do I ask) ---------- */
.triage-wrap { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 40px; align-items: start; }
.concern-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: all 0.22s ease; font-family: var(--font-body);
}
.chip:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-2px); }
.chip.on { background: var(--pine-2); color: var(--cream); border-color: var(--pine-2); }
.triage-svg { width: 100%; height: auto; }
.triage-svg .role-node { cursor: pointer; transition: opacity 0.3s; }
.triage-svg .role-node circle.halo { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; transition: opacity 0.3s; }
.triage-svg .role-node.lit circle.halo { opacity: 1; animation: haloPulse 1.6s ease-in-out infinite; }
.triage-svg .role-node.dim { opacity: 0.28; }
.triage-svg .beam { stroke: var(--gold); stroke-width: 2.5; fill: none; stroke-dasharray: 8 7; opacity: 0; }
.triage-svg .beam.lit { opacity: 1; animation: beamFlow 0.9s linear infinite; }
@keyframes haloPulse { 0%, 100% { stroke-width: 2; } 50% { stroke-width: 5; } }
@keyframes beamFlow { to { stroke-dashoffset: -15; } }
.triage-answer {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  position: sticky; top: 90px;
}
.triage-answer .role-tag {
  display: inline-block; background: var(--pine-2); color: var(--gold);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.triage-answer .say-it { background: var(--mist); border-radius: 10px; padding: 14px 16px; font-style: italic; margin-top: 14px; color: var(--pine-2); }

/* ---------- ICU room hotspots ---------- */
.room-wrap { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 36px; align-items: start; }
.room-svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); }
.hotspot { cursor: pointer; }
.hotspot .dot { fill: var(--coral); stroke: #fff; stroke-width: 2.5; transition: all 0.25s; }
.hotspot .ring { fill: none; stroke: var(--coral); stroke-width: 2; opacity: 0.55; animation: haloPulse 2s ease-in-out infinite; }
.hotspot text { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 13px; text-anchor: middle; pointer-events: none; }
.hotspot:hover .dot, .hotspot.on .dot { fill: var(--gold); r: 15; }
.room-panel { position: sticky; top: 90px; }
.room-item { display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid var(--coral); }
.room-item.show { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.room-item h3 { color: var(--pine-2); }
.room-item .hear { background: var(--blush); border-radius: 10px; padding: 12px 15px; font-size: 14.5px; margin-top: 12px; }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.quiz-top { background: var(--pine); color: var(--cream); padding: 22px 30px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz-top .qmeta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.quiz-bar { height: 7px; background: rgba(201, 162, 39, 0.18); }
.quiz-bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--coral)); transition: width 0.4s ease; }
.quiz-body { padding: 34px; }
.quiz-q { font-family: var(--font-display); font-size: 1.4rem; color: var(--pine-2); margin-bottom: 22px; }
.quiz-opts { display: grid; gap: 12px; }
.qopt {
  text-align: left; border: 1.5px solid var(--line); background: var(--cream-2);
  padding: 15px 18px; border-radius: 12px; font-size: 15.5px; cursor: pointer;
  transition: all 0.2s ease; font-family: var(--font-body); font-weight: 500;
}
.qopt:hover { border-color: var(--gold); background: var(--mist); transform: translateX(4px); }
.qopt.correct { background: #E4F2E8; border-color: #2E7D4F; color: #1C5233; }
.qopt.wrong { background: var(--blush); border-color: var(--coral); color: #8A3B26; }
.qopt:disabled { cursor: default; }
.quiz-explain { margin-top: 18px; background: var(--mist); border-left: 4px solid var(--gold); border-radius: 10px; padding: 15px 18px; font-size: 15px; display: none; }
.quiz-explain.show { display: block; animation: fadeUp 0.3s ease; }
.quiz-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.mode-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; cursor: pointer; background: #fff; transition: all 0.22s; text-align: left; font-family: var(--font-body); }
.mode-card:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-4px); box-shadow: var(--shadow); }
.mode-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mode-card p { font-size: 13.5px; color: var(--ink-soft); }
.mode-card .lvl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.result-ring-wrap { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.cat-bars { flex: 1; min-width: 240px; display: grid; gap: 12px; }
.cat-bar { font-size: 13.5px; }
.cat-bar .track { height: 9px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-top: 5px; }
.cat-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--coral)); border-radius: 999px; transition: width 0.8s ease; }

/* ---------- 3D monitor ---------- */
.stage3d { perspective: 1300px; }
.mon3d { transform-style: preserve-3d; transition: transform 0.15s ease-out; will-change: transform; }
.mon3d .monitor-shell { position: relative; }
.mon3d .monitor-shell::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10), transparent 35%);
  pointer-events: none;
}
.depth-shadow { height: 34px; margin: 10px auto 0; width: 78%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); filter: blur(4px); }
.hint-3d { text-align: center; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---------- Beating heart diagram ---------- */
.heart-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.heart-svg { width: 100%; max-width: 430px; margin: 0 auto; display: block; }
.heart-svg .chamber { transition: opacity 0.3s; cursor: pointer; }
.heart-svg .chamber.dim { opacity: 0.35; }
.heart-beat { animation: heartPump 1s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes heartPump { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.045); } 24% { transform: scale(0.985); } 36% { transform: scale(1.02); } 50% { transform: scale(1); } }
.flow-dot { animation: flowMove 3s linear infinite; }
.heart-legend { display: grid; gap: 10px; }
.leg-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all 0.22s; font-size: 14.5px; }
.leg-item:hover, .leg-item.on { background: var(--mist); border-color: var(--gold); transform: translateX(4px); }
.leg-swatch { width: 15px; height: 15px; border-radius: 4px; flex-shrink: 0; margin-top: 3px; }

/* ---------- Roadmap ---------- */
.roadmap { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: phase; }
.roadmap::before { content: ""; position: absolute; top: 33px; left: 6%; right: 6%; height: 2.5px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 19px); }
.phase { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 52px 20px 22px; transition: all 0.25s; }
.phase::before {
  counter-increment: phase; content: counter(phase);
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--pine-2); color: var(--gold); border: 2.5px solid var(--gold);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem;
}
.phase:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.phase h3 { font-size: 1.02rem; text-align: center; margin-bottom: 8px; }
.phase p { font-size: 13.8px; color: var(--ink-soft); }
.phase .when { display: block; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }

/* ---------- Big pull-quote band ---------- */
.quote-band { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-band p.q { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.35; color: var(--cream); }
.quote-band p.q em { color: var(--gold); font-style: normal; }

@media (max-width: 940px) {
  .triage-wrap, .room-wrap, .heart-wrap { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap::before { display: none; }
  .triage-answer, .room-panel { position: static; }
}
@media (max-width: 620px) { .roadmap { grid-template-columns: 1fr; } }

/* ============================================================
   V3: A to Z conditions, hospitals, intent router, stages,
   trust strip, photo bands
   ============================================================ */

/* Intent router */
.intent-list { display: grid; gap: 12px; max-width: 820px; }
.intent {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 18px 24px; text-decoration: none; color: var(--ink);
  font-size: 1.04rem; font-weight: 600; transition: all 0.22s ease;
}
.intent:hover { border-color: var(--gold); background: var(--mist); transform: translateX(6px); }
.intent .arrow { color: var(--gold); font-size: 1.2rem; transition: transform 0.22s; }
.intent:hover .arrow { transform: translateX(4px); }
.intent span.sub { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 3px; }

/* Stage timeline */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stage {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 22px; text-decoration: none; color: var(--ink);
  transition: all 0.25s ease; overflow: hidden;
}
.stage::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--gold), var(--coral)); }
.stage:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--gold); background: var(--mist); }
.stage .stage-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }
.stage h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.stage p { font-size: 14px; color: var(--ink-soft); }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; align-items: center; padding: 22px 0; border-top: 1px solid rgba(201,162,39,0.3); border-bottom: 1px solid rgba(201,162,39,0.3); }
.trust-strip span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); opacity: 0.9; }
.trust-strip span b { color: var(--gold); }

/* Photo bands */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-deep); position: relative; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.photo-frame:hover img { transform: scale(1.04); }
.photo-frame .credit { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 22px 14px; background: linear-gradient(transparent, rgba(15,33,28,0.85)); color: var(--cream); font-size: 13.5px; }
.split-photo { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }

/* Portrait video */
.portrait-video { width: 100%; max-width: 330px; border-radius: 22px; box-shadow: var(--shadow-deep); display: block; margin: 0 auto; }

/* A to Z letters */
.az-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 34px; }
.az-letter {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; font-family: var(--font-display); font-size: 1.08rem; color: var(--pine-2);
  cursor: pointer; transition: all 0.2s ease; display: grid; place-items: center;
}
.az-letter:hover:not(:disabled) { border-color: var(--gold); background: var(--mist); transform: translateY(-3px); }
.az-letter.on { background: var(--pine-2); color: var(--gold); border-color: var(--pine-2); }
.az-letter:disabled { opacity: 0.28; cursor: default; }
.cond-search { width: 100%; max-width: 460px; padding: 14px 20px; border: 1.5px solid var(--line); border-radius: 999px; font-family: var(--font-body); font-size: 15.5px; background: #fff; }
.cond-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,39,0.15); }
.cond-list { display: grid; gap: 16px; margin-top: 30px; }
.cond {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 24px 26px; transition: all 0.22s;
}
.cond:hover { background: var(--mist); transform: translateX(4px); box-shadow: var(--shadow); }
.cond h3 { color: var(--pine-2); margin-bottom: 4px; }
.cond .also { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.cond dl { display: grid; gap: 8px; margin-top: 10px; }
.cond dt { font-weight: 700; font-size: 13.5px; color: var(--pine-2); }
.cond dd { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 4px; }
.cond-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }

/* Hospital cards */
.hosp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.hosp {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: all 0.25s ease; display: flex; flex-direction: column; gap: 10px;
}
.hosp:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.hosp .h-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.hosp h3 { font-size: 1.18rem; }
.hosp p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.hosp .h-facts { display: flex; flex-wrap: wrap; gap: 7px; }
.hosp .h-facts span { background: var(--mist); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--pine-2); }
.hosp:hover .h-facts span { background: #fff; }
.hosp.featured { grid-column: 1 / -1; border: 2px solid var(--gold); background: linear-gradient(135deg, #fff, var(--cream-2)); display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
@media (max-width: 860px) {
  .stages { grid-template-columns: 1fr 1fr; }
  .split-photo, .hosp.featured { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }

/* ============================================================
   V4: bigger portrait, lighter videos, true 3D, locked dropdowns,
   overview page, Instagram icon
   ============================================================ */

/* Bigger founder portrait */
.portrait-ring { width: 320px; height: 320px; padding: 9px; }
@media (max-width: 700px) { .portrait-ring { width: 240px; height: 240px; } }

/* Lighter video tints so the footage shows through */
.video-hero .video-tint {
  background: linear-gradient(120deg, rgba(15, 33, 28, 0.78) 12%, rgba(15, 33, 28, 0.40) 58%, rgba(15, 33, 28, 0.60));
}
.page-hero.video-hero .video-tint {
  background: linear-gradient(120deg, rgba(15, 33, 28, 0.74) 15%, rgba(15, 33, 28, 0.38) 62%, rgba(15, 33, 28, 0.58));
}

/* Dropdowns: hover bridge + click lock */
.nav-drop::after { content: ""; position: absolute; left: -14px; right: -14px; top: 100%; height: 18px; }
.drop-panel { transition-delay: 0.05s; }
.nav-drop.open > a { color: var(--gold); }

/* True 3D stage */
.stage3d { perspective: 1100px; }
.mon3d { position: relative; transform-style: preserve-3d; transition: transform 0.12s linear; cursor: grab; }
.mon3d.dragging { cursor: grabbing; transition: none; }
.mon3d .face { position: absolute; background: #081109; transform-style: preserve-3d; }
.mon3d .face.left   { top: 0; bottom: 0; left: 0; width: 46px; transform-origin: left center; transform: rotateY(90deg); border-radius: 8px 0 0 8px; background: linear-gradient(#0d1a14, #060d09); }
.mon3d .face.right  { top: 0; bottom: 0; right: 0; width: 46px; transform-origin: right center; transform: rotateY(-90deg); border-radius: 0 8px 8px 0; background: linear-gradient(#0d1a14, #050b08); }
.mon3d .face.top    { left: 0; right: 0; top: 0; height: 46px; transform-origin: center top; transform: rotateX(-90deg); background: #101f18; }
.mon3d .face.bottom { left: 0; right: 0; bottom: 0; height: 46px; transform-origin: center bottom; transform: rotateX(90deg); background: #040906; }
.mon3d .face.back   { inset: 0; transform: translateZ(-46px); background: #0a1510; border-radius: var(--radius-lg); }
.mon3d .monitor-shell { position: relative; transform: translateZ(0); }
.floor-shadow {
  height: 42px; margin: 26px auto 0; width: 82%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.5), rgba(0,0,0,0.18) 60%, transparent);
  filter: blur(6px); transition: transform 0.12s linear, opacity 0.12s;
}

/* Tilt for SVG panels with a shadow underneath */
.tilt3d { perspective: 1100px; }
.tilt3d > .tilt-inner { transform-style: preserve-3d; transition: transform 0.15s ease-out; }
.tilt3d:hover > .tilt-inner { box-shadow: none; }

/* Faster micro animation for beams and heart */
.heart-beat { animation-duration: 0.85s; }
.triage-svg .beam.lit { animation-duration: 0.55s; }

/* Overview page */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.ov {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; text-decoration: none; color: var(--ink); transition: all 0.25s ease; overflow: hidden;
}
.ov::after { content: "\2192"; position: absolute; right: 22px; top: 22px; color: var(--gold); font-size: 1.25rem; transition: transform 0.22s; }
.ov:hover { border-color: var(--gold); background: var(--mist); transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.ov:hover::after { transform: translateX(5px); }
.ov .ov-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.ov h3 { margin: 8px 0; font-size: 1.22rem; }
.ov p { font-size: 14.5px; color: var(--ink-soft); }
.ov .ov-stat { display: inline-block; margin-top: 14px; background: var(--pine-2); color: var(--gold); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; }

/* Instagram icon */
.ig-link { display: inline-flex; align-items: center; gap: 10px; }
.ig-link svg { width: 22px; height: 22px; transition: transform 0.2s; }
.ig-link:hover svg { transform: scale(1.15) rotate(-4deg); }
.foot-social { display: flex; gap: 14px; margin-top: 14px; }
.foot-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(201,162,39,0.4); transition: all 0.22s; }
.foot-social a:hover { background: var(--gold); border-color: var(--gold); }
.foot-social a:hover svg path { fill: var(--pine); }

/* Mount Sinai identification card */
.mssn-logo-card {
  background: #fff; border: 1.5px dashed var(--gold); border-radius: var(--radius);
  padding: 22px; text-align: center;
}
.mssn-logo-card img { max-width: 210px; width: 100%; filter: grayscale(35%); opacity: 0.92; }
.mssn-logo-card p { font-size: 11.5px; color: var(--ink-soft); margin-top: 10px; line-height: 1.5; }

/* ============================================================
   V5: Sora + Manrope type system, showcase band, polish pack
   ============================================================ */
:root {
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}
body { font-family: var(--font-body); font-weight: 500; }
h1, h2, h3, h4, .stat-num, .quiz-q, .stage h3, .ov h3, .hosp h3 { font-family: var(--font-display); font-weight: 700; }
h1 { font-weight: 800; letter-spacing: -0.03em; }
.btn, .chip, .qopt, .az-letter { font-family: var(--font-body); font-weight: 700; }
::selection { background: var(--gold); color: var(--pine); }

/* Scroll progress bar */
#scrollbar { position: fixed; top: 0; left: 0; height: 3.5px; width: 0; background: linear-gradient(90deg, var(--gold), var(--coral)); z-index: 300; transition: width 0.1s linear; }

/* Back to top */
#toTop {
  position: fixed; right: 26px; bottom: 26px; width: 52px; height: 52px; border-radius: 50%;
  background: var(--pine-2); color: var(--gold); border: 1.5px solid var(--gold);
  font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 250;
  box-shadow: var(--shadow-lift);
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--gold); color: var(--pine); transform: translateY(-4px); }

/* Body fade in */
body { animation: pageIn 0.5s ease; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Dark showcase band (Dala style) */
.showcase { background: #0F211C; color: var(--cream); position: relative; overflow: hidden; }
.showcase .container { position: relative; z-index: 2; }
.showcase h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; color: var(--cream); }
.showcase h2 em { color: var(--gold); font-style: normal; }
.showcase .kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; }
.showcase p.big { font-size: 1.05rem; color: rgba(247, 241, 229, 0.78); line-height: 1.75; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; }
#pulseField { position: absolute; inset: 0; z-index: 1; opacity: 0.9; }
.show-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border: 1px solid rgba(201,162,39,0.25); }
.show-photo img { display: block; width: 100%; transition: transform 0.6s; }
.show-photo:hover img { transform: scale(1.05); }
@media (max-width: 880px) { .show-row { grid-template-columns: 1fr; gap: 30px; padding: 46px 0; } }

/* ============================================================
   V5: Sora + Manrope type system, dark showcase, polish pack
   ============================================================ */
:root {
  --font-display: "Sora", "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Arial, sans-serif;
}
body { font-family: var(--font-body); }
h1, h2, h3, h4, .stat-num, .quiz-q, blockquote, .quote-band p.q { font-family: var(--font-display); }
h1 { font-weight: 800; letter-spacing: -0.03em; }
h2 { font-weight: 700; letter-spacing: -0.025em; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.btn, .chip, .qopt, .mode-card, .az-letter { font-family: var(--font-body); font-weight: 700; }

::selection { background: rgba(201, 162, 39, 0.35); color: var(--pine); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { animation: pageIn 0.5s ease both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* Scroll progress bar */
#scrollBar { position: fixed; top: 0; left: 0; height: 3.5px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--gold), var(--coral)); }

/* Back to top */
#toTop {
  position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 50%;
  background: var(--pine); color: var(--gold); border: 1.5px solid rgba(201,162,39,0.5);
  font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transition: all 0.3s;
  z-index: 150; box-shadow: var(--shadow-lift);
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { background: var(--gold); color: var(--pine); transform: translateY(-4px); }

/* Dark showcase (Dala-style alternating bands) */
.dark-show { background: #0E1F1A; color: var(--cream); position: relative; overflow: hidden; }
.dark-show .container { position: relative; z-index: 2; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 66px 0; }
.show-row h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; color: var(--cream); }
.show-row h2 em { font-style: normal; color: var(--gold); }
.show-row p { color: rgba(247, 241, 229, 0.78); margin-top: 16px; font-size: 1.05rem; }
.show-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); }
#pulseCanvas { width: 100%; height: 420px; display: block; }
.show-visual { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-deep); }
@media (max-width: 860px) { .show-row { grid-template-columns: 1fr; padding: 44px 0; } }

/* ============================================================
   V6: Editorial type system (Newsreader + Public Sans),
   hospital card photos, refined details
   ============================================================ */
:root {
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
}
body { font-family: var(--font-body); font-size: 16.5px; letter-spacing: 0; }
h1, h2, h3, h4, .stat-num, .quiz-q, blockquote, .quote-band p.q { font-family: var(--font-display); }
h1 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-weight: 600; letter-spacing: -0.015em; }
h3 { font-weight: 600; }
.eyebrow, .show-kicker, .h-kicker, .stage-k, .ov-k { font-family: var(--font-mono); }
.btn { font-family: var(--font-body); font-weight: 700; letter-spacing: 0.01em; }
.lede { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.12rem, 1.7vw, 1.3rem); line-height: 1.6; font-style: italic; opacity: 0.94; }
.nav-drop .drop-panel a, nav.main a { font-family: var(--font-body); }

/* Editorial paragraph rhythm */
p { line-height: 1.75; }
.section-head h2 { max-width: 640px; }

/* Hospital cards with photos */
.hosp .photo-frame { border-radius: var(--radius); box-shadow: var(--shadow); }
.hosp:hover .photo-frame img { transform: scale(1.05); }

/* Hero logo centered */
.hero-logo-lockup img { margin: 0 auto; }
