/* hangul.dev — seapunk developer documentation */

:root {
    --deep-water: #0A1A2A;
    --mid-water: #1A2A4A;
    --upper-water: #2A4A6A;
    --abyss: #0A1020;
    --teal: #4A8A8A;
    --bright-teal: #7FDBCA;
    --coral: #E08080;
    --marble: #E8E4E0;
    --caustic: #A0D0E0;
    --depth-band: #1A3A5A;

    --font-display: 'Nunito', system-ui, sans-serif;
    --font-body: 'Nunito Sans', system-ui, sans-serif;
    --font-ko: 'Noto Sans KR', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Menlo', monospace;
}

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

html, body {
    background-color: var(--mid-water);
    color: var(--marble);
    font-family: var(--font-body);
    line-height: 1.85;
    overflow-x: hidden;
    cursor: none;
}

body {
    background:
        radial-gradient(ellipse at 30% -10%, var(--upper-water) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 110%, var(--depth-band) 0%, transparent 70%),
        var(--mid-water);
    min-height: 100vh;
}

a { color: var(--bright-teal); text-decoration: none; }
a:hover { color: var(--marble); }

::selection { background: rgba(127, 219, 202, 0.35); color: var(--marble); }

/* ============ Cursor Glow (underwater flashlight) ============ */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(127, 219, 202, 0.22) 0%, rgba(127, 219, 202, 0.10) 25%, transparent 60%);
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
    will-change: transform;
}

/* ============ Bubbles ============ */
.bubbles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(160, 208, 224, 0.6), rgba(160, 208, 224, 0.15));
    opacity: 0.4;
    bottom: -20px;
    will-change: transform;
}

@keyframes bubble-rise {
    0% { transform: translate3d(0, 0, 0); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.4; }
    100% { transform: translate3d(var(--wobble-x, 0), -110vh, 0); opacity: 0; }
}

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 80px 8vw 40px;
    background: linear-gradient(180deg, var(--mid-water) 0%, var(--upper-water) 50%, var(--depth-band) 100%);
}

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

.caustic {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    mix-blend-mode: screen;
    will-change: transform;
}

.caustic-1 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, rgba(160, 208, 224, 0.18), transparent 70%);
    top: -10%;
    left: -5%;
    animation: caustic-drift-1 22s ease-in-out infinite;
}

.caustic-2 {
    width: 28vw;
    height: 28vw;
    background: radial-gradient(circle, rgba(127, 219, 202, 0.14), transparent 70%);
    top: 30%;
    right: 5%;
    animation: caustic-drift-2 18s ease-in-out infinite;
}

.caustic-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(160, 208, 224, 0.10), transparent 70%);
    bottom: -15%;
    left: 30%;
    animation: caustic-drift-3 25s ease-in-out infinite;
}

@keyframes caustic-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8vw, 6vh) scale(1.2); }
}

@keyframes caustic-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10vw, 8vh) scale(0.85); }
}

@keyframes caustic-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6vw, -10vh) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6vw;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.logotype {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1;
    letter-spacing: 0.005em;
    color: var(--marble);
    text-shadow:
        0 2px 24px rgba(127, 219, 202, 0.35),
        0 0 80px rgba(160, 208, 224, 0.18);
    opacity: 0;
    transform: scale(0.95);
    animation: logo-in 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s forwards;
}

.logotype::after {
    content: '_';
    color: var(--bright-teal);
    margin-left: 4px;
    animation: blink 1.4s step-end infinite;
}

@keyframes logo-in {
    to { opacity: 1; transform: scale(1); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.4vw, 20px);
    color: rgba(232, 228, 224, 0.78);
    max-width: 560px;
    line-height: 1.6;
    opacity: 0;
    animation: fade-in 1s ease-out 0.8s forwards;
}

@keyframes fade-in {
    to { opacity: 1; }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0;
    animation: fade-in 1s ease-out 1.1s forwards;
}

.meta-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(74, 138, 138, 0.18);
    border: 1px solid rgba(74, 138, 138, 0.45);
    color: var(--bright-teal);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-glyph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(220px, 30vw, 380px);
    opacity: 0;
    transform: translateY(-20px);
    animation: glyph-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s forwards;
}

@keyframes glyph-in {
    to { opacity: 1; transform: translateY(0); }
}

.glyph-char,
.glyph-shadow {
    position: absolute;
    font-family: var(--font-ko);
    font-weight: 700;
    font-size: clamp(180px, 26vw, 360px);
    line-height: 1;
    user-select: none;
    will-change: transform;
}

.glyph-char {
    color: var(--marble);
    text-shadow:
        0 0 50px rgba(127, 219, 202, 0.35),
        0 0 120px rgba(160, 208, 224, 0.20);
    animation: glyph-bob 4.5s ease-in-out infinite;
    z-index: 2;
}

.glyph-shadow {
    color: rgba(127, 219, 202, 0.18);
    transform: translate(8px, 12px);
    filter: blur(10px);
    animation: glyph-bob 4.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes glyph-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.glyph-shadow {
    animation-name: glyph-bob-shadow;
}

@keyframes glyph-bob-shadow {
    0%, 100% { transform: translate(8px, 12px); }
    50% { transform: translate(8px, 20px); filter: blur(14px); }
}

/* ============ Wave Dividers ============ */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 3;
    animation: wave-shift 9s ease-in-out infinite;
}

.wave-divider-bottom {
    position: relative;
    margin-top: 60px;
    transform: rotate(180deg);
}

@keyframes wave-shift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-30px); }
}

/* ============ Masonry Section ============ */
.masonry-section {
    position: relative;
    padding: 100px 8vw 80px;
    background: linear-gradient(180deg, var(--depth-band) 0%, var(--mid-water) 60%, var(--upper-water) 100%);
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 50px;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--marble);
    letter-spacing: 0.01em;
    margin-bottom: 12px;
}

.section-sub {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.1vw, 17px);
    color: rgba(232, 228, 224, 0.65);
    max-width: 600px;
}

.masonry {
    max-width: 1400px;
    margin: 0 auto;
    column-count: 3;
    column-gap: 24px;
    column-fill: balance;
}

@media (max-width: 980px) {
    .masonry { column-count: 2; }
}

@media (max-width: 600px) {
    .masonry { column-count: 1; }
}

.card {
    break-inside: avoid;
    margin-bottom: 24px;
    padding: 28px 26px;
    background: rgba(232, 228, 224, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(74, 138, 138, 0.28);
    border-radius: 20px;
    box-shadow:
        0 4px 30px rgba(10, 26, 42, 0.35),
        inset 0 1px 0 rgba(232, 228, 224, 0.06);
    opacity: 0;
    transform: translateY(30px);
    transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.card.is-visible {
    animation: card-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.card.is-illuminated {
    background: rgba(232, 228, 224, 0.10);
    border-color: rgba(127, 219, 202, 0.55);
    box-shadow:
        0 4px 30px rgba(10, 26, 42, 0.45),
        0 0 60px rgba(127, 219, 202, 0.18),
        inset 0 1px 0 rgba(232, 228, 224, 0.10);
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--bright-teal);
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    opacity: 0.85;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 1.6vw, 26px);
    color: var(--marble);
    line-height: 1.25;
    margin-bottom: 12px;
}

.card-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(232, 228, 224, 0.78);
    margin-bottom: 0;
}

.card-text + .code-block,
.card-text + .key-row,
.card-text + .block-grid,
.card-text + .bar-set,
.card-text + .rr-row,
.card-list + .card-text {
    margin-top: 18px;
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-list li {
    font-family: var(--font-mono);
    font-size: 13px;
    color: rgba(232, 228, 224, 0.85);
    padding: 8px 12px;
    background: rgba(10, 26, 42, 0.45);
    border-left: 2px solid var(--teal);
    border-radius: 4px;
}

.code-block {
    background: rgba(10, 16, 32, 0.7);
    border: 1px solid rgba(74, 138, 138, 0.25);
    border-radius: 10px;
    padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--bright-teal);
}

.code-block code { color: var(--marble); }
.code-block .kw { color: #C997D9; }
.code-block .fn { color: var(--bright-teal); }
.code-block .num { color: var(--coral); }
.code-block .str { color: #B8E0A0; }

.ko-inline {
    font-family: var(--font-ko);
    font-weight: 700;
    color: var(--bright-teal);
    padding: 0 4px;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.is-near .ko-inline,
.card.is-illuminated .ko-inline {
    color: var(--marble);
    text-shadow: 0 0 18px rgba(127, 219, 202, 0.65);
}

.key-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    font-family: var(--font-ko);
    font-weight: 700;
    font-size: 18px;
    background: rgba(10, 26, 42, 0.55);
    border: 1px solid rgba(74, 138, 138, 0.45);
    border-radius: 8px;
    color: var(--marble);
    box-shadow: 0 2px 0 rgba(10, 16, 32, 0.4), inset 0 1px 0 rgba(232, 228, 224, 0.1);
}

.key-bright {
    background: rgba(127, 219, 202, 0.15);
    border-color: var(--bright-teal);
    color: var(--bright-teal);
    text-shadow: 0 0 18px rgba(127, 219, 202, 0.5);
}

.arrow {
    color: var(--teal);
    font-size: 20px;
    margin: 0 4px;
}

.block-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.block-cell {
    aspect-ratio: 1;
    background: rgba(10, 26, 42, 0.5);
    border: 1px solid rgba(74, 138, 138, 0.3);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ko);
    font-weight: 700;
    color: var(--marble);
    overflow: hidden;
}

.block-cell .block-l { font-size: 22px; position: absolute; left: 18%; top: 18%; }
.block-cell .block-v { font-size: 22px; position: absolute; right: 18%; top: 18%; }
.block-cell .block-l-tall { font-size: 22px; position: absolute; left: 18%; top: 8%; }
.block-cell .block-v-tall { font-size: 22px; position: absolute; right: 18%; top: 8%; }
.block-cell .block-t { font-size: 22px; position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); }
.block-cell .block-l-wide { font-size: 22px; position: absolute; top: 14%; left: 50%; transform: translateX(-50%); }
.block-cell .block-v-wide { font-size: 22px; position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); }
.block-cell .block-syl { font-size: 36px; color: var(--bright-teal); text-shadow: 0 0 14px rgba(127, 219, 202, 0.5); }

.rr-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 22px;
}

.rr-row .ko-inline {
    font-size: 28px;
}

.rr-arrow {
    color: var(--teal);
    font-size: 22px;
}

.rr-text {
    font-family: var(--font-mono);
    color: var(--marble);
    font-size: 18px;
}

.bar-set {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bar {
    display: grid;
    grid-template-columns: 70px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(232, 228, 224, 0.7);
    text-transform: lowercase;
}

.bar-fill {
    height: 6px;
    background: linear-gradient(90deg, var(--teal), var(--bright-teal));
    border-radius: 3px;
    width: 0;
    transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
    box-shadow: 0 0 10px rgba(127, 219, 202, 0.4);
}

.bar-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--bright-teal);
    text-align: right;
}

/* ============ Specimen Section ============ */
.specimen-section {
    position: relative;
    padding: 100px 0 110px;
    background:
        radial-gradient(ellipse at top, rgba(42, 74, 106, 0.45), transparent 60%),
        var(--deep-water);
    overflow: hidden;
}

.specimen-section .section-header {
    padding: 0 8vw;
}

.specimen-track {
    overflow-x: auto;
    overflow-y: visible;
    padding: 40px 8vw 60px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) transparent;
}

.specimen-track::-webkit-scrollbar { height: 8px; }
.specimen-track::-webkit-scrollbar-track { background: rgba(10, 16, 32, 0.5); }
.specimen-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }

.specimen-row {
    display: flex;
    gap: 40px;
    width: max-content;
}

.specimen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    cursor: none;
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
    position: relative;
}

.specimen:hover {
    transform: translateY(-10px);
}

.specimen-pedestal {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    background:
        radial-gradient(circle at 30% 25%, rgba(232, 228, 224, 0.95), rgba(180, 188, 200, 0.8) 35%, rgba(140, 156, 176, 0.7) 60%, rgba(74, 138, 138, 0.4) 100%),
        radial-gradient(ellipse at 70% 70%, rgba(160, 208, 224, 0.5), transparent 60%);
    box-shadow:
        inset 0 4px 16px rgba(255, 255, 255, 0.4),
        inset 0 -8px 18px rgba(10, 16, 32, 0.5),
        0 12px 30px rgba(10, 16, 32, 0.6),
        0 0 24px rgba(74, 138, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.specimen-pedestal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 20% 30%, transparent 0, rgba(255, 255, 255, 0.06) 2px, transparent 4px, transparent 8px),
        repeating-radial-gradient(circle at 80% 70%, transparent 0, rgba(74, 90, 120, 0.08) 1px, transparent 3px, transparent 7px);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.specimen-pedestal::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 16px;
    background: radial-gradient(ellipse, rgba(10, 16, 32, 0.6), transparent 70%);
    border-radius: 50%;
    filter: blur(4px);
    transition: opacity 0.3s ease, width 0.3s ease;
}

.specimen:hover .specimen-pedestal::after {
    width: 85%;
    opacity: 0.9;
}

.specimen:hover .specimen-pedestal {
    box-shadow:
        inset 0 4px 16px rgba(255, 255, 255, 0.5),
        inset 0 -8px 18px rgba(10, 16, 32, 0.5),
        0 18px 40px rgba(10, 16, 32, 0.75),
        0 0 32px rgba(127, 219, 202, 0.35);
}

.specimen-glyph {
    position: relative;
    z-index: 2;
    font-family: var(--font-ko);
    font-weight: 700;
    font-size: 64px;
    color: var(--mid-water);
    line-height: 1;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
}

.specimen-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(232, 228, 224, 0.6);
    letter-spacing: 0.06em;
}

.specimen.is-active .specimen-pedestal {
    box-shadow:
        inset 0 4px 16px rgba(255, 255, 255, 0.5),
        inset 0 -8px 18px rgba(10, 16, 32, 0.5),
        0 18px 40px rgba(10, 16, 32, 0.75),
        0 0 50px rgba(127, 219, 202, 0.6);
}

.specimen-tooltip {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    padding: 16px 18px;
    background: rgba(10, 16, 32, 0.92);
    border: 1px solid rgba(127, 219, 202, 0.45);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(10, 16, 32, 0.7), 0 0 30px rgba(127, 219, 202, 0.18);
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 20px)) scale(0.95);
    transition: opacity 0.2s ease, transform 0.25s ease;
    min-width: 180px;
}

.specimen-tooltip.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 16px)) scale(1);
}

.tooltip-char {
    font-family: var(--font-ko);
    font-weight: 700;
    font-size: 36px;
    color: var(--bright-teal);
    line-height: 1;
}

.tooltip-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-line {
    display: flex;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.4;
}

.tooltip-line span:first-child {
    color: var(--teal);
    min-width: 32px;
}

.tooltip-line span:last-child {
    color: var(--marble);
}

/* ============ Reading Section ============ */
.reading-section {
    position: relative;
    padding: 120px 8vw;
    background: linear-gradient(180deg, var(--deep-water) 0%, var(--mid-water) 30%, var(--upper-water) 100%);
}

.reading-column {
    max-width: 70ch;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.reading-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--marble);
    line-height: 1.2;
    margin-bottom: 12px;
}

.reading-lede {
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.8;
    color: var(--marble);
    font-weight: 400;
}

.reading-column p {
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.85;
    color: rgba(232, 228, 224, 0.82);
}

.hl {
    font-family: var(--font-mono);
    color: var(--bright-teal);
    background: rgba(127, 219, 202, 0.10);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

/* ============ Footer / Ocean Floor ============ */
.ocean-floor {
    position: relative;
    background: linear-gradient(180deg, var(--mid-water) 0%, var(--abyss) 70%, var(--abyss) 100%);
    padding: 100px 8vw 30px;
    color: rgba(232, 228, 224, 0.7);
    overflow: hidden;
}

.biolum {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.biolum-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--bright-teal);
    box-shadow: 0 0 8px var(--bright-teal);
    animation: biolum-pulse 4s ease-in-out infinite;
}

.biolum-dot.alt-1 { background: var(--caustic); box-shadow: 0 0 10px var(--caustic); animation-duration: 5.5s; }
.biolum-dot.alt-2 { background: #6BB6C8; box-shadow: 0 0 8px #6BB6C8; animation-duration: 6.2s; }

@keyframes biolum-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.4); }
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    margin-bottom: 50px;
}

@media (max-width: 800px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--marble);
    letter-spacing: 0.005em;
}

.footer-note {
    font-size: 14px;
    color: rgba(232, 228, 224, 0.55);
    max-width: 280px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 600px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--teal);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link {
    font-size: 14px;
    color: rgba(232, 228, 224, 0.7);
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--bright-teal);
    padding-left: 4px;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(74, 138, 138, 0.2);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(232, 228, 224, 0.45);
    letter-spacing: 0.06em;
}

/* ============ Mobile / Touch ============ */
@media (max-width: 720px) {
    html, body { cursor: auto; }
    .cursor-glow { display: none; }
    .specimen { cursor: pointer; }

    .hero {
        padding: 90px 6vw 40px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-glyph {
        height: 220px;
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
