/* yongjoon.xyz — Frutiger Aero memorial plaza
   Palette:
     #eaf7ff Condensation White
     #a8dcee Pool Mist
     #5aa9cc Lagoon
     #2a7fa6 Deep Current
     #0d3b4f Abyss
     #f4c96e Lens Flare
     #d9f0b6 Algae Glow
     #f7fbfd Page Ground
   Fonts: Jura 700, Nunito 400/600/700, Share Tech Mono
*/

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

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: 'Nunito', sans-serif;
    color: #2a7fa6;
    cursor: none;
}

body {
    min-height: 220vh;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 10%, #f7fbfd 0%, #eaf7ff 18%, #a8dcee 55%, #5aa9cc 85%, #0d3b4f 105%);
    background-attachment: fixed;
    isolation: isolate;
}

/* Subtle grain + caustics overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 200;
    background:
        radial-gradient(circle at 20% 30%, rgba(234,247,255,0.35), transparent 42%),
        radial-gradient(circle at 78% 72%, rgba(168,220,238,0.3), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(13,59,79,0.25), transparent 55%);
    mix-blend-mode: screen;
}

/* --- Layer scaffolding --- */

.layer {
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.layer-bokeh   { top: 0;     height: 220vh; z-index: -7; overflow: hidden; }
.layer-jellyfish { top: 20vh; height: 100vh; z-index: -6; }
.layer-about   { top: 52vh;  height: 48vh;  z-index: -3; pointer-events: auto; }
.layer-name    { top: 12vh;  height: 40vh;  z-index: -4; }
.layer-orbs    { top: 96vh;  height: 68vh;  z-index: 0;  pointer-events: auto; }
.layer-ribbons { top: 0;     height: 220vh; z-index: 1;  overflow: hidden; }
.layer-particles { top: 0;   height: 220vh; z-index: 2;  overflow: hidden; }
.layer-deep    { top: 150vh; height: 40vh;  z-index: 0; }
.layer-final   { top: 184vh; height: 36vh;  z-index: 3;  pointer-events: auto; }
.layer-glass-droplets { top: 70vh; height: 150vh; z-index: 4; }

/* --- Bokeh plate (Layer 0) --- */
.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234,247,255,0.5) 0%, rgba(168,220,238,0.35) 40%, transparent 72%);
    filter: blur(30px);
    animation: bokeh-drift 42s ease-in-out infinite alternate;
}
.bokeh-circle:nth-child(2) { animation-duration: 56s; }
.bokeh-circle:nth-child(3) { animation-duration: 68s; animation-delay: -8s; }
.bokeh-circle:nth-child(4) { animation-duration: 48s; animation-delay: -16s; }
.bokeh-circle:nth-child(5) { animation-duration: 62s; animation-delay: -24s; }

@keyframes bokeh-drift {
    0%   { transform: translate3d(0,0,0) scale(1); }
    50%  { transform: translate3d(30px, -20px, 0) scale(1.08); }
    100% { transform: translate3d(-20px, 40px, 0) scale(0.95); }
}

/* --- Jellyfish (Layer 1) --- */
.layer-jellyfish {
    display: flex;
    align-items: center;
    justify-content: center;
}
.jellyfish {
    width: 48vw;
    height: auto;
    max-width: 720px;
    opacity: 0.72;
    animation: jelly-drift 38s ease-in-out infinite alternate, jelly-breathe 7.2s ease-in-out infinite;
    filter: drop-shadow(0 30px 80px rgba(13,59,79,0.25));
    transform-origin: center center;
}
@keyframes jelly-drift {
    0%   { transform: translate3d(-6vw, 0, 0) rotate(-1.5deg); }
    100% { transform: translate3d(6vw, 4vh, 0) rotate(2deg); }
}
@keyframes jelly-breathe {
    0%, 100% { filter: drop-shadow(0 20px 60px rgba(217,240,182,0.25)) drop-shadow(0 0 40px rgba(168,220,238,0.35)); }
    50%      { filter: drop-shadow(0 30px 80px rgba(217,240,182,0.4)) drop-shadow(0 0 70px rgba(168,220,238,0.55)); }
}

.tentacle { animation: tentacle-sway 5.4s ease-in-out infinite; transform-origin: top center; }
.tentacle.t1  { animation-duration: 4.8s; }
.tentacle.t2  { animation-duration: 6.1s; animation-delay: -0.4s; }
.tentacle.t3  { animation-duration: 5.2s; animation-delay: -0.8s; }
.tentacle.t4  { animation-duration: 5.8s; animation-delay: -1.1s; }
.tentacle.t5  { animation-duration: 6.4s; animation-delay: -1.4s; }
.tentacle.t6  { animation-duration: 5.5s; animation-delay: -1.8s; }
.tentacle.t7  { animation-duration: 6.0s; animation-delay: -2.2s; }
.tentacle.t8  { animation-duration: 5.0s; animation-delay: -2.6s; }
.tentacle.t9  { animation-duration: 5.7s; animation-delay: -3.0s; }
.tentacle.t10 { animation-duration: 6.2s; animation-delay: -3.4s; }
.tentacle.t11 { animation-duration: 4.9s; animation-delay: -3.8s; }
.tentacle.t12 { animation-duration: 5.3s; animation-delay: -4.2s; }

@keyframes tentacle-sway {
    0%, 100% { transform: translateX(-1.5px) scaleY(1); }
    50%      { transform: translateX(1.5px) scaleY(1.03); }
}

/* --- Glass surface base class --- */
.glass {
    position: relative;
    background: linear-gradient(160deg, rgba(168,220,238,0.55) 0%, rgba(90,169,204,0.35) 100%);
    border: 1px solid rgba(234,247,255,0.35);
    box-shadow:
        0 8px 24px rgba(13,59,79,0.22),
        inset 0 1px 0 rgba(255,255,255,0.5);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    overflow: hidden;
}
.glass::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 100%);
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    pointer-events: none;
}

/* --- About pills (Layer 2) --- */
.about-pill {
    position: absolute;
    width: clamp(240px, 26vw, 380px);
    padding: 22px 26px 26px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(168,220,238,0.55) 0%, rgba(90,169,204,0.35) 100%);
    border: 1px solid rgba(234,247,255,0.4);
    box-shadow:
        0 12px 32px rgba(13,59,79,0.22),
        inset 0 1px 0 rgba(255,255,255,0.55);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity 1.2s ease-out, backdrop-filter 1.6s ease-out;
    overflow: visible;
}
.about-pill.revealed { transform: translateY(0); opacity: 1; }

.pill-1 { left: 6vw;  top: 4vh;  transform: translateY(40px) rotate(-1.8deg); }
.pill-1.revealed { transform: translateY(0) rotate(-1.8deg); }
.pill-2 { left: 45vw; top: 14vh; transform: translateY(50px) rotate(1.2deg); }
.pill-2.revealed { transform: translateY(0) rotate(1.2deg); }
.pill-3 { left: 72vw; top: 2vh;  transform: translateY(60px) rotate(-0.6deg); }
.pill-3.revealed { transform: translateY(0) rotate(-0.6deg); }

.about-pill h2 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0d3b4f;
    letter-spacing: -0.005em;
    margin-bottom: 8px;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.about-pill p {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.92rem;
    color: #2a7fa6;
    line-height: 1.55;
}

.pill-highlight {
    position: absolute;
    top: 10px; left: 18px;
    width: 44px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(234,247,255,0.85) 0%, rgba(234,247,255,0) 70%);
    pointer-events: none;
    filter: blur(1px);
}

.pill-droplet, .final-droplet {
    position: absolute;
    bottom: -10px; left: 18px;
    width: 18px; height: 22px;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.9) 0%, rgba(168,220,238,0.8) 40%, rgba(90,169,204,0.7) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 1px solid rgba(234,247,255,0.5);
    box-shadow: inset 0 -2px 4px rgba(13,59,79,0.2), 0 4px 10px rgba(13,59,79,0.2);
    transform: rotate(-8deg);
}

/* --- Name ribbon (Layer 3) --- */
.layer-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}
.name-ribbon {
    position: relative;
    width: 140%;
    margin-left: -20%;
    padding: 28px 0;
    transform: rotate(-6.5deg);
    background: linear-gradient(180deg, rgba(234,247,255,0.38) 0%, rgba(168,220,238,0.22) 50%, rgba(234,247,255,0.38) 100%);
    border-top: 1px solid rgba(234,247,255,0.45);
    border-bottom: 1px solid rgba(168,220,238,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(13,59,79,0.15), inset 0 1px 0 rgba(255,255,255,0.5);
}
.name-display {
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 22rem);
    letter-spacing: 0.08em;
    line-height: 0.85;
    text-align: center;
    color: transparent;
    background: linear-gradient(180deg, #eaf7ff 0%, #7cc6e8 55%, #2a7fa6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 0 rgba(234,247,255,0),
        0 0 0 rgba(168,220,238,0),
        0 0 0 rgba(90,169,204,0),
        0 0 0 rgba(42,127,166,0);
    filter: drop-shadow(0 2px 0 rgba(234,247,255,0.7))
            drop-shadow(0 4px 8px rgba(168,220,238,0.45))
            drop-shadow(0 8px 16px rgba(42,127,166,0.35))
            drop-shadow(0 14px 30px rgba(13,59,79,0.3));
    user-select: none;
}
.name-display.bevel-1 .name-inner { animation: bevel-1 1.4s 0.3s ease-out both; }
.name-display.bevel-2 .name-inner { animation: bevel-2 1.4s 0.6s ease-out both; }
.name-display.bevel-3 .name-inner { animation: bevel-3 1.4s 0.9s ease-out both; }
.name-display.bevel-4 .name-inner { animation: bevel-4 1.4s 1.2s ease-out both; }

.name-inner { display: inline-block; opacity: 0; animation: name-reveal 1.4s ease-out 0.3s forwards; }
@keyframes name-reveal {
    0%   { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(14px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* --- Link orb river (Layer 4) --- */
.spine-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#spinePath {
    transition: stroke-dashoffset 0.2s linear;
}

.orb-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.link-orb {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(234,247,255,0.9) 0%, rgba(168,220,238,0.75) 30%, rgba(90,169,204,0.55) 70%, rgba(42,127,166,0.4) 100%);
    border: 1px solid rgba(234,247,255,0.55);
    box-shadow:
        0 10px 24px rgba(13,59,79,0.25),
        inset 0 2px 0 rgba(255,255,255,0.55),
        inset 0 -12px 20px rgba(42,127,166,0.25);
    backdrop-filter: blur(10px) saturate(1.3);
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #f4fbff;
    cursor: none;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition:
        transform 0.6s cubic-bezier(.2,1.6,.3,1),
        box-shadow 0.3s ease,
        opacity 0.4s ease,
        background 0.4s ease;
    pointer-events: auto;
    overflow: hidden;
    isolation: isolate;
}
.link-orb.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.link-orb::before {
    content: "";
    position: absolute;
    left: 8%; right: 8%; top: 6%;
    height: 42%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    filter: blur(0.4px);
}
.link-orb::after {
    content: "";
    position: absolute;
    top: 14%; left: 22%;
    width: 14px; height: 6px;
    border-radius: 50%;
    background: rgba(234,247,255,0.9);
    filter: blur(1.2px);
    pointer-events: none;
}
.link-orb:hover {
    transform: translate(-50%, -50%) scale(1.18);
    box-shadow:
        0 18px 44px rgba(13,59,79,0.35),
        inset 0 2px 0 rgba(255,255,255,0.7),
        inset 0 -14px 24px rgba(42,127,166,0.3),
        0 0 40px rgba(244,201,110,0.35);
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.95) 0%, rgba(168,220,238,0.85) 35%, rgba(234,247,255,0.7) 100%);
}
.link-orb .orb-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #f4fbff;
    text-shadow: 0 1px 0 #2a7fa6, 0 0 8px rgba(13,59,79,0.4);
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}
.link-orb .orb-kicker {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
    color: #eaf7ff;
    text-shadow: 0 1px 0 rgba(13,59,79,0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}
.link-orb.visible .orb-label,
.link-orb.visible .orb-kicker { opacity: 1; }

/* --- Aphorism ribbons (Layer 5) --- */
.aphorism-ribbon {
    position: absolute;
    width: 420px;
    height: 24px;
    padding: 0 14px;
    background: linear-gradient(90deg, rgba(234,247,255,0) 0%, rgba(234,247,255,0.45) 20%, rgba(168,220,238,0.4) 80%, rgba(234,247,255,0) 100%);
    border-top: 1px solid rgba(234,247,255,0.3);
    border-bottom: 1px solid rgba(168,220,238,0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #0d3b4f;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
    will-change: transform;
}

/* --- Bokeh particles (Layer 6) --- */
.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234,247,255,0.8) 0%, rgba(168,220,238,0.4) 40%, transparent 80%);
    animation: particle-rise linear infinite;
    will-change: transform, opacity;
}
@keyframes particle-rise {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.4; }
    100% { transform: translate3d(20px, -240vh, 0); opacity: 0; }
}

/* --- Deep water section --- */
.layer-deep {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(13,59,79,0) 0%, rgba(13,59,79,0.45) 50%, rgba(13,59,79,0) 100%);
}
.deep-caption {
    max-width: 560px;
    padding: 30px 40px;
    text-align: center;
}
.mono-line {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.04em;
    color: #eaf7ff;
    line-height: 2;
    text-shadow: 0 0 10px rgba(168,220,238,0.4);
    opacity: 0.88;
}

/* --- Final centered email pill --- */
.layer-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.final-pill {
    position: relative;
    padding: 28px 44px;
    border-radius: 999px;
    background: linear-gradient(160deg, rgba(234,247,255,0.7) 0%, rgba(168,220,238,0.5) 100%);
    border: 1px solid rgba(234,247,255,0.6);
    box-shadow:
        0 16px 44px rgba(13,59,79,0.3),
        inset 0 2px 0 rgba(255,255,255,0.65);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    text-align: center;
    overflow: visible;
}
.final-pill .pill-highlight {
    left: 40px;
    top: 10px;
    width: 120px;
    height: 10px;
}
.final-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #2a7fa6;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.final-email {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(1rem, 2.4vw, 1.6rem);
    color: #0d3b4f;
    letter-spacing: 0.04em;
}
.final-email .at {
    color: #f4c96e;
    padding: 0 4px;
    font-weight: 700;
}
.final-droplet { left: auto; right: 40px; bottom: -14px; }

.signature {
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-size: 13px;
    color: #5aa9cc;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(234,247,255,0.45);
}

/* --- Viewport glass droplets (Layer 7) --- */
.layer-glass-droplets {
    pointer-events: none;
}
.glass-droplet {
    position: absolute;
    background: radial-gradient(ellipse at 35% 30%, rgba(255,255,255,0.55) 0%, rgba(168,220,238,0.35) 45%, rgba(90,169,204,0.2) 100%);
    border: 1px solid rgba(234,247,255,0.3);
    box-shadow:
        inset 0 -3px 8px rgba(13,59,79,0.2),
        inset 0 4px 8px rgba(255,255,255,0.4),
        0 8px 20px rgba(13,59,79,0.15);
    backdrop-filter: blur(8px) saturate(1.3);
    -webkit-backdrop-filter: blur(8px) saturate(1.3);
    animation: droplet-wobble 9s ease-in-out infinite;
}
.glass-droplet::after {
    content: "";
    position: absolute;
    top: 14%; left: 22%;
    width: 10%; height: 6%;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    filter: blur(0.6px);
}
.gd1 { width: 100px; height: 130px; border-radius: 50% / 58% 58% 42% 42%; left: 8%;  top: 60vh; animation-delay: 0s; }
.gd2 { width: 140px; height: 170px; border-radius: 50% / 60% 60% 40% 40%; left: 28%; top: 75vh; animation-delay: -1.4s; }
.gd3 { width: 80px;  height: 110px; border-radius: 50% / 62% 62% 38% 38%; left: 48%; top: 92vh; animation-delay: -2.8s; }
.gd4 { width: 160px; height: 200px; border-radius: 50% / 58% 58% 42% 42%; left: 62%; top: 68vh; animation-delay: -4.2s; }
.gd5 { width: 90px;  height: 120px; border-radius: 50% / 60% 60% 40% 40%; left: 80%; top: 84vh; animation-delay: -5.6s; }
.gd6 { width: 110px; height: 140px; border-radius: 50% / 58% 58% 42% 42%; left: 18%; top: 100vh; animation-delay: -3.1s; }
.gd7 { width: 130px; height: 160px; border-radius: 50% / 60% 60% 40% 40%; left: 72%; top: 110vh; animation-delay: -6.3s; }

@keyframes droplet-wobble {
    0%, 100% { transform: rotate(-0.2deg); }
    50%      { transform: rotate(0.2deg); }
}

/* --- Dock (persistent bottom-right) --- */
.dock {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    display: flex;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(234,247,255,0.55) 0%, rgba(168,220,238,0.35) 100%);
    border: 1px solid rgba(234,247,255,0.45);
    box-shadow:
        0 14px 40px rgba(13,59,79,0.3),
        inset 0 1px 0 rgba(255,255,255,0.55);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.dock-icon {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(234,247,255,0.85) 0%, rgba(168,220,238,0.7) 55%, rgba(90,169,204,0.55) 100%);
    border: 1px solid rgba(234,247,255,0.6);
    box-shadow:
        0 6px 14px rgba(13,59,79,0.22),
        inset 0 2px 0 rgba(255,255,255,0.55),
        inset 0 -6px 10px rgba(42,127,166,0.2);
    cursor: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 120ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease;
}
.dock-icon:hover {
    box-shadow:
        0 10px 22px rgba(13,59,79,0.32),
        inset 0 2px 0 rgba(255,255,255,0.7),
        inset 0 -6px 12px rgba(42,127,166,0.25),
        0 0 24px rgba(244,201,110,0.3);
}
.dock-icon svg {
    width: 62%; height: 62%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.55));
}
.dock-gloss {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 52%;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 100%);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    pointer-events: none;
}

/* --- Koi cursor --- */
.koi {
    position: fixed;
    left: 0; top: 0;
    width: 56px; height: 28px;
    pointer-events: none;
    z-index: 250;
    transform: translate3d(-100px, -100px, 0) rotate(0deg);
    will-change: transform;
    filter: drop-shadow(0 4px 10px rgba(13,59,79,0.35));
}
.koi svg { width: 100%; height: 100%; display: block; }

/* --- Bubble trail --- */
.bubble-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 240;
    overflow: hidden;
}
.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9) 0%, rgba(234,247,255,0.55) 60%, rgba(168,220,238,0) 100%);
    border: 1px solid rgba(234,247,255,0.5);
    animation: bubble-fade 800ms ease-out forwards;
    will-change: transform, opacity;
}
@keyframes bubble-fade {
    0%   { transform: translate(0, 0) scale(0.7); opacity: 0.9; }
    100% { transform: translate(var(--bx, 4px), -38px) scale(1.1); opacity: 0; }
}

/* --- Lens flares --- */
.flare-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 220;
    overflow: hidden;
    mix-blend-mode: screen;
}
.flare {
    position: absolute;
    height: 18px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: flare-sweep 2.2s ease-out forwards;
}
.flare-core   { background: radial-gradient(ellipse, rgba(244,201,110,0.55) 0%, rgba(244,201,110,0) 70%); width: 220px; filter: blur(14px); }
.flare-aqua   { background: radial-gradient(ellipse, rgba(168,220,238,0.5) 0%,  rgba(168,220,238,0) 70%); width: 140px; filter: blur(10px); }
.flare-white  { background: radial-gradient(ellipse, rgba(234,247,255,0.6) 0%,  rgba(234,247,255,0) 70%); width: 100px; filter: blur(8px); }
.flare-amber  { background: radial-gradient(ellipse, rgba(244,201,110,0.4) 0%,  rgba(244,201,110,0) 70%); width: 180px; filter: blur(12px); }

@keyframes flare-sweep {
    0%   { transform: translate(-30vw, 0) scaleX(0.7); opacity: 0; }
    20%  { opacity: 0.9; }
    100% { transform: translate(130vw, 0) scaleX(1.2); opacity: 0; }
}

/* Ambient horizontal flare every 23s */
.ambient-flare {
    position: fixed;
    left: -220px;
    width: 220px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(244,201,110,0.35) 0%, rgba(244,201,110,0) 70%);
    filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    z-index: 219;
    mix-blend-mode: screen;
    animation: ambient-sweep 23s linear infinite;
}
.ambient-flare.af2 { animation-duration: 31s; animation-delay: -8s; background: radial-gradient(ellipse, rgba(168,220,238,0.32) 0%, rgba(168,220,238,0) 70%); }
.ambient-flare.af3 { animation-duration: 19s; animation-delay: -14s; background: radial-gradient(ellipse, rgba(234,247,255,0.3) 0%, rgba(234,247,255,0) 70%); }

@keyframes ambient-sweep {
    0%   { transform: translate(0, 22vh); opacity: 0; }
    10%  { opacity: 0.9; }
    50%  { transform: translate(60vw, 22vh); opacity: 0.9; }
    90%  { opacity: 0; }
    100% { transform: translate(130vw, 22vh); opacity: 0; }
}

/* --- Right gutter watermark --- */
.gutter-watermark {
    position: fixed;
    right: 10px;
    top: 50%;
    z-index: 80;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    color: rgba(42,127,166,0.45);
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(234,247,255,0.5);
}

/* --- Responsive --- */
@media (max-width: 760px) {
    .about-pill { width: 80vw; }
    .pill-1 { left: 6vw;  top: 2vh; }
    .pill-2 { left: 12vw; top: 18vh; }
    .pill-3 { left: 8vw;  top: 34vh; }
    .layer-about { height: 56vh; }
    .dock { right: 12px; bottom: 12px; gap: 10px; padding: 8px 10px; }
    .dock-icon { width: 44px; height: 44px; }
    .gutter-watermark { display: none; }
    .link-orb { width: 100px; height: 100px; }
}

/* --- Reduced motion fallback: slow motion but keep aesthetic --- */
@media (prefers-reduced-motion: reduce) {
    .jellyfish { animation-duration: 24s, 24s; }
    .particle, .flare, .ambient-flare, .bokeh-circle { animation-play-state: paused; }
    .koi { opacity: 0.6; }
}
