/* =================================================================
   prototype.rs  --  Frutiger Aero glossy tech
   palette: #1E3A4C #FFFFFF #2B4257 #E8A54B #B8D4E3 #E8F0F5 #4A90B8 #7EC8E3
   fonts: Albert Sans (display/body), IBM Plex Mono (code)
   ================================================================= */

:root {
    --c-deep:        #1E3A4C;
    --c-white:       #FFFFFF;
    --c-ink:         #2B4257;
    --c-ink-warm:    #1A3A4A;
    --c-amber:       #E8A54B;
    --c-glass-edge:  #B8D4E3;
    --c-frost:       #E8F0F5;
    --c-warm:        #F5F0EB;
    --c-sky-deep:    #4A90B8;
    --c-aqua:        #7EC8E3;
    --c-slate:       #4A6FA5;
    --c-green:       #5CB85C;

    --left-ratio:    60fr;
    --right-ratio:   40fr;

    --font-display:  "Albert Sans", system-ui, -apple-system, sans-serif;
    --font-body:     "Albert Sans", system-ui, sans-serif;
    --font-mono:     "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

    --glass-border:  rgba(255, 255, 255, 0.45);
    --glass-shadow:  0 8px 32px rgba(30, 58, 76, 0.10),
                     inset 0 1px 0 rgba(255, 255, 255, 0.55);
    --glass-shadow-deep: 0 18px 60px rgba(30, 58, 76, 0.14),
                         inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    color: var(--c-ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background:
        radial-gradient(ellipse 1400px 800px at 18% 18%, #DCE9F1 0%, transparent 55%),
        radial-gradient(ellipse 1100px 700px at 82% 82%, #F2EBDD 0%, transparent 55%),
        linear-gradient(180deg, #E8F0F5 0%, #EFEAE0 100%);
    position: relative;
}

/* ---------- background curves ---------- */
.bg-curves {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
}
.bg-curves .curve {
    stroke-linecap: round;
    animation: drift 28s ease-in-out infinite alternate;
}
.bg-curves .curve-2 { animation-duration: 36s; animation-delay: -6s; }
.bg-curves .curve-3 { animation-duration: 22s; animation-delay: -12s; }

@keyframes drift {
    from { transform: translate3d(-30px, -10px, 0); }
    to   { transform: translate3d(30px, 12px, 0); }
}

/* ---------- ambient orbs ---------- */
.ambient-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    animation: float 18s ease-in-out infinite alternate;
}
.orb-1 {
    width: 480px; height: 480px;
    left: -120px; top: 8%;
    background: radial-gradient(circle, #7EC8E3 0%, rgba(126,200,227,0) 70%);
}
.orb-2 {
    width: 600px; height: 600px;
    right: -160px; top: 30%;
    background: radial-gradient(circle, #B8D4E3 0%, rgba(184,212,227,0) 70%);
    animation-duration: 26s;
    animation-delay: -8s;
}
.orb-3 {
    width: 380px; height: 380px;
    right: 18%; bottom: -100px;
    background: radial-gradient(circle, #E8A54B 0%, rgba(232,165,75,0) 70%);
    opacity: 0.22;
    animation-duration: 32s;
}
@keyframes float {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(40px, -30px, 0); }
}

/* ---------- compiler sweep ---------- */
.compiler-sweep {
    position: fixed;
    left: -60vw;
    top: 50%;
    width: 60vw;
    height: 4px;
    pointer-events: none;
    z-index: 60;
    background: linear-gradient(
        90deg,
        rgba(126, 200, 227, 0) 0%,
        rgba(126, 200, 227, 0.6) 35%,
        rgba(255, 255, 255, 1) 50%,
        rgba(126, 200, 227, 0.6) 65%,
        rgba(126, 200, 227, 0) 100%
    );
    box-shadow:
        0 0 18px rgba(126, 200, 227, 0.9),
        0 0 50px rgba(126, 200, 227, 0.5);
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s linear;
}
.compiler-sweep.firing {
    opacity: 1;
    animation: sweep 1.2s cubic-bezier(0.32, 0, 0.32, 1) forwards;
}
@keyframes sweep {
    0%   { left: -60vw; }
    100% { left: 110vw; }
}

.sweep-trails {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.sweep-trail {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(126, 200, 227, 0.18) 30%,
        rgba(126, 200, 227, 0.18) 70%,
        transparent 100%);
    opacity: 0;
    animation: trail-fade 8s ease-out forwards;
}
@keyframes trail-fade {
    0%   { opacity: 0.55; }
    50%  { opacity: 0.22; }
    100% { opacity: 0; }
}

/* ---------- top status strip ---------- */
.status-strip {
    position: fixed;
    top: 18px;
    left: 24px;
    right: 24px;
    height: 44px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: var(--glass-shadow);
}
.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-right { justify-content: flex-end; }
.status-center { display: flex; justify-content: center; }

.logo-mark {
    width: 26px; height: 26px;
    display: grid; place-items: center;
    background: linear-gradient(160deg, #FFFFFF 0%, #DCE9F1 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow:
        0 2px 6px rgba(30, 58, 76, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--c-deep);
}
.logo-dot { color: var(--c-aqua); }

.status-pill {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--c-slate);
    background: rgba(232, 240, 245, 0.7);
    border: 1px solid rgba(184, 212, 227, 0.6);
    padding: 5px 12px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c-green);
    box-shadow: 0 0 8px rgba(92, 184, 92, 0.7);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

.status-meta {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--c-ink);
    opacity: 0.75;
    letter-spacing: 0.02em;
}
.status-divider {
    width: 1px; height: 14px;
    background: rgba(184, 212, 227, 0.7);
}

/* ---------- phase indicator (right edge) ---------- */
.phase-indicator {
    position: fixed;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 10px;
    background: rgba(255, 255, 255, 0.45);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 99px;
    box-shadow: var(--glass-shadow);
}
.phase-thread {
    position: absolute;
    left: 50%;
    top: 26px;
    bottom: 26px;
    width: 1px;
    background: linear-gradient(180deg,
        rgba(184, 212, 227, 0) 0%,
        rgba(184, 212, 227, 0.7) 12%,
        rgba(184, 212, 227, 0.7) 88%,
        rgba(184, 212, 227, 0) 100%);
    transform: translateX(-50%);
    pointer-events: none;
}
.phase-dot {
    position: relative;
    width: 12px; height: 12px;
    padding: 0;
    border: 2px solid var(--c-glass-edge);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.phase-dot:hover {
    border-color: var(--c-sky-deep);
    transform: scale(1.18);
}
.phase-dot.active {
    background: var(--c-aqua);
    border-color: var(--c-aqua);
    box-shadow:
        0 0 0 4px rgba(126, 200, 227, 0.18),
        0 0 14px rgba(126, 200, 227, 0.7);
    transform: scale(1.15);
}
.phase-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-deep);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: var(--glass-shadow);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.phase-dot:hover .phase-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---------- stage / scroll snap ---------- */
.stage {
    position: relative;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    z-index: 1;
}
.stage::-webkit-scrollbar { width: 0; height: 0; }

.section {
    position: relative;
    width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 96px 110px 56px 56px;
    overflow: hidden;
}

.split {
    position: relative;
    display: grid;
    grid-template-columns: var(--left-ratio) var(--right-ratio);
    gap: 28px;
    height: 100%;
    transition: grid-template-columns 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}

/* ---------- panels common ---------- */
.panel-left, .panel-right {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

/* frosted ridge between panels */
.split::before {
    content: '';
    position: absolute;
    left: calc(var(--left-ratio) / (var(--left-ratio) + var(--right-ratio)) * 100% - 1.5px);
    top: 4%;
    bottom: 4%;
    width: 3px;
    background: linear-gradient(180deg,
        rgba(184, 212, 227, 0) 0%,
        rgba(184, 212, 227, 0.55) 18%,
        rgba(184, 212, 227, 0.55) 82%,
        rgba(184, 212, 227, 0) 100%);
    box-shadow: 0 0 8px rgba(184, 212, 227, 0.4);
    border-radius: 3px;
    pointer-events: none;
    z-index: 2;
    transform: translateX(-1.5px);
}

/* left panel cooler/colder/blurrier */
.panel-left {
    color: var(--c-ink);
}
.panel-right {
    color: var(--c-ink-warm);
}

/* ---------- glass blocks ---------- */
.panel-deep, .panel-mid, .hero-glass, .block-card,
.compile-stage, .test-board, .ship-mirror, .ship-card,
.floating-tile, .reflection-strip, .test-cell, .hint-card {
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

/* DEEP layer: highly transparent, strong blur */
.panel-deep {
    padding: 28px 28px 22px;
    background: rgba(30, 58, 76, 0.10);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border-color: rgba(184, 212, 227, 0.5);
    flex-shrink: 0;
}

/* MID layer: semi-transparent, moderate blur */
.panel-mid, .floating-tile, .hint-card {
    background: rgba(232, 240, 245, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}

/* SURFACE layer: mostly opaque, sharp content */
.hero-glass, .block-card, .compile-stage, .test-board, .ship-mirror, .ship-card {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

/* Frutiger glossy sheen on right-side surface panels */
.hero-glass::before,
.block-card::before,
.compile-stage::before,
.test-board::before,
.ship-mirror::before,
.ship-card::before,
.reflection-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.0) 48%,
        rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* ---------- phase label / title ---------- */
.phase-label {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--c-sky-deep);
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(184, 212, 227, 0.55);
    border-radius: 99px;
    margin-bottom: 14px;
}
.phase-label.tag-amber {
    color: #B47A2B;
    background: rgba(232, 165, 75, 0.12);
    border-color: rgba(232, 165, 75, 0.45);
}
.phase-label.tag-green {
    color: #2F7A2F;
    background: rgba(92, 184, 92, 0.12);
    border-color: rgba(92, 184, 92, 0.45);
}

.phase-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(48px, 6.6vw, 92px);
    letter-spacing: -0.025em;
    line-height: 0.95;
    color: var(--c-deep);
    background: linear-gradient(180deg, var(--c-deep) 0%, var(--c-sky-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- spec block (code) ---------- */
.spec-block {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.spec-block.compact { flex: 0 0 auto; }
.spec-block.micro { padding: 14px 16px; }

.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(184, 212, 227, 0.4);
    background: rgba(255, 255, 255, 0.35);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-slate);
    letter-spacing: 0.04em;
}
.spec-tag {
    color: var(--c-deep);
    font-weight: 500;
}
.spec-line { opacity: 0.6; }

.code-block {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.75;
    color: var(--c-slate);
    text-shadow: 0 0 8px rgba(126, 200, 227, 0.18);
    padding: 14px 16px 16px;
    flex: 1 1 auto;
    overflow: auto;
    white-space: pre;
}
.spec-block.micro .code-block {
    padding: 0;
    font-size: 12.5px;
    line-height: 1.7;
}
.code-block .ln {
    display: inline-block;
    width: 26px;
    color: var(--c-glass-edge);
    user-select: none;
    margin-right: 6px;
    text-align: right;
}
.code-block .kw  { color: #6B5BD8; font-weight: 500; }
.code-block .ty  { color: #2F7AB8; font-weight: 500; }
.code-block .fn  { color: #1E3A4C; font-weight: 500; }
.code-block .str { color: #4A8C5C; }
.code-block .num { color: #B47A2B; }
.code-block .ok  { color: var(--c-green); margin-right: 6px; }
.code-block .run { color: var(--c-aqua); margin-right: 6px; }
.code-block .dim { color: var(--c-slate); opacity: 0.75; }
.code-block .blink {
    display: inline-block;
    color: var(--c-aqua);
    animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
.log-block { white-space: pre-wrap; }

/* ---------- hint card ---------- */
.hint-card {
    padding: 16px 18px;
    flex: 0 0 auto;
}
.hint-row {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-slate);
    padding: 6px 0;
    display: flex;
    gap: 10px;
}
.hint-row + .hint-row {
    border-top: 1px dashed rgba(184, 212, 227, 0.5);
}
.hint-key {
    color: var(--c-aqua);
    font-weight: 500;
}

/* ---------- HERO (declare/right) ---------- */
.hero-glass {
    flex: 1 1 auto;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}
.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--c-sky-deep);
    opacity: 0.85;
    text-transform: lowercase;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--c-deep);
}
.hero-emph {
    background: linear-gradient(120deg, var(--c-sky-deep) 0%, var(--c-aqua) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    font-weight: 600;
}
.hero-lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-ink);
    max-width: 56ch;
}

.hero-cta-row {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.cta-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.cta-card:hover { transform: translateY(-2px); }
.cta-card.primary {
    background: linear-gradient(180deg, #FFFFFF 0%, #DCE9F1 100%);
}
.cta-card.ghost {
    background: rgba(255, 255, 255, 0.5);
}
.cta-glyph {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--c-aqua);
    width: 30px; height: 30px;
    display: grid; place-items: center;
    background: var(--c-deep);
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.cta-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cta-top {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-deep);
    font-weight: 500;
}
.cta-bottom {
    font-family: var(--font-display);
    font-size: 11px;
    color: var(--c-slate);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.cta-arrow {
    font-size: 16px;
    color: var(--c-sky-deep);
    transition: transform 0.3s ease;
}
.cta-card:hover .cta-arrow { transform: translate(3px, -3px); }

/* floating tiles in hero */
.floating-tile {
    position: absolute;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.62);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tile-a {
    top: 24px;
    right: 28px;
    animation: bobble 6s ease-in-out infinite alternate;
}
.tile-b {
    bottom: 32px;
    right: 14%;
    animation: bobble 7.5s ease-in-out infinite alternate-reverse;
}
@keyframes bobble {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}
.tile-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-slate);
    letter-spacing: 0.03em;
}
.tile-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--c-deep);
    letter-spacing: -0.01em;
}

/* ---------- SCAFFOLD GRID ---------- */
.scaffold-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    height: 100%;
}
.block-card {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s ease;
}
.block-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glass-shadow-deep);
}
.block-a { grid-row: 1 / span 2; }
.block-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 80%; height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%);
    pointer-events: none;
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.block-card:hover .block-shine { left: 120%; }

.block-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-aqua);
    letter-spacing: 0.04em;
}
.block-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--c-deep);
}
.block-a .block-title { font-size: 28px; }
.block-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--c-ink-warm);
}
.block-meta {
    margin-top: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.meta-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-sky-deep);
    background: rgba(126, 200, 227, 0.14);
    border: 1px solid rgba(126, 200, 227, 0.4);
    padding: 4px 10px;
    border-radius: 99px;
}

/* ---------- COMPILE ---------- */
.compile-stage {
    flex: 1 1 auto;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.compile-headline { display: flex; flex-direction: column; gap: 12px; }
.compile-h {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--c-deep);
    max-width: 28ch;
}

.compile-track {
    position: relative;
    margin-top: 8px;
}
.track-rail {
    height: 8px;
    background: rgba(184, 212, 227, 0.35);
    border-radius: 99px;
    border: 1px solid rgba(184, 212, 227, 0.55);
    box-shadow: inset 0 1px 2px rgba(30, 58, 76, 0.08);
}
.track-fill {
    position: absolute;
    top: 0; left: 0;
    height: 8px;
    width: var(--fill, 0%);
    background: linear-gradient(90deg,
        var(--c-sky-deep) 0%,
        var(--c-aqua) 60%,
        #C8E8F2 100%);
    border-radius: 99px;
    box-shadow:
        0 0 10px rgba(126, 200, 227, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.track-marker {
    position: absolute;
    top: 50%;
    left: var(--at, 0%);
    transform: translate(-50%, -50%);
    width: 18px; height: 18px;
    background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, var(--c-aqua) 60%, var(--c-sky-deep) 100%);
    border-radius: 50%;
    box-shadow:
        0 0 0 4px rgba(126, 200, 227, 0.25),
        0 2px 6px rgba(30, 58, 76, 0.18);
}
.marker-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--c-aqua);
    animation: marker-ring 1.6s ease-out infinite;
}
@keyframes marker-ring {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.4); opacity: 0; }
}
.track-stops {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--c-slate);
    letter-spacing: 0.03em;
}
.stop {
    position: relative;
    padding-top: 10px;
    opacity: 0.55;
}
.stop::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    background: var(--c-glass-edge);
    border-radius: 50%;
}
.stop.done {
    opacity: 1;
    color: var(--c-sky-deep);
}
.stop.done::before {
    background: var(--c-aqua);
    box-shadow: 0 0 6px rgba(126, 200, 227, 0.7);
}
.stop.active {
    opacity: 1;
    color: var(--c-deep);
    font-weight: 500;
}
.stop.active::before {
    background: var(--c-aqua);
    box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.3);
}

.compile-readout {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 18px;
    padding: 22px 24px;
    background: rgba(232, 240, 245, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.readout-item { display: flex; flex-direction: column; gap: 4px; }
.readout-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    color: var(--c-deep);
    letter-spacing: -0.02em;
}
.readout-num .readout-unit {
    font-size: 16px;
    color: var(--c-sky-deep);
    margin-left: 2px;
}
.readout-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--c-slate);
    letter-spacing: 0.02em;
}
.readout-divider {
    width: 1px;
    background: linear-gradient(180deg,
        transparent, rgba(184, 212, 227, 0.7), transparent);
}

.reflection-strip {
    margin-top: auto;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.25) 100%);
    border-top: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
}
.reflection-strip::before {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.0) 70%);
}
.reflection-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--c-slate);
}

/* ---------- TEST ---------- */
.test-board {
    flex: 1 1 auto;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.test-board-head { display: flex; flex-direction: column; gap: 8px; }
.test-h {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -0.02em;
    color: var(--c-deep);
    line-height: 1.15;
}
.test-sub {
    font-size: 15px;
    color: var(--c-ink-warm);
    line-height: 1.5;
    max-width: 60ch;
}
.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.test-cell {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.3s ease;
}
.test-cell:hover { transform: translateY(-2px); }
.cell-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.cell-status {
    color: var(--c-green);
    font-weight: 600;
    background: rgba(92, 184, 92, 0.14);
    border: 1px solid rgba(92, 184, 92, 0.4);
    padding: 2px 8px;
    border-radius: 99px;
}
.test-cell.warn .cell-status {
    color: #B47A2B;
    background: rgba(232, 165, 75, 0.16);
    border-color: rgba(232, 165, 75, 0.45);
}
.cell-time {
    color: var(--c-slate);
    opacity: 0.85;
}
.cell-name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-deep);
    margin-top: 2px;
}
.cell-detail {
    font-size: 12px;
    color: var(--c-slate);
    opacity: 0.85;
}

.test-summary {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    background: rgba(232, 240, 245, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 56px;
}
.bar {
    width: 8px;
    height: var(--h, 50%);
    background: linear-gradient(180deg, var(--c-aqua) 0%, var(--c-sky-deep) 100%);
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    animation: bar-rise 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}
.bar.warn {
    background: linear-gradient(180deg, #F2B96B 0%, var(--c-amber) 100%);
}
.bar:nth-child(1)  { animation-delay: 0.05s; }
.bar:nth-child(2)  { animation-delay: 0.10s; }
.bar:nth-child(3)  { animation-delay: 0.15s; }
.bar:nth-child(4)  { animation-delay: 0.20s; }
.bar:nth-child(5)  { animation-delay: 0.25s; }
.bar:nth-child(6)  { animation-delay: 0.30s; }
.bar:nth-child(7)  { animation-delay: 0.35s; }
.bar:nth-child(8)  { animation-delay: 0.40s; }
.bar:nth-child(9)  { animation-delay: 0.45s; }
.bar:nth-child(10) { animation-delay: 0.50s; }
.bar:nth-child(11) { animation-delay: 0.55s; }
.bar:nth-child(12) { animation-delay: 0.60s; }
@keyframes bar-rise {
    from { height: 0; opacity: 0; }
}

.summary-numbers {
    display: flex;
    gap: 22px;
}
.sum-n {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}
.sum-n b {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--c-deep);
    letter-spacing: -0.02em;
}
.sum-n.warn b { color: #B47A2B; }
.sum-n i {
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 11px;
    color: var(--c-slate);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ---------- SHIP ---------- */
.ship-stage {
    height: 100%;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 20px;
}
.ship-mirror {
    padding: 44px 52px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.78) 50%,
        rgba(232, 240, 245, 0.6) 100%);
    border: 1px solid var(--glass-border);
    box-shadow:
        0 18px 60px rgba(30, 58, 76, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mirror-eyebrow {
    align-self: flex-start;
    margin-bottom: 0;
}
.ship-h {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(34px, 3.5vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--c-deep);
}
.ship-lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--c-ink-warm);
    max-width: 64ch;
}

.ship-cta {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.ship-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.ship-btn:hover { transform: translateY(-2px); }
.ship-btn.primary {
    background: linear-gradient(180deg, var(--c-aqua) 0%, var(--c-sky-deep) 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 22px rgba(74, 144, 184, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.ship-btn.ghost {
    background: rgba(255, 255, 255, 0.6);
    color: var(--c-deep);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.ship-btn-shine {
    position: absolute;
    top: 0; left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.ship-btn.primary:hover .ship-btn-shine { left: 120%; }
.ship-btn-text { position: relative; z-index: 1; }
.ship-arrow { font-size: 14px; color: var(--c-sky-deep); }

.ship-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ship-card {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ship-card-num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 36px;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-sky-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.ship-card-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--c-aqua);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ship-card-desc {
    font-size: 13.5px;
    color: var(--c-ink-warm);
    line-height: 1.5;
}

.ship-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-slate);
    letter-spacing: 0.02em;
}
.foot-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-cell:nth-child(2) { text-align: center; }
.foot-cell:last-child   { text-align: right; }
.foot-cell b { color: var(--c-deep); font-weight: 600; }

/* ---------- compile-state class toggle (sweep transformation) ---------- */
.compilable {
    transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease;
    filter: saturate(0.7) blur(0px);
    opacity: 0.85;
}
.compilable.realized {
    filter: saturate(1.05);
    opacity: 1;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .section { padding: 96px 90px 56px 36px; }
    .scaffold-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); }
    .block-a { grid-row: auto; }
    .test-grid { grid-template-columns: repeat(2, 1fr); }
    .ship-grid { grid-template-columns: 1fr; }
    .compile-readout { grid-template-columns: 1fr; gap: 12px; }
    .readout-divider { display: none; }
}
@media (max-width: 760px) {
    .status-strip {
        height: 40px;
        padding: 0 12px;
    }
    .status-center { display: none; }
    .section { padding: 80px 60px 36px 18px; }
    .split { grid-template-columns: 1fr !important; gap: 14px; }
    .split::before { display: none; }
    .floating-tile { display: none; }
    .test-grid { grid-template-columns: 1fr; }
    .ship-foot { grid-template-columns: 1fr; gap: 6px; text-align: left; }
    .foot-cell:nth-child(2), .foot-cell:last-child { text-align: left; }
    .phase-indicator { right: 14px; }
    .phase-tooltip { display: none; }
}
