/* ============================================================
   $LONE — He Left The Colony
   Cinematic Antarctic edition. Black + white + ice + glass.
   ============================================================ */

:root {
    /* Cold neutral ramp */
    --ink:        #05070a;
    --ink-2:      #080b10;
    --charcoal:   #0e1319;
    --slate:      #1a212a;
    --steel:      #39434f;
    --ash:        #6e7883;
    --mist:       #9aa4ae;
    --silver:     #c6ced6;
    --snow:       #f2f5f7;
    --ice:        #a9c6d8;

    --line:       rgba(255, 255, 255, 0.10);
    --line-soft:  rgba(255, 255, 255, 0.055);
    --line-hard:  rgba(255, 255, 255, 0.22);

    /* Glass tokens */
    --glass-bg:      rgba(255, 255, 255, 0.04);
    --glass-bg-med:  rgba(255, 255, 255, 0.06);
    --glass-bg-strong: rgba(255, 255, 255, 0.08);
    --glass-border:  rgba(255, 255, 255, 0.10);
    --glass-blur:    16px;
    --glass-blur-lg: 24px;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font: 'Inter', 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --shell: 1320px;
    --gut: 48px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--silver);
    font-family: var(--font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Lock scroll while the entry overlay is up */
body.entry-locked { overflow: hidden; height: 100%; }

img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--snow); color: var(--ink); }

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

h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.02em; }
p { margin: 0; }

/* Focus visibility — keep it, keep it quiet */
:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
}

/* ============================================================
   ENTRY / FILM OPENING
   ============================================================ */
.entry {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1.5s var(--ease), visibility 1.5s;
}
.entry.dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-inner { display: flex; flex-direction: column; align-items: center; }

.entry-mark {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 200;
    letter-spacing: 0.16em;
    color: var(--snow);
    opacity: 0;
    transform: translateY(6px);
    animation: entryIn 1.6s var(--ease) 0.5s forwards;
}

.entry-line {
    margin-top: 20px;
    font-size: 0.66rem;
    letter-spacing: 0.42em;
    color: var(--ash);
    text-transform: uppercase;
    opacity: 0;
    animation: entryIn 1.6s var(--ease) 0.9s forwards;
}

.entry-btn {
    margin-top: 64px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: var(--radius-md);
    color: var(--snow);
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    padding: 18px 38px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: background 0.55s var(--ease), color 0.55s var(--ease), border-color 0.55s var(--ease);
    animation: entryIn 1.4s var(--ease) 1.5s forwards;
}
.entry-btn:hover { background: var(--snow); color: #000; border-color: var(--snow); }
.entry-btn .arrow { transition: transform 0.5s var(--ease); font-style: normal; }
.entry-btn:hover .arrow { transform: translateX(5px); }

.entry-note {
    margin-top: 26px;
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.26);
    text-transform: uppercase;
    opacity: 0;
    animation: entryIn 1.4s var(--ease) 2s forwards;
}

.entry-foot {
    position: absolute;
    bottom: 34px;
    left: 0;
    right: 0;
    padding: 0 var(--gut);
    display: flex;
    justify-content: space-between;
    font-size: 0.53rem;
    letter-spacing: 0.34em;
    color: rgba(255, 255, 255, 0.18);
    opacity: 0;
    animation: entryIn 1.6s var(--ease) 2.3s forwards;
}

@keyframes entryIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ATMOSPHERE / SNOW
   ============================================================ */
#snow-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2.6s linear;
}
#snow-canvas.visible { opacity: 1; }

/* ============================================================
   SOUND CONTROL — pill-shaped glass button matching Example.png
   ============================================================ */
.sound-toggle {
    position: fixed;
    right: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
    bottom: 120px;
    z-index: 120;
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(12, 18, 26, 0.65);
    backdrop-filter: blur(var(--glass-blur-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    padding: 8px 16px;
    color: var(--mist);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    opacity: 0;
    transition: opacity 1.2s linear, color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.sound-toggle.available { display: inline-flex; }
.sound-toggle.available.shown { opacity: 1; }
.sound-toggle:hover {
    color: var(--snow);
    background: rgba(20, 28, 40, 0.85);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}
.sound-speaker-svg {
    display: block;
    color: currentColor;
    flex-shrink: 0;
}
.sound-wave-1, .sound-wave-2 {
    transition: opacity 0.3s ease;
}
.sound-bars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 12px;
}
.sound-bars i {
    display: block;
    width: 2px;
    height: 11px;
    background: currentColor;
    border-radius: 1px;
    transition: height 0.3s ease, opacity 0.3s ease;
}
.sound-toggle.muted .sound-wave-1,
.sound-toggle.muted .sound-wave-2 {
    opacity: 0.12;
}
.sound-toggle.muted .sound-bars i {
    height: 3px;
    opacity: 0.35;
}

/* ============================================================
   NAVIGATION — glass on scroll
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 30px 0;
    background: transparent;
    transition: padding 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s var(--ease);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    padding: 18px 0;
    background: rgba(5, 7, 10, 0.55);
    backdrop-filter: blur(var(--glass-blur-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg));
    border-bottom-color: var(--glass-border);
}

.nav-container {
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo .logo-text {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    color: var(--snow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-left: auto;
}

.nav-link {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ash);
    position: relative;
    padding: 4px 0;
    transition: color 0.4s var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.nav-link:hover { color: var(--snow); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link-x { display: flex; align-items: center; }
.nav-link-x::after { display: none; }

/* Right cluster: @pons text + X icon */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 14px;
}
.nav-pons {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ash);
    white-space: nowrap;
    transition: color 0.4s var(--ease);
}
.nav-pons strong { font-weight: 500; color: var(--mist); }
.nav-pons:hover { color: var(--snow); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px; height: 24px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 100%; height: 1px;
    background: var(--snow);
    transition: transform 0.45s var(--ease), opacity 0.3s linear;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}

/* --- cinematic plate --- */
.hero-media {
    position: absolute;
    inset: -3% -3% -3% -3%;
    z-index: 0;
    opacity: 0;
    transform: scale(1.045);
    transition: opacity 2.4s linear;
    will-change: transform;
}
.hero-media.lit { opacity: 1; }
.revealing .hero-media { animation: plateDrift 34s var(--ease-io) forwards; }

@keyframes plateDrift {
    from { transform: scale(1.045); }
    to   { transform: scale(1.0); }
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}

/* Grade: several extremely subtle passes, never one big gradient */
.hero-grade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(5, 7, 10, 0.72) 0%, rgba(5, 7, 10, 0) 34%),
        linear-gradient(0deg,  rgba(5, 7, 10, 0.86) 0%, rgba(5, 7, 10, 0.22) 30%, rgba(5, 7, 10, 0) 58%),
        linear-gradient(90deg, rgba(5, 7, 10, 0.62) 0%, rgba(5, 7, 10, 0.10) 40%, rgba(5, 7, 10, 0) 66%),
        linear-gradient(180deg, rgba(24, 40, 54, 0.14), rgba(10, 14, 20, 0.2));
    pointer-events: none;
}
.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}
.hero-grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- hero copy: editorial, weighted left --- */
.hero-copy {
    position: relative;
    z-index: 10;
    max-width: var(--shell);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gut);
    padding-top: 40px;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--mist);
}
.hero-eyebrow .rule {
    display: block;
    width: 54px; height: 1px;
    background: rgba(255, 255, 255, 0.35);
    transform: scaleX(0);
    transform-origin: left;
}
.revealing .hero-eyebrow .rule { animation: ruleIn 1.6s var(--ease) 4.5s forwards; }

@keyframes ruleIn { to { transform: scaleX(1); } }

.hero-title {
    margin: 20px 0 0;
    font-size: clamp(4.4rem, 15.5vw, 15rem);
    font-weight: 200;
    line-height: 0.86;
    letter-spacing: -0.045em;
    color: var(--snow);
}

.hero-sub {
    margin-top: 26px;
    font-size: clamp(0.72rem, 1.5vw, 0.95rem);
    font-weight: 300;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--silver);
}

/* A subtle line/dash below the sub text, matching the example */
.hero-sub::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 24px;
}

.hero-actions {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Staged cinematic reveal — copy arrives last, ~4.5s after ENTER */
.hero-copy > * { opacity: 0; }
.revealing .hero-eyebrow  { animation: copyIn 1.8s var(--ease) 4.5s forwards; }
.revealing .hero-title    { animation: titleIn 2.4s var(--ease) 4.9s forwards; }
.revealing .hero-sub      { animation: copyIn 1.8s var(--ease) 5.6s forwards; }
.revealing .hero-actions  { animation: copyIn 1.8s var(--ease) 6.1s forwards; }

@keyframes copyIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes titleIn {
    from { opacity: 0; transform: translateY(26px); filter: blur(14px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* --- vertical lore axis matching Example.png --- */
.hero-axis {
    position: absolute;
    right: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
    top: 36%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    opacity: 0;
    text-align: right;
    pointer-events: none;
}
.revealing .hero-axis { animation: copyIn 2s var(--ease) 6.4s forwards; }

.axis-item {
    font-size: 0.58rem;
    font-weight: 300;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--mist);
    line-height: 1.45;
}

/* --- bottom information rail --- GLASS PANEL matching Example.png --- */
.hero-rail {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    z-index: 10;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 24px var(--gut) 60px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(8, 12, 18, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
}
.revealing .hero-rail { animation: copyIn 2s var(--ease) 6.7s forwards; }

.rail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.rail-item:first-child { border-left: 0; padding-left: 0; }

.rail-icon {
    display: flex;
    align-items: center;
    color: var(--mist);
    margin-bottom: 2px;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.rail-item:hover .rail-icon {
    color: var(--snow);
    transform: translateY(-2px);
}

.rail-key {
    font-size: 0.52rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ash);
}
.rail-val {
    font-size: 0.84rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--snow);
    font-variant-numeric: tabular-nums;
    text-transform: uppercase;
}

/* --- scroll indicator --- */
.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 11;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.9s linear;
}
.revealing .scroll-indicator { animation: copyIn 2s var(--ease) 7.2s forwards; }

.scroll-word {
    font-size: 0.48rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    animation: scrollPulse 3s var(--ease-io) infinite;
    transform-origin: top;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* ============================================================
   BUTTONS — subtle glass + border-radius
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 17px 30px;
    font-family: inherit;
    font-size: 0.63rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--snow);
    background: var(--glass-bg);
    border: 1px solid var(--line-hard);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.3s var(--ease);
}
.btn .arrow { font-style: normal; transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--glass-bg-med); }
.btn-primary:hover,
.btn-check:hover {
    background: var(--snow);
    color: var(--ink);
    border-color: var(--snow);
}

.btn-ghost {
    border-color: var(--line-soft);
    color: var(--mist);
    background: transparent;
}
.btn-ghost:hover { color: var(--snow); border-color: var(--line-hard); background: var(--glass-bg); }

/* legacy alias */
.btn-outline { border-color: var(--line-soft); color: var(--mist); background: transparent; }
.btn-outline:hover { color: var(--snow); border-color: var(--line-hard); background: var(--glass-bg); }

/* ============================================================
   CHAPTER SCAFFOLD
   ============================================================ */
.chapter {
    position: relative;
    padding: 180px 0;
    overflow: hidden;
}
.shell {
    position: relative;
    z-index: 2;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.chapter-index {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.55rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ash);
}
.chapter-index span {
    color: var(--steel);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
}

.statement {
    margin: 44px 0 0;
    font-size: clamp(2.6rem, 8vw, 7.2rem);
    font-weight: 200;
    line-height: 0.94;
    letter-spacing: -0.038em;
    color: var(--snow);
}
.statement-alt { color: var(--silver); }
.statement-close { margin-bottom: 34px; }

.chapter-lead {
    margin-top: 44px;
    max-width: 58ch;
    font-size: clamp(0.98rem, 1.5vw, 1.2rem);
    font-weight: 300;
    line-height: 1.68;
    color: var(--mist);
}

/* Section transitions — a continuous plate, not stacked cards */
.chapter-story   { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.chapter-chain   { background: linear-gradient(180deg, var(--ink-2) 0%, var(--charcoal) 100%); }
.chapter-allocation {
    background:
        radial-gradient(90% 70% at 50% 0%, rgba(38, 60, 78, 0.22), rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg, var(--charcoal) 0%, var(--ink-2) 100%);
}
.chapter-token   { background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); }
.chapter-journey { background: var(--ink); }
.chapter-close   {
    background:
        radial-gradient(80% 60% at 50% 100%, rgba(30, 48, 64, 0.28), rgba(0, 0, 0, 0) 72%),
        var(--ink);
}

/* Hairline chapter divider */
.chapter + .chapter::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - var(--gut) * 2);
    max-width: var(--shell);
    height: 1px;
    background: var(--line-soft);
}

/* Reveal-on-scroll */
[data-reveal],
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 1.5s var(--ease), transform 1.5s var(--ease);
}
[data-reveal].revealed,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   II — STORY
   ============================================================ */
.story-body {
    margin-top: 90px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 90px;
    align-items: start;
}
.story-lead p {
    font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    font-weight: 200;
    line-height: 1.5;
    letter-spacing: -0.012em;
    color: var(--silver);
}
.story-lead p.muted {
    margin-top: 34px;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    letter-spacing: 0.02em;
    color: var(--ash);
}

.story-notes {
    display: grid;
    gap: 46px;
    padding-top: 12px;
}
.note {
    padding: 24px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.note-key {
    display: block;
    margin-bottom: 14px;
    font-size: 0.52rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ash);
}
.note p {
    font-size: 0.95rem;
    line-height: 1.72;
    color: var(--mist);
}
.note strong { font-weight: 400; color: var(--silver); }

/* A single very slow drifting word — atmosphere, not decoration */
.drift-word {
    position: absolute;
    right: -3%;
    bottom: 5%;
    z-index: 1;
    font-size: clamp(5rem, 17vw, 16rem);
    font-weight: 200;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.018);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   III — CHAIN
   ============================================================ */
.meta-grid {
    margin: 86px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-border);
}
.meta-cell {
    padding: 32px 30px 34px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
.meta-cell dt {
    font-size: 0.5rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ash);
}
.meta-cell dd {
    margin: 14px 0 0;
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--snow);
}
.meta-cell a { border-bottom: 1px solid var(--line); transition: border-color 0.4s var(--ease); }
.meta-cell a:hover { border-color: var(--snow); }

.disclaimer {
    margin-top: 40px;
    max-width: 62ch;
    font-size: 0.7rem;
    line-height: 1.7;
    letter-spacing: 0.04em;
    color: var(--steel);
}

/* ============================================================
   IV — ALLOCATION / CHECKER  — GLASS CARD
   ============================================================ */
.eligibility-checker {
    margin-top: 80px;
    max-width: 880px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg));
    overflow: hidden;
}

/* status rail */
.snapshot-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 30px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ash);
}
.snapshot-item { display: flex; align-items: center; gap: 12px; }
.snapshot-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--steel);
    flex-shrink: 0;
}
.snapshot-dot.dot-live {
    background: var(--ice);
    box-shadow: 0 0 0 3px rgba(169, 198, 216, 0.14);
}
.snapshot-dot.dot-fallback { background: var(--ash); }
.snapshot-explorer-link {
    letter-spacing: 0.28em;
    color: var(--mist);
    white-space: nowrap;
    transition: color 0.4s var(--ease);
}
.snapshot-explorer-link:hover { color: var(--snow); }

/* form */
.checker-form { padding: 46px 30px 40px; }

.input-group label {
    display: block;
    margin-bottom: 18px;
    font-size: 0.52rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ash);
}
.input-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
    transition: border-color 0.5s var(--ease);
}
.input-wrapper:focus-within { border-color: rgba(255, 255, 255, 0.34); }
.input-wrapper input {
    flex: 1;
    min-width: 0;
    background: none;
    border: 0;
    outline: none;
    padding: 20px 22px;
    color: var(--snow);
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}
.input-wrapper input::placeholder { color: var(--steel); letter-spacing: 0.24em; }

.btn-check {
    flex-shrink: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    position: relative;
}
.btn-check .btn-loader { display: none; }
.btn-check.loading .btn-text { visibility: hidden; }
.btn-check.loading .btn-loader {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
}
.spinner { width: 16px; height: 16px; color: currentColor; }

.input-hint {
    margin-top: 16px;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    color: var(--steel);
}

.input-wrapper.input-invalid { border-color: rgba(255, 255, 255, 0.4); }

.checker-invalid-note {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-left: 1px solid var(--line-hard);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--glass-bg);
}
.checker-invalid-note span:first-child { color: var(--mist); font-size: 0.5rem; line-height: 1.9; }
.invalid-title {
    font-size: 0.56rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--snow);
}
.invalid-desc { margin-top: 8px; font-size: 0.78rem; color: var(--ash); }

/* result panel */
.result-panel { display: none; }
.result-content { text-align: left; }

.checker-status-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
}
.checker-status-box .btn { margin-top: 34px; }

.checker-status-label {
    font-size: 0.5rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ash);
}
.checker-status-icon {
    width: 34px; height: 34px;
    margin-bottom: 24px;
    border: 1px solid var(--line-hard);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--snow);
}
.icon-success { border-color: rgba(169, 198, 216, 0.5); color: var(--ice); }
.icon-error   { border-color: var(--line); color: var(--ash); }

.result-title {
    margin-top: 14px;
    font-size: clamp(1.5rem, 3.4vw, 2.4rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    color: var(--snow);
}
.result-title-lg {
    margin-top: 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 200;
    letter-spacing: -0.03em;
    color: var(--snow);
}
.result-desc {
    margin-top: 18px;
    max-width: 54ch;
    font-size: 0.9rem;
    line-height: 1.72;
    color: var(--mist);
}

/* checking */
.checker-spin {
    position: relative;
    width: 26px; height: 26px;
    margin-bottom: 26px;
}
.checker-spin::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--line);
    border-top-color: var(--snow);
    border-radius: 50%;
    animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.checker-progress {
    width: 100%;
    max-width: 320px;
    height: 1px;
    margin-top: 30px;
    background: var(--line-soft);
    overflow: hidden;
    border-radius: 2px;
}
.checker-progress-fill {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--snow);
    animation: progressSweep 1.5s var(--ease-io) infinite;
}
@keyframes progressSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* eligible */
.checker-eligible-head {
    padding-bottom: 6px;
}
.checker-eligible-head .btn { margin-top: 32px; }
.checker-source-note {
    display: block;
    margin-top: 20px;
    font-size: 0.54rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--steel);
}

.checker-details {
    margin-top: 44px;
    padding-top: 42px;
    border-top: 1px solid var(--line-soft);
}

.checker-label {
    font-size: 0.5rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--ash);
}
.checker-allocation-amount {
    margin: 18px 0 12px;
    font-size: clamp(3rem, 9vw, 6.4rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--snow);
    font-variant-numeric: tabular-nums;
    animation: amountIn 1.8s var(--ease) forwards;
}
@keyframes amountIn {
    from { opacity: 0; transform: translateY(16px); filter: blur(10px); }
    to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.multiplier-row {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.multiplier-chip {
    padding: 9px 15px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mist);
}
.multiplier-chip-cap { border-color: rgba(169, 198, 216, 0.3); color: var(--ice); }

.checker-protocols-block {
    margin-top: 46px;
    padding-top: 40px;
    border-top: 1px solid var(--line-soft);
}
.checker-protocols-heading {
    font-size: 0.52rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ash);
}
.protocol-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-top: 1px solid var(--line-soft);
}
.protocol-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.86rem;
    color: var(--silver);
}
.protocol-chip-check { color: var(--ice); font-size: 0.7rem; }

.checker-action-row {
    margin-top: 44px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.checker-action-row .btn { padding: 15px 24px; font-size: 0.58rem; }

.animate-reveal { animation: copyIn 1.4s var(--ease) forwards; }

/* footnotes under the checker — glass row */
.checker-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-soft);
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 30px;
    border-left: 1px solid var(--line-soft);
}
.info-item:first-child { border-left: 0; }
.info-key {
    font-size: 0.5rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--snow);
}
.info-item span:last-child {
    font-size: 0.76rem;
    line-height: 1.6;
    color: var(--ash);
}

/* ============================================================
   V — TOKENOMICS
   ============================================================ */
.token-total {
    margin-top: 80px;
    display: flex;
    align-items: baseline;
    gap: 26px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line-soft);
}
.chart-total {
    font-size: clamp(3.4rem, 10vw, 8rem);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--snow);
    font-variant-numeric: tabular-nums;
}
.chart-label {
    font-size: 0.55rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--ash);
}

.token-breakdown {
    margin-top: 20px;
}
.token-item {
    padding: 48px 0;
    border-bottom: 1px solid var(--line-soft);
}
.token-head {
    display: flex;
    align-items: baseline;
    gap: 28px;
}
.token-pct {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--snow);
    font-variant-numeric: tabular-nums;
}
.token-name {
    font-size: 0.58rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--mist);
}
.token-bar {
    margin-top: 30px;
    height: 2px;
    background: var(--line-soft);
    border-radius: 2px;
    overflow: hidden;
}
.token-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ice), var(--snow));
    border-radius: 2px;
    transition: width 2.2s var(--ease);
}
.token-item.revealed .token-bar i { width: var(--w); }

.token-desc {
    margin-top: 24px;
    max-width: 62ch;
    font-size: 0.88rem;
    line-height: 1.72;
    color: var(--ash);
}

/* ============================================================
   VI — THE JOURNEY
   ============================================================ */
.roadmap-timeline {
    position: relative;
    margin-top: 90px;
    padding-left: 76px;
}
.timeline-line {
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--line-soft);
    overflow: hidden;
}
.timeline-progress {
    display: block;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(169, 198, 216, 0.35));
}

.roadmap-phase {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 40px;
    padding: 0 0 88px;
}
.roadmap-phase:last-child { padding-bottom: 0; }

/* node on the line */
.roadmap-phase::before {
    content: '';
    position: absolute;
    left: -80px;
    top: 12px;
    width: 7px; height: 7px;
    border: 1px solid var(--line-hard);
    border-radius: 50%;
    background: var(--ink);
}
.roadmap-phase[data-phase="1"]::before {
    background: var(--snow);
    border-color: var(--snow);
}

.phase-num {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--steel);
    font-variant-numeric: tabular-nums;
}
.roadmap-phase[data-phase="1"] .phase-num { color: var(--silver); }

.phase-body h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--snow);
}
.phase-status {
    display: inline-block;
    margin-top: 16px;
    padding: 5px 14px;
    font-size: 0.5rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--steel);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    background: var(--glass-bg);
}
.phase-status.status-active {
    color: var(--ice);
    border-color: rgba(169, 198, 216, 0.2);
    background: rgba(169, 198, 216, 0.06);
}

.phase-body ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
    max-width: 52ch;
}
.phase-body li {
    padding: 13px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 0.86rem;
    color: var(--ash);
}

/* ============================================================
   VII — CLOSE — glass community card
   ============================================================ */
.chapter-close { text-align: left; }
.community-card {
    max-width: 900px;
    padding: 60px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: var(--glass-bg-med);
    backdrop-filter: blur(var(--glass-blur-lg));
    -webkit-backdrop-filter: blur(var(--glass-blur-lg));
}
.community-links {
    margin-top: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 110px 0 44px;
    border-top: 1px solid var(--line-soft);
    background: var(--ink);
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    padding-bottom: 76px;
}
.footer-logo {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    color: var(--snow);
}
.footer-brand p {
    margin-top: 18px;
    max-width: 34ch;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--steel);
}
.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.footer-col h4 {
    margin-bottom: 22px;
    font-size: 0.5rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--ash);
}
.footer-col a {
    display: block;
    padding: 7px 0;
    font-size: 0.82rem;
    color: var(--mist);
    transition: color 0.4s var(--ease);
}
.footer-col a:hover { color: var(--snow); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 34px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--steel);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    :root { --gut: 34px; }
    .story-body { grid-template-columns: 1fr; gap: 60px; }
    .meta-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-pons { display: none; }
    .footer-top { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 860px) {
    .hero-axis { display: none; }
    .hero-rail {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 22px;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .rail-item:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
    .checker-info { grid-template-columns: 1fr; }
    .info-item { border-left: 0; border-top: 1px solid var(--line-soft); }
    .info-item:first-child { border-top: 0; }
}

@media (max-width: 760px) {
    :root { --gut: 22px; }

    .chapter { padding: 120px 0; }

    /* nav collapses to a minimal glass sheet */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
        padding: 0 var(--gut);
        background: rgba(5, 7, 10, 0.92);
        backdrop-filter: blur(var(--glass-blur-lg));
        -webkit-backdrop-filter: blur(var(--glass-blur-lg));
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.55s var(--ease), visibility 0.55s;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-link { font-size: 0.9rem; letter-spacing: 0.28em; color: var(--silver); }
    .navbar { padding: 20px 0; }
    .nav-right { display: none; }

    /* hero: keep the plate readable, keep copy off the figure */
    .hero-section { align-items: flex-end; }
    .hero-copy {
        padding-top: 0;
        padding-bottom: 220px;
    }
    .hero-title { font-size: clamp(3.6rem, 22vw, 7rem); }
    .hero-eyebrow { font-size: 0.52rem; letter-spacing: 0.3em; gap: 12px; }
    .hero-eyebrow .rule { width: 30px; }
    .hero-sub { margin-top: 20px; font-size: 0.66rem; letter-spacing: 0.28em; }
    .hero-actions { margin-top: 36px; flex-direction: column; align-items: stretch; }
    .hero-actions .btn { justify-content: space-between; border-radius: var(--radius-md); }

    .hero-media { inset: -2%; }
    /* Frame penguin and mountain peak dead center on mobile */
    .hero-photo { object-position: 50% 36%; }
    .hero-grade {
        background:
            linear-gradient(180deg, rgba(5, 7, 10, 0.72) 0%, rgba(5, 7, 10, 0) 28%),
            linear-gradient(0deg,  rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.5) 35%, rgba(5, 7, 10, 0) 65%),
            linear-gradient(180deg, rgba(24, 40, 54, 0.12), rgba(10, 14, 20, 0.2));
    }

    /* rail becomes a horizontal editorial scroll */
    .hero-rail {
        display: flex;
        gap: 0;
        padding: 16px 0 54px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 0;
    }
    .hero-rail::-webkit-scrollbar { display: none; }
    .rail-item {
        flex: 0 0 auto;
        min-width: 176px;
        padding: 4px 20px;
        scroll-snap-align: start;
    }
    .rail-item:first-child { padding-left: var(--gut); }
    .rail-item:last-child { padding-right: var(--gut); }

    .scroll-indicator { display: none; }

    .sound-toggle { right: var(--gut); bottom: 104px; }

    .statement { margin-top: 34px; }
    .story-body { margin-top: 56px; }

    .meta-grid { grid-template-columns: 1fr; margin-top: 56px; border-radius: var(--radius-md); }

    .eligibility-checker { margin-top: 54px; border-radius: var(--radius-md); }
    .snapshot-bar { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
    .checker-form { padding: 32px 20px 30px; }
    .input-wrapper { flex-direction: column; border-radius: var(--radius-sm); }
    .input-wrapper input { padding: 18px 16px; font-size: 0.85rem; }
    .btn-check { border-left: 0; border-top: 1px solid var(--line); justify-content: center; border-radius: 0; }
    .info-item { padding: 22px 20px; }
    .checker-action-row .btn { width: 100%; justify-content: center; }

    .community-card { padding: 40px 28px; border-radius: var(--radius-lg); }

    .roadmap-timeline { padding-left: 40px; }
    .roadmap-phase { grid-template-columns: 1fr; gap: 16px; padding-bottom: 64px; }
    .roadmap-phase::before { left: -44px; }

    .footer { padding: 80px 0 34px; }
    .footer-links-group { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 420px) {
    .hero-copy { padding-bottom: 200px; }
    .drift-word { display: none; }
    .footer-links-group { grid-template-columns: 1fr; }
}

/* Short landscape viewports — don't let the rail eat the plate */
@media (max-height: 620px) and (min-width: 761px) {
    .hero-rail { padding-bottom: 56px; }
    .hero-copy { padding-top: 60px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .hero-copy > *,
    .hero-axis,
    .hero-rail,
    .scroll-indicator,
    .entry-mark,
    .entry-line,
    .entry-btn,
    .entry-note,
    .entry-foot { opacity: 1 !important; transform: none !important; filter: none !important; }

    .hero-eyebrow .rule { transform: scaleX(1) !important; }
    .hero-media { transform: none !important; }
    [data-reveal], .reveal { opacity: 1 !important; transform: none !important; }
    .token-item .token-bar i { width: var(--w) !important; }
    #snow-canvas { display: none; }
}
