/* ==========================================================================
   Pacientes 24-7: Colour Chapters Art Direction
   Type: Red Hat Display (700;900) / Red Hat Text (400;500;700)
   Five disciplined type steps: display, head, lead, body, small
   ========================================================================== */

:root {
  --bg: #141619;
  --surface: #1f2328;
  --paper: #f5f6f4;
  --ink: #ffffff;
  --ink-dark: #111111;
  --muted-dark: #2c3136;
  --muted-light: #e2e6e4;

  --emerald: #00bf63;
  --emerald-ink: #111111;
  --teal: #096354;
  --teal-ink: #ffffff;
  --cobalt: #0e4d8a;
  --cobalt-ink: #ffffff;
  --crimson: #b8291e;
  --crimson-ink: #ffffff;
  --yellow: #ffe927;
  --yellow-ink: #111111;

  --accent: #00bf63;
  --accent-ink: #111111;

  --font-display: 'Red Hat Display', system-ui, -apple-system, sans-serif;
  --font-text: 'Red Hat Text', system-ui, -apple-system, sans-serif;

  /* Strictly 5 type steps across the entire document */
  --step-small: 0.875rem;                                /* 14px */
  --step-body: 1.0625rem;                                /* 17px */
  --step-lead: clamp(1.3125rem, 1.15rem + 0.5vw, 1.625rem); /* 21-26px */
  --step-head: clamp(2.125rem, 1.35rem + 2.6vw, 3.75rem);   /* 34-60px */
  --step-display: clamp(2.75rem, 1.3rem + 6.4vw, 6.5rem);   /* 44-104px */

  --margin: clamp(1.25rem, 2.8vw, 2.5rem);
  --gutter: clamp(1rem, 1.8vw, 1.75rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 760ms;
}

/* ---------- Base Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ul, ol, fieldset { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--emerald); color: var(--emerald-ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1.25rem;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Layout & Type Helpers ---------- */
.wrap {
  width: 100%;
  padding-inline: var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.cover { width: 100%; height: 100%; object-fit: cover; }
.nowrap { white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.small { font-size: var(--step-small); line-height: 1.45; }
.lead { font-size: var(--step-lead); line-height: 1.32; }
.head {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.09em;
  transition: text-decoration-color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.link-plain {
  font-weight: 500;
  font-size: var(--step-body);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.09em;
  transition: opacity var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { opacity: 0.78; }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--dark {
  background: var(--bg);
  color: var(--ink);
}
.button--dark:hover { background: #24292f; }
.button--emerald {
  background: var(--emerald);
  color: var(--emerald-ink);
}
.button--emerald:hover { background: #00d46e; }

.chapter {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   CHAPTER 0: HERO (Tabbed Folder Stack)
   ========================================================================== */
.chapter--hero {
  background: var(--bg);
  color: var(--ink);
  padding-top: 1.25rem;
}

.hero-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.hero-topbar__left { justify-self: start; }
.hero-topbar__right { justify-self: end; font-weight: 500; }
.hero-brand {
  justify-self: center;
  display: inline-block;
  transition: transform var(--t-hover) var(--ease-out);
}
.hero-brand:hover { transform: scale(1.03); }
.hero-brand img {
  height: clamp(28px, 2.8vw, 38px);
  width: auto;
}

.hero-head {
  text-align: center;
  padding-top: clamp(1.5rem, 3.2vh, 2.5rem);
  padding-bottom: clamp(1.25rem, 2.8vh, 2rem);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-display);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-inline: auto;
}
.hero-sub {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 44ch;
  margin: 0.9rem auto 0;
  color: var(--muted-light);
}

/* Tabbed Folder Stack */
.folder-stack {
  width: 100%;
  padding-top: 2.25rem;
}
.folder {
  display: block;
  position: relative;
  width: 92%;
  margin-inline: auto;
  text-decoration: none;
  height: 40px;
  transition: transform var(--t-ui) var(--ease-out);
}
.folder:not(.folder--front):hover {
  transform: translateY(-5px);
}
.folder__tab {
  position: absolute;
  top: -32px;
  height: 33px;
  padding: 0 2rem 0 1.25rem;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: inherit;
  color: inherit;
  clip-path: polygon(0 100%, 10px 0, calc(100% - 20px) 0, 100% 100%);
}

.folder--blue { background: var(--cobalt); color: var(--cobalt-ink); z-index: 1; }
.folder--blue .folder__tab { left: 2%; }

.folder--crimson { background: var(--crimson); color: var(--crimson-ink); z-index: 2; }
.folder--crimson .folder__tab { left: 22%; }

.folder--teal { background: var(--teal); color: var(--teal-ink); z-index: 3; }
.folder--teal .folder__tab { left: 45%; }

.folder--yellow { background: var(--yellow); color: var(--yellow-ink); z-index: 4; }
.folder--yellow .folder__tab { left: 68%; }

.folder--front {
  width: 100%;
  height: auto;
  background: var(--emerald);
  color: var(--emerald-ink);
  z-index: 5;
  padding-block: clamp(2rem, 4vw, 3.25rem);
}
.folder--front .folder__tab { left: var(--margin); }

.folder-front__inner {
  align-items: center;
  row-gap: 1.75rem;
}
.folder-front__copy {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.folder-front__claim {
  font-weight: 500;
  max-width: 34ch;
  color: var(--emerald-ink);
}
.folder-front__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.folder-front__secondary {
  color: var(--emerald-ink);
}
.folder-front__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--step-small);
  color: var(--emerald-ink);
}
.folder-front__media {
  grid-column: 7 / span 6;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0a8f4d;
}

/* ==========================================================================
   CHAPTER 1: INTRO (Staircase Statement on Cobalt)
   ========================================================================== */
.chapter--cobalt {
  background: var(--cobalt);
  color: var(--cobalt-ink);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.intro-grid {
  align-items: start;
  row-gap: 2.5rem;
}
.intro-main {
  grid-column: 1 / span 8;
}
.intro-heading {
  color: var(--yellow);
  margin-bottom: 2rem;
}
.staircase {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.staircase__line {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stair-0 { padding-left: 0; color: #ffffff; }
.stair-1 { padding-left: 2.5vw; color: var(--yellow); }
.stair-2 { padding-left: 5vw; color: #ffffff; }
.stair-3 { padding-left: 7.5vw; color: #7dffb8; }
.stair-4 { padding-left: 10vw; color: #ffffff; }

.intro-note {
  margin-top: 2.5rem;
  max-width: 52ch;
  font-size: var(--step-body);
  color: #ffffff;
}
.intro-photos {
  grid-column: 9 / span 4;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.intro-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #093561;
}

/* ==========================================================================
   CHAPTER 2: FEATURES (Four Cards Dealt Into a Fan on Charcoal)
   ========================================================================== */
.chapter--charcoal {
  background: var(--bg);
  color: var(--ink);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.chapter-header {
  align-items: end;
  row-gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.chapter-header__title {
  grid-column: 1 / span 6;
}
.chapter-header__desc {
  grid-column: 7 / span 6;
  color: #ffffff;
}

.fan-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  padding-block: 1rem;
}
.fan-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform var(--t-ui) var(--ease-out);
}
.fan-card--emerald { background: var(--emerald); color: var(--emerald-ink); transform: rotate(-1.5deg); }
.fan-card--cobalt { background: var(--cobalt); color: var(--cobalt-ink); transform: rotate(1deg) translateY(8px); }
.fan-card--crimson { background: var(--crimson); color: var(--crimson-ink); transform: rotate(-1deg) translateY(4px); }
.fan-card--yellow { background: var(--yellow); color: var(--yellow-ink); transform: rotate(1.5deg) translateY(10px); }

@media (hover: hover) and (pointer: fine) {
  .fan-card:hover {
    transform: translateY(-8px) rotate(0deg);
    z-index: 3;
  }
}

.fan-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-lead);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.fan-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  width: 100%;
}
.fan-card__text {
  font-size: var(--step-body);
  line-height: 1.48;
  margin-top: auto;
}

/* ==========================================================================
   CHAPTER 3: HOW IT WORKS (Tiles That Grow + Live Agenda Simulator on Paper)
   ========================================================================== */
.chapter--paper {
  background: var(--paper);
  color: var(--ink-dark);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.grow-layout {
  align-items: end;
  row-gap: 2rem;
}
.grow-intro {
  grid-column: 1 / span 7;
  align-self: start;
  margin-bottom: 1.5rem;
}
.grow-intro__sub {
  margin-top: 1rem;
  color: var(--muted-dark);
  max-width: 44ch;
}

.grow-tile--1 { grid-column: 1 / span 3; }
.grow-tile--2 { grid-column: 4 / span 4; }
.grow-tile--3 { grid-column: 8 / span 5; }

.grow-tile__frame {
  padding: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.grow-tile__frame--yellow { background: var(--yellow); height: 240px; }
.grow-tile__frame--teal { background: var(--teal); height: 340px; }
.grow-tile__frame--emerald { background: var(--emerald); height: 440px; }

.grow-tile__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-lead);
  text-transform: uppercase;
  margin-top: 1rem;
  color: var(--ink-dark);
}
.grow-tile__text {
  margin-top: 0.4rem;
  font-size: var(--step-body);
  color: var(--muted-dark);
}

/* Live Agenda Simulator */
.simulator {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  background: var(--bg);
  color: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 3rem);
}
.simulator__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}
.simulator__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
.simulator__lead {
  font-size: var(--step-body);
  color: var(--muted-light);
  max-width: 54ch;
}
.simulator__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.simulator__controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.sim-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sim-label {
  font-weight: 500;
  font-size: var(--step-body);
  color: var(--muted-light);
}
.sim-label strong { color: var(--yellow); }

.sim-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sim-pill {
  padding: 0.65rem 1.05rem;
  background: #232830;
  color: #ffffff;
  font-weight: 500;
  font-size: var(--step-small);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.sim-pill:hover { background: #313844; }
.sim-pill:active { transform: scale(0.97); }
.sim-pill.is-active {
  background: var(--emerald);
  color: var(--emerald-ink);
  font-weight: 700;
}

.sim-range {
  width: 100%;
  accent-color: var(--emerald);
  height: 2rem;
  cursor: pointer;
}
.sim-scale {
  display: flex;
  justify-content: space-between;
  font-size: var(--step-small);
  color: var(--muted-light);
}

.simulator__output {
  background: #1d2127;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sim-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sim-metric__label {
  font-size: var(--step-small);
  color: var(--muted-light);
}
.sim-metric__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 1;
  color: var(--yellow);
}
.sim-metric__sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-lead);
  color: #ffffff;
}
.sim-metric__desc {
  font-size: var(--step-body);
  color: #ffffff;
}
.sim-cta {
  width: 100%;
  margin-top: 0.5rem;
}

/* ==========================================================================
   CHAPTER 4: LIST (Index With Preview on Deep Teal)
   ========================================================================== */
.chapter--teal {
  background: var(--teal);
  color: var(--teal-ink);
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}
.index-preview {
  align-items: start;
  row-gap: 2rem;
}
.index-list {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.index-row {
  padding: 1.35rem 1.5rem;
  background: rgba(8, 18, 16, 0.28);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: opacity var(--t-ui) var(--ease-out), background-color var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.index-list.is-hovering .index-row:not(.is-active) {
  opacity: 0.55;
}
.index-row.is-active,
.index-row:focus-visible {
  background: var(--yellow);
  color: var(--yellow-ink);
  transform: translateX(8px);
}
.index-row__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-lead);
  line-height: 1.1;
  text-transform: uppercase;
}
.index-row__desc {
  font-size: var(--step-body);
}
.index-row__inline-img {
  display: none;
  margin-top: 0.85rem;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.index-stage {
  grid-column: 8 / span 5;
  position: sticky;
  top: 2rem;
}
.index-stage__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #06453b;
}
.index-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
}
.index-stage__img.is-visible { opacity: 1; }
.index-stage__caption {
  margin-top: 0.85rem;
  font-weight: 500;
  font-size: var(--step-body);
  color: #ffffff;
}

/* ==========================================================================
   CHAPTER 5: FAQ (Full-Bleed Alternating Bands, Native Details Accordion)
   ========================================================================== */
.chapter--faq {
  background: var(--bg);
}
.faq-banner {
  background: var(--yellow);
  color: var(--yellow-ink);
  padding-top: clamp(3.5rem, 7vh, 5.5rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
}
.faq-banner__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.faq-band { width: 100%; }
.faq-band--paper { background: var(--paper); color: var(--ink-dark); }
.faq-band--charcoal { background: var(--bg); color: var(--ink); }

.faq-band__summary {
  list-style: none;
  cursor: pointer;
  padding-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(1.5rem, 2.5vw, 2rem);
  align-items: center;
}
.faq-band__summary::-webkit-details-marker { display: none; }

.faq-band__q {
  grid-column: 1 / span 11;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-lead);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.faq-band__q::before {
  content: "";
  inline-size: 0.95em;
  block-size: 0.95em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}
details[open] > .faq-band__summary .faq-band__q::before {
  rotate: 0deg;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-band__q::before {
    transition: rotate 0.2s var(--ease-out);
  }
}

.faq-band::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}
.faq-band:not([open])::details-content {
  block-size: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .faq-band::details-content {
    transition: block-size 0.3s ease-in-out, content-visibility 0.3s ease-in-out, display 0.3s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-band__body {
  padding-bottom: clamp(2rem, 3.5vw, 3rem);
}
.faq-band__a {
  grid-column: 1 / span 9;
  font-size: var(--step-body);
  line-height: 1.55;
  max-width: 66ch;
}

/* ==========================================================================
   CHAPTER 6: CTA (The Action Tile)
   ========================================================================== */
.chapter--cta {
  background: var(--bg);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta-row {
  display: grid;
  grid-template-columns: 2fr 8fr 2fr;
  gap: 0.75rem;
  min-height: 360px;
}
.cta-flank--photo { overflow: hidden; }
.cta-flank--yellow { background: var(--yellow); }

.cta-center {
  background: var(--emerald);
  color: var(--emerald-ink);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.cta-center__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-head);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.cta-center__text {
  font-size: var(--step-lead);
  max-width: 44ch;
  color: var(--emerald-ink);
}
.cta-center__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.cta-center__mail { color: var(--emerald-ink); }

/* ==========================================================================
   CHAPTER 7: FOOTER (Name First, Places Under It)
   ========================================================================== */
.chapter--footer {
  background: var(--bg);
  color: var(--ink);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-brand-row {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-logo {
  height: clamp(44px, 6vw, 80px);
  width: auto;
}
.footer-main {
  row-gap: 2.5rem;
  align-items: start;
}
.footer-places {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-place {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-lead);
  line-height: 1.2;
  color: var(--emerald);
  text-decoration: none;
  transition: color var(--t-hover) ease;
}
a.footer-place:hover { color: var(--yellow); }
.footer-place--muted {
  color: #ffffff;
  font-weight: 700;
  font-size: var(--step-body);
  margin-top: 0.25rem;
}

.footer-links-grid {
  grid-column: 7 / span 6;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: var(--step-small);
  color: var(--muted-light);
}

.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-light);
}

/* ==========================================================================
   MOTION LAYER (Compositor-only: transform & opacity, reduced-motion safe)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(18px);
    animation: p24-rise var(--t-reveal) var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 80ms);
  }
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms var(--ease-out), transform 780ms var(--ease-out);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
  .js .shutter[data-reveal] {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 950ms var(--ease-in-out);
  }
  .js .shutter[data-reveal] img {
    transform: scale(1.1);
    transition: transform 1300ms var(--ease-soft);
  }
  .js .shutter[data-reveal].is-in {
    clip-path: inset(0);
  }
  .js .shutter[data-reveal].is-in img {
    transform: none;
  }

  .drift-media {
    animation: p24-drift 18s var(--ease-soft) infinite alternate;
  }
}

@keyframes p24-rise {
  to { opacity: 1; transform: none; }
}
@keyframes p24-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

/* ==========================================================================
   RESPONSIVE: TABLET (<= 1024px) & PHONE (<= 720px)
   ========================================================================== */
@media (max-width: 64em) {
  .folder-front__copy,
  .folder-front__media,
  .intro-main,
  .intro-photos,
  .chapter-header__title,
  .chapter-header__desc,
  .grow-intro,
  .grow-tile--1,
  .grow-tile--2,
  .grow-tile--3,
  .index-list,
  .index-stage,
  .footer-places,
  .footer-links-grid {
    grid-column: 1 / -1;
  }

  .fan-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fan-card--emerald,
  .fan-card--cobalt,
  .fan-card--crimson,
  .fan-card--yellow {
    transform: none;
  }

  .simulator__grid {
    grid-template-columns: 1fr;
  }

  .intro-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .index-stage { display: none; }
  .index-row__inline-img { display: block; }
  .index-row.is-active { transform: none; }

  .cta-row {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .cta-center { grid-column: 1 / -1; order: -1; }
  .cta-flank { height: 140px; }
}

@media (max-width: 45em) {
  .hero-topbar {
    grid-template-columns: auto 1fr;
  }
  .hero-topbar__left { display: none; }
  .hero-brand { justify-self: start; }

  .folder:not(.folder--front) {
    width: 100%;
    height: 40px;
  }
  .folder--front {
    width: 100%;
    height: auto;
  }
  .folder__tab {
    top: -28px;
    height: 29px;
    padding: 0 1.4rem 0 0.85rem;
  }
  .folder--blue .folder__tab { left: 3%; }
  .folder--crimson .folder__tab { left: 32%; }
  .folder--teal .folder__tab { left: 58%; }
  .folder--yellow .folder__tab { left: 10%; }

  .staircase__line {
    font-size: var(--step-lead);
    white-space: normal;
  }
  .stair-1 { padding-left: 3vw; }
  .stair-2 { padding-left: 6vw; }
  .stair-3 { padding-left: 9vw; }
  .stair-4 { padding-left: 12vw; }

  .fan-stage {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grow-tile__frame--yellow { height: 180px; }
  .grow-tile__frame--teal { height: 220px; }
  .grow-tile__frame--emerald { height: 260px; }

  .faq-band__a { grid-column: 1 / -1; }
  .footer-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-front__actions .button,
  .cta-center__actions .button { width: 100%; }
}