/* ==========================================================================
   Little Nomads Education — Warm Pacific Editorial + 3D Terrain Concept
   Option C: Calm 3-Tone Harmony (Warm Birch, Deep Cedar, Pacific Moss)
   Sole Action Accent: Campfire Coral (#DE6236)
   ========================================================================== */

:root {
  --birch: #FAF6EE;
  --linen: #F2ECE0;
  --linen-deep: #E6DDD0;
  --cedar: #172B1B;
  --cedar-soft: #223D27;
  --cedar-deep: #102013;
  --moss: #406224;
  --moss-dark: #2F4A19;
  --moss-tint: #EAEFE5;
  --sunlight: #F3CF86;
  --coral: #DE6236;
  --coral-dark: #B94820;
  --ink: #1B261C;
  --stone: #566358;
  --hairline: rgba(23, 43, 27, 0.11);
  --hairline-strong: rgba(23, 43, 27, 0.22);
  --white: #FFFFFF;
  --danger: #B83527;
  --danger-soft: #FDF0EE;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-quiet: 0 12px 34px rgba(23, 43, 27, 0.06);
  --shadow-float: 0 24px 60px rgba(16, 32, 19, 0.14);
  --container-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

html {
  scroll-padding-top: 92px;
  background-color: var(--birch);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  position: relative;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.04rem;
  line-height: 1.66;
  color: var(--ink);
  background: var(--birch);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, .serif {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.024em;
  line-height: 1.09;
  margin-top: 0;
  color: var(--cedar);
}

p {
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

:where(a:any-link, button, input, select, textarea, [tabindex="0"]):focus-visible {
  outline: 3px solid var(--sunlight);
  outline-offset: 3px;
}

h1[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus {
  outline: none;
}

/* Visually Hidden & Skip Link */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  background: var(--cedar);
  color: var(--birch);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-float);
}

.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 1.75rem);
  }
}

.section {
  padding-block: clamp(4.75rem, 8.5vw, 7.5rem);
  position: relative;
}

.section-linen {
  background: var(--linen);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.9rem;
}

/* Buttons — Single Action Color Discipline */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-block-size: 50px;
  padding: 0.78rem 1.75rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

@media (pointer: coarse) {
  .btn {
    min-block-size: 52px;
  }
}

@media (max-width: 440px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(222, 98, 54, 0.3);
}

.btn-coral:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(185, 72, 32, 0.34);
}

.btn-cedar {
  background: var(--cedar);
  color: var(--birch);
}

.btn-cedar:hover {
  background: var(--cedar-soft);
  transform: translateY(-1px);
}

.btn-ghost-light {
  background: rgba(250, 246, 238, 0.1);
  border-color: rgba(250, 246, 238, 0.38);
  color: var(--birch);
  backdrop-filter: blur(10px);
}

.btn-ghost-light:hover {
  background: rgba(250, 246, 238, 0.2);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--cedar);
}

.btn-ghost-dark:hover {
  background: var(--moss-tint);
  border-color: var(--moss);
}

.btn-sm {
  min-block-size: 42px;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Floating Transparent Header -> Frosted Birch on Scroll
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  color: var(--birch);
  transition: background-color 0.32s ease, color 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  border-bottom: 1px solid transparent;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 86px;
  transition: height 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(16px);
  color: var(--cedar);
  border-bottom-color: var(--hairline);
  box-shadow: 0 8px 28px rgba(23, 43, 27, 0.06);
}

.site-header.is-scrolled .site-header-inner {
  height: 68px;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    @keyframes nav-shrink {
      to { height: 68px; }
    }
    .site-header-inner {
      animation: nav-shrink auto linear both;
      animation-timeline: scroll(block root);
      animation-range: 0px 140px;
    }
  }
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logos {
  position: relative;
  width: 42px;
  height: 37px;
  flex-shrink: 0;
}

.brand-logos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.brand-logo-dark { opacity: 0; }
.site-header.is-scrolled .brand-logo-light { opacity: 0; }
.site-header.is-scrolled .brand-logo-dark { opacity: 1; }

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.1rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  opacity: 0.88;
  white-space: nowrap;
  padding: 0.4rem 0;
  transition: opacity 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  opacity: 1;
}

.primary-nav a[aria-current="page"] {
  font-weight: 700;
  position: relative;
}

.primary-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--sunlight);
}

.site-header.is-scrolled .primary-nav a[aria-current="page"]::after {
  background: var(--coral);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-trigger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1.5px solid rgba(250, 246, 238, 0.4);
  background: rgba(250, 246, 238, 0.12);
  color: inherit;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header.is-scrolled .menu-trigger {
  border-color: var(--hairline-strong);
  background: var(--white);
}

@media (max-width: 860px) {
  .primary-nav {
    display: none;
  }
  .menu-trigger {
    display: inline-flex;
  }
}

@media (max-width: 500px) {
  .header-actions .btn-coral {
    display: none;
  }
}

/* ==========================================================================
   Native Scroll-Snap Mobile Drawer (<dialog class="Drawer">)
   ========================================================================== */
.Drawer {
  --drawer-width: min(20.5rem, 84dvw, 100dvw - 24px);
  --drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.Drawer::backdrop {
  background: #0B180D;
  opacity: calc(var(--drawer-backdrop) * 0.68);
}

.Drawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: var(--drawer-width) 100%;
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.Drawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .Drawer-scroller {
    scroll-behavior: smooth;
  }
}

.Drawer-scroller::after {
  content: '';
  scroll-snap-align: end;
  scroll-initial-target: nearest;
}

.Drawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background: var(--cedar);
  color: var(--birch);
  overflow-y: auto;
  scroll-snap-align: start;
  scrollbar-width: none;
  padding: 1.5rem 1.45rem 2rem;
}

@supports (animation-timeline: scroll()) {
  .Drawer {
    timeline-scope: --drawer-fade;
    animation: fade-drawer-backdrop linear both;
    animation-timeline: --drawer-fade;
  }
  .Drawer-scroller {
    scroll-timeline: --drawer-fade x;
  }
  @property --drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }
  @keyframes fade-drawer-backdrop {
    0% { --drawer-backdrop: 1; }
    100% { --drawer-backdrop: 0; }
  }
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(250, 246, 238, 0.14);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-brand img { width: 36px; }

.drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, 0.25);
  background: rgba(250, 246, 238, 0.08);
  color: var(--birch);
  font-size: 1.2rem;
  cursor: pointer;
}

.drawer-nav {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drawer-nav a {
  display: block;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  color: var(--birch);
  text-decoration: none;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
}

.drawer-nav a:hover {
  background: rgba(250, 246, 238, 0.08);
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 246, 238, 0.14);
}

/* ==========================================================================
   Unified Right-Edge Swipeable Side Drawer (<dialog class="SideDrawer">)
   Native Scroll-Snap Top-Layer Drawer (Matches Left Mobile Menu Pattern)
   ========================================================================== */
.SideDrawer {
  --side-drawer-width: min(560px, 92dvw, 100dvw - 16px);
  --side-drawer-backdrop: 0;

  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.SideDrawer::backdrop {
  background: #0B180D;
  opacity: calc(var(--side-drawer-backdrop) * 0.64);
}

.SideDrawer-scroller {
  position: relative;
  display: grid;
  grid-template-columns: 100% var(--side-drawer-width);
  overflow-x: scroll;
  overscroll-behavior: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.SideDrawer-scroller::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .SideDrawer-scroller {
    scroll-behavior: smooth;
  }
}

.SideDrawer-scroller::before {
  content: '';
  scroll-snap-align: start;
  scroll-initial-target: nearest;
}

.SideDrawer-sheet {
  display: flex;
  flex-direction: column;
  height: 100svh;
  background: var(--birch);
  color: var(--ink);
  overflow: hidden;
  scroll-snap-align: end;
  box-shadow: -24px 0 64px rgba(10, 22, 12, 0.28);
}

@supports (animation-timeline: scroll()) {
  .SideDrawer {
    timeline-scope: --side-drawer-fade;
    animation: fade-side-drawer-backdrop linear both;
    animation-timeline: --side-drawer-fade;
  }
  .SideDrawer-scroller {
    scroll-timeline: --side-drawer-fade x;
  }
  @property --side-drawer-backdrop {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
  }
  @keyframes fade-side-drawer-backdrop {
    0% { --side-drawer-backdrop: 0; }
    100% { --side-drawer-backdrop: 1; }
  }
}

.sd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.35rem;
  background: var(--birch);
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.sd-topbar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd-topbar-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.sd-nav-btn,
.sd-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--linen);
  color: var(--cedar);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.sd-nav-btn:hover,
.sd-close-btn:hover {
  background: var(--linen-deep);
}

.sd-close-btn {
  background: var(--cedar);
  color: var(--birch);
  font-size: 1.2rem;
}

.sd-close-btn:hover {
  background: var(--cedar-soft);
  transform: scale(1.04);
}

.sd-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 0 0 2.5rem;
}

.sd-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 224px;
  background: var(--cedar-deep);
  overflow: hidden;
}

.sd-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sd-hero-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 0.9rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 32, 19, 0.78);
  backdrop-filter: blur(8px);
  color: var(--sunlight);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sd-content {
  padding: 1.25rem 1.55rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.92rem;
}

.sd-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: -0.55rem;
}

.sd-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  line-height: 1.12;
  color: var(--cedar);
  margin: 0;
}

.sd-title:focus {
  outline: none;
}

.sd-lead {
  font-size: 1rem;
  color: var(--stone);
  line-height: 1.62;
  margin: 0;
}

.sd-prose p {
  font-size: 0.98rem;
  color: var(--stone);
  line-height: 1.66;
  margin: 0 0 0.85rem;
}

.sd-prose p:last-child {
  margin-bottom: 0;
}

.sd-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem 1.25rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.sd-fact span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.22rem;
}

.sd-fact strong {
  display: block;
  font-size: 0.94rem;
  color: var(--cedar);
  line-height: 1.35;
}

.sd-callout {
  border-left: 2.5px solid var(--moss);
  padding: 0.25rem 0 0.25rem 1.15rem;
}

.sd-callout strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss-dark);
  margin-bottom: 0.28rem;
}

.sd-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cedar);
  line-height: 1.56;
}

.sd-bio-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.sd-bio-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.sd-bio-monogram {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: var(--cedar);
  color: var(--sunlight);
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  flex-shrink: 0;
}

.sd-bio-highlight {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cedar);
  line-height: 1.38;
}

.sd-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

.sd-text-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--moss-dark);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(47, 74, 25, 0.35);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.sd-text-link:hover {
  color: var(--cedar);
  border-bottom-color: var(--cedar);
}

.sd-swipe-hint {
  margin-top: 0.4rem;
  font-size: 0.74rem;
  color: var(--stone);
  opacity: 0.78;
}

/* Journal Deep-Dive Privacy Breakdown Inside Side Drawer */
.sd-journal-divider {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0.5rem 0;
}

.sd-journal-section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  color: var(--cedar);
  margin: 0;
}

.sd-privacy-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 0.25rem;
}

.sd-privacy-item {
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.sd-privacy-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.sd-privacy-item h4 {
  font-size: 1.06rem;
  margin: 0 0 0.28rem;
  color: var(--cedar);
}

.sd-privacy-item p {
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.58;
  margin: 0;
}

@media (max-width: 560px) {
  .sd-topbar {
    padding: 0.85rem 1.05rem;
  }
  .sd-content {
    padding: 1.25rem 1.15rem 0;
  }
}

/* ==========================================================================
   BEAT 1: PURE ATMOSPHERE 100svh 3D-PARALLAX HERO
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: clamp(640px, 100svh, 940px);
  display: flex;
  align-items: center;
  overflow: clip;
  background: var(--cedar-deep);
  color: var(--birch);
  perspective: 1200px;
  view-timeline: --hero-depth;
}

.hero-backdrop {
  position: absolute;
  inset: -7% -4%;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 24% 48%, rgba(16, 32, 19, 0.68) 0%, rgba(16, 32, 19, 0.24) 70%),
    linear-gradient(180deg, rgba(16, 32, 19, 0.48) 0%, rgba(16, 32, 19, 0.12) 38%, rgba(16, 32, 19, 0.64) 100%);
  pointer-events: none;
}

.hero-motes-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Native CSS Scroll-Driven Parallax on Hero Backdrop */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes hero-depth-glide {
      from { transform: translate3d(0, 0, 0) scale(1.04); }
      to { transform: translate3d(0, 110px, 0) scale(1.1); }
    }
    .hero-backdrop-scroll {
      position: absolute;
      inset: 0;
      animation: hero-depth-glide linear both;
      animation-timeline: --hero-depth;
      animation-range: exit-crossing 0% exit 100%;
    }
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-block: 7rem 5.5rem;
  max-width: 47rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.82);
  margin-bottom: 1.45rem;
}

.hero-title {
  font-size: clamp(2.65rem, 6.1vw, 4.9rem);
  font-weight: 600;
  line-height: 1.03;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 12px 36px rgba(10, 22, 12, 0.28);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--sunlight);
}

.hero-sub {
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
  line-height: 1.6;
  color: rgba(250, 246, 238, 0.88);
  max-width: 35rem;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(250, 246, 238, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.75), rgba(250, 246, 238, 0));
}

/* ==========================================================================
   Scroll Reveal (Static Safe Default, Opt-in Motion)
   ========================================================================== */
.reveal-soft {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes quiet-rise {
      from {
        opacity: 0.12;
        transform: translate3d(0, 34px, 0);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }
    .reveal-soft {
      animation: quiet-rise linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 58%;
    }
  }
}

.reveal-soft.js-pending {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-soft.js-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Subtle Tactile 3D Perspective Card Tilt */
.tilt-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  box-shadow: var(--shadow-float);
}

.tilt-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 250, 235, 0.22), transparent 58%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.tilt-frame:hover::after {
  opacity: 1;
}

/* ==========================================================================
   BEAT 2: INTERACTIVE 1-9 GROWTH SLIDER & LIVING LITTLE NOMAD CHARACTER
   ========================================================================== */
.stage-header {
  max-width: 42rem;
  margin-bottom: 2.4rem;
}

.stage-header h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  margin-bottom: 0.7rem;
}

.stage-header p {
  color: var(--stone);
  font-size: 1.06rem;
  margin-bottom: 0;
}

.growth-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 0;
}

/* Left: Open Sunlit Wooden Growth-Chart (No Box!) */
.growth-stage-card {
  position: relative;
  border-radius: 0;
  background: radial-gradient(circle at 54% 62%, rgba(243, 207, 134, 0.28) 0%, rgba(243, 207, 134, 0.08) 48%, transparent 72%);
  border: 0;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  padding: 0.5rem 0.5rem 0;
}

.growth-ruler {
  position: absolute;
  top: 22px;
  bottom: 44px;
  left: 18px;
  width: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0.5;
}

.growth-ruler span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cedar);
}

.growth-ruler span::before {
  content: '';
  width: 12px;
  height: 1.5px;
  background: var(--cedar);
}

.growth-ruler span:nth-child(even)::before {
  width: 7px;
}

.growth-height-marker {
  position: absolute;
  left: 56px;
  right: 18px;
  bottom: var(--marker-bottom, 198px);
  border-top: 1.5px dashed rgba(64, 98, 36, 0.42);
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: bottom 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.growth-height-tag {
  transform: translateY(-54%);
  background: var(--cedar);
  color: var(--sunlight);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(23, 43, 27, 0.16);
}

.growth-svg {
  width: min(340px, 100%);
  height: 336px;
  display: block;
  position: relative;
  z-index: 2;
}

/* Smooth organic character scaling around exact SVG feet pivot (158, 294) */
.nomad-character {
  transform-origin: 158px 294px;
  transform: scale(var(--kid-scale, 0.77));
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.svg-height-marker {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.nomad-coat-fill {
  transition: fill 0.4s ease;
}

.gear-group {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.34s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gear-group.is-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes nomad-breathe {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3.5px); }
  }
  @keyframes leaf-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(7deg); }
  }
  @keyframes firefly-float {
    0%, 100% { transform: translate(0px, 0px); opacity: 0.65; }
    50% { transform: translate(5px, -8px); opacity: 1; }
  }
  @keyframes puddle-pulse {
    0%, 100% { transform: scaleX(0.95); opacity: 0.55; }
    50% { transform: scaleX(1.06); opacity: 0.9; }
  }
  .nomad-breathe {
    animation: nomad-breathe 3.4s ease-in-out infinite;
  }
  .anim-leaf {
    transform-box: fill-box;
    transform-origin: 20% 80%;
    animation: leaf-sway 3.2s ease-in-out infinite;
  }
  .anim-firefly {
    animation: firefly-float 2.8s ease-in-out infinite;
  }
  .anim-puddle {
    transform-box: fill-box;
    transform-origin: center;
    animation: puddle-pulse 3.6s ease-in-out infinite;
  }
}

/* Right: Brand-Consistent Native Range Slider (1 to 9) + Stage Copy */
.growth-control-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
}

.age-readout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.age-big-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  color: var(--cedar);
  line-height: 1;
}

.age-stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.95rem;
  border-radius: 999px;
  background: var(--moss-tint);
  color: var(--moss-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.slider-block {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 1.15rem 0 0.95rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 0.4rem;
}

/* Native Range Input Styled Per Modern Web Guidance `slider` */
.age-range-input {
  --slider-track-size: 0.62rem;
  --slider-thumb-size: 2rem;
  --slider-track-radius: 999px;
  --slider-thumb-radius: 50%;
  --slider-track-color: #C7BFA9;
  --slider-fill-color: var(--moss);
  --slider-thumb-color: var(--coral);
  --slider-direction: to right;
  --attr-min: 1;
  --attr-max: 9;
  --control-value: 4;
  --slider-progress: calc(
    progress(var(--control-value), var(--attr-min), var(--attr-max)) * 100%
  );

  appearance: none;
  inline-size: 100%;
  block-size: 2.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.age-range-input:dir(rtl) {
  --slider-direction: to left;
}

@supports not (opacity: progress(1, 0, 100)) {
  .age-range-input {
    --slider-progress: calc(
      (var(--control-value) - var(--attr-min)) /
      (var(--attr-max) - var(--attr-min)) * 100%
    );
  }
}

/* Separate WebKit/Blink rules (never comma-combined with Firefox) */
.age-range-input::-webkit-slider-runnable-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: linear-gradient(
    var(--slider-direction),
    var(--slider-fill-color) var(--slider-progress),
    var(--slider-track-color) var(--slider-progress)
  );
}

.age-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  margin-block-start: calc((var(--slider-track-size) - var(--slider-thumb-size)) / 2);
  border: 3px solid var(--white);
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
  box-shadow: 0 6px 16px rgba(185, 72, 32, 0.36);
  transition: transform 0.16s ease;
}

.age-range-input:hover::-webkit-slider-thumb {
  transform: scale(1.08);
}

/* Separate Firefox rules */
.age-range-input::-moz-range-track {
  block-size: var(--slider-track-size);
  border: 0;
  border-radius: var(--slider-track-radius);
  background: var(--slider-track-color);
}

.age-range-input::-moz-range-progress {
  block-size: var(--slider-track-size);
  border-radius: var(--slider-track-radius);
  background: var(--slider-fill-color);
}

.age-range-input::-moz-range-thumb {
  inline-size: var(--slider-thumb-size);
  block-size: var(--slider-thumb-size);
  border: 3px solid var(--white);
  border-radius: var(--slider-thumb-radius);
  background: var(--slider-thumb-color);
  box-shadow: 0 6px 16px rgba(185, 72, 32, 0.36);
}

.age-range-input:focus-visible {
  outline: 3px solid var(--cedar);
  outline-offset: 4px;
  border-radius: 8px;
}

.age-ticks-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 0.45rem;
}

.age-tick-btn {
  min-block-size: 36px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--stone);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.age-tick-btn:hover {
  background: var(--linen-deep);
  color: var(--cedar);
}

.age-tick-btn[aria-pressed="true"] {
  background: var(--cedar);
  color: var(--sunlight);
}

/* United Single-Screen Action Zone: Popping Coral Arrow Pill -> Opens Right Side Drawer */
.age-action-zone {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-top: 0.25rem;
}

.age-primary-cta-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.age-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-block-size: 54px;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  border: 0;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(222, 98, 54, 0.32);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.age-drawer-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(185, 72, 32, 0.36);
}

.age-drawer-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.age-drawer-cta:hover .age-drawer-arrow {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes age-cta-pop {
    0% { transform: scale(0.95); }
    45% { transform: scale(1.035); }
    100% { transform: scale(1); }
  }
  @keyframes arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
  }
  .age-drawer-cta.is-popping {
    animation: age-cta-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .age-drawer-cta.is-popping .age-drawer-arrow {
    animation: arrow-nudge 0.45s ease;
  }
}

.age-meta-whisper {
  font-size: 0.86rem;
  color: var(--stone);
  font-weight: 500;
}

.age-alt-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--stone);
}

.age-alt-btn {
  min-block-size: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-strong);
  background: transparent;
  color: var(--cedar);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.age-alt-btn:hover {
  background: var(--moss-tint);
  border-color: var(--moss);
}

@media (max-width: 960px) {
  .growth-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .growth-stage-card {
    min-height: 255px;
  }
  .growth-svg {
    height: 255px;
  }
}

@media (max-width: 699px) {
  .stage-header {
    margin-bottom: 1.2rem;
  }
  .growth-shell {
    gap: 1.1rem;
  }
  .growth-stage-card {
    min-height: 205px;
  }
  .growth-svg {
    height: 208px;
  }
  .growth-control-pane {
    gap: 0.95rem;
  }
}

@media (max-width: 560px) {
  .age-tick-btn {
    font-size: 0.78rem;
  }
  .age-drawer-cta {
    width: 100%;
  }
}

/* ==========================================================================
   BEAT 4: FULL-BLEED 3D VANCOUVER TERRAIN + CLICK-TO-OPEN REAL PHOTO SHEET
   ========================================================================== */
.flyover-section {
  background: var(--birch);
  padding-block: clamp(4.25rem, 6.5vw, 6rem) 0;
  position: relative;
}

.flyover-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.flyover-top h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  max-width: 34rem;
  margin-bottom: 0;
}

.flyover-top p {
  max-width: 28rem;
  color: var(--stone);
  margin-bottom: 0;
}

/* Full-Bleed Edge-to-Edge Warm 3D Relief Stage (Desktop >= 700px) */
.terrain-viewport {
  position: relative;
  width: 100%;
  height: clamp(500px, 72svh, 660px);
  border-radius: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 26%, #F4ECDD 0%, #ECE4D4 60%, #E2D8C5 100%);
  border: 0;
  cursor: grab;
  touch-action: pan-y;
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 600px;
}

.terrain-viewport:active {
  cursor: grabbing;
}

.terrain-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Minimal Circular Glowing Beacons — Full Name Glides Up Only on Hover/Focus */
.terrain-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.terrain-pin-btn {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(250, 246, 238, 0.92);
  background: rgba(23, 43, 27, 0.88);
  backdrop-filter: blur(8px);
  color: var(--sunlight);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(243, 207, 134, 0.2), 0 10px 24px rgba(16, 32, 19, 0.28);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.terrain-pin-btn:hover,
.terrain-pin-btn:focus-visible {
  background: var(--cedar);
  box-shadow: 0 0 0 10px rgba(243, 207, 134, 0.34), 0 14px 30px rgba(16, 32, 19, 0.34);
  z-index: 7;
}

.terrain-pin-btn[aria-pressed="true"] {
  background: var(--coral);
  color: var(--white);
  border-color: var(--white);
  box-shadow: 0 0 0 10px rgba(222, 98, 54, 0.3), 0 14px 30px rgba(16, 32, 19, 0.32);
  z-index: 8;
}

.pin-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Whisper Name Tag — Hidden at Rest, Appears Cleanly on Hover/Focus */
.pin-tip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translate(-50%, 5px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(16, 32, 19, 0.92);
  color: var(--birch);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(10, 22, 12, 0.26);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.terrain-pin-btn:hover .pin-tip,
.terrain-pin-btn:focus-visible .pin-tip,
.terrain-pin-btn[aria-pressed="true"] .pin-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.terrain-hud-bar {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.terrain-chapters {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.3rem;
  border-radius: 999px;
  border: 0;
  pointer-events: auto;
  box-shadow: 0 10px 26px rgba(16, 32, 19, 0.14);
}

.chapter-pill {
  min-block-size: 36px;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chapter-pill:hover {
  color: var(--cedar);
}

.chapter-pill[aria-pressed="true"] {
  background: var(--cedar);
  color: var(--birch);
}

.terrain-hint {
  background: rgba(23, 43, 27, 0.74);
  color: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Bespoke Warm Illustrated Topographic Vancouver Coastline Map (Mobile < 700px) */
.mobile-coast-map {
  display: none;
}

.coast-svg-stage {
  position: relative;
  width: 100%;
  background: #EFE7D6;
  overflow: hidden;
}

.coast-svg {
  width: 100%;
  height: auto;
  display: block;
}

.coast-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 4;
}

.coast-pin-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--birch);
  background: var(--cedar);
  color: var(--sunlight);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 6px rgba(243, 207, 134, 0.28), 0 8px 18px rgba(16, 32, 19, 0.28);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.coast-pin-label {
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  background: rgba(23, 43, 27, 0.88);
  color: var(--birch);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 32, 19, 0.22);
}

.coast-pin:hover .coast-pin-dot,
.coast-pin:focus-visible .coast-pin-dot,
.coast-pin[aria-pressed="true"] .coast-pin-dot {
  background: var(--coral);
  color: var(--white);
  transform: scale(1.08);
}

.coast-hud-bar {
  padding: 0.9rem 1rem 1.25rem;
  background: var(--birch);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.coast-hud-bar .terrain-chapters {
  width: 100%;
  max-width: 440px;
  justify-content: space-between;
  background: var(--linen);
  box-shadow: none;
}

.coast-hud-hint {
  font-size: 0.78rem;
  color: var(--stone);
}

/* Fallback static map art if WebGL is unavailable */
.terrain-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: var(--cedar);
}

@media (max-width: 900px) {
  .terrain-hint {
    display: none;
  }
}

@media (max-width: 699px) {
  .terrain-viewport {
    display: none;
  }
  .mobile-coast-map {
    display: block;
  }
  .coast-hud-bar .chapter-pill {
    min-block-size: 36px;
    padding: 0.34rem 0.56rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   BEAT 3: PHILOSOPHY (OPEN EDITORIAL INDEX) & OPEN 5-STEP TRAIL TIMELINE
   ========================================================================== */
.philosophy-section {
  background: var(--linen);
}

.philosophy-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4.5vw, 3.75rem);
}

.philosophy-intro h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  margin-bottom: 0;
}

.philosophy-quote-box {
  background: transparent;
  border-left: 2px solid var(--moss);
  border-radius: 0;
  padding: 0.25rem 0 0.25rem 1.35rem;
}

.philosophy-quote-box blockquote {
  margin: 0 0 0.45rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--cedar);
}

.philosophy-quote-box cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Clean Full-Width Open 4-Row Philosophy Index (Each Row Opens Right Side Drawer!) */
.pillar-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.pillar-row {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding: 1.5rem 0.5rem 1.5rem 1.35rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.22s ease, padding-left 0.22s ease;
}

.pillar-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 3px;
  border-radius: 99px;
  background: transparent;
  transition: background-color 0.22s ease;
}

.pillar-row:hover,
.pillar-row:focus-visible {
  background: rgba(23, 43, 27, 0.038);
  padding-left: 1.65rem;
}

.pillar-row:hover::before,
.pillar-row:focus-visible::before {
  background: var(--coral);
}

.pillar-row-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.28rem;
}

.pillar-row-title {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.26rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--cedar);
  margin-bottom: 0.3rem;
}

.pillar-row-sub {
  display: block;
  font-size: 0.94rem;
  color: var(--stone);
  line-height: 1.52;
  max-width: 44rem;
}

.pillar-row-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--moss-dark);
  white-space: nowrap;
  transition: transform 0.2s ease, color 0.2s ease;
}

.pillar-row:hover .pillar-row-cue {
  color: var(--coral-dark);
  transform: translateX(4px);
}

.pillar-more-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pillar-more-bar p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--stone);
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--cedar);
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
  padding-bottom: 3px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.editorial-link:hover {
  color: var(--coral-dark);
  gap: 0.7rem;
}

@media (max-width: 680px) {
  .pillar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    padding: 1.25rem 0.25rem 1.25rem 1rem;
  }
}

/* Open 5-Step Trail Timeline (Zero Boxes!) */
.rhythm-strip {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 0;
}

.rhythm-strip--standalone {
  border-top: 0;
  padding-top: 0;
}

.rhythm-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.rhythm-head h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 0;
}

.rhythm-head span {
  font-size: 0.88rem;
  color: var(--stone);
}

.rhythm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.rhythm-step {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 2px solid rgba(64, 98, 36, 0.26);
  border-radius: 0;
  padding: 1.15rem 0.25rem 0 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rhythm-step::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.rhythm-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--moss);
}

.rhythm-step strong {
  color: var(--cedar);
  font-size: 0.94rem;
  line-height: 1.25;
}

.rhythm-step p {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 980px) {
  .philosophy-intro,
  .pillar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .rhythm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rhythm-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   BEAT 5: FULL-BLEED COMPACT SEAVOX RAINFOREST TEAM CANOPY & OPEN VOICES
   ========================================================================== */
.team-section {
  background: var(--birch);
  padding-top: clamp(4.25rem, 7vw, 6.25rem);
}

.team-header {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.team-header h2 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  margin-bottom: 0.7rem;
}

.team-header p {
  color: var(--stone);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Full-Bleed Edge-to-Edge Atmospheric Rainforest Canopy (Zero Box!) */
.team-canopy-stage {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background-color: var(--cedar-deep);
  background-image: url('assets/team-forest-backdrop.jpg');
  background-size: cover;
  background-position: center;
  padding-block: clamp(2rem, 3.8vw, 3rem) clamp(2.4rem, 4.2vw, 3.4rem);
  color: var(--birch);
}

.team-canopy-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 32, 19, 0.62) 0%, rgba(16, 32, 19, 0.34) 44%, rgba(12, 25, 15, 0.86) 100%);
  pointer-events: none;
}

.team-canopy-inner {
  position: relative;
  z-index: 2;
}

.team-canopy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.25rem, 2.2vw, 1.85rem);
}

.team-canopy-top .eyebrow {
  color: var(--sunlight);
  margin: 0;
}

.team-canopy-hint {
  font-size: 0.8rem;
  color: rgba(250, 246, 238, 0.8);
  padding: 0;
}

@media (hover: none) {
  .hover-only-hint {
    display: none;
  }
}

/* Compact 4-Across Grid so all 8 guides sit neatly in ~half the vertical height */
.team-cutout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 960px;
  margin-inline: auto;
  gap: clamp(1.25rem, 2vw, 1.75rem) clamp(0.75rem, 1.8vw, 1.4rem);
}

.cutout-member {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: center;
  color: var(--birch);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), filter 0.42s ease;
}

/* Signature SeaVox interactive atmospheric focus when exploring any guide */
@media (hover: hover) {
  .team-cutout-grid:has(.cutout-member:hover) .cutout-member:not(:hover),
  .team-cutout-grid:has(.cutout-member:focus-visible) .cutout-member:not(:focus-visible) {
    opacity: 0.4;
    filter: brightness(0.75) saturate(0.72);
    transform: scale(0.96);
  }
  .cutout-member:hover,
  .cutout-member:focus-visible {
    opacity: 1;
    transform: translateY(-5px) scale(1.04);
    z-index: 4;
  }
}

.cutout-portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 174px;
  aspect-ratio: 1 / 1.04;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.cutout-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
  filter: drop-shadow(0 12px 22px rgba(10, 22, 12, 0.5));
  transition: filter 0.35s ease;
}

.cutout-member:hover .cutout-portrait-wrap img {
  filter: brightness(1.06) drop-shadow(0 18px 30px rgba(10, 22, 12, 0.62));
}

.cutout-monogram {
  width: 96px;
  height: 96px;
  margin-bottom: 1.7rem;
  border-radius: 50%;
  background: rgba(23, 43, 27, 0.58);
  border: 1px solid rgba(243, 207, 134, 0.42);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sunlight);
}

.cutout-monogram span {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.cutout-monogram small {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 238, 0.78);
  margin-top: 0.2rem;
}

.cutout-caption {
  margin-top: -0.95rem;
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0 0.25rem;
}

.cutout-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(10, 22, 12, 0.75);
}

.cutout-role {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sunlight);
  text-shadow: 0 2px 10px rgba(10, 22, 12, 0.8);
}

.cutout-cta {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(250, 246, 238, 0.8);
  border-bottom: 1px solid rgba(243, 207, 134, 0.4);
  padding-bottom: 1px;
}

/* Keep 4 across down to 740px, 3 across on tablets, 2 across only on narrow phones */
@media (max-width: 740px) {
  .team-cutout-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .team-cutout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 0.65rem;
  }
  .cutout-portrait-wrap {
    max-width: 152px;
  }
  .cutout-name {
    font-size: 1rem;
  }
  .cutout-role {
    font-size: 0.6rem;
  }
}

/* Full-Bleed Soft Linen Band: Open Editorial Parent Pull-Quotes (Zero Boxes!) */
.voices-band {
  background: var(--linen);
  padding-block: clamp(3.75rem, 6.5vw, 5.5rem);
}

.voices-head {
  max-width: 38rem;
  margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

.voices-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  margin-bottom: 0;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 2.75rem);
}

.voice-quote {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--moss);
  padding: 0.15rem 0 0.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.voice-quote blockquote {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.06rem;
  line-height: 1.54;
  color: var(--cedar);
}

.voice-quote figcaption {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--moss-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Team Bio Dialog */
.bio-modal-hero {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.15rem;
}

.bio-modal-avatar {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 22%;
  flex-shrink: 0;
}

.bio-modal-text p {
  color: var(--stone);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.bio-modal-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1020px) {
  .voices-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   BEAT 5 (HOME): MAKING LEARNING VISIBLE — CALM SPOTLIGHT + DRAWER LAUNCHER
   ========================================================================== */
.stories-section {
  background: var(--linen);
}

.stories-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.stories-preview-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.stories-preview-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cedar-deep);
  box-shadow: var(--shadow-float);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.stories-preview-btn:hover .stories-preview-frame {
  transform: translateY(-4px);
  box-shadow: 0 30px 68px rgba(16, 32, 19, 0.2);
}

.stories-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stories-preview-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: rgba(16, 32, 19, 0.82);
  backdrop-filter: blur(8px);
  color: var(--birch);
  font-size: 0.78rem;
  font-weight: 600;
}

.stories-preview-pill strong {
  color: var(--sunlight);
}

.stories-preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--stone);
}

.stories-copy h2 {
  font-size: clamp(2.05rem, 3.8vw, 3.15rem);
  margin-bottom: 1rem;
}

.stories-copy p {
  color: var(--stone);
  font-size: 1.04rem;
  line-height: 1.66;
  margin-bottom: 1.35rem;
}

.stories-points {
  list-style: none;
  margin: 0 0 1.85rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cedar);
}

.stories-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
}

.stories-points li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--moss);
  flex-shrink: 0;
}

.stories-cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .stories-spotlight {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Beat 6 (Home): Quiet Voices + Compact FAQ + Warm Team Invite */
.community-section {
  background: var(--birch);
}

.community-voices {
  margin-bottom: clamp(4rem, 7vw, 5.75rem);
}

.team-invite-bar {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.team-invite-bar h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin: 0 0 0.35rem;
}

.team-invite-bar p {
  margin: 0;
  color: var(--stone);
  max-width: 36rem;
}

/* ==========================================================================
   DEDICATED SUBPAGE HEADER & EDITORIAL LAYOUTS (approach.html & team.html)
   ========================================================================== */
.subpage-hero {
  position: relative;
  background: var(--cedar-deep);
  color: var(--birch);
  padding: clamp(7.5rem, 12vw, 9.5rem) 0 clamp(3.5rem, 6.5vw, 5.25rem);
  overflow: clip;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 68% 72% at 18% 20%, rgba(64, 98, 36, 0.34), transparent 65%),
    radial-gradient(ellipse 52% 62% at 84% 75%, rgba(243, 207, 134, 0.12), transparent 62%);
  pointer-events: none;
}

.subpage-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 48rem;
}

.subpage-hero .eyebrow {
  color: var(--sunlight);
}

.subpage-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 1.15rem;
}

.subpage-hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--sunlight);
}

.subpage-hero p {
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  color: rgba(250, 246, 238, 0.85);
  max-width: 40rem;
  margin-bottom: 0;
}

.approach-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

.approach-split--reverse .approach-media {
  order: 2;
}

.approach-media {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cedar);
  box-shadow: var(--shadow-float);
}

.approach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.approach-prose h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  margin-bottom: 1rem;
}

.approach-prose p {
  color: var(--stone);
  font-size: 1.03rem;
  line-height: 1.7;
  margin-bottom: 1.05rem;
}

.reggio-triad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--hairline);
}

.triad-item {
  border-left: 2px solid var(--moss);
  padding-left: 1.25rem;
}

.triad-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.3rem;
}

.triad-item h3 {
  font-size: 1.32rem;
  margin-bottom: 0.45rem;
}

.triad-item p {
  font-size: 0.95rem;
  color: var(--stone);
  margin: 0;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  margin-top: 2rem;
}

.safety-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.safety-item h3 {
  font-size: 1.24rem;
  margin-bottom: 0.4rem;
}

.safety-item p {
  font-size: 0.96rem;
  color: var(--stone);
  margin: 0;
}

@media (max-width: 900px) {
  .approach-split,
  .reggio-triad,
  .safety-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .approach-split--reverse .approach-media {
    order: 0;
  }
}

/* ==========================================================================
   JOURNAL ALBUM STYLES (Used Inside Unified Right Side Drawer)
   ========================================================================== */
.ethos-section {
  background: var(--birch);
}

.ethos-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.75rem);
  align-items: start;
  margin-bottom: clamp(4.5rem, 7.5vw, 6.5rem);
}

.journal-showcase {
  min-width: 0;
  max-width: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.journal-top-bar {
  background: transparent;
  color: var(--cedar);
  padding: 0 0 1rem;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.journal-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 0.18rem;
}

.journal-child-title {
  font-size: 1.55rem;
  color: var(--cedar);
  margin: 0;
}

.journal-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--moss-dark);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Single-Row Scrollable Accessible Tablist Directly on Open Canvas */
.story-tabs {
  display: flex;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  background: transparent;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-inline: 0;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.story-tabs::-webkit-scrollbar {
  display: none;
}

.story-tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  min-block-size: 46px;
  padding: 0.72rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--stone);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.story-tab:hover {
  color: var(--cedar);
}

.story-tab[aria-selected="true"] {
  color: var(--cedar);
}

/* Non-color indicator safe in Forced Colors Mode; never alters tab dimensions */
.story-tab[aria-selected="true"]::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid var(--coral);
}

/* Single-cell grid stack so hidden="until-found" panels never add empty strips */
.story-panels-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  background: transparent;
  border-radius: 0;
}

.story-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

.story-panel-inner {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.story-collage {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: 0.7rem;
}

.story-collage img {
  width: 100%;
  height: 196px;
  object-fit: cover;
  border-radius: 14px;
}

.story-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.story-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.story-author-row strong {
  display: block;
  font-size: 0.88rem;
  color: var(--cedar);
  line-height: 1.25;
}

.story-author-row span {
  display: block;
  font-size: 0.78rem;
  color: var(--stone);
}

.story-entry-title {
  font-size: 1.4rem;
  line-height: 1.22;
  margin: 0;
}

.story-entry-body {
  font-size: 0.96rem;
  color: var(--stone);
  line-height: 1.62;
  margin: 0;
}

.story-wonder-box {
  background: transparent;
  border-left: 2px solid var(--moss);
  border-radius: 0;
  padding: 0.25rem 0 0.25rem 1.2rem;
}

.story-wonder-box strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--moss-dark);
  margin-bottom: 0.25rem;
}

.story-wonder-box p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cedar);
  line-height: 1.5;
}

.commitments-list {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.55rem;
}

.commitments-list h2 {
  font-size: clamp(2.05rem, 3.8vw, 3.05rem);
  margin-bottom: 0.65rem;
}

.commitments-lead {
  color: var(--stone);
  font-size: 1.03rem;
  margin-bottom: 0;
  max-width: 34rem;
}

.commitment-item {
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

.commitment-item h3 {
  font-size: 1.24rem;
  margin-bottom: 0.35rem;
}

.commitment-item p {
  color: var(--stone);
  font-size: 0.96rem;
  margin-bottom: 0;
  max-width: 34rem;
}

.commitments-cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.35rem;
}

@media (max-width: 560px) {
  .story-collage {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-collage img {
    height: 200px;
  }
  .story-collage .story-photo-side {
    display: none;
  }
  .story-tab {
    font-size: 0.78rem;
  }
}

/* Minimal FAQ */
.faq-wrap {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-wrap h2 {
  text-align: center;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--hairline);
}

.faq-item h3 {
  margin: 0;
}

.faq-trigger {
  width: 100%;
  min-block-size: 62px;
  background: none;
  border: 0;
  padding: 1.25rem 0;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  cursor: pointer;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cedar);
}

.faq-plus {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--moss);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-trigger[aria-expanded="true"] .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  padding-bottom: 1.45rem;
  color: var(--stone);
  font-size: 0.98rem;
  max-width: 42rem;
}

@media (max-width: 900px) {
  .ethos-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   BEAT 5: SERENE CLOSING INVITATION & DIGNIFIED FOOTER
   ========================================================================== */
.closing-sanctuary {
  background: var(--cedar);
  color: var(--birch);
  text-align: center;
  padding-block: clamp(5rem, 9vw, 8rem);
  position: relative;
  overflow: clip;
}

.closing-sanctuary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(243, 207, 134, 0.14), transparent 62%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  margin-inline: auto;
}

.closing-inner .eyebrow {
  color: var(--sunlight);
}

.closing-inner h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}

.closing-inner p {
  font-size: 1.1rem;
  color: rgba(250, 246, 238, 0.82);
  margin-bottom: 2.2rem;
}

.site-footer {
  background: var(--cedar-deep);
  color: rgba(250, 246, 238, 0.74);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(250, 246, 238, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 32rem;
}

.footer-brand img {
  width: 48px;
  flex-shrink: 0;
}

.footer-brand strong {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--white);
  font-size: 1.22rem;
  display: block;
  margin-bottom: 0.25rem;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: rgba(250, 246, 238, 0.82);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sunlight);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(250, 246, 238, 0.78);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--sunlight);
}

/* Discreet Floating Portal Demo Pill (Bottom-Left on Desktop so Bottom-Right Belongs to Review Dock) */
.founder-demo-pill {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, 0.22);
  background: rgba(16, 32, 19, 0.82);
  backdrop-filter: blur(10px);
  color: rgba(250, 246, 238, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.founder-demo-pill:hover {
  background: var(--cedar);
  transform: translateY(-1px);
}

@media (max-width: 699px) {
  .founder-demo-pill {
    display: none;
  }
}

/* ==========================================================================
   NATIVE MODAL DIALOGS (2-Step Registration + Payment + Unified Login)
   ========================================================================== */
dialog.modal-dialog {
  width: min(580px, calc(100vw - 1.5rem));
  max-height: min(90svh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(10, 22, 12, 0.46);
  overflow: hidden;
}

dialog.modal-dialog[open] {
  display: flex;
  flex-direction: column;
}

dialog.modal-dialog:modal {
  overscroll-behavior: contain;
}

dialog.modal-dialog::backdrop {
  background: rgba(14, 28, 17, 0.68);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: no-preference) {
  dialog.modal-dialog {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.24s ease, transform 0.24s ease, display 0.24s, overlay 0.24s;
    transition-behavior: allow-discrete;
  }
  dialog.modal-dialog[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
    @starting-style {
      opacity: 0;
      transform: translateY(16px) scale(0.985);
    }
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.6rem 1.2rem;
  background: var(--cedar);
  color: var(--birch);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

.modal-header h1 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.modal-header p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(250, 246, 238, 0.8);
}

.modal-close-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(250, 246, 238, 0.14);
  color: var(--white);
  font-size: 1.15rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(250, 246, 238, 0.24);
  transform: scale(1.05);
}

.modal-body {
  padding: 1.5rem 1.6rem 1.75rem;
  background: var(--birch);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 2-Step Registration Progress Bar */
.step-progress {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.step-progress li {
  flex: 1;
  padding-bottom: 0.55rem;
  border-bottom: 2.5px solid var(--linen-deep);
  color: var(--stone);
}

.step-progress li[aria-current="step"] {
  border-bottom-color: var(--moss);
  color: var(--cedar);
}

.step-progress li.is-done {
  border-bottom-color: var(--moss);
  color: var(--moss);
}

.modal-fieldset {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
}

.modal-fieldset legend {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cedar);
  margin-bottom: 0.6rem;
  padding: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 0.55rem;
}

.choice-tile {
  position: relative;
}

.choice-tile input[type="radio"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.choice-tile label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-block-size: 56px;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline-strong);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.choice-tile label strong {
  font-size: 0.88rem;
  color: var(--cedar);
}

.choice-tile label span {
  font-size: 0.76rem;
  color: var(--stone);
}

.choice-tile input[type="radio"]:checked + label {
  border-color: var(--moss);
  background: var(--moss-tint);
}

.choice-tile input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--sunlight);
  outline-offset: 2px;
}

.fee-preview-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cedar);
  color: var(--birch);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.fee-preview-strip strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.6rem;
  color: var(--sunlight);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-block-end: 1rem;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cedar);
}

.field-error {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--danger);
  min-height: 1.15em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field select {
  width: 100%;
  font-size: max(1rem, 1em);
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #6E7B70;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
}

@media (pointer: coarse) {
  .form-field input,
  .form-field select {
    min-height: 52px;
  }
}

.form-field :is(input, select):user-invalid,
.form-field :is(input, select)[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.7rem;
}

.check-row input[type="checkbox"] {
  width: 21px;
  height: 21px;
  accent-color: var(--moss);
  margin-top: 2px;
  flex-shrink: 0;
}

.check-row label {
  font-size: 0.86rem;
  cursor: pointer;
}

.modal-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.demo-hints-bar {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.78rem;
  color: var(--stone);
}

.demo-hints-bar p {
  margin-bottom: 0.45rem;
}

.demo-email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.demo-email-chip {
  min-block-size: 30px;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: var(--white);
  color: var(--cedar);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-email-chip:hover {
  background: var(--moss-tint);
  border-color: var(--moss);
}

.mfa-callout {
  background: var(--moss-tint);
  border: 1px solid rgba(64, 98, 36, 0.28);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.86rem;
  color: var(--cedar);
  margin-bottom: 1rem;
}

.live-toast {
  position: fixed;
  bottom: 76px;
  right: 18px;
  z-index: 950;
  max-width: min(360px, calc(100vw - 2rem));
  background: var(--cedar);
  color: var(--birch);
  border: 1px solid var(--sunlight);
  border-radius: 14px;
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-float);
  font-size: 0.88rem;
}

/* ==========================================================================
   PROPOSAL DECK PAGE (proposal.html)
   ========================================================================== */
.nav-proposal-link {
  padding: 0.32rem 0.78rem !important;
  border-radius: 999px;
  background: rgba(243, 207, 134, 0.16);
  color: var(--sunlight) !important;
  opacity: 1 !important;
}

.site-header.is-scrolled .nav-proposal-link {
  background: var(--moss-tint);
  color: var(--moss-dark) !important;
}

.proposal-hero-actions {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.proposal-jump-bar {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(242, 236, 224, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.proposal-jump-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.7rem;
}

.proposal-jump-inner::-webkit-scrollbar {
  display: none;
}

.proposal-jump-inner a {
  flex: none;
  padding: 0.36rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cedar);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.proposal-jump-inner a:hover {
  background: var(--cedar);
  color: var(--birch);
}

.proposal-deck-section {
  background: var(--linen);
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
}

.proposal-slides-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.proposal-slide {
  scroll-margin-top: 132px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.proposal-slide-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-inline: 0.2rem;
}

.proposal-slide-meta span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--moss);
}

.proposal-slide-meta strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.04rem;
  color: var(--cedar);
}

.proposal-slide img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(16, 32, 19, 0.14);
  background: var(--white);
}

/* ==========================================================================
   PRIVATE PREVIEW PASSCODE GATE ("ecowarrior")
   ========================================================================== */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 75% 70% at 22% 18%, rgba(64, 98, 36, 0.42), transparent 65%),
    radial-gradient(ellipse 60% 60% at 82% 82%, rgba(243, 207, 134, 0.16), transparent 60%),
    linear-gradient(150deg, #102013 0%, #172B1B 55%, #1D3521 100%);
  color: var(--birch);
  overflow-y: auto;
  transition: opacity 0.26s ease;
}

.access-gate.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.access-gate-card {
  width: min(470px, 100%);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 26px;
  background: rgba(250, 246, 238, 0.06);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(250, 246, 238, 0.16);
  box-shadow: 0 36px 90px rgba(6, 15, 8, 0.55);
}

.access-gate-logos {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
}

.access-gate-logos img {
  width: 44px;
  height: auto;
}

.access-gate-sep {
  opacity: 0.55;
  font-size: 1.1rem;
}

.access-gate-agency {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sunlight);
}

.access-gate-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sunlight);
  margin-bottom: 0.55rem;
}

.access-gate-card h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 0.65rem;
}

.access-gate-sub {
  color: rgba(250, 246, 238, 0.8);
  font-size: 0.94rem;
  line-height: 1.58;
  margin-bottom: 1.5rem;
}

.gate-field {
  margin-bottom: 1.15rem;
}

.gate-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--birch);
  margin-bottom: 0.45rem;
}

.gate-opt {
  font-weight: 400;
  opacity: 0.68;
}

.gate-quick-names {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.gate-name-chip {
  min-block-size: 34px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, 0.28);
  background: rgba(250, 246, 238, 0.08);
  color: var(--birch);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.gate-name-chip:hover,
.gate-name-chip.is-active {
  background: var(--sunlight);
  border-color: var(--sunlight);
  color: var(--cedar-deep);
}

.gate-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  border: 1.5px solid rgba(250, 246, 238, 0.28);
  background: rgba(16, 32, 19, 0.62);
  color: var(--white);
  font-size: 1rem;
}

.gate-field input::placeholder {
  color: rgba(250, 246, 238, 0.45);
}

.gate-field input.is-invalid {
  border-color: #F28B7D;
}

.gate-error {
  display: block;
  min-height: 1.2em;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFB4A8;
}

/* ==========================================================================
   LIVE REVIEW STICKERS & NOTES SYSTEM (Figma-Style Pins + Review Drawer)
   ========================================================================== */
body.is-review-mode {
  cursor: crosshair;
}

body.is-review-mode a,
body.is-review-mode button,
body.is-review-mode input {
  cursor: crosshair;
}

body.is-review-mode #review-dock button,
body.is-review-mode #review-mode-banner button,
body.is-review-mode .sticker-composer button,
body.is-review-mode .sticker-pin,
body.is-review-mode dialog button,
body.is-review-mode .site-header a,
body.is-review-mode .site-header button {
  cursor: pointer;
}

.review-mode-banner {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  width: min(620px, calc(100vw - 1.5rem));
}

.review-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: rgba(23, 43, 27, 0.95);
  backdrop-filter: blur(14px);
  color: var(--birch);
  box-shadow: 0 18px 44px rgba(10, 22, 12, 0.36);
  border: 1px solid rgba(243, 207, 134, 0.35);
  font-size: 0.82rem;
}

.review-banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(222, 98, 54, 0.32);
  flex-shrink: 0;
}

.review-banner-text {
  flex: 1;
  min-width: 180px;
}

.review-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.review-banner-who {
  min-block-size: 32px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 246, 238, 0.25);
  background: rgba(250, 246, 238, 0.1);
  color: var(--sunlight);
  font-size: 0.76rem;
  font-weight: 600;
}

.review-banner-done {
  min-block-size: 32px;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: var(--coral);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

/* Floating Compact Review Dock (Bottom-Right) */
.review-dock {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 85;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.32rem;
  border-radius: 999px;
  background: rgba(23, 43, 27, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(10, 22, 12, 0.34);
  border: 1px solid rgba(243, 207, 134, 0.26);
}

.review-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-block-size: 38px;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--birch);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.review-dock-toggle {
  background: var(--coral);
  color: var(--white);
}

.review-dock-toggle:hover {
  background: var(--coral-dark);
}

.review-dock-toggle[aria-pressed="true"] {
  background: var(--sunlight);
  color: var(--cedar-deep);
}

.review-dock-board:hover,
.review-dock-eye:hover {
  background: rgba(250, 246, 238, 0.12);
}

.review-dock-eye {
  padding-inline: 0.62rem;
}

.review-dock-eye[aria-pressed="false"] {
  opacity: 0.45;
}

.review-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--sunlight);
  color: var(--cedar-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .review-dock {
    right: 10px;
    bottom: 10px;
    padding: 0.25rem;
  }
  .review-dock-btn {
    min-block-size: 36px;
    padding: 0.32rem 0.72rem;
    font-size: 0.76rem;
  }
  .review-banner-inner {
    border-radius: 18px;
  }
}

/* Absolute Sticker Pins Overlay */
.sticker-pins-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 65;
  overflow: visible;
}

.sticker-pins-overlay.is-hidden {
  display: none;
}

.sticker-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50% 50% 50% 6px;
  border: 2.5px solid var(--white);
  background: var(--cedar);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(10, 22, 12, 0.34);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.sticker-pin--love { background: #3E6622; }
.sticker-pin--tweak { background: #C7821B; }
.sticker-pin--question { background: #266C7A; }
.sticker-pin--remove { background: #C4432B; }
.sticker-pin--ghost {
  z-index: 190;
  pointer-events: none;
  background: var(--coral);
  font-size: 1.05rem;
  animation: sticker-pulse 1.2s ease-in-out infinite;
}

.sticker-pin.is-resolved {
  opacity: 0.52;
  filter: saturate(0.4);
}

.sticker-pin:hover,
.sticker-pin:focus-visible {
  transform: translate(-50%, -50%) scale(1.14);
  z-index: 75;
}

.sticker-pin.is-pulsing {
  animation: sticker-pulse 0.7s ease-in-out 3;
  z-index: 80;
}

@keyframes sticker-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 207, 134, 0.75), 0 10px 26px rgba(10, 22, 12, 0.34); }
  50% { box-shadow: 0 0 0 14px rgba(243, 207, 134, 0), 0 12px 30px rgba(10, 22, 12, 0.42); }
}

.sticker-pin-emoji {
  font-size: 1.05rem;
  line-height: 1;
}

.sticker-pin-replies {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--sunlight);
  color: var(--cedar-deep);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--white);
}

.sticker-pin-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  opacity: 0;
  pointer-events: none;
  max-width: 240px;
  width: max-content;
  padding: 0.42rem 0.72rem;
  border-radius: 10px;
  background: rgba(16, 32, 19, 0.94);
  color: var(--birch);
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 10px 24px rgba(10, 22, 12, 0.3);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sticker-pin:hover .sticker-pin-tooltip,
.sticker-pin:focus-visible .sticker-pin-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Floating Sticker Composer Popover */
.sticker-composer {
  position: fixed;
  z-index: 200;
  background: var(--birch);
  color: var(--ink);
  border-radius: 20px;
  padding: 1rem 1.05rem;
  box-shadow: 0 28px 70px rgba(10, 22, 12, 0.38);
  border: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.composer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--stone);
}

.composer-head strong {
  color: var(--cedar);
}

.composer-x {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--linen);
  color: var(--cedar);
  font-size: 1.1rem;
  cursor: pointer;
}

.composer-stickers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.38rem;
}

.composer-sticker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  padding: 0.48rem 0.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.composer-sticker-btn .cs-emoji {
  font-size: 1.15rem;
}

.composer-sticker-btn .cs-lbl {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--cedar);
}

.composer-sticker-btn.is-selected {
  border-color: var(--coral);
  background: #FFF1EB;
  transform: translateY(-1px);
}

.composer-input,
.composer-name-input {
  width: 100%;
  padding: 0.6rem 0.78rem;
  border-radius: 11px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  resize: vertical;
}

.composer-author-line {
  font-size: 0.76rem;
  color: var(--stone);
}

.composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Review Board & Discussion Styles Inside Unified Right Side Drawer */
.rb-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rb-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.rb-filter-chip {
  min-block-size: 32px;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--cedar);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.rb-filter-chip.is-active {
  background: var(--cedar);
  border-color: var(--cedar);
  color: var(--sunlight);
}

.rb-empty {
  padding: 1.5rem 0;
  color: var(--stone);
}

.rb-list {
  display: flex;
  flex-direction: column;
}

.rb-card {
  padding-block: 1rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rb-card.is-resolved {
  opacity: 0.62;
}

.rb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rb-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.rb-where {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--stone);
}

.rb-note-body {
  margin: 0;
  font-size: 0.94rem;
  color: var(--cedar);
  line-height: 1.5;
}

.rb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--stone);
}

.rb-card-btns {
  display: inline-flex;
  gap: 0.75rem;
}

.rb-link-btn,
.rb-back-link,
.rb-delete-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--moss-dark);
  cursor: pointer;
}

.rb-link-btn:hover,
.rb-back-link:hover {
  color: var(--coral-dark);
}

.rb-delete-btn {
  color: var(--danger);
  margin-left: auto;
}

.rb-thread-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.rb-no-replies {
  font-size: 0.88rem;
  color: var(--stone);
  margin: 0;
}

.rb-replies-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rb-reply-item {
  border-left: 2px solid var(--moss);
  padding-left: 0.9rem;
}

.rb-reply-meta {
  font-size: 0.76rem;
  color: var(--stone);
}

.rb-reply-item p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--cedar);
}

.rb-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.rb-reply-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 0.92rem;
  resize: vertical;
}
