/* ===== Dynamika Welcomebook — monochrome blue palette ===== */
:root {
  --ink:        #0A1A33;
  --navy:       #1A4178;    /* exact brand navy */
  --navy-2:     #214E89;
  --navy-3:     #2C5E9F;
  --cyan:       #2BA8E0;    /* exact brand cyan */
  --cyan-soft:  #7BCBED;
  --sky:        #BFE3F5;
  --coral:      #2C5E9F;    /* repurposed: secondary deep blue */
  --coral-soft: #7BCBED;
  --sun:        #BFE3F5;
  --cream:      #EAF3FA;
  --paper:      #F6FAFD;
  --line:       rgba(26, 65, 120, 0.14);
  --line-dark:  rgba(255, 255, 255, 0.14);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-xl: 40px;

  --nav-w: 208px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ============= LAYOUT ============= */

.app {
  min-height: 100vh;
  padding-left: var(--nav-w);
}

/* ----- Left chapter nav ----- */
.chapter-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  padding: 24px 18px 24px 24px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line-dark);
  overflow-y: auto;
  z-index: 10;
}
.chapter-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.chapter-nav .brand .mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.chapter-nav .nav-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 4px;
}
.chapter-nav .nav-list {
  display: flex; flex-direction: column;
  gap: 2px;
  margin: 0; padding: 0; list-style: none;
}
.chapter-nav .nav-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(244,239,230,0.78);
  align-items: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.chapter-nav .nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}
.chapter-nav .nav-item.active {
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
}
.chapter-nav .nav-item.active .num {
  background: var(--cyan);
  color: var(--navy);
}
.chapter-nav .nav-item .num {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border-radius: 6px;
  padding: 4px 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.chapter-nav .progress {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  display: flex; justify-content: space-between;
}

/* ----- Main scroll area ----- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

section.chapter {
  position: relative;
  padding: 88px 56px;
  min-height: 100vh;
  overflow: hidden;
}
section.chapter[data-tone="dark"]  { background: var(--navy);  color: var(--cream); }
section.chapter[data-tone="paper"] { background: var(--paper);  color: var(--ink); }
section.chapter[data-tone="cream"] { background: var(--cream);  color: var(--ink); }
section.chapter[data-tone="ink"]   { background: var(--ink);    color: var(--cream); }

section.chapter .chap-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
section.chapter .chap-header .num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
section.chapter .chap-header .label { opacity: 0.6; }
section.chapter .chap-header .rule {
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.2;
  transform: translateY(-4px);
}

/* big display title used in chapters */
.display-h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  text-wrap: balance;
  max-width: 22ch;
}
.display-h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lead {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 400;
  max-width: 720px;
  text-wrap: pretty;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 56px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.85fr);
  gap: 32px;
  align-items: end;
  min-height: 100vh;
}
.hero .title-block { z-index: 2; position: relative; min-width: 0; }
.hero-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-status {
  position: absolute;
  top: 24px; left: 56px; right: 56px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.7);
}
.hero-status .pill {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(244,239,230,0.2);
  border-radius: 999px;
}
.hero-status .pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.hero .title-block h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.hero .title-block h1 em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 500;
}
.hero .lede {
  margin-top: 22px;
  font-size: 17px;
  max-width: 480px;
  opacity: 0.86;
  text-wrap: pretty;
}
.hero .meta-row {
  display: flex; gap: 20px;
  margin-top: 36px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.hero .meta-row span:not(:last-child)::after {
  content: "→";
  margin-left: 20px;
  opacity: 0.5;
}

.hero .mascot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
}
.hero .mascot-stage svg { width: 100%; height: 100%; }

/* ===== CEO LETTER ===== */
.ceo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.ceo-letter {
  font-size: 17px;
  line-height: 1.6;
  max-width: 660px;
  text-wrap: pretty;
}
.ceo-letter p { margin: 0 0 18px; }
.ceo-letter .sig {
  margin-top: 28px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--coral);
}
.ceo-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.ceo-card .portrait {
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 30% 30%, var(--navy-3), transparent 60%),
    linear-gradient(135deg, var(--navy-2), var(--ink));
  border-radius: 16px;
  position: relative;
  margin-bottom: 18px;
}
.ceo-card .name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.ceo-card .role { font-size: 13px; opacity: 0.6; margin-top: 2px; }

/* ===== MISSION / VISION / VALUES ===== */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.mvv-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.mvv-card .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  opacity: 0.5;
}
.mvv-card .label {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.025em;
  font-weight: 600;
  line-height: 1.05;
}
.mvv-card .body {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.85;
  margin-top: 4px;
}
.mvv-card .corner-flow {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 180px; height: 180px;
  opacity: 0.18;
}
.mvv-card.accent-cyan { background: var(--navy); color: var(--cream); border: none; }
.mvv-card.accent-cyan .label { color: var(--cyan); }
.mvv-card.accent-coral { background: var(--coral); color: var(--cream); border: none; }
.mvv-card.accent-coral .label { color: var(--cream); }

.values-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
}
.value-chip {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper);
}
.value-chip .v-num { font-family: var(--mono); font-size: 11px; opacity: 0.5; }
.value-chip .v-name { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.value-chip .v-body { font-size: 13.5px; line-height: 1.45; opacity: 0.75; }

/* ===== WHAT WE DO — CLIENT JOURNEY DIAGRAM ===== */
.journey {
  margin-top: 40px;
  position: relative;
  padding: 40px 0 20px;
}
.journey-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}
.journey-step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 12px;
  min-height: 190px;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.journey-step .j-num {
  width: 26px; height: 26px;
  background: var(--cyan);
  color: var(--navy);
  border-radius: 7px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  margin-bottom: 4px;
}
.journey-step .j-name { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.015em; line-height: 1.05; }
.journey-step .j-body { font-size: 11.5px; line-height: 1.4; opacity: 0.75; }
.journey-flow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.what-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat .n {
  font-family: var(--display);
  font-size: 72px;
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--coral);
}
.stat .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 8px;
  max-width: 200px;
}

/* ===== STRUCTURE / TEAMS ===== */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}
.team-card .t-head {
  display: flex; align-items: center; gap: 12px;
}
.team-card .t-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--cyan);
  display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700;
  font-size: 13px;
}
.team-card .t-name { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.team-card .t-lead { font-size: 12.5px; opacity: 0.6; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.team-card .t-body { font-size: 14px; line-height: 1.5; opacity: 0.8; }
.team-card .t-meta { display: flex; gap: 12px; margin-top: auto; font-family: var(--mono); font-size: 11px; opacity: 0.55; letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== ONBOARDING CHECKLIST ===== */
.onboarding {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}
.checklist {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.checklist .group-title {
  padding: 16px 22px;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.check-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background .12s;
}
.check-item:hover { background: rgba(0,212,255,0.06); }
.check-item:last-child { border-bottom: none; }
.check-item .box {
  width: 22px; height: 22px;
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  display: grid; place-items: center;
  transition: all .15s;
}
.check-item.done .box {
  background: var(--cyan);
  border-color: var(--cyan);
}
.check-item.done .box::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg) translate(2px,-1px);
}
.check-item .label {
  font-size: 15px;
  font-weight: 500;
}
.check-item.done .label { opacity: 0.5; text-decoration: line-through; }
.check-item .when {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.onboard-aside {
  display: flex; flex-direction: column; gap: 20px;
}
.onboard-aside .note {
  background: var(--navy);
  color: var(--cream);
  padding: 24px;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.onboard-aside .note .who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.onboard-aside .note .quote {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}
.onboard-aside .progress-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.onboard-aside .progress-card .p-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.onboard-aside .progress-card .p-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
}
.onboard-aside .progress-card .p-bar {
  margin-top: 16px;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.onboard-aside .progress-card .p-fill {
  height: 100%;
  background: var(--coral);
  border-radius: 999px;
  transition: width .3s ease;
}

/* ===== TOOLS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}
.tool {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 130px;
}
.tool .t-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: var(--cream);
}
.tool .t-name { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.tool .t-desc { font-size: 12.5px; line-height: 1.4; opacity: 0.7; margin-top: auto; }

/* ===== TRADITIONS ===== */
.traditions-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.tradition {
  border-radius: var(--r-md);
  padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.tradition .t-date { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.tradition .t-title { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.tradition .t-body { font-size: 13.5px; line-height: 1.5; opacity: 0.85; }

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.benefit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
}
.benefit .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--cyan);
  margin-bottom: 8px;
}
.benefit .title { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.benefit .body { font-size: 14px; line-height: 1.5; opacity: 0.8; }

/* ===== LEARNING / PATH ===== */
.path-wrap {
  margin-top: 40px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.path-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.path-row {
  display: grid;
  grid-template-columns: 80px 200px 1fr 200px;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.path-row:last-child { border-bottom: none; }
.path-row .lvl { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--cyan); letter-spacing: -0.03em; }
.path-row .role { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.path-row .desc { font-size: 14px; opacity: 0.75; line-height: 1.5; }
.path-row .perks { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; opacity: 0.6; text-transform: uppercase; }

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
.foot {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 56px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 200px;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.foot .farewell {
  font-family: var(--display);
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.foot .farewell em {
  font-style: normal;
  color: var(--cyan);
  font-weight: 500;
}
.foot .signature {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 36px;
  display: flex; gap: 28px;
}
.foot .mascot-bye {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1/1;
  margin-left: auto;
}
.foot .mascot-bye svg { width: 100%; height: 100%; }

/* =====================================================
   NEW SECTION STYLES — matching real PDF content
   ===================================================== */

/* ---- 02 Facts ---- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}
.fact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 16px 16px;
  min-height: 148px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.fact:nth-child(4n+1) .f-n { color: var(--coral); }
.fact:nth-child(4n+2) .f-n { color: var(--navy); }
.fact:nth-child(4n+3) .f-n { color: var(--coral); }
.fact:nth-child(4n)   .f-n { color: var(--navy); }
.fact .f-n {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 8px;
  white-space: nowrap;
}
.fact .f-lbl {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.fact .f-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: auto;
  line-height: 1.4;
}
.residency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.resi-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--r-lg);
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  position: relative;
}
.resi-card.alt { background: var(--ink); }
.resi-year {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cyan);
  line-height: 1;
}
.resi-name { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; min-width: 0; }
.resi-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }

/* ---- 03 Org chart ---- */
.org-chart {
  margin-top: 40px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 24px;
  position: relative;
}
.org-top {
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 0;
}
.org-director {
  background: var(--navy);
  color: var(--cream);
  padding: 20px 32px;
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 18px;
  min-width: 280px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.org-director .o-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.8;
  grid-column: 1;
}
.org-director .o-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  grid-column: 1;
}
.org-director .o-mark {
  grid-column: 2; grid-row: 1 / span 2;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  display: grid; place-items: center;
  align-self: center;
}
.org-connector { width: 100%; height: 56px; margin-top: -4px; }
.org-units {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
}
.org-unit {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 130px;
}
.org-unit .u-code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  background: var(--navy);
  color: var(--cyan);
  padding: 4px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.org-unit .u-name { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
.org-unit .u-body { font-size: 12.5px; line-height: 1.45; opacity: 0.74; margin-top: auto; }

/* ---- 04 Geography ---- */
.geo-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}
.geo-map {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0;
  aspect-ratio: 1321/713;
  overflow: hidden;
}
.geo-svg { width: 100%; height: 100%; display: block; }
.geo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.geo-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}
.geo-pin .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--navy);
  display: block;
  box-shadow: 0 0 0 4px rgba(11,31,77,0.1);
}
.geo-pin.hq .dot {
  background: var(--coral);
  width: 14px; height: 14px;
  box-shadow: 0 0 0 6px rgba(43,168,224,0.22), 0 0 0 12px rgba(43,168,224,0.08);
}

.geo-list {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.geo-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 13.5px;
}
.geo-row:last-child { border-bottom: none; }
.geo-row .g-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.geo-row .g-dot.hq { background: var(--coral); box-shadow: 0 0 0 3px rgba(43,168,224,0.2); }
.geo-row .g-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.geo-row .g-zone { font-family: var(--mono); font-size: 10.5px; opacity: 0.55; letter-spacing: 0.04em; white-space: nowrap; }

/* ---- 05 Ecosystem + Awards ---- */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.eco-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px;
  min-height: 180px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.eco-card:nth-child(1) { background: var(--navy); color: var(--cream); border: none; }
.eco-card:nth-child(1) .e-num { color: var(--cyan); opacity: 0.7; }
.eco-card .e-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.5;
}
.eco-card .e-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.1;
}
.eco-card .e-body { font-size: 13px; line-height: 1.5; opacity: 0.78; margin-top: auto; }

.awards {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}
.award {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
}
.award .a-year {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--coral);
  line-height: 1;
}
.award .a-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.award .a-body { font-size: 13.5px; line-height: 1.5; opacity: 0.78; }

/* ---- 06 Culture / Principles ---- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.principle {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 130px;
}
.principle .p-num {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--cyan);
  line-height: 0.9;
}
.principle .p-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 6px;
}
.principle .p-desc { font-size: 13.5px; line-height: 1.5; opacity: 0.8; }

/* ---- 07 Life ---- */
.life-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.life-card {
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}
.life-card .l-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}
.life-card .l-title {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.life-card .l-body { font-size: 14.5px; line-height: 1.5; opacity: 0.92; }

/* ---- 08 Office ---- */
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.office {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 280px;
  position: relative;
}
.office.hq { background: var(--navy); color: var(--cream); border: none; }
.office.hq .o-tag { color: var(--cyan); }
.office .o-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}
.office .o-city {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-top: 6px;
}
.office .o-place {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  opacity: 0.8;
}
.office .o-body { font-size: 14.5px; line-height: 1.55; opacity: 0.85; margin-top: 4px; }
.office .o-meta {
  margin-top: auto;
  display: flex; gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  padding-top: 18px;
  border-top: 1px solid currentColor;
  border-top-color: rgba(0,0,0,0.1);
}
.office.hq .o-meta { border-top-color: rgba(255,255,255,0.12); }

/* ---- 09 Benefits (vacation + DMS) ---- */
.benefits-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 36px;
}
.bb-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 360px;
}
.bb-card.dms { background: var(--navy); color: var(--cream); border: none; }
.bb-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral);
}
.bb-h {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.bb-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.bb-list li { padding-left: 22px; position: relative; }
.bb-list li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--coral);
  font-family: var(--mono);
}
.dms-tiers {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.dms-tier {
  display: grid;
  grid-template-columns: 80px 1fr 130px;
  gap: 14px;
  align-items: center;
  font-size: 13px;
}
.dms-tier .t-stage { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.dms-tier .t-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dms-tier .t-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 999px;
}
.dms-tier .t-pct { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.dms-tier .t-pct strong { color: var(--cyan); font-size: 14px; }
.dms-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.7;
}

/* ---- 10 Contacts ---- */
.contacts-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}
.tg-list { display: flex; flex-direction: column; gap: 10px; }
.tg-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
}
.tg-handle {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}
.tg-label { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.tg-hint { font-size: 12.5px; opacity: 0.7; margin-top: 2px; }

.links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ext-link {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 28px;
  align-items: center;
  gap: 8px;
  color: inherit;
  transition: background .15s, border-color .15s;
}
.ext-link:hover { background: var(--cream); border-color: var(--navy); }
.ext-link .x-host { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; opacity: 0.55; grid-column: 1; }
.ext-link .x-label { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; grid-column: 1; }
.ext-link .x-arrow { grid-column: 2; grid-row: 1 / span 2; font-family: var(--mono); font-size: 18px; opacity: 0.5; }

/* ===== MOTION/UTIL ===== */
@keyframes flow-dash {
  to { stroke-dashoffset: -1000; }
}
.flow-anim { animation: flow-dash 18s linear infinite; }
.flow-anim-slow { animation: flow-dash 32s linear infinite; }

/* hover lift */
.lift { transition: transform .25s ease, box-shadow .25s ease; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 14px 40px -20px rgba(11,31,77,0.4); }

/* margin mascot — hidden per request */
.margin-mascot { display: none !important; }
.margin-mascot--legacy {
  position: absolute;
  top: 56px;
  right: 56px;
  width: 112px;
  height: 112px;
  z-index: 3;
  opacity: 0.95;
}
.margin-mascot svg { width: 100%; height: 100%; }

@media (max-width: 880px) {
  .app { padding-left: 0; }
  .chapter-nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    align-items: center;
    padding: 16px 20px;
  }
  .chapter-nav .nav-list { flex-direction: row; gap: 4px; }
  .chapter-nav .progress { display: none; }
  section.chapter { padding: 60px 28px; }
  .hero-inner { padding: 60px 28px; grid-template-columns: 1fr; gap: 28px; }
  .hero-status { left: 28px; right: 28px; }
  .margin-mascot { top: 28px; right: 28px; width: 90px; height: 90px; }
}


/* =================================================================
   MOBILE RESPONSIVE LAYER — added for phones / Telegram Mini App.
   Appended override only: all desktop rules above are unchanged.
   ================================================================= */

/* Global overflow safety — nothing forces horizontal scroll on small screens */
@media (max-width: 880px) {
  img, svg, video { max-width: 100%; height: auto; }
  body { overflow-wrap: break-word; }
  .app, .main { overflow-x: hidden; }
  .ceo-card .portrait { height: auto; }
}

/* ---------- Tablets & large phones ---------- */
@media (max-width: 760px) {
  /* tighter section padding so content isn't squeezed */
  section.chapter { padding: 56px 22px; }

  /* two-column layouts -> single column */
  .ceo-grid,
  .onboarding,
  .geo-wrap,
  .offices,
  .benefits-block,
  .contacts-block,
  .links-grid,
  .residency { grid-template-columns: 1fr; gap: 24px; }

  /* footer: stack columns, smaller padding */
  .foot { grid-template-columns: 1fr; gap: 28px; padding: 56px 22px 44px; }

  /* founder card: full width, capped and centered */
  .ceo-card { width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }

  /* 3-column card grids -> single column */
  .mvv-grid,
  .teams-grid,
  .benefits-grid,
  .org-units,
  .eco-grid,
  .principles-grid { grid-template-columns: 1fr; }

  /* 4- / 5-up grids -> two columns */
  .values-row,
  .tools-grid,
  .facts-grid,
  .what-stats { grid-template-columns: 1fr 1fr; }

  /* horizontal stepper -> stacked */
  .journey-track { grid-template-columns: 1fr; gap: 12px; }

  /* 12-column masonry grids -> single column, reset any spans */
  .traditions-grid,
  .life-grid { grid-template-columns: 1fr; }
  .traditions-grid > *,
  .life-grid > * { grid-column: auto !important; grid-row: auto !important; }

  /* fixed multi-column rows -> flexible wrap (robust to any content width) */
  .path-row,
  .dms-tier { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
  .path-row > *,
  .dms-tier > * { min-width: 0; }

  /* contact rows: stack label + handle */
  .tg-row { grid-template-columns: 1fr; gap: 6px; }

  /* shrink oversized display numbers / headings */
  section.chapter .chap-header .num { font-size: 40px; }
  .stat .n { font-size: clamp(30px, 11vw, 52px); }
  .fact .f-n { font-size: 32px; }
  .office .o-city { font-size: 34px; }
  .onboard-aside .progress-card .p-num { font-size: 40px; }
  .path-row .lvl { font-size: 30px; }
  .display-h1 { font-size: clamp(30px, 9vw, 56px); }
  .display-h2 { font-size: clamp(24px, 7vw, 44px); }
  .lead { font-size: 18px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 460px) {
  section.chapter { padding: 48px 16px; }
  .foot { padding: 48px 16px 40px; }

  /* stat/fact grids also go single column to stop number clipping */
  .values-row,
  .tools-grid,
  .facts-grid,
  .what-stats { grid-template-columns: 1fr; }

  .hero .title-block h1 { font-size: clamp(38px, 13vw, 60px); }
  .display-h1 { font-size: clamp(28px, 10vw, 44px); }
  .stat .n { font-size: clamp(34px, 16vw, 56px); }
}


/* =================================================================
   MOBILE TOP PROGRESS BAR — replaces the chapter ribbon on phones.
   Desktop sidebar (.chapter-nav) is untouched on wide screens.
   ================================================================= */
.mob-topbar { display: none; }

@media (max-width: 880px) {
  .chapter-nav { display: none; }     /* убираем старую ленту глав */
  .hero-status { display: none; }     /* её роль берёт верхний бар */
  section.chapter { padding-top: 64px; } /* отступ под фиксированный бар */

  .mob-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; height: 44px; z-index: 50;
    padding: 0 16px;
    background: rgba(13, 31, 77, 0.86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cream);
  }
  .mob-topbar .mob-brand {
    font-family: var(--display); font-weight: 700; font-size: 16px;
    letter-spacing: -0.02em; color: var(--cream); flex: 0 0 auto;
  }
  .mob-topbar .mob-chap {
    display: inline-flex; align-items: center; gap: 8px; min-width: 0;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: rgba(234, 243, 250, 0.75);
  }
  .mob-topbar .mob-num {
    flex: 0 0 auto; font-weight: 700; font-size: 10px;
    color: var(--navy); background: var(--cyan);
    border-radius: 5px; padding: 2px 6px;
  }
  .mob-topbar .mob-title {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .mob-topbar .mob-bar {
    position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(255, 255, 255, 0.1);
  }
  .mob-topbar .mob-bar > i {
    display: block; height: 100%; background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan); transition: width 0.1s linear;
  }
}
