/* Home page building (#build). Without JS the floors read as a plain list;
   tower.js adds .is-enhanced to show the sticky illustration. */
.tower-section { padding-bottom: 40px; }
.tower-stage { display: none; }
.floor-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; max-width: 680px; }
.floor-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; box-shadow: var(--shadow);
}
.floor-top { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.floor-lvl {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 12px;
  background: var(--red-tint); color: var(--red); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums;
}
.floor-card h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.015em; margin: 0 0 10px; }
.floor-card p { margin: 0 0 12px; color: var(--muted); }
.floor-card .floor-meta { color: var(--ink); font-weight: 600; font-size: 15px; }
.floor-card .chips { margin-top: 14px; }
.floor-card .btn { margin-top: 6px; }

.is-enhanced .tower-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.is-enhanced .tower-stage {
  display: flex; position: sticky; top: 72px; height: calc(100vh - 72px); align-items: center; justify-content: center;
}
.is-enhanced .floor-steps { display: block; max-width: none; padding: 16vh 0 28vh; }
.is-enhanced .floor-step { min-height: 78vh; display: flex; align-items: center; }
.is-enhanced .floor-card { opacity: .42; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, border-color .35s ease; }
.is-enhanced .floor-step.is-active .floor-card { opacity: 1; transform: none; border-color: rgba(184, 31, 34, .45); }
.is-enhanced .floor-step.is-active .floor-lvl { background: var(--red); color: #fff; }

/* SVG */
#tower { width: 100%; height: 100%; max-height: 760px; overflow: visible; font-family: inherit; }
#tower .floor, #tower .ghost, #tower .label { will-change: transform, opacity; }
#tower .face { stroke: rgba(29, 26, 26, .26); stroke-width: 1; stroke-linejoin: round; transition: fill .45s ease; }
#tower .body .t { fill: #FFFFFF; }
#tower .body .l { fill: #F2E9DC; }
#tower .body .r { fill: #E3D5C3; }
#tower .win { fill: #D9C9B5; transition: fill .45s ease; }
#tower .floor.is-active .body .l { fill: #B81F22; }
#tower .floor.is-active .body .r { fill: #8C171A; }
#tower .floor.is-active .body .t { fill: #FFF7F4; }
#tower .floor.is-active .win { fill: #F3B9AE; }
#tower .obj .t { fill: #FFFFFF; }
#tower .obj .l { fill: #EFE5D7; }
#tower .obj .r { fill: #DDCDB9; }
#tower .obj.red .t { fill: #DA4A41; }
#tower .obj.red .l { fill: #B81F22; }
#tower .obj.red .r { fill: #8C171A; }
#tower .obj.ink .t { fill: #55504E; }
#tower .obj.ink .l { fill: #2E2929; }
#tower .obj.ink .r { fill: #1D1A1A; }
#tower .obj.tint .t { fill: #F7E9E5; }
#tower .obj.tint .l { fill: #EBCFC7; }
#tower .obj.tint .r { fill: #DDB8AE; }
#tower .grid { stroke: rgba(184, 31, 34, .2); stroke-width: 1; }
#tower .bar { fill: #E4D6C4; }
#tower .bar.hot { fill: #B81F22; }
#tower .walltxt { font-size: 10px; font-weight: 800; letter-spacing: .04em; fill: #5B5551; }
#tower .walltxt.light { fill: #FFFFFF; }
#tower .pipe { fill: none; stroke: #B81F22; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; }
#tower .corner { fill: #B81F22; }
#tower .wheel { fill: #1D1A1A; stroke: #FBF8F1; stroke-width: 2; }
#tower .check { fill: none; stroke: #7FE0A0; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
#tower .link { fill: none; stroke: rgba(29, 26, 26, .45); stroke-width: 1.5; stroke-dasharray: 4 4; }
#tower .floor.is-active .link { stroke: #B81F22; }
#tower .pulse { fill: rgba(184, 31, 34, .08); stroke: rgba(184, 31, 34, .45); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
#tower .eye { fill: #FFFFFF; }
#tower .lever { stroke: #1D1A1A; stroke-width: 3; stroke-linecap: round; }
#tower .knob { fill: #B81F22; }
#tower .head { fill: #EBCFC7; stroke: rgba(29, 26, 26, .3); }
#tower .badge { fill: #1F8A4C; }
#tower .badge-check { fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#tower .chart { fill: none; stroke: #FF6B5E; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#tower .beacon { fill: #B81F22; }
#tower .halo { fill: rgba(184, 31, 34, .14); opacity: 0; }
#tower.is-live .halo { opacity: 1; }
#tower .ground-slab .t { fill: #EFE6D8; }
#tower .ground-slab .l { fill: #E2D4C1; }
#tower .ground-slab .r { fill: #D3C2AC; }
#tower .footprint { fill: none; stroke: rgba(184, 31, 34, .5); stroke-width: 1.5; stroke-dasharray: 6 5; }
#tower .ghost .face { fill: rgba(255, 255, 255, .28); stroke: rgba(184, 31, 34, .5); stroke-dasharray: 5 5; }
#tower .leader { stroke: rgba(29, 26, 26, .25); stroke-width: 1; stroke-dasharray: 3 3; }
#tower .pin { fill: #FBF8F1; stroke: rgba(29, 26, 26, .35); }
#tower .label text { font-size: 15px; }
#tower .label .num { font-weight: 800; fill: rgba(184, 31, 34, .45); font-variant-numeric: tabular-nums; }
#tower .label .name { font-weight: 600; fill: rgba(91, 85, 81, .55); }
#tower .label.is-built .num { fill: #B81F22; }
#tower .label.is-built .name { fill: #5B5551; }
#tower .label.is-active .name { fill: #1D1A1A; font-weight: 800; }
#tower .label.is-active .leader { stroke: #B81F22; stroke-dasharray: none; }
#tower .label.is-active .pin { fill: #B81F22; stroke: #B81F22; }
#tower .crane .steel { stroke: #B81F22; stroke-width: 2; }
#tower .crane .lattice { fill: none; stroke: rgba(184, 31, 34, .55); stroke-width: 1.2; }
#tower .crane .tie { fill: none; stroke: rgba(29, 26, 26, .35); stroke-width: 1; }
#tower .crane .weight { fill: #8C171A; }
#tower .crane .cab { fill: #1D1A1A; }
#tower .cable { stroke: #1D1A1A; stroke-width: 1.2; }
#tower .hook { fill: #1D1A1A; }

/* Ambient motion, only when the visitor accepts motion */
@media (prefers-reduced-motion: no-preference) {
  #tower .floor.is-active .pipe, #tower .floor.is-active .link { animation: rb-flow .9s linear infinite; }
  #tower .floor.is-active .pulse { animation: rb-pulse 2.2s ease-out infinite; }
  #tower.is-live .beacon, #tower.is-live .halo { animation: rb-blink 1.6s ease-in-out infinite; }
}
@keyframes rb-flow { to { stroke-dashoffset: -11; } }
@keyframes rb-pulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes rb-blink { 50% { opacity: .25; } }

@media (max-width: 900px) {
  .is-enhanced .tower-grid { display: block; }
  .is-enhanced .tower-stage { top: 72px; height: 38vh; z-index: 5; background: var(--bg); }
  .is-enhanced .tower-stage::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
    background: linear-gradient(var(--bg), rgba(251, 248, 241, 0));
  }
  .is-enhanced .floor-steps { padding: 4vh 0 24vh; }
  .is-enhanced .floor-step { min-height: 54vh; align-items: flex-start; }
  /* Cards already read fade out as they slide under the sticky illustration. */
  .is-enhanced .floor-step:has(~ .is-active) .floor-card { opacity: 0; }
  .floor-card { padding: 22px; }
  .floor-card h3 { font-size: 1.25rem; }
  #tower .labels { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .is-enhanced .floor-card { opacity: 1; transform: none; }
}
