/* ==========================================================
   myTeacherHub — Landing page v3
   Concept: "Jadual" — timetable grid, graph-paper lines,
   navy ink with blue / gold / green blocks. Sharp corners.
   ========================================================== */

:root {
  --ink: #0B1736;
  --ink-2: #13224A;
  --ink-3: #1C2E5E;
  --navy-3: #2C3E73;
  --paper: #F4F5F9;
  --white: #FFFFFF;
  --line: #DCE0EA;
  --line-ink: rgba(255, 255, 255, 0.1);

  --text: #0B1736;
  --text-2: #3A4566;
  --muted: #646E8A;
  --on-ink: #E8ECF7;
  --on-ink-2: #A8B3D1;

  --blue: #2F5BEA;
  --blue-soft: #E4EBFF;
  --gold: #F2B32A;
  --gold-deep: #C98A0B;
  --gold-soft: #FFF2CF;
  --green: #1E9E5A;
  --green-soft: #DBF4E6;
  --teal: #0E8A80;

  --st-ready: #1E9E5A;
  --st-build: #F2B32A;
  --st-soon: #8D97B3;

  --error: #C2261B;

  --f-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --shell: 1240px;
  --px: clamp(20px, 4vw, 56px);
  --sec-y: clamp(72px, 10vw, 136px);
  --r: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.mono { font-family: var(--f-mono); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: max(var(--px), env(safe-area-inset-left));
  padding-right: max(var(--px), env(safe-area-inset-right));
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; font-weight: 700; border-radius: var(--r);
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hdr :focus-visible, .hero :focus-visible, .sec--ink :focus-visible,
.foot :focus-visible, .drawer :focus-visible { outline-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #FFC53F; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.3); color: var(--white); }
.btn--ghost-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 24px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: 4px; font-weight: 600;
}
.eyebrow--light { color: var(--gold); }

.tag {
  display: inline-block; padding: 5px 10px; border-radius: 4px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tag--muted { background: #ECEEF4; color: var(--muted); }
.tag--blue { background: var(--blue); color: var(--white); }

/* Status chips */
.st {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  height: 26px; padding: 0 10px; border-radius: 4px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em; white-space: nowrap;
  background: #EEF0F5; color: var(--text-2);
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-soon); }
.st--ready { background: var(--green-soft); color: #0F6B3B; }
.st--ready::before { background: var(--st-ready); }
.st--build { background: var(--gold-soft); color: #7A5300; }
.st--build::before { background: var(--st-build); }
.st--onink.st--ready { background: rgba(30, 158, 90, 0.18); color: #7BE0A9; }
.st--onink.st--build { background: rgba(242, 179, 42, 0.16); color: #FFD27A; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot--ready { background: var(--st-ready); }
.dot--build { background: var(--st-build); }
.dot--soon { background: var(--st-soon); }

/* ==========================================================
   HEADER
   ========================================================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 23, 54, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  color: var(--white);
  transition: border-color 0.25s ease;
}
.hdr.is-scrolled { border-bottom-color: var(--line-ink); }
.hdr__in { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  width: 26px; height: 26px;
}
.logo__mark i:nth-child(1) { background: var(--blue); }
.logo__mark i:nth-child(2) { background: var(--gold); }
.logo__mark i:nth-child(3) { background: var(--white); }
.logo__mark i:nth-child(4) { background: var(--green); }
.logo__txt { font-family: var(--f-display); font-weight: 500; font-size: 21px; letter-spacing: -0.02em; }
.logo__txt b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: 4px;
  font-size: 14.5px; font-weight: 500; color: var(--on-ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav a.is-active { color: var(--white); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2px; background: var(--gold);
}

.hdr__act { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r); padding: 2px; }
.lang button {
  min-width: 40px; min-height: 34px; padding: 0 8px;
  border: 0; border-radius: 4px; background: transparent;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; color: var(--on-ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang button[aria-pressed="true"] { background: var(--white); color: var(--ink); }

.burger {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--r); background: transparent;
}
.burger span {
  position: absolute; left: 50%; width: 18px; height: 2px; background: var(--white);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.2s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--hdr) 0 0 0; z-index: 90;
  background: var(--ink); color: var(--white);
  padding: 24px max(var(--px), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--px), env(safe-area-inset-left));
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease, transform 0.4s var(--ease), visibility 0s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-ink);
  font-family: var(--f-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
}
.drawer nav a .mono { font-size: 13px; font-weight: 500; color: var(--gold); letter-spacing: 0; }
.drawer__act { display: flex; flex-direction: column; gap: 10px; }
.drawer__act .btn { width: 100%; min-height: 52px; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  color: var(--white);
  padding-top: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero > .shell { position: relative; z-index: 1; }

.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(40px, 5vw, 80px); align-items: center;
}

.hero__title {
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 800; line-height: 0.96; letter-spacing: -0.04em;
}
.hero__title mark {
  background: none; color: var(--gold);
  position: relative; display: inline-block;
}
.hero__title mark::after {
  content: ""; position: absolute; left: 0.04em; right: 0.04em; bottom: 0.02em;
  height: 0.09em; background: var(--gold); transform-origin: left;
}
.hero__lead { margin-top: 28px; max-width: 540px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--on-ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Timetable */
.tt {
  background: rgba(19, 34, 74, 0.72);
  border: 1px solid var(--line-ink); border-radius: 10px;
  padding: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.tt__head, .tt__body { display: grid; grid-template-columns: 46px repeat(5, minmax(0, 1fr)); gap: 6px; }
.tt__head { margin-bottom: 8px; }
.tt__head span {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--on-ink-2); text-align: center;
}
.tt__body { grid-template-columns: 46px minmax(0, 1fr); }
.tt__times { display: grid; grid-template-rows: repeat(6, 64px); gap: 6px; }
.tt__times span { font-family: var(--f-mono); font-size: 10.5px; color: rgba(168, 179, 209, 0.7); padding-top: 4px; }
.tt__grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(6, 64px); gap: 6px;
  background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 70px);
}
.blk {
  grid-column: var(--c); grid-row: var(--r) / span var(--h);
  border-radius: 5px; padding: 8px 9px; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.blk b { font-family: var(--f-display); font-size: 13.5px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk small { font-family: var(--f-mono); font-size: 10px; line-height: 1.3; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.blk--blue { background: var(--blue); color: var(--white); }
.blk--green { background: var(--green); color: var(--white); }
.blk--gold { background: var(--gold); color: var(--ink); }
.blk--white { background: var(--white); color: var(--ink); }
.blk--navy { background: var(--navy-3); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.14); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-ink);
}
.stats > div { padding: 28px 24px 40px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line-ink); }
.stats dd { font-family: var(--f-display); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.stats dt { font-family: var(--f-mono); font-size: 13px; color: var(--on-ink-2); }

/* ==========================================================
   TICKER
   ========================================================== */
.ticker { background: var(--gold); color: var(--ink); overflow: hidden; border-top: 1px solid rgba(0,0,0,0.08); }
.ticker__track { display: flex; width: max-content; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 0 16px 28px;
  font-family: var(--f-mono); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.ticker__item i { width: 8px; height: 8px; border-radius: 2px; background: var(--ink); transform: rotate(45deg); }

/* ==========================================================
   SECTIONS
   ========================================================== */
.sec { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.sec--paper { background: var(--paper); }
.sec--ink {
  background-color: var(--ink); color: var(--white);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sec__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
.sec__head--split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px; align-items: end;
}
.sec__lede { color: var(--text-2); font-size: 16px; line-height: 1.65; }

/* ---------- Before / After ---------- */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: stretch; }
.vs__col { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3vw, 36px); }
.vs__col h3 { margin-bottom: 22px; }
.vs__col li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-size: 15.5px; }
.vs__col li::before { content: ""; position: absolute; left: 0; top: 17px; width: 20px; height: 20px; border-radius: 4px; }
.vs__col--before li { color: var(--muted); }
.vs__col--before li::before {
  background: #ECEEF4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646E8A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/12px no-repeat;
}
.vs__col--after { border-color: var(--blue); box-shadow: 0 30px 60px -40px rgba(47, 91, 234, 0.5); }
.vs__col--after li { color: var(--text); font-weight: 500; }
.vs__col--after li::before {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}
.vs__arrow { display: flex; align-items: center; color: var(--blue); }

/* ---------- Modules ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; font-family: var(--f-mono); font-size: 12.5px; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

.units {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--white);
}
.units__tabs { display: flex; flex-direction: column; background: var(--paper); border-right: 1px solid var(--line); }
.units__tabs [role="tab"] {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 0 20px; text-align: left;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.units__tabs [role="tab"]:hover { background: rgba(255, 255, 255, 0.7); color: var(--text); }
.units__tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--text); }
.units__tabs [role="tab"][aria-selected="true"]::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--u);
}
.units__tabs [role="tab"]:focus-visible { outline-offset: -3px; }
.units__dot { width: 12px; height: 12px; border-radius: 3px; background: var(--u); flex-shrink: 0; }
.units__name { flex-grow: 1; }
.units__count {
  min-width: 28px; height: 24px; padding: 0 7px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--text-2);
}
[aria-selected="true"] .units__count { background: var(--u); border-color: var(--u); color: var(--white); }

.panel { padding: clamp(24px, 3.4vw, 44px); }
.panel[hidden] { display: none; }
.panel__head { padding-bottom: 22px; border-bottom: 3px solid var(--u); margin-bottom: 4px; }
.panel__head h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; }
.panel__head p { margin-top: 8px; color: var(--text-2); }

.mods { display: flex; flex-direction: column; }
.mod {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.mod h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mod p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); max-width: 640px; }
.ext {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted);
}
.panel__ask {
  margin-top: 22px; border: 0; background: none; padding: 8px 0;
  font-weight: 700; font-size: 15px; color: var(--blue);
  border-bottom: 2px solid transparent; transition: border-color 0.2s ease;
}
.panel__ask:hover { border-bottom-color: var(--blue); }

/* ---------- Highlights ---------- */
.spot {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(32px, 4vw, 56px) 0;
}
.spot + .spot { border-top: 1px solid var(--line-ink); }
.spot--flip .spot__copy { order: 2; }
.spot__copy h3 { margin-top: 18px; font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
.spot__copy > p { margin-top: 16px; color: var(--on-ink-2); font-size: 16.5px; line-height: 1.65; max-width: 520px; }

.ticks { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 4px;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1736' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat;
}
.sec--ink .ticks li, .ticks--light li { color: var(--on-ink); }

.flow { counter-reset: none; display: flex; flex-direction: column; gap: 10px; position: relative; }
.flow::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: repeating-linear-gradient(to bottom, var(--on-ink-2) 0 4px, transparent 4px 9px); opacity: 0.5; }
.flow li {
  position: relative; display: flex; align-items: center; gap: 18px;
  background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 8px; padding: 14px 18px 14px 12px;
}
.flow__n {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 5px; margin-left: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600;
  background: var(--blue); color: var(--white); position: relative; z-index: 1;
}
.flow li:nth-child(4) .flow__n { background: var(--gold); color: var(--ink); }
.flow li:nth-child(5) .flow__n { background: var(--green); }
.flow b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.flow small { display: block; font-size: 13.5px; color: var(--on-ink-2); margin-top: 2px; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric {
  background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: 8px;
  padding: 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.metric b { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: var(--gold); }
.metric:nth-child(3n+2) b { color: #7FA3FF; }
.metric:nth-child(3n) b { color: #7BE0A9; }
.metric span { font-size: 13.5px; color: var(--on-ink-2); line-height: 1.45; }

/* ---------- Roles + features ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.role { padding: 28px 24px 32px; border-top: 4px solid var(--u); background: var(--white); }
.role + .role { border-left: 1px solid var(--line); }
.role__k { font-size: 12px; color: var(--muted); }
.role h3 { margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -0.025em; }
.role__who { margin-top: 4px; font-family: var(--f-mono); font-size: 12.5px; color: var(--u); font-weight: 500; filter: saturate(1.1) brightness(0.85); }
.role p:last-child { margin-top: 16px; font-size: 14.5px; color: var(--text-2); }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: clamp(48px, 6vw, 72px); }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat svg { flex-shrink: 0; color: var(--blue); margin-top: 2px; }
.feat b { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feat span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Roadmap ---------- */
.road { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.road__col { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.road__col h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.road__n { margin-left: auto; font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.road__col ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.road__col li {
  font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line);
}
.road__col[data-road="ready"] li { background: var(--green-soft); border-color: transparent; color: #0F6B3B; }
.road__col[data-road="build"] li { background: var(--gold-soft); border-color: transparent; color: #7A5300; }

.start { margin-top: clamp(56px, 7vw, 88px); }
.start__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 22px 22px 26px; background: var(--ink); color: var(--white); border-radius: 10px; }
.steps li .mono { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.steps b { display: block; margin-top: 28px; font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { margin-top: 8px; font-size: 14px; color: var(--on-ink-2); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 30px; width: 8px; height: 8px; z-index: 1;
  border-top: 2px solid var(--text-2); border-right: 2px solid var(--text-2); transform: rotate(45deg);
}

/* ---------- Story ---------- */
.story { background: var(--white); }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.story blockquote {
  font-family: var(--f-display); font-size: clamp(30px, 3.8vw, 50px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.03em; color: var(--text);
  padding-left: 24px; border-left: 6px solid var(--gold);
}
.story__body p { font-size: 16.5px; color: var(--text-2); line-height: 1.7; }
.story__body p + p { margin-top: 16px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .sec__head { position: sticky; top: calc(var(--hdr) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1736' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/13px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold); border-color: var(--gold); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { padding: 0 48px 24px 0; color: var(--text-2); font-size: 15.5px; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact__copy h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.contact__copy > p { margin-top: 18px; color: var(--on-ink-2); font-size: 16.5px; }

.mailcard { background: var(--white); color: var(--text); border-radius: 10px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); }
.mailcard__lbl { font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.mailcard__addr { display: inline-block; margin-top: 8px; font-family: var(--f-display); font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: var(--blue); overflow-wrap: anywhere; border-bottom: 3px solid var(--gold); line-height: 1.15; }
.mailcard__addr:hover { color: var(--ink); }
.mailcard__hint { margin-top: 18px; color: var(--text-2); font-size: 15px; }
.mailcard__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--white); }
.mailcard__alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.mailcard__alt a { font-weight: 700; color: var(--blue); border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.foot { background: #070F26; color: var(--on-ink-2); }
.foot .logo { color: var(--white); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 40px; }
.foot__tag { margin-top: 14px; font-size: 14px; max-width: 300px; }
.foot__col { display: flex; flex-direction: column; gap: 4px; }
.foot__col h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.foot__col a { font-size: 14.5px; padding: 5px 0; color: var(--on-ink); transition: color 0.2s ease; width: fit-content; }
.foot__col a:hover { color: var(--gold); }
.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-ink); padding-top: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  font-family: var(--f-mono); font-size: 12.5px;
}
.foot__top:hover { color: var(--gold); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role:nth-child(3) { border-left: 0; }
  .role:nth-child(n+3) { border-top-width: 4px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(2)::after { display: none; }
}

@media (max-width: 960px) {
  .hide-md { display: none; }
  .hero__grid, .spot, .story__grid, .faq__grid, .contact__grid, .sec__head--split { grid-template-columns: minmax(0, 1fr); }
  .sec__head--split { gap: 16px; }
  .spot--flip .spot__copy { order: 0; }
  .faq__grid .sec__head { position: static; margin-bottom: 8px; }
  .tt { max-width: 640px; }
  .vs { grid-template-columns: minmax(0, 1fr); }
  .vs__arrow { justify-content: center; transform: rotate(90deg); }
  .units { grid-template-columns: minmax(0, 1fr); }
  .units__tabs {
    flex-direction: row; overflow-x: auto; scrollbar-width: none;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .units__tabs::-webkit-scrollbar { display: none; }
  .units__tabs [role="tab"] { flex-shrink: 0; min-height: 56px; border-bottom: 0; border-right: 1px solid var(--line); }
  .units__tabs [role="tab"][aria-selected="true"]::before { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 4px; }
  .road { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --hdr: 64px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 20px 16px 24px 0; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line-ink); }
  .stats > div + div { padding-left: 16px; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .tt { padding: 10px; }
  .tt__head, .tt__body { grid-template-columns: 32px repeat(5, minmax(0, 1fr)); gap: 4px; }
  .tt__body { grid-template-columns: 32px minmax(0, 1fr); }
  .tt__grid, .tt__times { grid-template-rows: repeat(6, 52px); gap: 4px; }
  .tt__times span { font-size: 9px; }
  .blk { padding: 6px; }
  .blk b { font-size: 11px; }
  .blk small { display: none; }
  .roles, .steps, .feats { grid-template-columns: minmax(0, 1fr); }
  .role + .role { border-left: 0; }
  .steps li::after { display: none; }
  .mod { flex-direction: column; gap: 10px; }
  .mailcard__btns .btn { flex: 1 1 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 380px) {
  .logo__txt { font-size: 18px; }
  .lang button { min-width: 36px; }
}

/* ==========================================================
   MOTION — active only when JS adds .js-motion
   (never added for prefers-reduced-motion)
   ========================================================== */
.js-motion [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js-motion [data-reveal].in { opacity: 1; transform: none; }

/* Hero timetable blocks drop into their slots */
.js-motion .blk {
  opacity: 0; transform: translateY(-14px) scale(0.96);
  transition: opacity 0.5s ease, transform 0.7s var(--ease);
  transition-delay: calc(0.35s + var(--n) * 0.08s);
}
.js-motion .tt.built .blk { opacity: 1; transform: none; }

/* Underline under the highlighted word */
.js-motion .hero__title mark::after { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.5s; }
.js-motion .hero__title.in mark::after { transform: scaleX(1); }

/* Ticker */
.js-motion .ticker__track { animation: ticker 48s linear infinite; }
.js-motion .ticker:hover .ticker__track,
.js-motion .ticker.paused .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* e-PBPPP flow steps light up in order */
.js-motion .flow li { opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.7s var(--ease); transition-delay: calc(var(--i) * 0.12s + 0.15s); }
.js-motion .flow.in li { opacity: 1; transform: none; }

/* Panel switch */
.js-motion .panel.enter .mod { animation: modIn 0.5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes modIn { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
}