/* ==========================================================================
   MediByte · Apple Flagship Chapter Sections
   10 Chapters · Titanium & Ceramic iPhone Pro Hardware · Bento & Pro Theatres
   ========================================================================== */

/* --------------------------------------------------------------------------
   CHAPTER 01: MONUMENTAL APPLE KEYNOTE HERO (#top)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(54px, 7vw, 88px) 0 clamp(68px, 8vw, 108px);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 58%, #F5F5F7 100%);
  overflow: clip;
}

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

.hero-apple-stack {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.hero-eyebrow-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

/* Miniature Titanium/Sapphire Dr. MediByte Visor Jewel */
.hero-visor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 30%, #1B2740 0%, #070A12 78%);
  border: 1.5px solid rgba(0, 0, 0, 0.14);
  box-shadow:
    0 6px 16px -4px rgba(0, 0, 0, 0.25),
    inset 0 1px 4px rgba(255, 255, 255, 0.28);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.28s ease;
}

.hero-visor-pill:hover {
  transform: scale(1.1);
  box-shadow:
    0 10px 24px -4px rgba(0, 113, 227, 0.35),
    inset 0 1px 6px rgba(92, 225, 230, 0.35);
}

.hero-visor-pill__glint {
  position: absolute;
  top: 3px;
  left: 16%;
  width: 42%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.42), transparent);
  pointer-events: none;
}

.hero-visor-eyes {
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate3d(var(--eye-x, 0px), var(--eye-y, 0px), 0);
  transition: transform 0.08s linear;
  animation: visorBlink 5.4s infinite;
}

.hero-visor-eye {
  width: 9px;
  height: 6px;
  border-top: 2.2px solid #5CE1E6;
  border-left: 1.8px solid #5CE1E6;
  border-right: 1.8px solid #5CE1E6;
  border-radius: 999px 999px 0 0;
}

@keyframes visorBlink {
  0%, 93%, 100% { transform: translate3d(var(--eye-x, 0px), var(--eye-y, 0px), 0) scaleY(1); }
  95.5% { transform: translate3d(var(--eye-x, 0px), var(--eye-y, 0px), 0) scaleY(0.08); }
}

.hero-subcopy {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: -0.014em;
  color: var(--ink-2);
  max-width: 660px;
  margin: 0 auto 28px;
}

.hero-subcopy strong {
  color: var(--ink);
  font-weight: 600;
}

/* Machined Titanium & Ceramic 3-Phone Pro Stage */
.spatial-stage {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

.spatial-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: 620px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 113, 227, 0.11) 0%,
    rgba(92, 225, 230, 0.06) 48%,
    transparent 74%
  );
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.spatial-trio {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: clamp(460px, 52vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out;
  z-index: 2;
}

/* Realistic Machined Titanium iPhone Pro Chassis */
.fan-phone {
  position: absolute;
  width: clamp(232px, 24vw, 272px);
  padding: 9px;
  border-radius: 48px;
  background: linear-gradient(145deg, #FAFBFC 0%, #D3D6DE 36%, #ECEDF2 70%, #FFFFFF 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 40px 88px -22px rgba(0, 0, 0, 0.24),
    0 12px 28px -8px rgba(0, 0, 0, 0.09),
    inset 0 1px 2px #FFFFFF;
  cursor: pointer;
  transition:
    transform 0.65s var(--ease-spring),
    opacity 0.45s ease,
    box-shadow 0.45s ease;
  user-select: none;
}

.fan-phone::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 118px;
  width: 3px;
  height: 44px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #B8BCC6, #E5E7EC);
}

.fan-phone::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 138px;
  width: 3px;
  height: 58px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #B8BCC6, #E5E7EC);
}

.fan-phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  border-radius: 999px;
  background: #060709;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 4;
}

.fan-phone__notch::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2D4A7C, #070B16 70%);
}

.fan-phone__screen {
  border-radius: 39px;
  overflow: hidden;
  background: var(--white);
  aspect-ratio: 570 / 1240;
  box-shadow:
    0 0 0 3px #0A0B0F,
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.fan-phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fan-phone[data-slot="center"] {
  z-index: 5;
  transform: translate3d(0, -4px, 60px) scale(1.04);
  opacity: 1;
}

.fan-phone[data-slot="left"] {
  z-index: 3;
  transform: translate3d(-190px, 24px, -60px) rotateY(16deg) scale(0.88);
  opacity: 0.94;
}

.fan-phone[data-slot="left"]:hover {
  transform: translate3d(-196px, 14px, -34px) rotateY(12deg) scale(0.91);
  opacity: 1;
}

.fan-phone[data-slot="right"] {
  z-index: 3;
  transform: translate3d(190px, 24px, -60px) rotateY(-16deg) scale(0.88);
  opacity: 0.94;
}

.fan-phone[data-slot="right"]:hover {
  transform: translate3d(196px, 14px, -34px) rotateY(-12deg) scale(0.91);
  opacity: 1;
}

.spatial-switcher {
  position: relative;
  z-index: 6;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--ceramic-2);
}

.spatial-switcher button {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s ease;
}

.spatial-switcher button.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Centered Apple Exam Blueprint Selector */
.track-dock {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 34px auto 0;
  padding: 20px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-ceramic);
  text-align: left;
}

.track-dock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.track-dock__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.track-dock__badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #0066CC;
  background: var(--cobalt-soft);
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

.track-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: 16px;
  background: var(--ceramic);
  margin-bottom: 14px;
}

.track-pill {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.track-pill:hover {
  color: var(--ink);
}

.track-pill.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.track-readout {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.54;
  color: var(--ink-2);
}

.track-readout strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__trust {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CHAPTER 02: "GET THE HIGHLIGHTS" APPLE BENTO GRID (#highlights)
   -------------------------------------------------------------------------- */
.bento-highlights {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  position: relative;
  border-radius: 28px;
  padding: clamp(26px, 3.2vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-ceramic-hover);
}

.bento-card--span7 { grid-column: span 7; }
.bento-card--span5 { grid-column: span 5; }
.bento-card--span4 { grid-column: span 4; }
.bento-card--span12 {
  grid-column: span 12;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.bento-card--pro {
  background:
    radial-gradient(520px circle at 88% 12%, rgba(0, 113, 227, 0.28), transparent 65%),
    linear-gradient(155deg, #0D1119 0%, #06080D 100%);
  color: #F5F5F7;
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-card--tint {
  background: linear-gradient(160deg, #EFF5FF 0%, #FFFFFF 100%);
  border-color: rgba(0, 113, 227, 0.12);
}

.bento-eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #0066CC;
  margin-bottom: 6px;
}

.bento-card--pro .bento-eyebrow {
  color: #64D2FF;
}

.bento-stat {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 56px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 10px;
}

.bento-card--pro .bento-stat {
  background: linear-gradient(96deg, #FFFFFF 0%, #64D2FF 60%, #78E3D6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bento-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.bento-card--pro p {
  color: #A1A7B3;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-tag {
  padding: 5px 12px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  background: var(--ceramic);
  color: var(--ink);
}

.bento-card--pro .bento-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
}

/* --------------------------------------------------------------------------
   CHAPTER 03: STICKY HARDWARE SCROLL CHOREOGRAPHY (#scrolly-tour)
   -------------------------------------------------------------------------- */
.scrolly-section {
  position: relative;
  background: var(--white);
}

.scrolly-track {
  position: relative;
  height: min(285vh, 2720px);
}

.scrolly-pin {
  position: sticky;
  top: 60px;
  height: min(calc(100vh - 64px), 840px);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scrolly-watermark {
  position: absolute;
  right: 4%;
  bottom: -4%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13rem, 25vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(0, 0, 0, 0.032);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  transition: transform 0.35s var(--ease-spring);
}

.scrolly-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

.scrolly-rail {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--ceramic);
  margin-bottom: 24px;
}

.scrolly-rail-btn {
  height: 34px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s ease;
}

.scrolly-rail-btn.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scrolly-slides {
  position: relative;
  min-height: 270px;
}

.scrolly-slide {
  display: none;
  animation: slideFadeIn 0.38s var(--ease-spring);
}

.scrolly-slide.is-active {
  display: block;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scrolly-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.scrolly-stat-pill {
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.scrolly-stat-pill strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-right: 4px;
}

.scrolly-device-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1500px;
  min-height: 540px;
}

.scrolly-glow-disc {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.11) 0%, rgba(92, 225, 230, 0.06) 45%, transparent 72%);
  filter: blur(22px);
  pointer-events: none;
}

.scrolly-monolith {
  position: relative;
  width: 274px;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #FAFBFC 0%, #D3D6DE 42%, #FFFFFF 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow:
    0 44px 96px -22px rgba(0, 0, 0, 0.24),
    0 14px 32px -10px rgba(0, 0, 0, 0.09),
    inset 0 1px 2px #FFFFFF;
  transform-style: preserve-3d;
  transition: transform 0.22s ease-out;
}

.scrolly-monolith__screen {
  position: relative;
  border-radius: 38px;
  overflow: hidden;
  aspect-ratio: 570 / 1240;
  background: var(--white);
  box-shadow: 0 0 0 3px #0A0B0F;
}

.scrolly-monolith__screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transform: scale(1.02);
  transition: opacity 0.28s ease, transform 0.42s var(--ease-spring);
}

.scrolly-monolith__screen img.is-active {
  opacity: 1;
  z-index: 2;
  transform: scale(1);
}

.scrolly-callout {
  position: absolute;
  right: 12px;
  bottom: 48px;
  z-index: 5;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(20, 22, 28, 0.9);
  backdrop-filter: blur(18px);
  color: #F5F5F7;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.35);
  transform: translateZ(54px);
  max-width: 228px;
}

.scrolly-callout small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #64D2FF;
  margin-bottom: 3px;
}

.scrolly-callout strong {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* Scroll-Illuminated Apple Keynote Statement */
.manifesto-band {
  padding: clamp(80px, 10vw, 132px) 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  text-align: center;
}

.manifesto-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin: 0 auto;
}

.scrub-word {
  color: #D2D2D7;
  transition: color 0.24s ease;
}

.scrub-word.is-lit {
  color: var(--ink);
}

.scrub-word.is-lit.is-cobalt {
  color: var(--apple-blue);
}

/* --------------------------------------------------------------------------
   CHAPTER 04: PRO DARK THEATRE I · LIVE ECG STUDIO (#ecg-desk)
   -------------------------------------------------------------------------- */
.ecg-workbench {
  position: relative;
  border-radius: 32px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.2vw, 38px);
  transition: background 0.32s ease, color 0.32s ease, border-color 0.32s ease;
}

.ecg-workbench[data-ecg-theme="dark"] {
  background: #0D1017;
  color: #F5F5F7;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 36px 90px -20px rgba(0, 0, 0, 0.85);
}

.ecg-top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.ecg-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.ecg-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-live-badge {
  background: rgba(100, 210, 255, 0.12);
  color: #64D2FF;
  border: 1px solid rgba(100, 210, 255, 0.24);
}

.ecg-live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C8402F;
  animation: pulseDot 1.2s ease-in-out infinite;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-live-badge__dot {
  background: #5CE1E6;
}

.ecg-workbench.is-frozen .ecg-live-badge__dot {
  animation: none;
  opacity: 0.4;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.7; }
}

.ecg-calibration-meta {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-2);
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-calibration-meta {
  color: #8E95A2;
}

.ecg-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ecg-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--ceramic);
  border: 1px solid var(--line);
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-mode-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.ecg-mode-btn {
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-mode-btn {
  color: #9CA3AF;
}

.ecg-mode-btn.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-mode-btn.is-active {
  background: #2C313D;
  color: #FFFFFF;
}

.ecg-rhythm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ecg-workbench:not([data-ecg-theme="dark"]) .chip:not(.is-active) {
  background: var(--ceramic);
  color: var(--ink);
  border-color: var(--line);
}

.ecg-workbench:not([data-ecg-theme="dark"]) .chip.is-active {
  background: var(--ink);
  color: var(--white);
}

.ecg-strip-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ecg-paper);
  border: 1px solid rgba(200, 64, 47, 0.25);
  height: 320px;
  touch-action: none;
  user-select: none;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-strip-frame {
  background: #05080F;
  border-color: rgba(255, 255, 255, 0.12);
}

.ecg-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: ew-resize;
}

.caliper-hud {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.ecg-workbench[data-ecg-theme="dark"] .caliper-hud {
  background: rgba(15, 19, 28, 0.9);
  color: #F5F5F7;
  border-color: rgba(255, 255, 255, 0.14);
}

.caliper-hud strong {
  color: var(--apple-blue);
}

.ecg-workbench[data-ecg-theme="dark"] .caliper-hud strong {
  color: #5CE1E6;
}

.ecg-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-controls-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ecg-control-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.ecg-cluster-label {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-right: 3px;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-cluster-label {
  color: #8E95A2;
}

.ecg-bottom-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.ecg-vitals-box {
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-vitals-box {
  background: #141923;
  border-color: rgba(255, 255, 255, 0.1);
}

.ecg-vitals-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.vital-cell small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.ecg-workbench[data-ecg-theme="dark"] .vital-cell small {
  color: #8E95A2;
}

.vital-cell strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.ecg-workbench[data-ecg-theme="dark"] .vital-cell strong {
  color: #64D2FF;
}

.vital-cell span {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-2);
  margin-left: 3px;
}

.ecg-workbench[data-ecg-theme="dark"] .vital-cell span {
  color: #8E95A2;
}

.ecg-teaching-box {
  padding: 18px 22px;
  border-radius: 22px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-teaching-box {
  background: #141923;
  border-color: rgba(255, 255, 255, 0.1);
}

.ecg-teaching-box__mascot {
  width: 76px;
  height: auto;
}

.ecg-teaching-box__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0 0 6px;
}

.ecg-teaching-box__clue {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--ink-2);
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-teaching-box__clue {
  color: #C7CEDB;
}

.ecg-teaching-box__trap {
  font-size: 13px;
  line-height: 1.45;
  color: var(--coral);
  font-weight: 500;
}

.ecg-workbench[data-ecg-theme="dark"] .ecg-teaching-box__trap {
  color: #FF8A7A;
}

/* --------------------------------------------------------------------------
   CHAPTER 05 & 06: QUESTION LAB (#qbank) & CLASSROOMS (#classroom)
   -------------------------------------------------------------------------- */
.qbank-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(22px, 3.2vw, 38px);
  align-items: start;
}

.solver-card {
  padding: clamp(24px, 3vw, 34px);
  background: var(--ceramic);
  border: 1px solid var(--line);
  box-shadow: none;
}

.solver-case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.solver-case-tabs .chip:not(.is-active) {
  background: var(--white);
}

.solver-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.solver-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.solver-tools .chip:not(.is-active) {
  background: var(--white);
}

.vignette-box {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 14px;
}

.clue-span {
  transition: background 0.2s ease, box-shadow 0.2s ease;
  border-radius: 4px;
}

.solver-card.clues-on .clue-span {
  background: rgba(0, 113, 227, 0.11);
  box-shadow: inset 0 -2px 0 var(--apple-blue);
  padding-inline: 2px;
}

.vitals-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.vital-chip {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.solver-leadin {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 14px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.option-row:hover {
  border-color: var(--apple-blue);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ceramic);
  color: var(--ink);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-body {
  flex: 1;
}

.option-label {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
}

.option-rationale {
  display: none;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.48;
  color: var(--ink-2);
}

.option-row.is-eliminated {
  opacity: 0.44;
}

.option-row.is-eliminated .option-label {
  text-decoration: line-through;
}

.option-row.is-correct {
  border-color: var(--teal);
  background: #EFF9F8;
}

.option-row.is-correct .option-badge {
  background: var(--teal);
  color: var(--white);
}

.option-row.is-wrong {
  border-color: var(--coral);
  background: #FFF3F2;
}

.option-row.is-wrong .option-badge {
  background: var(--coral);
  color: var(--white);
}

.solver-card.is-answered .option-rationale {
  display: block;
}

.strike-btn {
  padding: 4px 8px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--ceramic);
  flex-shrink: 0;
}

.trick-reveal {
  display: none;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(0, 113, 227, 0.24);
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.solver-card.is-answered .trick-reveal {
  display: grid;
}

.trick-reveal__art {
  width: 72px;
  padding: 6px;
  border-radius: 14px;
  background: var(--ceramic);
}

.trick-reveal__eyebrow {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066CC;
  margin-bottom: 4px;
}

.trick-reveal p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}

.mock-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.atelier-art-frame {
  background: var(--ceramic);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 16px;
}

.atelier-art-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--white);
}

.mock-blueprint-card {
  padding: 26px 28px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  box-shadow: none;
}

.blueprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.blueprint-tile {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.blueprint-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.blueprint-tile span {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--ink-2);
}

/* Self Drawing Classroom */
.classroom-workbench {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: clamp(22px, 3.2vw, 38px);
  align-items: stretch;
}

.board-player {
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.board-canvas-stage {
  position: relative;
  border-radius: 22px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  padding: 20px;
  min-height: 316px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: none;
}

.board-svg.is-active {
  display: block;
}

.draw-stroke {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.1s var(--ease-spring);
}

.draw-stroke.is-drawn {
  stroke-dashoffset: 0;
}

.board-narration-bar {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.waveform-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding-top: 2px;
  flex-shrink: 0;
}

.waveform-bars span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--apple-blue);
  animation: waveBounce 0.9s ease-in-out infinite;
}

.waveform-bars span:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.waveform-bars span:nth-child(3) { animation-delay: 0.3s; height: 22px; }
.waveform-bars span:nth-child(4) { animation-delay: 0.45s; height: 13px; }

.board-player.is-paused .waveform-bars span {
  animation-play-state: paused;
  height: 6px;
}

@keyframes waveBounce {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1.1); }
}

.board-narration-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.board-controls {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.board-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.classroom-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section--ceramic .atelier-art-frame {
  background: var(--white);
}

.curriculum-stats {
  padding: 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hub-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-mini-pills span {
  padding: 5px 11px;
  border-radius: 980px;
  background: var(--ceramic);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   CHAPTER 07: GAME ARENA · APPLE ARCADE MUSEUM SHOWCASE (#arcades)
   -------------------------------------------------------------------------- */
.section--arena {
  --exp-blue: #0066CC;
  --exp-blue-deep: #004FA3;
  --exp-ink: #1D1D1F;
  --exp-sec: #6E6E73;
  --exp-mint: #0F705C;
  --exp-coral: #C93545;
  --exp-blue-paper: #F2F6FC;
  --exp-mint-paper: #EDFBF5;
  --exp-coral-paper: #FFF2F3;
  --font-arena-serif: var(--font-serif);
}

.arena-top-bar {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: clamp(24px, 3.6vw, 48px);
  align-items: end;
  margin-bottom: 28px;
}

.arena-rank-card {
  padding: 22px 24px;
  border-radius: 28px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  color: var(--ink);
}

.arena-rank-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.arena-rank-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--exp-blue);
}

.arena-rank-pill {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--exp-blue);
}

.arena-rank-card__mid {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.arena-medallion {
  position: relative;
  width: 54px;
  height: 60px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.arena-medallion svg {
  width: 100%;
  height: 100%;
}

.arena-medallion__num {
  position: absolute;
  font-family: var(--font-arena-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--exp-blue);
  transform: translateY(-2px);
}

.arena-rank-card__heading strong {
  display: block;
  font-family: var(--font-arena-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 3px;
}

.arena-rank-card__heading span {
  display: block;
  font-size: 12.5px;
  line-height: 1.44;
  color: var(--ink-2);
}

.arena-xp-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.arena-xp-box__labels {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 7px;
}

.arena-xp-box__labels b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--exp-blue);
}

.arena-xp-track {
  height: 7px;
  border-radius: 980px;
  background: var(--ceramic-2);
  overflow: hidden;
}

.arena-xp-fill {
  height: 100%;
  width: 0%;
  border-radius: 980px;
  background: linear-gradient(90deg, var(--apple-blue) 0%, #38AEFF 100%);
  transition: width 0.5s var(--ease-spring);
}

.arena-rank-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.arena-rank-badge-note {
  color: var(--exp-blue);
  font-weight: 600;
}

.arena-district-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.arena-district-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--ceramic);
}

.arena-district-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 15px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.18s ease;
  cursor: pointer;
}

.arena-district-btn:hover {
  color: var(--ink);
}

.arena-district-btn.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arena-district-count {
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--ceramic-2);
  color: var(--ink-2);
}

.arena-district-btn.is-active .arena-district-count {
  background: var(--cobalt-soft);
  color: var(--apple-blue);
}

.arena-park-note {
  font-size: 13px;
  color: var(--ink-2);
}

.arena-park-note strong {
  color: var(--ink);
  font-weight: 600;
}

/* Expedition Workbench Stage */
.expedition-stage {
  margin-bottom: 28px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 32px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
  color: var(--ink);
}

.expedition-workbench {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.exp-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.exp-topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-district-badge {
  padding: 4px 11px;
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  background: var(--white);
  color: var(--exp-blue);
  border: 1px solid var(--line);
}

.exp-district-badge[data-district="Clinical"] { color: var(--exp-mint); }
.exp-district-badge[data-district="Practice"] { color: var(--exp-coral); }

.exp-subject-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.exp-reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 9px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
}

.exp-reward-pill.is-earned {
  background: var(--exp-mint-paper);
  border-color: rgba(15, 112, 92, 0.25);
}

.exp-reward-medal {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #FFE074, #F5A623);
  color: #6B3D00;
  font-size: 13px;
  font-weight: 700;
}

.exp-reward-pill.is-earned .exp-reward-medal {
  background: var(--exp-mint);
  color: #FFFFFF;
}

.exp-reward-pill small {
  display: block;
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.1;
}

.exp-reward-pill strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--exp-blue);
  line-height: 1.2;
}

.exp-reward-pill.is-earned strong {
  color: var(--exp-mint);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-emblem-wrap {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.exp-emblem-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.exp-serif-title {
  font-family: var(--font-arena-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 4px;
}

.exp-tracked-eyebrow {
  margin: 0;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--exp-blue);
}

.exp-mission-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.exp-mission-rail__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-mission-code {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.exp-pips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.exp-pips span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ceramic-2);
}

.exp-pips span.is-current {
  width: 9px;
  height: 9px;
  background: var(--apple-blue);
}

.exp-pips span.is-done {
  background: var(--exp-mint);
}

.exp-mission-name {
  font-family: var(--font-arena-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--exp-blue);
}

.exp-world-frame {
  position: relative;
  border-radius: 24px;
  padding: 16px;
  background-color: #DCEBFF;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 88px;
  min-height: 386px;
  overflow: hidden;
  transition: background-image 0.25s ease;
}

.exp-world-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.02) 32%,
    rgba(245, 245, 247, 0.4) 100%
  );
  pointer-events: none;
}

.exp-world-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exp-world-pill {
  padding: 5px 12px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
}

.exp-world-pill--subtle {
  color: var(--exp-blue);
}

.exp-board-card {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-story {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--ink);
}

.exp-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}

.exp-metric {
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  text-align: center;
}

.exp-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--exp-blue);
}

.exp-metric--coral { background: var(--exp-coral-paper); border-color: rgba(201, 53, 69, 0.18); }
.exp-metric--coral strong { color: var(--exp-coral); }

.exp-metric--mint { background: var(--exp-mint-paper); border-color: rgba(15, 112, 92, 0.18); }
.exp-metric--mint strong { color: var(--exp-mint); }

.exp-metric span {
  display: block;
  margin-top: 2px;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-2);
}

.exp-formula-bar {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ceramic);
  border: 1px solid var(--line);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--exp-blue);
  text-align: center;
}

.exp-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.exp-choice-btn {
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-align: left;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: all 0.16s ease;
}

.exp-choice-btn:hover {
  border-color: var(--apple-blue);
  background: var(--exp-blue-paper);
}

.exp-choice-btn.is-selected {
  border-color: var(--apple-blue);
  background: var(--exp-blue-paper);
  color: var(--exp-blue);
  font-weight: 600;
}

.exp-choice-btn.is-mint {
  border-color: rgba(15, 112, 92, 0.38);
  background: var(--exp-mint-paper);
  color: var(--exp-mint);
}

.exp-choice-btn.is-coral {
  border-color: rgba(201, 53, 69, 0.35);
  background: var(--exp-coral-paper);
  color: var(--exp-coral);
}

.exp-choice-btn small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10px;
  opacity: 0.78;
  margin-top: 2px;
}

.exp-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--ceramic);
}

.exp-slider-row label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  min-width: 110px;
}

.exp-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--apple-blue);
  cursor: pointer;
}

.exp-step-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--apple-blue);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.exp-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exp-submit-btn {
  flex: 1;
  min-width: 180px;
  height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease;
}

.exp-submit-btn:hover {
  background: var(--apple-blue-hover);
}

.exp-reset-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 980px;
  background: var(--ceramic);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.exp-reset-btn:hover {
  background: var(--ceramic-2);
  color: var(--ink);
}

.exp-professor-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.exp-professor-bar.is-success {
  background: var(--exp-mint-paper);
  border-color: rgba(15, 112, 92, 0.28);
}

.exp-professor-bar.is-retry {
  background: var(--exp-coral-paper);
  border-color: rgba(201, 53, 69, 0.28);
}

.exp-professor-bar img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-professor-bar__text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--exp-blue);
  margin-bottom: 2px;
}

.exp-professor-bar.is-success .exp-professor-bar__text strong { color: var(--exp-mint); }
.exp-professor-bar.is-retry .exp-professor-bar__text strong { color: var(--exp-coral); }

.exp-professor-bar__text p {
  margin: 0;
  font-size: 13px;
  line-height: 1.44;
  color: var(--ink);
}

/* Right Column: Real App Titanium iPhone Showcase */
.expedition-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid var(--line);
}

.exp-screen-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--ceramic);
  gap: 2px;
}

.exp-screen-tab {
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}

.exp-screen-tab.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.exp-phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1100px;
  padding: 6px 0;
}

.exp-phone-glow {
  display: none;
}

.exp-iphone {
  position: relative;
  width: 254px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #FAFBFC 0%, #D3D6DE 45%, #FFFFFF 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 28px 64px -18px rgba(0, 0, 0, 0.24);
  transform: rotateY(var(--ip-ry, -6deg)) rotateX(var(--ip-rx, 2deg));
  transition: transform 0.22s ease-out;
}

.exp-iphone__island {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 18px;
  border-radius: 999px;
  background: #060709;
  z-index: 3;
}

.exp-iphone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: #FFFFFF;
  aspect-ratio: 560 / 1218;
  box-shadow: 0 0 0 3px #0A0B0F;
}

.exp-iphone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exp-phone-caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--ceramic);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

.exp-phone-caption__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--exp-mint);
  flex-shrink: 0;
}

/* 12 Living Exhibition Museum Cards */
.diorama-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.diorama-card {
  position: relative;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-ceramic);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
}

.diorama-card[hidden] {
  display: none !important;
}

.diorama-card:hover,
.diorama-card.is-active {
  border-color: var(--apple-blue);
  box-shadow: 0 18px 42px -12px rgba(0, 113, 227, 0.22);
}

.diorama-card__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ceramic);
}

.diorama-card__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s var(--ease-spring);
}

.diorama-card:hover .diorama-card__scene img {
  transform: scale(1.04);
}

.diorama-card__district {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--exp-blue);
}

.diorama-card__district[data-district="Clinical"] { color: var(--exp-mint); }
.diorama-card__district[data-district="Practice"] { color: var(--exp-coral); }

.diorama-card__xp {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 980px;
  background: rgba(29, 29, 31, 0.78);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.diorama-card__xp.is-cleared {
  background: var(--exp-mint);
}

.diorama-card__emblem {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  margin: -26px 14px 0 auto;
  padding: 5px;
  border-radius: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.16);
}

.diorama-card__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.diorama-card__body {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.diorama-card__body small {
  font-size: 11px;
  font-weight: 600;
  color: var(--exp-blue);
  margin-bottom: 3px;
}

.diorama-card[data-district="Clinical"] .diorama-card__body small { color: var(--exp-mint); }
.diorama-card[data-district="Practice"] .diorama-card__body small { color: var(--exp-coral); }

.diorama-card__body strong {
  font-family: var(--font-arena-serif);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.16;
  color: var(--ink);
  margin-bottom: 4px;
}

.diorama-card__body p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--ink-2);
  flex: 1;
}

.diorama-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.crest-pips {
  display: inline-flex;
  gap: 4px;
}

.crest-pips i {
  width: 16px;
  height: 4px;
  border-radius: 980px;
  background: var(--ceramic-2);
  display: block;
}

.crest-pips i.is-lit {
  background: var(--apple-blue);
}

.diorama-card__cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-blue);
}

.arena-scope-note {
  margin-top: 24px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   CHAPTER 08: PRO DARK THEATRE II · CLINICAL ROOM (#clinical-room Obsidian)
   -------------------------------------------------------------------------- */
.lab-flip-stage {
  padding: clamp(24px, 3.4vw, 38px);
  margin-bottom: 24px;
  background: #0D1017;
  border-color: rgba(255, 255, 255, 0.12);
}

.lab-flip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.lab-flip-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}

.lab-pane {
  padding: 22px 24px;
  border-radius: 22px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-pane__tag {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 600;
  color: #64D2FF;
  margin-right: 6px;
}

.lab-pane h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 600;
  color: #F5F5F7;
  margin: 0 0 6px;
}

.lab-pane__mech {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #9CA3AF;
}

.lab-analyte-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lab-analyte-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #F5F5F7;
}

.lab-analyte-row small {
  font-size: 12px;
  color: #8E95A2;
}

.dir-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.dir-badge--up { background: var(--apple-blue); }
.dir-badge--down { background: #00A8AB; }
.dir-badge--norm { background: #484E5A; }

.lab-swap-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1C2230;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64D2FF;
  font-size: 19px;
  font-weight: 600;
  transition: transform 0.42s var(--ease-spring), background 0.2s ease;
}

.lab-swap-btn:hover {
  background: var(--apple-blue);
  color: #FFFFFF;
  transform: rotate(180deg) scale(1.06);
}

.lab-twist-bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #F5F5F7;
}

.lab-twist-answer {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(120, 227, 214, 0.12);
  border: 1px solid rgba(120, 227, 214, 0.28);
  font-size: 13.5px;
  color: #E6F8F6;
}

.lab-twist-answer.is-open {
  display: block;
}

.clinical-duo {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 24px;
}

.chrono-studio-card,
.osce-studio-card {
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0D1017;
  border-color: rgba(255, 255, 255, 0.12);
}

.chrono-dial-wrap {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 18px auto;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #1C2331 0%, #090C13 78%);
  box-shadow:
    0 24px 52px -14px rgba(0, 0, 0, 0.7),
    inset 0 1px 2px rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chrono-readout-center {
  position: absolute;
  text-align: center;
  pointer-events: none;
}

.chrono-readout-center small {
  display: block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #64D2FF;
  text-transform: uppercase;
}

.chrono-readout-center strong {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #F5F5F7;
}

.chrono-readout-center span {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: #64D2FF;
}

.osce-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 16px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F5F5F7;
  margin: 14px 0;
}

.osce-timer {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: #5CE1E6;
  font-variant-numeric: tabular-nums;
}

.osce-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.osce-action-btn {
  padding: 11px 13px;
  border-radius: 14px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: #E5E7EB;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.osce-action-btn:hover {
  border-color: var(--apple-blue);
  background: #1A2130;
}

.osce-action-btn.is-done {
  background: rgba(92, 225, 230, 0.12);
  border-color: rgba(92, 225, 230, 0.45);
  color: #78E3D6;
}

.osce-finding-log {
  padding: 14px 16px;
  border-radius: 16px;
  background: #141923;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  line-height: 1.52;
  color: #D2D8E4;
  min-height: 76px;
}

/* --------------------------------------------------------------------------
   CHAPTER 09: INSIDE THE APP · APPLE HORIZONTAL GALLERY (#inside-app)
   -------------------------------------------------------------------------- */
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.screen-pills-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-arrows {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gallery-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ceramic);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: background 0.16s ease, transform 0.16s ease;
}

.gallery-arrow-btn:hover {
  background: var(--ceramic-2);
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}

.coverflow-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  padding: 18px 10px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.coverflow-item {
  flex: 0 0 228px;
  scroll-snap-align: center;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(145deg, #FAFBFC 0%, #D3D6DE 45%, #FFFFFF 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 44px -16px rgba(0, 0, 0, 0.16);
  opacity: 0.56;
  transform: scale(0.93);
  transition: transform 0.36s var(--ease-spring), opacity 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.coverflow-item.is-active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 28px 60px -16px rgba(0, 113, 227, 0.25);
}

.coverflow-item__screen {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 570 / 1240;
  background: var(--white);
  box-shadow: 0 0 0 2.5px #0A0B0F;
}

.coverflow-item__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-inspector {
  padding: clamp(24px, 3vw, 32px);
  background: var(--ceramic);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   CHAPTER 10: MEDIBYTE PLUS COMPARISON (#plus)
   -------------------------------------------------------------------------- */
.plus-controls-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.billing-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--ceramic-2);
}

.billing-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.18s ease;
}

.billing-btn.is-active {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.save-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 980px;
  background: rgba(0, 138, 142, 0.12);
  color: var(--teal);
  margin-left: 4px;
}

.plus-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: stretch;
}

.tier-card {
  padding: clamp(28px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-card--plus {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(500px circle at var(--pmx, 78%) var(--pmy, 18%), rgba(0, 113, 227, 0.25), transparent 65%),
    linear-gradient(160deg, #0D111A 0%, #06080D 100%);
  color: #F5F5F7;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 84px -20px rgba(0, 0, 0, 0.45);
  transform: perspective(1200px) rotateX(var(--prx, 0deg)) rotateY(var(--pry, 0deg));
  transition: transform 0.2s ease-out;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 6px;
}

.tier-price strong {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tier-check {
  color: var(--teal);
  font-weight: 700;
}

.tier-card--plus .tier-check {
  color: #64D2FF;
}

.plus-art-strip {
  margin: 14px 0 22px;
  padding: 12px;
  border-radius: 20px;
  background: var(--white);
}

.plus-art-strip img {
  width: 100%;
  max-height: 164px;
  object-fit: contain;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Responsive Choreography
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .bento-card--span7,
  .bento-card--span5,
  .bento-card--span4,
  .bento-card--span12 {
    grid-column: span 6;
  }
  .bento-card--span12 {
    grid-column: span 12;
  }

  .scrolly-grid,
  .qbank-layout,
  .classroom-workbench,
  .clinical-duo,
  .showcase-stage,
  .plus-grid,
  .ecg-bottom-grid,
  .arena-top-bar,
  .expedition-stage {
    grid-template-columns: 1fr;
  }

  .scrolly-track {
    height: auto;
    padding: 64px 0;
  }

  .scrolly-pin {
    position: relative;
    top: 0;
    height: auto;
    min-height: 0;
  }

  .diorama-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .bento-card--span7,
  .bento-card--span5,
  .bento-card--span4,
  .bento-card--span12 {
    grid-column: span 12;
  }

  .spatial-trio {
    height: 440px;
    max-width: 340px;
  }

  .fan-phone {
    width: 204px;
    border-radius: 38px;
    padding: 7px;
  }

  .fan-phone__screen {
    border-radius: 30px;
  }

  .fan-phone[data-slot="left"] {
    transform: translate3d(-74px, 18px, -45px) rotateY(15deg) scale(0.84);
  }

  .fan-phone[data-slot="right"] {
    transform: translate3d(74px, 18px, -45px) rotateY(-15deg) scale(0.84);
  }

  .scrolly-callout {
    display: none;
  }

  .ecg-strip-frame {
    height: 244px;
  }

  .caliper-hud {
    top: auto;
    bottom: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
    font-size: 10.5px;
  }

  .ecg-vitals-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecg-teaching-box {
    grid-template-columns: 1fr;
  }

  .diorama-grid,
  .osce-actions-grid,
  .blueprint-grid,
  .lab-flip-arena {
    grid-template-columns: 1fr;
  }

  .lab-swap-btn {
    margin-inline: auto;
  }

  .exp-world-frame {
    gap: 48px;
    min-height: 320px;
    padding: 12px;
  }

  .exp-iphone {
    width: 224px;
    transform: none;
  }
}

/* Free ECG Academy Gateway Banner on Homepage (#ecg-desk) */
.free-ecg-gateway {
  margin-top: 22px;
  padding: 24px 28px;
  border-radius: 26px;
  background: linear-gradient(125deg, rgba(10, 89, 245, 0.24) 0%, rgba(0, 168, 171, 0.18) 55%, rgba(18, 25, 42, 0.94) 100%);
  border: 1px solid rgba(120, 227, 214, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.free-ecg-gateway__copy {
  max-width: 690px;
}

.free-ecg-gateway__copy small {
  display: inline-block;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #78E3D6;
  margin-bottom: 6px;
}

.free-ecg-gateway__copy h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2vw, 1.58rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.free-ecg-gateway__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.52;
  color: #CBD8EE;
}


/* ============================================================================
   v34 MEDIBYTE NEW iOS ATELIER THEME · WARM IVORY PARCHMENT & ELECTRIC ROYAL COBALT
   - Harmonizes Entire Homepage with the Brand-New Warm Ivory iOS App Identity
   - Hand-Inked Cobalt Sketchbook Flanking Hero Artwork + Champagne-Titanium 3D Phones
   - Interactive Study Planner & Learning World Live Web Showcase (#atelier-world)
   ============================================================================ */

/* 1. Monumental Warm Parchment Hero with Hand-Inked Cobalt Sketchbook Flanks */
.hero {
  background: linear-gradient(180deg, #FAF7F2 0%, #FBF8F3 56%, #F3EDE2 100%) !important;
  border-bottom: 1px solid rgba(124, 106, 80, 0.12);
}

.hero-atelier-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("/assets/img/atelier/hero-parchment-atelier.jpg");
  background-repeat: no-repeat;
  background-position: center 22px;
  background-size: min(1760px, 106%) auto;
  mix-blend-mode: multiply;
  opacity: 0.72;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 14%, rgba(0, 0, 0, 0.84) 60%, transparent 94%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.94) 14%, rgba(0, 0, 0, 0.84) 60%, transparent 94%);
}

.hero-atelier-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 32% 48% at 50% 32%, rgba(250, 247, 242, 0.94) 0%, rgba(250, 247, 242, 0.74) 56%, transparent 100%);
  pointer-events: none;
}

@media (max-width: 1080px) {
  .hero-atelier-art {
    opacity: 0.30;
    background-size: 1320px auto;
  }
}

@media (max-width: 820px) {
  .hero-atelier-art {
    display: none;
  }
}

.hero-webgl-canvas {
  opacity: 0.22 !important;
}

.hero-subcopy {
  color: #5D5850 !important;
}

.hero-subcopy strong {
  color: #16171C !important;
}

/* Warm Champagne Titanium 3-iPhone Hardware Stage */
.spatial-halo {
  background: radial-gradient(
    ellipse at center,
    rgba(14, 79, 232, 0.14) 0%,
    rgba(212, 136, 23, 0.09) 48%,
    transparent 74%
  ) !important;
}

.fan-phone,
.scrolly-monolith {
  background: linear-gradient(145deg, #FFFDF9 0%, #DFD6C7 36%, #EFE8DC 70%, #FFFDF9 100%) !important;
  border: 1px solid rgba(124, 106, 80, 0.24) !important;
  box-shadow:
    0 42px 92px -24px rgba(58, 44, 28, 0.26),
    0 12px 28px -8px rgba(58, 44, 28, 0.11),
    inset 0 1px 2px #FFFDF9 !important;
}

.fan-phone__screen {
  background: #FAF7F2 !important;
}

.fan-phone__screen img {
  object-position: top center !important;
}

.fan-phone[data-fan-id="home"] .fan-phone__screen {
  padding-top: 28px !important;
  box-sizing: border-box;
}

.coverflow-item__screen img[src*="01-home-atelier"] {
  padding-top: 22px;
  background: #FAF7F2;
  object-position: top center !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .fan-phone[data-fan-id="home"] .fan-phone__screen {
    padding-top: 24px !important;
  }
}

.spatial-switcher {
  background: #ECE5D8 !important;
  border: 1px solid rgba(124, 106, 80, 0.14);
}

.spatial-switcher button.is-active {
  background: #FFFDF9 !important;
  color: #16171C !important;
  box-shadow: 0 3px 10px rgba(58, 44, 28, 0.10) !important;
}

/* Warm Frosted Parchment Exam Blueprint Dock */
.track-dock {
  background: rgba(255, 253, 249, 0.88) !important;
  border: 1px solid rgba(124, 106, 80, 0.15) !important;
  box-shadow: var(--shadow-ceramic) !important;
}

.track-dock__badge {
  color: #0E4FE8 !important;
  background: rgba(14, 79, 232, 0.09) !important;
}

.track-pills {
  background: #F1EBE0 !important;
  border: 1px solid rgba(124, 106, 80, 0.10);
}

.track-pill.is-active {
  background: #0E4FE8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -4px rgba(14, 79, 232, 0.42) !important;
}

/* 2. BRAND-NEW INTERACTIVE STUDY PLANNER & LEARNING WORLD SHOWCASE (#atelier-world) */
.atelier-world-section {
  background: linear-gradient(180deg, #FAF7F2 0%, #F7F2E9 100%) !important;
  border-bottom: 1px solid rgba(124, 106, 80, 0.12);
}

.atelier-world-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.aw-planner-card {
  background: #FFFDF9;
  border: 1px solid rgba(124, 106, 80, 0.15);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow-ceramic);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aw-planner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.aw-planner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: #16171C;
}

.aw-planner-month {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 500;
  color: #7D766B;
}

.aw-live-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(14, 79, 232, 0.09);
  border: 1px solid rgba(14, 79, 232, 0.18);
  color: #0E4FE8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.aw-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.aw-day-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 4px;
  border-radius: 14px;
  background: #F6F1E8;
  border: 1px solid rgba(124, 106, 80, 0.11);
  color: #5D5850;
  cursor: pointer;
  transition: all 0.18s var(--ease-spring);
}

.aw-day-btn span {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.aw-day-btn strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #16171C;
  font-variant-numeric: tabular-nums;
}

.aw-day-btn:hover {
  border-color: rgba(14, 79, 232, 0.35);
  background: #FFFDF9;
}

.aw-day-btn.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%);
  border-color: #0E4FE8;
  color: #FFFFFF;
  box-shadow: 0 10px 22px -6px rgba(14, 79, 232, 0.48);
  transform: translateY(-2px);
}

.aw-day-btn.is-active span,
.aw-day-btn.is-active strong {
  color: #FFFFFF;
}

.aw-desk-stage {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.13);
  padding-bottom: 62px;
}

.aw-desk-art {
  width: 100%;
  height: 235px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.aw-glass-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 10px 16px 13px;
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 32px -12px rgba(58, 44, 28, 0.18), 0 0 0 1px rgba(124, 106, 80, 0.12);
}

.aw-glass-grabber {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(124, 106, 80, 0.28);
  margin: 0 auto 9px;
}

.aw-glass-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.aw-glass-time {
  font-size: 14px;
  font-weight: 600;
  color: #7D766B;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.aw-glass-title {
  font-size: 14.2px;
  font-weight: 700;
  color: #16171C;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.aw-glass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(124, 106, 80, 0.12);
}

.aw-glass-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #0E4FE8;
}

.aw-glass-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aw-chev {
  font-size: 18px;
  font-weight: 500;
  color: #8A8377;
  line-height: 1;
}

.aw-progress-card {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: #F6F1E8;
  border: 1px solid rgba(124, 106, 80, 0.12);
}

.aw-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.aw-progress-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #16171C;
}

.aw-bars-ico {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.aw-bars-ico i {
  display: block;
  width: 3.5px;
  border-radius: 2px;
  background: #5D6472;
}

.aw-bars-ico i:nth-child(1) { height: 6px; }
.aw-bars-ico i:nth-child(2) { height: 10px; }
.aw-bars-ico i:nth-child(3) { height: 14px; }

.aw-progress-pct {
  font-size: 15px;
  font-weight: 700;
  color: #16171C;
  font-variant-numeric: tabular-nums;
}

.aw-progress-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(124, 106, 80, 0.15);
  overflow: hidden;
}

.aw-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0E4FE8 0%, #2568FF 100%);
  transition: width 0.36s var(--ease-spring);
}

/* Right Learning World & Clinical Practice Column */
.aw-world-col {
  background: #FFFDF9;
  border: 1px solid rgba(124, 106, 80, 0.15);
  border-radius: 30px;
  padding: 26px;
  box-shadow: var(--shadow-ceramic);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.aw-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.aw-group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #16171C;
}

.aw-group-head span {
  font-size: 12.5px;
  color: #8A8377;
  font-weight: 500;
}

.aw-group-head--sub {
  margin-top: 6px;
}

.aw-group-head--sub h3 {
  font-size: 19px;
}

.aw-pillars-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.aw-pillar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.13);
  color: #16171C;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-spring), border-color 0.18s ease, box-shadow 0.2s ease;
}

.aw-pillar-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 79, 232, 0.34);
  box-shadow: 0 10px 22px -12px rgba(14, 79, 232, 0.22);
}

.aw-ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aw-ico.is-cobalt  { background: rgba(14, 79, 232, 0.11); color: #0E4FE8; }
.aw-ico.is-emerald { background: rgba(21, 154, 110, 0.12); color: #159A6E; }
.aw-ico.is-indigo  { background: rgba(91, 79, 232, 0.11); color: #5446DC; }
.aw-ico.is-gold    { background: rgba(212, 136, 23, 0.13); color: #C2780E; }
.aw-ico.is-pearl   { background: rgba(139, 92, 246, 0.11); color: #7C3AED; }
.aw-ico.is-crimson { background: rgba(217, 54, 40, 0.12); color: #D93628; }

.aw-primary-row {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 10px;
}

/* Signature Electric Royal Cobalt Question Bank Hero Tile (Direct Match to iOS Screenshot!) */
.aw-qbank-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%);
  border: 1px solid rgba(10, 70, 214, 0.40);
  box-shadow: 0 14px 30px -10px rgba(14, 79, 232, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease;
}

.aw-qbank-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(14, 79, 232, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.aw-qbank-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}

.aw-qbank-cta strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.aw-qbank-cta small {
  display: block;
  font-size: 11.4px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1px;
}

.aw-qbank-cta .aw-chev {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.88);
}

.aw-timer-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 15px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
  color: #16171C;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.2s var(--ease-spring), border-color 0.18s ease;
}

.aw-timer-tile .aw-chev {
  margin-left: auto;
}

.aw-timer-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 136, 23, 0.42);
}

.aw-mid-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.aw-sketch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
  color: #16171C;
  transition: transform 0.2s var(--ease-spring), border-color 0.18s ease, box-shadow 0.2s ease;
}

.aw-sketch-card.is-arena {
  background: linear-gradient(135deg, #FAF7F2 0%, #EEF3FF 100%);
  border-color: rgba(14, 79, 232, 0.16);
}

.aw-sketch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 79, 232, 0.34);
  box-shadow: 0 12px 24px -14px rgba(14, 79, 232, 0.22);
}

.aw-micro {
  display: block;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0E4FE8;
  margin-bottom: 3px;
}

.aw-sketch-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
}

.aw-sketch-card p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.42;
  color: #6B655C;
}

.aw-pearls-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 16px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
  color: #16171C;
  transition: border-color 0.18s ease, transform 0.2s var(--ease-spring);
}

.aw-pearls-bar:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.34);
}

.aw-pearls-bar strong {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
}

.aw-pearls-sub {
  font-size: 12.2px;
  color: #7D766B;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aw-pearls-bar .aw-chev {
  margin-left: auto;
}

.aw-clinical-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.aw-clin-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 16px;
  background: #FAF7F2;
  border: 1px solid rgba(124, 106, 80, 0.14);
  color: #16171C;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.2s var(--ease-spring), border-color 0.18s ease, box-shadow 0.2s ease;
}

.aw-clin-pill .aw-chev {
  margin-left: auto;
}

.aw-clin-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 79, 232, 0.34);
}

.aw-clin-pill.is-ecg-featured {
  background: linear-gradient(135deg, #FFFDF9 0%, #FFF3F1 100%);
  border-color: rgba(217, 54, 40, 0.26);
  box-shadow: 0 8px 20px -12px rgba(217, 54, 40, 0.28);
}

.aw-clin-pill.is-ecg-featured:hover {
  border-color: #D93628;
}

/* 3. Harmonize Remaining Homepage Chapters with Warm Atelier Parchment + Royal Cobalt */
.bento-card:not(.bento-card--pro) {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.14) !important;
}

.bento-card--tint {
  background: linear-gradient(160deg, #EEF3FF 0%, #FFFDF9 100%) !important;
  border-color: rgba(14, 79, 232, 0.16) !important;
}

.bento-card--pro {
  background:
    radial-gradient(520px circle at 88% 12%, rgba(14, 79, 232, 0.32), transparent 65%),
    linear-gradient(155deg, #0E1426 0%, #070B16 100%) !important;
}

.bento-eyebrow {
  color: #0E4FE8 !important;
}

.bento-tag {
  background: #F2ECE2 !important;
  color: #16171C !important;
}

.bento-card--pro .bento-tag {
  background: rgba(255, 255, 255, 0.085) !important;
  border: 1px solid rgba(130, 178, 255, 0.24) !important;
  color: #EDF3FF !important;
}

.atelier-art-frame {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.14) !important;
}

.atelier-art-frame img,
.plus-art-strip img {
  mix-blend-mode: multiply;
}

.section--ceramic .chip.is-active,
.section--pure .chip.is-active {
  background: linear-gradient(180deg, #1659F5 0%, #0A46D6 100%) !important;
  border-color: #0E4FE8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 20px -8px rgba(14, 79, 232, 0.48) !important;
}

.scrolly-section {
  background: #FAF7F2 !important;
}

.scrolly-watermark {
  color: rgba(124, 106, 80, 0.065) !important;
}

.scrolly-rail {
  background: #EFE9DD !important;
}

.scrolly-rail-btn.is-active {
  background: #FFFDF9 !important;
  color: #0E4FE8 !important;
}

.scrolly-stat-pill {
  background: #FFFDF9 !important;
  border-color: rgba(124, 106, 80, 0.15) !important;
}

.manifesto-band {
  background: linear-gradient(180deg, #F4EFE6 0%, #FAF7F2 100%) !important;
  border-top: 1px solid rgba(124, 106, 80, 0.12);
  border-bottom: 1px solid rgba(124, 106, 80, 0.12);
}

.site-footer {
  background: #F3EDE2 !important;
  border-top: 1px solid rgba(124, 106, 80, 0.15) !important;
}

@media (max-width: 980px) {
  .atelier-world-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .aw-primary-row,
  .aw-mid-row,
  .aw-clinical-row,
  .aw-pillars-row {
    grid-template-columns: 1fr;
  }
  .aw-pearls-sub {
    display: none;
  }
  .aw-planner-card,
  .aw-world-col {
    padding: 18px;
    border-radius: 24px;
  }
  .aw-desk-stage {
    padding-bottom: 102px;
  }
  .aw-desk-art {
    height: 210px;
    object-position: center 16%;
  }
  .aw-glass-sheet {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 9px 13px 11px;
  }
}
