/* HarmonyCode public site
   Studio glass: a cool mist canvas lit by emerald and lagoon-blue light,
   glossy glass surfaces, and night-studio panels for the moments that matter.
   Type: Syne (display) + DM Sans (body), the original HarmonyCode pairing. */

:root {
  --mist: #eef3f4;
  --mist-2: #e3ebee;
  --white: #ffffff;
  --ink: #122430;
  --text: #2c3d48;
  --muted: #5b6d79;
  --line: rgba(18, 36, 48, 0.1);
  --emerald: #2f9e4f;
  --emerald-bright: #3fbf5e;
  --emerald-deep: #237a3c;
  --lagoon: #1f7fb5;
  --lagoon-bright: #38a3d8;
  --teal: #19a7a0;
  --night: #071a33;
  --night-2: #0b2546;
  --on-night: #e6eef4;
  --on-night-muted: #9fb3c3;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --shadow-soft: 0 1px 2px rgba(18, 36, 48, 0.05), 0 12px 32px rgba(18, 52, 64, 0.08);
  --shadow-lift: 0 2px 4px rgba(18, 36, 48, 0.06), 0 24px 60px rgba(18, 60, 80, 0.14);
  --grad-signal: linear-gradient(90deg, var(--emerald-bright), var(--teal) 55%, var(--lagoon-bright));
  --display: "Syne", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--mist); text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--lagoon); text-underline-offset: 3px; }
::selection { background: var(--emerald); color: var(--white); }
:focus-visible { outline: 3px solid var(--lagoon-bright); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--emerald); color: var(--white); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
section[id] { scroll-margin-top: 84px; }
/* Jump links land with the section's heading just under the header, not after a screen of padding */
section.band[id] { scroll-margin-top: calc(74px + 28px - clamp(76px, 10vw, 132px)); }

/* ── Type ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.22; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.24rem); color: var(--text); max-width: 58ch; }
h2 + .lead, h2 + p { margin-top: 20px; }
.kicker { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--emerald-deep); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-signal); }
.muted { color: var(--muted); }

/* ── Buttons (glossy) ─────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--body); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; isolation: isolate; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-leaf { color: var(--white); background: linear-gradient(180deg, #4ccf6b 0%, var(--emerald) 55%, var(--emerald-deep) 100%); border-color: rgba(20, 90, 40, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 22px rgba(47, 158, 79, 0.32); text-shadow: 0 1px 0 rgba(0, 60, 20, 0.25); }
.btn-leaf:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 30px rgba(47, 158, 79, 0.42); }
.btn-line { color: var(--ink); background: var(--glass-strong); border-color: rgba(18, 36, 48, 0.14); box-shadow: inset 0 1px 0 var(--white), var(--shadow-soft); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-line:hover { border-color: rgba(31, 127, 181, 0.4); }
.dark .btn-line { color: var(--white); background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.dark .btn-line:hover { background: rgba(255, 255, 255, 0.12); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.text-link { font-weight: 700; color: var(--lagoon); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(47, 158, 79, 0.6); }
.text-link:hover { text-decoration-color: var(--emerald); }
.dark .text-link { color: var(--white); }

/* ── Header (light glass) ─────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(244, 248, 249, 0.62); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.site-header.scrolled { background: rgba(255, 255, 255, 0.86); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(18, 52, 64, 0.06); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 16px rgba(7, 26, 51, 0.25); }
.brand span { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand b { color: var(--emerald); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 9px 13px; border-radius: 10px; transition: background 0.2s, color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: rgba(47, 158, 79, 0.1); }
.site-nav .btn { margin-left: 10px; padding: 10px 20px; color: var(--white); }
.site-nav .btn:hover { background: linear-gradient(180deg, #4ccf6b 0%, var(--emerald) 55%, var(--emerald-deep) 100%); color: var(--white); }
.signed-in { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; font-size: 0.88rem; font-weight: 600; color: var(--emerald-deep); white-space: nowrap; }
.signed-in .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 3px rgba(63, 191, 94, 0.2); }
.menu-btn { display: none; background: var(--glass-strong); border: 1px solid var(--line); color: var(--ink); border-radius: 12px; width: 46px; height: 42px; cursor: pointer; }

/* ── Ambient light (aurora) ───────────────────── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.aurora span:nth-child(1) { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; right: -8%; top: -18%; background: radial-gradient(circle, rgba(63, 191, 94, 0.55), transparent 65%); animation: drift-a 18s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; left: -14%; bottom: -26%; background: radial-gradient(circle, rgba(56, 163, 216, 0.5), transparent 65%); animation: drift-b 22s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; max-width: 440px; max-height: 440px; left: 38%; top: 30%; background: radial-gradient(circle, rgba(25, 167, 160, 0.35), transparent 65%); animation: drift-c 26s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-6%, 8%, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(8%, -6%, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(-10%, -8%, 0) scale(0.92); } }
.gridlines { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(18, 36, 48, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 36, 48, 0.05) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 55% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 55% 45%, #000 15%, transparent 75%); }

/* ── Hero ─────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #f6f9fa 0%, #e9f0f2 55%, var(--mist) 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 104px); }
.hero h1 { color: var(--ink); }
.hero h1 .hl { background: linear-gradient(100deg, var(--emerald) 0%, var(--emerald-bright) 40%, var(--teal) 70%, var(--lagoon) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .line2 { color: #3b4f5c; }
.dots { display: inline-flex; gap: 0.12em; margin-left: 0.1em; vertical-align: baseline; }
.dots i { width: 0.15em; height: 0.15em; border-radius: 50%; background: var(--emerald); animation: procession 1.5s ease-in-out infinite; }
.dots i:nth-child(2) { background: var(--teal); animation-delay: 0.2s; }
.dots i:nth-child(3) { background: var(--lagoon); animation-delay: 0.4s; }
@keyframes procession { 0%, 70%, 100% { opacity: 0.18; transform: translateY(0) scale(0.85); } 30% { opacity: 1; transform: translateY(-0.12em) scale(1); } }
.hero h1 .soft { display: block; margin-top: 20px; color: var(--muted); font-size: 0.4em; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 24ch; }
.hero .lead { margin-top: 26px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; padding: 7px 15px; font-size: 0.92rem; color: var(--text); }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-bright); box-shadow: 0 0 0 4px rgba(63, 191, 94, 0.18); }
.hero-meta li:nth-child(2)::before { background: var(--teal); box-shadow: 0 0 0 4px rgba(25, 167, 160, 0.18); }
.hero-meta li:nth-child(3)::before { background: var(--lagoon); box-shadow: 0 0 0 4px rgba(31, 127, 181, 0.18); }

/* the score card: night-studio glass */
.score-stage { position: relative; }
.score-stage::before { content: ""; position: absolute; inset: 8% -4% -6% 6%; border-radius: 40px; background: radial-gradient(60% 60% at 30% 40%, rgba(63, 191, 94, 0.55), transparent 70%), radial-gradient(60% 60% at 75% 70%, rgba(56, 163, 216, 0.55), transparent 70%); filter: blur(40px); z-index: -1; animation: halo 9s ease-in-out infinite alternate; }
@keyframes halo { to { transform: translate3d(-3%, 3%, 0) scale(1.04); opacity: 0.8; } }
.score { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(18px, 2.6vw, 28px) clamp(16px, 2.6vw, 28px) clamp(16px, 2.2vw, 22px);
  background: radial-gradient(120% 80% at 15% 0%, rgba(56, 163, 216, 0.22), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(63, 191, 94, 0.18), transparent 60%), linear-gradient(160deg, #0c2a4d 0%, var(--night) 60%, #06142a 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 90px rgba(7, 26, 51, 0.38), 0 10px 24px rgba(7, 26, 51, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transition: transform 0.8s var(--ease); }
.score:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.score::before { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); pointer-events: none; border-radius: 28px 28px 0 0; }
.score::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -14%; height: 46%; pointer-events: none; opacity: 0.16; filter: blur(2.5px);
  background:
    repeating-linear-gradient(90deg, transparent 0 19px, #000 19px 33px, transparent 33px 47px, #000 47px 61px, transparent 61px 103px, #000 103px 117px, transparent 117px 131px, #000 131px 145px, transparent 145px 159px, #000 159px 173px, transparent 173px 196px) 0 0 / 100% 58% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(0, 0, 0, 0.6) 27px 28px),
    linear-gradient(180deg, #ffffff, #a9c4d6);
  transform: perspective(500px) rotateX(48deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); mask-image: linear-gradient(180deg, transparent, #000 60%); }
.score svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.score figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--on-night-muted); font-size: 0.9rem; }
.score figcaption strong { color: var(--white); font-weight: 700; }
.staff line { stroke: rgba(214, 228, 240, 0.42); stroke-width: 1.3; }
.clef { fill: #ffffff; filter: url(#softGlow); opacity: 0; animation: rise 0.9s var(--ease) 0.2s forwards; }
.notes { fill: #ffffff; stroke: #ffffff; }
.notes > g { opacity: 0; transform: translateY(-12px); animation: rise 0.6s var(--ease) forwards; }
.notes .hit { animation: hit 4s linear infinite; animation-delay: var(--t); }
@keyframes hit { 0%, 9%, 100% { fill: #ffffff; filter: none; } 2% { fill: #b9f5c9; filter: drop-shadow(0 0 6px rgba(63, 191, 94, 0.95)); } }
.playhead { stroke: url(#playheadGrad); stroke-width: 2; animation: sweep 4s linear infinite; opacity: 0.9; }
@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(440px); } }
.wave-glow { fill: none; stroke: url(#signal); stroke-width: 7; opacity: 0.45; filter: url(#bigGlow); }
.wave { fill: none; stroke: url(#signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wave-wrap { transform-box: fill-box; transform-origin: center; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.78); } }
.wave-draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s var(--ease) 0.9s forwards; }
.spark { fill: none; stroke: #ffffff; stroke-width: 3; stroke-linecap: round; filter: url(#softGlow); stroke-dasharray: 46 var(--len); stroke-dashoffset: calc(var(--len) + 46); animation: spark 3s cubic-bezier(0.45, 0, 0.55, 1) 2.6s infinite; opacity: 0.95; }
@keyframes spark { to { stroke-dashoffset: 0; } }
.glyph { opacity: 0; animation: rise 0.7s var(--ease) 2.2s forwards; }
.glyph .bracket { stroke: #ffffff; filter: url(#softGlow); }
.glyph .slash { stroke: url(#slashGrad); filter: url(#bigGlow); animation: slashPulse 3s ease-in-out 2.6s infinite; }
@keyframes slashPulse { 0%, 80%, 100% { stroke-width: 9; } 92% { stroke-width: 11.5; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Piano band (glossy keys) ─────────────────── */
.keys { position: relative; height: 44px; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, transparent 0 19px, #0a1f3a 19px 33px, transparent 33px 47px, #0a1f3a 47px 61px, transparent 61px 103px, #0a1f3a 103px 117px, transparent 117px 131px, #0a1f3a 131px 145px, transparent 145px 159px, #0a1f3a 159px 173px, transparent 173px 196px) 0 0 / 100% 60% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 19px, rgba(255, 255, 255, 0.22) 20px 21px, transparent 22px 47px, rgba(255, 255, 255, 0.22) 48px 49px, transparent 50px 103px, rgba(255, 255, 255, 0.22) 104px 105px, transparent 106px 131px, rgba(255, 255, 255, 0.22) 132px 133px, transparent 134px 159px, rgba(255, 255, 255, 0.22) 160px 161px, transparent 162px 196px) 0 0 / 100% 56% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 27px, rgba(7, 26, 51, 0.22) 27px 28px),
    linear-gradient(180deg, #ffffff 0%, #f3f7f9 70%, #dfe8ee 100%);
  box-shadow: inset 0 6px 10px -6px rgba(7, 26, 51, 0.35), 0 1px 0 var(--line); }
.keys::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 0%, rgba(63, 191, 94, 0) 40%, rgba(63, 191, 94, 0.28) 48%, rgba(56, 163, 216, 0.28) 52%, rgba(56, 163, 216, 0) 60%, transparent 100%); background-size: 220% 100%; animation: glide 7s ease-in-out infinite; mix-blend-mode: multiply; }
@keyframes glide { from { background-position: 120% 0; } to { background-position: -20% 0; } }

/* ── Sections ─────────────────────────────────── */
.band { position: relative; padding: clamp(76px, 10vw, 132px) 0; }
.band-white { background: linear-gradient(180deg, #ffffff 0%, #f8fbfb 100%); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(38px, 5vw, 62px); }
.section-head.single { grid-template-columns: 1fr; max-width: 780px; gap: 0; }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* glass surface used by cards */
.glass, .stats, .journey li, .psl-strip, .route-onsite, .pace, .program, .person, .values, .week li, .data-table, .form, .levels span {
  background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft), inset 0 1px 0 #ffffff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* night panels */
.dark { position: relative; overflow: hidden; color: var(--on-night); background: radial-gradient(70% 60% at 90% 0%, rgba(63, 191, 94, 0.2), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(56, 163, 216, 0.22), transparent 60%), linear-gradient(165deg, var(--night-2) 0%, var(--night) 70%); }
.dark h2, .dark h3, .dark h4 { color: var(--white); }
.dark p { color: var(--on-night); }
.dark .muted { color: var(--on-night-muted); }
.dark .kicker { color: #7fdc95; }

/* stats: count in turns */
.stats-band { padding: clamp(40px, 6vw, 64px) 0 0; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift), inset 0 1px 0 #ffffff; }
.stats div { position: relative; padding: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats div::after { content: ""; position: absolute; left: clamp(18px, 2.4vw, 30px); bottom: 0; height: 3px; width: 0; border-radius: 3px 3px 0 0; background: var(--grad-signal); transition: width 0.9s var(--ease); }
.stats div.counted::after { width: 56px; }
.stats strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stats strong em { font-style: normal; color: var(--emerald); }
.stats span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* journey: four blocks on one continuous rail */
.journey { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; padding-top: 34px; }
.journey::before { content: ""; position: absolute; top: 33px; left: 48px; right: calc(25% - 66px); height: 3px; border-radius: 3px; background: var(--grad-signal); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); box-shadow: 0 0 14px rgba(56, 163, 216, 0.35); z-index: 1; }
.journey.in::before { transform: scaleX(1); }
.journey li { position: relative; border-radius: 22px; padding: 46px 24px 26px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, 0.9); }
.journey .num { z-index: 2; position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--white); background: radial-gradient(circle at 35% 30%, #ffffff55 0 18%, transparent 40%), linear-gradient(145deg, var(--emerald-bright), var(--lagoon)); box-shadow: 0 8px 20px rgba(31, 127, 181, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); border: 3px solid #ffffff; }
.journey h3 { margin: 0 0 8px; }
.journey p { font-size: 0.99rem; color: var(--muted); }
.journey .gate { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.9rem; font-weight: 700; color: var(--emerald-deep); }
.journey .gate::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--emerald-bright); }
.psl-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 64px); border-radius: 22px; overflow: hidden; }
.psl-strip div { padding: 26px 28px; border-left: 1px solid var(--line); }
.psl-strip div:first-child { border-left: 0; }
.psl-strip h4 { font-family: var(--display); font-size: 1.22rem; margin-bottom: 4px; }
.psl-strip p { font-size: 0.97rem; color: var(--muted); }

/* routes */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.route { border-radius: 26px; padding: clamp(28px, 4vw, 42px); display: flex; flex-direction: column; gap: 14px; }
.route-remote { box-shadow: 0 30px 70px rgba(7, 26, 51, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.1); }
.route-remote h3 { color: var(--white); }
.route ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 6px 0 8px; }
.route li { padding-left: 26px; position: relative; }
.route li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 12px; height: 3px; border-radius: 3px; background: var(--grad-signal); }
.route .btn-row { margin-top: auto; padding-top: 10px; }
.route-note { font-size: 0.95rem; padding: 12px 14px; border-radius: 12px; background: rgba(63, 191, 94, 0.1); border-left: 3px solid var(--emerald); color: var(--text); }
.route-tag { font-family: var(--display); font-weight: 700; color: var(--emerald-deep); }
.route-remote .route-tag { color: #7fdc95; }
.paces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.pace { border-radius: 18px; padding: 22px; }
.pace strong { font-family: var(--display); font-size: 1.22rem; color: var(--ink); display: block; }
.pace span { color: var(--muted); font-size: 0.95rem; }

/* studio feature */
.studio-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-list { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.feature-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.feature-list i { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg, rgba(63, 191, 94, 0.25), rgba(56, 163, 216, 0.25)); border: 1px solid rgba(255, 255, 255, 0.14); color: #9cf0b3; display: grid; place-items: center; font-size: 0.95rem; }
.feature-list strong { color: var(--white); display: block; font-family: var(--display); font-size: 1.08rem; }
.chat-mock { background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.chat-mock .modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.chat-mock .modes span { font-size: 0.82rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 4px 11px; color: var(--on-night); }
.chat-mock .modes span.on { background: linear-gradient(180deg, #4ccf6b, var(--emerald)); color: var(--white); border-color: transparent; font-weight: 700; }
.msg { max-width: 88%; border-radius: 18px; padding: 12px 15px; font-size: 0.96rem; line-height: 1.5; }
.msg.me { align-self: flex-end; background: #ffffff; color: var(--ink); border-bottom-right-radius: 5px; }
.msg.ai { align-self: flex-start; background: rgba(255, 255, 255, 0.08); color: var(--on-night); border: 1px solid rgba(255, 255, 255, 0.12); border-bottom-left-radius: 5px; }
.msg.ai b { color: var(--white); }
.chat-mock .typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 15px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.chat-mock .typing i { width: 7px; height: 7px; border-radius: 50%; background: #9cf0b3; animation: procession 1.5s ease-in-out infinite; }
.chat-mock .typing i:nth-child(2) { animation-delay: 0.2s; background: #7fd9d3; }
.chat-mock .typing i:nth-child(3) { animation-delay: 0.4s; background: #8cc8ef; }

/* standard teaser */
.standard-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.domain-list { list-style: none; border-top: 1px solid var(--line); }
.domain-list li { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding 0.3s var(--ease); }
.domain-list li:hover { padding-left: 8px; }
.domain-list code { font-family: var(--display); font-weight: 800; font-size: 1.1rem; background: var(--grad-signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.domain-list span { color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.levels { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.levels span { flex: 1 1 100px; padding: 12px 14px; border-radius: 14px; font-size: 0.92rem; }
.levels span b { display: block; font-family: var(--display); color: var(--ink); }
.levels span.pass { background: linear-gradient(150deg, var(--night-2), var(--night)); color: var(--on-night); border-color: transparent; box-shadow: 0 10px 24px rgba(7, 26, 51, 0.25); }
.levels span.pass b { color: #7fdc95; }

/* why / values */
.values { display: grid; grid-template-columns: repeat(2, 1fr); border-radius: 24px; overflow: hidden; }
.values div { padding: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.values div:nth-child(-n + 2) { border-top: 0; }
.values div:nth-child(odd) { border-left: 0; }
.values h3 { margin-bottom: 8px; }
.split-photo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--night); }
.split-photo .photo { box-shadow: var(--shadow-lift); }
.photo picture { display: block; width: 100%; height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.035); }
.pillars { list-style: none; display: grid; gap: 18px; margin-top: 26px; }
.pillars li { padding-left: 18px; border-left: 3px solid transparent; border-image: var(--grad-signal) 1; }
.pillars li h4 { font-family: var(--display); font-size: 1.15rem; margin-bottom: 2px; }

/* programs */
.programs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.program { border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.program .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.program-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.program-body .text-link { margin-top: auto; }
.program-flag { font-weight: 700; color: var(--emerald-deep); font-size: 0.92rem; }

/* capital */
.capital { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.capital-figure { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 10vw, 7.5rem); line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(100deg, #9cf0b3, #5fd3c9 50%, #8cc8ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.capital-mail { margin-top: 18px; font-size: 0.95rem; }
.capital-list { list-style: none; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.capital-list li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.capital-list strong { color: var(--white); font-family: var(--display); font-size: 1.1rem; display: block; margin-bottom: 2px; }

/* resources */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.resource { position: relative; padding: 26px 24px; border-radius: 22px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); }
.resource::before { content: ""; position: absolute; left: 24px; top: 0; width: 46px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad-signal); }
.resource .links { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }

/* team */
.team-leads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.person { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.person .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; color: var(--white); background: radial-gradient(circle at 35% 30%, #ffffff44 0 16%, transparent 40%), linear-gradient(140deg, hsl(var(--tone) 55% 40%), var(--night-2)); margin-bottom: 8px; box-shadow: 0 8px 18px rgba(7, 26, 51, 0.2); }
.team-leads .person { flex-direction: row; gap: 18px; align-items: flex-start; padding: 26px; }
.team-leads .avatar { width: 72px; height: 72px; font-size: 1.3rem; flex: 0 0 72px; }
.person .role { color: var(--emerald-deep); font-weight: 700; font-size: 0.9rem; line-height: 1.35; }
.person p { font-size: 0.94rem; color: var(--muted); }
.person a { font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }

/* contact */
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.contact-details { list-style: none; display: grid; gap: 22px; margin-top: 28px; }
.contact-details h4 { color: var(--white); margin-bottom: 4px; }
.contact-details a { color: var(--on-night); }
.form { color: var(--text); border-radius: 26px; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 14px; background: rgba(255, 255, 255, 0.94); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); border: 1.5px solid rgba(18, 36, 48, 0.16); border-radius: 12px; padding: 12px 14px; background: #f5f9fa; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--lagoon); background: #ffffff; box-shadow: 0 0 0 4px rgba(31, 127, 181, 0.14); }
.form textarea { min-height: 130px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: var(--emerald-deep); }
.form-status.err { color: #b03a3a; }
.form .btn { justify-self: start; }

/* footer */
.site-footer { position: relative; overflow: hidden; color: var(--on-night-muted); padding: 68px 0 36px; background: radial-gradient(50% 80% at 100% 0%, rgba(63, 191, 94, 0.12), transparent 60%), linear-gradient(180deg, var(--night) 0%, #041022 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer .brand { color: var(--white); }
.site-footer h4 { color: var(--white); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding-top: 22px; font-size: 0.92rem; }

/* sub-pages (remote / standard) */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 92px); background: linear-gradient(170deg, #f6f9fa 0%, #e9f0f2 60%, var(--mist) 100%); }
.page-hero .wrap { z-index: 1; }
.page-hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.6rem); max-width: 17ch; }
.page-hero .lead { margin-top: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 32px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(145deg, var(--emerald-bright), var(--teal)); box-shadow: 0 4px 10px rgba(47, 158, 79, 0.3); }
.week { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.week li { border-radius: 18px; padding: 20px; }
.week b { font-family: var(--display); font-size: 1.12rem; color: var(--ink); display: block; }
.week em { font-style: normal; color: var(--emerald-deep); font-weight: 700; font-size: 0.92rem; }
.week p { font-size: 0.94rem; margin-top: 6px; color: var(--muted); }
.tracks { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.track { border-radius: 22px; padding: 24px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.track h3 { margin-bottom: 4px; }
.track ul { margin-top: 12px; padding-left: 18px; display: grid; gap: 6px; color: var(--on-night); font-size: 0.96rem; }
.dark .wrap { z-index: 1; }
.steps-list { list-style: none; counter-reset: st; display: grid; border-top: 1px solid var(--line); }
.steps-list li { counter-increment: st; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.steps-list li::before { content: counter(st); font-family: var(--display); font-weight: 800; font-size: 1.6rem; background: var(--grad-signal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.12rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--emerald); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; }
.comp-domain { margin-top: 44px; }
.comp-domain header { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.comp-domain header code { font-family: var(--display); font-weight: 800; color: var(--emerald-deep); font-size: 1.3rem; }
.comp { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comp:target { background: rgba(63, 191, 94, 0.1); }
.comp code { font-family: var(--display); font-weight: 700; color: var(--lagoon); }
.comp h4 { margin-bottom: 4px; }
.comp .ev { font-size: 0.95rem; color: var(--muted); }
.comp .ev b { color: var(--ink); font-weight: 600; }
.note { background: linear-gradient(90deg, rgba(63, 191, 94, 0.12), rgba(56, 163, 216, 0.08)); border-left: 4px solid var(--emerald); padding: 16px 18px; border-radius: 0 14px 14px 0; margin-top: 20px; }
.dark .note { color: var(--on-night); background: rgba(255, 255, 255, 0.06); }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; border-radius: 18px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { font-family: var(--display); color: var(--ink); background: rgba(227, 235, 238, 0.7); }

/* ── Scroll reveal ────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1180px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 74px; background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 22px; gap: 2px; display: none; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(18, 52, 64, 0.12); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 10px; font-size: 1.05rem; }
  .site-nav .btn { margin: 10px 0 0; justify-content: center; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .programs { grid-template-columns: 1fr 1fr; }
  .programs .program:first-child { grid-column: 1 / -1; }
  .week { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .section-head, .routes, .studio-grid, .standard-grid, .split-photo, .capital, .contact, .two-col { grid-template-columns: 1fr; }
  .score { transform: none; }
  .journey { grid-template-columns: 1fr 1fr; row-gap: 46px; padding-top: 30px; }
  .journey::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .psl-strip, .paces, .resources, .tracks { grid-template-columns: 1fr; }
  .psl-strip div { border-left: 0; border-top: 1px solid var(--line); }
  .psl-strip div:first-child { border-top: 0; }
  .team-leads { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .comp { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .journey, .programs, .team, .week, .form .row, .footer-grid { grid-template-columns: 1fr; }
  .journey { padding-top: 26px; row-gap: 44px; }
  .values { grid-template-columns: 1fr; }
  .values div { border-left: 0 !important; border-top: 1px solid var(--line) !important; }
  .values div:first-child { border-top: 0 !important; }
  .domain-list li { grid-template-columns: 60px 1fr; }
  .domain-list span { grid-column: 2; }
  .team-leads .person { flex-direction: column; }
  .score figcaption { flex-direction: column; gap: 2px; }
  .stats strong { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .journey::before { transform: scaleX(1); }
  .dots i { opacity: 1; }
}

/* Guides (Help, Concept, Context, Press) */
.page-hero-sm { padding-bottom: clamp(36px, 5vw, 56px); }
.page-hero-sm h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.guide-tabs a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 8px 16px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-soft); }
.guide-tabs a.on { color: var(--white); background: linear-gradient(180deg, #4ccf6b, var(--emerald)); border-color: transparent; }
.prose > * { max-width: 760px; }
.prose-block + .prose-block { margin-top: clamp(36px, 5vw, 52px); }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 14px; }
.prose p + p, .prose ul + p, .prose ol + p, .prose p + ul, .prose p + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: var(--emerald); font-weight: 700; }
.prose code { font-size: 0.92em; background: var(--mist-2); padding: 2px 7px; border-radius: 6px; }
