/* SyncMAX — wide schedule-sheet grid, navy & gold. One dark, animated hero; light, photo-led sections below. */
:root {
  --brand-base: #1E3A6E;
  --brand: var(--brand-base);
  --amber: #C9A227;
  --brand-ink: #FFFFFF;
  --ink: #16233A;
  --ink-soft: #55627A;
  --paper: #FFFFFF;
  --surface: #F4F6FA;
  --tint: #E8EDF6;
  --line: #DCE2EC;
  --amber-soft: #F7EFD3;
  --crit: #D9534F;
  --good: #2E9E5B;
  --night: #0A1730;
  --night-2: #12264A;
  --on-night: #EAF0FA;
  --on-night-soft: #A9B7CF;
  --window: rgba(217, 83, 79, 0.10);
  --shadow: 0 24px 48px -28px rgba(16, 32, 64, .35);
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --maxw: 1360px;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --brand: #8FA9DA;
  --brand-ink: #0A1428;
  --ink: #E6ECF5;
  --ink-soft: #A2B0C6;
  --paper: #0B1424;
  --surface: #121E33;
  --tint: #18284A;
  --line: #25344F;
  --amber-soft: #352C12;
  --crit: #F06A5C;
  --good: #5CC78A;
  --window: rgba(240, 106, 92, 0.14);
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }

h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.06; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 780; }
h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 105%; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.eyebrow { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 6px; background: var(--amber); border-radius: 1px; }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.gold { color: var(--amber); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(10, 23, 48, .5); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); order: 1; }
.logo-mark { display: grid; gap: 3px; width: 28px; }
.logo-mark span { height: 5px; border-radius: 1px; background: var(--brand); transform-origin: left; animation: logobar 1.2s cubic-bezier(.2,.7,.2,1) both; }
.logo-mark span:nth-child(1) { width: 60%; }
.logo-mark span:nth-child(2) { width: 100%; background: var(--amber); animation-delay: .12s; }
.logo-mark span:nth-child(3) { width: 75%; margin-left: 25%; background: var(--crit); animation-delay: .24s; }
@keyframes logobar { from { transform: scaleX(.2); } to { transform: scaleX(1); } }
.logo-word { font-family: var(--f-display); font-weight: 800; font-stretch: 118%; font-size: 1.35rem; }
.logo-word b { color: var(--amber); font-weight: 800; }
.logo-text { display: grid; gap: 3px; line-height: 1; }
.logo-word { line-height: 1; }
.logo-tag { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.site-footer .logo-tag { color: #A9B7CF; }
@media (max-width: 640px) { .site-header .logo-tag { display: none; } }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0 0 0 auto; padding: 0; order: 2; }
.nav-links a { position: relative; white-space: nowrap; display: block; padding: 8px 12px; text-decoration: none; color: var(--ink); font-weight: 560; font-size: .95rem; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links .btn { margin-left: 10px; color: var(--brand-ink); padding: 10px 18px; }
.mode-switch { order: 3; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.mode-switch button { font: inherit; font-size: .8rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.mode-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.menu-toggle { display: none; }
@media (max-width: 1100px) {
  .nav { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 10px; }
  .mode-switch { order: 2; margin-left: auto; }
  .nav-links { order: 5; width: 100%; margin: 0 -4px; padding: 6px 0 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 8px 10px; }
  .nav-links .btn { margin-left: 6px; padding: 8px 14px; font-size: .88rem; }
}
@media (max-width: 520px) { .nav { gap: 8px; } .logo-word { font-size: 1.15rem; } .mode-switch button { padding: 4px 9px; font-size: .75rem; } }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 650; font-size: .98rem; text-decoration: none; border: 1.5px solid var(--brand); cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(16,32,64,.6); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-gold { background: var(--amber); border-color: var(--amber); color: #1A1406; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 820px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--surface); }
.band-night { background: var(--night); color: var(--on-night); }
.band-night .lede, .band-night .eyebrow { color: var(--on-night-soft); }

/* ---------- Reveal animations (content visible by default; JS opts in) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } html { scroll-behavior: auto; } }

/* ---------- Hero (always dark) ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding-block: clamp(56px, 7vw, 96px) clamp(64px, 8vw, 110px); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.1s ease; background: linear-gradient(105deg, rgba(10,23,48,.97) 0%, rgba(10,23,48,.88) 42%, rgba(10,23,48,.55) 100%), var(--hero-img) center/cover no-repeat, var(--night); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero .eyebrow { color: var(--on-night-soft); }
.hero h1 { color: #fff; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rotator span { grid-area: 1 / 1; color: var(--amber); opacity: 0; transform: translateY(100%); transition: opacity .5s, transform .5s; white-space: nowrap; }
.rotator span.on { opacity: 1; transform: none; }
.rotator span.out { opacity: 0; transform: translateY(-100%); }
.hero .lede { color: var(--on-night-soft); }
.hero .btn-primary { background: var(--amber); border-color: var(--amber); color: #1A1406; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--on-night-soft); list-style: none; padding: 0; margin: 0; }
.hero-points li::before { content: "✓"; color: var(--amber); margin-right: 8px; font-weight: 700; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* Interactive Gantt */
.gantt { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 20px; backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); color: var(--on-night); min-width: 0; }
.gantt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gantt-title { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-soft); }
.g-toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.g-toggle { font: inherit; font-size: .76rem; font-weight: 600; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--on-night); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.g-toggle[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1A1406; }
.g-grid { position: relative; display: grid; grid-template-columns: minmax(96px, 32%) 1fr; row-gap: 7px; font-size: .82rem; }
.g-label { padding-right: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; transition: color .3s; }
.g-label.crit.hl { color: #FF8A7E; font-weight: 600; }
.g-track { position: relative; height: 26px; border-left: 1px solid rgba(255,255,255,.14); background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100%/6.5 - 1px), rgba(255,255,255,.08) calc(100%/6.5 - 1px), rgba(255,255,255,.08) calc(100%/6.5)); }
.bar { position: absolute; border-radius: 2px; transition: width .35s ease, background .3s; }
.bar.plan { top: 3px; height: 7px; border: 1.5px solid rgba(255,255,255,.55); }
.bar.built { top: 12px; height: 11px; background: #7FA2E0; }
.bar.built.crit.hl { background: #FF6B5E; }
.window { position: absolute; top: 0; bottom: 0; background: rgba(255,107,94,.14); border-inline: 1px dashed rgba(255,107,94,.7); transition: opacity .3s; }
.datadate { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--amber); box-shadow: 0 0 10px var(--amber); transition: left .35s ease; z-index: 2; }
.g-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .3s; }
.g-links.hl { opacity: 1; }
.g-links path { fill: none; stroke: #FF6B5E; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-links path.tip { stroke-width: 1.6; }
.g-scale { position: relative; height: 18px; font-family: var(--f-mono); font-size: .68rem; color: var(--on-night-soft); }
.g-scale span { position: absolute; transform: translateX(-50%); }
.g-control { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; }
.g-control input[type=range] { width: 100%; accent-color: var(--amber); }
.g-play { font: inherit; font-weight: 700; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--amber); color: #1A1406; cursor: pointer; }
.g-dd { font-family: var(--f-mono); font-size: .78rem; color: var(--on-night-soft); white-space: nowrap; }
.g-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.g-foot small { display: block; font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--on-night-soft); }
.g-foot strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.35rem; font-variant-numeric: tabular-nums; color: #fff; }
.g-foot .delta { color: #FF8A7E; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding-block: 18px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 1.1rem; color: var(--ink-soft); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "◆"; color: var(--amber); font-size: .7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.counter { padding: 28px 24px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter strong { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.counter span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 800px) { .counters { grid-template-columns: 1fr 1fr; } .counter:nth-child(2) { border-right: 0; } .counter:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* Photo cards */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--brand-base), #2C5291 55%, var(--amber)); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .35s, box-shadow .35s; min-width: 0; }
.pcard .ph { aspect-ratio: 16 / 10; }
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pcard:hover .ph img { transform: scale(1.07); }
.pcard-body { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.pcard .tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pcard p { color: var(--ink-soft); }
.pcard .more { font-weight: 650; color: var(--brand); margin-top: 4px; }
.pcard .more::after { content: " →"; display: inline-block; transition: transform .3s; }
.pcard:hover .more::after { transform: translateX(5px); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; max-width: 560px; } }

/* Process stepper */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.stage { font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 18px; display: grid; gap: 6px; transition: border-color .3s, background .3s, transform .3s; position: relative; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--line); }
.stage::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--amber); transition: width .5s; }
.stage[aria-selected="true"] { border-color: var(--brand); background: var(--tint); }
.stage[aria-selected="true"]::after { width: 100%; }
.stage:hover { transform: translateY(-3px); }
.stage small { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.stage strong { font-family: var(--f-display); font-stretch: 106%; font-size: 1.05rem; }
.stage-panel { margin-top: 16px; padding: 22px 26px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.stage-panel p { color: var(--ink-soft); max-width: 75ch; }
@media (max-width: 900px) { .stepper { grid-template-columns: 1fr 1fr; } .stage-panel { grid-template-columns: 1fr; } }

/* Sector tiles */
.sectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; color: #fff; isolation: isolate; }
.sector .ph { position: absolute; inset: 0; z-index: -2; }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,23,48,0) 35%, rgba(10,23,48,.92) 100%); }
.sector-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 6px; transform: translateY(34px); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.sector-body p { font-size: .9rem; color: #D5DEEE; opacity: 0; transition: opacity .45s; }
.sector:hover .sector-body, .sector:focus-within .sector-body { transform: none; }
.sector:hover .sector-body p, .sector:focus-within .sector-body p { opacity: 1; }
.sector:hover .ph img { transform: scale(1.08); }
.sector h3 { color: #fff; }
@media (hover: none) { .sector-body { transform: none; } .sector-body p { opacity: 1; } }
@media (max-width: 900px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sectors { grid-template-columns: 1fr; } .sector { aspect-ratio: 16 / 10; } }

/* Split feature with photo */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature .ph { border-radius: 16px; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.feature-copy { display: grid; gap: 18px; min-width: 0; }
.feature.flip .ph { order: 2; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .feature.flip .ph { order: 0; } }
.mini-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-stats div { padding: 14px 18px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; }
.mini-stats strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.7rem; color: var(--brand); line-height: 1.1; }
.mini-stats span { font-size: .82rem; color: var(--ink-soft); }

/* CTA banner */
.cta { position: relative; overflow: hidden; border-radius: 20px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(120% 140% at 100% 0%, #2C5291 0%, var(--night) 60%); color: #fff; display: grid; grid-template-columns: 1.4fr auto; gap: 24px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -220px; border-radius: 50%; border: 60px solid rgba(201,162,39,.18); z-index: -1; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta h2 { color: #fff; }
.cta p { color: #C5D0E4; margin-top: 10px; max-width: 60ch; }
.cta .btn-primary { background: var(--amber); border-color: var(--amber); color: #1A1406; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; color: #fff; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); isolation: isolate; background: var(--night); }
.page-hero .bgimg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 20s ease-in-out infinite alternate; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,23,48,.95) 0%, rgba(10,23,48,.75) 55%, rgba(10,23,48,.45) 100%); }
@keyframes kenburns { to { transform: scale(1.16) translate(-2%, -1%); } }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lede { color: #C5D0E4; }
.page-hero .eyebrow { color: #A9B7CF; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.jump a { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; transition: background .25s, border-color .25s; }
.jump a:hover { background: var(--amber); border-color: var(--amber); color: #1A1406; }

/* Explorer (tabs + panel) */
.explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ex-tabs { display: grid; gap: 6px; position: sticky; top: 90px; }
.ex-tab { font: inherit; text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font-weight: 600; transition: background .25s, border-color .25s; }
.ex-tab svg { width: 22px; height: 22px; flex: none; stroke: var(--brand); }
.ex-tab:hover { background: var(--surface); }
.ex-tab[aria-selected="true"] { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.ex-tab[aria-selected="true"] svg { stroke: var(--amber); }
.ex-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; animation: panelin .5s cubic-bezier(.2,.7,.2,1); }
@keyframes panelin { from { opacity: .3; transform: translateY(10px); } }
.ex-panel .ph { min-height: 260px; }
.ex-body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.ex-body p { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .8rem; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; }
a.chip:hover { border-color: var(--brand); }
@media (max-width: 1000px) { .explorer { grid-template-columns: 1fr; } .ex-tabs { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; } .ex-panel { grid-template-columns: 1fr; } .ex-panel .ph { aspect-ratio: 16/9; min-height: 0; } }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 5px; background: var(--amber); border-radius: 1px; }

/* Engagement cards */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eng { padding: 22px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: grid; gap: 8px; transition: transform .3s, border-color .3s; }
.eng:hover { transform: translateY(-4px); border-color: var(--amber); }
.eng p { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 900px) { .eng-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .eng-grid { grid-template-columns: 1fr; } }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tier { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 14px; align-content: start; transition: transform .35s, box-shadow .35s; min-width: 0; }
.tier:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.tier.feature-tier { border: 2px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, linear-gradient(135deg, var(--brand), var(--amber)) border-box; }
.flag { justify-self: start; font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; background: var(--amber); color: #1A1406; padding: 4px 9px; border-radius: 4px; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-family: var(--f-display); font-stretch: 112%; font-size: 2.8rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-soft); font-size: .9rem; }
.spec { font-size: .92rem; color: var(--ink-soft); }
.tier .btn { margin-top: 6px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 540px; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 500; background: var(--surface); }
td.r, th.r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { font-size: .86rem; color: var(--ink-soft); margin-top: 14px; }

/* Plan calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.calc-in { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }
.calc-out { padding: clamp(22px, 3vw, 36px); background: var(--night); color: #fff; display: grid; gap: 16px; align-content: center; }
.calc-out .total { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--amber); }
.calc-out small { color: #A9B7CF; }
.calc-lines { display: grid; gap: 6px; font-size: .92rem; color: #D5DEEE; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(255,255,255,.15); padding-bottom: 6px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > span.lbl { font-size: .86rem; font-weight: 650; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: inherit; font-size: .86rem; font-weight: 600; padding: 8px 12px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; accent-color: var(--brand); }
.range-row output { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Courses */
.course-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.course-tab { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .25s; }
.course-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.course-panel { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); animation: panelin .5s cubic-bezier(.2,.7,.2,1); }
.course-panel .ph { min-height: 320px; }
.course-body { padding: clamp(22px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.course-body p { color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { padding: 12px 14px; border-right: 1px solid var(--line); display: grid; gap: 2px; }
.facts div:last-child { border-right: 0; }
.facts strong { font-family: var(--f-display); font-stretch: 110%; font-size: 1.4rem; color: var(--brand); line-height: 1.1; }
.facts span { font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 900px) { .course-panel { grid-template-columns: 1fr; } .course-panel .ph { min-height: 0; aspect-ratio: 16/9; } }

/* P6 outline accordion */
.p6-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.p6-switch button { font: inherit; font-weight: 700; padding: 9px 18px; border-radius: 999px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.p6-switch button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.weeks { display: grid; gap: 10px; }
.week { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.week summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; }
.week summary::-webkit-details-marker { display: none; }
.week summary::after { content: "+"; font-size: 1.4rem; color: var(--brand); transition: transform .3s; }
.week[open] summary::after { transform: rotate(45deg); }
.week-no { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.week summary strong { font-family: var(--f-display); font-stretch: 105%; font-size: 1.08rem; }
.week-body { padding: 0 20px 18px 124px; display: grid; gap: 10px; }
.week .lab { font-size: .9rem; color: var(--ink-soft); }
.week .lab b { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-right: 6px; }
@media (max-width: 640px) { .week summary { grid-template-columns: 1fr auto; } .week-no { grid-column: 1 / -1; } .week-body { padding-left: 20px; } }

/* Quiz */
.quiz { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; box-shadow: var(--shadow); }
.quiz-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz-tab { font: inherit; font-size: .9rem; font-weight: 650; padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.quiz-tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.quiz-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.quiz-progress { flex: 1 1 200px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.quiz-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--amber)); transition: width .4s ease; }
.quiz-meta { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }
.quiz-domain { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.quiz-q { font-size: 1.15rem; font-weight: 650; max-width: 72ch; }
.options { display: grid; gap: 10px; }
.opt { text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 16px; cursor: pointer; display: flex; gap: 12px; align-items: baseline; transition: border-color .2s, transform .2s; }
.opt:hover:not(:disabled) { border-color: var(--brand); transform: translateX(4px); }
.opt b { font-family: var(--f-mono); font-weight: 500; color: var(--ink-soft); }
.opt.right { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--paper)); animation: pop .35s; }
.opt.wrong { border-color: var(--crit); background: color-mix(in srgb, var(--crit) 12%, var(--paper)); animation: shake .35s; }
.opt:disabled { cursor: default; }
@keyframes pop { 50% { transform: scale(1.02); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.explain { border-left: 3px solid var(--amber); padding: 6px 0 6px 14px; color: var(--ink-soft); }
.explain strong { color: var(--ink); }
.quiz-result { display: grid; gap: 14px; justify-items: start; }
.score-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--amber) calc(var(--p) * 1%), var(--line) 0); transition: --p 1s; }
.score-ring span { width: 112px; height: 112px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; }

/* Mock packs reuse tiers */

/* Blog */
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.blog-filter button, .tip-filter button { font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.blog-filter button[aria-pressed="true"], .tip-filter button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.blog-section { padding-top: 40px; scroll-margin-top: 90px; }
.blog-section-head { display: grid; gap: 6px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.blog-section-head p { color: var(--ink-soft); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-soft); }
.post-meta .cat { color: var(--brand); text-transform: uppercase; letter-spacing: .07em; }

/* Tips library */
.tip-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tip-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tip-search { font: inherit; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); min-width: min(280px, 100%); }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.tip { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 18px 20px; display: grid; gap: 8px; align-content: start; cursor: pointer; transition: transform .3s, border-color .3s, box-shadow .3s; text-align: left; font: inherit; color: var(--ink); }
.tip:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow); }
.tip .tip-cat { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); display: flex; justify-content: space-between; }
.tip strong { font-family: var(--f-display); font-stretch: 105%; font-size: 1.05rem; line-height: 1.25; }
.tip p { color: var(--ink-soft); font-size: .92rem; display: none; }
.tip[aria-expanded="true"] p { display: block; animation: panelin .4s; }
.tip[aria-expanded="true"] { border-color: var(--brand); }
.tip-count { font-family: var(--f-mono); font-size: .8rem; color: var(--ink-soft); }

/* Article */
.crumb { font-size: .88rem; color: #C5D0E4; }
.crumb a { color: #C5D0E4; }
.post-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 96px; display: grid; gap: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-soft); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--brand); font-weight: 600; }
.read-bar { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--brand), var(--amber)); z-index: 60; }
.post-body { max-width: 74ch; display: grid; gap: 16px; min-width: 0; }
.post-body h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 20px; scroll-margin-top: 90px; }
.post-lede { font-size: 1.15rem; color: var(--ink-soft); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-row span { font-family: var(--f-mono); font-size: .74rem; padding: 3px 9px; border-radius: 4px; background: var(--tint); color: var(--ink); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pros-cons > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; min-width: 0; }
.pros-cons h4 { margin: 0 0 10px; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 500; }
.pros-cons .ticks { font-size: .93rem; gap: 6px; }
.post-cta { margin-top: 24px; padding: 24px; border-radius: 12px; background: var(--tint); border: 1px solid var(--line); display: grid; gap: 10px; }
.post-cta .btn { justify-self: start; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } .toc { position: static; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); } }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.ccard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ccard svg { width: 24px; height: 24px; stroke: var(--amber); flex: none; margin-top: 2px; }
.ccard small { display: block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.ccard strong { font-weight: 650; }
form.quote { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px; width: 100%; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: 8px; background: var(--amber-soft); color: var(--ink); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--night); color: #A9B7CF; padding-block: 56px 32px; font-size: .9rem; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.foot-grid h4 { margin: 0 0 12px; font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-grid a { color: #A9B7CF; text-decoration: none; }
.foot-grid a:hover { color: var(--amber); }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--amber); color: #1A1406; font-size: 1.2rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .3s, transform .3s; z-index: 50; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Hero tabs (home) ---------- */
.hero-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 4vw, 40px); }
.hero-tab { position: relative; overflow: hidden; font: inherit; font-weight: 650; font-size: .95rem; color: var(--on-night); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); padding: 10px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .3s, border-color .3s; }
.hero-tab small { font-family: var(--f-mono); font-size: .7rem; color: var(--on-night-soft); }
.hero-tab[aria-selected="true"] { background: rgba(201,162,39,.16); border-color: var(--amber); }
.hero-tab[aria-selected="true"] small { color: var(--amber); }
.hero-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--amber); }
.hero-tab.running::after { animation: tabfill var(--dur, 9s) linear forwards; }
@keyframes tabfill { to { width: 100%; } }
.hero-bg.on { opacity: 1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--night)); pointer-events: none; }
.hero-stack { display: grid; animation: heroin .8s cubic-bezier(.2,.7,.2,1); }
.hero-stack > .hero-panel { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.hero-stack > .hero-panel:not(.on) { opacity: 0; transform: translateY(14px); visibility: hidden; pointer-events: none; }
.hero-stack > .hero-panel.on { opacity: 1; transform: none; visibility: visible; transition: opacity .6s ease .25s, transform .6s cubic-bezier(.2,.7,.2,1) .25s, visibility 0s; }
@keyframes heroin { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-stack > .hero-panel { transition: none; } .hero-stack { animation: none; } }

/* ---------- Glass widgets on dark heroes ---------- */
.glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 20px; backdrop-filter: blur(10px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); color: var(--on-night); min-width: 0; display: grid; gap: 14px; }
.glass-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.glass-title { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-soft); }
.mq-sets, .glass .seg { display: flex; flex-wrap: wrap; gap: 6px; }
.mq-sets button, .glass .seg button { font: inherit; font-size: .78rem; font-weight: 650; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--on-night); padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.mq-sets button[aria-pressed="true"], .glass .seg button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #1A1406; }
.mq-q { font-size: 1.08rem; font-weight: 600; color: #fff; min-height: 3.2em; }
.mq-dom { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.mq-opts { display: grid; gap: 8px; }
.mq-opt { font: inherit; text-align: left; color: var(--on-night); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 14px; cursor: pointer; display: flex; gap: 10px; transition: border-color .2s, transform .2s, background .2s; }
.mq-opt b { font-family: var(--f-mono); font-weight: 500; color: var(--on-night-soft); }
.mq-opt:hover:not(:disabled) { border-color: var(--amber); transform: translateX(4px); }
.mq-opt.right { border-color: #5CC78A; background: rgba(92,199,138,.16); animation: pop .35s; }
.mq-opt.wrong { border-color: #FF6B5E; background: rgba(255,107,94,.14); animation: shake .35s; }
.mq-opt:disabled { cursor: default; }
.mq-x { font-size: .9rem; color: var(--on-night-soft); border-left: 3px solid var(--amber); padding-left: 12px; }
.mq-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.mq-score { font-family: var(--f-display); font-stretch: 110%; font-size: 1.3rem; color: #fff; }
.mq-score small { display: block; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--on-night-soft); }
.mq-next { font: inherit; font-weight: 700; border: 0; background: var(--amber); color: #1A1406; padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.glass .range-row output { color: #fff; }
.glass .range-row input { accent-color: var(--amber); }
.glass .lbl { font-size: .82rem; font-weight: 650; color: var(--on-night-soft); }
.glass-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.glass-total .total { font-family: var(--f-display); font-stretch: 112%; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.glass-total small { display: block; color: var(--on-night-soft); font-size: .82rem; }
.glass .calc-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: .85rem; color: #D5DEEE; }
.glass .calc-lines div { display: grid; gap: 2px; border: 0; padding: 0; }
.glass .calc-lines span:first-child { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; color: var(--on-night-soft); }
.glass .calc-lines span:last-child { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- Home: separate practice blocks ---------- */
.practice-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 36px); }
.practice-head .section-head { margin: 0; }
.practice-num { font-family: var(--f-display); font-stretch: 120%; font-weight: 800; font-size: clamp(3rem, 7vw, 5.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--line); }
.svc-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.svc-chip { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 650; transition: transform .3s, border-color .3s, box-shadow .3s; }
.svc-chip svg { width: 26px; height: 26px; stroke: var(--brand); flex: none; transition: stroke .3s; }
.svc-chip:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow); }
.svc-chip:hover svg { stroke: var(--amber); }
@media (max-width: 900px) { .svc-chips { grid-template-columns: 1fr 1fr; } }
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards4 .pcard .ph { aspect-ratio: 4 / 3; }
@media (max-width: 1000px) { .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards4 { grid-template-columns: 1fr; } }

/* Section heading with a photo beside it */
.split-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.split-head .section-head { margin-bottom: 0; }
.split-head .ph { border-radius: 16px; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
@media (max-width: 820px) { .split-head { grid-template-columns: 1fr; } }
