/* ===========================================================
   bada.city — Design Language: inflated-3D nostalgic oceanscape
   Palette: #0a1628 #1a6b7a #6db5ca #e8c87a #c85a3a #e6dcc8 #c8dce6 #06101e
   Fonts:   Black Han Sans, Archivo Black, Noto Sans KR, Gowun Batang
   Script:  IntersectionObserver reveals hex cells; IntersectionObserver`
   =========================================================== */

/* ---------- CSS @property registrations (for smooth gradient animation) ---------- */
@property --ocean-shift {
    syntax: '<percentage>';
    initial-value: 40%;
    inherits: false;
}
@property --ocean-top {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', system-ui, sans-serif;
    font-weight: 300;
    color: #c8dce6;
    background: #0a1628;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.oceanscape {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    background: #0a1628;
}

/* =========================================================
   The Surface — Opening Vista
   ========================================================= */
.surface {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 6vw, 6rem) clamp(1rem, 4vw, 3rem);
    overflow: hidden;
    isolation: isolate;
}

.ocean-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #6db5ca 0%, #1a6b7a var(--ocean-shift), #0a1628 100%);
    animation: ocean-breathe 10s ease-in-out infinite;
    z-index: -2;
}

@keyframes ocean-breathe {
    0%, 100% { --ocean-shift: 40%; }
    50% { --ocean-shift: 62%; }
}

.hero-wrap {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    opacity: 0;
    transform: translateY(24px);
    animation: text-rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes text-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inflated-3D Korean wordmark */
.wordmark-ko {
    font-family: 'Black Han Sans', Impact, sans-serif;
    font-size: clamp(6rem, 25vw, 18rem);
    line-height: 0.92;
    letter-spacing: 0.04em;
    color: #e6dcc8;
    display: flex;
    gap: 0.02em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 2px rgba(200, 220, 230, 0.45),
        0 3px 4px rgba(109, 181, 202, 0.4),
        0 6px 10px rgba(26, 107, 122, 0.5),
        0 10px 18px rgba(10, 22, 40, 0.45),
        0 16px 28px rgba(10, 22, 40, 0.4),
        0 24px 40px rgba(6, 16, 30, 0.5),
        0 36px 64px rgba(6, 16, 30, 0.55);
    filter: drop-shadow(0 20px 40px rgba(6, 16, 30, 0.35));
}

.char {
    display: inline-block;
    background: linear-gradient(175deg, #f3ebd6 0%, #e6dcc8 35%, #c8dce6 70%, #6db5ca 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: char-wobble 6s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

.char-1 { animation-delay: 0s; }
.char-2 { animation-delay: 0.6s; }

@keyframes char-wobble {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-6px) rotate(-0.4deg) scale(1.005); }
}

.wordmark-latin {
    font-family: 'Archivo Black', Impact, sans-serif;
    font-weight: 400;
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    text-transform: lowercase;
    letter-spacing: 0.24em;
    color: #e6dcc8;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.3),
        0 4px 14px rgba(6, 16, 30, 0.55);
}

.hero-tagline {
    font-family: 'Gowun Batang', Georgia, serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: #e8c87a;
    letter-spacing: 0.02em;
    font-style: italic;
    opacity: 0.85;
    max-width: 30ch;
}

/* =========================================================
   Organic Blobs — drifting, morphing, luminous
   ========================================================= */
.blob-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    mix-blend-mode: screen;
    filter: blur(18px);
    will-change: transform, border-radius;
    animation-name: blob-morph, blob-drift;
    animation-timing-function: ease-in-out, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-direction: alternate, alternate;
}

@keyframes blob-morph {
    0%   { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25%  { border-radius: 58% 42% 33% 67% / 52% 63% 37% 48%; }
    50%  { border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }
    75%  { border-radius: 45% 55% 65% 35% / 58% 38% 62% 42%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes blob-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4vw, -2vw, 0) scale(1.08); }
    100% { transform: translate3d(-3vw, 3vw, 0) scale(0.95); }
}

.blob-1 {
    width: 42vw; height: 42vw;
    top: -12vw; left: -8vw;
    background: radial-gradient(circle at 30% 30%, rgba(109, 181, 202, 0.55), rgba(26, 107, 122, 0.15) 70%);
    animation-duration: 11s, 18s;
    opacity: 0.32;
}
.blob-2 {
    width: 30vw; height: 30vw;
    top: 20vh; right: -10vw;
    background: radial-gradient(circle at 60% 40%, rgba(232, 200, 122, 0.45), rgba(200, 90, 58, 0.1) 70%);
    animation-duration: 13s, 22s;
    opacity: 0.22;
}
.blob-3 {
    width: 22vw; height: 22vw;
    bottom: 8vh; left: 22vw;
    background: radial-gradient(circle at 40% 50%, rgba(200, 220, 230, 0.5), rgba(109, 181, 202, 0.1) 70%);
    animation-duration: 9s, 16s;
    opacity: 0.28;
}
.blob-4 {
    width: 18vw; height: 18vw;
    top: 55vh; left: 10vw;
    background: radial-gradient(circle at 50% 50%, rgba(26, 107, 122, 0.6), rgba(10, 22, 40, 0.1) 70%);
    animation-duration: 7s, 14s;
    opacity: 0.25;
}
.blob-5 {
    width: 26vw; height: 26vw;
    bottom: -8vw; right: 20vw;
    background: radial-gradient(circle at 30% 30%, rgba(109, 181, 202, 0.5), rgba(26, 107, 122, 0.1) 70%);
    animation-duration: 15s, 24s;
    opacity: 0.2;
}
.blob-6 {
    width: 36vw; height: 36vw;
    top: -8vw; right: -10vw;
    background: radial-gradient(circle at 50% 50%, rgba(109, 181, 202, 0.55), rgba(26, 107, 122, 0.12) 70%);
    animation-duration: 12s, 20s;
    opacity: 0.22;
}
.blob-7 {
    width: 24vw; height: 24vw;
    bottom: 5vh; left: -6vw;
    background: radial-gradient(circle at 40% 30%, rgba(232, 200, 122, 0.42), rgba(200, 90, 58, 0.08) 70%);
    animation-duration: 10s, 17s;
    opacity: 0.18;
}
.blob-8 {
    width: 20vw; height: 20vw;
    top: 40%; left: 45%;
    background: radial-gradient(circle at 50% 50%, rgba(200, 220, 230, 0.45), rgba(109, 181, 202, 0.1) 70%);
    animation-duration: 8s, 15s;
    opacity: 0.2;
}

/* =========================================================
   Sharp-Angle Motifs — columnar basalt counterpoint
   ========================================================= */
.sharp-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.sharp {
    position: absolute;
    background: linear-gradient(180deg, rgba(232, 200, 122, 0) 0%, rgba(232, 200, 122, 0.35) 45%, rgba(232, 200, 122, 0) 100%);
    width: 1px;
}

.sharp-a { top: 4vh; left: 14%;  height: 40vh; transform: rotate(15deg); }
.sharp-b { top: 30vh; left: 72%; height: 45vh; transform: rotate(-30deg); }
.sharp-c { bottom: 8vh; left: 48%; height: 36vh; transform: rotate(60deg); }
.sharp-d { top: 8vh; left: 18%; height: 50vh; transform: rotate(30deg); }
.sharp-e { top: 22vh; right: 10%; height: 55vh; transform: rotate(-15deg); }

/* =========================================================
   The Reef — Hexagonal Honeycomb
   ========================================================= */
.reef {
    position: relative;
    padding: clamp(6rem, 12vw, 10rem) clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, #0a1628 0%, #06101e 50%, #0a1628 100%);
    overflow: hidden;
    isolation: isolate;
}

.reef-intro {
    max-width: 48ch;
    margin: 0 auto clamp(3rem, 6vw, 6rem);
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-marker {
    font-family: 'Archivo Black', Impact, sans-serif;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.32em;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    color: #e8c87a;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.section-marker.warm {
    color: #c85a3a;
}

.section-lede {
    font-family: 'Gowun Batang', Georgia, serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.7;
    color: #c8dce6;
    font-style: italic;
}

/* Honeycomb grid */
.honeycomb {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(-3rem, -4vw, -2rem); /* overlapping rows for true tessellation */
}

.hex-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 20vw, 260px), 1fr));
    gap: clamp(0.4rem, 1vw, 1rem);
    justify-content: center;
    margin-bottom: calc(-1 * clamp(25px, 3.5vw, 45px));
}

.hex-row-b {
    transform: translateX(calc(clamp(140px, 20vw, 260px) / 2));
}

.hex {
    position: relative;
    aspect-ratio: 1 / 0.866;
    width: 100%;
    max-width: clamp(140px, 20vw, 260px);
    justify-self: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0;
    transform: scale(0.6) translateY(30px);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
    cursor: pointer;
}

.hex.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.hex:hover {
    transform: scale(1.05) translateY(-4px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hex-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    text-align: center;
    overflow: hidden;
}

/* Type A — Text cell */
.hex-text .hex-inner {
    background:
        radial-gradient(ellipse at 30% 25%, rgba(109, 181, 202, 0.28) 0%, rgba(26, 107, 122, 0.6) 50%, rgba(10, 22, 40, 0.95) 100%);
    box-shadow:
        inset 0 0 40px rgba(109, 181, 202, 0.15),
        inset 0 -4px 12px rgba(6, 16, 30, 0.35),
        inset 0 2px 6px rgba(200, 220, 230, 0.1);
}

.hex-text .hex-inner::after {
    content: '';
    position: absolute;
    top: 18%;
    left: 20%;
    width: 35%;
    height: 25%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(6px);
}

.poem {
    font-family: 'Gowun Batang', Georgia, serif;
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    line-height: 1.5;
    color: #e6dcc8;
    font-weight: 400;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.poem-latin {
    font-family: 'Gowun Batang', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.65rem, 0.95vw, 0.8rem);
    color: #e8c87a;
    letter-spacing: 0.02em;
    line-height: 1.4;
    max-width: 20ch;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Type B — Blob cell */
.hex-blob .hex-inner {
    background:
        radial-gradient(ellipse at 30% 25%, #1a6b7a 0%, #0a1628 80%);
    box-shadow:
        inset 0 0 40px rgba(6, 16, 30, 0.6),
        inset 0 2px 6px rgba(200, 220, 230, 0.08);
}

.inner-blob {
    width: 70%;
    height: 70%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    mix-blend-mode: screen;
    filter: blur(3px);
    animation: blob-morph 9s ease-in-out infinite alternate;
    will-change: border-radius, transform;
}

.inner-blob-a {
    background: radial-gradient(circle at 40% 30%, rgba(109, 181, 202, 0.85), rgba(26, 107, 122, 0.25) 70%);
    animation-duration: 8s;
}
.inner-blob-b {
    background: radial-gradient(circle at 50% 50%, rgba(232, 200, 122, 0.65), rgba(200, 90, 58, 0.2) 70%);
    animation-duration: 11s;
}
.inner-blob-c {
    background: radial-gradient(circle at 30% 40%, rgba(200, 220, 230, 0.7), rgba(109, 181, 202, 0.2) 70%);
    animation-duration: 10s;
}
.inner-blob-d {
    background: radial-gradient(circle at 40% 40%, rgba(26, 107, 122, 0.9), rgba(10, 22, 40, 0.2) 70%);
    animation-duration: 12s;
}

/* Type C — Color swatch cell */
.hex-color .hex-inner {
    background: var(--cell-fill, #1a6b7a);
    box-shadow:
        inset 0 0 40px rgba(6, 16, 30, 0.3),
        inset 0 -4px 12px rgba(6, 16, 30, 0.3),
        inset 0 2px 6px rgba(255, 255, 255, 0.12);
}

.hex-color .hex-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 28% 22%, rgba(255, 255, 255, 0.22) 0%, transparent 50%);
    pointer-events: none;
}

.noise {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    background-size: 120px 120px;
    pointer-events: none;
}

.swatch-label {
    position: relative;
    z-index: 2;
    font-family: 'Archivo Black', Impact, sans-serif;
    font-size: clamp(0.6rem, 0.9vw, 0.75rem);
    color: #e6dcc8;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    text-shadow: 0 2px 6px rgba(6, 16, 30, 0.6);
    line-height: 1.6;
}

.swatch-label.dark {
    color: #06101e;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.25);
}

/* Type D — Animation cell (ripples + wave lines) */
.hex-animation .hex-inner {
    background:
        radial-gradient(ellipse at 30% 25%, rgba(109, 181, 202, 0.15) 0%, rgba(26, 107, 122, 0.55) 50%, rgba(6, 16, 30, 0.9) 100%);
    box-shadow:
        inset 0 0 40px rgba(109, 181, 202, 0.2),
        inset 0 -4px 12px rgba(6, 16, 30, 0.35);
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(109, 181, 202, 0.6);
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    animation: ripple-expand 4s ease-out infinite;
    will-change: transform, opacity;
}

.ripple.warm {
    border-color: rgba(232, 200, 122, 0.7);
}

.ripple-1 { animation-delay: 0s; }
.ripple-2 { animation-delay: 1.33s; }
.ripple-3 { animation-delay: 2.66s; }

@keyframes ripple-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.15);
        opacity: 0;
    }
    12% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
    }
}

.wave-line {
    position: absolute;
    left: 15%;
    right: 15%;
    height: 1.5px;
    background: rgba(109, 181, 202, 0.55);
    border-radius: 50%;
    animation: wave-pulse 5s ease-in-out infinite;
    will-change: transform;
}

.wave-line.gold {
    background: rgba(232, 200, 122, 0.55);
}

.wave-line-1 { top: 35%; animation-delay: 0s; }
.wave-line-2 { top: 50%; animation-delay: 0.6s; }
.wave-line-3 { top: 65%; animation-delay: 1.2s; }

@keyframes wave-pulse {
    0%, 100% { transform: translateX(-12%) scaleX(1); opacity: 0.45; }
    50%      { transform: translateX(12%) scaleX(1.08); opacity: 0.85; }
}

/* =========================================================
   The Current — Transitional Flow
   ========================================================= */
.current {
    position: relative;
    min-height: 80vh;
    padding: clamp(6rem, 12vw, 10rem) clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, #0a1628 0%, #1a6b7a 60%, #0a1628 100%);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.current-waves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    left: -25%;
    width: 150%;
    height: 70vh;
    border-radius: 45% 55% 50% 50%;
    opacity: 0.22;
    will-change: transform;
    mix-blend-mode: screen;
}

.wave-1 {
    top: 10%;
    background: radial-gradient(ellipse at 50% 50%, rgba(109, 181, 202, 0.6), transparent 70%);
    animation: wave-float 16s ease-in-out infinite alternate;
}
.wave-2 {
    top: 25%;
    left: -20%;
    background: radial-gradient(ellipse at 50% 50%, rgba(26, 107, 122, 0.55), transparent 70%);
    animation: wave-float 20s ease-in-out infinite alternate-reverse;
    border-radius: 48% 52% 55% 45%;
    opacity: 0.3;
}
.wave-3 {
    top: 40%;
    background: radial-gradient(ellipse at 50% 50%, rgba(200, 220, 230, 0.4), transparent 70%);
    animation: wave-float 12s ease-in-out infinite alternate;
    border-radius: 55% 45% 45% 55%;
    opacity: 0.18;
}
.wave-4 {
    top: 55%;
    background: radial-gradient(ellipse at 50% 50%, rgba(232, 200, 122, 0.3), transparent 70%);
    animation: wave-float 24s ease-in-out infinite alternate-reverse;
    border-radius: 42% 58% 52% 48%;
    opacity: 0.15;
}

@keyframes wave-float {
    0% { transform: translateX(-8%) translateY(0) rotate(-0.6deg); }
    100% { transform: translateX(8%) translateY(-3%) rotate(0.6deg); }
}

/* Jellies — decorative drifting blobs */
.jellies {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.jelly {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    mix-blend-mode: screen;
    filter: blur(8px);
    will-change: transform, border-radius;
    animation: blob-morph 10s ease-in-out infinite alternate,
               jelly-drift 22s ease-in-out infinite alternate;
}

.jelly-1 {
    width: 160px; height: 200px;
    top: 15%; left: 12%;
    background: radial-gradient(ellipse at 50% 30%, rgba(109, 181, 202, 0.75), rgba(26, 107, 122, 0.15) 70%);
    opacity: 0.35;
    animation-duration: 11s, 22s;
}
.jelly-2 {
    width: 120px; height: 150px;
    top: 60%; left: 75%;
    background: radial-gradient(ellipse at 50% 30%, rgba(232, 200, 122, 0.7), rgba(200, 90, 58, 0.15) 70%);
    opacity: 0.3;
    animation-duration: 9s, 18s;
}
.jelly-3 {
    width: 200px; height: 240px;
    top: 35%; left: 50%;
    background: radial-gradient(ellipse at 50% 30%, rgba(200, 220, 230, 0.55), rgba(109, 181, 202, 0.1) 70%);
    opacity: 0.22;
    animation-duration: 15s, 28s;
}
.jelly-4 {
    width: 90px; height: 110px;
    top: 72%; left: 20%;
    background: radial-gradient(ellipse at 50% 30%, rgba(26, 107, 122, 0.85), rgba(10, 22, 40, 0.15) 70%);
    opacity: 0.32;
    animation-duration: 7s, 14s;
}

@keyframes jelly-drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(6vw, -4vh, 0) scale(1.12); }
}

.current-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 40ch;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.current-copy.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.current-line {
    font-family: 'Black Han Sans', Impact, sans-serif;
    font-size: clamp(3rem, 12vw, 8rem);
    letter-spacing: 0.2em;
    color: #e6dcc8;
    text-transform: lowercase;
    margin: 1rem 0;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(26, 107, 122, 0.45),
        0 12px 26px rgba(6, 16, 30, 0.55);
}

.current-sub {
    font-family: 'Gowun Batang', Georgia, serif;
    font-style: italic;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    color: #c8dce6;
    letter-spacing: 0.02em;
}

/* =========================================================
   The Shore — Grounding Zone
   ========================================================= */
.shore {
    position: relative;
    min-height: 60vh;
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem);
    background: linear-gradient(180deg, #0a1628 0%, #1a6b7a 30%, #6db5ca 55%, #e6dcc8 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    isolation: isolate;
}

.shore-waves {
    position: absolute;
    left: -25%;
    right: -25%;
    top: 30%;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.shore-wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 200px;
    border-radius: 50% 50% 0 0 / 40% 40% 0 0;
    opacity: 0.55;
    will-change: transform;
}

.shore-wave-1 {
    top: 20%;
    background: linear-gradient(180deg, rgba(109, 181, 202, 0.7), rgba(26, 107, 122, 0.15));
    animation: shore-wave-drift 12s ease-in-out infinite alternate;
    border-radius: 45% 55% 0 0 / 55% 45% 0 0;
}
.shore-wave-2 {
    top: 40%;
    background: linear-gradient(180deg, rgba(230, 220, 200, 0.5), rgba(232, 200, 122, 0.25));
    animation: shore-wave-drift 16s ease-in-out infinite alternate-reverse;
    border-radius: 52% 48% 0 0 / 48% 52% 0 0;
}
.shore-wave-3 {
    top: 60%;
    background: linear-gradient(180deg, rgba(230, 220, 200, 0.8), rgba(230, 220, 200, 0.35));
    animation: shore-wave-drift 20s ease-in-out infinite alternate;
    border-radius: 50% 50% 0 0 / 42% 58% 0 0;
    height: 260px;
}

@keyframes shore-wave-drift {
    0%   { transform: translateX(-6%) translateY(0) rotate(-0.4deg); }
    100% { transform: translateX(6%) translateY(-3%) rotate(0.4deg); }
}

.shore-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 42ch;
    margin-top: auto;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.shore-inner.visible {
    opacity: 1;
    transform: translateY(0);
}

.shore-wordmark {
    font-family: 'Archivo Black', Impact, sans-serif;
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    text-transform: lowercase;
    letter-spacing: 0.14em;
    color: #2a3d4a;
    margin: 1.5rem 0;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4),
        0 3px 10px rgba(42, 61, 74, 0.25);
}

.shore-poem {
    font-family: 'Gowun Batang', Georgia, serif;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    line-height: 1.85;
    color: #2a3d4a;
    font-weight: 400;
}

.shore-poem em {
    display: block;
    margin-top: 0.5em;
    color: #c85a3a;
    font-size: 0.88em;
    letter-spacing: 0.02em;
    opacity: 0.85;
}

/* Tide line — subtle wash */
.tide {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.tide-line {
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 90, 58, 0.35) 35%, rgba(232, 200, 122, 0.4) 55%, transparent 100%);
    border-radius: 50%;
    animation: tide-wash 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    will-change: transform, opacity;
}

@keyframes tide-wash {
    0%   { transform: translateX(-20%); opacity: 0; }
    30%  { opacity: 0.9; }
    70%  { opacity: 0.9; }
    100% { transform: translateX(20%); opacity: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 640px) {
    .honeycomb {
        gap: 0.25rem;
    }
    .hex-row,
    .hex-row-b {
        grid-template-columns: 1fr;
        transform: none;
        margin-bottom: 0.25rem;
    }
    .hex {
        max-width: 75vw;
    }
    .sharp-c, .sharp-e {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .blob-5, .blob-6, .blob-7, .blob-8,
    .jelly-3, .jelly-4 {
        display: none;
    }
}
