/* ============================================================
   gunsul.quest // 건설
   Brutalist Construction Documentary
   ============================================================ */

/* Palette
   Foundation Black   #0f0f0f
   Raw Concrete       #2c2c2c
   Concrete Mid       #1a1a1a
   Steel Silver       #b8b8b8
   Plaster White      #f2f0eb
   Rebar Orange       #e85d26
   Safety Yellow      #f5c518
   Blueprint Indigo   #1e3a5f (used as muted bg)
   Scaffold Gray      #4a4a4a
*/

:root {
    --c-foundation: #0f0f0f;
    --c-concrete-mid: #1a1a1a;
    --c-concrete: #2c2c2c;
    --c-scaffold: #4a4a4a;
    --c-steel: #b8b8b8;
    --c-plaster: #f2f0eb;
    --c-rebar: #e85d26;
    --c-safety: #f5c518;

    --f-display: 'Bebas Neue', 'Inter', sans-serif;
    --f-body: 'Noto Sans KR', 'Inter', 'Lora', sans-serif;
    --f-mono: 'Share Tech Mono', 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--c-foundation);
}

body {
    background: var(--c-foundation);
    color: var(--c-plaster);
    font-family: var(--f-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
}

::selection {
    background: var(--c-rebar);
    color: var(--c-foundation);
}

/* SVG namespace holder */
.noise-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Concrete noise overlay */
.concrete-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 320px 320px;
    mix-blend-mode: overlay;
    transition: opacity 1200ms ease;
}

.concrete-noise.is-visible {
    opacity: 0.06;
}

/* ------------------------------------------------------------
   Scroll Container with snap
   ------------------------------------------------------------ */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* ------------------------------------------------------------
   Floor (section) base
   ------------------------------------------------------------ */
.floor {
    position: relative;
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 80px 96px 80px 64px;
    overflow: hidden;
    border-bottom: 1px solid rgba(74, 74, 74, 0.4);
}

.floor::before,
.floor::after {
    content: "";
    position: absolute;
    background: rgba(184, 184, 184, 0.18);
    pointer-events: none;
}

.floor::before {
    /* Horizontal scaffolding line */
    left: 0;
    right: 0;
    height: 1px;
    top: 88px;
}

.floor::after {
    /* Vertical scaffolding line */
    top: 0;
    bottom: 0;
    width: 1px;
    left: 96px;
}

/* Massive floor number background */
.floor-bg-number {
    position: absolute;
    bottom: -4vw;
    right: -2vw;
    font-family: var(--f-display);
    font-size: 30vw;
    line-height: 0.85;
    color: var(--c-steel);
    opacity: 0.06;
    letter-spacing: -0.02em;
    pointer-events: none;
    user-select: none;
    transform: scale(0.92);
    transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 1100ms ease;
    z-index: 0;
}

.floor.is-active .floor-bg-number {
    transform: scale(1);
    opacity: 0.09;
}

/* Hanja background */
.hanja-bg {
    position: absolute;
    top: 50%;
    right: -6vw;
    transform: translateY(-50%);
    font-family: var(--f-display);
    font-size: 25vw;
    line-height: 1;
    color: var(--c-steel);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.02em;
    z-index: 0;
}

.hanja-bg-mirror {
    right: auto;
    left: -6vw;
}

/* Floor tag */
.floor-tag {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--f-mono);
    font-size: 13px;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-bottom: 24px;
    padding: 8px 0;
    border-top: 1px solid var(--c-rebar);
    border-bottom: 1px solid rgba(232, 93, 38, 0.35);
}

.floor-tag .tag-num {
    color: var(--c-rebar);
    letter-spacing: 0.12em;
}

.floor-tag .tag-label {
    color: var(--c-plaster);
    letter-spacing: 0.18em;
}

/* Floor headline */
.floor-headline {
    position: relative;
    z-index: 2;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: var(--c-plaster);
    text-transform: uppercase;
    margin-bottom: 64px;
    max-width: 92%;
}

.floor-headline.split-headline {
    display: flex;
    flex-direction: column;
    line-height: 0.88;
}

.floor-headline .emph-orange {
    color: var(--c-rebar);
}

.floor-headline .emph-yellow {
    color: var(--c-safety);
}

/* Scaffolding overlay (per-floor extra) */
.scaffold-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.scaffold-line {
    position: absolute;
    background: rgba(184, 184, 184, 0.2);
}

.scaffold-line.h-line {
    left: 0;
    right: 0;
    height: 1px;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scaffold-line.v-line {
    top: 0;
    bottom: 0;
    width: 1px;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-active .scaffold-line.h-line {
    transform: scaleX(1);
}

.is-active .scaffold-line.v-line {
    transform: scaleY(1);
}

.bolt {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-rebar);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 600ms ease 600ms;
    box-shadow: 0 0 0 2px rgba(232, 93, 38, 0.18);
}

.is-active .bolt {
    transform: translate(-50%, -50%) scale(1);
}

/* ------------------------------------------------------------
   Progress rail (left edge)
   ------------------------------------------------------------ */
.progress-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 100vh;
    background: rgba(184, 184, 184, 0.08);
    z-index: 50;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--c-rebar);
    transition: height 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px rgba(232, 93, 38, 0.55);
}

.notch {
    position: absolute;
    left: -2px;
    width: 8px;
    height: 2px;
    background: var(--c-safety);
    opacity: 0.7;
}

/* ------------------------------------------------------------
   Floor navigation (right edge)
   ------------------------------------------------------------ */
.floor-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 48px;
    height: 100vh;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    background: rgba(15, 15, 15, 0.55);
    border-left: 1px solid rgba(74, 74, 74, 0.5);
    backdrop-filter: blur(2px);
}

.floor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-family: var(--f-mono);
    font-size: 13px;
    text-decoration: none;
    color: var(--c-steel);
    letter-spacing: 0.1em;
    border: 1px solid transparent;
    transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
    position: relative;
}

.floor-link::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: var(--c-scaffold);
}

.floor-link:hover {
    color: var(--c-rebar);
    border-color: var(--c-rebar);
}

.floor-link.active {
    color: var(--c-foundation);
    background: var(--c-safety);
    border-color: var(--c-safety);
}

/* ============================================================
   FLOOR 01 / HERO
   ============================================================ */
.floor-hero {
    background: var(--c-foundation);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.floor-hero::before,
.floor-hero::after {
    background: rgba(184, 184, 184, 0.12);
}

.hero-stack {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1600px;
    padding: 0 64px;
    text-align: center;
}

.rebar-line {
    height: 3px;
    width: 0;
    background: var(--c-rebar);
    margin: 32px auto;
    box-shadow: 0 0 14px rgba(232, 93, 38, 0.45);
    transition: width 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rebar-line.is-drawn {
    width: 100%;
}

.hero-headline {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(8rem, 22vw, 22rem);
    line-height: 0.86;
    letter-spacing: 0.02em;
    color: var(--c-plaster);
    text-transform: uppercase;
    display: inline-flex;
    gap: 0.04em;
}

.hero-headline .char {
    display: inline-block;
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    transform: translateY(0);
    transition: clip-path 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: var(--f-body);
    font-weight: 700;
    line-height: 0.92;
}

.hero-headline .char.is-built {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-subtitle {
    font-family: var(--f-mono);
    font-size: 14px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-steel);
    margin-top: 28px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.hero-subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-meta {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-steel);
    opacity: 0;
    transition: opacity 700ms ease 200ms;
}

.hero-subtitle.is-visible ~ .hero-meta,
.hero-meta.is-visible {
    opacity: 1;
}

.meta-block {
    padding: 6px 14px;
    border: 1px solid rgba(184, 184, 184, 0.25);
    color: var(--c-plaster);
}

.meta-block:nth-child(2) {
    color: var(--c-rebar);
    border-color: rgba(232, 93, 38, 0.5);
}

.hero-corner {
    position: absolute;
    z-index: 3;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-steel);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-corner-tl {
    top: 32px;
    left: 120px;
}

.hero-corner-br {
    bottom: 32px;
    right: 80px;
    text-align: right;
}

.corner-arrow {
    display: inline-block;
    margin-top: 6px;
    color: var(--c-rebar);
    font-size: 18px;
    animation: arrow-bob 1800ms ease-in-out infinite;
}

@keyframes arrow-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ============================================================
   FLOOR 02 / FOUNDATION
   ============================================================ */
.floor-foundation {
    background: var(--c-concrete-mid);
}

.content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 40px;
    max-width: 1500px;
}

.content-block {
    position: relative;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--c-scaffold);
    padding: 32px 36px;
    transition: border-color 220ms ease, transform 220ms ease;
    color: var(--c-plaster);
}

.content-block::before,
.content-block::after {
    content: "";
    position: absolute;
    background: var(--c-rebar);
    transition: transform 320ms ease;
    pointer-events: none;
}

.content-block::before {
    top: -1px;
    left: -1px;
    height: 2px;
    width: 0;
}

.content-block::after {
    bottom: -1px;
    right: -1px;
    width: 2px;
    height: 0;
}

.content-block:hover::before {
    width: calc(100% + 2px);
}

.content-block:hover::after {
    height: calc(100% + 2px);
}

.content-block:hover {
    border-color: var(--c-rebar);
}

.block-overflow-left {
    grid-column: 1 / span 6;
    margin-left: -60px;
}

.block-overflow-right {
    grid-column: 7 / span 6;
    margin-right: -60px;
    background: rgba(30, 58, 95, 0.45);
}

.block-pull-quote {
    grid-column: 3 / span 8;
    margin-top: -40px;
    background: var(--c-foundation);
    border-color: var(--c-rebar);
    padding: 48px 56px;
}

.block-overflow-bottom {
    margin-top: 32px;
    margin-left: 8%;
    margin-right: -40px;
    max-width: 720px;
    background: rgba(15, 15, 15, 0.7);
}

.block-kicker {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-rebar);
    margin-bottom: 14px;
}

.block-body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--c-plaster);
}

.block-body.block-large {
    font-size: 20px;
    line-height: 1.7;
    max-width: 880px;
}

.emph {
    color: var(--c-safety);
    font-weight: 700;
}

.pull-quote {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.18;
    letter-spacing: 0.02em;
    color: var(--c-plaster);
    text-transform: uppercase;
}

.pull-attr {
    margin-top: 18px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-rebar);
}

/* ============================================================
   FLOOR 03 / FRAME
   ============================================================ */
.floor-frame {
    background: var(--c-concrete);
}

.frame-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--c-scaffold);
    border-left: 1px solid var(--c-scaffold);
    margin-top: 24px;
}

.frame-spec {
    border-right: 1px solid var(--c-scaffold);
    border-bottom: 1px solid var(--c-scaffold);
    padding: 32px 28px;
    background: rgba(15, 15, 15, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 220ms ease;
}

.frame-spec:hover {
    background: rgba(232, 93, 38, 0.08);
}

.spec-block-overflow {
    background: var(--c-foundation);
    border-color: var(--c-rebar);
    transform: translateY(36px);
}

.spec-num {
    font-family: var(--f-display);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--c-rebar);
}

.spec-num small {
    font-family: var(--f-mono);
    font-size: 0.32em;
    color: var(--c-steel);
    letter-spacing: 0.14em;
    margin-left: 0.25em;
    vertical-align: top;
}

.spec-label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-plaster);
}

/* ============================================================
   FLOOR 04 / SKIN
   ============================================================ */
.floor-skin {
    background: var(--c-concrete-mid);
}

.skin-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    margin-top: 24px;
    align-items: start;
}

.skin-left {
    padding-right: 24px;
}

.skin-left .block-body {
    margin-bottom: 28px;
    max-width: 540px;
}

.spec-list {
    list-style: none;
    border-top: 1px solid var(--c-scaffold);
}

.spec-list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--c-scaffold);
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-plaster);
    display: flex;
    align-items: center;
    gap: 18px;
}

.li-tag {
    display: inline-block;
    padding: 3px 8px;
    background: var(--c-rebar);
    color: var(--c-foundation);
    font-weight: 700;
    letter-spacing: 0.16em;
    min-width: 48px;
    text-align: center;
}

.skin-right {
    position: relative;
    margin-right: -40px;
}

.curtain-mock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    background: var(--c-scaffold);
    border: 1px solid var(--c-scaffold);
    aspect-ratio: 5 / 7;
    padding: 2px;
}

.curtain-row {
    display: contents;
}

/* Curtain wall: 8 rows of 5 cells generated via repetition */
.curtain-mock::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
}

.curtain-mock {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 2px;
    aspect-ratio: 5 / 7;
}

.curtain-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-column: 1 / -1;
    gap: 2px;
    background: linear-gradient(180deg, rgba(184, 184, 184, 0.14) 0%, rgba(30, 58, 95, 0.4) 60%, rgba(15, 15, 15, 0.7) 100%);
    border: 1px solid var(--c-scaffold);
    height: 100%;
    position: relative;
}

.curtain-row::before,
.curtain-row::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--c-scaffold);
}

.curtain-row::before { left: 33.33%; }
.curtain-row::after { left: 66.66%; }

.curtain-row:nth-child(odd) {
    background: linear-gradient(180deg, rgba(184, 184, 184, 0.22) 0%, rgba(30, 58, 95, 0.55) 60%, rgba(15, 15, 15, 0.75) 100%);
}

.curtain-row:nth-child(3) {
    background: linear-gradient(180deg, rgba(232, 93, 38, 0.18) 0%, rgba(15, 15, 15, 0.85) 100%);
}

.curtain-caption {
    margin-top: 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-steel);
    text-align: right;
}

/* ============================================================
   FLOOR 05 / SYSTEMS
   ============================================================ */
.floor-systems {
    background: var(--c-concrete);
}

.systems-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.system-card {
    border: 1px solid var(--c-scaffold);
    background: rgba(15, 15, 15, 0.55);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: border-color 240ms ease, transform 240ms ease, background 240ms ease;
}

.system-card::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--c-rebar);
    transform: scale(0.4);
    transition: transform 240ms ease;
}

.system-card:hover {
    border-color: var(--c-rebar);
    background: rgba(15, 15, 15, 0.85);
    transform: translateY(-4px);
}

.system-card:hover::before {
    transform: scale(1);
}

.system-card:nth-child(1) { transform: translateY(-16px); }
.system-card:nth-child(4) { transform: translateY(20px); }

.system-card:nth-child(1):hover { transform: translateY(-20px); }
.system-card:nth-child(4):hover { transform: translateY(16px); }

.system-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--c-scaffold);
    padding-bottom: 12px;
}

.sys-id {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-rebar);
}

.sys-name {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-plaster);
}

.sys-body {
    font-family: var(--f-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-plaster);
}

.sys-foot {
    margin-top: auto;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-safety);
    border-top: 1px dashed rgba(184, 184, 184, 0.35);
    padding-top: 12px;
}

/* ============================================================
   FLOOR 06 / TOPPING OUT
   ============================================================ */
.floor-topping {
    background: var(--c-foundation);
    display: flex;
    flex-direction: column;
}

.topping-headline {
    display: flex;
    flex-direction: column;
    line-height: 0.86;
}

.topping-body {
    position: relative;
    z-index: 2;
    margin-top: 8px;
    margin-left: -20px;
    margin-bottom: 48px;
    max-width: 880px;
    padding: 28px 32px;
    border-left: 4px solid var(--c-safety);
    background: rgba(26, 26, 26, 0.65);
}

.manifest {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 720px;
    border-top: 1px solid var(--c-scaffold);
    margin-bottom: 64px;
}

.manifest-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 4px;
    border-bottom: 1px solid var(--c-scaffold);
    font-family: var(--f-mono);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.m-label {
    color: var(--c-steel);
}

.m-value {
    color: var(--c-plaster);
    font-weight: 400;
}

.m-value.emph-orange {
    color: var(--c-rebar);
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid var(--c-rebar);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left,
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-steel);
}

.footer-mark {
    color: var(--c-rebar);
    font-size: 14px;
    letter-spacing: 0.22em;
}

.footer-sub {
    color: var(--c-plaster);
    text-transform: none;
    font-family: var(--f-body);
    letter-spacing: 0.04em;
    font-size: 13px;
}

.footer-right {
    text-align: right;
    align-items: flex-end;
}

/* ------------------------------------------------------------
   Section reveal animation
   ------------------------------------------------------------ */
.floor-tag,
.floor-headline,
.content-block,
.frame-spec,
.system-card,
.skin-left,
.skin-right,
.topping-body,
.manifest,
.spec-list {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-active .floor-tag { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.is-active .floor-headline { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.is-active .content-block,
.is-active .frame-spec,
.is-active .system-card,
.is-active .skin-left,
.is-active .skin-right,
.is-active .topping-body,
.is-active .manifest,
.is-active .spec-list {
    opacity: 1;
    transform: translateY(0);
}

.is-active .content-block:nth-child(1) { transition-delay: 320ms; }
.is-active .content-block:nth-child(2) { transition-delay: 420ms; }
.is-active .content-block:nth-child(3) { transition-delay: 520ms; }

.is-active .frame-spec:nth-child(1) { transition-delay: 320ms; }
.is-active .frame-spec:nth-child(2) { transition-delay: 380ms; }
.is-active .frame-spec:nth-child(3) { transition-delay: 440ms; }
.is-active .frame-spec:nth-child(4) { transition-delay: 500ms; }

.is-active .system-card:nth-child(1) { transition-delay: 320ms; }
.is-active .system-card:nth-child(2) { transition-delay: 400ms; }
.is-active .system-card:nth-child(3) { transition-delay: 480ms; }
.is-active .system-card:nth-child(4) { transition-delay: 560ms; }

/* The two transforms on system cards 1 & 4 conflict with reveal — re-apply */
.is-active .system-card:nth-child(1) { transform: translateY(-16px); }
.is-active .system-card:nth-child(4) { transform: translateY(20px); }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .floor {
        padding: 64px 64px 64px 40px;
    }
    .floor::after { left: 60px; }
    .floor-nav { width: 40px; }
    .hero-corner-tl { left: 80px; }
    .hero-corner-br { right: 60px; }

    .content-grid { grid-template-columns: repeat(6, 1fr); }
    .block-overflow-left { grid-column: 1 / -1; margin-left: 0; }
    .block-overflow-right { grid-column: 1 / -1; margin-right: 0; }
    .block-pull-quote { grid-column: 1 / -1; margin-top: 0; }

    .frame-grid { grid-template-columns: repeat(2, 1fr); }
    .skin-split { grid-template-columns: 1fr; }
    .skin-right { margin-right: 0; }
    .systems-grid { grid-template-columns: 1fr; }
    .system-card:nth-child(1),
    .system-card:nth-child(4) { transform: none; }
    .is-active .system-card:nth-child(1),
    .is-active .system-card:nth-child(4) { transform: translateY(0); }
}

@media (max-width: 640px) {
    body { font-size: 15px; }
    .floor {
        padding: 56px 56px 56px 24px;
    }
    .floor::after { left: 36px; }
    .floor-nav { width: 36px; gap: 16px; }
    .floor-link { width: 26px; height: 26px; font-size: 11px; }
    .hero-corner-tl { left: 48px; top: 20px; }
    .hero-corner-br { right: 50px; bottom: 20px; }
    .hero-stack { padding: 0 24px; }
    .hero-meta { gap: 16px; }
    .floor-headline { margin-bottom: 40px; }
    .frame-grid { grid-template-columns: 1fr; }
    .block-overflow-left,
    .block-overflow-right,
    .block-pull-quote { padding: 24px; }
    .block-pull-quote { padding: 28px; }
    .topping-body { margin-left: 0; padding: 20px 22px; }
}
