/* Landing (draft A): the hero map strip, the split stage, the catalog wall, the network mosaic, questions. */

  /* the first screen is laid out from one capped height, never from raw vh */
  :root { --hero: clamp(640px, 100svh, 1080px); }
  .hero { position: relative; min-height: var(--hero); display: grid; grid-template-rows: calc(var(--hero) * 0.64) auto; }
  .strip { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-deep); }
  .tilt { position: absolute; left: -6%; right: -6%; top: -6%; bottom: -6%; transform-origin: 50% 55%;
          transform: perspective(1700px) rotateX(13deg); will-change: transform; }
  .tilt canvas { width: 100%; height: 100%; display: block; }
  .counter { position: absolute; left: 20px; top: 20px; z-index: 2; width: 288px; padding: 12px 14px 10px;
             background: rgba(31, 34, 40, 0.94); border: 1px solid var(--border); }
  /* a soft mask around the plate: map labels near it fade out instead of being cut by its edge */
  .strip::after { content: ""; position: absolute; left: 0; top: 0; width: 460px; height: 320px; z-index: 1; pointer-events: none;
                  background: radial-gradient(ellipse 100% 100% at 0 0, rgba(31, 34, 40, 0.96) 0 62%, rgba(31, 34, 40, 0) 100%); }
  .counter .row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 32px; }
  .counter .lab { font-size: 14px; color: var(--muted); }
  .counter .val { font-family: var(--font-mono); font-size: 24px; color: var(--fg); font-weight: 300; display: inline-flex; }
  .counter .src { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
  .drum { display: inline-block; height: 1.2em; overflow: hidden; line-height: 1.2em; }
  .drum > span { display: block; transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); }
  .drum > span > span { display: block; height: 1.2em; }
  .band { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 56px;
          padding: calc(var(--hero) * 0.035) 48px calc(var(--hero) * 0.045); }
  .band h1 { font-family: var(--font-display); font-weight: 300; font-size: min(8.9vw, calc(var(--hero) * 0.15)); line-height: 0.92;
             letter-spacing: -0.04em; margin-bottom: -0.06em; white-space: nowrap; }
  .say { max-width: 640px; display: flex; flex-direction: column; gap: 10px; }
  .say .line { font-size: var(--text-xl); color: var(--fg); line-height: 1.3; }
  .say .body { font-size: var(--text-base); color: var(--fg-2); max-width: 60ch; }
  .status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--fg-2); margin-top: 4px; }
  .ways { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 2px; }
  html.js .hero .reveal { opacity: 0; transform: translateY(12px); }
  /* bleibtgleich.dev: "Out" (.25,1,.5,1), times 0.2 / 0.4 / 0.8 s only */
  html.js .hero.in .reveal { opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
  html.js .hero.in .reveal.d2 { transition-delay: 0.2s; } html.js .hero.in .reveal.d3 { transition-delay: 0.4s; }

  /* how a run travels: the split stage (the map stays, the column scrolls) */
  section.block { border-top: 1px solid var(--border); }
  .split { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .split .col { padding: 96px 48px 30vh; }
  .split h2, .wall h2, .mosaic h2, .faq h2, .programs h2 { font-size: var(--text-2xl); margin-bottom: 12px; }
  .lede { font-size: var(--text-lg); color: var(--fg-2); max-width: 46ch; }
  .scrub { margin: 32px 0 24px; display: flex; align-items: center; gap: 16px; }
  .scrub label { font-size: 14px; color: var(--muted); white-space: nowrap; }
  .scrub output { font-family: var(--font-mono); font-size: 14px; color: var(--fg); min-width: 64px; }
  input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
  input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--border-strong); }
  input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -9px; background: var(--bg); border: 2px solid var(--fg); border-radius: 50%; }
  input[type=range]::-moz-range-track { height: 1px; background: var(--border-strong); }
  input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: var(--bg); border: 2px solid var(--fg); border-radius: 50%; }
  .stops { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .stops li { position: relative; padding: 0 0 0 28px; min-height: 42vh; opacity: 0.42; transition: opacity 0.25s var(--ease-standard); }
  .stops li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--fg); border-radius: 50%; }
  .stops li.on { opacity: 1; } .stops li.on::before { background: var(--fg); }
  .stops .num { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
  .stops h3 { font-size: var(--text-xl); margin: 2px 0 10px; }
  .stops p { max-width: 44ch; color: var(--fg-2); }
  .stops .more { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
  .stops li.on .more { max-height: 220px; }
  .stage { position: relative; border-left: 1px solid var(--border); }
  .stage-in { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg-deep); }
  .stage-in canvas { width: 100%; height: 100%; display: block; }
  .stage-num { position: absolute; right: 24px; top: 24px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
  .stage-num b { color: var(--fg); font-weight: 400; font-size: 40px; display: block; text-align: right; font-weight: 300; }

  /* signature: the edge-to-edge marquee of stops */
  .marquee { overflow: hidden; border-top: 1px solid var(--border); padding: 28px 0; }
  .mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
  .mq-track span { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 8vw, 128px); color: rgba(255, 255, 255, 0.22); white-space: nowrap; padding-right: 0.5em; line-height: 1; }
  @keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* the lines: a catalog wall of title cards, rows by status */
  .wall { padding: 96px 0 72px 48px; }
  .wall header { max-width: 640px; margin-bottom: 40px; padding-right: 48px; }
  .wrowc { margin-bottom: 36px; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out); }
  .wall.focus .wrowc { opacity: 0.5; } .wall.focus .wrowc.lift { opacity: 1; transform: translateY(-4px); }
  .rh { display: flex; align-items: center; gap: 14px; padding-right: 48px; margin-bottom: 14px; }
  .rh h3 { font-size: var(--text-xl); }
  .rh .cnt { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
  .rh .arrows { margin-left: auto; display: flex; gap: 8px; }
  .arw { width: 44px; height: 44px; background: transparent; border: 1px solid var(--border-strong); color: var(--fg); cursor: pointer; font-size: 18px;
         transition: background-color var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-press); }
  .arw:hover { background: var(--surface-2); } .arw:active { transform: scale(0.97); }
  .track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 48px 14px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
  .tile { flex: none; width: 248px; min-height: 300px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
          scroll-snap-align: start; cursor: pointer; text-align: left; color: inherit; padding: 0;
          transition: width 0.32s var(--ease-out), border-color 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard); }
  .tile:hover, .tile:focus-visible, .tile.open { width: 440px; border-color: var(--border-strong); background: var(--surface-2); }
  .tile svg { width: 100%; height: 150px; display: block; border-bottom: 1px solid var(--border); background: #25282e; }
  .tile .tb { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
  .tile .tt { font-family: var(--font-mono); font-size: 16px; color: var(--fg); }
  .tile .ts { font-size: 14px; color: var(--muted); }
  .tile .tm { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease-out); }
  .tile:hover .tm, .tile:focus-visible .tm, .tile.open .tm { grid-template-rows: 1fr; }
  .tile .tm > div { overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
  .tile .io { font-family: var(--font-mono); font-size: 14px; color: var(--fg); }
  .tile .sum { font-size: 14px; color: var(--fg-2); }
  .tile .chip { align-self: flex-start; font-family: var(--font-mono); font-size: 13px; padding: 2px 8px; border: 1px solid var(--border-strong); color: var(--fg); letter-spacing: .04em; }
  .tile .pg { font-size: 14px; color: var(--fg-2); }
  .tile .pg a { color: var(--fg); text-underline-offset: 4px; }

  /* the network: figures beside a printed picture */
  .mosaic { padding: 96px 48px; }
  .mgrid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 1px; background: var(--border); border: 1px solid var(--border); margin-top: 36px; }
  .mgrid > * { background: var(--bg); padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
  .mgrid .photo { grid-row: span 3; padding: 0; background: #25282e; }
  .mgrid .photo svg { width: 100%; flex: 1; display: block; }
  .mgrid .photo p { padding: 14px 20px 18px; font-size: 14px; color: var(--fg-2); }
  .fig .k { font-size: 14px; color: var(--muted); }
  .fig .v { font-family: var(--font-mono); font-weight: 300; font-size: 40px; color: var(--fg); line-height: 1.05; letter-spacing: -0.02em; }
  .fig .v small { font-size: 18px; color: var(--fg-2); margin-left: 6px; letter-spacing: 0; }
  .fig .s { font-size: 13px; color: var(--muted); }
  .fig.wide { grid-column: span 2; }

  .programs { padding: 56px 48px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
  .programs h2 { font-size: var(--text-xl); }
  .plist { display: flex; flex-wrap: wrap; gap: 4px 28px; }
  .plist a { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; text-decoration: none; color: var(--fg-2); font-size: 14px; }
  .plist a b { font-weight: 400; color: var(--fg); font-size: 16px; }
  .plist a span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
  .plist a:hover b { color: var(--muted); }

  .faq { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .faq .col { padding: 96px 48px; }
  .faq details { border-top: 1px solid var(--border); }
  .faq details:last-of-type { border-bottom: 1px solid var(--border); }
  .faq summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--text-lg); color: var(--fg); padding: 12px 0; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--muted); transition: transform 0.25s var(--ease-out); }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq summary:hover { color: var(--muted); }
  .faq details p { padding: 0 0 20px; max-width: 58ch; color: var(--fg-2); }
  .faq .tall { border-left: 1px solid var(--border); background: #25282e; position: relative; }
  .faq .tall svg { position: sticky; top: 0; width: 100%; height: 100vh; max-height: 980px; display: block; }

  .cta { padding: 120px 48px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; border-top: 1px solid var(--border); }
  .cta p { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px); color: var(--fg); line-height: 1.15; max-width: 26ch; letter-spacing: -0.02em; }

  html.js .rv { opacity: 0; transform: translateY(18px); }
  html.js .rv.seen { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }

  @media (max-width: 1100px) {
    .band { grid-template-columns: 1fr; gap: 16px; }
    .mgrid { grid-template-columns: 1fr 1fr; } .mgrid .photo { grid-row: auto; grid-column: span 2; min-height: 320px; }
  }
  @media (max-width: 860px) {
    .hero { height: auto; min-height: 0; grid-template-rows: auto auto; }
    .strip { height: 56svh; min-height: 380px; }
    .counter { left: 12px; top: 12px; width: 236px; padding: 10px 12px; }
    .strip::after { width: 300px; height: 210px; }
    .counter .val { font-size: 17px; } .counter .lab { font-size: 13px; } .counter .row { min-height: 26px; gap: 12px; } .counter .src { font-size: 13px; margin-top: 4px; padding-top: 4px; }
    .band { padding: 28px 16px 36px; } .band h1 { font-size: 64px; }
    .split, .faq { grid-template-columns: 1fr; }
    .split .col { padding: 64px 16px 24px; }
    .stage { order: -1; border-left: 0; } .stage-in { height: 62svh; position: sticky; top: 60px; }
    .stops li { min-height: 46svh; }
    .wall { padding: 64px 0 48px 16px; } .wall header, .rh { padding-right: 16px; } .track { padding-right: 16px; }
    .tile:hover, .tile:focus-visible, .tile.open { width: 300px; }
    .mosaic, .faq .col { padding: 64px 16px; } .programs { grid-template-columns: 1fr; padding: 48px 16px; }
    .mgrid { grid-template-columns: 1fr; } .mgrid .photo, .fig.wide { grid-column: auto; }
    .faq .tall { display: none; } .cta { padding: 80px 16px; }
  }
  @media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .tilt { transform: perspective(1700px) rotateX(13deg); } }

  main.land .foot { margin-top: 0; }
  .say .tick { font-family: var(--font-mono); font-size: 16px; color: var(--muted); letter-spacing: 0.04em; }
  .soon { margin: 6px 0 2px; }
  .stamp.big { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: 0.1em; padding: 8px 16px 6px; font-weight: 400; border-color: rgba(255,255,255,.45); }
  .status { font-size: 14px; color: var(--fg-2); margin-top: 4px; max-width: 60ch; }
  .ways { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
  .ways .xway svg { width: 15px; height: 15px; }
  .token { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 4px 28px; justify-content: start; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 6px; }
  .token > div { display: flex; flex-direction: column; gap: 2px; }
  .token .k { font-size: 13px; color: var(--muted); }
  .token .v { font-family: var(--font-mono); font-size: 22px; font-weight: 300; color: var(--fg); }
  .token .src, .token .ca { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .token .ca { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .token .ca code { font-size: 13px; }
  .tile .ulink.sm { align-self: flex-start; }
  .mgrid .photo .nopic { flex: 1; display: grid; place-items: center; padding: 40px; color: var(--muted); font-size: 14px; min-height: 320px; text-align: center; }
  .fig .s a { color: var(--fg-2); text-underline-offset: 4px; }
  .faq details p a { color: var(--fg); text-underline-offset: 4px; }
  @media (max-width: 860px) { .token { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
