/* Battery Solutions, s.r.o.: www.batterysolutions.cz
   One stylesheet, no frameworks. Self-hosted fonts (SIL Open Font License): Geist, Geist Mono, Instrument Serif.
   The CSP forbids inline styles, so every visual rule lives here, the hero drawing's animation included. */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-var-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-var-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/assets/fonts/instrument-serif-italic-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("/assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #0A0E13;
  --ink-2: #10161E;
  --ink-3: #18212C;
  --ink-line: rgba(255, 255, 255, .10);
  --ink-line-2: rgba(255, 255, 255, .18);
  --paper: #F3F4EF;
  --paper-2: #E8EAE3;
  --paper-line: rgba(10, 14, 19, .12);
  --white: #FFFFFF;
  --text: #0A0E13;
  --muted: #4F5964;
  --muted-on-ink: #A3AEBB;
  --soft-on-ink: #D7DDE4;
  --volt: #C6F432;
  --volt-2: #B2E01C;
  --volt-deep: #3B4F00;
  --steel: #8EA0B4;
  --amber: #FFB547;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.62 var(--sans);
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
em.s, .s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }
.light :focus-visible, .section:not(.dark) :focus-visible { outline-color: var(--ink); }
::selection { background: var(--volt); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--volt); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Mono labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 500 .75rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.4rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); box-shadow: 0 0 0 3px rgba(198, 244, 50, .18); }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--muted-on-ink); }
.num { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { --b: var(--volt); display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.25em; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--ink); font: 600 .95rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease); cursor: pointer; }
.btn:hover { background: #D6FF52; box-shadow: 0 10px 30px -10px rgba(198, 244, 50, .55); transform: translateY(-1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: inherit; border-color: var(--ink-line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.btn-ink { --b: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); box-shadow: 0 10px 30px -12px rgba(10, 14, 19, .5); }
.btn-line { background: transparent; border-color: var(--paper-line); color: var(--text); }
.btn-line:hover { background: var(--white); box-shadow: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 14, 19, .78); color: var(--white);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--ink-line); }
.nav { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.mark { width: 38px; height: 38px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-weight: 650; font-size: 1.1rem; letter-spacing: -.03em; }
.wordmark small { font: 500 .62rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-on-ink); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--soft-on-ink); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.nav-links .m-extra { display: none; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--ink-line-2); border-radius: 999px; font: 500 .72rem/1 var(--mono); letter-spacing: .08em; }
.lang a, .lang span { padding: 6px 8px; border-radius: 999px; text-decoration: none; }
.lang span { background: rgba(255, 255, 255, .12); color: var(--white); }
.lang a { color: var(--muted-on-ink); }
.lang a:hover { color: var(--white); }
.nav .btn { padding: .7em 1.05em; font-size: .9rem; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--ink-line-2); border-radius: 12px; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(1200px 520px at 78% 108%, rgba(198, 244, 50, .10), transparent 60%),
  radial-gradient(900px 500px at 8% -10%, rgba(91, 140, 255, .10), transparent 60%); }
.hero-inner { padding-top: clamp(56px, 9vw, 120px); padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero h1 { font-size: clamp(2.55rem, 1.35rem + 4.6vw, 5.6rem); letter-spacing: -.045em; line-height: .98; font-weight: 600; }
.hero h1 .s { color: var(--volt); letter-spacing: -.02em; font-size: 1.04em; }
.hero .lead { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--soft-on-ink); max-width: 38ch; margin: 0 0 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.specs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(40px, 6vw, 72px) 0 0; border-top: 1px solid var(--ink-line); }
.specs li { padding: 18px 18px 18px 0; border-right: 1px solid var(--ink-line); }
.specs li + li { padding-left: 18px; }
.specs li:last-child { border-right: 0; }
.specs b { display: block; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -.03em; color: var(--white); }
.specs span { display: block; margin-top: 4px; font: 500 .7rem/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-ink); }
.scene-wrap { position: relative; margin-top: clamp(18px, 3vw, 36px); border-top: 1px solid var(--ink-line); }
.scene { width: 100%; height: clamp(240px, 27.5vw, 440px); }

/* The drawing */
.scene .ln { fill: none; stroke: #C3CEDA; stroke-width: 1.25; stroke-linejoin: round; stroke-linecap: round; }
.scene .fill-ink { fill: #0E141B; }
.scene .rib { fill: none; stroke: rgba(195, 206, 218, .32); stroke-width: 1; }
.scene .ground { stroke: rgba(255, 255, 255, .28); stroke-width: 1.25; }
.scene .relief { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.25; }
.scene .blades path { fill: #DCE4EC; }
.scene .hub { fill: var(--volt); }
.scene .pv { fill: #14243A; stroke: #8EA6C2; stroke-width: 1; stroke-linejoin: round; }
.scene .leg { stroke: rgba(195, 206, 218, .45); stroke-width: 1; }
.scene .glint { fill: none; stroke: var(--volt); stroke-width: 1.5; stroke-linecap: round; opacity: .15; }
.scene .led { fill: rgba(198, 244, 50, .14); }
.scene .win { fill: rgba(255, 181, 71, .16); stroke: rgba(255, 181, 71, .45); stroke-width: .8; }
.scene .roofpv { stroke: var(--volt); stroke-width: 3; stroke-linecap: round; opacity: .8; }
.scene .wire { fill: none; stroke: rgba(195, 206, 218, .55); stroke-width: 1; }
.scene .cable { fill: none; stroke: rgba(195, 206, 218, .22); stroke-width: 1.25; stroke-dasharray: 2 5; }
.scene .flow { fill: none; stroke: var(--volt); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 26; }
.scene .sun-arc { fill: none; stroke: var(--volt); stroke-width: 1.5; }
.scene .sun-arc.a2 { stroke: rgba(198, 244, 50, .45); stroke-dasharray: 2 7; }
.scene .sun-arc.a3 { stroke: rgba(198, 244, 50, .22); stroke-dasharray: 1 9; }
.scene .legend-rule, .scene .legend-tick { stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.scene .legend { font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; fill: #9FAAB7; }


/* Inner pages: the same landscape, with only the page's technology lit */
.scene.focus .turbine, .scene.focus .pvfield, .scene.focus .bess, .scene.focus .trafo, .scene.focus .pylon,
.scene.focus .tank, .scene.focus .factory, .scene.focus .town, .scene.focus .wire, .scene.focus .legend { opacity: .22; }
.scene.focus-pv .pvfield, .scene.focus-pv .town, .scene.focus-pv .lg-solar,
.scene.focus-bess .bess, .scene.focus-bess .trafo, .scene.focus-bess .lg-storage,
.scene.focus-wind .turbine, .scene.focus-wind .lg-wind,
.scene.focus-chp .factory, .scene.focus-chp .tank, .scene.focus-chp .lg-use,
.scene.focus-heat .tank, .scene.focus-heat .factory, .scene.focus-heat .lg-use,
.scene.focus-community .town, .scene.focus-community .factory, .scene.focus-community .pylon, .scene.focus-community .wire, .scene.focus-community .lg-grid, .scene.focus-community .lg-use { opacity: 1; }
.scene.focus .legend[class*="lg-"] { transition: opacity .3s; }

@media (prefers-reduced-motion: no-preference) {
  .scene .blades { transform-box: view-box; animation: spin 7s linear infinite; }
  .scene .b1 { transform-origin: 128px 118px; }
  .scene .b2 { transform-origin: 286px 176px; animation-duration: 6.1s; animation-delay: -2s; }
  .scene .b3 { transform-origin: 404px 226px; animation-duration: 5.3s; animation-delay: -1s; }
  .scene .flow { animation: flow 2.6s linear infinite; }
  .scene .f2 { animation-delay: -.8s; }
  .scene .f3 { animation-duration: 1.6s; }
  .scene .f4, .scene .f5 { animation-duration: 3.2s; animation-delay: -1.3s; }
  .scene .glint { animation: glint 4.8s ease-in-out infinite; }
  .scene .g1 { animation-delay: .25s; } .scene .g2 { animation-delay: .5s; } .scene .g3 { animation-delay: .75s; }
  .scene .g4 { animation-delay: 1s; } .scene .g5 { animation-delay: 1.25s; } .scene .g6 { animation-delay: 1.5s; }
  .scene .led { animation: charge 5.2s steps(1, end) infinite; }
  .scene .l1 { animation-delay: .5s; } .scene .l2 { animation-delay: 1s; } .scene .l3 { animation-delay: 1.5s; } .scene .l4 { animation-delay: 2s; }
  .scene .c1 .led { animation-delay: calc(var(--d, 0s) + .3s); }
  .scene .sun-arc.a1 { stroke-dasharray: 440; stroke-dashoffset: 440; animation: draw 2.4s .2s var(--ease) forwards; }
  .scene .sun { animation: rise 2.6s var(--ease) both; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flow { to { stroke-dashoffset: -64; } }
@keyframes glint { 0%, 100% { opacity: .12; } 45% { opacity: .95; } 60% { opacity: .12; } }
@keyframes charge { 0% { fill: rgba(198, 244, 50, .14); } 12% { fill: var(--volt); } 92% { fill: var(--volt); } 100% { fill: rgba(198, 244, 50, .14); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section.tight { padding-top: clamp(40px, 6vw, 72px); }
.section.dark { background: var(--ink); color: var(--white); }
.section.white { background: var(--white); }
.section.alt { background: var(--paper-2); }
.section + .section:not(.dark):not(.white):not(.alt) { padding-top: 0; }
.s-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.s-head h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.7rem); letter-spacing: -.04em; line-height: 1.02; }
.s-head h2 .s { color: var(--volt-deep); }
.dark .s-head h2 .s { color: var(--volt); }
.s-head p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 46ch; }
.dark .s-head p { color: var(--muted-on-ink); }
.s-head.solo { grid-template-columns: minmax(0, 1fr); }

.statement { font-size: clamp(1.6rem, 1.1rem + 2.1vw, 2.9rem); line-height: 1.16; letter-spacing: -.035em; font-weight: 500; max-width: 26ch; margin: 0; text-wrap: balance; }
.statement .s { color: var(--volt-deep); }
.statement .dim { color: #8B949D; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.intro-grid .side p { color: var(--muted); }

/* Lifecycle phases */
.phases { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--paper-line); border: 1px solid var(--paper-line); border-radius: var(--radius-lg); overflow: hidden; }
.phase { background: var(--paper); padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 14px; min-height: 100%; transition: background-color .3s; position: relative; }
.phase:hover { background: var(--white); }
.phase .top { display: flex; align-items: center; justify-content: space-between; }
.phase .bar { display: flex; gap: 3px; }
.phase .bar i { width: 14px; height: 6px; border-radius: 2px; background: var(--paper-line); }
.phase .bar i.on { background: var(--ink); }
.phase .bar i.on:last-of-type { background: var(--volt-2); }
.phase h3 { font-size: 1.32rem; }
.phase p { color: var(--muted); margin: 0; font-size: .98rem; }
.phase ul { list-style: none; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--paper-line); display: grid; gap: 6px; }
.phase li { font-size: .9rem; display: flex; gap: 10px; align-items: baseline; }
.phase li::before { content: ""; flex: none; width: 6px; height: 6px; border: 1.5px solid var(--ink); border-radius: 50%; transform: translateY(-1px); }

/* Technologies */
.tech-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tech-grid > li, .market > li, .models > li { display: flex; }
.tech-grid > li > .tech { flex: 1; }
.tech { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--ink-line);
  text-decoration: none; color: var(--white); overflow: hidden; transition: border-color .3s, transform .35s var(--ease), background-color .3s; min-height: 280px; isolation: isolate; }
.tech::after { content: ""; position: absolute; z-index: -1; inset: auto -30% -60% auto; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(198, 244, 50, .22), transparent); opacity: 0; transition: opacity .4s; }
.tech:hover { border-color: rgba(198, 244, 50, .55); transform: translateY(-3px); background: var(--ink-3); }
.tech:hover::after { opacity: 1; }
.tech .ico { width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--ink-line-2); display: grid; place-items: center; color: var(--volt); }
.tech .ico svg { width: 30px; height: 30px; }
.tech h3 { font-size: 1.36rem; margin-top: 8px; }
.tech p { color: var(--muted-on-ink); font-size: .96rem; margin: 0; }
.tech .scale { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font: 500 .72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--soft-on-ink); }
.tech .go { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.tech:hover .go { background: var(--volt); color: var(--ink); transform: rotate(-45deg); }
.tech-grid > li:has(.wide) { grid-column: span 3; }
.tech.wide { grid-column: span 3; min-height: 0; flex-direction: row; align-items: center; gap: 24px; background: transparent; border-style: dashed; }
.tech.wide p { flex: 1; }

/* Segments */
.segments { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.segments li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--paper-line); }
.segments li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--paper-line); }
.segments h3 { font-size: 1.18rem; margin: 14px 0 8px; }
.segments p { color: var(--muted); font-size: .96rem; margin: 0; }
.seg-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--white); border: 1px solid var(--paper-line); color: var(--ink); }
.seg-ico svg { width: 26px; height: 26px; }

/* Engagement models */
.models { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.model { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--paper-line); }
.model .tag { align-self: flex-start; font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--paper-line); }
.model h3 { font-size: 1.24rem; margin-top: 6px; }
.model p { color: var(--muted); font-size: .95rem; margin: 0; }
.model .basis { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--paper-line); font-size: .86rem; color: var(--text); }
.model .basis span { display: block; font: 500 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.model.feature { background: var(--ink); color: var(--white); border-color: var(--ink); }
.model.feature p { color: var(--muted-on-ink); }
.model.feature .tag { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.model.feature .basis { border-color: var(--ink-line); color: var(--white); }
.model.feature .basis span { color: var(--muted-on-ink); }

/* Principles */
.principles { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principles li { padding-top: 22px; border-top: 2px solid var(--ink-line-2); position: relative; }
.principles li::before { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--volt); }
.principles h3 { font-size: 1.2rem; margin-bottom: 10px; }
.principles p { color: var(--muted-on-ink); font-size: .96rem; margin: 0; }

/* Market facts */
.market { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--paper-line); }
.fact .k { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.fact h3 { font-size: 1.16rem; letter-spacing: -.02em; }
.fact p { color: var(--muted); font-size: .95rem; margin: 0; }
.fact .src { margin-top: auto; padding-top: 12px; font-size: .8rem; color: var(--muted); }
.fact .src a { color: var(--text); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--volt) 0 25%, var(--ink-line-2) 25%); }
.steps li { counter-increment: s; padding-right: 24px; position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); border: 1px solid var(--ink-line-2);
  font: 500 .78rem/1 var(--mono); color: var(--white); margin-bottom: 22px; position: relative; }
.steps li:first-child::before { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.steps h3 { font-size: 1.14rem; margin-bottom: 8px; }
.steps p { color: var(--muted-on-ink); font-size: .95rem; margin: 0; }

/* FAQ */
.faq { border-top: 1px solid var(--paper-line); }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 1.12rem; font-weight: 550; letter-spacing: -.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--paper-line);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--volt); border-color: var(--volt); }
.faq-a { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }
.faq-a p:last-child { margin: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 6vw, 96px); }

/* Contact */
.contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -40% 40%; height: 120%; background: radial-gradient(closest-side, rgba(198, 244, 50, .13), transparent); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
.contact h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem); letter-spacing: -.045em; line-height: 1; margin-bottom: 22px; }
.contact h2 .s { color: var(--volt); }
.contact .lead { color: var(--soft-on-ink); max-width: 40ch; }
.direct { list-style: none; margin-top: 32px; display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.direct li { background: var(--ink); padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.direct span { font: 500 .7rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.direct a, .direct b { font-weight: 550; text-decoration: none; }
.direct a:hover { color: var(--volt); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--ink-line); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 .7rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--white); background: var(--ink); border: 1px solid var(--ink-line-2);
  border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted-on-ink) 50%), linear-gradient(135deg, var(--muted-on-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(198, 244, 50, .18); }
.form .row-end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form .note { font-size: .82rem; color: var(--muted-on-ink); margin: 0; max-width: 46ch; }
.form .note a { color: var(--soft-on-ink); }

.field .err { min-height: 0; font-size: .8rem; color: #FFB3A1; }
.field .err:empty { display: none; }
.field [aria-invalid="true"] { border-color: #FF8A70; }
.form .note.full { grid-column: 1 / -1; margin: 0; color: var(--soft-on-ink); }
.form .note.full:empty { display: none; }
.field-copy { grid-column: 1 / -1; width: 100%; min-height: 120px; font: 400 .9rem/1.5 var(--mono); color: var(--soft-on-ink); background: var(--ink); border: 1px dashed var(--ink-line-2); border-radius: 10px; padding: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #06090D; color: var(--soft-on-ink); padding: 72px 0 32px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--soft-on-ink); }
.foot-grid a:hover { color: var(--volt); }
.fh { font: 500 .7rem/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 16px; }
.fh-gap { margin-top: 26px; }
.foot-claim { margin-top: 18px; color: var(--muted-on-ink); max-width: 34ch; }
.legal { color: var(--muted-on-ink); font-size: .84rem; line-height: 1.6; margin: 0; }
.foot-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted-on-ink); font-size: .82rem; }
.foot-base a { color: var(--soft-on-ink); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(900px 420px at 85% 120%, rgba(198, 244, 50, .10), transparent 60%); }
.page-hero .inner { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.page-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.5rem); letter-spacing: -.045em; line-height: 1; }
.page-hero h1 .s { color: var(--volt); }
.page-hero .lead { color: var(--soft-on-ink); font-size: 1.12rem; margin: 18px 0 0; max-width: 52ch; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted-on-ink); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--soft-on-ink); }
.crumbs a:hover { color: var(--volt); }
.keyfacts { list-style: none; display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.keyfacts li { background: var(--ink-2); padding: 14px 16px; display: grid; gap: 4px; }
.keyfacts span { font: 500 .66rem/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-ink); }
.keyfacts b { font-weight: 550; font-size: 1rem; }
.page-scene { border-top: 1px solid var(--ink-line); }
.page-scene .scene { height: clamp(180px, 20vw, 280px); }

.cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); }
.cols + .cols { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--paper-line); }
.cols h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); letter-spacing: -.035em; position: sticky; top: 104px; }
.cols h2 .s { color: var(--volt-deep); }
.prose p, .prose li { color: #2B333C; }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--volt-2); }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .6em; }
.prose h3:first-child { margin-top: 0; }
.prose a { color: var(--text); text-decoration-color: var(--volt-2); text-decoration-thickness: 2px; }
.cards2 { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.2em; }
.cards2 li { padding: 20px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--paper-line); }
.cards2 li::before { display: none; }
.cards2 h3 { margin: 0 0 6px; font-size: 1.06rem; }
.cards2 p { margin: 0; font-size: .95rem; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 1.2em; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.spec-table th { font: 500 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.spec-table td:first-child { font-weight: 550; }
.callout { padding: 22px 24px; border-radius: var(--radius); background: var(--ink); color: var(--soft-on-ink); margin: 1.4em 0; }
.callout b { color: var(--volt); font-weight: 550; }
.srcs { margin-top: 1.6em; padding-top: 14px; border-top: 1px dashed var(--paper-line); font-size: .82rem; color: var(--muted); }
.srcs a { color: var(--muted); }
.next-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; }
.next-tech a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--paper-line); text-decoration: none; font-weight: 550; transition: border-color .2s, transform .3s var(--ease); }
.next-tech a:hover { border-color: var(--ink); transform: translateY(-2px); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--ink); color: var(--white); }
.cta-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.035em; max-width: 24ch; }
.cta-band h2 .s { color: var(--volt); }

/* Legal pages */
.legal-page { max-width: 760px; }
.legal-page h2 { font-size: 1.4rem; margin: 2em 0 .6em; }
.legal-page p, .legal-page li { color: #2B333C; }
.legal-page ul { padding-left: 1.2em; margin: 0 0 1em; }

/* 404 */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.lost h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); letter-spacing: -.04em; margin: 12px 0 18px; }
.lost .code { font: 500 .8rem/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.lost .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Reveal on scroll (only when JS has marked the page) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
  .hero h1, .hero .lead, .hero-ctas, .hero .eyebrow { animation: up 1s var(--ease) both; }
  .hero .eyebrow { animation-delay: .05s; } .hero h1 { animation-delay: .12s; } .hero .lead { animation-delay: .24s; } .hero-ctas { animation-delay: .34s; }
}
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links a { padding: 8px 9px; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav > .btn, .nav > .lang { display: none; }
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 24px; background: var(--ink); border-bottom: 1px solid var(--ink-line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .3s var(--ease); }
  .nav-links a { padding: 14px 4px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid var(--ink-line); }
  .nav-links .m-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }
  .nav-links .m-extra a { border: 0; }
  .nav-links .m-extra .btn { padding: .85em 1.2em; font-size: 1rem; }
  .hero-inner, .page-hero .inner, .s-head, .intro-grid, .contact-grid, .faq-grid, .cols { grid-template-columns: minmax(0, 1fr); }
  .cols h2 { position: static; }
  .phases, .tech-grid, .market { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-grid > li:has(.wide) { grid-column: span 2; }
  .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segments li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .segments li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--paper-line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs li:nth-child(2) { border-right: 0; }
  .specs li:nth-child(3) { padding-left: 0; border-top: 1px solid var(--ink-line); }
  .specs li:nth-child(4) { border-top: 1px solid var(--ink-line); }
  .phases, .tech-grid, .market, .models, .principles, .segments, .steps, .cards2, .next-tech { grid-template-columns: minmax(0, 1fr); }
  .tech-grid > li:has(.wide) { grid-column: auto; }
  .tech.wide { flex-direction: column; align-items: flex-start; }
  .segments li:nth-child(even) { padding-left: 0; border-left: 0; }
  .segments li { padding-right: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .wordmark small { display: none; }
  .scene { height: 240px; }
  .spec-table { font-size: .88rem; }
}
@media print {
  .site-header, .scene-wrap, .page-scene, .contact form, .menu-btn { display: none !important; }
  body { background: #fff; }
  .hero, .page-hero, .section.dark, .contact { background: #fff !important; color: #000 !important; }
}

/* technology pages: pitfalls, tables, onward links */
.prose ul.watch li b { font-weight: 600; color: var(--text); }
.table-wrap { margin: 0 0 1.2em; }
.table-wrap .spec-table { margin: 0; }
.next-tech { margin: 14px 0 clamp(28px, 4vw, 48px); }
@media (max-width: 640px) {
  .spec-table thead { display: none; }
  .spec-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
  .spec-table td { display: block; border: 0; padding: 2px 0; }
  .spec-table td::before { content: attr(data-label); display: block; margin-top: 6px; font: 500 .62rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .spec-table td:first-child::before { display: none; }
}
