/* ==========================================================================
   S&W Outbound Sales – Website
   Static HTML/CSS/JS, system fonts, no external resources.
   Motion states that hide content only apply when <html class="js"> is set.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
    --black: #05060A;
    --g1: #0D0F14;
    --g2: #15181F;
    --g3: #1E222B;
    --white: #FFFFFF;
    --white-2: #F5F7FA;
    --text: #9AA3B2;
    --blue-1: #0A1F4D;
    --blue-2: #0F2A66;
    --blue-3: #2A56C6;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 1s;
    --radius: 22px;
    --max: 1280px;
    --gutter: 16px;
    --font: system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --bg: var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 400 17px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color 1.2s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; color: var(--white); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; }
::selection { background: var(--blue-3); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-3); outline-offset: 4px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--black);
    font-weight: 600; text-decoration: none; transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Subtle grain and light cones ------------------------------------------- */
.grain {
    position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.cones { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cone {
    position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(15, 42, 102, .75), rgba(10, 31, 77, .25) 55%, transparent 72%);
    filter: blur(40px); opacity: .9;
}
.cone-a { top: -30vmax; left: -18vmax; animation: drift-a 26s var(--ease) infinite alternate; }
.cone-b { top: -10vmax; right: -30vmax; animation: drift-b 32s var(--ease) infinite alternate; opacity: .6; }
.cone-c { bottom: -45vmax; left: 20vmax; animation: drift-a 38s var(--ease) infinite alternate-reverse; opacity: .45; }
@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-10vmax, 8vmax, 0) scale(.94); } }

/* Layout ------------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section-tight { padding: clamp(72px, 9vw, 120px) 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--blue-3); }
.h-xl { font-size: clamp(48px, 9vw, 132px); line-height: .98; letter-spacing: -0.05em; }
.h-l { font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.045em; }
.h-m { font-size: clamp(30px, 4vw, 54px); }
.h-s { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; color: var(--text); max-width: 46ch; }
.muted { color: var(--text); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Scroll progress --------------------------------------------------------- */
.progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
    background: linear-gradient(90deg, var(--blue-2), var(--blue-3));
    transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
    box-shadow: 0 0 12px rgba(42, 86, 198, .8);
}

/* Header ------------------------------------------------------------------ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 110;
    transition: transform .6s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s;
    border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 6, 10, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand svg { height: 30px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav a {
    position: relative; display: inline-block; padding: 9px 14px; border-radius: 999px;
    color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .3s, background-color .3s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav a.pill { margin-left: 8px; border: 1px solid var(--line-2); color: var(--white-2); }
.nav a.pill:hover { border-color: var(--blue-3); box-shadow: 0 0 0 4px rgba(42, 86, 198, .15); }
@media (min-width: 1024px) { .nav { display: block; } .burger { display: none; } }

.burger {
    position: relative; z-index: 130; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--white); cursor: pointer;
}
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 125; display: flex; flex-direction: column; justify-content: center;
    padding: 96px var(--gutter) 48px; background: rgba(5, 6, 10, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    visibility: hidden; opacity: 0; transition: opacity .5s var(--ease), visibility 0s .5s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity .5s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { overflow: hidden; border-bottom: 1px solid var(--line); }
.mobile-menu a {
    display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
    color: var(--white); text-decoration: none; font-size: clamp(30px, 8vw, 44px); font-weight: 600; letter-spacing: -0.03em;
    transform: translateY(110%); transition: transform .8s var(--ease);
}
.mobile-menu a[aria-current="page"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-3); box-shadow: 0 0 14px var(--blue-3); }
.mobile-menu.is-open a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .25s; }
body.menu-open { overflow: hidden; }

/* Buttons ----------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.center .btn-row { justify-content: center; }
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
    font: 600 16px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
    transition: transform .6s var(--ease), box-shadow .6s var(--ease), background-color .4s, border-color .4s, color .4s;
    will-change: transform;
}
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(42, 86, 198, .9), 0 0 0 6px rgba(42, 86, 198, .18); }
.btn-ghost { border-color: var(--line-2); color: var(--white); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: rgba(42, 86, 198, .9); box-shadow: 0 0 30px -6px rgba(42, 86, 198, .7); }
.btn .arrow { transition: transform .6s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 120px; overflow: hidden; }
.hero-inner { position: relative; transform: scale(calc(1 - var(--p, 0) * .08)) translateY(calc(var(--p, 0) * -60px)); opacity: calc(1 - var(--p, 0) * 1.1); transform-origin: 50% 30%; }
.hero .lead { margin-top: 28px; max-width: 52ch; }
.hero-sub { font-size: clamp(40px, 6.5vw, 96px); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.js .line > span { transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .is-loaded .line > span { transform: none; }
.js .is-loaded .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-loaded .line:nth-child(3) > span { transition-delay: .24s; }
.js .hero .fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease) .45s, transform 1s var(--ease) .45s; }
.js .hero.is-loaded .fade-up { opacity: 1; transform: none; }
.scroll-hint {
    position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
    opacity: calc(1 - var(--p, 0) * 4);
}
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--white); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { to { top: 110%; } }
.page-hero { min-height: 78svh; }

/* Statement text scrub ---------------------------------------------------- */
.statement { font-size: clamp(34px, 5.6vw, 80px); font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; color: var(--white); max-width: 18ch; }
.js .statement .w { color: rgba(255, 255, 255, .14); transition: color .4s linear; }
.js .statement .w.is-lit { color: var(--white); }

/* Glass cards ------------------------------------------------------------- */
.card {
    position: relative; isolation: isolate; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(30, 34, 43, .75), rgba(13, 15, 20, .9));
    padding: clamp(26px, 3vw, 40px);
    transform-style: preserve-3d;
    transition: border-color .5s var(--ease), transform .8s var(--ease);
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(42, 86, 198, .22), transparent 60%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card .num { display: block; margin-bottom: 36px; font-size: 13px; letter-spacing: .14em; color: var(--blue-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--white-2); }

/* Reveal ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(32px); clip-path: inset(12% 0 0 0 round var(--radius)); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--radius)); }
.js .reveal-text { opacity: 0; transform: translateY(24px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-text.is-in { opacity: 1; transform: none; }

/* Pinned services scene --------------------------------------------------- */
.pin-scene { position: relative; height: 400svh; }
.pin-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pin-layout { display: grid; grid-template-columns: 1fr; gap: 48px; width: 100%; align-items: center; }
@media (min-width: 1024px) { .pin-layout { grid-template-columns: 5fr 7fr; gap: 64px; } }
.pin-stage { position: relative; height: min(460px, 60svh); }
.pin-card {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
    --l: 0; /* local progress of this card: -1 … 0 … 1 */
    transform: translateY(calc(var(--l) * 18%)) scale(calc(1 - (var(--l) * var(--l)) * .14));
    opacity: calc(1 - (var(--l) * var(--l)) * 1.6);
    filter: blur(calc(var(--l) * var(--l) * 14px));
    will-change: transform, opacity, filter;
}
.pin-card h3 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 16px; }
.pin-card p { font-size: clamp(17px, 1.4vw, 20px); max-width: 40ch; }
.pin-index { display: flex; gap: 18px; margin-top: 40px; }
.pin-index li { list-style: none; font-size: 14px; font-weight: 600; letter-spacing: .1em; color: rgba(255, 255, 255, .25); transition: color .5s var(--ease); }
.pin-index li.is-active { color: var(--white); }
.pin-index { padding: 0; }
.pin-bar { position: relative; width: 2px; height: 160px; margin-top: 40px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.pin-bar span { position: absolute; inset: 0; background: var(--blue-3); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px var(--blue-3); }
.pin-glow { position: absolute; width: 60vmax; height: 60vmax; right: -20vmax; top: 50%; translate: 0 -50%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(15, 42, 102, .55), transparent 70%); filter: blur(30px); transform: rotate(calc(var(--p, 0) * 90deg)) scale(calc(.9 + var(--p, 0) * .3)); }

/* Marquee ----------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 44px 0; border-block: 1px solid var(--line); 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: 0; transform: translate3d(var(--x, 0px), 0, 0); }
.marquee-track span { display: inline-flex; align-items: center; gap: 48px; padding-right: 48px; font-size: clamp(34px, 5vw, 72px); font-weight: 650; letter-spacing: -0.04em; color: var(--white-2); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-3); box-shadow: 0 0 16px var(--blue-3); }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--g1); padding: clamp(32px, 4vw, 56px); }
.stat-num { display: flex; align-items: baseline; gap: 4px; color: var(--white); font-size: clamp(64px, 8vw, 120px); font-weight: 650; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .42em; letter-spacing: -0.03em; color: var(--blue-3); }
.stat p { margin: 18px 0 0; font-size: 17px; }

/* Steps ------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step .num { margin-bottom: 64px; }
.step h3 { font-size: 24px; letter-spacing: -0.02em; }

/* Blue band (recruiting teaser) ------------------------------------------- */
.band {
    position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
    padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 96px);
    background: radial-gradient(120% 140% at 0% 0%, var(--blue-2), var(--blue-1) 55%, #071433);
    border: 1px solid rgba(42, 86, 198, .35);
}
.band::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; border-radius: 50%; background: radial-gradient(closest-side, rgba(42, 86, 198, .45), transparent 70%); filter: blur(20px); pointer-events: none; }
.band > * { position: relative; z-index: 1; }
.band .lead { color: #C9D3E6; }

/* Two column / roles / profiles ------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: 64px; } }
.cards-2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.cards-3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.cards-4 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 768px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
.role h3 { font-size: clamp(26px, 2.8vw, 36px); }
.role dl { margin: 28px 0 0; display: grid; gap: 18px; }
.role dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-3); font-weight: 600; margin-bottom: 4px; }
.role dd { margin: 0; color: var(--white-2); }
.role .btn { margin-top: 32px; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check li { position: relative; padding-left: 32px; color: var(--white-2); }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--blue-3); background: radial-gradient(circle, var(--blue-3) 30%, transparent 34%); }
.profile { display: grid; grid-template-columns: 1fr; gap: 28px; }
.monogram {
    position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) - 6px); overflow: hidden;
    display: grid; place-items: center; border: 1px solid var(--line);
    background: radial-gradient(120% 100% at 30% 0%, var(--blue-2), var(--g1) 70%);
}
.monogram span { font-size: clamp(72px, 9vw, 120px); font-weight: 650; letter-spacing: -0.06em; color: rgba(255, 255, 255, .9); }
.monogram img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile h3 { font-size: clamp(28px, 3vw, 40px); }
.profile .role-title { display: block; margin: 8px 0 18px; color: var(--blue-3); font-weight: 600; font-size: 15px; letter-spacing: .04em; }

/* Horizontal timeline ----------------------------------------------------- */
.h-scene { position: relative; height: 300svh; }
.h-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.h-track { display: flex; gap: 24px; padding: 0 var(--gutter); width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.h-item { width: min(78vw, 520px); flex: none; }
.h-item .year { display: block; margin-bottom: 72px; font-size: clamp(44px, 5vw, 72px); font-weight: 650; letter-spacing: -0.05em; color: var(--white); }
.h-line { position: relative; height: 1px; margin: 48px var(--gutter) 0; background: var(--line-2); }
.h-line span { position: absolute; inset: 0; background: var(--blue-3); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--blue-3); }

/* Values ------------------------------------------------------------------ */
.value h3 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }

/* FAQ --------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; cursor: pointer; color: var(--white); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 400; transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding-bottom: 28px; margin: 0; }

/* Process (recruiting) ---------------------------------------------------- */
.flow { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, 1fr); } }

/* Legal pages ------------------------------------------------------------- */
.legal { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 1024px) { .legal { grid-template-columns: 3fr 9fr; gap: 72px; } }
.toc { align-self: start; }
/* Sticky only beside the text; stacked on small screens it would cover the content while scrolling. */
@media (min-width: 1024px) { .toc { position: sticky; top: 110px; } }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: toc; }
.toc a { display: block; padding: 8px 0; color: var(--text); text-decoration: none; font-size: 15px; border-left: 1px solid var(--line-2); padding-left: 16px; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--white); border-color: var(--blue-3); }
.prose { max-width: 72ch; color: #B4BCC9; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.025em; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; letter-spacing: -0.01em; margin: 28px 0 8px; }
.prose a { color: var(--white); text-decoration-color: var(--blue-3); text-underline-offset: 3px; }
.prose address { font-style: normal; }
.notice { border: 1px dashed rgba(42, 86, 198, .7); border-radius: var(--radius); padding: 28px; background: rgba(10, 31, 77, .35); color: var(--white-2); }

/* Spacing utilities (no inline styles) ----------------------------------- */
[data-space="t24"] { margin-top: 24px; }
[data-space="t32"] { margin-top: 32px; }
[data-space="t56"] { margin-top: clamp(40px, 5vw, 56px); }
[data-space="b48"] { margin-bottom: 48px; }

/* Footer ------------------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 48px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 8px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* Mobile: no pinning, stacked reveals ------------------------------------- */
@media (max-width: 768px) {
    .pin-scene, .h-scene { height: auto; }
    .pin-sticky, .h-sticky { position: relative; height: auto; padding: 96px 0; overflow: visible; }
    .pin-stage { height: auto; display: grid; gap: 16px; }
    .pin-card { position: relative; inset: auto; transform: none !important; opacity: 1 !important; filter: none !important; min-height: 260px; }
    .pin-index, .pin-bar, .pin-glow { display: none; }
    .h-track { width: auto; flex-direction: column; transform: none !important; padding: 0 var(--gutter); }
    .h-item { width: 100%; }
    .h-item .year { margin-bottom: 32px; }
    .h-line { display: none; }
}

/* Reduced motion: everything static and visible --------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .line > span, .js .hero .fade-up, .js .reveal, .js .reveal-text { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .js .statement .w { color: var(--white) !important; }
    .hero-inner, .scroll-hint { transform: none !important; opacity: 1 !important; }
    .pin-scene, .h-scene { height: auto; }
    .pin-sticky, .h-sticky { position: relative; height: auto; padding: 96px 0; }
    .pin-stage { height: auto; display: grid; gap: 16px; }
    .pin-card { position: relative; transform: none !important; opacity: 1 !important; filter: none !important; }
    .h-track { width: auto; flex-wrap: wrap; transform: none !important; }
    .pin-index, .pin-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ==========================================================================
   Energiemarkt (markets.js): ticker band under the hero + market card
   Uses the existing palette, card, reveal and easing; no new colours.
   ========================================================================== */
.mk-band {
    position: relative; z-index: 2; display: flex; align-items: center; gap: 18px;
    height: 64px; padding: 0 var(--gutter);
    background: linear-gradient(180deg, rgba(21, 24, 31, .92), rgba(13, 15, 20, .92));
    border-block: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.mk-band-head { flex: none; display: flex; align-items: center; gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); }
.mk-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-3); box-shadow: 0 0 10px var(--blue-3); }
.mk-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--blue-3); opacity: 0; animation: mk-pulse 3.2s var(--ease) infinite; }
@keyframes mk-pulse { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.mk-band-title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--white-2); white-space: nowrap; }
.mk-band .mk-badge { margin-left: 2px; }
.mk-viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mk-track { display: flex; width: max-content; transform: translate3d(var(--mx, 0px), 0, 0); will-change: transform; }
.mk-run { display: flex; align-items: center; }
.mk-item { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 28px; white-space: nowrap; border-right: 1px solid var(--line); }
.mk-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.mk-value { color: var(--white); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mk-change { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.mk-change.mk-up { color: #8FA9EA; }
.mk-toggle {
    flex: none; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
    background: transparent; color: var(--white-2); font: 600 12px/1 var(--font); letter-spacing: .06em; cursor: pointer;
    transition: border-color .4s var(--ease);
}
.mk-toggle:hover { border-color: var(--blue-3); }
.mk-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; border: 1px dashed rgba(42, 86, 198, .8); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white-2); }
.mk-band.is-static .mk-track { transform: none; width: auto; flex-wrap: nowrap; }
.mk-band.is-static .mk-run[aria-hidden="true"] { display: none; }
.mk-band.is-static .mk-viewport { overflow-x: auto; scrollbar-width: none; }

/* Market section */
.mk-section .split { align-items: center; }
.mk-note { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 52ch; }
.mk-note a { color: var(--white-2); text-underline-offset: 3px; text-decoration-color: var(--blue-3); }
.mk-card { padding: clamp(24px, 3vw, 40px); }
.mk-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mk-big { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 10px; color: var(--white); font-size: clamp(54px, 7vw, 96px); font-weight: 650; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.mk-big small { font-size: .26em; letter-spacing: 0; color: var(--text); font-weight: 500; }
.mk-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.mk-stand { font-size: 14px; color: var(--text); }
.mk-chart { position: relative; margin-top: 28px; aspect-ratio: 640 / 220; outline-offset: 6px; border-radius: 10px; cursor: crosshair; touch-action: pan-y; }
.mk-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mk-base { stroke: var(--line-2); stroke-width: 1; }
.mk-line { fill: none; stroke: #8FA9EA; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(42, 86, 198, .7)); }
.mk-area { fill: url(#mkFill); }
.mk-dot { fill: var(--white); stroke: var(--blue-3); stroke-width: 2; }
.mk-mark, .mk-axis { font: 600 14px var(--font); fill: var(--text); letter-spacing: .02em; }
.mk-mark { fill: var(--white-2); }
.mk-cursor { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .3s; }
.mk-cursor-dot { fill: var(--white); stroke: var(--blue-3); stroke-width: 2; opacity: 0; transition: opacity .3s; }
.mk-chart.is-active .mk-cursor, .mk-chart.is-active .mk-cursor-dot { opacity: 1; }
.mk-tip {
    position: absolute; top: -14px; left: var(--tx, 50%); transform: translate(-50%, -100%);
    padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(13, 15, 20, .92);
    color: var(--white); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
    pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
}
.mk-chart.is-active .mk-tip { opacity: 1; }
.mk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mk-stats div { background: rgba(13, 15, 20, .7); padding: 14px 16px; }
.mk-stats dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.mk-stats dd { margin: 4px 0 0; color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.mk-unavailable, .mk-fallback { margin: 0; color: var(--white-2); }

/* Drawing the line: only when JS is on and motion allowed */
.js .mk-card.is-ready .mk-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.js .mk-card.is-ready .mk-area, .js .mk-card.is-ready .mk-labels { opacity: 0; transition: opacity 1.2s var(--ease) 1s; }
.js .mk-card.is-drawn .mk-line { stroke-dashoffset: 0; }
.js .mk-card.is-drawn .mk-area, .js .mk-card.is-drawn .mk-labels { opacity: 1; }

@media (max-width: 768px) {
    .mk-band { height: 56px; gap: 12px; }
    .mk-band-head { padding-right: 12px; }
    .mk-band-title { font-size: 11px; letter-spacing: .1em; }
    .mk-toggle { display: none; }
    .mk-item { padding: 0 18px; }
    .mk-stats { grid-template-columns: 1fr; }
    .mk-mark, .mk-axis { font-size: 22px; }
}
@media (max-width: 480px) { .mk-band-title .mk-hide-xs { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .mk-pulse::after { display: none; }
    .mk-track { transform: none !important; }
    .js .mk-card.is-ready .mk-line { stroke-dasharray: none; stroke-dashoffset: 0; }
    .js .mk-card.is-ready .mk-area, .js .mk-card.is-ready .mk-labels { opacity: 1; }
}

/* Datenschutzerklärung: Abschnittsnummern, Adressboxen, Hinweise (im Stil der Rechtsseiten) */
.prose h2 { display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 110px; }
.legal-num { flex: none; font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--blue-3); }
.prose h3 { color: var(--white); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--blue-3); }
.prose strong { color: var(--white); font-weight: 600; }
.legal-box { margin: 16px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(30, 34, 43, .55), rgba(13, 15, 20, .8)); line-height: 1.75; }
.legal-callout { margin: 22px 0; padding: 18px 22px; border-left: 2px solid var(--blue-3); border-radius: 0 14px 14px 0; background: rgba(42, 86, 198, .1); }
.legal-callout p { margin: 0; }
.legal-stand { margin-top: 18px; font-size: 14px; color: var(--text); }
@media print {
    body { background: #fff; color: #111; }
    .header, .progress, .grain, .cones, .toc, .footer, .skip-link { display: none !important; }
    .prose, .prose strong, .prose h2, .prose h3, h1 { color: #000; }
}
