/* ============================================================
   GGOGGL.com — Design Language Implementation
   MUJI calm × 1978 mainframe HUD × diagonal-section spine
   Palette: complementary (linen vs cathode teal, persimmon spark)
   ============================================================ */

/* ---------- Reset & Root ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-linen: #F1ECDF;
    --rice-warm: #E5DCC2;
    --ink-teal: #1F3A3D;
    --persimmon: #D85A2E;
    --sage: #7F8C7B;
    --brass: #B6A887;
    --walnut: #8C5A3C;
    --phosphor: #FF6A00;

    --slant: 7deg;
    --slant-tan: 0.1228; /* tan(7deg) ~= 0.1228 */

    --font-display: 'Major Mono Display', monospace;
    --font-stencil: 'Big Shoulders Stencil Display', sans-serif;
    --font-body: 'Inter Tight', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif: 'Cormorant Infant', Georgia, serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-linen);
}

body {
    background: var(--bg-linen);
    color: var(--ink-teal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ---------- Persistent paper texture (3% noise) ---------- */
.noise-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 200;
    opacity: 0.6;
    mix-blend-mode: multiply;
}

/* ---------- Scan lines (6%) ---------- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 150;
    background: repeating-linear-gradient(
        to bottom,
        rgba(31, 58, 61, 0.06) 0px,
        rgba(31, 58, 61, 0.06) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.55;
}

/* Faint warm tinted vignette */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(ellipse at 70% 30%, rgba(255, 106, 0, 0.04), transparent 60%);
}

/* ---------- HUD Cluster (always visible) ---------- */
.hud-cluster {
    position: fixed;
    top: 28px;
    right: 28px;
    width: 200px;
    padding: 16px 14px 12px;
    z-index: 120;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--ink-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(241, 236, 223, 0.55);
    backdrop-filter: blur(0.6px);
    border: 0.5px solid rgba(31, 58, 61, 0.18);
    pointer-events: none;
}

.hud-bracket {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--ink-teal);
    border-style: solid;
    opacity: 0.55;
}
.hud-bracket-tl { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud-bracket-tr { top: -1px; right: -1px; border-width: 1px 1px 0 0; }
.hud-bracket-bl { bottom: -1px; left: -1px; border-width: 0 0 1px 1px; }
.hud-bracket-br { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.hud-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 0.5px dotted rgba(182, 168, 135, 0.55);
}
.hud-row:last-of-type { border-bottom: none; }

.hud-label {
    opacity: 0.55;
    font-weight: 400;
}
.hud-value {
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hud-waveform {
    width: 100%;
    height: 26px;
    margin: 8px 0 6px;
    opacity: 0.7;
}

.hud-pulse-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.hud-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--persimmon);
    box-shadow: 0 0 8px rgba(216, 90, 46, 0.5);
    animation: pulse-heart 1.43s ease-in-out infinite;
}

@keyframes pulse-heart {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.72); }
}

/* ---------- Static pine sprig (lower-left, fixed) ---------- */
.pine-static {
    position: fixed;
    left: 24px;
    bottom: 24px;
    width: 56px;
    height: 112px;
    z-index: 110;
    opacity: 0.7;
    pointer-events: none;
}

/* ---------- Cursor trail ---------- */
.cursor-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 130;
}

.cursor-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brass);
    transform: translate(-50%, -50%);
    opacity: 0.65;
    animation: cursor-fade 600ms forwards ease-out;
}

@keyframes cursor-fade {
    from { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
}

/* ---------- Acts (six full-bleed sections) ---------- */
.acts {
    position: relative;
    z-index: 10;
}

.act {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: clamp(72px, 12vh, 140px) clamp(40px, 8vw, 120px);
    overflow: hidden;
    /* Folded-paper seam: every act tucks under the next with a 7deg clip-path */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
    margin-bottom: -4vw;
}

.act + .act {
    /* Each subsequent band has a sliver shadow ledge revealed by the clip */
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 6vw), 0 100%);
}

.act:last-of-type {
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-bottom: 0;
}

/* Backgrounds per act, like layered paper bands */
.act-horizon    { background: var(--bg-linen); }
.act-sprig      { background: linear-gradient(180deg, var(--bg-linen) 0%, var(--rice-warm) 100%); }
.act-fieldnotes { background: var(--rice-warm); }
.act-console    { background: linear-gradient(180deg, var(--rice-warm) 0%, var(--bg-linen) 100%); }
.act-persimmon  { background: var(--bg-linen); }
.act-folded     { background: var(--rice-warm); }

/* Aged-brass dotted seam at the top of each act, except the first */
.act + .act::before {
    content: "";
    position: absolute;
    top: 4vw;
    left: -2%;
    width: 104%;
    height: 1px;
    background-image: linear-gradient(to right, var(--brass) 50%, transparent 50%);
    background-size: 6px 1px;
    transform: rotate(calc(-1 * var(--slant)));
    transform-origin: left center;
    opacity: 0.55;
    z-index: 5;
}

/* Each act-content rides the slant: counter-rotated so children stay readable while frame slants */
.act-content {
    position: relative;
    z-index: 6;
    transform: rotate(calc(-1 * var(--slant) * 0.18));
    transform-origin: center;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.act-marker {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--ink-teal);
    opacity: 0.45;
    margin-bottom: clamp(24px, 4vh, 48px);
}

.act-title {
    font-family: var(--font-stencil);
    font-weight: 800;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.95;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-teal);
    margin-bottom: clamp(32px, 5vh, 56px);
    transform: skewY(calc(-1 * var(--slant) * 0.35));
}

.act-title-mono {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.6vw, 72px);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Skeleton system (entrance + permanent motif) ---------- */
.act-skeleton {
    position: absolute;
    inset: clamp(72px, 12vh, 140px) clamp(40px, 8vw, 120px);
    z-index: 4;
    opacity: 1;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

.act.is-developed .act-skeleton {
    opacity: 0;
}

.act-content {
    opacity: 0;
    filter: blur(4px);
    transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
}

.act.is-developed .act-content {
    opacity: 1;
    filter: blur(0);
}

.skeleton {
    background: var(--rice-warm);
    background-image: linear-gradient(
        100deg,
        rgba(229, 220, 194, 0) 0%,
        rgba(241, 236, 223, 0.95) 40%,
        rgba(229, 220, 194, 0) 80%
    );
    background-size: 200% 100%;
    background-repeat: no-repeat;
    background-position: -100% 0;
    border: 0.5px solid rgba(182, 168, 135, 0.35);
    animation: skeleton-shimmer 4s linear infinite;
    transform: skewY(calc(-1 * var(--slant) * 0.4));
}

@keyframes skeleton-shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-wordmark {
    position: absolute;
    top: 38%;
    left: 8%;
    width: 56%;
    height: 14%;
}
.skeleton-sun {
    position: absolute;
    bottom: 12%;
    right: 8%;
    width: 18%;
    aspect-ratio: 1;
    border-radius: 50%;
}
.skeleton-line {
    position: absolute;
    top: 18%;
    right: 6%;
    width: 22%;
    height: 1.5%;
}

.skeleton-sprig {
    position: absolute;
    left: 50%;
    top: 22%;
    transform: translateX(-50%) skewY(calc(-1 * var(--slant) * 0.4));
    width: 18%;
    height: 50%;
}
.skeleton-poem {
    position: absolute;
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%) skewY(calc(-1 * var(--slant) * 0.4));
    width: 44%;
    height: 7%;
}

.skeleton-wedge {
    position: absolute;
    height: 22%;
}
.act-fieldnotes .act-skeleton .skeleton-wedge:nth-child(1) { top: 30%; left: 4%;  width: 26%; }
.act-fieldnotes .act-skeleton .skeleton-wedge:nth-child(2) { top: 38%; left: 36%; width: 28%; }
.act-fieldnotes .act-skeleton .skeleton-wedge:nth-child(3) { top: 46%; left: 70%; width: 26%; }

.skeleton-radar {
    position: absolute;
    left: 6%;
    top: 22%;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
}
.skeleton-telemetry {
    position: absolute;
    right: 6%;
    top: 24%;
    width: 38%;
    height: 50%;
}

.skeleton-persimmon {
    position: absolute;
    left: 50%;
    top: 26%;
    transform: translateX(-50%) skewY(calc(-1 * var(--slant) * 0.4));
    width: 36%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.skeleton-fold {
    position: absolute;
    inset: 18% 6%;
    transform: skewY(calc(-1 * var(--slant) * 0.4));
}

/* ============================================================
   ACT 01 — HORIZON
   ============================================================ */

.act-horizon .act-content {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.wordmark-track {
    position: relative;
    transform: rotate(calc(-1 * var(--slant)));
    transform-origin: left center;
    margin: clamp(16px, 4vh, 56px) 0;
    overflow: visible;
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(64px, 12vw, 168px);
    line-height: 1;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ink-teal);
    white-space: nowrap;
    display: inline-block;
}

.wm-char {
    display: inline-block;
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 700ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.act-horizon.is-developed .wm-char {
    opacity: 1;
    transform: translateX(0);
}
.act-horizon.is-developed .wm-char:nth-child(1) { transition-delay: 200ms; }
.act-horizon.is-developed .wm-char:nth-child(2) { transition-delay: 360ms; }
.act-horizon.is-developed .wm-char:nth-child(3) { transition-delay: 520ms; }
.act-horizon.is-developed .wm-char:nth-child(4) { transition-delay: 680ms; }
.act-horizon.is-developed .wm-char:nth-child(5) { transition-delay: 840ms; }
.act-horizon.is-developed .wm-char:nth-child(6) { transition-delay: 1000ms; }

.sun-disc {
    position: absolute;
    right: -2%;
    bottom: -6%;
    width: clamp(180px, 26vw, 360px);
    aspect-ratio: 1;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.6s ease 1.2s, transform 1.6s ease 1.2s;
}
.act-horizon.is-developed .sun-disc {
    opacity: 1;
    transform: translateY(0);
}

.horizon-line {
    position: absolute;
    bottom: 22%;
    left: -4%;
    width: 108%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brass) 18%, var(--brass) 82%, transparent);
    transform: rotate(calc(-1 * var(--slant)));
    transform-origin: left center;
    opacity: 0.55;
    z-index: 1;
}

.radar-sweep {
    position: absolute;
    left: -8%;
    top: 18%;
    width: clamp(280px, 40vw, 560px);
    aspect-ratio: 1;
    z-index: 1;
    opacity: 0.55;
}

.radar-arm {
    transform-origin: 200px 200px;
    animation: radar-rotate 9s linear infinite;
}

@keyframes radar-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ticker-corner {
    position: absolute;
    top: 8%;
    right: 8%;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-teal);
    opacity: 0.55;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 4;
}
.ticker-dots {
    color: var(--persimmon);
    animation: ticker-blink 1.43s ease-in-out infinite;
}
@keyframes ticker-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.scroll-cue {
    position: absolute;
    bottom: -4%;
    left: 8%;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ink-teal);
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 12px;
}
.scroll-cue-bar {
    display: inline-block;
    width: 60px;
    height: 1px;
    background: var(--brass);
    position: relative;
    overflow: hidden;
}
.scroll-cue-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 30%;
    background: var(--ink-teal);
    animation: scroll-bar-move 2.4s ease-in-out infinite;
}
@keyframes scroll-bar-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(330%); }
}

/* ============================================================
   ACT 02 — THE SPRIG
   ============================================================ */

.act-sprig .act-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.sprig-illustration {
    width: clamp(180px, 22vw, 280px);
    height: auto;
    margin: clamp(20px, 4vh, 48px) 0;
}

.sprig-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 2.4s ease-out;
}

.act-sprig.is-developed .sprig-path {
    stroke-dashoffset: 0;
}
.act-sprig.is-developed .sprig-path:nth-child(odd)  { transition-delay: 0.1s; }
.act-sprig.is-developed .sprig-path:nth-child(even) { transition-delay: 0.3s; }

.poem {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.6;
    color: var(--ink-teal);
    text-align: center;
    max-width: 640px;
    margin-top: clamp(24px, 4vh, 56px);
    letter-spacing: 0.005em;
}

.poem-line {
    display: block;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.act-sprig.is-developed .poem-line:nth-child(1) { transition-delay: 2.4s; opacity: 1; transform: translateY(0); }
.act-sprig.is-developed .poem-line:nth-child(2) { transition-delay: 3.0s; opacity: 1; transform: translateY(0); }

/* ============================================================
   ACT 03 — FIELD NOTES
   ============================================================ */

.wedge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 56px);
    margin-top: clamp(32px, 6vh, 64px);
}

.wedge {
    position: relative;
    padding: 32px 28px 36px;
    background: var(--bg-linen);
    border: 0.5px solid rgba(182, 168, 135, 0.55);
    /* Wedge / trapezoid clip — baseline tilts to slant spine */
    clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 92%);
    transform: skewY(calc(-1 * var(--slant) * 0.5));
    opacity: 0;
    transform-origin: center;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.act-fieldnotes.is-developed .wedge {
    opacity: 1;
    transform: skewY(calc(-1 * var(--slant) * 0.5));
}
.act-fieldnotes.is-developed .wedge[data-wedge="01"] { transition-delay: 0.2s; }
.act-fieldnotes.is-developed .wedge[data-wedge="02"] { transition-delay: 0.5s; }
.act-fieldnotes.is-developed .wedge[data-wedge="03"] { transition-delay: 0.8s; }

.wedge-index {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 0.12em;
    color: var(--walnut);
    margin-bottom: 18px;
    transform: skewY(calc(var(--slant) * 0.5));
}

.wedge-body {
    transform: skewY(calc(var(--slant) * 0.5));
}

.wedge-line {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-teal);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.act-fieldnotes.is-developed .wedge-line {
    opacity: 1;
    transform: translateY(0);
}
.act-fieldnotes.is-developed .wedge-line:nth-child(1) { transition-delay: 1.0s; }
.act-fieldnotes.is-developed .wedge-line:nth-child(2) { transition-delay: 1.3s; }
.act-fieldnotes.is-developed .wedge-line:nth-child(3) { transition-delay: 1.6s; }

.wedge-leader {
    position: absolute;
    bottom: 18px;
    left: 28px;
    right: 28px;
    height: 1px;
    background-image: linear-gradient(to right, var(--brass) 50%, transparent 50%);
    background-size: 5px 1px;
    opacity: 0.55;
    transform: skewY(calc(var(--slant) * 0.5));
}

/* ============================================================
   ACT 04 — THE CONSOLE
   ============================================================ */

.act-console .act-content {
    position: relative;
}

.console-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
    margin-top: clamp(20px, 3vh, 40px);
}

.console-radar {
    position: relative;
    aspect-ratio: 1;
    max-width: 560px;
    width: 100%;
}

.console-radar-svg {
    width: 100%;
    height: 100%;
}

.console-radar-arm {
    transform-origin: 200px 200px;
    animation: radar-rotate 8s linear infinite;
}

.console-tick {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--ink-teal);
    opacity: 0.5;
    letter-spacing: 0.1em;
}

.radar-blip {
    opacity: 0;
    animation: blip-pulse 4s ease-in-out infinite;
}
.radar-blip-2 { animation-delay: 1.2s; }
.radar-blip-3 { animation-delay: 2.4s; }

@keyframes blip-pulse {
    0%, 100% { opacity: 0; }
    10%, 70% { opacity: 0.85; }
}

.console-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.console-wave {
    width: 100%;
    height: 56px;
    opacity: 0.78;
}

.telemetry {
    list-style: none;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-teal);
    background: rgba(241, 236, 223, 0.55);
    border: 0.5px solid rgba(31, 58, 61, 0.18);
    padding: 16px 18px;
}

.telemetry li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 0.5px dotted rgba(182, 168, 135, 0.55);
}
.telemetry li:last-child { border-bottom: none; }

.t-key {
    opacity: 0.5;
}
.t-val {
    letter-spacing: 0.05em;
}

.console-pulse-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-teal);
    opacity: 0.75;
}

.console-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--persimmon);
    box-shadow: 0 0 12px rgba(216, 90, 46, 0.6);
    animation: pulse-heart 1.43s ease-in-out infinite;
}

/* Phosphor wash overlay only on Console */
.scanline-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 106, 0, 0.05), transparent 70%);
    z-index: 1;
}

/* ============================================================
   ACT 05 — THE PERSIMMON
   ============================================================ */

.act-persimmon .act-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.persimmon-stage {
    position: relative;
    width: min(560px, 80vw);
    aspect-ratio: 1;
    margin-top: clamp(24px, 4vh, 56px);
}

.persimmon-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 18px rgba(31, 58, 61, 0.12));
}

.annotation {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-teal);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.act-persimmon.is-developed .annotation {
    opacity: 0.9;
}
.act-persimmon.is-developed .annotation-1 { transition-delay: 1.0s; }
.act-persimmon.is-developed .annotation-2 { transition-delay: 1.25s; }
.act-persimmon.is-developed .annotation-3 { transition-delay: 1.5s; }
.act-persimmon.is-developed .annotation-4 { transition-delay: 1.75s; }
.act-persimmon.is-developed .annotation-5 { transition-delay: 2.0s; }
.act-persimmon.is-developed .annotation-6 { transition-delay: 2.25s; }

.ann-leader {
    display: inline-block;
    width: 80px;
    height: 1px;
    background-image: linear-gradient(to right, var(--brass) 50%, transparent 50%);
    background-size: 4px 1px;
    opacity: 0.7;
}

.annotation-1 { top: 6%; left: -8%; }
.annotation-1 .ann-leader { width: 110px; }
.annotation-2 { top: 22%; right: -10%; flex-direction: row-reverse; }
.annotation-3 { top: 52%; right: -14%; flex-direction: row-reverse; }
.annotation-3 .ann-leader { width: 100px; }
.annotation-4 { bottom: 12%; right: -6%; flex-direction: row-reverse; }
.annotation-5 { bottom: 4%; left: -4%; }
.annotation-6 { top: 42%; left: -14%; }
.annotation-6 .ann-leader { width: 100px; }

.persimmon-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--walnut);
    text-align: center;
    margin-top: clamp(40px, 6vh, 80px);
    letter-spacing: 0.01em;
    opacity: 0;
    transition: opacity 1.4s ease 2.6s;
}
.act-persimmon.is-developed .persimmon-caption {
    opacity: 0.9;
}

/* ============================================================
   ACT 06 — THE FOLDED PAGE
   ============================================================ */

.act-folded {
    padding-bottom: clamp(40px, 8vh, 100px);
}

.fold-container {
    position: relative;
    width: 100%;
    margin-top: clamp(20px, 3vh, 48px);
}

.fold-top {
    position: relative;
    padding: clamp(60px, 12vh, 140px) clamp(32px, 6vw, 100px);
    background: var(--bg-linen);
    border: 0.5px solid rgba(182, 168, 135, 0.55);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 8vw));
    transition: transform 1.4s cubic-bezier(0.4, 0.0, 0.2, 1), clip-path 1.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-origin: top left;
    z-index: 2;
}

.act-folded.is-folded .fold-top {
    clip-path: polygon(0 0, 100% 0, 100% 8vw, 0 calc(100% - 8vw));
    transform: translateY(-2vh) skewY(-1deg);
}

.fold-whisper {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(18px, 2vw, 24px);
    color: var(--ink-teal);
    opacity: 0.8;
    margin-top: 16px;
    letter-spacing: 0.01em;
}

.fold-shadow {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(180deg, rgba(31, 58, 61, 0.12), transparent);
    pointer-events: none;
    transform-origin: top center;
    transform: rotate(-3deg);
    opacity: 0;
    transition: opacity 1s ease;
}
.act-folded.is-folded .fold-shadow {
    opacity: 1;
}

.footer-revealed {
    position: relative;
    padding: clamp(40px, 8vh, 80px) clamp(32px, 6vw, 100px);
    background: var(--rice-warm);
    border: 0.5px solid rgba(182, 168, 135, 0.55);
    border-top: none;
    clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    opacity: 0.45;
    transition: opacity 1.4s ease;
    z-index: 1;
}

.act-folded.is-folded .footer-revealed {
    opacity: 1;
}

.crane {
    width: clamp(110px, 14vw, 170px);
    height: auto;
    flex-shrink: 0;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-teal);
    flex: 1;
}

.footer-coords {
    opacity: 0.55;
}

.footer-pulse-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-teal);
}

.footer-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--persimmon);
    box-shadow: 0 0 8px rgba(216, 90, 46, 0.5);
    animation: pulse-heart 1.43s ease-in-out infinite;
}

/* ============================================================
   GHOST FUTURE — permanent skeleton motif below fold
   ============================================================ */

.ghost-future {
    background: var(--bg-linen);
    padding: clamp(40px, 6vh, 80px) clamp(40px, 8vw, 120px) clamp(80px, 10vh, 140px);
    border-top: 0.5px dotted rgba(182, 168, 135, 0.55);
    position: relative;
}

.ghost-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(20px, 3vw, 56px);
    margin-bottom: clamp(20px, 3vh, 40px);
}

.ghost-row:nth-child(2) {
    grid-template-columns: 1fr 2fr;
}

.ghost-rect {
    height: clamp(80px, 14vh, 160px);
    background: var(--rice-warm);
    background-image: linear-gradient(
        100deg,
        rgba(229, 220, 194, 0) 0%,
        rgba(241, 236, 223, 0.85) 40%,
        rgba(229, 220, 194, 0) 80%
    );
    background-size: 200% 100%;
    background-position: -100% 0;
    border: 0.5px solid rgba(182, 168, 135, 0.4);
    animation: skeleton-shimmer 4s linear infinite;
    transform: skewY(calc(-1 * var(--slant) * 0.5));
    opacity: 0.7;
}

.ghost-rect-small {
    height: clamp(60px, 10vh, 120px);
}

.ghost-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: var(--ink-teal);
    opacity: 0.42;
    text-align: center;
    margin-top: clamp(24px, 4vh, 56px);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .hud-cluster {
        width: 160px;
        font-size: 10px;
        top: 16px;
        right: 16px;
        padding: 12px 10px 10px;
    }
    .pine-static {
        width: 40px;
        height: 80px;
        left: 12px;
        bottom: 16px;
    }
    .wedge-grid {
        grid-template-columns: 1fr;
    }
    .console-layout {
        grid-template-columns: 1fr;
    }
    .annotation {
        font-size: 9.5px;
    }
    .annotation-1, .annotation-2, .annotation-3, .annotation-4, .annotation-5, .annotation-6 {
        right: auto;
        left: 0;
    }
    .annotation-1 { top: -4%; left: 0; }
    .annotation-2 { top: 10%; right: 0; left: auto; flex-direction: row-reverse; }
    .annotation-3 { top: 32%; right: 0; left: auto; flex-direction: row-reverse; }
    .annotation-4 { bottom: 18%; right: 0; left: auto; flex-direction: row-reverse; }
    .annotation-5 { bottom: 2%; left: 0; }
    .annotation-6 { top: 56%; left: 0; }
    .ann-leader { width: 40px !important; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .act { padding: 80px 24px; }
    .wordmark { font-size: 56px; letter-spacing: 0.32em; }
    .ticker-corner { display: none; }
    .ghost-row { grid-template-columns: 1fr !important; }
}

/* Reduced motion: slow the persistent ambient animations, do not eliminate */
@media (prefers-reduced-motion: reduce) {
    .radar-arm, .console-radar-arm {
        animation-duration: 30s;
    }
    .skeleton, .ghost-rect {
        animation-duration: 12s;
    }
    .hud-pulse, .console-pulse, .footer-pulse, .ticker-dots {
        animation-duration: 3s;
    }
}
