/* ==========================================================================
   Freelancer College · Design system
   Palette matches the live site (freelancercollege.lk): warm off-white,
   near-black ink, muted warm grey, one deep red accent used sparingly.
   Add .theme-dark to any block to flip it to the ink version.
   ========================================================================== */

:root {
  --bg: #f4f3f1;
  --surface: #ffffff;
  --surface-2: #ecebe8;
  --surface-3: #e2e1dd;
  --border: rgba(11, 11, 12, 0.09);
  --border-strong: rgba(11, 11, 12, 0.16);
  --text: #0b0b0c;
  --text-soft: #2b2b2d;
  --text-muted: #6b6b65;
  --text-dim: #8e8d86;
  --ink: #0b0b0c;
  --on-ink: #ffffff;
  --brand: #c81e27;
  --brand-hover: #a8161e;
  --brand-soft: rgba(200, 30, 39, 0.07);
  --brand-line: rgba(200, 30, 39, 0.28);
  --brand-text: #c81e27;
  --success: #15803d;
  --success-soft: rgba(21, 128, 61, 0.08);
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.08);
  --danger: #b91c1c;

  --font-display: "Google Sans Flex", "Noto Sans Sinhala", system-ui, sans-serif;
  --font-body: "Google Sans Flex", "Noto Sans Sinhala", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.04);
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.04), 0 10px 30px rgba(11, 11, 12, 0.06);
  --shadow-lg: 0 30px 80px rgba(11, 11, 12, 0.14);
  --glow: 0 10px 30px rgba(200, 30, 39, 0.25);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --gutter: 24px;
  --nav-h: 72px;
}

/* Ink blocks, like the dark cards on the live site */
.theme-dark {
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1d1d20;
  --surface-3: #2a2a2e;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --brand-text: #e5484f;
  --brand-soft: rgba(229, 72, 79, 0.12);
  --brand-line: rgba(229, 72, 79, 0.4);
  background: var(--bg);
  color: var(--text);
}

@media (max-width: 640px) { :root { --gutter: 16px; --nav-h: 64px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.25s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Paper grain, very subtle */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 90;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Typography ---------- */
.display, h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.022em; line-height: 1.02; font-weight: 700; color: var(--text); }
.display { font-size: clamp(48px, 8.2vw, 112px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
h1, .h1 { font-size: clamp(40px, 6vw, 72px); }
h2, .h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3, .h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-muted); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.red { color: var(--brand); }
.red-text { color: var(--brand-text); }
.strong { color: var(--text); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--brand); }
.eyebrow.no-line::before { display: none; }
.outline-text { -webkit-text-stroke: 1.5px var(--border-strong); color: transparent; }
.red-glow { color: var(--brand-text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
kbd { font-family: var(--font-body); font-size: 11px; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--text-muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-sm { max-width: 860px; }
.section { padding-block: clamp(80px, 11vw, 144px); position: relative; }
.section-sm { padding-block: clamp(56px, 7vw, 96px); position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 800px) { .section-head.split { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--border); border: 0; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }

/* ---------- Surfaces ---------- */
.glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.theme-dark .glass { background: rgba(255, 255, 255, 0.05); box-shadow: none; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.3s; }
.card-hover:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 30, 39, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.spotlight:hover::before { opacity: 1; }
.mesh-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; background:
  radial-gradient(40% 40% at 12% 18%, rgba(200, 30, 39, 0.06), transparent 70%),
  radial-gradient(35% 35% at 88% 70%, rgba(200, 30, 39, 0.05), transparent 70%); }
.grid-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.6;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.rel { position: relative; z-index: 1; }

/* ---------- Buttons & pills ---------- */
.btn {
  --pad-y: 16px; --pad-x: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px; line-height: 1;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.3s, transform 0.2s;
  position: relative;
  will-change: transform;
}
.btn-sm { --pad-y: 11px; --pad-x: 18px; font-size: 14px; }
.btn-lg { --pad-y: 20px; --pad-x: 36px; font-size: 16px; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--brand); box-shadow: var(--glow); }
.btn-primary:active { background: var(--brand-hover); }
.theme-dark .btn-primary { background: #fff; color: var(--ink); }
.theme-dark .btn-primary:hover { background: var(--brand); color: #fff; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); background: var(--surface); }
.theme-dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--brand); color: #fff; }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--brand-text); }
.link-arrow:hover { color: var(--text); }
.link-btn { color: var(--text-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
}
.pill-live { border-color: var(--brand-line); color: var(--text); background: var(--brand-soft); }
.pill-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(200, 30, 39, 0.6); animation: ping 1.8s infinite; }
.pill-soon { color: var(--warn); border-color: rgba(180, 83, 9, 0.3); background: var(--warn-soft); }
.pill-green { color: var(--success); border-color: rgba(21, 128, 61, 0.3); background: var(--success-soft); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(200, 30, 39, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 30, 39, 0); } }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- Custom cursor & progress ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1000; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: text; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate3d(-100px, -100px, 0); }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--brand); }
.cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(11, 11, 12, 0.35); transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), margin 0.3s var(--ease-out), background 0.3s, border-color 0.3s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(200, 30, 39, 0.08); border-color: var(--brand); }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navigation ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(244, 243, 241, 0.82); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--border); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; font-weight: 500; flex-shrink: 0; color: var(--text); }
.logo b { font-weight: 800; margin-left: 3px; }
.logo-mark svg { transition: transform 0.5s var(--ease-out); }
.logo:hover .logo-mark svg { transform: rotate(90deg); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 10px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s, background 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link[aria-expanded="true"] { color: var(--text); background: rgba(11, 11, 12, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-strong); color: var(--text-muted); transition: border-color 0.2s, color 0.2s; }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.nav-item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: -120px; width: 720px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px; box-shadow: var(--shadow-lg);
}
.mega::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-item.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 8px; }
.mega-feature { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; background: var(--ink); color: #fff; }
.mega-feature strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.mega-feature span { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.mega-feature .pill { justify-self: start; background: rgba(229, 72, 79, 0.14); border-color: rgba(229, 72, 79, 0.4); color: #fff; }
.mega-feature .mega-cta { color: #fff; font-weight: 600; }
.mega-col { display: grid; align-content: start; gap: 2px; padding: 12px 8px; }
.mega-col .eyebrow { margin: 0 12px 8px; }
.mega-col a { display: grid; padding: 10px 12px; border-radius: 12px; transition: background 0.2s; }
.mega-col a:hover { background: var(--surface-2); }
.mega-col b { font-size: 14px; font-weight: 600; }
.mega-col small { font-size: 12.5px; color: var(--text-muted); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--nav-h) 0 0; background: rgba(244, 243, 241, 0.98); backdrop-filter: blur(20px); padding: 24px var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path 0.55s var(--ease-out); visibility: hidden; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .nav { background: var(--bg); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu-foot { display: grid; gap: 10px; margin-top: 24px; }
@media (max-width: 1140px) {
  .nav-links, .login-link, .search-btn kbd { display: none; }
  .burger { display: inline-block; }
}
@media (max-width: 480px) { .nav-actions .btn-primary { display: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + 14px); padding-bottom: 56px; overflow: hidden; }
.hero > .container { width: 100%; }
.hero-ticket { position: relative; z-index: 3; }
.hero .ticket-wrap { padding-block: 0 clamp(8px, 2vh, 20px); }
.hero .ticket-main { padding: 14px clamp(18px, 3vw, 34px); }
.hero .ticket-cd .cd-unit b { font-size: clamp(24px, 2.3vw, 30px); }
.hero .ticket-stub { padding: 12px 16px 12px 20px; gap: 8px; }
.hero .ticket { box-shadow: 0 12px 30px rgba(200, 30, 39, 0.18); }
.hero .grid-lines { z-index: 1; }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(50% 55% at 72% 45%, rgba(200, 30, 39, 0.1), transparent 70%); }
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero .display { margin: 0 0 clamp(14px, 2.4vh, 24px); }
.hero .display .line { display: block; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.4vh, 34px); }
.hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: clamp(18px, 3.4vh, 36px); color: var(--text-muted); font-size: 14px; }
.avatars { display: flex; }
.avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.avatars span:first-child { margin-left: 0; }
.stars { color: #d97706; letter-spacing: 2px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--brand), transparent); animation: cue 2s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 800px) {
  .hero { padding-top: calc(var(--nav-h) + 10px); }
  .scroll-cue { display: none; }
}

/* ---------- Hero studio scene: design in Figma -> client order -> paid in dollars ---------- */
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.hero-grid .display { font-size: clamp(42px, min(6.4vw, 11vh), 96px); }
.studio { position: relative; perspective: 1400px; animation: studio-in 1.1s var(--ease-out) 0.35s both; }
@keyframes studio-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.studio-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform 0.6s var(--ease-out); padding: 34px 0 44px; }
.win { position: relative; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 40px 90px rgba(11, 11, 12, 0.16), 0 6px 18px rgba(11, 11, 12, 0.06); overflow: hidden; transform: translateZ(0); }
.win-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; background: #1d1d20; color: rgba(255, 255, 255, 0.7); font-size: 11.5px; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { margin-left: 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-share { background: var(--brand); color: #fff; font-weight: 700; font-size: 10.5px; padding: 3px 9px; border-radius: 6px; }
.win-body { display: grid; grid-template-columns: 40px 1fr 128px; height: clamp(330px, 34vw, 430px); }
.tools { background: #26262a; display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.tool { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; transition: background 0.3s; }
.tool svg { width: 15px; height: 15px; fill: none; stroke: rgba(255, 255, 255, 0.75); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool.on { background: var(--brand); }
.tool.on svg { stroke: #fff; }
.canvas { position: relative; background: #efeeeb; background-image: radial-gradient(rgba(11, 11, 12, 0.12) 1px, transparent 1px); background-size: 14px 14px; display: grid; place-items: center; overflow: hidden; }
.frame-label { position: absolute; left: calc(50% - 76px); top: 14px; font-size: 10px; font-weight: 600; color: var(--text-muted); }
.phone { width: 152px; height: 86%; max-height: 330px; border-radius: 24px; background: var(--ink); padding: 6px; box-shadow: 0 18px 40px rgba(11, 11, 12, 0.25); margin-top: 18px; }
.screen { height: 100%; border-radius: 19px; background: #fff; padding: 16px 10px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.slot { position: relative; border-radius: 9px; outline: 1.5px dashed rgba(11, 11, 12, 0.14); outline-offset: -1px; }
.slot.built { outline-color: transparent; }
.p-el { opacity: 0; transform: scale(0.92); transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out); }
.slot.built .p-el { opacity: 1; transform: none; }
.p-head { display: flex; align-items: center; gap: 7px; height: 26px; }
.p-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #e5484f, #7f1d1d); flex-shrink: 0; }
.p-txt { flex: 1; display: grid; gap: 4px; }
.p-txt b { height: 6px; width: 70%; border-radius: 3px; background: var(--ink); }
.p-txt i { height: 5px; width: 45%; border-radius: 3px; background: #d4d3cf; }
.p-bell { width: 18px; height: 18px; border-radius: 6px; background: #efeeeb; }
.p-hero { height: 86px; border-radius: 12px; background: linear-gradient(140deg, #d9343c, #8e1016); padding: 9px 10px; color: #fff; display: grid; grid-template-rows: auto auto 1fr; }
.p-cap { font-size: 8px; opacity: 0.8; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.p-big { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.p-bars { display: flex; align-items: flex-end; gap: 4px; }
.p-bars i { flex: 1; height: var(--h); background: rgba(255, 255, 255, 0.85); border-radius: 2px 2px 0 0; transform-origin: bottom; }
.slot.built .p-bars i { animation: bar-grow 0.8s var(--ease-out) both; }
.slot.built .p-bars i:nth-child(2) { animation-delay: 0.05s; } .slot.built .p-bars i:nth-child(3) { animation-delay: 0.1s; } .slot.built .p-bars i:nth-child(4) { animation-delay: 0.15s; }
.slot.built .p-bars i:nth-child(5) { animation-delay: 0.2s; } .slot.built .p-bars i:nth-child(6) { animation-delay: 0.25s; } .slot.built .p-bars i:nth-child(7) { animation-delay: 0.3s; }
@keyframes bar-grow { from { transform: scaleY(0); } }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 40px; }
.p-stats span { border-radius: 8px; background: #f4f3f1; border: 1px solid var(--border); position: relative; }
.p-stats span::after { content: ""; position: absolute; left: 6px; right: 10px; bottom: 7px; height: 5px; border-radius: 3px; background: var(--ink); }
.p-stats span:first-child::after { background: var(--brand); }
.p-list { display: grid; gap: 6px; }
.p-list span { display: flex; align-items: center; gap: 7px; height: 22px; }
.p-list i { width: 20px; height: 20px; border-radius: 6px; background: #fde3e4; }
.p-list b { flex: 1; height: 6px; border-radius: 3px; background: #d4d3cf; }
.p-btn { height: 30px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.sel { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid var(--brand); border-radius: 4px; pointer-events: none; opacity: 0; transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out), height 0.55s var(--ease-out), opacity 0.3s; }
.sel.show { opacity: 1; }
.sel i { position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--brand); }
.sel i:nth-child(1) { left: -4px; top: -4px; } .sel i:nth-child(2) { right: -4px; top: -4px; } .sel i:nth-child(3) { left: -4px; bottom: -4px; } .sel i:nth-child(4) { right: -4px; bottom: -4px; }
.sel span { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--brand); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.panel { border-left: 1px solid var(--border); padding: 12px 11px; font-size: 10.5px; display: grid; align-content: start; gap: 6px; background: #fcfbfa; }
.pn-h { font-weight: 700; color: var(--text); font-size: 10px; letter-spacing: 0.04em; margin-top: 6px; }
.pn-h:first-child { margin-top: 0; }
.pn-row { display: flex; gap: 6px; }
.pn-row span { flex: 1; padding: 4px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-soft); }
.pn-sw { display: flex; gap: 5px; }
.pn-sw i { width: 20px; height: 20px; border-radius: 6px; background: var(--c); border: 1px solid var(--border-strong); }
.pn-btn { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border-strong); text-align: center; font-weight: 600; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 11, 12, 0.12); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.float small { display: block; font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.float b { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 15px; }
.float svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--brand-soft); fill: var(--brand); }
.f-type { left: -30px; top: 60px; transform: translateZ(60px); animation: bob 6s ease-in-out infinite; }
.f-comp { right: -24px; bottom: 16px; transform: translateZ(80px); animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.cursor-you { position: absolute; left: 0; top: 0; z-index: 5; display: flex; align-items: flex-start; gap: 2px; transform: translate3d(var(--cx, 60%), var(--cy, 40%), 90px); transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); pointer-events: none; }
.cursor-you svg { width: 20px; height: 20px; fill: var(--brand); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.cursor-you span { margin-top: 14px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px 999px 999px 4px; }
.note { position: absolute; display: flex; align-items: center; gap: 11px; padding: 11px 16px 11px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 50px rgba(11, 11, 12, 0.18); opacity: 0; transition: opacity 0.5s var(--ease-out), translate 0.6s var(--ease-out); white-space: nowrap; }
.note.show { opacity: 1; translate: 0 0; }
.n-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.n-ic.ok { background: #16a34a; }
.n-t b { display: block; font-size: 13px; }
.n-t small { font-size: 11px; color: var(--text-muted); }
.note-order { right: -18px; top: 6px; transform: translateZ(110px); translate: 0 -16px; }
.note-paid { left: -26px; bottom: 0; transform: translateZ(120px); translate: 0 16px; }
.note-paid .n-t b { color: #15803d; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .studio { max-width: 560px; width: 100%; margin: 8px auto 0; }
}
@media (max-width: 560px) {
  .win-body { grid-template-columns: 34px 1fr; height: 330px; }
  .panel { display: none; }
  .f-type { left: -6px; top: 44px; }
  .f-comp { right: -6px; }
  .note-order { right: -4px; }
  .note-paid { left: -4px; }
  .float { font-size: 11px; padding: 8px 10px 8px 8px; }
  .float b, .float svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-tilt { transition: none; }
  .f-type, .f-comp { animation: none; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: 22px; background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; color: var(--text); }
.marquee-item svg { color: var(--brand); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-red { background: var(--ink); border: 0; transform: rotate(-2deg); margin-block: 40px; }
.marquee-red .marquee-item { color: #fff; }
.marquee-red .marquee-item:nth-child(even) { color: var(--brand-text); }

/* ---------- Origin story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-sticky { position: sticky; top: calc(var(--nav-h) + 40px); }
.story-counter { font-family: var(--font-display); font-size: clamp(90px, 14vw, 200px); font-weight: 800; line-height: 0.85; letter-spacing: -0.06em; margin-top: 30px; color: transparent; -webkit-text-stroke: 1.5px var(--brand); }
.story-chapters { display: grid; gap: 22vh; padding-block: 8vh 16vh; }
.chapter { padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); opacity: 0.4; transform: scale(0.97); transition: opacity 0.6s, transform 0.6s var(--ease-out), border-color 0.6s, box-shadow 0.6s; }
.chapter.is-active { opacity: 1; transform: none; border-color: var(--border-strong); box-shadow: var(--shadow); }
.chapter .when { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-text); }
.chapter h3 { margin: 12px 0; }
.chapter p { color: var(--text-muted); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story-sticky { position: relative; top: 0; } .story-counter { display: none; } .story-chapters { gap: 20px; padding: 0; } .chapter { opacity: 1; transform: none; } }

/* ---------- Flip cards ---------- */
.flip { perspective: 1200px; min-height: 340px; }
.flip-inner { position: relative; width: 100%; height: 100%; min-height: 300px; transform-style: preserve-3d; transition: transform 0.9s var(--ease-out); }
.flip, .flip-inner { min-height: 340px; }
.flip.is-flipped .flip-inner, .flip:hover .flip-inner, .flip:focus-within .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--r-lg); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.flip-back { transform: rotateY(180deg); background: var(--ink); border-color: var(--ink); }
.flip-face .num { font-family: var(--font-display); font-size: 64px; font-weight: 800; letter-spacing: -0.05em; color: var(--surface-3); line-height: 1; }
.flip-face h3 { margin-bottom: 10px; }
.flip-face p { color: var(--text-muted); }
.flip-back h3 { color: #fff; }
.flip-back p { color: rgba(255, 255, 255, 0.72); }
.flip-back .num { color: rgba(255, 255, 255, 0.12); }
.flip-hint { font-size: 12px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.flip-back .flip-hint { color: #e5484f; }

/* ---------- LEAP prism ---------- */
.leap-pin { overflow: hidden; }
.leap-pin h2 { font-size: clamp(32px, 3.6vw, 48px); }
.leap-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; width: 100%; }
.leap-steps { display: grid; gap: 6px; margin-top: 24px; }
.leap-step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, opacity 0.4s, box-shadow 0.4s; opacity: 0.45; text-align: left; }
.leap-step.is-active { opacity: 1; background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.leap-step .n { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--brand); }
.leap-step b { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; display: block; }
.leap-step span { color: var(--text-muted); font-size: 15px; }
.prism-scene { perspective: 1400px; height: min(460px, 70vw); display: grid; place-items: center; position: relative; }
.prism { --s: min(340px, 62vw); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-12deg) rotateY(0deg); }
.prism-face {
  position: absolute; inset: 0; border-radius: 28px; display: grid; place-content: center; text-align: center; gap: 8px; padding: 30px;
  background: linear-gradient(150deg, #1e1e21, #0b0b0c 65%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px rgba(11, 11, 12, 0.18);
  backface-visibility: hidden;
}
.prism-face .big { font-family: var(--font-display); font-size: calc(var(--s) * 0.42); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; color: #fff; }
.prism-face .word { font-family: var(--font-display); font-size: calc(var(--s) * 0.1); font-weight: 700; letter-spacing: -0.02em; color: #e5484f; }
.prism-face .step { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.prism-face:nth-child(1) { transform: rotateY(0deg) translateZ(calc(var(--s) / 2)); }
.prism-face:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.prism-face:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.prism-face:nth-child(4) { transform: rotateY(270deg) translateZ(calc(var(--s) / 2)); }
.prism-shadow { position: absolute; bottom: 0; width: 60%; height: 30px; border-radius: 50%; background: radial-gradient(rgba(11, 11, 12, 0.22), transparent 70%); filter: blur(10px); }
.prism-progress { display: flex; gap: 6px; justify-content: center; margin-top: 18px; }
.prism-progress i { width: 26px; height: 3px; border-radius: 3px; background: var(--surface-3); transition: background 0.3s; }
.prism-progress i.on { background: var(--brand); }
@media (max-width: 900px) { .leap-wrap { grid-template-columns: 1fr; gap: 24px; }  .prism-scene { order: -1; height: 72vw; max-height: 380px; } }

/* ---------- Courses bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento .span-4 { grid-column: span 4; }
.bento .span-3 { grid-column: span 3; }
.bento .span-6 { grid-column: span 6; }
.bento .row-2 { grid-row: span 2; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > *, .bento .span-4, .bento .span-3 { grid-column: span 1; } .bento .span-6, .bento .wide-m { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .span-6, .bento .wide-m { grid-column: span 1; } .bento .row-2 { grid-row: auto; } }
.tilt { transform-style: preserve-3d; transition: transform 0.2s ease-out; will-change: transform; }
.course-card { display: flex; flex-direction: column; gap: 18px; min-height: 100%; }
.course-card .thumb { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink); border: 1px solid var(--border); }
.course-card .thumb svg { width: 100%; height: 100%; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-muted); }
.course-card .meta span { display: inline-flex; gap: 6px; align-items: center; }
.course-card .price { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.course-card .price s { color: var(--text-dim); font-size: 16px; font-weight: 500; margin-left: 8px; }
.course-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.course-feature { border-color: var(--border-strong); box-shadow: var(--shadow); }
.course-feature h3 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; }
.mini-card { display: grid; align-content: space-between; gap: 18px; }
.mini-card .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.stat { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-display); font-size: clamp(44px, 5.5vw, 76px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.stat .n sup { color: var(--brand); font-size: 0.5em; vertical-align: top; margin-left: 2px; }
.stat p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--border); } }

/* ---------- Testimonials (horizontal) ---------- */
.h-scroll { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); cursor: grab; padding-bottom: 8px; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.h-track { display: flex; gap: 20px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.h-track .t-card { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; align-items: center; }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s; }
.carousel-btn:hover:not([disabled]) { background: var(--ink); color: #fff; border-color: var(--ink); }
.carousel-btn[disabled] { opacity: 0.35; cursor: default; }
.t-card { width: min(400px, 82vw); flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; min-height: 340px; }
.t-card blockquote { font-family: var(--font-display); font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.t-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.t-card .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.t-card .who small { display: block; color: var(--brand-text); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.t-video { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #1e1e21, #101012); display: grid; place-items: center; border: 1px solid var(--border); }
.t-video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: var(--glow); transition: transform 0.3s var(--ease-out); }
.t-card:hover .play, .t-video:hover .play { transform: scale(1.12); }
.t-video .cap { position: absolute; left: 14px; bottom: 14px; right: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.quote-mark { font-family: var(--font-display); font-size: 80px; line-height: 0.5; color: var(--brand); height: 30px; }
.course-feature.t-card { background: var(--ink); border-color: var(--ink); }
.course-feature.t-card h3 { color: #fff; }
.course-feature.t-card .muted { color: rgba(255, 255, 255, 0.62); }
.course-feature.t-card .btn-primary { background: #fff; color: var(--ink); }
.course-feature.t-card .btn-primary:hover { background: var(--brand); color: #fff; }

/* ---------- Resources ---------- */
.res-card { display: flex; flex-direction: column; gap: 16px; }
.res-card .cover { aspect-ratio: 4 / 3; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); position: relative; overflow: hidden; }
.res-card .doc { width: 44%; max-width: 170px; aspect-ratio: 3 / 4; border-radius: 8px; background: #fff; color: var(--ink); padding: 12px; display: grid; align-content: space-between; box-shadow: 0 24px 40px rgba(11, 11, 12, 0.16); transform: rotate(-6deg); transition: transform 0.5s var(--ease-out); position: relative; z-index: 1; font-family: var(--font-display); border: 1px solid var(--border); }
.res-card:hover .doc { transform: rotate(0) translateY(-8px) scale(1.04); }
.res-card .doc b { font-size: clamp(12px, 1.2vw, 15px); line-height: 1.05; letter-spacing: -0.02em; }
.res-card .doc i { width: 26px; height: 5px; background: var(--brand); border-radius: 3px; }
.res-card .doc.doc-red { background: var(--brand); color: #fff; border-color: var(--brand); }
.res-card .doc.doc-red i { background: #fff; }
.res-card .doc.doc-ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.cd-unit { min-width: 84px; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.cd-unit b { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-unit span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.countdown.sm .cd-unit { min-width: 62px; padding: 10px 8px; }
.countdown.sm .cd-unit b { font-size: 26px; }
.theme-dark .cd-unit { background: rgba(255, 255, 255, 0.05); }
.webinar-block { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.webinar-block::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200, 30, 39, 0.35), transparent 65%); pointer-events: none; }
.webinar-block > * { position: relative; }
@media (max-width: 900px) { .webinar-block { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); transition: border-color 0.3s, box-shadow 0.3s; }
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; transition: transform 0.4s var(--ease-out), background 0.3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s; }
.faq details[open] .pm { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq details[open] .pm::before, .faq details[open] .pm::after { background: #fff; }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq .answer { padding: 0 24px 24px; color: var(--text-muted); max-width: 72ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Final CTA (ink box, like the live site) ---------- */
.final-cta { padding-block: clamp(56px, 8vw, 110px); }
.cta-box { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-lg); padding: clamp(64px, 9vw, 130px) var(--gutter); }
.cta-box .pulse { position: absolute; left: 50%; top: 50%; width: 70%; max-width: 800px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(200, 30, 39, 0.35), transparent 60%); filter: blur(30px); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; } }
.cta-box .display { margin: 20px auto 34px; max-width: 14ch; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--border); padding-top: 80px; overflow: hidden; background: var(--bg); }
.footer-giant { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.06em; font-size: clamp(56px, 12.5vw, 200px); line-height: 0.8; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(11, 11, 12, 0.14); margin-bottom: 70px; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; padding-bottom: 56px; }
.footer-grid > div { display: grid; align-content: start; gap: 10px; }
.footer-grid a:not(.logo):not(.btn) { color: var(--text-muted); font-size: 14.5px; transition: color 0.2s; justify-self: start; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .eyebrow { margin-bottom: 6px; }
.footer-brand p { max-width: 40ch; font-size: 14.5px; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; display: grid !important; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); }
.socials a:hover { border-color: var(--ink); color: #fff !important; background: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-block: 26px 34px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.newsletter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: 420px; }
.newsletter input { flex: 1; min-width: 180px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: 12.5px; color: var(--text-dim); }
.field label > input, .field label > select, .field label > textarea { margin-top: 7px; font-size: 16px; font-weight: 400; }
.field label > .dim { font-weight: 400; }
.input, .form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .form select, .form textarea, .newsletter input {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.theme-dark .input, .theme-dark .form input:not([type="checkbox"]):not([type="radio"]), .theme-dark .newsletter input { background: var(--surface-2); }
.input::placeholder, .form input::placeholder, .form textarea::placeholder, .newsletter input::placeholder { color: var(--text-dim); }
.form textarea { min-height: 130px; resize: vertical; }
.form select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236b6b65' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus, .newsletter input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 12, 0.08); }
.form [aria-invalid="true"] { border-color: var(--danger) !important; box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.1) !important; }
.field-error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.form-msg { font-size: 14px; min-height: 1.2em; width: 100%; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin-top: 2px; }
.check.card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .tick { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; border: 1px solid rgba(21, 128, 61, 0.3); font-size: 22px; }
.is-done .form { display: none; }
.is-done .form-success { display: block; animation: vt-in 0.6s var(--ease-out); }

/* ---------- Overlays ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #04210f; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35); transition: transform 0.3s var(--ease-out); }
.wa-float:hover { transform: translateY(-4px) scale(1.03); }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.4s var(--ease-out); }
.wa-float:hover .wa-label { max-width: 160px; }
.has-sticky-bar .wa-float { bottom: 92px; }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 440px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: 14px; color: var(--text-muted); }
.cookie b { color: var(--text); }
.cookie a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 640px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
.palette { position: fixed; inset: 0; z-index: 180; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.palette[hidden] { display: none; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(11, 11, 12, 0.35); backdrop-filter: blur(6px); animation: fade 0.2s; }
.palette-box { position: relative; width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); animation: pop 0.25s var(--ease-out); }
@keyframes pop { from { transform: scale(0.96) translateY(-8px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.palette-input input { flex: 1; background: none; border: 0; outline: none; font-size: 17px; color: var(--text); }
.palette-results { list-style: none; padding: 8px; max-height: 50vh; overflow-y: auto; }
.palette-results li a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; }
.palette-results li a .k { grid-row: span 2; align-self: center; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); min-width: 70px; text-align: center; }
.palette-results li a b { font-weight: 600; }
.palette-results li a small { color: var(--text-muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results li.is-sel a, .palette-results li a:hover { background: var(--surface-2); }
.palette-results li.is-sel a .k { background: var(--ink); color: #fff; }
.palette-results .empty { padding: 24px; text-align: center; color: var(--text-muted); }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.palette-foot kbd { margin-right: 4px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%); z-index: 190; padding: 14px 20px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform 0.45s var(--ease-out), opacity 0.3s, visibility 0.3s; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero h1 { margin: 20px 0 22px; max-width: 18ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.page-hero.center .crumbs { justify-content: center; }

/* ---------- Designer X page ---------- */
.dx-hero { padding: calc(var(--nav-h) + 60px) 0 70px; position: relative; overflow: hidden; }
.dx-hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.dx-hero h1 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -0.045em; line-height: 0.95; margin: 22px 0; }
.dx-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-strong); margin-top: 40px; }
.dx-facts div { padding: 18px 16px 0 0; }
.dx-facts b { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; display: block; }
.dx-facts span { font-size: 13px; color: var(--text-muted); }
@media (max-width: 1000px) { .dx-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .dx-facts { grid-template-columns: repeat(2, 1fr); } }
.batch-card { padding: 28px; border-radius: var(--r-lg); display: grid; gap: 18px; }
.batch-card .row-between { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.batch-card .row-between span { color: var(--text-muted); }
.batch-card .row-between b { text-align: right; }
.seats-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.seats-bar i { display: block; height: 100%; background: var(--brand); border-radius: 8px; }
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.for-grid ul { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 20px; }
.for-grid li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--text-soft); }
.for-grid li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 700; }
.for-yes i { background: var(--success-soft); color: var(--success); }
.for-no i { background: var(--brand-soft); color: var(--brand-text); }
@media (max-width: 800px) { .for-grid { grid-template-columns: 1fr; } }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.ba .arrow-mid { display: grid; place-items: center; font-size: 32px; color: var(--brand); }
.ba ul { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 18px; color: var(--text-muted); }
.ba ul li::before { content: "·"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.ba .after { background: var(--ink); border-color: var(--ink); }
.ba .after h3 { color: #fff; }
.ba .after ul { color: rgba(255, 255, 255, 0.78); }
.ba .after .eyebrow { color: #e5484f; }
@media (max-width: 800px) { .ba { grid-template-columns: 1fr; } .ba .arrow-mid { transform: rotate(90deg); } }
.phase { margin-top: 48px; }
.phase-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.phase-head .eyebrow { color: var(--brand-text); }
.modules { display: grid; gap: 10px; }
.module { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); overflow: hidden; }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.module summary::-webkit-details-marker { display: none; }
.module .wk { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--text-dim); letter-spacing: -0.04em; transition: color 0.3s; }
.module[open] .wk, .module:hover .wk { color: var(--brand); }
.module summary h3 { font-size: 20px; }
.module .chev { transition: transform 0.4s var(--ease-out); color: var(--text-muted); }
.module[open] .chev { transform: rotate(180deg); }
.module .body { padding: 0 22px 24px 102px; color: var(--text-muted); display: grid; gap: 16px; }
.module.project { border-color: var(--brand-line); background: linear-gradient(90deg, var(--brand-soft), transparent 50%), var(--surface); }
.badge-proj { font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 4px 8px; border-radius: 6px; margin-bottom: 6px; display: inline-block; }
@media (max-width: 640px) { .module summary { grid-template-columns: 44px 1fr auto; padding: 16px; } .module .body { padding: 0 16px 20px; } .module .wk { font-size: 24px; } }
.get-grid .card { display: grid; gap: 14px; align-content: start; }
.get-grid .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); }
.bonus-stack { display: grid; gap: 12px; }
.bonus { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px; border: 1px dashed var(--brand-line); background: var(--surface); }
.bonus .n { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--brand-text); letter-spacing: 0.1em; }
.bonus .v { font-size: 13px; color: var(--text-muted); text-align: right; }
.bonus .v b { display: block; color: var(--text); font-size: 15px; }
@media (max-width: 640px) { .bonus { grid-template-columns: 1fr; gap: 6px; } .bonus .v { text-align: left; } }
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin-inline: auto; }
.price-card { padding: 34px; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 20px; position: relative; }
.price-card.best { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: 20px; right: 20px; }
.price-card .amount { font-family: var(--font-display); font-size: clamp(44px, 5vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-card .amount small { font-size: 18px; font-weight: 600; color: var(--text-muted); margin-right: 6px; letter-spacing: 0; }
.price-card .was { color: var(--text-dim); text-decoration: line-through; font-size: 16px; }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.price-card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; color: var(--text-soft); }
.price-card li svg { color: var(--success); margin-top: 3px; }
.price-card .btn { margin-top: auto; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; max-width: 860px; margin-inline: auto; }
.guarantee .seal { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1.1; letter-spacing: 0.04em; border: 2px dashed var(--brand); color: var(--brand); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .guarantee { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.instructor { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: end start; padding: 24px; }
.portrait .ini { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(120px, 18vw, 240px); font-weight: 800; letter-spacing: -0.08em; color: rgba(11, 11, 12, 0.07); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .tagline { position: relative; }
@media (max-width: 900px) { .instructor { grid-template-columns: 1fr; } }
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85; display: none; padding: 12px var(--gutter); background: rgba(255, 255, 255, 0.95); border-top: 1px solid var(--border); backdrop-filter: blur(16px); transform: translateY(100%); transition: transform 0.4s var(--ease-out); }
.sticky-bar.show { transform: none; }
.sticky-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-bar .p { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sticky-bar small { display: block; font-size: 12px; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
@media (max-width: 900px) { .sticky-bar { display: block; } }

/* ---------- Courses hub ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 14px; font-weight: 500; color: var(--text-muted); background: var(--surface); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filter-group + .filter-group { padding-left: 14px; border-left: 1px solid var(--border); }
@media (max-width: 800px) { .filter-group + .filter-group { padding-left: 0; border-left: 0; } }
.search-inline { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); }
.search-inline input { flex: 1; background: none; border: 0; outline: none; padding: 12px 0; color: var(--text); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .course-grid { grid-template-columns: 1fr; } }
.course-grid .is-hidden { display: none; }
.no-results { display: none; padding: 60px 20px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: 20px; }

/* ---------- Tools ---------- */
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; position: sticky; top: calc(var(--nav-h) + 8px); z-index: 5; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow-sm); width: fit-content; max-width: 100%; overflow-x: auto; }
.tool-tabs button { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.tool-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tool-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tool-panel[hidden] { display: none; }
@media (max-width: 900px) { .tool-panel { grid-template-columns: 1fr; } }
.range-field { display: grid; gap: 10px; }
.range-field .top { display: flex; justify-content: space-between; align-items: baseline; }
.range-field output { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--surface-3) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); box-shadow: 0 2px 8px rgba(11, 11, 12, 0.2); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); cursor: pointer; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.seg button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pkg { padding: 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.pkg.mid { background: var(--ink); border-color: var(--ink); color: #fff; }
.pkg.mid small, .pkg.mid span { color: rgba(255, 255, 255, 0.62); }
.pkg small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.pkg b { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; margin: 6px 0 2px; }
.pkg span { font-size: 12.5px; color: var(--text-muted); }
@media (max-width: 520px) { .pkg-grid { grid-template-columns: 1fr; } }
.big-num { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 90px; gap: 12px; align-items: center; font-size: 13px; }
.bar-row .track { height: 12px; background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--brand); border-radius: 12px; transition: width 0.8s var(--ease-out); }
.bar-row .fill.grey { background: #b9b8b1; }
.bar-row b { text-align: right; }
.gen-list { display: grid; gap: 10px; list-style: none; padding: 0; }
.gen-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); animation: vt-in 0.5s var(--ease-out) both; }
.gen-list li:nth-child(2) { animation-delay: 0.06s; } .gen-list li:nth-child(3) { animation-delay: 0.12s; } .gen-list li:nth-child(4) { animation-delay: 0.18s; } .gen-list li:nth-child(5) { animation-delay: 0.24s; }
.copy-btn { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface); }
.copy-btn:hover { color: var(--text); border-color: var(--text); }
.score-ring { width: 160px; height: 160px; position: relative; margin-inline: auto; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; }
.score-ring .bg { stroke: var(--surface-2); }
.score-ring .fg { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 0.8s var(--ease-out); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring .val b { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s; font-size: 15px; }
.checklist label:hover { border-color: var(--border-strong); }
.checklist input { width: 20px; height: 20px; accent-color: var(--success); flex-shrink: 0; margin-top: 2px; }
.checklist label:has(input:checked) { border-color: rgba(21, 128, 61, 0.35); background: var(--success-soft); }
.checklist label:has(input:checked) span { color: var(--text-muted); text-decoration: line-through; text-decoration-color: rgba(11, 11, 12, 0.3); }
.quiz { max-width: 760px; margin-inline: auto; }
.quiz-progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 26px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.5s var(--ease-out); }
.quiz-q h3 { margin-bottom: 20px; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { text-align: left; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 16px; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.quiz-opts button:hover { border-color: var(--ink); background: var(--surface-2); transform: translateX(4px); }

/* ---------- Learning paths (metro) ---------- */
.metro { display: grid; gap: 28px; }
.line-card { padding: clamp(22px, 3vw, 36px); }
.line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.line-head .dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 10px; vertical-align: middle; }
.stations { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.stations::before { content: ""; position: absolute; top: 15px; left: 15px; right: 15px; height: 4px; border-radius: 4px; background: var(--c, var(--brand)); opacity: 0.9; }
.station { position: relative; padding-right: 18px; cursor: pointer; }
.station .stop { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 4px solid var(--c, var(--brand)); position: relative; z-index: 1; display: grid; place-items: center; font-size: 12px; font-weight: 800; transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s; }
.station:hover .stop, .station.done .stop { transform: scale(1.15); background: var(--c, var(--brand)); color: #fff; }
.station .when { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 14px; }
.station b { display: block; margin: 4px 0 6px; font-size: 15px; }
.station p { font-size: 13.5px; color: var(--text-muted); }
.station a { font-size: 13px; font-weight: 600; color: var(--brand-text); display: inline-block; margin-top: 8px; }
.station.terminus .stop { width: 40px; height: 40px; margin-top: -3px; box-shadow: 0 0 0 6px var(--brand-soft); }
.station input { position: absolute; opacity: 0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; gap: 16px; padding: 0; }
.post-card .cover { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.post-card .cover::after { content: ""; position: absolute; right: -20%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(200, 30, 39, 0.45), transparent 65%); }
.post-card .cover span { position: relative; z-index: 1; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; text-align: center; transition: transform 0.5s var(--ease-out); }
.post-card:hover .cover span { transform: scale(1.05); }
.post-card .body { padding: 0 24px 26px; display: grid; gap: 10px; }
.post-card .meta { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 10px; }
.post-card h3 { font-size: 21px; }
.post-card p { color: var(--text-muted); font-size: 15px; }
.article-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 56px; }
.toc { position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; font-size: 13.5px; }
.toc p { margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); color: var(--text-muted); transition: color 0.2s, border-color 0.2s; }
.toc a.on, .toc a:hover { color: var(--text); border-color: var(--brand); }
@media (max-width: 1100px) { .article-wrap { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.prose { font-size: 18px; line-height: 1.75; color: var(--text-soft); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); color: var(--text); margin-top: 1.8em; }
.prose h3 { color: var(--text); margin-top: 1.5em; }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--brand); padding: 6px 0 6px 20px; font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: var(--text); letter-spacing: -0.02em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); }
.prose .callout { padding: 22px 24px; border-radius: 18px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-size: 16px; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center; }
.author-box .av { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-cta { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.inline-cta h3 { color: #fff; }
.inline-cta .muted { color: rgba(255, 255, 255, 0.62); }
.inline-cta .eyebrow { color: rgba(255, 255, 255, 0.62); }
.inline-cta .btn-primary { background: #fff; color: var(--ink); }
.inline-cta .btn-primary:hover { background: var(--brand); color: #fff; }
.inline-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); }
@media (max-width: 640px) { .inline-cta { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 620px; width: 100%; margin-inline: auto; }
.globe-wrap::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; box-shadow: 0 30px 80px rgba(11, 11, 12, 0.25), 0 0 60px 6px rgba(200, 30, 39, 0.18); pointer-events: none; }
.globe-wrap canvas { width: 100% !important; height: 100% !important; }
.globe-fallback { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a2e, #0b0b0c 65%); }
.globe-ready .globe-fallback { display: none; }
.country-list { display: flex; flex-wrap: wrap; gap: 8px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--border)); }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: 24px; padding-bottom: 44px; }
.tl-item::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); position: relative; z-index: 1; }
.tl-item .when { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-text); }
.tl-item h3 { margin: 8px 0; }
.tl-item p { color: var(--text-muted); max-width: 60ch; }
.value-card .big { font-family: var(--font-display); font-size: 70px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--brand); }
.value-card.dark { background: var(--ink); border-color: var(--ink); }
.value-card.dark h3 { color: #fff; }
.value-card.dark .muted { color: rgba(255, 255, 255, 0.62); }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 26px; margin-top: 2em; }
.legal p, .legal li { color: var(--text-soft); }
.legal .updated { color: var(--text-muted); font-size: 14px; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; position: relative; overflow: hidden; }
.nf .code { font-family: var(--font-display); font-size: clamp(140px, 28vw, 360px); font-weight: 800; letter-spacing: -0.08em; line-height: 0.8; background: linear-gradient(180deg, var(--ink), rgba(200, 30, 39, 0.8) 75%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Misc ---------- */
.logo-chip { padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); font-weight: 600; color: var(--text-muted); background: var(--surface); }
.note-box { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; color: var(--text-muted); }
.note-box b { color: var(--text); }
.bank-box { display: grid; gap: 8px; padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14.5px; text-align: left; }
.bank-box div { display: flex; justify-content: space-between; gap: 12px; }
.bank-box span { color: var(--text-muted); }
.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 20px; filter: grayscale(1) contrast(0.95); }

/* Reveal on scroll. JS adds .rv, then .in when the element reaches the screen.
   Until the script starts, .motion-pending hides the same elements (max 3s, see base.html). */
.motion-pending [data-split], .motion-pending [data-reveal], .motion-pending [data-stagger] > * { opacity: 0; }
.rv { opacity: 0; translate: 0 32px; transition: opacity 0.8s var(--ease-out), translate 0.9s var(--ease-out); }
.rv.in { opacity: 1; translate: none; }
.split-pending { opacity: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  body::after { animation: none; }
  .flip:hover .flip-inner { transform: none; }
}
.split-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }

/* ---------- Ticket: next batch countdown + "Book a free seat" ---------- */
.ticket-wrap { padding-block: clamp(28px, 4vw, 48px); position: relative; z-index: 2; }
.ticket { --tk: var(--brand); display: flex; align-items: stretch; background: var(--tk); color: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(200, 30, 39, 0.22); position: relative; }
.ticket-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) auto auto; align-items: center; gap: clamp(18px, 3vw, 44px); padding: 22px clamp(20px, 3vw, 40px); min-width: 0; }
.ticket-title { display: grid; gap: 4px; justify-items: end; text-align: right; }
.ticket-title b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.ticket-title span { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.ticket-cd { gap: 0; flex-wrap: nowrap; }
.ticket-cd .cd-unit { min-width: 0; padding: 0 10px; background: none; border: 0; border-radius: 0; position: relative; }
.ticket-cd .cd-unit b { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.ticket-cd .cd-unit span { font-size: 12px; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.85); }
.ticket-cd .cd-unit + .cd-unit::before { content: ":"; position: absolute; left: -4px; top: 2px; font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, 0.9); }
.ticket-cd p { color: #fff !important; }
.ticket-btn { background: var(--ink); color: #fff; border-radius: 8px; --pad-y: 14px; --pad-x: 26px; font-weight: 700; }
.ticket-btn:hover { background: #fff; color: var(--ink); }
.ticket-stub { flex-shrink: 0; display: grid; align-content: center; gap: 10px; padding: 16px 18px 16px 22px; border-left: 2px dashed rgba(255, 255, 255, 0.55); position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid rgba(11, 11, 12, 0.08); }
.ticket-stub::before { top: -11px; } .ticket-stub::after { bottom: -11px; }
.t-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.t-chip svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: #fff; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .ticket { flex-direction: column; }
  .ticket-main { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .ticket-title { justify-items: center; text-align: center; }
  .ticket-stub { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.55); display: flex; justify-content: center; padding: 14px; }
  .ticket-stub::before, .ticket-stub::after { top: -12px; bottom: auto; left: auto; }
  .ticket-stub::before { left: -11px; } .ticket-stub::after { right: -11px; }
}
@media (max-width: 420px) { .ticket-cd .cd-unit { padding: 0 7px; } .ticket-cd .cd-unit span { font-size: 11px; } }

/* ---------- Free seat booking dialog ---------- */
.seat-modal { position: fixed; inset: 0; z-index: 185; display: grid; place-items: center; padding: 16px; }
.seat-modal[hidden] { display: none; }
.seat-back { position: absolute; inset: 0; background: rgba(11, 11, 12, 0.45); backdrop-filter: blur(6px); animation: fade 0.2s; }
.seat-box { position: relative; width: 100%; max-width: 580px; max-height: calc(100svh - 32px); overflow-y: auto; background: var(--surface); border-radius: 22px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); animation: pop 0.3s var(--ease-out); }
.seat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.seat-head .h3 { margin-top: 6px; }
.seat-x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 22px; line-height: 1; color: var(--text-muted); flex-shrink: 0; }
.seat-x:hover { color: var(--text); border-color: var(--text); }
.seat-progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 18px 0 20px; }
.seat-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.45s var(--ease-out); }
.seat-form { gap: 16px; }
.seat-step { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.seat-step[hidden] { display: none; }
.seat-q { font-size: clamp(19px, 2vw, 22px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; padding: 0; margin-bottom: 4px; }
.seat-opts { display: grid; gap: 10px; }
.seat-opt { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--border-strong); cursor: pointer; font-size: 15.5px; font-weight: 500; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.seat-opt:hover { border-color: var(--ink); transform: translateX(3px); }
.seat-opt input { width: 20px; height: 20px; accent-color: var(--brand); flex-shrink: 0; margin: 0; }
.seat-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seat-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.seat-nav { display: flex; justify-content: space-between; align-items: center; min-height: 20px; }
.seat-intro { font-size: 14.5px; }
.seat-box .form-success { padding: 12px 4px 4px; }
.seat-open { overflow: hidden; }
.seat-free { text-align: center; padding-top: 12px; border-top: 1px solid var(--border); }
