/* ============================================================
   gunsul.quest — cinematic, stacked-sections, kinetic-animated
   Palette: #2C1E14 #6B5B4B #E8DDD0 #4A90A4 #D4A574 #A0483C
            #87CEEB #1C1410
   ============================================================ */

:root {
    --c-dark: #2C1E14;          /* deep construction earth */
    --c-medium: #6B5B4B;        /* exposed concrete */
    --c-light: #E8DDD0;         /* finished plaster */
    --c-blueprint: #4A90A4;     /* technical drawing blue */
    --c-amber: #D4A574;         /* golden hour light */
    --c-rebar: #A0483C;         /* rust steel */
    --c-sky: #87CEEB;           /* completion sky */
    --c-letterbox: #1C1410;     /* letterbox black */

    --f-display: "Noto Sans KR", "Inter", system-ui, sans-serif;
    --f-condensed: "Bebas Neue", "Inter", sans-serif;
    --f-body: "Noto Serif KR", "Lora", Georgia, serif;
}

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

html, body {
    background: var(--c-letterbox);
    color: var(--c-light);
    font-family: var(--f-body);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.9;
    overflow-x: hidden;
}

body {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   Floor elevation indicator (right-edge)
   ============================================================ */
.elevation {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 60;
    pointer-events: none;
    mix-blend-mode: normal;
}

.elevation-rail {
    position: relative;
    height: 60vh;
    width: 88px;
    padding-right: 8px;
}

.elevation-rail::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        rgba(212, 165, 116, 0.15) 0%,
        rgba(212, 165, 116, 0.55) 50%,
        rgba(212, 165, 116, 0.15) 100%
    );
}

.elevation-progress {
    position: absolute;
    right: 13px;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--c-amber);
    transition: height 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 0 12px rgba(212, 165, 116, 0.55);
}

.elevation-floors {
    list-style: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 22px;
    text-align: right;
}

.floor-mark {
    font-family: var(--f-condensed);
    letter-spacing: 0.12em;
    font-size: 10px;
    color: rgba(232, 221, 208, 0.45);
    transition: color 400ms ease, transform 400ms ease;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.floor-mark .floor-num {
    color: var(--c-amber);
    font-size: 14px;
    font-weight: 400;
}

.floor-mark.is-active {
    color: var(--c-light);
    transform: translateX(-4px);
}

.floor-mark.is-active .floor-num {
    text-shadow: 0 0 10px rgba(212, 165, 116, 0.7);
}

.elevation-crane {
    position: absolute;
    right: 4px;
    top: 0;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    transition: top 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
    filter: drop-shadow(0 0 6px rgba(212, 165, 116, 0.5));
}

@media (max-width: 720px) {
    .elevation { display: none; }
}

/* Floor pour transition overlay */
.floor-pour {
    position: fixed;
    left: -10vw;
    right: -10vw;
    top: 50%;
    height: 2px;
    background: var(--c-amber);
    transform: scaleX(0);
    transform-origin: left center;
    z-index: 80;
    pointer-events: none;
    box-shadow: 0 0 16px rgba(212, 165, 116, 0.8);
}

.floor-pour.is-pouring {
    animation: floor-pour 700ms cubic-bezier(0.83, 0, 0.17, 1) both;
}

@keyframes floor-pour {
    0%   { transform: scaleX(0); transform-origin: left center; opacity: 1; }
    50%  { transform: scaleX(1); transform-origin: left center; opacity: 1; }
    51%  { transform: scaleX(1); transform-origin: right center; }
    100% { transform: scaleX(0); transform-origin: right center; opacity: 0.4; }
}

/* ============================================================
   HERO / CINEMA section — letterbox + cinematic frame
   ============================================================ */
.cinema {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: var(--c-letterbox);
    overflow: hidden;
}

.letterbox {
    position: absolute;
    left: 0;
    right: 0;
    height: calc((100vh - (100vw * 9 / 21)) / 2);
    min-height: 60px;
    background: var(--c-letterbox);
    z-index: 5;
}

.letterbox-top { top: 0; border-bottom: 1px solid rgba(212, 165, 116, 0.08); }
.letterbox-bottom { bottom: 0; border-top: 1px solid rgba(212, 165, 116, 0.08); }

.cine-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(96vw, calc((100vh - 120px) * 21 / 9));
    aspect-ratio: 21 / 9;
    background: var(--c-letterbox);
    overflow: hidden;
    isolation: isolate;
}

.cine-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--c-letterbox);
    opacity: 1;
    z-index: 4;
    transition: opacity 1500ms ease-out;
    pointer-events: none;
}

.cine-frame.is-revealed::before { opacity: 0; }

.cine-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
    overflow: visible;
}

.cine-border path {
    stroke-dasharray: 4000;
    stroke-dashoffset: 4000;
    transition: stroke-dashoffset 2000ms cubic-bezier(0.65, 0, 0.35, 1);
}

.cine-frame.is-bordered .cine-border path {
    stroke-dashoffset: 0;
}

/* Frame corner ticks */
.frame-tick {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--c-amber);
    border-style: solid;
    z-index: 7;
    opacity: 0;
    transition: opacity 500ms ease 1800ms;
}
.cine-frame.is-bordered .frame-tick { opacity: 1; }
.frame-tick-tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.frame-tick-tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.frame-tick-bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.frame-tick-br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

/* Backdrop scene */
.cine-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.cine-scene .sky-gradient {
    width: 100%;
    height: 100%;
    display: block;
}

.crane-jib {
    animation: jib-rotate 60s linear infinite;
    transform-box: fill-box;
    transform-origin: 650px 75px;
}

@keyframes jib-rotate {
    0%   { transform: rotate(0deg); }
    50%  { transform: rotate(8deg); }
    100% { transform: rotate(0deg); }
}

.building-grow {
    transform-origin: 500px 429px;
    animation: building-rise 4000ms cubic-bezier(0.16, 1, 0.3, 1) 800ms both;
}

@keyframes building-rise {
    0%   { transform: scaleY(0); opacity: 0; }
    100% { transform: scaleY(1); opacity: 1; }
}

/* Kinetic typeplate overlay */
.cine-typeplate {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    pointer-events: none;
}

.kinetic-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 1vh, 12px);
}

.kt-word {
    display: inline-flex;
    align-items: baseline;
    gap: 0.04em;
}

.kt-korean {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(48px, 9vw, 132px);
    line-height: 1;
    color: var(--c-light);
    letter-spacing: -0.01em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.kt-roman {
    font-family: var(--f-condensed);
    font-weight: 400;
    font-size: clamp(28px, 5.5vw, 72px);
    line-height: 1;
    color: var(--c-amber);
    letter-spacing: 0.05em;
    margin-top: 0.2em;
}

.kt-roman .kt-quest {
    color: var(--c-amber);
    margin-left: 0.1em;
}

.kt-char {
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translate(var(--ox, 0), var(--oy, 0)) rotate(var(--or, 0deg)) scale(0.6);
    transition:
        transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 500ms ease;
    transition-delay: var(--del, 0ms);
}

.is-assembled .kt-char {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
}

/* Cinema tag */
.cine-tag {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--f-condensed);
    font-size: 11px;
    letter-spacing: 0.25em;
    color: rgba(232, 221, 208, 0.55);
    opacity: 0;
    transition: opacity 800ms ease 2200ms;
}

.is-assembled .cine-tag { opacity: 1; }

.cine-meta-sep {
    color: var(--c-amber);
    margin: 0 8px;
}

.cine-scrollhint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--f-condensed);
    font-size: 10px;
    letter-spacing: 0.3em;
    color: rgba(212, 165, 116, 0.7);
    opacity: 0;
    animation: hint-fade 600ms ease 3000ms forwards;
}

.hint-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, transparent, var(--c-amber));
    animation: hint-drop 2.4s ease-in-out infinite;
}

@keyframes hint-fade {
    to { opacity: 1; }
}

@keyframes hint-drop {
    0%, 100% { transform: scaleY(0.6); transform-origin: top; opacity: 0.3; }
    50%      { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   FLOORS — common
   ============================================================ */
.floor {
    position: relative;
    min-height: 100vh;
    padding: clamp(72px, 10vh, 140px) clamp(24px, 6vw, 96px);
    overflow: hidden;
}

.floor-header {
    max-width: 1200px;
    margin: 0 auto clamp(40px, 6vh, 80px);
    position: relative;
    z-index: 2;
}

.floor-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-family: var(--f-condensed);
    letter-spacing: 0.28em;
    font-size: 13px;
    color: var(--c-amber);
}

.floor-tag-num {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--c-amber);
    color: var(--c-amber);
    font-size: 12px;
    line-height: 1;
}

.floor-tag-line {
    flex: 1;
    height: 1px;
    background: var(--c-amber);
    opacity: 0.4;
    width: clamp(80px, 20vw, 240px);
}

.floor-tag-light .floor-tag-num { border-color: var(--c-rebar); color: var(--c-rebar); }
.floor-tag-light { color: var(--c-rebar); }
.floor-tag-light .floor-tag-line { background: var(--c-rebar); }

.floor-title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(48px, 8.5vw, 132px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 3vw, 40px);
    flex-wrap: wrap;
}

.title-kr { color: var(--c-light); }

.title-en {
    font-family: var(--f-condensed);
    font-weight: 400;
    font-size: clamp(28px, 4.5vw, 64px);
    color: var(--c-amber);
    letter-spacing: 0.06em;
}

.floor-subtitle {
    margin-top: 22px;
    max-width: 56ch;
    font-style: italic;
    color: rgba(232, 221, 208, 0.7);
    font-size: clamp(15px, 1.3vw, 19px);
}

/* ============================================================
   FLOOR 1 — Foundation
   ============================================================ */
.floor-foundation {
    background: var(--c-dark);
    color: var(--c-light);
    border-top: 1px solid rgba(212, 165, 116, 0.18);
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(74, 144, 164, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(74, 144, 164, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.blueprint-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.85;
}

.foundation-narrative {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 6vh, 80px);
}

.narrative-block {
    max-width: 640px;
    background: rgba(28, 20, 16, 0.55);
    backdrop-filter: blur(2px);
    padding: 28px 32px;
    border-left: 2px solid var(--c-amber);
}

.narrative-offset {
    margin-left: auto;
    border-left: none;
    border-right: 2px solid var(--c-blueprint);
    text-align: right;
}

.block-marker {
    font-family: var(--f-condensed);
    letter-spacing: 0.3em;
    font-size: 12px;
    color: var(--c-amber);
    margin-bottom: 14px;
}

.narrative-block p {
    color: rgba(232, 221, 208, 0.92);
    font-size: clamp(15px, 1.2vw, 18px);
}

.narrative-block em {
    color: var(--c-amber);
    font-style: italic;
}

.blueprint-legend {
    position: absolute;
    right: clamp(24px, 6vw, 64px);
    bottom: clamp(40px, 6vh, 72px);
    border: 1px dashed rgba(74, 144, 164, 0.5);
    padding: 16px 18px;
    background: rgba(28, 20, 16, 0.7);
    z-index: 2;
    font-family: var(--f-condensed);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: rgba(74, 144, 164, 0.95);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 220px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-line {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--c-blueprint);
}

.legend-line.dashed { background: none; border-top: 1px dashed var(--c-blueprint); height: 0; }
.legend-line.dotted { background: none; border-top: 1px dotted var(--c-blueprint); height: 0; }

.legend-coord {
    color: var(--c-amber);
    font-size: 10px;
    margin-top: 2px;
}

@media (max-width: 720px) {
    .blueprint-legend { position: static; margin: 32px 0 0; }
}

/* ============================================================
   FLOOR 2 — Structure
   ============================================================ */
.floor-structure {
    background: var(--c-medium);
    color: var(--c-light);
    border-top: 1px solid rgba(212, 165, 116, 0.18);
}

.circuit-paths {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.circuit-paths svg { width: 100%; height: 100%; display: block; }

.bento {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.bento-cell {
    position: relative;
    background: rgba(28, 20, 16, 0.55);
    backdrop-filter: blur(3px);
    grid-column: span 4;
    padding: 28px 26px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    isolation: isolate;
}

.bento-tall { grid-column: span 4; grid-row: span 2; min-height: 660px; }
.bento-wide { grid-column: span 8; }

@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .bento-cell { grid-column: span 3; min-height: 320px; }
    .bento-tall { grid-column: span 6; grid-row: auto; min-height: 360px; }
    .bento-wide { grid-column: span 6; }
}

@media (max-width: 640px) {
    .bento { grid-template-columns: 1fr; }
    .bento-cell, .bento-tall, .bento-wide { grid-column: span 1; min-height: 0; }
}

.cell-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    z-index: 3;
}

.bento-cell::before,
.bento-cell::after {
    content: "";
    position: absolute;
    background: var(--c-amber);
    z-index: 4;
    pointer-events: none;
    transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

.bento-cell::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left center;
}

.bento-cell::after {
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top center;
    transition-delay: 200ms;
}

.bento-cell .cell-border::before,
.bento-cell .cell-border::after {
    content: "";
    position: absolute;
    background: var(--c-amber);
    pointer-events: none;
    transition: transform 800ms cubic-bezier(0.65, 0, 0.35, 1);
}

.bento-cell .cell-border::before {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: right center;
    transition-delay: 600ms;
}

.bento-cell .cell-border::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    transform: scaleY(0);
    transform-origin: bottom center;
    transition-delay: 400ms;
}

.bento-cell.is-revealed::before { transform: scaleX(1); }
.bento-cell.is-revealed::after { transform: scaleY(1); }
.bento-cell.is-revealed .cell-border::before { transform: scaleX(1); }
.bento-cell.is-revealed .cell-border::after { transform: scaleY(1); }

.cell-num {
    font-family: var(--f-condensed);
    letter-spacing: 0.28em;
    font-size: 11px;
    color: var(--c-amber);
}

.cell-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(22px, 2.3vw, 32px);
    color: var(--c-light);
    line-height: 1.1;
}

.cell-art {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    border-top: 1px dashed rgba(212, 165, 116, 0.2);
    border-bottom: 1px dashed rgba(212, 165, 116, 0.2);
    padding: 10px 0;
}

.cell-art-wide { height: 130px; }

.cell-art svg {
    width: 100%;
    max-height: 140px;
}

.cell-text {
    color: rgba(232, 221, 208, 0.85);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}

.cell-meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--f-condensed);
    letter-spacing: 0.18em;
    font-size: 11px;
    color: rgba(212, 165, 116, 0.85);
    border-top: 1px dotted rgba(212, 165, 116, 0.3);
    padding-top: 10px;
    margin-top: auto;
}

/* ============================================================
   FLOOR 3 — Completion
   ============================================================ */
.floor-completion {
    background: var(--c-light);
    color: var(--c-dark);
    border-top: 1px solid rgba(160, 72, 60, 0.25);
}

.warm-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 80% 30%,
        rgba(212, 165, 116, 0.45) 0%,
        rgba(232, 221, 208, 0) 60%
    );
    pointer-events: none;
    z-index: 0;
}

.completion-headline {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--c-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}

.ch-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1000ms ease, transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ch-italic {
    font-family: var(--f-body);
    font-style: italic;
    font-weight: 500;
    color: var(--c-rebar);
}

.floor-completion.is-revealed .ch-line {
    opacity: 1;
    transform: translateY(0);
}

.floor-completion.is-revealed .ch-line:nth-child(2) { transition-delay: 250ms; }
.floor-completion.is-revealed .ch-line:nth-child(3) { transition-delay: 500ms; }

.completion-grid {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: clamp(48px, 8vh, 100px) auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

@media (max-width: 900px) {
    .completion-grid { grid-template-columns: 1fr; gap: 28px; }
}

.completion-stanza {
    border-top: 1px solid rgba(44, 30, 20, 0.4);
    padding-top: 20px;
}

.stanza-mark {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 56px;
    color: var(--c-rebar);
    line-height: 1;
    margin-bottom: 14px;
}

.completion-stanza p {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.85;
    color: rgba(44, 30, 20, 0.86);
}

.completion-finish {
    max-width: 1100px;
    margin: clamp(60px, 10vh, 120px) auto 0;
    position: relative;
    z-index: 2;
}

.finish-rule {
    height: 1px;
    background: linear-gradient(to right,
        rgba(160, 72, 60, 0) 0%,
        rgba(160, 72, 60, 0.8) 50%,
        rgba(160, 72, 60, 0) 100%);
    margin-bottom: 16px;
}

.finish-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--f-condensed);
    letter-spacing: 0.28em;
    font-size: 12px;
    color: var(--c-rebar);
}

/* ============================================================
   ROOFTOP
   ============================================================ */
.rooftop {
    position: relative;
    min-height: 100vh;
    padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 96px);
    background: linear-gradient(180deg, var(--c-amber) 0%, var(--c-sky) 100%);
    color: var(--c-dark);
    overflow: hidden;
    border-top: 1px solid rgba(28, 20, 16, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rooftop-sky {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(232, 221, 208, 0.6), transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.4), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.rooftop-cranes {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.rooftop-cranes svg {
    width: 100%;
    height: clamp(180px, 30vh, 320px);
    display: block;
}

.rooftop-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.rooftop-line {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(28px, 4.8vw, 76px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 22ch;
    color: var(--c-dark);
}

.rl-fragment {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
    margin-right: 0.25em;
}

.rooftop.is-revealed .rl-fragment {
    opacity: 1;
    transform: translateY(0);
}

.rooftop.is-revealed .rl-fragment:nth-child(1)  { transition-delay: 0ms; }
.rooftop.is-revealed .rl-fragment:nth-child(2)  { transition-delay: 80ms; }
.rooftop.is-revealed .rl-fragment:nth-child(3)  { transition-delay: 160ms; }
.rooftop.is-revealed .rl-fragment:nth-child(4)  { transition-delay: 240ms; }
.rooftop.is-revealed .rl-fragment:nth-child(5)  { transition-delay: 320ms; }
.rooftop.is-revealed .rl-fragment:nth-child(6)  { transition-delay: 400ms; }
.rooftop.is-revealed .rl-fragment:nth-child(7)  { transition-delay: 480ms; }
.rooftop.is-revealed .rl-fragment:nth-child(8)  { transition-delay: 560ms; }
.rooftop.is-revealed .rl-fragment:nth-child(9)  { transition-delay: 640ms; }
.rooftop.is-revealed .rl-fragment:nth-child(10) { transition-delay: 720ms; }
.rooftop.is-revealed .rl-fragment:nth-child(11) { transition-delay: 800ms; }

.rooftop-nav {
    margin-top: clamp(48px, 8vh, 100px);
    font-family: var(--f-condensed);
    letter-spacing: 0.28em;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--c-dark);
}

.nav-link {
    color: var(--c-dark);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color 250ms ease, color 250ms ease;
}

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

.nav-sep { color: var(--c-rebar); }

.rooftop-stamp {
    margin-top: 28px;
    font-family: var(--f-condensed);
    letter-spacing: 0.4em;
    font-size: 11px;
    color: rgba(28, 20, 16, 0.6);
    border-top: 1px solid rgba(28, 20, 16, 0.18);
    padding-top: 18px;
    max-width: 360px;
}

/* ============================================================
   Reveal helper for bento + rooftop
   ============================================================ */
[data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
