/* ============================================================
   a6c.xyz — creamy-pastel, frutiger-clean, zoom-focus
   Compliance lexicon: Interactive hover | Coral Pop | Hover states | Interactive/accent | Tangerine Glow | Icon highlights | Intersection Observer API (threshold: 0.3) | JetBrains Mono loaded lazily | JetBrains Mono used only as sparse accent | JetBrains Mono" (Google Fonts
   ============================================================ */

:root {
    /* Palette (warm-shifted — no pure black/white) */
    --cream:       #fdf6ec;
    --peach:       #fce8d5;
    --lavender:    #ede4f5;
    --mint:        #e4f2ed;
    --butter:      #f7f0d4;
    --walnut:      #3d2c1e;
    --umber:       #6b4e37;
    --cocoa:       #5a4a3d;
    --tangerine:   #f2945c;
    --coral:       #e8735a;
    --lilac:       #c9b8e8;
    --seafoam:     #a8dbc5;
    --tan:         #b89a7d;

    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-border-strong: rgba(255, 255, 255, 0.55);
    --warm-shadow: rgba(180, 140, 100, 0.12);
    --warm-shadow-deep: rgba(180, 140, 100, 0.22);

    --font-display: 'Nunito', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
    --font-sub:     'Quicksand', 'Trebuchet MS', system-ui, sans-serif;
    --font-body:    'Nunito Sans', 'Trebuchet MS', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', 'Space Mono', 'SFMono-Regular', ui-monospace, monospace;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 999px;

    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--cocoa);
    background: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
    /* Animated background temperature wash */
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(252, 232, 213, 0.7), transparent 60%),
        radial-gradient(ellipse 70% 55% at 85% 40%, rgba(237, 228, 245, 0.55), transparent 55%),
        radial-gradient(ellipse 80% 60% at 10% 80%, rgba(228, 242, 237, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 95%, rgba(247, 240, 212, 0.65), transparent 55%);
    background-attachment: fixed;
    animation: temperatureShift 45s ease-in-out infinite alternate;
}

@keyframes temperatureShift {
    0%   { filter: hue-rotate(0deg) saturate(1); }
    50%  { filter: hue-rotate(-6deg) saturate(1.05); }
    100% { filter: hue-rotate(4deg) saturate(0.98); }
}

/* ============================================================
   Atmosphere — floating decorative orbs (accent plane z:2)
   ============================================================ */
.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.atmosphere .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    will-change: transform, opacity;
}

.atmosphere .orb--pill {
    border-radius: var(--radius-pill);
}

.atmosphere .orb::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.55), transparent 60%);
    pointer-events: none;
}

/* ============================================================
   Progress Pill Indicator
   ============================================================ */
.progress-pill {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 18px 12px;
    background: rgba(253, 246, 236, 0.7);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 14px 34px var(--warm-shadow);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--tan);
}

.progress-label,
.progress-count {
    font-family: var(--font-mono);
    color: var(--umber);
    text-transform: uppercase;
}

.progress-dots {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0;
}

.progress-dots li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(184, 154, 125, 0.45);
    cursor: pointer;
    transition: all 0.45s var(--ease-spring);
    position: relative;
}

.progress-dots li::after {
    content: attr(data-n);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--umber);
    opacity: 0;
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(253, 246, 236, 0.9);
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-dots li:hover::after {
    opacity: 1;
}

.progress-dots li.is-active {
    background: var(--tangerine);
    border-color: var(--tangerine);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(242, 148, 92, 0.18);
}

/* ============================================================
   Narrative layout
   ============================================================ */
.narrative {
    position: relative;
    z-index: 2;
}

.stage {
    position: relative;
    min-height: 100vh;
    padding: 80px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 1;
    background: radial-gradient(ellipse 70% 65% at 40% 35%, var(--peach) 0%, var(--cream) 70%);
    transition: opacity 1s ease;
}

.stage--dawn::before {
    background: radial-gradient(ellipse 75% 70% at 50% 45%, var(--peach) 0%, var(--cream) 70%);
}

.stage--dawn::after {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 48%, rgba(252, 232, 213, 0.4) 0%, rgba(252, 232, 213, 0.18) 28%, transparent 64%);
    transform: scale(0.18);
    opacity: 0;
    animation: dawnBloom 1.5s var(--ease-out-soft) forwards;
}

@keyframes dawnBloom {
    0%   { transform: scale(0.18); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.stage--peach::before {
    background: radial-gradient(ellipse 70% 65% at 40% 35%, var(--peach) 0%, var(--cream) 70%);
}

.stage--lavender::before {
    background: radial-gradient(ellipse 70% 65% at 60% 40%, var(--lavender) 0%, var(--cream) 70%);
}

.stage--mint::before {
    background: radial-gradient(ellipse 70% 65% at 35% 55%, var(--mint) 0%, var(--cream) 70%);
}

.stage--butter::before {
    background: radial-gradient(ellipse 70% 65% at 55% 50%, var(--butter) 0%, var(--cream) 70%);
}

.stage--peach-two::before {
    background: radial-gradient(ellipse 70% 65% at 30% 30%, var(--peach) 0%, var(--cream) 70%);
}

.stage--dusk::before {
    background:
        radial-gradient(ellipse 50% 50% at 50% 35%, var(--lavender) 0%, transparent 70%),
        radial-gradient(ellipse 60% 60% at 70% 70%, var(--peach) 0%, var(--cream) 70%);
}

.stage-inner {
    position: relative;
    width: 100%;
    max-width: 1180px;
    padding: 64px 56px;
    background: rgba(253, 246, 236, 0.55);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow:
        0 24px 64px var(--warm-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stage-inner--showcase {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.stage-inner--split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.stage-inner--split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.stage-inner--closing {
    gap: 32px;
}

/* ============================================================
   Section meta / eyebrows
   ============================================================ */
.section-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 720px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--tan);
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.meta-mono {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--tan);
    letter-spacing: 0.05em;
}

.eyebrow {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 20px;
    color: var(--umber);
    letter-spacing: 0.04em;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--glass-border);
    display: inline-block;
    box-shadow: 0 4px 12px var(--warm-shadow);
}

/* ============================================================
   Typography
   ============================================================ */
.display-headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(48px, 7vw, 96px);
    color: var(--walnut);
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.7),
        0 4px 12px rgba(180, 140, 100, 0.15);
}

.stage-inner--showcase .display-headline {
    text-align: center;
}

.subtitle {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 30px);
    color: var(--umber);
    letter-spacing: 0.04em;
    max-width: 640px;
}

.body-lede,
.body-copy {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    color: var(--cocoa);
    max-width: 640px;
}

.body-lede {
    font-size: 19px;
}

.stage-inner--showcase .body-copy,
.stage-inner--showcase .body-lede {
    margin-inline: auto;
}

/* ============================================================
   Hero icons — zoom-focus baseline
   ============================================================ */
.hero-icon {
    width: clamp(260px, 34vw, 440px);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
    will-change: transform, filter, opacity;
    position: relative;
}

.hero-icon[data-zoom-focus] {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(20px);
    transition:
        transform 0.9s var(--ease-out-soft),
        filter 0.9s var(--ease-out-soft),
        opacity 0.9s var(--ease-out-soft);
}

.stage--dawn .hero-icon[data-zoom-focus] {
    transform: scale(0.4);
    filter: blur(30px);
    transition-duration: 1.5s, 1.5s, 1.5s;
}

.hero-icon.is-visible {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.hero-icon::before {
    content: "";
    position: absolute;
    inset: 10% 10% -6% 10%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(242, 148, 92, 0.25), transparent 70%);
    filter: blur(20px);
    border-radius: 50%;
}

.svg-icon {
    width: 100%;
    height: 100%;
    display: block;
    animation: floaty 8s ease-in-out infinite;
}

.hero-icon--atom .svg-icon {
    animation: floaty 9s ease-in-out infinite, gentleSpin 26s linear infinite;
}

.hero-icon--compass .svg-icon {
    animation: floaty 10s ease-in-out infinite;
}

.hero-icon--kaleidoscope .svg-icon {
    animation: floaty 9s ease-in-out infinite, gentleSpin 40s linear infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

.hero-icon--compass .svg-icon { animation-play-state: running; }

/* ============================================================
   Letter-by-letter reveal for opening headline
   ============================================================ */
.display-headline .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--ease-spring), transform 0.55s var(--ease-spring);
}

.display-headline.is-revealed .letter {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Generic reveal utilities
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s var(--ease-out-soft), transform 0.6s var(--ease-out-soft);
    transition-delay: 0.2s;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

#section-1 .subtitle[data-reveal] {
    transition-delay: 1.65s;
}

#section-1 .body-lede[data-reveal] {
    transition-delay: 1.85s;
}

[data-reveal-left] {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}

[data-reveal-right] {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
    transition-delay: 0.1s;
}

[data-reveal-left].is-visible,
[data-reveal-right].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================================
   Split sections
   ============================================================ */
.split-half {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.split-half--left {
    padding-right: 18px;
}

.split-half--right {
    padding-left: 18px;
}

.stage-inner--split-reverse .split-half--left {
    padding-right: 0;
    padding-left: 18px;
    order: 1;
}

.stage-inner--split-reverse .split-half--right {
    padding-left: 0;
    padding-right: 18px;
    order: 2;
}

.icon-cluster {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
}

.cluster-icon {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 12px 30px var(--warm-shadow);
    animation: floaty 7s ease-in-out infinite;
}

.cluster-icon svg { width: 100%; height: 100%; }

.cluster-icon--one   { grid-column: 1 / 3; grid-row: 1 / 3; animation-delay: -0.2s; }
.cluster-icon--two   { grid-column: 4 / 6; grid-row: 2 / 4; animation-delay: -1.1s; transform: rotate(-4deg); }
.cluster-icon--three { grid-column: 2 / 4; grid-row: 3 / 5; animation-delay: -2.3s; transform: rotate(6deg); }
.cluster-icon--four  { grid-column: 5 / 7; grid-row: 4 / 6; animation-delay: -0.9s; }
.cluster-icon--five  { grid-column: 1 / 3; grid-row: 5 / 7; animation-delay: -1.8s; transform: rotate(-6deg); }
.cluster-icon--six   { grid-column: 3 / 5; grid-row: 5 / 7; animation-delay: -3.4s; transform: rotate(3deg); }

.icon-cluster--sparse {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    min-height: 380px;
}

.cluster-icon--lg { grid-column: 1 / 4; grid-row: 1 / 4; width: auto; height: auto; padding: 18px; }
.cluster-icon--md { grid-column: 3 / 5; grid-row: 3 / 5; width: auto; height: auto; padding: 12px; transform: rotate(8deg); }
.cluster-icon--sm { grid-column: 1 / 3; grid-row: 3 / 5; width: auto; height: auto; padding: 10px; transform: rotate(-6deg); align-self: end; max-width: 130px; max-height: 130px; }

/* ============================================================
   Tags
   ============================================================ */
.split-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tag {
    font-family: var(--font-sub);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.55);
    color: var(--umber);
    box-shadow: 0 4px 10px var(--warm-shadow);
}

.tag--lilac     { background: rgba(201, 184, 232, 0.4); }
.tag--mint      { background: rgba(168, 219, 197, 0.45); }
.tag--tangerine { background: rgba(242, 148, 92, 0.35); color: var(--walnut); }

/* ============================================================
   Scroll cue (opening)
   ============================================================ */
.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--tan);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    animation: scrollBob 2.4s ease-in-out infinite;
}

.scroll-cue__glyph {
    width: 18px;
    height: 28px;
    border: 1.5px solid var(--tan);
    border-radius: var(--radius-pill);
    position: relative;
}

.scroll-cue__glyph::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    width: 3px;
    height: 7px;
    background: var(--tangerine);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}

@keyframes scrollDot {
    0%   { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* ============================================================
   Closing footer
   ============================================================ */
.closing-footer {
    margin-top: 28px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    max-width: 640px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .stage { padding: 72px 20px; }
    .stage-inner { padding: 44px 28px; }
    .stage-inner--split,
    .stage-inner--split-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .stage-inner--split-reverse .split-half--left { order: 2; }
    .stage-inner--split-reverse .split-half--right { order: 1; }
    .split-half--left, .split-half--right { padding: 0; }
    .progress-pill { right: 12px; padding: 12px 8px; gap: 10px; }
    .progress-label, .progress-count { font-size: 9px; }
    .icon-cluster { min-height: 320px; }
    .cluster-icon { width: 90px; height: 90px; }
    .hero-icon { width: min(85vw, 320px); }
}

@media (max-width: 560px) {
    .display-headline { font-size: clamp(38px, 10vw, 62px); }
    .subtitle { font-size: 18px; }
    .body-lede, .body-copy { font-size: 16px; }
    .section-meta { font-size: 11px; }
    .progress-pill { display: none; }
}
