/* ============================================================
   bada.moe — a luminous tidepool
   ============================================================ */

:root {
    /* Sea palette */
    --sea-abyss: #0B1733;
    --sea-deep: #16224A;
    --sea-shallow: #203066;

    /* Triadic blooms */
    --bloom-coral: #FF6F91;
    --bloom-citrine: #F5D76E;
    --bloom-aqua: #5EE7DF;

    /* Foam (text) */
    --foam: #F2F7FF;
    --foam-dim: #9AB0D4;

    /* Focus */
    --focus: #FFD166;

    /* Spacing scale */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 28px;
    --s-7: 40px;
    --s-8: 64px;
    --s-9: 96px;

    /* Radii */
    --r-1: 6px;
    --r-2: 12px;
    --r-3: 18px;
    --r-4: 28px;

    /* Motion */
    --d-1: 120ms;
    --d-2: 240ms;
    --d-3: 400ms;
    --d-4: 600ms;
    --ease-enter: cubic-bezier(.2,.8,.2,1);
    --ease-exit: cubic-bezier(.4,0,.6,1);

    /* Display fonts */
    --font-display: "Unbounded", "Archivo Black", "Inter", system-ui, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Pretendard", "Noto Sans JP", system-ui, sans-serif;
    --font-accent: "Caprasimo", "Unbounded", serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

html { scroll-behavior: smooth; }

body {
    background: var(--sea-abyss);
    color: var(--foam);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image:
        radial-gradient(ellipse at 18% 12%, rgba(94, 231, 223, 0.12), transparent 55%),
        radial-gradient(ellipse at 82% 88%, rgba(255, 111, 145, 0.10), transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(32, 48, 102, 0.45), transparent 70%);
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: var(--s-3) var(--s-5);
    background: var(--focus);
    color: var(--sea-abyss);
    font-weight: 700;
    z-index: 9999;
    border-radius: 0 0 var(--r-2) 0;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Background parallax layers
   ============================================================ */
.bg-layers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.bg-kelp {
    transform: translate3d(0, var(--p-kelp, 0), 0);
    opacity: 0.85;
}
.bg-kelp .kelp {
    animation: sway 9s ease-in-out infinite;
    transform-origin: bottom center;
}
.bg-kelp .kelp:nth-child(2) { animation-duration: 11s; animation-delay: -2s; }
.bg-kelp .kelp:nth-child(3) { animation-duration: 13s; animation-delay: -4s; }
.bg-kelp .kelp:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
.bg-kelp .kelp:nth-child(5) { animation-duration: 14s; animation-delay: -6s; }

@keyframes sway {
    0%, 100% { transform: translateX(-6px) rotate(-1.2deg); }
    50%      { transform: translateX(6px) rotate(1.2deg); }
}

.bg-leaves {
    transform: translate3d(0, var(--p-leaves, 0), 0);
}

.bg-dust {
    transform: translate3d(0, var(--p-dust, 0), 0);
}
.bg-dust .dust {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--bloom-aqua);
    box-shadow: 0 0 12px var(--bloom-aqua);
    opacity: 0.7;
    animation: drift 18s linear infinite;
}
.bg-dust .dust:nth-child(1)  { left:  6%; top: 20%; animation-delay: -1s; background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(2)  { left: 14%; top: 60%; animation-delay: -3s; background: var(--bloom-coral);  width: 3px; height: 3px;}
.bg-dust .dust:nth-child(3)  { left: 22%; top: 35%; animation-delay: -5s; background: var(--bloom-citrine);}
.bg-dust .dust:nth-child(4)  { left: 30%; top: 78%; animation-delay: -7s; background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(5)  { left: 38%; top: 14%; animation-delay: -9s; background: var(--bloom-coral); width: 3px; height: 3px;}
.bg-dust .dust:nth-child(6)  { left: 46%; top: 52%; animation-delay: -11s;background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(7)  { left: 54%; top: 24%; animation-delay: -13s;background: var(--bloom-citrine);}
.bg-dust .dust:nth-child(8)  { left: 62%; top: 70%; animation-delay: -15s;background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(9)  { left: 70%; top: 40%; animation-delay: -2s; background: var(--bloom-coral); width: 3px; height: 3px;}
.bg-dust .dust:nth-child(10) { left: 78%; top: 12%; animation-delay: -4s; background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(11) { left: 86%; top: 64%; animation-delay: -6s; background: var(--bloom-citrine);}
.bg-dust .dust:nth-child(12) { left: 94%; top: 30%; animation-delay: -8s; background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(13) { left: 10%; top: 88%; animation-delay: -10s;background: var(--bloom-coral); width: 3px; height: 3px;}
.bg-dust .dust:nth-child(14) { left: 50%; top: 90%; animation-delay: -12s;background: var(--bloom-aqua);   }
.bg-dust .dust:nth-child(15) { left: 74%; top: 86%; animation-delay: -14s;background: var(--bloom-citrine);}
.bg-dust .dust:nth-child(16) { left: 26%; top: 6%;  animation-delay: -16s;background: var(--bloom-aqua);   }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1);   opacity: 0.7; }
    50%  { transform: translate(20px, -28px) scale(1.4); opacity: 1; }
    100% { transform: translate(0, 0) scale(1);   opacity: 0.7; }
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(11, 23, 51, 0.85), rgba(11, 23, 51, 0.55));
    border-bottom: 1px solid rgba(94, 231, 223, 0.12);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--s-4) var(--s-6);
    display: flex;
    align-items: center;
    gap: var(--s-7);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--foam);
    transition: filter var(--d-2) var(--ease-enter);
}
.logo:hover { filter: drop-shadow(0 0 12px var(--bloom-aqua)); }
.logo-mark {
    display: inline-flex;
    filter: drop-shadow(0 0 8px rgba(94, 231, 223, 0.5));
}
.logo-dot { color: var(--bloom-coral); }

.primary-nav { flex: 1; }
.primary-nav ul {
    display: flex;
    gap: var(--s-6);
}
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--foam-dim);
    padding: var(--s-2) 0;
    transition: color var(--d-2) var(--ease-enter);
}
.nav-link::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bloom-citrine);
    transform: translateY(-50%) scale(0);
    box-shadow: 0 0 10px var(--bloom-citrine);
    transition: transform var(--d-2) var(--ease-enter);
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1.6px;
    background: var(--bloom-aqua);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--d-2) var(--ease-enter);
}
.nav-link:hover, .nav-link.is-active {
    color: var(--foam);
}
.nav-link:hover::before,
.nav-link.is-active::before {
    transform: translateY(-50%) scale(1);
}
.nav-link:hover::after { transform: scaleX(1); }

.header-tools {
    display: flex;
    align-items: center;
    gap: var(--s-4);
}

.lang-toggle {
    display: inline-flex;
    background: rgba(32, 48, 102, 0.5);
    border: 1px solid rgba(94, 231, 223, 0.18);
    border-radius: 999px;
    padding: 3px;
}
.lang-btn {
    padding: 6px var(--s-3);
    font-size: 13px;
    font-weight: 600;
    color: var(--foam-dim);
    border-radius: 999px;
    transition: background var(--d-2) var(--ease-enter), color var(--d-2) var(--ease-enter);
}
.lang-btn.is-active {
    color: var(--sea-abyss);
    background: var(--bloom-aqua);
    box-shadow: 0 0 18px rgba(94, 231, 223, 0.45);
}
.lang-btn:hover:not(.is-active) {
    color: var(--foam);
    background: rgba(94, 231, 223, 0.10);
}

/* Filter chips */
.filter-bar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--s-6) var(--s-4);
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 8px var(--s-4);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--foam-dim);
    background: rgba(32, 48, 102, 0.45);
    border: 1px solid rgba(94, 231, 223, 0.10);
    transition: all var(--d-2) var(--ease-enter);
    min-height: 36px;
}
.chip:hover {
    color: var(--foam);
    border-color: rgba(94, 231, 223, 0.4);
    transform: translateY(-1px);
}
.chip.is-active {
    color: var(--sea-abyss);
    background: var(--bloom-aqua);
    border-color: var(--bloom-aqua);
    box-shadow: 0 0 22px rgba(94, 231, 223, 0.5);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    z-index: 1;
    min-height: 78vh;
    padding: var(--s-9) var(--s-6) var(--s-8);
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-inner {
    max-width: 980px;
}
.hero-eyebrow {
    font-family: var(--font-accent);
    font-size: 16px;
    color: var(--bloom-aqua);
    margin: 0 0 var(--s-5);
    letter-spacing: 0.05em;
    text-shadow: 0 0 18px rgba(94, 231, 223, 0.45);
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(56px, 11vw, 156px);
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--foam);
    text-shadow: 0 0 60px rgba(94, 231, 223, 0.18);
    margin-left: -0.05em; /* slight bleed */
}
.hero-title .line {
    display: block;
}
.hero-title .ch {
    display: inline-block;
    opacity: 0;
    transform: translateY(28px);
    animation: charRise 600ms var(--ease-enter) forwards;
}
.hero-title .line:nth-child(2) .ch:nth-child(1) { color: var(--bloom-aqua); }
.hero-title .line:nth-child(2) .ch:last-child { color: var(--bloom-coral); }
@keyframes charRise {
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    margin: var(--s-7) 0 0;
    font-size: clamp(17px, 1.4vw, 22px);
    color: var(--foam-dim);
    max-width: 640px;
    line-height: 1.5;
}
.hero-accent {
    color: var(--bloom-citrine);
    font-family: var(--font-accent);
    font-size: 1.05em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-6);
    margin-top: var(--s-7);
    font-size: 14px;
    color: var(--foam-dim);
}
.meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}
.meta-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--d, var(--bloom-aqua));
    box-shadow: 0 0 10px var(--d, var(--bloom-aqua));
    animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.4); }
}

.scroll-cue {
    position: absolute;
    left: var(--s-6);
    bottom: var(--s-7);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    color: var(--foam-dim);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: opacity var(--d-3) var(--ease-exit);
}
.scroll-cue svg {
    animation: jellyDrift 3.4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 111, 145, 0.6));
}
@keyframes jellyDrift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}
.scroll-cue.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Grid section
   ============================================================ */
.grid-section {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--s-7) var(--s-6) var(--s-9);
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--s-7);
    gap: var(--s-5);
    flex-wrap: wrap;
}
.section-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(34px, 4vw, 56px);
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--foam);
}
.section-result {
    color: var(--foam-dim);
    font-size: 14px;
    margin: 0;
}
.section-result .count {
    color: var(--bloom-aqua);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 220px;
    gap: var(--s-5);
}

.tile {
    position: relative;
    border-radius: var(--r-3);
    overflow: hidden;
    background: var(--sea-deep);
    transition:
        transform var(--d-2) var(--ease-enter),
        opacity var(--d-3) var(--ease-enter),
        filter var(--d-3) var(--ease-enter);
    /* Halo */
    box-shadow:
        0 0 0 1px rgba(94, 231, 223, 0.06),
        0 8px 28px -12px rgba(0, 0, 0, 0.6),
        0 0 30px -10px var(--halo, var(--bloom-aqua));
}
.tile.span-2 { grid-row: span 2; }

.tile.is-resting {
    opacity: 0.25;
    filter: saturate(0.4);
}

.tile.is-pulse {
    animation: tilePulse 2s var(--ease-enter) 2;
}
@keyframes tilePulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(94, 231, 223, 0.06), 0 8px 28px -12px rgba(0,0,0,0.6), 0 0 30px -10px var(--halo, var(--bloom-aqua));}
    50%      { box-shadow: 0 0 0 1px rgba(94, 231, 223, 0.15), 0 8px 28px -12px rgba(0,0,0,0.6), 0 0 60px 0 var(--halo, var(--bloom-aqua));}
}

.tile-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--foam);
    padding: var(--s-3);
    gap: var(--s-3);
    transition: transform var(--d-2) var(--ease-enter);
}

.tile-art {
    flex: 1;
    border-radius: var(--r-2);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}
.tile-art svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform var(--d-3) var(--ease-enter);
}
.tile-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11, 23, 51, 0.4));
    pointer-events: none;
}

.tile-meta {
    padding: 4px var(--s-2) var(--s-2);
    transform: translateY(0);
    transition: transform var(--d-2) var(--ease-enter);
}

.tile-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    color: var(--foam);
}
.tile-caption {
    margin: 0 0 var(--s-2);
    font-size: 13.5px;
    color: var(--foam-dim);
    line-height: 1.4;
}
.tile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tile-tags li {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--foam-dim);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(154, 176, 212, 0.25);
}

.tile-badge {
    position: absolute;
    top: var(--s-3);
    right: var(--s-3);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--sea-abyss);
    background: var(--bloom-citrine);
    box-shadow: 0 0 18px rgba(245, 215, 110, 0.55);
    z-index: 2;
}

/* Tile hover choreography */
.tile:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 1px rgba(94, 231, 223, 0.18),
        0 18px 48px -16px rgba(0, 0, 0, 0.7),
        0 0 60px -8px var(--halo, var(--bloom-aqua));
}
.tile:hover .tile-art svg { transform: scale(1.04); }
.tile:hover .tile-meta { transform: translateY(-6px); }
.tile:hover .tile-title { color: var(--bloom-aqua); }

/* Tile entry stagger */
.tile {
    opacity: 0;
    transform: translateY(20px);
    animation: tileRise var(--d-4) var(--ease-enter) forwards;
}
.tile:nth-child(1)  { animation-delay: 50ms;  }
.tile:nth-child(2)  { animation-delay: 100ms; }
.tile:nth-child(3)  { animation-delay: 150ms; }
.tile:nth-child(4)  { animation-delay: 200ms; }
.tile:nth-child(5)  { animation-delay: 250ms; }
.tile:nth-child(6)  { animation-delay: 300ms; }
.tile:nth-child(7)  { animation-delay: 0ms; }
.tile:nth-child(n+8){ animation-delay: 0ms; }
@keyframes tileRise {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   About
   ============================================================ */
.about-section {
    position: relative;
    z-index: 1;
    padding: var(--s-9) var(--s-6);
    background: linear-gradient(180deg, transparent, rgba(22, 34, 74, 0.6), transparent);
    border-top: 1px solid rgba(94, 231, 223, 0.10);
    border-bottom: 1px solid rgba(94, 231, 223, 0.10);
}
.about-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.about-lede {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.5;
    color: var(--foam);
    max-width: 780px;
    margin: var(--s-6) 0 var(--s-8);
}
.about-lede em {
    font-style: italic;
    color: var(--bloom-aqua);
    font-family: var(--font-accent);
    font-size: 1.1em;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--s-5);
}
.about-card {
    padding: var(--s-6);
    border-radius: var(--r-3);
    background: rgba(22, 34, 74, 0.7);
    border: 1px solid rgba(94, 231, 223, 0.10);
    transition: transform var(--d-2) var(--ease-enter), border-color var(--d-2) var(--ease-enter);
}
.about-card:hover {
    transform: translateY(-3px);
    border-color: rgba(94, 231, 223, 0.4);
    box-shadow: 0 0 50px -10px var(--bloom-aqua);
}
.about-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 var(--s-3);
    color: var(--foam);
    letter-spacing: -0.01em;
}
.about-card p {
    margin: 0;
    color: var(--foam-dim);
    font-size: 15px;
    line-height: 1.55;
}
.about-card a {
    color: var(--bloom-aqua);
    border-bottom: 1px solid rgba(94, 231, 223, 0.4);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    position: relative;
    z-index: 1;
    padding: var(--s-9) var(--s-6) var(--s-7);
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--s-7);
}
.footer-brand .logo-text {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.02em;
}
.footer-tag {
    margin: var(--s-3) 0 0;
    color: var(--foam-dim);
    font-size: 14px;
    max-width: 320px;
}
.secondary-nav ul, .feed-nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    font-size: 14px;
}
.secondary-nav a, .feed-nav a {
    color: var(--foam-dim);
    transition: color var(--d-2) var(--ease-enter);
}
.secondary-nav a:hover, .feed-nav a:hover { color: var(--bloom-aqua); }

.colophon {
    grid-column: 1 / -1;
    margin: var(--s-7) 0 0;
    padding-top: var(--s-5);
    border-top: 1px solid rgba(94, 231, 223, 0.10);
    font-size: 12.5px;
    color: var(--foam-dim);
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--s-3);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    bottom: var(--s-7);
    transform: translate(-50%, 24px);
    padding: var(--s-3) var(--s-5);
    background: var(--sea-shallow);
    color: var(--foam);
    border: 1px solid rgba(94, 231, 223, 0.4);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--d-2) var(--ease-enter), transform var(--d-2) var(--ease-enter);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(94, 231, 223, 0.18);
}
.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .header-inner {
        flex-wrap: wrap;
        gap: var(--s-3);
        padding: var(--s-3) var(--s-4);
    }
    .primary-nav { order: 3; flex-basis: 100%; }
    .primary-nav ul { gap: var(--s-4); }
    .filter-bar { padding: 0 var(--s-4) var(--s-3); }
    .hero { padding: var(--s-8) var(--s-4) var(--s-7); min-height: 60vh; }
    .hero-tag { font-size: 16px; }
    .grid-section { padding: var(--s-6) var(--s-4) var(--s-8); }
    .tile-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    .footer-inner { grid-template-columns: 1fr; }
    .scroll-cue { left: var(--s-4); bottom: var(--s-4); }
}
@media (max-width: 560px) {
    .tile.span-2 { grid-row: span 2; }
    .header-tools { margin-left: auto; }
    .lang-btn { padding: 5px 10px; font-size: 12px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bg-kelp .kelp,
    .bg-dust .dust,
    .meta-item .dot,
    .scroll-cue svg {
        animation: none;
    }
    .hero-title .ch {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .tile {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
