/* Rise Editorial Landing Page — Restrained, Natural, Tactile
 * Visual restraint inspired by museum/press editorial staging: generous breathing room,
 * hairline rules, one focal moment at a time, crisp typography, zero gimmicks. */

.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========================================================================
   1. OPENING FILM (Official Logo + Live WebGL2 Engraved Smoke)
   ========================================================================= */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--slate);
  color: var(--ground);
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity 0.65s var(--ease-out);
}

.intro-overlay[hidden] {
  display: none;
}

.intro-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.intro-smoke-back,
.intro-smoke-front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  z-index: 2;
  width: min(88vw, 680px);
  height: min(52vh, 380px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.intro-words {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 12vw, 156px);
  direction: ltr;
  opacity: 0;
  will-change: opacity, transform;
}

.intro-word {
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ground);
  will-change: transform, opacity;
}

.intro-mark {
  position: relative;
  width: clamp(128px, 22vw, 188px);
  height: clamp(128px, 22vw, 188px);
  opacity: 0;
  transform: scale(0.89) rotate(23deg);
  will-change: transform, opacity;
}

.intro-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-controls {
  position: fixed;
  inset-block-end: clamp(20px, 4.5vh, 42px);
  inset-inline: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-inline: 20px;
}

.intro-btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(241, 236, 224, 0.34);
  background: rgba(49, 60, 60, 0.62);
  color: var(--ground);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease-std), border-color 0.2s var(--ease-std);
}

.intro-btn:hover {
  background: var(--deep);
  border-color: var(--ground);
}

.intro-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================================
   2. FIXED HAIRLINE TOP BAR
   ========================================================================= */
.bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 40;
  height: var(--bar-h);
  background: rgba(241, 236, 224, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  width: min(100%, var(--wrap));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 500;
  font-size: 19px;
  color: var(--ink);
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.bar-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  color: var(--soft);
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease-std), border-color 0.18s var(--ease-std);
}

.bar-nav a:hover,
.bar-nav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--slate);
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.btn-lang {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--soft);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.18s var(--ease-std), border-color 0.18s var(--ease-std), background-color 0.18s var(--ease-std);
}

.btn-lang:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--sheet);
}

.btn {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-std), border-color 0.2s var(--ease-std), color 0.2s var(--ease-std), transform 0.2s var(--ease-out);
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background: var(--slate);
  color: var(--ground);
  border-color: var(--slate);
}

.btn-primary:hover {
  background: var(--deep);
  border-color: var(--deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--slate);
  background: var(--sheet);
}

.btn-on-dark {
  background: var(--ground);
  color: var(--ink);
  border-color: var(--ground);
}

.btn-on-dark:hover {
  background: var(--sheet);
}

.btn-on-dark-ghost {
  background: transparent;
  color: var(--ground);
  border-color: var(--line-dark);
}

.btn-on-dark-ghost:hover {
  border-color: var(--ground);
  background: rgba(241, 236, 224, 0.08);
}

.btn-signin {
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
}

html[dir="ltr"] .icon-dir {
  transform: scaleX(-1);
}

/* Mobile compact drawer */
.nav-compact {
  display: none;
  position: relative;
}

.nav-compact > summary {
  list-style: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.nav-compact > summary::-webkit-details-marker {
  display: none;
}

.nav-compact > summary svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.nav-compact-panel {
  position: fixed;
  top: var(--bar-h);
  inset-inline: 0;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--gutter) 24px;
  display: grid;
  gap: 2px;
  z-index: 39;
}

.nav-compact-panel a {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.nav-compact-panel a:last-child {
  border-bottom: 0;
}

/* =========================================================================
   3. EDITORIAL EYEBROWS, HEADERS & SUBTLE SCROLL REVEAL
   ========================================================================= */
.eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 3.6vw, 44px);
}

.band-dark .eyebrow-row {
  border-bottom-color: var(--line-dark);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.band-dark .eyebrow {
  color: var(--mist);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.32;
  color: var(--ink);
  text-wrap: balance;
}

html[lang="en"] .section-title {
  line-height: 1.16;
}

.band-dark .section-title {
  color: var(--ground);
}

.section-lead {
  margin-top: 12px;
  font-size: clamp(16px, 1.35vw, 19px);
  color: var(--soft);
  max-width: 54ch;
  line-height: 1.65;
  text-wrap: pretty;
}

.band-dark .section-lead {
  color: var(--mist);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   4. ACT I — EDITORIAL HERO
   ========================================================================= */
.hero {
  padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: center;
}

.hero-title {
  font-size: clamp(30px, 3.25vw, 44px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}

html[lang="en"] .hero-title {
  font-size: clamp(30px, 3.05vw, 42px);
  line-height: 1.15;
}

.hero-title .accent {
  display: block;
  color: var(--oxblood);
}

.hero-lead {
  margin-top: 18px;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--soft);
  max-width: 44ch;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

.hero-facts .fact-customer {
  color: var(--oxblood);
  font-weight: 500;
}

.hero-facts a {
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.hero-facts a:hover {
  text-decoration-thickness: 2px;
}

/* Framed Slate Stage (Gemini Press spatial restraint) */
.hero-stage-wrap {
  display: grid;
  gap: 12px;
}

.hero-stage {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--slate);
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) 0;
  transition: transform 0.35s var(--ease-out);
}

.hero-view {
  display: block;
}

.hero-view[hidden] {
  display: none;
}

.hero-screens {
  position: relative;
  --pw: clamp(118px, 12.2vw, 166px);
}

.hero-win {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ground);
  transition: transform 0.4s var(--ease-out);
}

.hero-win img {
  width: 100%;
  height: auto;
}

.hero-phone {
  position: absolute;
  inset-block-end: 0;
  inset-inline-end: 0;
  width: var(--pw);
  padding: 5px 5px 0;
  border-start-start-radius: 22px;
  border-start-end-radius: 22px;
  background: var(--deep);
  transition: transform 0.45s var(--ease-out);
}

.hero-phone > span {
  display: block;
  aspect-ratio: 390 / 565;
  overflow: hidden;
  border-start-start-radius: 17px;
  border-start-end-radius: 17px;
  background: var(--ground);
}

.hero-phone img {
  width: 100%;
  height: auto;
}

.hero-stage-cap {
  min-height: calc((var(--pw) - 10px) * 1.44 - 44px);
  margin-inline-end: calc(var(--pw) + 14px);
  padding: 14px 0 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.55;
}

.hero-stage-cap a {
  color: var(--ground);
  text-underline-offset: 4px;
  padding-block: 4px;
}

.hero-still-view {
  margin: calc(-1 * clamp(18px, 2.2vw, 28px)) calc(-1 * clamp(18px, 2.2vw, 28px)) 0;
}

.hero-still-view img {
  width: 100%;
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
  object-position: 50% 42%;
}

/* Gemini-Press-inspired quiet bottom action rail */
.stage-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  font-size: 13px;
  color: var(--soft);
}

.rail-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rail-btn {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}

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

.rail-btn[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--sheet);
}

.rail-note {
  font-size: 13px;
  color: var(--soft);
}

/* =========================================================================
   5. ACT II — FOUR EDITORIAL PILLARS (Horizontal Title Rail + One Gallery Frame)
   ========================================================================= */
.pillars {
  padding-block: clamp(48px, 6.5vw, 88px);
  border-top: 1px solid var(--line);
}

.pillars-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(18px, 3.6vw, 52px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.pillar-tab {
  background: transparent;
  border: 0;
  padding: 8px 0;
  min-height: 48px;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 500;
  color: var(--soft);
  opacity: 0.48;
  border-bottom: 2px solid transparent;
  transition: opacity 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.pillar-tab:hover {
  opacity: 0.82;
  color: var(--ink);
}

.pillar-tab[aria-selected="true"] {
  opacity: 1;
  color: var(--ink);
  border-bottom-color: var(--oxblood);
}

.pillar-idx {
  font-size: 13px;
  font-weight: 400;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.pillar-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.pillar-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
  aspect-ratio: 4 / 3;
}

.pillar-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.55s var(--ease-out), transform 0.75s var(--ease-out);
  pointer-events: none;
}

.pillar-frame img.is-active {
  opacity: 1;
  transform: scale(1);
}

.pillar-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.pillar-kicker {
  font-size: 13px;
  color: var(--oxblood);
  font-weight: 500;
}

.pillar-heading {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1.32;
}

.pillar-text {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--soft);
  line-height: 1.72;
  max-width: 38ch;
}

.pillar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.icon-step {
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--sheet);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background-color 0.18s;
}

.icon-step:hover {
  border-color: var(--slate);
}

.icon-step svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-counter {
  font-size: 14px;
  color: var(--soft);
  margin-inline-start: 6px;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   6. ACT IV — DEEP SLATE CHAPTER (Who + Office Statement + 7 Roles)
   Flows directly with 0px seam from the Samarra Minaret's dark leaf (#404D4D)!
   ========================================================================= */
.band-dark {
  background: var(--slate);
  color: var(--ground);
}

.chapter-slate {
  padding-block: clamp(64px, 8vw, 112px);
}

.who-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.who-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
  border: 1px solid var(--line-dark-soft);
  transition: transform 0.3s var(--ease-out), border-color 0.25s var(--ease-std);
}

.who-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 236, 224, 0.4);
}

.who-card-art {
  width: 100%;
  height: auto;
  flex: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 24%;
}

.who-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.who-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.who-card-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--ground);
}

.who-tags {
  font-size: 13px;
  color: var(--mist);
}

.who-card-text {
  font-size: 15px;
  color: var(--mist);
  line-height: 1.65;
  flex: 1;
}

.who-card-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ground);
}

.who-card-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Office statement split */
.office-split {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line-dark);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
}

.office-art {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--deep);
}

.office-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.office-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

/* Interactive 7-Role Inspector */
.roles-block {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(48px, 6vw, 84px);
  border-top: 1px solid var(--line-dark);
}

.roles-tabs {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: 14px;
}

.role-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.role-tab:hover {
  color: var(--ground);
  border-color: var(--line-dark);
}

.role-tab[aria-selected="true"] {
  background: var(--ground);
  color: var(--ink);
  border-color: var(--ground);
}

.roles-panels {
  margin-top: 24px;
}

.role-panel[hidden] {
  display: none;
}

.role-cards {
  display: grid;
  gap: 16px;
}

.role-entry {
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: var(--deep);
  padding: clamp(20px, 2.6vw, 28px);
  display: grid;
  grid-template-columns: minmax(170px, 0.65fr) minmax(0, 1.35fr) minmax(180px, 0.85fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

.role-entry h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ground);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.role-num {
  font-size: 13px;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.role-col-label {
  font-size: 13px;
  color: var(--mist);
  margin-bottom: 8px;
}

.role-opens {
  display: grid;
  gap: 6px;
}

.role-opens li {
  font-size: 15px;
  color: var(--ground);
  padding-inline-start: 16px;
  position: relative;
}

.role-opens li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--mist);
}

.role-limit {
  font-size: 15px;
  color: var(--mist);
  line-height: 1.65;
}

.role-example {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ground);
  padding-top: 10px;
  border-top: 1px solid var(--line-dark-soft);
}

.roles-foot {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--mist);
}

.roles-foot strong {
  color: var(--ground);
  font-weight: 500;
}

/* =========================================================================
   7. ACT V — INTERACTIVE SCHOOL DAY WORKBENCH (Compact, Calm, Hands-On)
   Replaces 14,000px of stacked tables with ONE focused interactive desk!
   ========================================================================= */
.school-day {
  padding-block: clamp(64px, 8vw, 108px);
}

.day-paths {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.path-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--sheet);
  padding: 20px 22px;
}

.path-card h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.path-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-chip {
  min-height: 38px;
  padding: 4px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--ground);
  color: var(--ink);
  font-size: 14px;
  transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}

.path-chip:hover {
  border-color: var(--slate);
}

.path-chip.is-active {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--ground);
}

/* Timeline tab bar */
.day-timeline {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.day-tab {
  min-height: 62px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--sheet);
  text-align: start;
  display: grid;
  gap: 2px;
  align-content: center;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.day-tab:hover {
  border-color: var(--slate);
}

.day-tab[aria-selected="true"] {
  background: var(--slate);
  border-color: var(--slate);
  color: var(--ground);
}

.day-tab-time {
  font-size: 13px;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.day-tab[aria-selected="true"] .day-tab-time {
  color: var(--mist);
}

.day-tab-name {
  font-size: 15px;
  font-weight: 500;
}

/* Workbench framed document card */
.workbench-frame {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sheet);
  padding: clamp(20px, 3vw, 34px);
}

.wb-panel[hidden] {
  display: none;
}

.wb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}

.wb-head h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
}

.wb-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--soft);
}

.wb-badge {
  font-size: 13px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  background: var(--ground);
  white-space: nowrap;
}

.seg-group {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ground);
}

.seg-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.16s, color 0.16s;
}

.seg-btn + .seg-btn {
  border-inline-start: 1px solid var(--line);
}

.seg-btn[aria-pressed="true"] {
  background: var(--slate);
  color: var(--ground);
}

/* Register table */
.reg-table-wrap {
  overflow-x: auto;
}

.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.reg-table th,
.reg-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.reg-table th.stu,
.reg-table td.stu {
  text-align: start;
  font-weight: 500;
  white-space: nowrap;
  padding-inline-end: 14px;
}

.reg-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

.cell-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.cell-mark.is-p {
  background: var(--present-bg);
  color: var(--present-ink);
}

.cell-mark.is-a {
  background: var(--oxblood);
  color: var(--ground);
}

.cell-mark.is-l {
  border: 1.5px solid var(--oxblood);
  color: var(--oxblood);
  background: var(--sheet);
}

.cell-mark.is-none {
  border: 1px dashed var(--line);
  color: var(--soft);
}

.wb-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--soft);
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Equivalent Fractions Interactive Board */
.frac-board {
  border-radius: var(--r-md);
  background: var(--slate);
  color: var(--ground);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 20px;
}

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

.frac-readout {
  display: flex;
  align-items: center;
  gap: 18px;
}

.frac-stack {
  display: inline-grid;
  justify-items: center;
  line-height: 1.05;
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.frac-bar-line {
  width: 34px;
  height: 2px;
  background: var(--ground);
  margin: 4px 0;
}

.frac-pct {
  font-size: 16px;
  color: var(--mist);
}

.frac-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  background: var(--ink);
  border: 2px solid var(--ground);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 76px;
}

.frac-piece {
  border: 0;
  background: var(--sheet);
  min-height: 72px;
  transition: background-color 0.2s var(--ease-out);
  position: relative;
}

.frac-piece:hover {
  background: var(--oxblood-tint);
}

.frac-piece[aria-pressed="true"] {
  background: var(--oxblood);
}

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

.frac-denoms {
  display: inline-flex;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  overflow: hidden;
}

.frac-denom-btn {
  min-height: 44px;
  min-width: 48px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: var(--mist);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.frac-denom-btn + .frac-denom-btn {
  border-inline-start: 1px solid var(--line-dark);
}

.frac-denom-btn[aria-pressed="true"] {
  background: var(--ground);
  color: var(--ink);
}

.book-face {
  border-radius: var(--r-md);
  background: var(--sheet);
  color: var(--ink);
  padding: 22px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.book-face[hidden] {
  display: none;
}

.book-page-mock {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 18px;
  background: var(--ground);
  display: grid;
  gap: 12px;
}

.book-page-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}

.book-page-bar span {
  border-inline-end: 1.5px solid var(--ink);
  background: var(--sheet);
}

.book-page-bar span:last-child {
  border-inline-end: 0;
}

.book-page-bar span.is-shaded {
  background: var(--oxblood);
}

/* Generic data tables inside workbench */
.wb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.wb-table th,
.wb-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.wb-table thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

.wb-table tfoot th,
.wb-table tfoot td {
  font-weight: 500;
  border-bottom: 0;
}

.wb-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.wb-card-sub {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ground);
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}

.stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--oxblood);
  color: var(--oxblood);
  background: var(--sheet);
}

.stamp-pill.is-draft {
  border-color: var(--soft);
  color: var(--soft);
}

/* Receipt + Timetable */
.receipt-box {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ground);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.receipt-dl {
  display: grid;
  gap: 8px;
}

.receipt-dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.receipt-dl dt {
  color: var(--soft);
}

.receipt-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 20px;
  font-weight: 500;
}

.clash-cell {
  background: var(--oxblood-tint);
  color: var(--oxblood);
  font-weight: 500;
  border-radius: 6px;
}

.clash-note {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

/* Messages & Parent View */
.msg-list {
  display: grid;
  gap: 12px;
}

.msg-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--ground);
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.msg-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--soft);
}

.parent-list {
  display: grid;
  gap: 10px;
}

.parent-list li {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--sheet);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* =========================================================================
   8. ACT VII — PRICING (Slate) + FAQ, SPECS & SIGN-IN (Cream)
   ========================================================================= */
.pricing-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.price-figure {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.price-num {
  font-size: clamp(44px, 5.2vw, 68px);
  font-weight: 500;
  line-height: 1;
  color: var(--ground);
  font-variant-numeric: tabular-nums;
}

.price-unit {
  font-size: 17px;
  color: var(--mist);
}

.price-bill {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.price-bill th,
.price-bill td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
  text-align: start;
}

.price-bill td {
  text-align: end;
  white-space: nowrap;
  color: var(--ground);
  padding-inline-start: 16px;
}

.price-bill thead th {
  font-size: 13px;
  color: var(--mist);
  font-weight: 500;
}

.price-bill tfoot th,
.price-bill tfoot td {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ground);
}

.price-cta-row {
  margin-top: 26px;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.price-fine {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.65;
  max-width: 52ch;
}

/* FAQ + Specifications + Sign-In */
.faq-section {
  padding-block: clamp(64px, 8vw, 108px);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: start;
}

.faq-side {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  list-style: none;
  min-height: 58px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-plus {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--soft);
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 0 20px;
  font-size: 16px;
  color: var(--soft);
  line-height: 1.72;
  max-width: 60ch;
}

.specs-dl {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.specs-dl div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
}

.specs-dl dt {
  color: var(--ink);
  font-weight: 500;
}

.signin-band {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--sheet);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.signin-band-copy {
  display: flex;
  align-items: center;
  gap: 20px;
}

.signin-band-copy img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}

.signin-band h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
}

.signin-band p {
  margin-top: 4px;
  color: var(--soft);
  font-size: 15px;
}

/* =========================================================================
   9. CLOSING CTA & EDITORIAL COLOPHON FOOTER
   ========================================================================= */
.closing-cta {
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
  background: var(--ground);
}

.closing-cta-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.colophon {
  border-top: 1px solid var(--line);
  background: var(--ground);
  padding-block: 26px 36px;
}

.colophon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 14px;
  color: var(--soft);
}

.colophon-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.colophon-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.colophon-links a,
.colophon-links button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  background: transparent;
  border: 0;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.colophon-links a:hover,
.colophon-links button:hover {
  text-decoration-thickness: 2px;
}

/* =========================================================================
   10. DOCKED GUIDED TOUR BAR
   ========================================================================= */
.tour-dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: var(--deep);
  color: var(--ground);
  border-top: 1px solid var(--line-dark);
  padding: 12px var(--gutter);
}

.tour-dock[hidden] {
  display: none;
}

.tour-dock-in {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.tour-meta {
  display: grid;
  gap: 2px;
  flex: 1 1 320px;
}

.tour-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.tour-head h2 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ground);
}

.tour-counter {
  font-size: 13px;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

.tour-desc {
  font-size: 14px;
  color: var(--mist);
  line-height: 1.55;
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ground);
  font-size: 14px;
  font-weight: 500;
}

.tour-btn:hover:not(:disabled) {
  background: rgba(241, 236, 224, 0.12);
  border-color: var(--ground);
}

.tour-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tour-btn-primary {
  background: var(--ground);
  color: var(--ink);
  border-color: var(--ground);
}

.tour-btn-primary:hover:not(:disabled) {
  background: var(--sheet);
}

/* Sign-in placeholder route styling */
.signin-preview {
  min-height: 100vh;
  padding-top: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.signin-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--sheet);
  padding: 36px 28px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
}

/* =========================================================================
   11. RESPONSIVE BREAKPOINTS (1024px, 900px, 760px, 480px, 320px)
   ========================================================================= */
@media (max-width: 1020px) {
  .hero-grid,
  .pillar-gallery,
  .office-split,
  .pricing-grid,
  .faq-grid,
  .wb-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-compact {
    display: block;
  }

  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .who-card {
    flex-direction: row;
    align-items: stretch;
  }

  .who-card-art {
    width: 44%;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --bar-h: 60px;
  }

  .brand-word {
    display: none;
  }

  .nav-compact > summary span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stage {
    padding: 20px 18px 14px;
  }

  .hero-win {
    width: min(264px, 84%);
    margin-inline: auto;
    border-radius: 20px;
  }

  .hero-phone {
    display: none;
  }

  .hero-stage-cap {
    min-height: 0;
    margin: 14px 0 0;
    padding: 0;
    align-items: center;
    text-align: center;
  }

  .day-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who-card {
    flex-direction: column;
  }

  .who-card-art {
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .specs-dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .signin-band-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .tour-dock {
    padding: 10px 14px;
  }

  .tour-desc {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .bar-in {
    gap: 8px;
  }

  .bar-end {
    gap: 6px;
  }

  .btn-signin {
    padding: 0 12px;
    font-size: 14px;
  }

  .btn-lang {
    padding: 0 8px;
    font-size: 14px;
  }
}
