/* =========================================================
   Tilion Energy – one-pager
   Colours and type come from the designer's Figma file.
   ========================================================= */
@font-face {
  font-family: "Aspekta";
  src: url("../fonts/AspektaVF.woff2") format("woff2");
  font-weight: 50 1000; font-style: normal; font-display: swap;
}
:root {
  /* Exp 19: fluid type for big monitors. --fk grows from 0px (≤1600px wide) to 1px (≥2560px wide);
     every font-size adds its own size × --fk, so text is unchanged up to 1600px and 100% bigger from 2560px.
     Height cap: --fk is also limited by (100vh - 900px) / 720 so sections still fit one screen (2560×1440 → +75%).
     Big numbers (96 / 24/7 / 15+, matrix 1–4) are NOT scaled. */
  --fk: clamp(0px, min((100vw - 1600px) / 960, (100vh - 950px) / 650), 1px);
  --orange: #FF7B00;
  --orange-soft: #FF8947;
  --ink: #111214;
  --grey: #474747;
  --grey-text: #6b6b6b;
  --btn: #2B2B2B;
  --dark: #141619;
  --line: #D9D9D9;
  --white: #fff;
  --pad: clamp(20px, 3.9vw, 56px);
  --max: 2500px;
  --section: clamp(96px, 11vw, 168px);
  --font: "Aspekta", "Helvetica Neue", Arial, sans-serif;
  --nav-h: calc(52px + 13 * var(--fk));
  --hdr: calc(80px + 20 * var(--fk)); /* height of the floating menu bar once scrolled */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: calc(15px + 7.5 * var(--fk)); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, address, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
[id] { scroll-margin-top: 24px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */
.lead  { font-size: calc(clamp(22px, 2.35vw, 34px) + 34 * var(--fk)); line-height: 1.24; font-weight: 500; letter-spacing: -.01em; max-width: 29em; }
.h-sm  { font-size: calc(clamp(18px, 1.55vw, 22px) + 22 * var(--fk)); line-height: 1.3; font-weight: 500; }
.h-md  { font-size: calc(clamp(23px, 2.1vw, 30px) + 30 * var(--fk)); line-height: 1.22; font-weight: 500; letter-spacing: -.005em; }
.h-lg  { font-size: calc(clamp(28px, 2.6vw, 38px) + 38 * var(--fk)); line-height: 1.18; font-weight: 500; letter-spacing: -.01em; }
.h-orange { font-size: calc(clamp(24px, 2.15vw, 31px) + 31 * var(--fk)); line-height: 1.2; font-weight: 500; color: var(--orange); }
.body  { font-size: calc(15px + 7.5 * var(--fk)); line-height: 1.6; }
.eyebrow, .sub, .opt-label, .label, .role { font-size: calc(13px + 6.5 * var(--fk)); line-height: 1.4; }

/* underlined text links with orange rule */
.link-u {
  display: inline-flex; align-items: center; gap: .55em; text-decoration: none;
  font-size: calc(14px + 7 * var(--fk)); font-weight: 500;
  transition: gap .25s ease, color .2s;
}
.link-u .t { padding-bottom: 5px; border-bottom: 1.5px solid var(--orange); }
.link-u .arrow { font-size: 1.1em; line-height: 1; margin-top: -5px; }
.link-u:hover { gap: .9em; }
.link-u.small { font-size: calc(13px + 6.5 * var(--fk)); }
.link-u.light { color: var(--white); }

/* ---------- header / menu ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(20px, 3vw, 44px) var(--pad);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo img { width: calc(clamp(118px, 12vw, 172px) + 43 * var(--fk)); height: auto; }
.nav { display: flex; gap: 6px; align-items: stretch; }
.nav-btn, .menu {
  background: var(--btn); color: var(--white); border-radius: 3px; height: var(--nav-h);
  font-size: calc(12.5px + 3.125 * var(--fk)); font-weight: 500; letter-spacing: .01em;
}
.nav-btn svg { width: calc(14px + 3.5 * var(--fk)); height: auto; }
.nav-btn { min-width: var(--nav-h); display: grid; place-items: center; padding: 0 12px; text-decoration: none; transition: background .2s; }
a.nav-btn:hover { background: var(--orange); }
.nav-lang { cursor: default; }
.menu { display: flex; align-items: center; overflow: hidden; }
.menu-toggle {
  all: unset; cursor: pointer; padding: 0 14px; height: 100%; display: flex; align-items: center;
  white-space: nowrap; max-width: 80px; transition: max-width .35s ease, padding .35s ease, opacity .2s;
}
.menu-list { display: flex; align-items: center; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .45s ease, opacity .3s ease; }
.menu-list a { display: block; padding: 0 10px; line-height: var(--nav-h); white-space: nowrap; text-decoration: none; transition: color .2s; }
.menu-list li:first-child a { padding-left: 14px; }
.menu-list li:last-child a { padding-right: 14px; }
.menu-list a:hover { color: var(--orange); }
@media (hover: hover) and (min-width: 860px) {
  .menu:hover .menu-toggle, .menu:focus-within .menu-toggle { max-width: 0; padding: 0; opacity: 0; }
  .menu:hover .menu-list, .menu:focus-within .menu-list { max-width: 640px; opacity: 1; }
}
.menu.open .menu-toggle { max-width: 0; padding: 0; opacity: 0; }
.menu.open .menu-list { max-width: 640px; opacity: 1; }

@media (max-width: 859px) {
  .menu { position: relative; overflow: visible; }
  .menu-list {
    position: absolute; top: calc(var(--nav-h) + 6px); right: 0; flex-direction: column; align-items: stretch;
    background: var(--btn); border-radius: 3px; max-width: none; max-height: 0; min-width: 190px; padding: 0;
    transition: max-height .35s ease, opacity .25s ease;
  }
  .menu-list a, .menu-list li:first-child a, .menu-list li:last-child a { padding: 0 16px; line-height: 44px; }
  .menu.open .menu-toggle { max-width: 80px; padding: 0 14px; opacity: 1; }
  .menu.open .menu-list { max-height: 320px; opacity: 1; padding: 6px 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; touch-action: pan-y; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative; z-index: 2; height: 100%;
  padding: 0 var(--pad) clamp(28px, 4vw, 56px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  pointer-events: none;
}
.hero-inner > * { pointer-events: auto; }
.hero-copy h1 { font-size: max(19px, 3vw); line-height: 1.26; font-weight: 400; max-width: 28em; }
.hero-main { display: block; color: var(--ink); font-weight: 650; }
.hero-sub { display: block; color: var(--grey-text); }
.hero-links { display: flex; gap: clamp(24px, 3.4vw, 48px); margin-top: clamp(40px, 7.5vh, 88px); }
/* Exp 18: from tablet up the headline sits in the vertical middle of the hero; links stay at the bottom (aligned with the card). */
@media (min-width: 701px) {
  .hero-copy { align-self: stretch; display: flex; flex-direction: column; padding-top: 28px; }
  .hero-copy h1 { margin: auto 0; }
  .hero-links { margin-top: 0; }
}

.market-card {
  position: relative; width: calc(clamp(250px, 21vw, 300px) + 300 * var(--fk)); aspect-ratio: 300 / 205;
  background: var(--orange); color: var(--white); border-radius: 6px; overflow: hidden;
  padding: calc(14px + 14 * var(--fk)) calc(14px + 14 * var(--fk)) calc(12px + 12 * var(--fk)); display: flex; flex-direction: column; font-size: calc(11.5px + 5.75 * var(--fk)); line-height: 1.35;
  box-shadow: 0 10px 30px rgba(255, 123, 0, .18);
}
.market-chart { position: absolute; left: 0; right: 0; top: 18%; height: 60%; width: 100%; }
.mc-head, .mc-avg, .mc-stats { position: relative; }
.mc-head { display: flex; align-items: center; gap: 8px; font-size: calc(13px + 6.5 * var(--fk)); font-weight: 500; }
.mc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--white); animation: pulse 2s ease-in-out infinite; }
.market-card.is-sample .mc-dot { animation: none; opacity: .55; }
@keyframes pulse { 50% { opacity: .35; } }
.mc-avg { margin-top: auto; margin-bottom: 14px; text-align: right; }
.mc-stats { display: grid; grid-template-columns: auto auto auto 1fr; gap: 0 12px; }
.mc-stats dt { white-space: nowrap; }
.mc-stats dd { font-variant-numeric: tabular-nums; }
.mc-stats .right { text-align: right; }

/* ---------- intro + figures ---------- */
.intro { padding-top: var(--section); }
.intro .figures { margin-top: clamp(80px, 10vw, 150px); }
.figures { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: clamp(28px, 3vw, 44px); }
.figure { display: flex; flex-direction: column; gap: 10px; }
.figure.center { align-items: flex-start; justify-self: center; }
.figure.right { align-items: flex-end; text-align: left; justify-self: end; }
.figure.right .cap { align-self: stretch; }
.num { font-size: clamp(56px, 7.1vw, 104px); line-height: 1; font-weight: 400; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.num.muted { color: var(--grey); }
.cap { font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.4; max-width: 17em; }

/* ---------- market ---------- */
.market { padding-top: var(--section); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: 28px; }
.figures-3 { margin-top: clamp(64px, 7vw, 104px); }
.figures-3 .figure:nth-child(2) { justify-self: center; }
.figures-3 .figure:nth-child(3) { justify-self: end; }

/* ---------- photo ---------- */
.photo { margin-top: clamp(72px, 8vw, 120px); }
.photo-frame { position: relative; aspect-ratio: 3666 / 3840; overflow: hidden; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.quarters { position: absolute; left: 0; bottom: 0; width: 23.7%; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.quarters i { display: block; background: radial-gradient(circle at 0 100%, rgba(255,255,255,var(--o)) 70.5%, transparent 71%); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding-top: clamp(56px, 5vw, 80px); }
.service .eyebrow { font-weight: 500; }
.service .h-orange { margin-top: clamp(20px, 2.4vw, 36px); }
.service .sub { margin-top: 4px; }
.service > .body:not(.dash-list) { margin-top: clamp(24px, 2.8vw, 40px); max-width: 30em; min-height: 4.8em; }
.dash-list { margin-top: 28px; display: grid; gap: 4px; max-width: 32em; }
.dash-list li { position: relative; padding-left: 26px; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1px; background: var(--grey); }
.dash-list.orange li::before { background: var(--orange); }

/* ---------- operators ---------- */
.operators { padding-top: var(--section); }
.narrow { max-width: 36em; margin-top: 24px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(56px, 6vw, 88px); }
.option { border-top: 1px solid var(--line); padding-top: 14px; font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.5; }
.option .opt-label { margin-bottom: 26px; }
.option h4 { font-size: calc(13.5px + 6.75 * var(--fk)); font-weight: 600; }
.option.is-tilion { border-top-color: var(--orange); }
.option.is-tilion .opt-label { color: var(--orange); }
.operators-part { padding-top: clamp(96px, 10vw, 160px); }
.operators .link-u { margin-top: clamp(40px, 4vw, 56px); }

/* ---------- process ---------- */
.process { padding-top: var(--section); }
.steps { margin-top: clamp(40px, 4vw, 64px); display: grid; grid-template-columns: 1fr 1fr; counter-reset: step; }
.step { position: relative; min-height: clamp(300px, 27vw, 400px); padding: clamp(20px, 2.4vw, 36px) clamp(16px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.step h3 { font-size: calc(clamp(21px, 1.85vw, 27px) + 27 * var(--fk)); font-weight: 500; color: var(--orange); }
.step p { font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.5; max-width: 22em; }
.s1, .s3 { border-right: 1px solid var(--line); }
.s1, .s2 { border-bottom: 1px solid var(--line); }
.s1 { border-top: 1px solid var(--line); border-top-color: transparent; }
.s2, .s4 { align-items: flex-end; text-align: right; }
.s3, .s4 { justify-content: flex-end; }
.step-num { position: absolute; font-size: clamp(96px, 12.5vw, 180px); line-height: .74; font-weight: 400; letter-spacing: -.04em; color: var(--ink); pointer-events: none; }
.steps { --gap-x: clamp(24px, 3.2vw, 56px); --gap-y: clamp(18px, 2.2vw, 36px); }
.s1 .step-num { right: var(--gap-x); bottom: var(--gap-y); }
.s2 .step-num { left: var(--gap-x); bottom: var(--gap-y); }
.s3 .step-num { right: var(--gap-x); top: var(--gap-y); }
.s4 .step-num { left: var(--gap-x); top: var(--gap-y); }
.s1 .step-num, .s3 .step-num { margin-right: 0; }

/* ---------- team ---------- */
.team { padding-top: var(--section); }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 390px)); gap: clamp(24px, 3.2vw, 44px); margin-top: clamp(40px, 4.5vw, 64px); }
.portrait { aspect-ratio: 390 / 235; background: var(--line); display: grid; place-items: center; color: #b4b4b4; font-size: calc(28px + 28 * var(--fk)); font-weight: 500; letter-spacing: .04em; }
.person h3 { margin-top: 24px; font-size: calc(13.5px + 6.75 * var(--fk)); font-weight: 600; }
.person .role { margin-top: 2px; }
.person .body { margin-top: 22px; font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.55; }
.person .link-u { margin-top: 22px; }

/* ---------- audience ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); padding-top: var(--section); align-items: start; }
.pattern {
  --cell: clamp(32px, 3.3vw, 48px);
  width: calc(var(--cell) * 9); height: calc(var(--cell) * 5); max-width: 100%; margin-top: clamp(32px, 3.5vw, 52px);
  background-color: var(--grey);
  background-image: radial-gradient(circle at 0 100%, var(--white) calc(var(--cell) - .6px), transparent var(--cell));
  background-size: var(--cell) var(--cell);
}
.audience-right { padding-top: 0; }
.audience .pattern { margin-top: 0; }
.audience-right .body { max-width: 31em; font-size: calc(14px + 7 * var(--fk)); }
.audience-list { margin-top: clamp(48px, 7vw, 100px); color: var(--orange-soft); font-size: calc(14px + 7 * var(--fk)); display: grid; gap: 6px; }

/* ---------- contact ---------- */
.contact { padding-top: var(--section); }
.contact-dark { background: var(--dark); color: var(--white); padding: clamp(32px, 5vw, 72px) clamp(24px, 4.2vw, 64px) clamp(32px, 4vw, 56px); }
.contact-dark > .body { margin-top: 22px; font-size: calc(13.5px + 6.75 * var(--fk)); max-width: 34em; color: rgba(255,255,255,.85); }
.contact-dark hr { border: 0; border-top: 1px solid rgba(255,255,255,.28); margin: clamp(32px, 4vw, 56px) 0 clamp(28px, 3vw, 44px); }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-cols .label { margin-bottom: 14px; color: rgba(255,255,255,.85); }
.contact-mail { display: block; font-size: calc(clamp(22px, 2.1vw, 30px) + 30 * var(--fk)); text-decoration: none; margin-bottom: clamp(32px, 4vw, 56px); word-break: break-word; }
.contact-mail:hover { color: var(--orange); }
.contact-cols address { font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.5; }

.contact-form {
  background: var(--orange); color: var(--white); padding: clamp(32px, 4vw, 56px) clamp(24px, 4.2vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 36px) clamp(24px, 5vw, 64px);
}
.field { display: block; position: relative; }
.field span { display: block; font-size: calc(13.5px + 6.75 * var(--fk)); font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.9); background: transparent; color: var(--white);
  font: inherit; font-size: calc(15px + 7.5 * var(--fk)); padding: 6px 0 8px; outline: none; border-radius: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field.wide { grid-column: 1; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--ink); border-bottom-width: 2px; }
.form-foot { grid-column: 2; align-self: end; display: flex; justify-content: flex-end; align-items: flex-end; gap: 20px; }
.form-status { font-size: calc(13px + 6.5 * var(--fk)); line-height: 1.4; text-align: right; }
.send { all: unset; cursor: pointer; display: inline-flex; gap: .6em; align-items: center; font-weight: 600; font-size: calc(14px + 7 * var(--fk)); padding-bottom: 5px; border-bottom: 1.5px solid var(--white); transition: gap .25s; }
.send:hover { gap: 1em; }
.send:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(40px, 4vw, 64px); margin-bottom: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 110px auto 1fr auto; gap: 24px; font-size: calc(12px + 6 * var(--fk)); line-height: 1.55;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.legal { display: flex; gap: 22px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .two-col, .services, .audience { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; gap: 28px; }
  .audience-right { padding-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .legal { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero-inner { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .market-card { width: 100%; max-width: 340px; align-self: flex-end; }
  .hero-links { margin-top: 28px; }
  .figures { grid-template-columns: 1fr; gap: 36px; }
  .figure.center, .figure.right, .figures-3 .figure:nth-child(n) { justify-self: start; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .step, .s2, .s3, .s4 { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); align-items: flex-start; text-align: left; justify-content: flex-start; padding: 28px 0 28px 84px; }
  .step-num, .s1 .step-num, .s2 .step-num, .s3 .step-num, .s4 .step-num { left: 0; right: auto; top: 26px; bottom: auto; font-size: 64px; line-height: .8; }
  .people { grid-template-columns: 1fr; }
  .contact-cols, .contact-form { grid-template-columns: 1fr; }
  .form-foot { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .service .spacer { display: none; }
  .h-md br, .h-sm br { display: none; }
  .hero-copy h1 { text-shadow: 0 0 12px #fff, 0 0 4px #fff; }
}

/* ---------- headline letter stagger ---------- */
.stagger .ch { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(4px);
  animation: ch-in .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(120ms + var(--i) * 16ms); }
.stagger .w { display: inline-block; white-space: nowrap; }
@keyframes ch-in { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .stagger .ch { animation: none; opacity: 1; transform: none; filter: none; } }

/* ---------- count-up figures ---------- */
.num { font-variant-numeric: tabular-nums; }

/* ---------- photo note + day-ahead panel ---------- */
.photo-frame { container-type: inline-size; }
.photo-note { position: absolute; left: 3%; top: 3.6%; width: 22%; color: var(--white); font-size: calc(clamp(12px, 1vw, 15px) + 7.5 * var(--fk)); line-height: 1.45; text-shadow: 0 1px 12px rgba(0,0,0,.18); }
.photo-note strong { font-weight: 600; }
.photo { position: relative; }
.dap {
  --dap-orange: #E8622A;
  position: absolute; z-index: 2; top: 3.7%; right: calc(var(--pad) + 3.3%); width: calc((100% - 2 * var(--pad)) * .69);
  background: var(--dark); color: #e9eaec; padding: clamp(18px, 2.2vw, 40px) clamp(18px, 2.2vw, 40px) clamp(14px, 1.6vw, 28px);
  font-size: clamp(11px, .85vw, 14px); line-height: 1.4;
}
.dap-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dap-kicker { color: #a4a7ad; }
.dap-title { font-size: clamp(15px, 1.45vw, 24px); font-weight: 600; color: var(--white); margin-top: 4px; }
.dap-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #34373d; border-radius: 3px; padding: 6px 10px; color: #a4a7ad; white-space: nowrap; }
.dap-dot { width: 7px; height: 7px; border-radius: 50%; background: #8b8f96; }
.dap.is-live .dap-dot { background: var(--orange); animation: pulse 2s ease-in-out infinite; }
.dap-main { display: grid; grid-template-columns: 27% 1fr; gap: 3%; align-items: end; margin-top: clamp(16px, 2vw, 32px); }
.dap-label { color: #a4a7ad; }
.dap-value { font-size: clamp(32px, 3.9vw, 64px); font-weight: 600; color: var(--white); line-height: 1.05; margin: 6px 0; font-variant-numeric: tabular-nums; }
.dap-value small { font-size: clamp(11px, .85vw, 14px); font-weight: 400; color: #a4a7ad; }
.dap-delta { color: #a4a7ad; }
.dap-delta strong { color: var(--white); font-weight: 600; }
.dap-chart { width: 100%; height: auto; display: block; overflow: visible; }
.dap-chart text { fill: #8b8f96; font-size: 11px; font-family: var(--font); }
.dap-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; border-top: 1px solid #2c2f35; margin-top: clamp(14px, 1.8vw, 28px); padding-top: clamp(14px, 1.6vw, 24px); }
.dap-stats dt { color: #a4a7ad; }
.dap-stats dd { color: var(--white); font-size: clamp(13px, 1.15vw, 19px); font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }
.dap-source { color: #7d8189; font-size: clamp(10px, .72vw, 12px); margin-top: clamp(14px, 1.6vw, 26px); }

@media (max-width: 900px) {
  .photo-note { width: 60%; }
  .dap { position: static; width: auto; margin-top: 0; }
  .dap-main { grid-template-columns: 1fr; gap: 18px; }
  .dap-stats { grid-template-columns: 1fr 1fr; }
  .dap-head { flex-wrap: wrap; }
  .dap-chart text { font-size: 19px; }
  .photo-frame::before { content: ""; position: absolute; inset: 0 0 45% 0; z-index: 1; background: linear-gradient(rgba(10,20,30,.42), transparent); }
  .photo-note { z-index: 2; }
  .dap-badge { white-space: normal; }
}

/* =========================================================
   Round 3 – floating menu + full-screen sections
   ========================================================= */
.site-header { position: fixed; transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease; }
.site-header .logo img { transition: width .3s ease; }
.site-header.is-scrolled {
  padding-block: 14px; pointer-events: auto;
  background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: none; /* Exp 31: no grey line under the bar */
}
.site-header.is-scrolled .logo img { width: clamp(104px, 8.5vw, 132px); }

/* each section fills the screen; the floating bar sits over its top padding */
.screen {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--hdr) + clamp(20px, 5vh, 64px)); padding-bottom: clamp(28px, 6vh, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 5vh, 72px);
}
.screen[id], #kontakt { scroll-margin-top: 0; }
.reveal { will-change: opacity; }

/* 1 Tilion */
.s-tilion .figures { margin-top: 0; }
.s-tilion .two-col { margin-top: clamp(16px, 2.4vh, 28px); }

/* 2 Leistungen: photo fills the screen, compact price panel, services on a dark gradient */
.s-services { color: var(--white); overflow: hidden; background: #2a2f33; }
.screen-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; } /* exp 15: was 50% 60% – more solar farm, less sky */
.s-services::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12,16,22,.38) 0%, rgba(12,16,22,.10) 32%, rgba(12,16,22,.45) 58%, rgba(12,16,22,.86) 100%); }
.s-services-inner { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(28px, 5vh, 64px); }
.s-services-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.s-services .photo-note { position: static; width: auto; max-width: 21em; z-index: auto; font-size: calc(clamp(13px, 1.05vw, 16px) + 8 * var(--fk)); text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.s-services .services { padding-top: 0; }
.s-services .eyebrow, .s-services .sub { color: rgba(255,255,255,.85); }
.s-services .body { color: var(--white); }
.s-services .service > .body:not(.dash-list) { min-height: 3.2em; margin-top: clamp(14px, 2vh, 24px); }
.s-services .service .h-orange { margin-top: clamp(10px, 1.6vh, 20px); }
.s-services .dash-list { margin-top: clamp(12px, 2vh, 24px); }

.s-services .dap {
  position: relative; top: auto; right: auto; width: clamp(330px, 30vw, 440px); flex: none;
  padding: 18px 20px 14px; font-size: 12px; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.s-services .dap-title { font-size: 15px; }
.s-services .dap-head { flex-wrap: wrap; gap: 8px 12px; }
.s-services .dap-badge { padding: 4px 8px; font-size: 11px; }
.s-services .dap-main { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
.s-services .dap-now { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.s-services .dap-label { flex-basis: 100%; }
.s-services .dap-value { font-size: 30px; margin: 0; }
.s-services .dap-delta { display: none; }
.s-services .dap-chart text { font-size: 17px; }
.s-services .dap-stats { grid-template-columns: repeat(3, 1fr); margin-top: 10px; padding-top: 10px; gap: 8px; }
.s-services .dap-stats > div:nth-child(n+4) { display: none; }
.s-services .dap-stats dd { font-size: 14px; margin-top: 4px; }
.s-services .dap-source { font-size: 9.5px; margin-top: 10px; line-height: 1.35; }

/* 3 Vorgehen: four steps in a row, then operators */
.steps-row { grid-template-columns: repeat(4, 1fr); margin-top: clamp(24px, 4vh, 48px); }
.steps-row .step, .steps-row .s1, .steps-row .s2, .steps-row .s3, .steps-row .s4 {
  min-height: 0; border: 0; border-left: 1px solid var(--line); text-align: left; align-items: flex-start; justify-content: flex-start;
  padding: 0 clamp(16px, 2vw, 32px); gap: 12px;
}
.steps-row .s1 { border-left: 0; padding-left: 0; }
.steps-row .step-num { position: static; order: -1; font-size: clamp(64px, min(7vw, 12vh), 120px); line-height: .8; margin-bottom: clamp(8px, 1.6vh, 20px); }
.s-operators { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.op-left .narrow { margin-top: 18px; }
.op-left .link-u { margin-top: clamp(20px, 3vh, 36px); }
.options-stack { grid-template-columns: 1fr; margin-top: 0; gap: clamp(12px, 2vh, 22px); }
.options-stack .option .opt-label { margin-bottom: 6px; }

/* 4 Über uns */
.s-about { justify-content: flex-start; }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-grid .people { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-grid .portrait { aspect-ratio: 16 / 9; }
.about-grid .person h3 { margin-top: 18px; }
.about-grid .person .body { margin-top: 14px; }
.about-right .audience-right { padding-top: 0; }
.about-right .audience-list { margin-top: clamp(20px, 3vh, 36px); }
.about-right .pattern { --cell: clamp(26px, 2.4vw, 40px); width: calc(var(--cell) * 7); height: calc(var(--cell) * 4); margin-top: clamp(24px, 4vh, 48px); }

.s-services { padding-top: calc(var(--hdr) + clamp(16px, 3vh, 40px)); }
.s-services .dap { width: clamp(320px, 26vw, 400px); padding: 14px 16px 12px; }
.s-services .dap-title { font-size: 14px; margin-top: 2px; }
.s-services .dap-main { margin-top: 8px; gap: 2px; }
.s-services .dap-value { font-size: 26px; }
.s-services .dap-stats { margin-top: 6px; padding-top: 8px; }
.s-services .dap-source { margin-top: 6px; }
.s-services .body { font-size: calc(14px + 7 * var(--fk)); line-height: 1.5; }
.s-services .service .h-orange { font-size: calc(clamp(22px, 1.9vw, 28px) + 28 * var(--fk)); }
@media (min-width: 901px) and (max-height: 860px) {
  .screen { padding-top: calc(var(--hdr) + 3vh); padding-bottom: 4vh; gap: 4vh; }
  .steps-row .step-num { font-size: clamp(56px, 9vh, 96px); }
  .about-grid .portrait { aspect-ratio: 2 / 1; }
  .s-tilion .lead { font-size: calc(clamp(20px, 2.1vw, 30px) + 30 * var(--fk)); }
  .s-services .service .h-orange { margin-top: 6px; }
  .s-services .service > .body:not(.dash-list) { margin-top: 8px; }
  .s-services .dash-list { margin-top: 10px; }
  .s-services-inner { gap: 3vh; }
}

/* ---------- round 4 ---------- */
/* Unternehmen: key figures orange and bigger */
.s-tilion .num, .s-tilion .num.muted { color: var(--ink); font-size: clamp(72px, min(10vw, 17vh), 168px); }

/* Leistungen: wider price panel on desktop */
@media (min-width: 901px) { .s-services .dap { width: clamp(380px, 36vw, 620px); } }
.s-services .service > .body:not(.dash-list) { min-height: 0; }

/* Vorgehen: original 2×2 matrix, sized to fit the screen */
.steps-matrix { margin-top: clamp(20px, 3vh, 48px); }
@media (min-width: 701px) {
  .steps-matrix .step { min-height: clamp(150px, 23vh, 400px); padding-block: clamp(14px, 2vh, 32px); gap: 12px; }
  .steps-matrix .step-num { font-size: clamp(80px, min(12.5vw, 17vh), 180px); }
  .steps-matrix { --gap-y: clamp(12px, 1.8vh, 36px); }
}

/* Über uns: founders on top, pattern + "Wir arbeiten" underneath */
.s-about { justify-content: flex-start; gap: clamp(20px, 3.5vh, 56px); }
.s-about .people { margin-top: 0; grid-template-columns: repeat(2, minmax(0, 460px)); }
.s-about .portrait { aspect-ratio: 5 / 2; }
.s-about .person h3 { margin-top: 16px; }
.s-about .person .body { margin-top: 12px; }
.s-about .person .link-u { margin-top: 14px; }
.about-bottom { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-bottom .pattern { --cell: clamp(24px, 2.2vw, 36px); width: calc(var(--cell) * 8); height: calc(var(--cell) * 3); margin-top: 0; }
.about-bottom .audience-right { padding-top: 0; display: grid; grid-template-columns: minmax(0, 32em) auto; gap: clamp(24px, 4vw, 64px); align-items: start; }
.about-bottom .audience-list { margin-top: 0; }
@media (max-width: 900px) {
  .about-bottom, .about-bottom .audience-right { grid-template-columns: 1fr; }
  .s-about .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) { .s-about .people { grid-template-columns: 1fr; } }

@media (min-width: 901px) and (max-height: 860px) {
  .s-services .dap { width: clamp(380px, min(36vw, 50vh), 620px); }
  .s-about .portrait { aspect-ratio: 3 / 1; }
  .s-about { gap: 3vh; }
  .s-services .body { line-height: 1.42; }
  .s-services .dash-list { gap: 2px; }
  .s-services-inner { gap: 2vh; }
}
.s-services .dap-main { gap: 10px; }

/* Über uns: portraits (mock-up photos) */
.portrait { overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.s-about .portrait { aspect-ratio: 390 / 235; }
.s-about .people { grid-template-columns: repeat(2, minmax(0, 440px)); }
@media (max-width: 700px) { .s-about .people { grid-template-columns: 1fr; } }

/* ---------- round 6 ---------- */
.s-tilion .cap { color: var(--orange); font-weight: 500; }

/* Vorgehen: matrix + "Was das für…" (options in 3 columns, CTA) together on one screen */
.s-process { justify-content: flex-start; gap: clamp(32px, 5vh, 64px); }
@media (min-width: 901px) {
  .s-process-top { flex: 1; display: flex; flex-direction: column; }
  .s-process-top .steps-matrix { flex: 1; grid-auto-rows: 1fr; }
}
.s-process .s-operators { display: block; }
.s-process .s-operators .options { grid-template-columns: repeat(3, 1fr); margin-top: clamp(20px, 3.5vh, 48px); }
.s-process .s-operators .option .opt-label { margin-bottom: clamp(8px, 1.6vh, 20px); }
.s-process .s-operators .link-u { margin-top: clamp(20px, 3.5vh, 44px); }
.s-process .s-operators .narrow { margin-top: clamp(10px, 1.6vh, 20px); }
@media (min-width: 901px) {
  .s-process .h-md br { display: none; }
  .steps-matrix { margin-top: clamp(16px, 2.6vh, 36px); --gap-y: clamp(8px, 1.4vh, 24px); }
  .steps-matrix .step { min-height: clamp(120px, 16vh, 260px); padding-block: clamp(10px, 1.6vh, 24px); gap: 10px; }
  .steps-matrix .step-num { font-size: clamp(72px, min(9vw, 12.5vh), 150px); }
}
@media (max-width: 900px) { .s-process .s-operators .options { grid-template-columns: 1fr; } }

/* Über uns: the two founders side by side, big 3:2 photos on top */
.s-about .people { grid-template-columns: repeat(2, minmax(0, 640px)); column-gap: clamp(28px, 4vw, 64px); row-gap: 48px; margin-top: clamp(16px, 3vh, 40px); }
.s-about .person { display: block; }
.s-about .portrait { aspect-ratio: 3 / 2; width: 100%; height: auto; }
.s-about .portrait img { object-position: 50% 22%; }
.s-about .person-text { margin-top: 20px; }
.s-about .person-text h3 { margin-top: 0; }
.s-about .person-text .role { margin-top: 2px; }
.s-about .person-text .body { margin-top: 14px; font-size: calc(14px + 7 * var(--fk)); }
.s-about .person-text .link-u { margin-top: 18px; }
.s-about .about-bottom { margin-top: clamp(40px, 6vh, 80px); }
@media (max-width: 700px) { .s-about .people { grid-template-columns: 1fr; } }

/* ---------- experiment 1: "Was das für…" as an orange panel ---------- */
.s-process .s-operators {
  background: var(--orange); color: var(--white);
  padding: clamp(24px, 3.6vh, 52px) clamp(24px, 3vw, 48px);
}
.s-process .s-operators .h-md, .s-process .s-operators .body, .s-process .s-operators .option h4 { color: var(--white); }
.s-process .s-operators .option { border-top-color: rgba(255,255,255,.55); }
.s-process .s-operators .option.is-tilion { border-top-color: var(--ink); }
.s-process .s-operators .option.is-tilion .opt-label { color: var(--ink); }
.s-process .s-operators .link-u { color: var(--white); }
.s-process .s-operators .link-u .t { border-bottom-color: var(--ink); }
@media (min-width: 901px) { .s-process { gap: clamp(24px, 3.5vh, 48px); } }
/* experiment 3: numbers 1/2 sit higher, 3/4 lower (more distance from the centre line) */
@media (min-width: 901px) { .steps-matrix { --gap-y: clamp(22px, 4vh, 56px); } }
@media (min-width: 901px) and (max-height: 860px) {
  .steps-matrix .step { min-height: 13vh; }
  .steps-matrix .step-num { font-size: 11vh; }
  .s-process .s-operators { padding-block: 2.6vh; }
  .s-process .s-operators .options { margin-top: 2.4vh; }
  .s-process .s-operators .link-u { margin-top: 2.4vh; }
  .s-process { gap: 2.6vh; }
}

/* ---------- experiment 4: Über uns aligned to the page grid ---------- */
/* founders use the two halves of the content width (same split as the Vorgehen matrix) */
.s-about .people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); }
.s-about .portrait img { object-position: 50% 30%; }
.s-about .person-text { max-width: 40em; }
/* "Wir arbeiten…" row on the same two columns: pattern left, text + list right */
.s-about .about-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); align-items: start; }
.s-about .about-bottom .audience-right { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 900px) {
  .s-about .about-bottom, .s-about .about-bottom .audience-right { grid-template-columns: 1fr; }
}
@media (max-width: 700px) { .s-about .people { grid-template-columns: 1fr; } }

/* ---------- experiment 5: Über uns fits one screen on desktop ---------- */
@media (min-width: 901px) {
  .s-about { gap: clamp(16px, 3vh, 40px); }
  .s-about .people { margin-top: 0; }
  .s-about .portrait { aspect-ratio: auto; width: 100%; height: clamp(170px, 29vh, 440px); }
  .s-about .portrait img { object-position: 50% 15%; }
  .s-about .person-text { margin-top: clamp(10px, 1.6vh, 20px); }
  .s-about .person-text .body { margin-top: clamp(6px, 1.2vh, 14px); font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.5; }
  .s-about .person-text .link-u { margin-top: clamp(8px, 1.4vh, 18px); }
  .s-about .about-bottom { margin-top: clamp(8px, 2vh, 32px); }
  .s-about .about-bottom .pattern { --cell: clamp(18px, 2.6vh, 32px); }
  .s-about .about-bottom .audience-right .body { font-size: calc(13.5px + 6.75 * var(--fk)); line-height: 1.5; }
  .s-about .audience-list { font-size: calc(13.5px + 6.75 * var(--fk)); gap: 4px; }
  .s-about > .h-md br { display: none; }
  .s-about .portrait { height: clamp(160px, 26vh, 440px); }
  .s-about .about-bottom .audience-right { display: block; }
  .s-about .about-bottom .audience-right .body { max-width: none; }
  .s-about .about-bottom .audience-list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: clamp(8px, 1.6vh, 18px); }
}
@media (min-width: 901px) and (max-height: 860px) { .s-about .portrait { height: 22vh; } .s-about { gap: 2vh; } }

/* ---------- experiment 6: Über uns – photos take the leftover screen height ---------- */
@media (min-width: 901px) {
  .s-about .people {
    flex: 1 1 auto; min-height: 0;
    grid-template-rows: minmax(180px, 1fr) auto; row-gap: 0;
  }
  .s-about .person { grid-row: span 2; display: grid; grid-template-rows: subgrid; }
  .s-about .portrait { position: relative; height: auto; min-height: 180px; aspect-ratio: auto; }
  .s-about .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-position: 50% 16%; }
}

/* ---------- experiment 7: bottom row of Über uns in three columns (pattern | text | list) ---------- */
@media (min-width: 901px) {
  .s-about .about-bottom { grid-template-columns: auto minmax(0, 34em) auto; justify-content: space-between; column-gap: clamp(32px, 5vw, 96px); align-items: start; }
  .s-about .about-bottom .audience-right { display: contents; }
  .s-about .about-bottom .audience-right .body { max-width: 34em; }
  .s-about .about-bottom .audience-list { display: grid; gap: 6px; margin-top: 0; }
}

/* ---------- experiment 8: Über uns bottom row on the founders' columns ---------- */
.s-about .person-text .role { color: var(--orange); }
@media (min-width: 901px) {
  /* left column (under Grigorii): text + customer list, same width as his photo; right column (under Alex): pattern */
  .s-about .about-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 64px); justify-content: stretch; }
  .s-about .about-bottom .audience-right { display: flex; order: 1; justify-content: space-between; gap: clamp(24px, 3vw, 48px); }
  .s-about .about-bottom .audience-right .body { flex: 1 1 auto; max-width: 34em; }
  .s-about .about-bottom .audience-list { flex: none; }
  .s-about .about-bottom .pattern { order: 2; justify-self: start; }
}

/* ---------- experiment 9: "Wir arbeiten…" full width of Grigorii's column, same size as Unternehmen text, list below ---------- */
@media (min-width: 901px) {
  .s-about .about-bottom .audience-right { display: block; }
  .s-about .about-bottom .audience-right .body { max-width: none; font-size: calc(15px + 7.5 * var(--fk)); line-height: 1.6; }
  .s-about .about-bottom .audience-list { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: clamp(8px, 1.6vh, 16px); color: var(--orange-soft); }
}

/* ---------- experiment 10: customer types styled like the options (line above, label below, 3 columns) ---------- */
@media (min-width: 901px) {
  .s-about .about-bottom .audience-list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px);
    margin-top: clamp(16px, 2.6vh, 32px); color: var(--orange);
  }
  .s-about .about-bottom .audience-list li { border-top: 1px solid var(--orange); padding-top: 12px; font-size: calc(14px + 7 * var(--fk)); line-height: 1.4; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .s-about .about-bottom .audience-list { margin-top: 10px; }
  .s-about .about-bottom .audience-list li { padding-top: 8px; }
  .s-about .about-bottom .audience-right .body { line-height: 1.5; }
}
@media (max-width: 900px) {
  .s-about .audience-list li { border-top: 1px solid var(--orange); padding-top: 10px; }
  .s-about .audience-list { gap: 14px; }
}

/* ---------- experiment 12: quarter-hour tiles – fixed tile size, as many WHOLE tiles as fit (no stretching) ---------- */
/* Each tile = one quarter hour. The container takes the free area; the tiles are drawn in a layer
   that is cut down to a whole number of tiles in both directions (CSS round()). */
.s-about .about-bottom .pattern { --cell: 40px; position: relative; background: none; max-width: none; }
.s-about .about-bottom .pattern::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background-color: var(--grey);
  background-image: radial-gradient(circle at 0 100%, var(--white) calc(var(--cell) - .6px), transparent var(--cell));
  background-size: var(--cell) var(--cell); background-repeat: repeat;
}
@supports (width: round(down, 100%, 1px)) {
  .s-about .about-bottom .pattern::before { width: round(down, 100%, var(--cell)); height: round(down, 100%, var(--cell)); }
}
@media (min-width: 901px) {
  .s-about .about-bottom { align-items: stretch; }
  .s-about .about-bottom .pattern { width: 100%; height: auto; min-height: calc(var(--cell) * 3); }
}
@media (max-width: 900px) {
  .s-about .about-bottom .pattern { --cell: 32px; width: 100%; height: calc(var(--cell) * 3); }
}

/* ---------- experiment 13: live quarter-hour tiles (built by main.js) ---------- */
.qh-grid { position: absolute; left: 0; top: 0; display: grid; grid-auto-rows: var(--cell); }
.pattern.is-live::before { display: none; }
.qh {
  width: var(--cell); height: var(--cell);
  background-color: var(--grey);
  background-image: radial-gradient(circle at 0 100%, var(--white) calc(var(--cell) - .6px), transparent var(--cell));
  transition: background-color 1.1s ease, opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.qh.is-hot { background-color: var(--orange); transition: background-color 0s, opacity .5s ease, transform .5s ease; }
.qh.is-trail { background-color: var(--orange-soft); transition: background-color .25s; }
.pattern.is-live:not(.is-in) .qh { opacity: 0; transform: scale(.6); }
.pattern.is-live .qh:hover { background-color: var(--orange); transition: background-color 0s; }
@media (prefers-reduced-motion: reduce) { .qh { transition: none; } .pattern.is-live:not(.is-in) .qh { opacity: 1; transform: none; } }

/* contact: lands just below the menu bar */
.contact { padding-top: calc(var(--hdr) + 16px); }

@media (max-width: 900px) {
  .s-services-top { flex-direction: column; }
  .s-services .dap { width: 100%; max-width: 460px; position: relative; }
  .s-operators, .about-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps-row .s3 { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) {
  :root { --hdr: 72px; }
  .site-header.is-scrolled { padding-block: 10px; }
  .screen { justify-content: flex-start; }
  .s-services .services { margin-top: 8px; }
  .steps-row .step, .steps-row .s1, .steps-row .s2, .steps-row .s3, .steps-row .s4 { padding: 0 0 0 14px; border-bottom: 0; }
  .steps-row .s1, .steps-row .s3 { padding-left: 0; }
  .steps-row .step-num { font-size: 56px; }
  .about-grid .people { grid-template-columns: 1fr; }
}

/* Exp 20: matrix numbers sit in square boxes (1em × 1em of the number size), digit centred
   horizontally and vertically (cap height trimmed), so 1 stands exactly above 3 and 2 above 4. */
@media (min-width: 701px) {
  .steps-matrix .step-num {
    width: .9em; height: .9em; display: flex; align-items: center; justify-content: center;
    line-height: 1; letter-spacing: 0; text-align: center; text-box: trim-both cap alphabetic;
  }
}

/* Exp 21: "Option A / Option B / Tilion" labels in the orange panel as big as its heading; Tilion label white. */
.s-process .s-operators .opt-label { font-size: calc(clamp(23px, 2.1vw, 30px) + 30 * var(--fk)); line-height: 1.22; letter-spacing: -.005em; }
.s-process .s-operators .option.is-tilion .opt-label { color: var(--white); }
/* Exp 21 fit: bigger labels need room – tighter label gap and panel padding on desktop so Vorgehen stays one screen. */
@media (min-width: 901px) {
  .s-process .s-operators { padding-block: clamp(20px, 2.8vh, 40px); }
  .s-process .s-operators .option .opt-label { margin-bottom: 4px; }
}

/* Exp 22: big numbers (96 / 24/7 / 15+ and matrix 1–4) in weight 200. */
.num, .step-num { font-weight: 200; }

/* Exp 23: the orange panel fades in from bottom to top (wipe + slight rise); its content follows a moment later. */
.js .s-process .s-operators.reveal {
  opacity: 0; transform: translateY(40px); clip-path: inset(100% 0 0 0);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2,.7,.2,1), clip-path 1.1s cubic-bezier(.2,.7,.2,1);
}
.js .s-process .s-operators.reveal.in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .s-process .s-operators .reveal { transition-delay: .45s; }
@media (prefers-reduced-motion: reduce) {
  .js .s-process .s-operators.reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
}
/* Exp 24: Tilion option top line white too (was black). */
.s-process .s-operators .option.is-tilion { border-top-color: var(--white); }
/* Exp 25: option lines (A, B, Tilion) draw from left to right like a loading bar once the panel is in. */
.s-process .s-operators .option { position: relative; border-top-color: transparent; }
.s-process .s-operators .option.is-tilion { border-top-color: transparent; }
.s-process .s-operators .option::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: rgba(255,255,255,.55); transform-origin: left center;
}
.s-process .s-operators .option.is-tilion::before { background: var(--white); }
.js .s-process .s-operators .option::before { transform: scaleX(0); }
.js .s-process .s-operators .option.in::before { transform: scaleX(1); transition: transform 1.3s cubic-bezier(.65,0,.35,1); }
.js .s-process .s-operators .option:nth-child(1)::before { transition-delay: .6s; }
.js .s-process .s-operators .option:nth-child(2)::before { transition-delay: .9s; }
.js .s-process .s-operators .option:nth-child(3)::before { transition-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .js .s-process .s-operators .option::before { transform: none; transition: none; }
}

/* Exp 26: "Sprechen Sie mit uns…" underline white, drawn left to right after the option lines. */
.s-process .s-operators .link-u .t {
  border-bottom-color: transparent;
  background: linear-gradient(var(--white), var(--white)) no-repeat left bottom / 100% 1.5px;
}
.js .s-process .s-operators .link-u .t { background-size: 0% 1.5px; }
.js .s-process .s-operators.in .link-u .t { background-size: 100% 1.5px; transition: background-size 1.1s cubic-bezier(.65,0,.35,1) 2.6s; }
@media (prefers-reduced-motion: reduce) {
  .js .s-process .s-operators .link-u .t { background-size: 100% 1.5px; transition: none; }
}

/* Exp 30: customer-type lines (Energieversorger, Unabhängige Stromerzeuger, Asset-Manager) draw left to right
   one after another once the "Wir arbeiten…" block is in – same loading-bar motion as the option lines (Exp 25). */
.s-about .audience-list li { position: relative; border-top-color: transparent !important; }
.s-about .audience-list li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--orange); transform-origin: left center;
}
.js .s-about .audience-right .audience-list li::before { transform: scaleX(0); }
.js .s-about .audience-right.in .audience-list li::before { transform: scaleX(1); transition: transform 1.3s cubic-bezier(.65,0,.35,1); }
.js .s-about .audience-right.in .audience-list li:nth-child(1)::before { transition-delay: .4s; }
.js .s-about .audience-right.in .audience-list li:nth-child(2)::before { transition-delay: .7s; }
.js .s-about .audience-right.in .audience-list li:nth-child(3)::before { transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .js .s-about .audience-right .audience-list li::before { transform: none; transition: none; }
}
/* Exp 32: orange panel 100px padding top and bottom (all widths). */
.s-process .s-operators { padding-block: 100px; }
/* Exp 33: Über uns heading in two lines again on desktop/tablet ("…Erfahrung / an den europäischen Strommärkten."). */
@media (min-width: 701px) { .s-about > .h-md br { display: inline; } }

/* Exp 34: text selection orange with white text. */
::selection { background: var(--orange); color: var(--white); }
/* Exp 35: matrix blocks 1–4 at least 450px tall (from 701px width). */
@media (min-width: 701px) { .steps-matrix .step { min-height: 450px; } }
/* Exp 36: more space between the matrix and the orange panel. */
.s-process .s-operators { margin-top: 100px; }
@media (max-width: 700px) { .s-process .s-operators { margin-top: 60px; } }
/* Exp 37: orange hero card appears 1.5s after load, wiping in from right to left with a slight slide. */
@keyframes mc-in {
  from { opacity: 0; transform: translateX(48px); clip-path: inset(0 0 0 100%); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.hero .market-card { animation: mc-in 1.1s cubic-bezier(.2,.7,.2,1) 1.5s both; }
@media (prefers-reduced-motion: reduce) { .hero .market-card { animation: none; } }
/* Exp 38: Über uns – photos keep 3:2 again; both founder columns together at most 2/3 of the content width.
   The bottom row (text + list under Grigorii, pattern under Alex) follows the same 2/3 so the columns stay aligned. */
@media (min-width: 901px) {
  .s-about .people { flex: none; max-width: 66.667%; grid-template-rows: auto auto; }
  .s-about .portrait { aspect-ratio: 3 / 2; height: auto; min-height: 0; }
  .s-about .about-bottom { max-width: 66.667%; }
}
/* Exp 38b: each founder column at most 600px (and both together still at most 2/3 of the content width). */
@media (min-width: 901px) {
  .s-about .people, .s-about .about-bottom { grid-template-columns: repeat(2, minmax(0, 600px)); }
}
/* Exp 39: when the third column is free (≥1200px wide), the quarter-hour pattern moves to the right of the founders
   (third column, same height as the founder block). Below 1200px it stays under Alex (Exp 38 layout). */
@media (min-width: 1200px) {
  .s-about {
    --about-gap: clamp(28px, 4vw, 64px);
    display: grid; align-content: start;
    grid-template-columns: repeat(2, minmax(0, min(600px, (100% - 2 * var(--about-gap)) / 3))) minmax(0, 1fr);
    column-gap: var(--about-gap);
  }
  .s-about > .h-md { grid-column: 1 / -1; }
  .s-about .people { grid-column: 1 / 3; grid-row: 2; max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--about-gap); }
  .s-about .about-bottom { display: contents; }
  .s-about .about-bottom .audience-right { grid-column: 1 / 2; grid-row: 3; }
  .s-about .about-bottom .pattern { grid-column: 3; grid-row: 2; align-self: stretch; height: auto; min-height: calc(var(--cell) * 3); }
}

/* Exp 39 note: the matrix list itself does not fade – only its numbers (Exp 40). */
.js .steps-matrix.reveal { opacity: 1; transform: none; }
/* Exp 40: numbers 1–4 fade in one after another (rise + unblur) when the matrix scrolls into view. */
.js .steps-matrix .step-num { opacity: 0; transform: translateY(.18em); filter: blur(6px); }
.js .steps-matrix.in .step-num { opacity: 1; transform: none; filter: none; transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1), filter .9s ease; }
.js .steps-matrix.in .s1 .step-num { transition-delay: .15s; }
.js .steps-matrix.in .s2 .step-num { transition-delay: .45s; }
.js .steps-matrix.in .s3 .step-num { transition-delay: .75s; }
.js .steps-matrix.in .s4 .step-num { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  .js .steps-matrix .step-num { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Exp 42: menu opens slower and smoother (ease-in-out), link text grows while it opens, more space between links. */
.menu { --menu-ease: cubic-bezier(.65,0,.35,1); }
.menu-toggle { transition: max-width .7s var(--menu-ease), padding .7s var(--menu-ease), opacity .35s ease; }
.menu-list a {
  font-size: calc(12.5px + 3.125 * var(--fk)); padding-inline: calc(10px + 2.5 * var(--fk));
  transition: color .2s, font-size .8s var(--menu-ease), padding .8s var(--menu-ease);
}
@media (min-width: 860px) {
  .menu-list { transition: max-width 1s var(--menu-ease), opacity .6s ease .1s; }
  .menu.open .menu-list { max-width: calc(620px + 155 * var(--fk)); }
  .menu.open .menu-list a { font-size: calc(16px + 4 * var(--fk)); padding-inline: calc(20px + 5 * var(--fk)); }
  .menu.open .menu-list li:first-child a { padding-left: calc(26px + 6.5 * var(--fk)); }
  .menu.open .menu-list li:last-child a { padding-right: calc(26px + 6.5 * var(--fk)); }
}
@media (hover: hover) and (min-width: 860px) {
  .menu:hover .menu-list, .menu:focus-within .menu-list { max-width: calc(620px + 155 * var(--fk)); }
  .menu:hover .menu-list a, .menu:focus-within .menu-list a { font-size: calc(16px + 4 * var(--fk)); padding-inline: calc(20px + 5 * var(--fk)); }
  .menu:hover .menu-list li:first-child a, .menu:focus-within .menu-list li:first-child a { padding-left: calc(26px + 6.5 * var(--fk)); }
  .menu:hover .menu-list li:last-child a, .menu:focus-within .menu-list li:last-child a { padding-right: calc(26px + 6.5 * var(--fk)); }
}
@media (max-width: 859px) {
  .menu-list { transition: max-height .8s var(--menu-ease), opacity .5s ease, padding .8s var(--menu-ease); }
  .menu.open .menu-list { max-height: 420px; padding: 12px 0; }
  .menu-list a, .menu-list li:first-child a, .menu-list li:last-child a { line-height: 40px; }
  .menu.open .menu-list a, .menu.open .menu-list li:first-child a, .menu.open .menu-list li:last-child a { font-size: 17px; line-height: 54px; padding-inline: 22px; }
  .menu-list a { transition: color .2s, font-size .8s var(--menu-ease), line-height .8s var(--menu-ease), padding .8s var(--menu-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle, .menu-list, .menu-list a { transition: none; }
}
/* Exp 43: texts of Option A, Option B and Tilion fade in one after another, each just after its line starts drawing. */
.js .s-process .s-operators .option.reveal { transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .s-process .s-operators .option.reveal:nth-child(1) { transition-delay: .8s; }
.js .s-process .s-operators .option.reveal:nth-child(2) { transition-delay: 1.2s; }
.js .s-process .s-operators .option.reveal:nth-child(3) { transition-delay: 1.6s; }
.js .s-process .s-operators .option:nth-child(2)::before { transition-delay: 1s; }
.js .s-process .s-operators .option:nth-child(3)::before { transition-delay: 1.4s; }
/* Exp 44: "Wir arbeiten…" text + customer list as wide as both founder columns (from 1200px, where the pattern sits right). */
@media (min-width: 1200px) { .s-about .about-bottom .audience-right { grid-column: 1 / 3; } }
/* Exp 45: LinkedIn links – on hover the orange underline runs out to the right and redraws from left to right. */
.s-about .person .link-u .t { position: relative; border-bottom-color: transparent; }
.s-about .person .link-u .t::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1.5px; height: 1.5px;
  background: var(--orange); transform-origin: left center;
}
@keyframes line-sweep {
  0%     { transform: scaleX(1); transform-origin: right center; }
  45%    { transform: scaleX(0); transform-origin: right center; }
  45.01% { transform: scaleX(0); transform-origin: left center; }
  100%   { transform: scaleX(1); transform-origin: left center; }
}
.s-about .person .link-u:hover .t::after, .s-about .person .link-u:focus-visible .t::after { animation: line-sweep .9s cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .s-about .person .link-u .t::after { animation: none !important; } }

/* Exp 46: the three figures (96 / 24/7 / 15+) fade in 300 ms apart, in step with their count-up (main.js). */
.js .figures .figure.reveal:nth-child(2) { transition-delay: .3s; }
.js .figures .figure.reveal:nth-child(3) { transition-delay: .6s; }
/* Exp 47: option sequence faster – 0.2s steps, shorter fades and lines; CTA underline follows sooner. */
.js .s-process .s-operators .option.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .s-process .s-operators .option.reveal:nth-child(1) { transition-delay: .35s; }
.js .s-process .s-operators .option.reveal:nth-child(2) { transition-delay: .55s; }
.js .s-process .s-operators .option.reveal:nth-child(3) { transition-delay: .75s; }
.js .s-process .s-operators .option.in::before { transition-duration: .9s; }
.js .s-process .s-operators .option:nth-child(1)::before { transition-delay: .25s; }
.js .s-process .s-operators .option:nth-child(2)::before { transition-delay: .45s; }
.js .s-process .s-operators .option:nth-child(3)::before { transition-delay: .65s; }
.js .s-process .s-operators.in .link-u .t { transition: background-size .8s cubic-bezier(.65,0,.35,1) 1.5s; }

/* Exp 48: big screens – logo grows only a quarter as much (+25% max); small text (≤16px) only half as much (+50% max);
   the black day-ahead panel does not scale at all (as before Exp 19). */
/* Exp 49: the quarter-hour pattern is at most as big as a founder photo (same width and 3:2 height), top-aligned. */
@media (min-width: 1200px) {
  .s-about { container-type: inline-size; }
  .s-about .about-bottom .pattern {
    align-self: start; width: 100%; max-width: min(600px, (100cqw - 2 * var(--about-gap)) / 3);
    height: auto; min-height: 0; aspect-ratio: 3 / 2;
  }
}
/* Exp 50: "Sicher durch die wachsende Volatilität…" block at most 2/3 of the content width, like the founders. */
@media (min-width: 901px) { .s-tilion .s-tilion-market { max-width: 66.667%; } }
/* Exp 51: menu bar, buttons and menu text grow only a quarter as much on big screens (like the logo). */
/* Exp 52: hero headline exactly as big as the intro sentence "Tilion Energy ist…" (shared size), intro sentence weight 200. */
:root { --lead-fs: calc(clamp(22px, 2.35vw, 34px) + 34 * var(--fk)); }
@media (min-width: 901px) and (max-height: 860px) { :root { --lead-fs: calc(clamp(20px, 2.1vw, 30px) + 30 * var(--fk)); } }
.s-tilion .lead, .hero-copy h1 { font-size: var(--lead-fs); }
.s-tilion .lead { font-weight: 200; }
/* Exp 53: second hero line a bit darker grey (#555, was #6b6b6b). */
.hero-sub { color: #555; }
/* Exp 54: second hero line black and weight 200 (replaces Exp 53). */
.hero-sub { color: var(--ink); font-weight: 200; }
/* Exp 55 (test): hero headline block max 600px wide. */
.hero-copy h1 { max-width: 600px; }
/* Exp 55b (test): hero headline block max 1/3 of the screen width (from 701px; phones keep the full width). */
@media (min-width: 701px) { .hero-copy h1 { max-width: 33vw; } }
@media (max-width: 700px) { .hero-copy h1 { max-width: none; } }

/* Exp 56: orange hero card tidied up – header row with the day average on the right, chart in the middle,
   key figures in four equal columns separated by 1px white lines (line on top, dividers between). */
.market-card { padding: calc(14px + 3.5 * var(--fk)); }
.market-card .market-chart { top: 30%; height: 42%; }
.market-card .mc-head { align-items: flex-start; }
.market-card .mc-head .mc-dot { margin-top: .45em; }
.market-card .mc-avg {
  position: absolute; top: calc(14px + 3.5 * var(--fk)); right: calc(14px + 3.5 * var(--fk));
  margin: 0; text-align: right; font-size: .9em; line-height: 1.25; opacity: .95;
}
.market-card .mc-avg span[data-mc] { display: inline-block; font-size: 1.45em; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.market-card .mc-stats {
  margin-top: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid rgba(255,255,255,.7); padding-top: 8px;
}
.market-card .mc-stats > div { padding: 0 8px; border-left: 1px solid rgba(255,255,255,.45); text-align: left; }
.market-card .mc-stats > div:first-child { padding-left: 0; border-left: 0; }
.market-card .mc-stats > div:last-child { padding-right: 0; }
.market-card .mc-stats dt { white-space: normal; font-size: .85em; line-height: 1.2; opacity: .85; min-height: 2.4em; }
.market-card .mc-stats dd { font-weight: 600; margin-top: 2px; }
/* Exp 57: chart sits directly on the stats line (no gap) and the horizontal line runs edge to edge. */
.market-card { --mc-pad: calc(14px + 3.5 * var(--fk)); padding: var(--mc-pad); }
.market-card .mc-head { order: 0; }
.market-card .market-chart {
  position: relative; top: auto; left: auto; right: auto; order: 1;
  flex: 1 1 0; min-height: 0; height: auto; width: calc(100% + 2 * var(--mc-pad));
  margin: 10px calc(-1 * var(--mc-pad)) 0; display: block;
}
.market-card .mc-stats { order: 2; margin: 0 calc(-1 * var(--mc-pad)); padding: 8px var(--mc-pad) 0; }
/* Exp 58: vertical dividers run from the horizontal line down to the bottom edge of the card. */
.market-card .mc-stats { padding-top: 0; padding-bottom: 0; margin-bottom: calc(-1 * var(--mc-pad)); align-items: stretch; }
.market-card .mc-stats > div { padding-top: 8px; padding-bottom: calc(var(--mc-pad) - 2px); }

/* Exp 59: language switcher (DE/EN). Looks like the other header buttons; on hover (or tap) it opens downwards like the
   menu and shows the other language; clicking it reloads the page in that language (assets/js/i18n.js). */
.i18n-wait body { visibility: hidden; }
.lang { --menu-ease: cubic-bezier(.65,0,.35,1); position: relative; width: var(--nav-h); height: var(--nav-h); flex: none; }
.lang-panel {
  position: absolute; top: 0; left: 0; right: 0; height: var(--nav-h); overflow: hidden;
  display: flex; flex-direction: column; background: var(--btn); color: var(--white); border-radius: 3px;
  font-size: calc(12.5px + 3.125 * var(--fk)); font-weight: 500; letter-spacing: .01em;
  transition: height .8s var(--menu-ease);
}
.lang-current, .lang-option { flex: none; height: var(--nav-h); display: grid; place-items: center; color: inherit; text-decoration: none; }
.lang-current { cursor: default; }
.lang-option { border-top: 1px solid rgba(255,255,255,.14); opacity: 0; transition: opacity .4s ease, color .2s; }
.lang-option:hover, .lang-option:focus-visible { color: var(--orange); }
.lang.open .lang-panel { height: calc(var(--nav-h) * 2); }
.lang.open .lang-option { opacity: 1; transition-delay: .15s, 0s; }
@media (hover: hover) {
  .lang:hover .lang-panel, .lang:focus-within .lang-panel { height: calc(var(--nav-h) * 2); }
  .lang:hover .lang-option, .lang:focus-within .lang-option { opacity: 1; transition-delay: .15s, 0s; }
}
@media (hover: none) { .lang-current { cursor: pointer; } }
@media (prefers-reduced-motion: reduce) { .lang-panel, .lang-option { transition: none; } }
/* Exp 60: main menu ~20% faster, language switcher 50% faster. */
.menu-toggle { transition: max-width .56s var(--menu-ease), padding .56s var(--menu-ease), opacity .28s ease; }
.menu-list a { transition: color .2s, font-size .64s var(--menu-ease), padding .64s var(--menu-ease); }
@media (min-width: 860px) { .menu-list { transition: max-width .8s var(--menu-ease), opacity .48s ease .08s; } }
@media (max-width: 859px) {
  .menu-list { transition: max-height .64s var(--menu-ease), opacity .4s ease, padding .64s var(--menu-ease); }
  .menu-list a { transition: color .2s, font-size .64s var(--menu-ease), line-height .64s var(--menu-ease), padding .64s var(--menu-ease); }
}
.lang-panel { transition: height .4s var(--menu-ease); }
.lang-option { transition: opacity .2s ease, color .2s; }
.lang.open .lang-option { transition-delay: .075s, 0s; }
@media (hover: hover) { .lang:hover .lang-option, .lang:focus-within .lang-option { transition-delay: .075s, 0s; } }
@media (prefers-reduced-motion: reduce) { .menu-toggle, .menu-list, .menu-list a, .lang-panel, .lang-option { transition: none; } }

/* =========================================================
   Exp 62: mobile polish
   ========================================================= */
/* Menu (phones/tablets ≤859px): dropdown spans the full content width under the header,
   bigger link text, and the "Menu" button turns into an X while open. */
@media (max-width: 859px) {
  .menu { position: static; }
  .menu-list { left: var(--pad); right: var(--pad); top: calc(100% - 10px); min-width: 0; }
  .menu.open .menu-list a, .menu.open .menu-list li:first-child a, .menu.open .menu-list li:last-child a { font-size: 19px; line-height: 58px; padding-inline: 24px; }
  .menu-toggle { position: relative; transition: color .3s ease, max-width .56s var(--menu-ease), padding .56s var(--menu-ease); }
  .menu-toggle::before, .menu-toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px; background: var(--white);
    opacity: 0; transform: translate(-50%, -50%) rotate(0deg); transition: opacity .25s ease, transform .45s var(--menu-ease);
  }
  .menu.open .menu-toggle { color: transparent; }
  .menu.open .menu-toggle::before { opacity: 1; transform: translate(-50%, -50%) rotate(45deg); }
  .menu.open .menu-toggle::after { opacity: 1; transform: translate(-50%, -50%) rotate(-45deg); }
}
/* Phones (≤700px): headline higher up, orange card full width, bigger counters, bigger text overall. */
@media (max-width: 700px) {
  .hero-inner { justify-content: space-between; padding-top: calc(92px + 9vh); }
  .hero .market-card { width: 100%; max-width: none; align-self: stretch; }
  .figure .num { font-size: 96px !important; }
  body { font-size: 16.5px; }
  .hero-copy h1, .s-tilion .lead { font-size: 25px !important; }
  .h-md, .s-process .s-operators .opt-label { font-size: 26px !important; }
  .contact .h-lg { font-size: 32px !important; }
  .figure .cap, .photo-note { font-size: 15px !important; }
  .two-col p, .s-process .s-operators .body, .contact .body,
  .service .body, .dash-list li, .s-about .person-text .body, .s-about .about-bottom .audience-right .body,
  .s-about .audience-list li, .s-about .about-bottom .audience-list li { font-size: 16px !important; }
  .step h3 { font-size: 23px !important; }
  .step p, .option h4, .option p:not(.opt-label), .link-u, .link-u.small { font-size: 15.5px !important; }
  .eyebrow, .sub, .role, .label, .field span { font-size: 14.5px !important; }
  .s-about .person-text h3 { font-size: 17px !important; }
  .site-footer { font-size: 13.5px; }
}

/* Alex 2 (24 Nov 2026): replaces Alex 1 (black Tilion/line/underline reverted – all white again as in Exp 21/24/25/26).
   Tilion option highlighted with the brand mark: small white quarter-disc mark before the "Tilion" label,
   and its top line twice as strong (2px) as Option A/B. */
.s-process .s-operators .option.is-tilion .opt-label { display: inline-flex; align-items: center; gap: .32em; }
.s-process .s-operators .option.is-tilion .opt-label::before {
  content: ""; flex: none; width: .72em; height: .72em; background: currentColor;
  -webkit-mask: url("../img/favicon.svg") center / contain no-repeat; mask: url("../img/favicon.svg") center / contain no-repeat;
}
.s-process .s-operators .option.is-tilion::before { height: 2px; top: -1.5px; }

/* Alex 3 (24 Nov 2026): "Wir arbeiten…" block moved down – more room under the LinkedIn links, less to the contact section.
   Contact keeps landing just below the menu bar when jumped to (scroll-margin instead of top padding). */
@media (min-width: 901px) {
  .s-about .about-bottom .audience-right { margin-top: clamp(36px, 6vh, 72px); }
}
.contact { padding-top: clamp(24px, 3vh, 40px); }
#kontakt { scroll-margin-top: calc(var(--hdr) - 8px); }

/* Alex 5 (24 Nov 2026): Impressum + Datenschutz pages (impressum.html, datenschutz.html). Both languages in one page;
   html[lang] (set by i18n.js) decides which article shows. Yellow <mark class="todo"> = placeholder to fill before go-live. */
.legal-body .site-header { position: absolute; }
.nav-back { width: auto; padding: 0 16px; white-space: nowrap; text-decoration: none; }
.legal-page { padding-top: calc(var(--hdr) + clamp(32px, 6vh, 80px)); padding-bottom: clamp(48px, 8vh, 96px); }
.legal-text { max-width: 44em; }
.legal-text h1 { margin-bottom: 8px; }
.legal-text .legal-meta { color: var(--grey-text); font-size: 13.5px; margin-bottom: 28px; }
.legal-text h2 { font-size: calc(17px + 4 * var(--fk)); font-weight: 600; margin: 36px 0 10px; }
.legal-text p { font-size: calc(15px + 3.75 * var(--fk)); line-height: 1.65; margin: 0 0 12px; }
.legal-text a { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.legal-text a:hover { color: var(--orange); }
.legal-text code { font-size: .92em; background: #f2f2f2; padding: 1px 5px; border-radius: 3px; }
.legal-text mark.todo { background: #fff1a8; color: inherit; padding: 1px 4px; border-radius: 2px; }
html:not([lang="en"]) [data-legal="en"], html[lang="en"] [data-legal="de"] { display: none; }

/* Alex 8 (24 Nov 2026): phones only (≤700px).
   Hero: the orange "Live vom Markt" card is hidden (too busy on a phone).
   Vorgehen → Über uns: smaller gap (Über uns top padding 48px instead of menu bar + 5vh); the menu jump to
   #ueber-uns still stops with the heading below the bar (scroll-margin). */
@media (max-width: 700px) {
  .hero .market-card { display: none; }
  #ueber-uns { padding-top: 48px; scroll-margin-top: 40px; }
}

/* Alex 9 (24 Nov 2026): phones only (≤700px). Hero text (headline + links) sits bottom left instead of high up. */
@media (max-width: 700px) {
  .hero-inner { justify-content: flex-end; padding-top: 0; padding-bottom: calc(48px + 20svh); } /* Alex 10: 20% of the screen higher */
}

/* Alex 11 (25 Nov 2026): inline link in body text (Jether Energy in "Wir arbeiten …"); opens in a new tab. */
.link-inline { color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s ease; }
.link-inline:hover, .link-inline:focus-visible { color: var(--orange); }

/* Alex 13 (25 Nov 2026): desktop – "Wir arbeiten…" block pulled up again (the longer Jether sentence adds a line).
   Gap under the LinkedIn links ~32–54px instead of 64–97px, so photos + text + customer list fit one screen again (e.g. 1470×830). */
@media (min-width: 901px) {
  .s-about .about-bottom .audience-right { margin-top: clamp(12px, 2vh, 28px); }
}

/* Alex 14 (25 Nov 2026): desktop – Über uns fits one screen incl. heading and customer list (e.g. 1440×900, ~1700×850):
   founder photos 16:9 instead of 3:2 (faces stay in frame, object-position 50% 22%), "Wir arbeiten…" gap under LinkedIn smaller. */
@media (min-width: 901px) {
  .s-about .portrait { aspect-ratio: 16 / 9; }
  .s-about .about-bottom .audience-right { margin-top: clamp(8px, 1.5vh, 20px); }
}
@media (min-width: 1200px) { .s-about .about-bottom .pattern { aspect-ratio: 16 / 9; } } /* Alex 14: pattern as tall as the 16:9 photos */

/* ---------- Review round 1 Dec 2026: privacy note + mail fallback in the contact form ---------- */
.form-foot { flex-wrap: wrap; }
.form-privacy { flex: 1 1 100%; margin: 0; font-size: calc(12.5px + 6 * var(--fk)); line-height: 1.45; text-align: right; }
.form-privacy a, .form-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 859px) { .form-privacy, .form-status { text-align: left; } .form-foot { justify-content: flex-start; } }
.form-status:empty { display: none; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form.is-sending .send { opacity: .5; cursor: progress; }

/* ---------- Hero card with real data (2 Dec 2026): title + source line, unavailable state ---------- */
.market-card .mc-src { display: block; font-size: .8em; font-weight: 400; opacity: .85; margin-top: 2px; }
.market-card.is-off .mc-avg, .market-card.is-off .mc-stats { opacity: .6; }
.market-card .mc-head { max-width: 62%; }
