/* Home page: hero map, statement, 01 time cards (Zeitkarten), 02 two ways, 03 stages (Vorgehen), 04 proof. */

/* Hero: full-bleed relief map with the copy on top, at every width */
.hero { position: relative; height: 100svh; min-height: 680px; background: var(--night); color: var(--night-text); overflow: hidden; }
.map-layer { position: absolute; inset: 0; transform-origin: 66% 40%; }
.map-layer.is-moving { will-change: transform; }
.hero canvas, .hero svg.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero canvas { opacity: 0; }
.hero-copy { position: absolute; left: var(--pad); top: 21vh; max-width: 560px; z-index: 3; }
.hero-copy h1 { font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
.paths { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.xh { position: absolute; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s; }
.xh.h { left: 0; right: 0; top: 0; height: 1px; background: rgba(191,224,255,0.28); }
.xh.v { top: 0; bottom: 0; left: 0; width: 1px; background: rgba(191,224,255,0.28); }
.xh.label { left: 0; top: 0; font: 400 10.5px var(--mono); letter-spacing: 0.08em; color: var(--pale); background: rgba(10,16,29,0.8); padding: 4px 7px; white-space: nowrap; }
.hero.has-cursor .xh { opacity: 1; }

/* Statement */
.statement { padding: 24vh var(--pad); }
.statement .big { font-weight: 500; font-size: clamp(30px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -0.035em; max-width: 21ch; }

/* 01 · Zeitkarten: cards slide sideways while scrolling, seconds count up against the time by hand */
.zk { position: relative; }
.zk-pin { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; gap: 28px; padding: 96px 0 24px; overflow: hidden; }
.zk-head { padding: 0 var(--pad); }
.zk-head .mono { color: var(--deep); }
.zk-head h2 { margin-top: 12px; font-weight: 500; font-size: clamp(32px, 4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; max-width: 18ch; }
.zk-track { list-style: none; display: flex; gap: 20px; padding: 12px var(--pad); align-items: stretch;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.zk-track::-webkit-scrollbar { display: none; }
.zk.is-pinned .zk-track { overflow: visible; will-change: transform; }
.zk-card { flex: 0 0 clamp(280px, 30vw, 400px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--rule); background: var(--card); transition: border-color .4s, opacity .4s, transform .6s var(--ease); }
.js .zk-card { opacity: 0.4; }
.js .zk-card.on, .js .zk-card.done { opacity: 1; }
.zk-card.on { border-color: var(--deep); }
.zk-task { color: var(--ink-2); }
.zk-q { font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; min-height: 2.4em; }
.zk-sys { margin-top: auto; font: 500 clamp(56px, 5.6vw, 92px)/0.9 var(--mono); letter-spacing: -0.05em; color: var(--deep); font-variant-numeric: tabular-nums; }
.zk-sys b { font-weight: inherit; }
.zk-art { width: 100%; aspect-ratio: 2 / 1; display: block; overflow: visible; }
.zk-art .walker { fill: var(--accent); }
.zk-card.on { transform: translateY(-8px); }
.zk-end { border-style: dashed; }
.zk-end .sign { align-self: flex-start; margin-top: 6px; }
.zk-note { padding: 0 var(--pad); font-size: 12px; color: var(--ink-2); }
/* Phones: native swipe with snap points (the base above); desktop JS pins and scrubs instead */
@media (max-width: 900px) {
  .zk-pin { min-height: 0; padding: 18vh 0 10vh; gap: 28px; }
  .zk-card { flex-basis: 76vw; }
}

/* Section heads */
.ways > .mono, .proof > .mono { color: var(--deep); }
.ways > h2, .proof > h2 { margin-top: 12px; font-weight: 500; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; }

/* 02 · Zwei Wege */
.ways { padding: 18vh var(--pad) 14vh; }
.ways-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.way { display: grid; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.way-map { width: 100%; aspect-ratio: 16 / 9; display: block; overflow: visible; }
.way .mono { color: var(--deep); margin-top: 10px; }
.way h3 { font-weight: 500; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; max-width: 24ch; }
.way-go { font-size: 15px; display: inline-flex; gap: 8px; }
.way-go i { font-style: normal; transition: transform .4s var(--ease); }
.way:hover .way-go i { transform: translateX(6px); }

/* 03 · Vorgehen: one stage at a time, deliverables as cards */
.steps { border-top: 1px solid var(--rule); }
.steps-pin { height: 100svh; display: grid; grid-template-rows: 1fr auto; gap: 28px; padding: 104px var(--pad) 36px; }
.stages { display: grid; align-items: center; min-height: 0; }
.stage { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(260px, 36%) 1fr; gap: 56px; align-items: center; }
.stage-head .mono { color: var(--deep); }
.stage-head h2 { margin-top: 14px; overflow: hidden; font-weight: 500; font-size: clamp(48px, 6.4vw, 104px); letter-spacing: -0.045em; line-height: 0.98; }
.stage-head h2 span { display: block; }
.stage-head p { margin-top: 18px; color: var(--ink-2); font-size: 19px; line-height: 1.45; max-width: 34ch; }
.gets-label { margin-bottom: 14px; color: var(--ink-2); }
.gets { list-style: none; display: grid; gap: 12px; }
.gets li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 20px; align-items: start; padding: 22px 26px; background: var(--card, rgba(255,255,255,0.5)); border: 1px solid var(--rule); }
.gets svg { grid-row: span 2; width: 40px; height: 40px; }
.gets .tick { stroke-dasharray: 26; }
.gets b { font-weight: 500; font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.gets span { color: var(--ink-2); font-size: 16.5px; line-height: 1.45; }
.track { width: 100%; height: 92px; display: block; overflow: visible; }
.stages.is-static .stage, html:not(.js) .stage { grid-area: auto; margin-bottom: 64px; }

/* 04 · Belege */
.proof { padding: 18vh var(--pad); border-top: 1px solid var(--rule); }
.proof .fallkarten { margin-top: 48px; }

/* Phones: the copy sits on calm night at the top, the map (route in the lower half) fades in below. */
@media (max-width: 600px) {
  .hero::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(var(--night) 0%, var(--night) 22%, rgba(10,16,29,0.6) 42%, transparent 58%); }
}
@media (max-width: 900px) {
  .hero-copy { top: 112px; right: var(--pad); }
  .paths { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .steps-pin { padding-top: 84px; gap: 16px; }
  .stage { grid-template-columns: 1fr; gap: 20px; }
  .stage-head h2 { font-size: 44px; }
  .stage-head p { font-size: 16px; margin-top: 10px; }
  .gets li { grid-template-columns: 32px 1fr; gap: 2px 12px; padding: 14px 16px; }
  .gets svg { width: 30px; height: 30px; }
  .gets b { font-size: 18px; }
  .gets span { font-size: 14.5px; }
  .track { display: none; }
}
