/* F · Radlická 115: hero + floor sequence, marquee, years, parallax photos.
   Default = static layout (no JS / reduced motion / paused / no WebGL). html.anim and html.stage enhance it. */
.build { background: #15100B; color: #F7EBD6; position: relative; }
.build__stage { display: grid; gap: 2rem; padding: 2.5rem var(--gutter) 3.5rem; max-width: var(--max); margin-inline: auto; }
.build__viz { position: relative; justify-self: center; width: 100%; max-width: 30rem; }
.build__canvas { display: none; }
.build__svg { display: block; }
.stack-svg { display: block; width: 100%; height: auto; max-height: 34rem; overflow: visible; }
.stack-svg .fl, .stack-svg .fr, .stack-svg .ft { stroke: #15100B; stroke-width: 1.2; stroke-linejoin: round; }
.stack-svg .fl { fill: var(--l); } .stack-svg .fr { fill: var(--r); } .stack-svg .ft { fill: var(--t); }
.stack-svg .win { stroke: #5b4630; stroke-width: 3.4; fill: none; }
.stack-svg .plinth { fill: #2a1d10; stroke: #F59200; stroke-width: 1; }
.stack-svg .guide path { stroke: #F59200; stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; opacity: .7; }
.build__tag { margin: .5rem 0 0; text-align: center; font: 600 .8125rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #D8C9AE; }
.build__panels { display: grid; gap: 1.75rem; min-width: 0; }
.step { min-width: 0; }
.step--intro .lede { font-size: 1.25rem; max-width: 36rem; }
.step--intro h1 .sub { display: block; font-weight: 500; font-style: italic; color: #F7EBD6; font-variation-settings: "SOFT" 100; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1.5rem; }
.note { font-size: .9375rem; color: #D8C9AE; max-width: 36rem; border-left: 3px solid #F59200; padding-left: .9rem; }
.step:not(.step--intro) { border: 2px solid #4a3a28; border-radius: 1.25rem; padding: 1.5rem; }
.step__no { font: 700 .9375rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #F59200; margin: 0 0 .6rem; }
.step h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .35rem; }
.rooms { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .4rem; }
.rooms li { max-width: none; }
.rooms a { display: block; min-height: 2.75rem; padding: .55rem .9rem; margin: 0; border: 1px solid #6e5b44; border-radius: .75rem; background: rgba(247,235,214,.06); font-size: 1.0625rem; line-height: 1.35; }
.rooms a:hover { border-color: #FFC878; background: rgba(247,235,214,.12); }
.stage-only { display: none; }
.floornav { margin-top: .5rem; }
.floornav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.floornav li { max-width: none; }
.floornav a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding: .3rem 1rem; border: 2px solid #8a7658; border-radius: 999px; color: #F7EBD6; font-weight: 600; text-decoration: none; }
.floornav a:hover { border-color: #F7EBD6; }
.floornav a[aria-current="step"] { background: #F59200; border-color: #F59200; color: #000; }
@media (min-width: 62rem) {
  .build__stage { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; padding-block: 3.5rem 4.5rem; gap: 3rem; }
  .build__viz { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hh) + 1.5rem); }
  .build__panels { grid-column: 1; grid-row: 1; gap: 2rem; }
}
@media (max-width: 61.99rem) { .build__viz { max-width: 17rem; } }

/* Pinned, scrubbed sequence: scroll stays native; the stage is position: sticky inside a tall section. */
html.stage .build { height: calc(100svh * 5); }
html.stage .build__stage {
  position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); padding: 0 var(--gutter); gap: 0; overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
}
html.stage .build__viz { grid-column: 2; grid-row: 1; position: relative; top: auto; max-width: none; justify-self: stretch; min-height: 0; }
html.stage .build__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
html.stage .build__svg { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .5s; }
html.stage .build__svg .stack-svg { max-height: 90%; }
html.stage.gl-ready .build__svg { opacity: 0; visibility: hidden; }
html.stage .build__tag { position: absolute; left: .25rem; bottom: .75rem; z-index: 1; margin: 0; text-align: left; }
html.stage .build__panels { grid-column: 1; grid-row: 1; grid-template-rows: 1fr auto; align-content: stretch; padding-block: 1rem; gap: .5rem; }
html.stage .step { grid-area: 1 / 1; align-self: center; opacity: 0; pointer-events: none; translate: 0 1rem; transition: opacity .35s, translate .35s; }
html.stage .step.is-active { opacity: 1; pointer-events: auto; translate: 0 0; }
html.stage .floornav { grid-area: 2 / 1; align-self: end; }
html.stage .stage-only { display: block; font-size: .9375rem; color: #D8C9AE; }
html.stage .step:not(.step--intro) { border: 0; padding: 0; }
html.stage .step--intro .cta-row { margin-block: 1.25rem; }
@media (max-width: 47.99rem) {
  html.stage .build__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 33%) minmax(0, 1fr); }
  html.stage .build__viz { grid-column: 1; grid-row: 1; }
  html.stage .build__panels { grid-column: 1; grid-row: 2; }
  html.stage .step--intro .lede, html.stage .step--intro .note, html.stage .step--intro .btn--ghost { display: none; }
  html.stage .floornav a { padding-inline: .55rem; font-size: .95rem; } html.stage .floornav ol { gap: .25rem; }
  html.stage .step--intro h1 { font-size: 1.85rem; }
  html.stage .step h2 { font-size: 1.9rem; }
  html.stage .stage-only { display: none; }
  html.stage .rooms { gap: .25rem; margin-top: .6rem; } html.stage .rooms a { padding-block: .2rem; }
}

/* Marquee */
.marquee { background: #F59200; color: #000; overflow: hidden; border-block: 3px solid #000; }
.marquee__track { display: flex; width: max-content; max-width: 100%; }
.marquee__list { list-style: none; margin: 0; padding: .9rem 0; display: flex; flex-wrap: wrap; gap: .25rem 0; font: 700 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--font-display); }
.marquee__list li { max-width: none; white-space: nowrap; padding-inline: 1.1rem; }
.marquee__list li::before { content: "◆" / ""; font-size: .6em; margin-right: 1.1rem; vertical-align: .15em; }
.marquee__list[aria-hidden="true"] { display: none; }
.marquee__list--b { display: none; }
html.anim .marquee__track { max-width: none; animation: marq 55s linear infinite; }
html.anim .marquee__list { flex-wrap: nowrap; flex: none; }
html.anim .marquee__list[aria-hidden="true"] { display: flex; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Years: counter + milestones */
.years__count { font: 700 clamp(3.5rem, 15vw, 11rem)/.95 var(--font-display); color: #F59200; margin: 0 0 1.5rem; max-width: none; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em; display: flex; flex-wrap: wrap; gap: 0 .15em; }
.years__arrow { color: #F7EBD6; }
.years__intro { max-width: 40rem; }
.hist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-left: 3px solid #4a3a28; }
.hist li { position: relative; display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 1rem 0 1rem 1.5rem; max-width: none; }
.hist li::before { content: "" / ""; position: absolute; left: -.6rem; top: 1.55rem; width: .9rem; height: .9rem; border-radius: 50%; background: #15100B; border: 3px solid #8a7658; }
.hist li.is-passed::before { background: #F59200; border-color: #F59200; }
.hist h3 { font-size: 1.9rem; margin: 0; color: #F59200; font-variant-numeric: lining-nums; }
.hist p { margin: 0 0 .5rem; }
.hist li:last-child h3 { color: #FFC878; }
@media (max-width: 40rem) { .hist li { grid-template-columns: 1fr; gap: .25rem; } }

/* Parallax photo layers */
.layers { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem 1rem; margin-top: 2rem; align-items: start; }
.plx { min-width: 0; }
.plx--a { grid-column: 1 / span 7; }
.plx--b { grid-column: 7 / span 6; margin-top: 4rem; position: relative; z-index: 1; }
.plx--c { grid-column: 3 / span 6; }
.layers figure { background: var(--bg); padding: .5rem .5rem 0; border-radius: 1.25rem; box-shadow: 0 .5rem 2rem rgba(23,18,13,.18); }
.layers figcaption { padding: .6rem .5rem .8rem; }
@media (max-width: 47.99rem) { .plx--a, .plx--b, .plx--c { grid-column: 1 / -1; margin-top: 0; } }
@supports (animation-timeline: view()) {
  html.anim .plx { animation: plx linear both; animation-timeline: view(); }
  html.anim .plx--a { --f: 3rem; --t: -3rem; }
  html.anim .plx--b { --f: 7rem; --t: -6rem; }
  html.anim .plx--c { --f: 2rem; --t: -4rem; }
}
@keyframes plx { from { translate: 0 var(--f, 2rem); } to { translate: 0 var(--t, -2rem); } }

/* Reveals and hero intro (only when motion is allowed) */
html.anim .reveal { opacity: 0; translate: 0 1.5rem; transition: opacity .6s, translate .6s; }
html.anim .reveal.in { opacity: 1; translate: 0 0; }
html.anim .step--intro > * { animation: rise .8s both; }
html.anim .step--intro > :nth-child(2) { animation-delay: .1s; } html.anim .step--intro > :nth-child(3) { animation-delay: .2s; }
html.anim .step--intro > :nth-child(4) { animation-delay: .3s; } html.anim .step--intro > :nth-child(n+5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; translate: 0 1.5rem; } to { opacity: 1; translate: 0 0; } }
@media (forced-colors: active) {
  .step:not(.step--intro), .rooms a, .floornav a { border: 2px solid CanvasText; }
  .floornav a[aria-current="step"] { background: Highlight; color: HighlightText; }
}
