/* ═══════════════════════════════════════════════
   MUKO · v7 STYLES
   Ink & Cream palette · strict type hierarchy ·
   jewelry badges · premium glass system
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --ink:        #0A0C12;
    --deep-ink:   #07080D;
    --cream:      #F3EEE6;
    --espresso:   #362A20;
    --sand:       #E2CBB5;
    --steel:      #919FA9;
    --chartreuse: #E6EFB3;
    --rose:       #DB9192;

    --font-display: 'Surgena', 'Archivo', sans-serif;
    --font-mono:    'Fustat', 'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    'SF Pro Rounded', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing scale */
    --space-s:  0.5rem;
    --space-m:  1.5rem;
    --space-l:  3rem;
    --space-xl: 6rem;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--ink);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
::selection { background: var(--sand); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
button,
input {
    font: inherit;
}
button {
    border: 0;
    color: inherit;
    background: none;
    cursor: pointer;
}

/* ══════════════════════════════════════════════
   TYPOGRAPHY — v7 STRICT HIERARCHY
   Two display sizes. One body. One mono. Ghosts.
   ══════════════════════════════════════════════ */

/* ── Display (Archivo Expanded, wide) ── */
.display-xl,
.display-l {
    font-family: var(--font-display);
    font-stretch: normal;
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.03em;
}
.display-xl { font-size: clamp(3.5rem, 9vw, 8rem); }
.display-l  { font-size: clamp(2.25rem, 5vw, 4.25rem); }

/* ── Mono ── */
.mono-s {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

/* ── Body ── */
.body {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.6;
}
.body strong {
    font-weight: 800;
}

/* ── Utility modifiers ── */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ══════════════════════════════════════════════
   COLOR UTILITIES
   ══════════════════════════════════════════════ */
.ink          { background-color: var(--ink); }
.deep-ink     { background-color: var(--deep-ink); }
.cream        { background-color: var(--cream); }
.cream-text   { color: var(--cream); }
.ink-text     { color: var(--ink); }
.sand-text    { color: var(--sand); }
.rose-text    { color: var(--rose); }
.chartreuse-text { color: var(--chartreuse); }

.bg-sand       { background-color: var(--sand); }
.bg-steel      { background-color: var(--steel); }
.bg-chartreuse { background-color: var(--chartreuse); }
.bg-rose       { background-color: var(--rose); }

/* ══════════════════════════════════════════════
   GLASSMORPHISM — v7 PUSHED FURTHER
   ══════════════════════════════════════════════ */
.glass-card {
    position: relative;
    border-radius: 20px;
    background: rgba(247, 244, 238, 0.045);
    backdrop-filter: blur(48px) saturate(1.6);
    -webkit-backdrop-filter: blur(48px) saturate(1.6);
    box-shadow:
        0 1px 1px rgba(247,244,238,0.025) inset,
        0 32px 72px rgba(0, 0, 0, 0.58);
    transform-style: preserve-3d;
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    overflow: hidden;
}

/* Arc visual cards: no conic rim — let the glow do the edge work */
.arc-visual .glass-card::before,
.card-04::before { display: none; }

/* Faint diagonal specular streak */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 10;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(138deg,
        rgba(247,244,238,0.05) 0%,
        transparent 45%
    );
}

@supports not (backdrop-filter: blur(1px)) {
    .glass-card { background: rgba(247, 244, 238, 0.1); }
    .glass-blob { background: rgba(247, 244, 238, 0.18) !important; }
}

/* ══════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════ */
.section {
    min-height: 100vh;
    padding: 10vh 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.75rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--cream);
}
.brand-lockup {
    display: block;
    width: clamp(3.9rem, 6.6vw, 5.8rem);
}
.brand-lockup img {
    display: block;
    width: 100%;
    height: auto;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a:hover { color: var(--sand); transition: color 0.3s ease; }

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero { padding-top: 18vh; justify-content: flex-start; }
.hero-top {
    max-width: 85%;
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
.eyebrow { margin-bottom: var(--space-m); }
.hero-top h1 {
    margin-top: var(--space-l);
    line-height: 1.05;
}
.subline {
    margin-top: var(--space-m);
    max-width: 60ch;
    opacity: 0.75;
}

.hero-anim-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}
.caption {
    margin-top: var(--space-m);
    opacity: 0.5;
    text-align: center;
}
.cta-wrap {
    margin-top: var(--space-m);
    text-align: center;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
.cta {
    display: inline-block;
    border-bottom: 1px solid var(--cream);
    padding-bottom: 3px;
    letter-spacing: 0.06em;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.cta:hover { color: var(--sand); border-color: var(--sand); }

/* ── Hero metamorphosis container ── */
.metamorphosis {
    position: relative;
    width: 100%;
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Phase 1: The Sheet */
.meta-sheet {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.meta-sheet.play {
    animation: sheetDissolve 6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 76%;
    height: 80%;
}
.s-cell {
    border: 1px solid rgba(247, 244, 238, 0.035);
    display: flex;
    justify-content: center;
    align-items: center;
}
.faint { opacity: 0.35; }

@keyframes sheetDissolve {
    0%   { opacity: 1; transform: scale(1);    filter: blur(0px); }
    20%  { opacity: 1; transform: scale(1.01); filter: blur(0px); }
    40%  { opacity: 0; transform: scale(0.97); filter: blur(6px); }
    100% { opacity: 0; transform: scale(0.97); pointer-events: none; }
}

/* Phase 2–3: Gooey blob container */
.meta-blob-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.blob-goo {
    position: absolute;
    width: 420px;
    height: 420px;
    filter: url('#goo');
}
/* JS-generated fragments */
.frag {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
}
.meta-blob-wrap.play .frag {
    animation: fragDrift var(--dur, 4.5s) cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s) forwards;
}
@keyframes fragDrift {
    0%   { opacity: 0; transform: scale(0.2) translate(0, 0) rotate(0deg); }
    18%  { opacity: 1; }
    55%  { opacity: 1; transform: scale(1.4) var(--drift) rotate(150deg); }
    80%  { opacity: 0; transform: scale(0.1) var(--drift) rotate(210deg); }
    100% { opacity: 0; }
}

/* Idle bud fragment */
.bud-frag {
    position: absolute;
    width: 52px;
    height: 52px;
    background: rgba(247, 244, 238, 0.75);
    border-radius: 50%;
    top: calc(50% - 26px);
    left: calc(50% - 26px);
    opacity: 0;
}
.meta-blob-wrap.play .bud-frag {
    animation:
        budReveal  6s   cubic-bezier(0.4, 0, 0.2, 1) forwards,
        budCycle   14s  cubic-bezier(0.4, 0, 0.2, 1) infinite 7s;
}
@keyframes budReveal {
    0%, 88% { opacity: 0; }
    100%     { opacity: 1; transform: translate(0, 0); }
}
@keyframes budCycle {
    0%,  75%, 100% { transform: translate(0, 0);        opacity: 1; }
    50%            { transform: translate(72px, -48px) scale(0.55); opacity: 1; }
    74%            { transform: translate(72px, -48px) scale(0.55); opacity: 1; }
}

/* Phase 4: Iridescent glass blob */
.glass-blob {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    opacity: 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    will-change: border-radius, transform, opacity;
    /* 5-stop iridescent gradient — ALL four accents visible */
    background:
        linear-gradient(140deg,
            rgba(226, 203, 181, 0.55)  0%,    /* Sand */
            rgba(145, 159, 169, 0.45)  28%,   /* Steel */
            rgba(219, 145, 146, 0.30)  50%,   /* Rose */
            rgba(230, 239, 179, 0.30)  72%,   /* Chartreuse */
            rgba(226, 203, 181, 0.40)  100%   /* Sand wrap */
        );
    background-size: 300% 300%;
}
.meta-blob-wrap.play .glass-blob {
    animation:
        blobForm     5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        blobBreathe  8s   cubic-bezier(0.4, 0, 0.6, 1) infinite 6s,
        gradDrift    12s  ease-in-out               infinite 6s;
}

/* Grain overlay on blob */
.blob-grain-overlay {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    filter: url('#grain');
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Barely visible rim so the blob reads as a floating object */
.blob-rim {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sand), var(--steel), var(--chartreuse)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border: 1px solid transparent;
    opacity: 0.12;
}

@keyframes blobForm {
    0%,  38% { opacity: 0; transform: scale(0.55); border-radius: 50%; }
    52%, 100% { opacity: 1; transform: scale(1);   border-radius: 50%; }
}
@keyframes blobBreathe {
    0%   { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: scale(1); }
    25%  { border-radius: 58% 42% 54% 46% / 52% 48% 52% 48%; transform: scale(1.025); }
    50%  { border-radius: 46% 54% 42% 58% / 48% 52% 48% 52%; transform: scale(0.975); }
    75%  { border-radius: 52% 48% 58% 42% / 54% 46% 46% 54%; transform: scale(1.015); }
    100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; transform: scale(1); }
}
@keyframes gradDrift {
    0%   { background-position: 0%   50%; }
    33%  { background-position: 100% 0%;  }
    66%  { background-position: 50%  100%; }
    100% { background-position: 0%   50%; }
}

/* Tethered labels */
.tether {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    will-change: transform, opacity;
}
.meta-blob-wrap.play .tether {
    animation:
        tetherIn    5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        tetherFloat 10s  ease-in-out                  infinite 6.5s;
}
.t-dna    { top: 12%; left: 8%; }
.t-trend  { top: 12%; right: 8%; flex-direction: row-reverse; }
.t-margin { bottom: 12%; left: 8%; }
.t-lead   { bottom: 12%; right: 8%; flex-direction: row-reverse; }
.hairline-h { width: 44px; height: 1px; background: rgba(247,244,238,0.28); flex-shrink: 0; }

@keyframes tetherIn {
    0%, 48% { opacity: 0; }
    65%, 100% { opacity: 0.8; }
}
@keyframes tetherFloat {
    0%,  100% { transform: translate( 0px,  0px); }
    33%        { transform: translate( 4px, -3px); }
    66%        { transform: translate(-3px,  4px); }
}

/* ══════════════════════════════════════════════
   SECTION 2 — RECORDS VS REASONING
   ══════════════════════════════════════════════ */
.cream.section {
    gap: var(--space-l);
    align-items: center;
    text-align: center;
}
.stacked-mono {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.4rem;
    row-gap: var(--space-s);
    opacity: 0.65;
    letter-spacing: 0.1em;
}
.sand-underline {
    position: relative;
    display: inline-block;
}
.sand-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--sand);
}
.body-max { max-width: 60ch; }

/* ══════════════════════════════════════════════
   SECTION 3 — PILLARS
   ALL four display-l — peer elements share a size
   ══════════════════════════════════════════════ */
.pillars {
    gap: var(--space-xl);
    padding-block: 20vh;
}
.pillar {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}
.pillar .mono-s { opacity: 0.7; }

/* ══════════════════════════════════════════════
   ARC SECTIONS — 01–04
   ══════════════════════════════════════════════ */
.arc-section {
    flex-direction: row;
    align-items: center;
    gap: 8vw;
    padding-block: 14vh;
    overflow: hidden; /* crops ghost numeral */
}
.arc-section.reverse { flex-direction: row-reverse; }

/* Ghost numerals removed */
.ghost-numeral { display: none; }

.arc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
    z-index: 2;
}
.arc-content p { max-width: 52ch; opacity: 0.8; }

/* ── PILL BADGES — filled steel, Archivo Expanded, compact ── */
.arc-badges {
    display: flex;
    align-items: center;
    gap: var(--space-m);
}
.pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 14px;
    border-radius: 100px;
    border: none;
    background: var(--steel);
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-display);
    font-stretch: normal;
    font-weight: 600;
    font-size: 0.65rem;
    white-space: nowrap;
}

/* Arc visual container */
.arc-visual {
    flex: 1;
    height: 420px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    z-index: 2;
}
.full-glass {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Accent glows — saturated enough to read as color */
.card-glow {
    position: absolute;
    inset: 0;
    filter: blur(60px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
    transition: background 1s ease;
}
.sand-glow       { background: radial-gradient(ellipse at 50% 50%, #E2CBB5, #0A0C12 70%); }
.steel-glow      { background: radial-gradient(ellipse at 50% 50%, #919FA9, #0A0C12 70%); }
.rose-glow       { background: radial-gradient(ellipse at 50% 50%, #DB9192, #0A0C12 70%); }
.chartreuse-glow { background: radial-gradient(ellipse at 50% 50%, #E6EFB3, #0A0C12 70%); }

.visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Reusable mini blob */
.mini-blob {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(226, 203, 181, 0.3),
        rgba(145, 159, 169, 0.3)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(247,244,238,0.035);
    border-top: 1px solid rgba(247,244,238,0.08);
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
    transition:
        border-radius 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        background    1s  ease;
}

/* ══════════════════════════════════════════════
   01 SHAPE — Colored Streams
   ══════════════════════════════════════════════ */
.stream-label {
    position: absolute;
    opacity: 0.55;
    white-space: nowrap;
}
[data-pos="top-left"] { top: 16%; left: 8%; }
[data-pos="mid-left"] { top: 50%; left: 6%; transform: translateY(-50%); }
[data-pos="bot-left"] { bottom: 16%; left: 8%; }

.stream-frag {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    opacity: 0;
}
.sf-1 { background: var(--sand); }
.sf-2 { background: var(--steel); }
.sf-3 { background: var(--rose); }

#anim-01.play .sf-1 { animation: sflow1 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite 0s; }
#anim-01.play .sf-2 { animation: sflow2 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite 1.2s; }
#anim-01.play .sf-3 { animation: sflow3 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite 2.4s; }
#anim-01.play .stream-target { animation: blobAbsorb 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; }

@keyframes sflow1 {
    0%   { top: 16%; left: 12%; opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { top: 50%; left: 50%; opacity: 0; }
    100% { top: 50%; left: 50%; opacity: 0; }
}
@keyframes sflow2 {
    0%   { top: 50%; left: 8%;  opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { top: 50%; left: 50%; opacity: 0; }
    100% { top: 50%; left: 50%; opacity: 0; }
}
@keyframes sflow3 {
    0%   { bottom: 16%; left: 12%; opacity: 0; }
    15%  { opacity: 0.9; }
    85%  { top: 50%; left: 50%; opacity: 0; }
    100% { top: 50%; left: 50%; opacity: 0; }
}
@keyframes blobAbsorb {
    0%, 100% { transform: scale(1); }
    85%       { transform: scale(1.06); }
}

/* ══════════════════════════════════════════════
   02 PRESSURE-TEST — Visual-First Tension Cycle
   ══════════════════════════════════════════════ */
.blob-deform {
    width: 110px;
    height: 110px;
    transition:
        border-radius 1s  cubic-bezier(0.4, 0, 0.2, 1),
        background    0.8s ease,
        transform     1s  cubic-bezier(0.4, 0, 0.2, 1);
}
/* Lobe deformations: bulge only ONE edge — never translate the whole blob */
/* identity chip is top-left → upper-left lobe bulges */
.lobe-id    { border-radius: 30% 70% 60% 40% / 30% 60% 40% 70%;  background: linear-gradient(225deg, rgba(219,145,146,0.45), rgba(145,159,169,0.2)) !important; }
/* market chip is top-right → upper-right lobe bulges */
.lobe-mkt   { border-radius: 70% 30% 40% 60% / 30% 60% 40% 70%;  background: linear-gradient(315deg, rgba(219,145,146,0.45), rgba(145,159,169,0.2)) !important; }
/* execution chip is bottom-right → lower-right lobe bulges */
.lobe-exec  { border-radius: 60% 40% 30% 70% / 60% 40% 70% 30%;  background: linear-gradient(135deg, rgba(219,145,146,0.45), rgba(145,159,169,0.2)) !important; }

/* Compact chip positions */
.chip-wrap { position: absolute; }
.cw-id     { top: 14%;    left:  12%; }
.cw-mkt    { top: 14%;    right: 12%; }
.cw-exec   { bottom: 14%; right: 12%; }

/* Jewelry chips — same delicate scale as pill badges */
.tension-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 12px;
    border-radius: 100px;
    border: 1px solid rgba(247,244,238,0.045);
    background: rgba(247,244,238,0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    font-weight: 800;
    white-space: nowrap;
    transition: border-color 0.5s ease;
}
.tension-chip.active { border-color: rgba(219,145,146,0.12); }

.state-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--chartreuse);
    flex-shrink: 0;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}
.state-dot.flagged {
    background: var(--rose);
    box-shadow: 0 0 6px 2px rgba(219,145,146,0.5);
}

.tension-whisper {
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    white-space: nowrap;
    text-align: center;
}
.tension-whisper.show { animation: whisperFade 3.5s cubic-bezier(0.4,0,0.2,1) forwards; }
@keyframes whisperFade {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(4px); }
    15%, 80%  { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════════════════════
   03 COMMIT — Dealt Shaped Cards
   ══════════════════════════════════════════════ */
.fan-root {
    position: relative;
    flex-direction: column;
}
.fan-source {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    z-index: 4;
    position: relative;
}
.fan-card {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1rem;
    text-align: center;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--steel);
    transform-origin: top center;
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    top: 30%;
}
.shape-deck   { width: 100px; height: 160px; border-radius: 8px; z-index: 3; transform: rotate(0deg) translateX(0); }
.shape-square { width: 95px;  height:  95px; border-radius: 8px; z-index: 2; transform: rotate(0deg) translateX(0); }
.shape-wide   { width: 160px; height: 90px;  border-radius: 8px; z-index: 1; transform: rotate(0deg) translateX(0); }

#anim-03.play .f-deck    { transform: rotate(-18deg) translate(-85px,  30px); }
#anim-03.play .f-guard   { transform: rotate(0deg)   translate(  0px, -60px); }
#anim-03.play .f-summary { transform: rotate(18deg)  translate( 85px,  30px); }

.handoff-node {
    position: absolute;
    bottom: 10%;
    right: 10%;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    z-index: 10;
}
#anim-03.play .handoff-node { animation: nFadeIn 1.2s cubic-bezier(0.4,0,0.2,1) 1.1s forwards; }
@keyframes nFadeIn { to { opacity: 1; } }

.hairline-short { width: 36px; height: 1px; background: rgba(247,244,238,0.3); flex-shrink: 0; }
.chartreuse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--chartreuse);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   04 KEEP CURRENT — Fix 2 structural rebuild
   Blob LEFT, text RIGHT, clear gap, NO overlaps
   ══════════════════════════════════════════════ */
.card-04 {
    width: 90%;
    max-width: 500px;
}
.card-04-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;         /* clear visual gap between blob and text */
    padding: 2.5rem;  /* nothing touches the card edge */
}
.blob-04-wrap {
    flex: 0 0 auto;  /* blob never shrinks or grows */
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.blob-04 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(226, 203, 181, 0.3),
        rgba(145, 159, 169, 0.3)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(247,244,238,0.035);
    border-top: 1px solid rgba(247,244,238,0.08);
    box-shadow: 0 12px 34px rgba(0,0,0,0.42);
    position: relative;
    overflow: hidden;
    transition:
        border-radius 1.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow    1s  ease;
}
/* Rose wound in upper-right lobe only */
.wound-lobe {
    position: absolute;
    top: -15%;
    right: -15%;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219,145,146,0.7) 0%, transparent 70%);
    opacity: 0;
    transition:
        opacity     0.8s ease,
        background  1.2s ease;
}

/* Thin connector hairline */
.connector-04 {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.hairline-v-04 {
    width: 32px;
    height: 1px;
    background: rgba(247,244,238,0.28);
}

/* Text side — constrained so it never overflows */
.text-04-wrap {
    flex: 1 1 auto;
    min-width: 0; /* allows text to wrap */
}
.text-04-line {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    letter-spacing: 0.05em;
    line-height: 1.5;
    max-width: 22ch;
    opacity: 0; /* controlled by JS anim class */
    transition: opacity 0.6s ease, color 0.8s ease;
}
.text-04-line.show { opacity: 1; }
.text-04-line.rose-col { color: var(--rose); }
.text-04-line.chartreuse-col { color: var(--chartreuse); }

/* 04 blob state changes (JS-driven) */
#blob-04.weakened {
    border-radius: 56% 44% 50% 50% / 44% 44% 56% 56%;
    box-shadow: 0 8px 32px rgba(219,145,146,0.3);
}
#wound-04.active { opacity: 1; }
#wound-04.healed {
    opacity: 1;
    background: radial-gradient(circle, rgba(230,239,179,0.7) 0%, transparent 70%);
}
#glow-04.rose    { background: radial-gradient(ellipse at 50% 50%, #DB9192, #0A0C12 70%); }
#glow-04.chartreuse { background: radial-gradient(ellipse at 50% 50%, #E6EFB3, #0A0C12 70%); }

/* ══════════════════════════════════════════════
   CLOSING + FOOTER
   ══════════════════════════════════════════════ */
.closing {
    align-items: flex-start;
    gap: var(--space-xl);
}
.closing h2 { max-width: 18ch; }
.closing-actions {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    flex-wrap: wrap;
}
.early-access-block {
    flex-direction: column;
    align-items: flex-start;
}
.early-access-form {
    display: grid;
    grid-template-columns: minmax(9rem, 14rem) minmax(11rem, 16rem) auto;
    align-items: end;
    gap: 0.85rem;
    max-width: 100%;
}
.early-access-form[hidden] {
    display: none;
}
.early-access-form input {
    min-width: 0;
    height: 2.35rem;
    border: 0;
    border-bottom: 1px solid rgba(243,238,230,0.55);
    border-radius: 0;
    background: transparent;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}
.early-access-form input::placeholder {
    color: rgba(243,238,230,0.5);
}
.early-access-form input:focus {
    outline: 0;
    border-color: var(--sand);
}
.form-note {
    grid-column: 1 / -1;
    min-height: 1.2em;
    opacity: 0.62;
}
.form-note.error {
    color: var(--rose);
    opacity: 1;
}
.form-note.success {
    color: var(--chartreuse);
    opacity: 1;
}
.contact-link {
    opacity: 0.62;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.contact-link:hover {
    color: var(--sand);
    opacity: 1;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5vw;
    border-top: 1px solid rgba(247,244,238,0.08);
    gap: var(--space-m);
}
.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    flex-wrap: wrap;
    justify-content: flex-end;
}
.footer-links a {
    opacity: 0.62;
    transition: color 0.3s ease, opacity 0.3s ease;
}
.footer-links a:hover {
    color: var(--sand);
    opacity: 1;
}
.aside { opacity: 0.4; }

/* ══════════════════════════════════════════════
   GLOBAL KEYFRAMES
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .arc-section,
    .arc-section.reverse {
        flex-direction: column;
        padding-block: 10vh;
        gap: 3rem;
    }
    .arc-visual { width: 100%; height: 360px; }
    .card-04 { max-width: 100%; width: 100%; }
    .card-04-inner { padding: 1.75rem; }
    .footer { flex-direction: column; gap: 1rem; text-align: center; }
    .ghost-numeral { font-size: clamp(5rem, 14vw, 10rem); right: 0; }
}

@media (max-width: 640px) {
    .section { padding-inline: 6vw; }
    .card-04-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .hairline-v-04 { width: 1px; height: 24px; }
    .brand-lockup { width: 3.2rem; }
}

/* ══════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Force final states readable */
    .glass-blob { opacity: 1 !important; }
    .tether { opacity: 0.8 !important; }
    .meta-sheet { opacity: 0 !important; pointer-events: none; }
    #anim-03 .f-deck    { transform: rotate(-18deg) translate(-85px,  30px) !important; }
    #anim-03 .f-guard   { transform: rotate(0deg)   translate(  0px, -60px) !important; }
    #anim-03 .f-summary { transform: rotate(18deg)  translate( 85px,  30px) !important; }
    .handoff-node { opacity: 1 !important; }
    /* 04: show rose state statically */
    #wound-04  { opacity: 1 !important; }
    .text-04-line { opacity: 1 !important; color: var(--rose) !important; }
    .glass-tilt:hover { transform: none !important; }
}
