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

:root {
    --ice-1: #a8d8ea;
    --ice-2: #cce8f4;
    --ice-3: #e8f6fd;
    --deep: #03101e;
    --deep-2: #061825;
    --deep-3: #0a2237;
    --gold: #c9a84c;
    --gold-light: #e8cc7a;
    --glow: #7ecef4;
    --glow-soft: rgba(126, 206, 244, 0.18);
    --glow-mid: rgba(126, 206, 244, 0.45);
    --body-font: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--deep);
    color: var(--ice-3);
    font-family: var(--body-font);
    overflow-x: hidden;
    min-height: 100vh;
    overflow-y: hidden;
}

body.inner-open {
    overflow-y: auto;
}

@media (hover: hover) {
    body {
        cursor: none;
    }
}

/* CURSOR */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

@media (hover: hover) {
    #cursor {
        display: block;
    }
}

#cursor .ring {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

#cursor .ring-outer {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(126, 206, 244, 0.5);
    transition: width .3s, height .3s, border-color .3s;
}

#cursor .ring-inner {
    width: 6px;
    height: 6px;
    background: var(--glow);
    box-shadow: 0 0 8px var(--glow);
}

#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.ice-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168, 216, 234, 0.06) 0%, transparent 70%), radial-gradient(ellipse 60% 80% at 100% 100%, rgba(10, 34, 55, 0.7) 0%, transparent 60%), radial-gradient(ellipse 50% 60% at 0% 50%, rgba(10, 34, 55, 0.5) 0%, transparent 50%);
}

.grain {
    position: fixed;
    inset: -50%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-drift 8s steps(10) infinite;
}

@keyframes grain-drift {

    0%,
    100% {
        transform: translate(0, 0)
    }

    10% {
        transform: translate(-2%, -3%)
    }

    30% {
        transform: translate(3%, -1%)
    }

    50% {
        transform: translate(-1%, 3%)
    }

    70% {
        transform: translate(2%, 1%)
    }

    90% {
        transform: translate(-3%, 2%)
    }
}

.rune-border {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(126, 206, 244, 0.08);
}

.rune-border::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(126, 206, 244, 0.05);
}

.corner {
    position: fixed;
    z-index: 5;
    width: 40px;
    height: 40px;
    pointer-events: none;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: rgba(126, 206, 244, 0.3);
}

.corner::before {
    width: 100%;
    height: 1px;
}

.corner::after {
    width: 1px;
    height: 100%;
}

.corner-tl {
    top: 16px;
    left: 16px;
}

.corner-tr {
    top: 16px;
    right: 16px;
    transform: scaleX(-1);
}

.corner-bl {
    bottom: 16px;
    left: 16px;
    transform: scaleY(-1);
}

.corner-br {
    bottom: 16px;
    right: 16px;
    transform: scale(-1);
}

.ambient-runes {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.rune-char {
    position: absolute;
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    color: rgba(126, 206, 244, 0.05);
    letter-spacing: 2px;
    animation: rune-drift linear infinite;
}

@keyframes rune-drift {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg)
    }

    10% {
        opacity: 1
    }

    90% {
        opacity: 0.5
    }

    100% {
        opacity: 0;
        transform: translateY(-80px) rotate(8deg)
    }
}

/* TOPBAR */
#topbar-controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    pointer-events: none;
}

#topbar-controls>* {
    pointer-events: all;
}

#portal-back-fixed {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.35);
    background: rgba(3, 16, 30, 0.75);
    border: 1px solid rgba(126, 206, 244, 0.15);
    padding: 8px 14px;
    transition: all 0.3s, opacity 0.4s, visibility 0.4s;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
}

#portal-back-fixed.visible {
    opacity: 1;
    visibility: visible;
}

@media (hover:hover) {
    #portal-back-fixed {
        cursor: none;
    }
}

#portal-back-fixed:hover {
    color: rgba(126, 206, 244, 0.75);
    border-color: rgba(126, 206, 244, 0.4);
}

#audio-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(3, 16, 30, 0.75);
    border: 1px solid rgba(126, 206, 244, 0.2);
    padding: 8px 14px 8px 10px;
    border-radius: 2px;
    opacity: 0;
    animation: fade-in 1s ease 2.2s forwards;
    transition: border-color 0.3s, background 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    backdrop-filter: blur(8px);
}

@media (hover:hover) {
    #audio-toggle {
        cursor: none;
    }
}

#audio-toggle:hover {
    border-color: rgba(126, 206, 244, 0.5);
    background: rgba(6, 24, 37, 0.85);
}

#audio-toggle:active {
    transform: scale(0.97);
}

.audio-waves {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
}

.audio-waves span {
    display: block;
    width: 2px;
    border-radius: 1px;
    background: var(--glow);
    opacity: 0.5;
    transform-origin: bottom;
}

.audio-waves span:nth-child(1) {
    height: 5px
}

.audio-waves span:nth-child(2) {
    height: 10px
}

.audio-waves span:nth-child(3) {
    height: 7px
}

.audio-waves span:nth-child(4) {
    height: 13px
}

.audio-waves span:nth-child(5) {
    height: 6px
}

#audio-toggle.playing .audio-waves span {
    animation: wave-dance linear infinite;
    opacity: 0.85;
}

#audio-toggle.playing .audio-waves span:nth-child(1) {
    animation-duration: 0.9s;
    animation-delay: 0s
}

#audio-toggle.playing .audio-waves span:nth-child(2) {
    animation-duration: 0.7s;
    animation-delay: 0.1s
}

#audio-toggle.playing .audio-waves span:nth-child(3) {
    animation-duration: 1.1s;
    animation-delay: 0.2s
}

#audio-toggle.playing .audio-waves span:nth-child(4) {
    animation-duration: 0.8s;
    animation-delay: 0.05s
}

#audio-toggle.playing .audio-waves span:nth-child(5) {
    animation-duration: 1.0s;
    animation-delay: 0.15s
}

@keyframes wave-dance {

    0%,
    100% {
        transform: scaleY(0.4)
    }

    50% {
        transform: scaleY(1.2)
    }
}

.audio-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
    white-space: nowrap;
    transition: color 0.3s;
    user-select: none;
}

#audio-toggle.playing .audio-label {
    color: rgba(126, 206, 244, 0.75);
}

/* PORTAL */
#portal {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(60px, 8vh, 80px) 24px clamp(40px, 6vh, 60px);
    transition: transform 1.3s cubic-bezier(0.76, 0, 0.24, 1), opacity 1s ease;
    transform-origin: center top;
}

#portal.departing {
    transform: translateY(-130vh) scale(0.88);
    opacity: 0;
    pointer-events: none;
}

.hero-top-line {
    position: absolute;
    top: 56px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.hero-top-line span {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
}

.top-line-dash {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 206, 244, 0.35), transparent);
}

.hero-halo {
    position: absolute;
    width: min(500px, 90vw);
    height: 200px;
    background: radial-gradient(ellipse, rgba(126, 206, 244, 0.09) 0%, transparent 70%);
    pointer-events: none;
    animation: halo-pulse 4s ease-in-out infinite;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes halo-pulse {

    0%,
    100% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1)
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.1)
    }
}

.hero-eyebrow {
    font-family: 'Raleway', sans-serif;
    font-size: 10px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    animation: fade-up 1s ease 0.3s forwards;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(20px, 4.5vw, 72px);
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #fff 0%, var(--ice-1) 50%, rgba(126, 206, 244, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 40px rgba(126, 206, 244, 0.35));
    margin-bottom: 0;
    padding: 0 8px;
    opacity: 0;
    animation: fade-up 1.2s ease 0.6s forwards;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 300;
    color: rgba(200, 232, 250, 0.65);
    text-align: center;
    letter-spacing: 0.5px;
    margin-top: clamp(8px, 1.5vh, 16px);
    margin-bottom: clamp(16px, 3vh, 36px);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 1.2s ease 0.9s forwards;
}

.rune-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(16px, 3vh, 36px);
    opacity: 0;
    animation: fade-up 1s ease 1.1s forwards;
}

.rune-divider .line {
    height: 1px;
    width: 60px;
    background: linear-gradient(90deg, transparent, var(--gold-light));
}

.rune-divider .line.right {
    background: linear-gradient(90deg, var(--gold-light), transparent);
}

.rune-divider .glyph {
    font-size: 18px;
    color: var(--gold);
    text-shadow: 0 0 12px rgba(201, 168, 76, 0.6);
    animation: glyph-spin 8s linear infinite;
}

@keyframes glyph-spin {

    0%,
    100% {
        transform: rotate(0deg) scale(1)
    }

    25% {
        transform: rotate(5deg) scale(1.05)
    }

    75% {
        transform: rotate(-5deg) scale(0.97)
    }
}

.photo-wrap {
    width: 100%;
    max-width: min(420px, 45vh);
    margin-bottom: clamp(20px, 4vh, 40px);
    position: relative;
    opacity: 0;
    animation: fade-up 1.4s ease 1.3s forwards;
}

.photo-wrap::before {
    display: none;
}

.photo-frame {
    position: relative;
    z-index: 1;
    border-radius: 4px;
}

.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.photo-frame::before,
.photo-frame::after {
    display: none;
}

.photo-shimmer {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.07) 0%, transparent 50%, rgba(201, 168, 76, 0.04) 100%);
    pointer-events: none;
}

.photo-frame:hover img {
    transform: scale(1.04);
}

.enter-btn-wrap {
    opacity: 0;
    animation: fade-up 1.2s ease 1.7s forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.enter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 48px;
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(10px, 2.5vw, 13px);
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--ice-1);
    border: 1px solid rgba(126, 206, 244, 0.35);
    background: transparent;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

@media (hover:hover) {
    .enter-btn {
        cursor: none;
    }
}

.enter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.05) 0%, rgba(126, 206, 244, 0.12) 50%, rgba(126, 206, 244, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow), transparent);
    transition: width 0.6s ease;
}

.enter-btn:hover,
.enter-btn:focus-visible {
    color: #fff;
    border-color: rgba(126, 206, 244, 0.7);
    outline: none;
}

.enter-btn:hover::before,
.enter-btn:focus-visible::before {
    opacity: 1;
}

.enter-btn:hover::after,
.enter-btn:focus-visible::after {
    width: 100%;
}

.enter-btn:active {
    transform: scale(0.97);
    border-color: rgba(126, 206, 244, 0.9);
}

.btn-glyph {
    font-size: 14px;
    opacity: 0.6;
    flex-shrink: 0;
    animation: btn-glyph-flicker 3s ease-in-out infinite;
}

@keyframes btn-glyph-flicker {

    0%,
    100% {
        opacity: 0.6
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 8px var(--glow)
    }
}

.enter-hint {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 4px;
    color: rgba(126, 206, 244, 0.3);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fade-in 1s ease 2.5s forwards;
}

.scroll-indicator span {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 4px;
    color: rgba(126, 206, 244, 0.25);
    text-transform: uppercase;
    white-space: nowrap;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(126, 206, 244, 0.4), transparent);
    animation: scroll-drop 2s ease-in-out infinite;
}

@keyframes scroll-drop {
    0% {
        transform: scaleY(0);
        transform-origin: top;
        opacity: 1
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
        opacity: 1
    }

    100% {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 0
    }
}

/* INNER WORLD */
#inner-world {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transform: translateY(50px) scale(0.97);
    transition: opacity 1.2s ease 0.4s, transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}

#inner-world.revealed {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.inner-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: rgba(3, 16, 30, 0.7);
    border-bottom: 1px solid rgba(126, 206, 244, 0.08);
    backdrop-filter: blur(16px);
    opacity: 0;
}

#inner-world.revealed .inner-topbar {
    animation: fade-in 0.8s ease 0.9s forwards;
}

.inner-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: rgba(126, 206, 244, 0.5);
}

.inner-brand span {
    color: var(--gold);
}

/* TWO-COLUMN LAYOUT */
.inner-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: calc(100vh - 52px);
}

/* LEFT */
.left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 52px 20px 40px;
    position: sticky;
    top: 52px;
    height: calc(100vh - 52px);
    border-right: 1px solid rgba(126, 206, 244, 0.06);
    overflow-y: auto;
    overflow-x: hidden;
}

.left-col::-webkit-scrollbar {
    width: 3px;
}

.left-col::-webkit-scrollbar-track {
    background: transparent;
}

.left-col::-webkit-scrollbar-thumb {
    background: rgba(126, 206, 244, 0.15);
    border-radius: 2px;
}

.left-nav-tabs {
    width: 100%;
    margin: 24px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portrait-orbit {
    position: relative;
    width: 148px;
    height: 148px;
    margin-bottom: 24px;
    opacity: 0;
    flex-shrink: 0;
}

#inner-world.revealed .portrait-orbit {
    animation: fade-up 0.9s ease 1s forwards;
}

.orbit-ring {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(126, 206, 244, 0.45);
    border-right-color: rgba(201, 168, 76, 0.25);
    animation: orbit-spin 12s linear infinite;
}

.orbit-ring-2 {
    position: absolute;
    inset: -24px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(126, 206, 244, 0.2);
    border-left-color: rgba(201, 168, 76, 0.12);
    animation: orbit-spin 22s linear infinite reverse;
}

.orbit-dot {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.8);
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.portrait-glow {
    position: absolute;
    inset: -32px;
    background: radial-gradient(ellipse at center, rgba(126, 206, 244, 0.15) 0%, transparent 65%);
    border-radius: 50%;
    animation: portrait-pulse 5s ease-in-out infinite;
}

@keyframes portrait-pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1)
    }

    50% {
        opacity: 1;
        transform: scale(1.1)
    }
}

.portrait-img {
    position: relative;
    z-index: 2;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(126, 206, 244, 0.35);
    box-shadow: 0 0 0 4px rgba(3, 16, 30, 0.85), 0 0 32px rgba(126, 206, 244, 0.2), inset 0 0 20px rgba(3, 16, 30, 0.3);
}

.portrait-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.82) brightness(0.88);
}

.portrait-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-align: center;
    color: rgba(168, 216, 234, 0.7);
    margin-bottom: 5px;
    opacity: 0;
}

.portrait-role {
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    color: rgba(201, 168, 76, 0.5);
    opacity: 0;
}

#inner-world.revealed .portrait-name {
    animation: fade-up 0.8s ease 1.3s forwards;
}

#inner-world.revealed .portrait-role {
    animation: fade-up 0.8s ease 1.45s forwards;
}

.left-sep {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 206, 244, 0.2), transparent);
    margin: 20px auto;
    flex-shrink: 0;
}

.ambient-stat {
    text-align: center;
    margin-bottom: 18px;
    opacity: 0;
    flex-shrink: 0;
}

#inner-world.revealed .ambient-stat:nth-child(1) {
    animation: fade-up 0.8s ease 1.55s forwards;
}

#inner-world.revealed .ambient-stat:nth-child(2) {
    animation: fade-up 0.8s ease 1.7s forwards;
}

#inner-world.revealed .ambient-stat:nth-child(3) {
    animation: fade-up 0.8s ease 1.85s forwards;
}

.stat-val {
    font-family: 'Cinzel Decorative', serif;
    font-size: 16px;
    color: var(--glow);
    display: block;
}

.stat-lbl {
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.3);
}

/* MID */
.mid-col {
    padding: 60px 52px 80px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(126, 206, 244, 0.06);
    overflow-y: auto;
    min-height: 0;
}

.arrival-line {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    opacity: 0;
}

#inner-world.revealed .arrival-line {
    animation: fade-up 0.8s ease 0.75s forwards;
}

.arrival-line::before {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.6), transparent);
}

.arrival-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
}

.arrival-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(126, 206, 244, 0.12), transparent);
}

.mid-heading {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(20px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--ice-1) 60%, rgba(126, 206, 244, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 36px;
    opacity: 0;
}

#inner-world.revealed .mid-heading {
    animation: fade-up 0.9s ease 0.9s forwards;
}

/* Bio */
.bio-section {
    flex: 1;
}

.bio-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.05vw, 16px);
    line-height: 1.85;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.82);
    letter-spacing: 0.2px;
    margin-bottom: 28px;
    opacity: 0;
    position: relative;
    padding-left: 22px;
}

.bio-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.45), rgba(126, 206, 244, 0.15), transparent);
}

#inner-world.revealed .bio-text:nth-of-type(1) {
    animation: fade-up 0.9s ease 1.15s forwards;
}

#inner-world.revealed .bio-text:nth-of-type(2) {
    animation: fade-up 0.9s ease 1.35s forwards;
}

/* Tab panels */
.tab-content-panel {
    display: none;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    flex: 1;
}

.tab-content-panel.active {
    display: flex;
    flex-direction: column;
}

.tab-content-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.tab-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.tab-panel-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(201, 168, 76, 0.5);
}

.tab-panel-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--ice-1) 60%, rgba(126, 206, 244, 0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.tab-panel-sep {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(126, 206, 244, 0.15), transparent);
}

.under-construction {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
    gap: 20px;
}

.uc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.65);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 6px 12px;
}

.uc-badge::before {
    content: '⚠';
    font-size: 10px;
}

.uc-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(168, 216, 234, 0.55);
    padding-left: 22px;
    border-left: 2px solid rgba(201, 168, 76, 0.25);
    max-width: 440px;
}

.uc-scan-wrap {
    width: 100%;
    max-width: 320px;
    height: 60px;
    border: 1px solid rgba(126, 206, 244, 0.08);
    position: relative;
    overflow: hidden;
    background: rgba(6, 24, 37, 0.4);
}

.uc-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 206, 244, 0.3), transparent);
    animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0
    }

    10% {
        opacity: 1
    }

    90% {
        opacity: 0.5
    }

    100% {
        top: 100%;
        opacity: 0
    }
}

.mid-bottom-glyph {
    margin-top: auto;
    padding-top: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

#inner-world.revealed .mid-bottom-glyph {
    animation: fade-in 1s ease 2.1s forwards;
}

.mid-bottom-glyph::before,
.mid-bottom-glyph::after {
    content: '';
    flex: 1;
    height: 1px;
}

.mid-bottom-glyph::before {
    background: linear-gradient(90deg, transparent, rgba(126, 206, 244, 0.1));
}

.mid-bottom-glyph::after {
    background: linear-gradient(90deg, rgba(126, 206, 244, 0.1), transparent);
}

.mid-bottom-glyph span {
    font-size: 12px;
    color: rgba(126, 206, 244, 0.2);
    letter-spacing: 8px;
}

/* TABS */
#inner-world.revealed .float-tab {
    opacity: 1;
    transform: translateX(0);
}

.float-tab {
    position: relative;
    background: rgba(6, 24, 37, 0.5);
    border: 1px solid rgba(126, 206, 244, 0.1);
    padding: 11px 14px;
    margin-bottom: 0;
    transition: border-color 0.35s, background 0.35s, transform 0.3s;
    overflow: hidden;
    opacity: 0;
    transform: translateX(20px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: 2px;
}

@media (hover:hover) {
    .float-tab {
        cursor: none;
    }
}

#inner-world.revealed .float-tab:nth-child(1) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.15s forwards;
}

#inner-world.revealed .float-tab:nth-child(2) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

#inner-world.revealed .float-tab:nth-child(3) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.45s forwards;
}

#inner-world.revealed .float-tab:nth-child(4) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}

#inner-world.revealed .float-tab:nth-child(5) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.75s forwards;
}

#inner-world.revealed .float-tab:nth-child(6) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 1.9s forwards;
}

#inner-world.revealed .float-tab:nth-child(7) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 2.05s forwards;
}

#inner-world.revealed .float-tab:nth-child(8) {
    animation: ftab-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 2.2s forwards;
}

@keyframes ftab-in {
    from {
        opacity: 0;
        transform: translateX(20px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.float-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.07) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.float-tab::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(126, 206, 244, 0.5));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.float-tab:hover {
    border-color: rgba(126, 206, 244, 0.3);
    background: rgba(10, 34, 55, 0.7);
}

.float-tab.active {
    border-color: rgba(126, 206, 244, 0.5);
    background: rgba(10, 34, 55, 0.9);
}

.float-tab:hover::before,
.float-tab.active::before {
    opacity: 1;
}

.float-tab:hover::after,
.float-tab.active::after {
    transform: scaleY(1);
}

.tab-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 7px;
    letter-spacing: 2px;
    color: rgba(201, 168, 76, 0.5);
    display: block;
    margin-bottom: 2px;
}

.tab-name {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(168, 216, 234, 0.65);
    transition: color 0.3s;
    display: block;
}

.float-tab:hover .tab-name,
.float-tab.active .tab-name {
    color: rgba(168, 216, 234, 1);
}

.tab-arr {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: rgba(126, 206, 244, 0.2);
    transition: color 0.3s, transform 0.3s;
}

.float-tab:hover .tab-arr {
    color: rgba(126, 206, 244, 0.6);
    transform: translateY(-50%) translateX(2px);
}

.float-tab.active .tab-arr {
    color: var(--gold);
    transform: translateY(-50%) rotate(90deg);
}

/* RIPPLE */
#transition-ripple {
    position: fixed;
    inset: 0;
    z-index: 400;
    pointer-events: none;
    opacity: 0;
}

.ripple-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(126, 206, 244, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* VEIL */
#veil {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--deep);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: veil-out 0.8s ease 1s forwards;
}

#veil .veil-symbol {
    font-family: 'Cinzel Decorative', serif;
    font-size: 28px;
    color: rgba(126, 206, 244, 0.5);
    animation: veil-symbol-pulse 1s ease-in-out;
}

@keyframes veil-out {
    to {
        opacity: 0;
        pointer-events: none
    }
}

@keyframes veil-symbol-pulse {
    0% {
        opacity: 0;
        transform: scale(0.8)
    }

    50% {
        opacity: 1;
        transform: scale(1.1)
    }

    100% {
        opacity: 0.6;
        transform: scale(1)
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fade-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* ══ SHARED ELEMENTS ══ */
.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
    padding-bottom: 8px;
}

/* ══ 01. IDENTITY ══ */
.identity-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 10px;
}

.identity-bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-text-expanded {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.05vw, 15.5px);
    line-height: 1.85;
    color: rgba(200, 232, 250, 0.85);
    font-weight: 300;
}

.profile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.profile-card {
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.08);
    padding: 14px 18px;
    border-radius: 4px;
    position: relative;
    transition: all 0.35s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: scaleY(0);
    transition: transform 0.35s ease;
}

.profile-card:hover {
    border-color: rgba(126, 206, 244, 0.25);
    background: rgba(10, 34, 55, 0.55);
    transform: translateY(-2px);
}

.profile-card:hover::before {
    transform: scaleY(1);
}

.p-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
    display: block;
    margin-bottom: 4px;
}

.p-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--ice-3);
}

/* ══ 02. JOURNEY ══ */
.journey-intro {
    margin-bottom: 32px;
    text-align: center;
}

.journey-intro-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    color: rgba(200, 232, 250, 0.45);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.journey-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 10px;
}

.journey-track-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    padding-bottom: 8px;
}

.journey-track-sub {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.4);
    text-align: center;
    margin-top: -16px;
    margin-bottom: 24px;
}

.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 1px dashed rgba(126, 206, 244, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
    transition: all 0.35s ease;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--deep);
    border: 1.5px solid rgba(126, 206, 244, 0.4);
    box-shadow: 0 0 5px var(--glow);
    transition: all 0.3s;
    z-index: 2;
}

.timeline-item:hover .timeline-dot {
    background: var(--gold);
    border-color: var(--gold-light);
    box-shadow: 0 0 10px var(--gold);
}

.timeline-content {
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.07);
    padding: 14px 18px;
    border-radius: 3px;
    transition: all 0.35s ease;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(126, 206, 244, 0.22);
    background: rgba(10, 34, 55, 0.55);
    transform: translateX(3px);
}

.time-date {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
}

.time-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--ice-1);
    margin-bottom: 3px;
}

.time-place {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(126, 206, 244, 0.55);
    margin-bottom: 6px;
    font-style: italic;
}

.time-desc {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.65;
    color: rgba(200, 232, 250, 0.58);
    font-weight: 300;
}

/* Part-time education strip */
.parttime-section {
    margin-top: 56px;
}

.parttime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.parttime-card {
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.07);
    border-radius: 3px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    position: relative;
}

.parttime-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(126, 206, 244, 0.35);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.parttime-card:hover {
    border-color: rgba(126, 206, 244, 0.2);
    background: rgba(10, 34, 55, 0.5);
}

.parttime-card:hover::before {
    transform: scaleY(1);
}

.pt-year {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--gold);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.pt-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--ice-1);
    line-height: 1.4;
    margin-bottom: 2px;
}

.pt-org {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.5);
}

/* ══ 03. SKILLS — Systems of Capability ══ */
.systems-intro {
    margin-bottom: 32px;
}

.systems-intro-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    color: rgba(200, 232, 250, 0.45);
    letter-spacing: 0.5px;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    perspective: 1200px;
}

.sys-card {
    background: rgba(6, 24, 37, 0.55);
    border: 1px solid rgba(126, 206, 244, 0.12);
    border-radius: 6px;
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s, box-shadow 0.4s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: transform;
}

.sys-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.06) 0%, rgba(201, 168, 76, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.sys-card-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 216, 234, 0.06), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.sys-card:hover .sys-card-sweep {
    left: 150%;
}

.sys-card:hover {
    transform: translateY(-6px) rotateX(2deg);
    border-color: rgba(126, 206, 244, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(126, 206, 244, 0.06), inset 0 1px 0 rgba(168, 216, 234, 0.08);
}

.sys-card:hover::before {
    opacity: 1;
}

.sys-card-icon {
    font-size: 22px;
    margin-bottom: 12px;
    display: block;
}

.sys-card-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(200, 232, 250, 0.9);
    text-transform: uppercase;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.sys-card:hover .sys-card-title {
    color: #fff;
}

.sys-card-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
    margin-bottom: 14px;
}

.sys-card-content {
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    line-height: 1.7;
    color: rgba(200, 232, 250, 0.55);
    font-weight: 300;
    transition: color 0.3s;
}

.sys-card:hover .sys-card-content {
    color: rgba(200, 232, 250, 0.8);
}

.sys-card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    opacity: 0;
    box-shadow: inset 0 0 30px rgba(126, 206, 244, 0.04);
    transition: opacity 0.4s;
    pointer-events: none;
}

.sys-card:hover .sys-card-border-glow {
    opacity: 1;
}

/* Click particle burst */
.particle-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
}

.burst-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: burst-out 0.8s ease-out forwards;
}

@keyframes burst-out {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1)
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.2)
    }
}

/* ══ 04. ACHIEVEMENTS ══ */
.ach-intro {
    margin-bottom: 36px;
    padding: 24px 28px;
    border-left: 2px solid rgba(201, 168, 76, 0.3);
    background: rgba(6, 24, 37, 0.3);
}

.ach-opening {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.85);
    line-height: 1.75;
    margin-bottom: 10px;
}

.ach-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
}

.ach-block {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 36px;
    padding: 24px;
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.08);
    border-radius: 4px;
    transition: border-color 0.4s, background 0.4s;
}

.ach-block:hover {
    border-color: rgba(126, 206, 244, 0.22);
    background: rgba(10, 34, 55, 0.5);
}

.ach-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: clamp(90px, 12vw, 150px);
}

.ach-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    filter: saturate(0.85) brightness(0.9);
    transition: filter 0.4s, border-color 0.4s;
}

.ach-block:hover .ach-img {
    filter: saturate(1) brightness(1);
    border-color: rgba(201, 168, 76, 0.55);
}

.ach-img-glow {
    position: absolute;
    inset: -8px;
    background: radial-gradient(ellipse at center, rgba(201, 168, 76, 0.08) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s;
}

.ach-block:hover .ach-img-glow {
    opacity: 1;
}

.ach-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ach-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.6);
}

.ach-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(12px, 1.2vw, 17px);
    letter-spacing: 2px;
    color: var(--ice-1);
    line-height: 1.3;
}

.ach-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 0.95vw, 14px);
    font-style: italic;
    color: rgba(200, 232, 250, 0.7);
}

.ach-org {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.4);
}

.ach-desc {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.75;
    color: rgba(200, 232, 250, 0.6);
    font-weight: 300;
    margin-top: 4px;
}

.ach-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
}

.ach-div-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(126, 206, 244, 0.1), rgba(201, 168, 76, 0.2), rgba(126, 206, 244, 0.1));
}

.ach-div-glyph {
    font-size: 14px;
    color: rgba(201, 168, 76, 0.3);
}

.ach-personal {
    padding: 24px 28px;
    border-left: 2px solid rgba(126, 206, 244, 0.15);
    background: rgba(6, 24, 37, 0.25);
}

.ach-personal-main {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.6);
    line-height: 1.75;
    margin-bottom: 10px;
}

.ach-personal-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.3);
    line-height: 1.7;
}

/* ══ 05. PHILOSOPHY ══ */
.phil-intro {
    margin-bottom: 36px;
    padding: 24px 28px;
    border-left: 2px solid rgba(126, 206, 244, 0.25);
    background: rgba(6, 24, 37, 0.3);
}

.phil-opening {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.85);
    line-height: 1.75;
    margin-bottom: 10px;
}

.phil-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.4);
}

.phil-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (max-width: 900px) {
    .phil-layout {
        grid-template-columns: 1fr;
    }
}

.phil-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.phil-block {
    position: relative;
    padding-left: 20px;
}

.phil-block-line {
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(201, 168, 76, 0.4), rgba(126, 206, 244, 0.2), transparent);
    border-radius: 1px;
}

.phil-block p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.9;
    color: rgba(200, 232, 250, 0.72);
    font-weight: 300;
}

.phil-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.concept-card {
    background: rgba(6, 24, 37, 0.4);
    border: 1px solid rgba(126, 206, 244, 0.08);
    padding: 14px 18px;
    border-radius: 4px;
    transition: all 0.35s ease;
    cursor: default;
}

.concept-card:hover {
    border-color: rgba(126, 206, 244, 0.28);
    background: rgba(10, 34, 55, 0.6);
    transform: translateX(4px);
}

.concept-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.concept-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(200, 232, 250, 0.55);
    font-weight: 300;
    transition: color 0.35s;
}

.concept-card:hover .concept-desc {
    color: rgba(200, 232, 250, 0.8);
}

.phil-reflections {
    border-top: 1px solid rgba(126, 206, 244, 0.07);
    padding-top: 36px;
}

.phil-ref-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: italic;
    color: rgba(200, 232, 250, 0.45);
    margin-bottom: 24px;
    font-weight: 300;
}

/* Article cards (replaces old ref-grid text list) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.article-card {
    background: rgba(6, 24, 37, 0.4);
    border: 1px solid rgba(126, 206, 244, 0.09);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s ease;
}

.article-card:hover {
    border-color: rgba(126, 206, 244, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 16px rgba(126, 206, 244, 0.07);
}

.article-cover-wrap {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    position: relative;
    background: rgba(3, 16, 30, 0.6);
}

.article-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) brightness(0.92);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.article-card:hover .article-cover-wrap img {
    transform: scale(1.05);
    filter: saturate(1) brightness(1);
}

.article-cover-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 16, 30, 0.9) 0%, transparent 45%);
}

.article-body {
    padding: 14px 16px 16px;
}

.article-lang-tag {
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.6);
    display: block;
    margin-bottom: 6px;
}

.article-title-en {
    font-family: 'Cinzel Decorative', serif;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--ice-1);
    line-height: 1.4;
    margin-bottom: 3px;
}

.article-title-si {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
    color: rgba(200, 232, 250, 0.55);
}

.article-read-cta {
    margin-top: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
    transition: color 0.3s;
}

.article-card:hover .article-read-cta {
    color: rgba(126, 206, 244, 0.85);
}

/* Article reading modal */
.article-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(2, 10, 20, 0.92);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    padding: 60px 20px;
    overflow-y: auto;
}

.article-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.article-modal {
    background: rgba(6, 24, 37, 0.94);
    border: 1px solid rgba(126, 206, 244, 0.15);
    border-radius: 8px;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.article-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: rgba(3, 16, 30, 0.6);
    border: 1px solid rgba(126, 206, 244, 0.2);
    color: rgba(126, 206, 244, 0.6);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
    padding: 6px 11px;
    border-radius: 3px;
}

.article-modal-close:hover {
    color: rgba(126, 206, 244, 0.95);
    border-color: rgba(126, 206, 244, 0.5);
}

.article-modal-cover {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
    filter: saturate(0.9) brightness(0.85);
}

.article-modal-body {
    padding: 32px 36px 40px;
}

.article-modal-titles {
    margin-bottom: 20px;
}

.article-modal-title-en {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(16px, 2vw, 24px);
    letter-spacing: 1.5px;
    color: var(--ice-1);
    margin-bottom: 6px;
    line-height: 1.35;
}

.article-modal-title-si {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.55);
}

.article-lang-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.article-lang-btn {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 14px;
    background: rgba(3, 16, 30, 0.5);
    border: 1px solid rgba(126, 206, 244, 0.15);
    color: rgba(126, 206, 244, 0.5);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
}

.article-lang-btn.active {
    color: rgba(168, 216, 234, 1);
    border-color: rgba(126, 206, 244, 0.5);
    background: rgba(10, 34, 55, 0.8);
}

.article-modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.95;
    color: rgba(200, 232, 250, 0.8);
    font-weight: 300;
}

.article-modal-text p {
    margin-bottom: 18px;
}

.article-modal-text[lang="si"] {
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    font-size: 15px;
    line-height: 2.05;
}

/* ══ 06. VISION ══ */
.vis-intro {
    margin-bottom: 36px;
    padding: 24px 28px;
    border-left: 2px solid rgba(126, 206, 244, 0.2);
    background: rgba(6, 24, 37, 0.3);
}

.vis-opening {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.85);
    line-height: 1.75;
    margin-bottom: 10px;
}

.vis-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.4);
    line-height: 1.7;
}

.vis-layer {
    margin-bottom: 40px;
}

.vis-directions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.vis-dir-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.07);
    border-radius: 4px;
    transition: all 0.35s;
}

.vis-dir-item:hover {
    border-color: rgba(126, 206, 244, 0.22);
    background: rgba(10, 34, 55, 0.5);
    transform: translateX(4px);
}

.vis-dir-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--glow);
    box-shadow: 0 0 8px var(--glow);
    margin-top: 7px;
    flex-shrink: 0;
}

.vis-dir-item p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.75;
    color: rgba(200, 232, 250, 0.7);
    font-weight: 300;
}

.vis-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.vis-focus-card {
    background: rgba(6, 24, 37, 0.4);
    border: 1px solid rgba(126, 206, 244, 0.08);
    padding: 18px 20px;
    border-radius: 4px;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.vis-focus-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.vis-focus-card:hover {
    border-color: rgba(126, 206, 244, 0.28);
    background: rgba(10, 34, 55, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(126, 206, 244, 0.06);
}

.vis-focus-card:hover::before {
    opacity: 1;
}

.vis-focus-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.vis-focus-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(200, 232, 250, 0.55);
    font-weight: 300;
    transition: color 0.35s;
}

.vis-focus-card:hover .vis-focus-desc {
    color: rgba(200, 232, 250, 0.8);
}

.vis-signals {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.vis-signal {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(126, 206, 244, 0.05);
}

.vis-signal:last-child {
    border-bottom: none;
}

.vis-signal-dot {
    font-size: 12px;
    color: rgba(126, 206, 244, 0.3);
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.3s;
}

.vis-signal:hover .vis-signal-dot {
    color: var(--glow);
}

.vis-signal p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.7;
    color: rgba(200, 232, 250, 0.55);
    font-weight: 300;
    font-style: italic;
    transition: color 0.3s;
}

.vis-signal:hover p {
    color: rgba(200, 232, 250, 0.75);
}

.vis-anchor {
    margin-top: 40px;
    padding: 28px 32px;
    border: 1px solid rgba(126, 206, 244, 0.08);
    background: rgba(6, 24, 37, 0.25);
    text-align: center;
}

.vis-anchor-main {
    font-family: 'Inter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-style: italic;
    color: rgba(200, 232, 250, 0.7);
    line-height: 1.7;
    margin-bottom: 10px;
    font-weight: 300;
}

.vis-anchor-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.3);
}

/* ══ CONTACT ══ */
.contact-intro-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 300;
    color: rgba(200, 232, 250, 0.4);
    letter-spacing: 0.5px;
    margin-bottom: 36px;
    text-align: center;
}

.contact-section {
    margin-bottom: 28px;
    border: 1px solid rgba(126, 206, 244, 0.1);
    border-radius: 4px;
    background: rgba(6, 24, 37, 0.35);
    padding: 28px 32px;
    backdrop-filter: blur(6px);
}

.contact-section.primary {
    border-color: rgba(126, 206, 244, 0.2);
    box-shadow: 0 0 30px rgba(126, 206, 244, 0.04), inset 0 1px 0 rgba(168, 216, 234, 0.05);
}

.contact-section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.6);
    margin-bottom: 20px;
    display: block;
}

.contact-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(126, 206, 244, 0.05);
}

.contact-row:last-of-type {
    border-bottom: none;
}

.contact-key {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
}

.contact-val {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(200, 232, 250, 0.82);
}

.contact-note {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.28);
    margin-top: 16px;
}

.contact-presence {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.presence-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.presence-platform {
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.45);
}

.presence-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(200, 232, 250, 0.82);
}

.presence-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(126, 206, 244, 0.4);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.presence-link:hover {
    color: rgba(126, 206, 244, 0.75);
    text-decoration: underline;
}

.location-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-val {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(200, 232, 250, 0.7);
    line-height: 1.6;
}

.location-note {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.28);
    margin-top: 8px;
}

/* ══ PORTFOLIO ══ */
.portfolio-intro {
    margin-bottom: 36px;
}

.portfolio-intro-line {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    font-weight: 300;
    color: rgba(200, 232, 250, 0.55);
    line-height: 1.75;
    margin-bottom: 8px;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1100px) {
    .systems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .identity-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .journey-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .inner-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .left-col {
        flex-direction: column;
        align-items: center;
        position: static;
        height: auto;
        padding: 32px 20px 16px;
        border-right: none;
        border-bottom: 1px solid rgba(126, 206, 244, 0.06);
        overflow: visible;
    }

    .left-sep,
    .ambient-stat {
        display: none;
    }

    .portrait-name,
    .portrait-role {
        display: block;
        text-align: center;
    }

    .portrait-orbit {
        margin-bottom: 16px;
    }

    .mid-col {
        padding: 36px 24px 48px;
        border-right: none;
        border-bottom: 1px solid rgba(126, 206, 244, 0.06);
    }

    .left-nav-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
        padding: 12px 20px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .left-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .float-tab {
        flex: 0 0 auto;
        width: auto;
        min-width: 100px;
        margin-bottom: 0;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .parttime-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ach-block {
        flex-direction: column;
        gap: 20px;
    }

    .ach-img-wrap {
        width: 110px;
    }

    .contact-row {
        grid-template-columns: 100px 1fr;
    }
}

@media (max-width: 480px) {
    .float-tab {
        min-width: 90px;
    }

    .mid-col {
        padding: 28px 18px 40px;
    }

    .hero-title {
        font-size: clamp(18px, 8vw, 38px);
    }

    .sys-card {
        padding: 20px 18px;
    }

    .article-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* HEIGHT RESPONSIVE */
@media (max-height: 800px) {
    .hero-eyebrow {
        margin-bottom: 10px;
    }

    .hero-halo {
        height: 140px;
    }

    .photo-wrap {
        max-width: min(320px, 38vh);
        margin-bottom: 16px;
    }

    .rune-divider {
        margin-bottom: 14px;
    }

    .hero-subtitle {
        margin-top: 8px;
        margin-bottom: 14px;
    }

    .enter-btn-wrap {
        gap: 8px;
    }

    .scroll-indicator {
        bottom: 10px;
    }

    .left-col {
        padding: 32px 20px 24px;
    }

    .portrait-orbit {
        width: 120px;
        height: 120px;
        margin-bottom: 14px;
    }

    .portrait-img {
        width: 120px;
        height: 120px;
    }

    .left-sep {
        margin: 12px auto;
    }

    .ambient-stat {
        margin-bottom: 10px;
    }

    .mid-col {
        padding: 40px 40px 60px;
    }
}

@media (max-height: 700px) {
    .photo-wrap {
        max-width: min(240px, 32vh);
    }

    .hero-eyebrow {
        font-size: 8px;
        margin-bottom: 6px;
    }

    .rune-divider {
        display: none;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-height: 600px) {
    body {
        overflow-y: auto;
    }

    #portal {
        min-height: auto;
        padding: 70px 24px 40px;
        justify-content: flex-start;
    }

    .photo-wrap {
        max-width: 180px;
    }
}

@media (max-height: 680px) {

    .left-sep,
    .ambient-stat {
        display: none;
    }

    .portrait-orbit {
        width: 100px;
        height: 100px;
    }

    .portrait-img {
        width: 100px;
        height: 100px;
    }

    .inner-layout {
        grid-template-columns: 180px 1fr;
    }

    .left-col {
        padding: 24px 14px 16px;
    }
}

/* Low resolution laptop fix: ensure tabs never clip */
@media (max-width: 1280px) and (min-width: 961px) {
    .inner-layout {
        grid-template-columns: 200px 1fr;
    }

    .left-col {
        padding: 40px 14px 32px;
    }

    .mid-col {
        padding: 48px 36px 60px;
    }

    .float-tab {
        padding: 10px 12px;
    }

    .tab-name {
        font-size: 8px;
        letter-spacing: 2px;
    }
}

/* ══════════════════════════════════════════════
   PORTFOLIO — MEAL & RESEARCH & EXPERIMENTAL SECTIONS
══════════════════════════════════════════════ */

.pf-section-intro {
    margin-bottom: 40px;
    padding: 24px 28px;
    border-left: 2px solid rgba(126, 206, 244, 0.2);
    background: rgba(6, 24, 37, 0.3);
}

.pf-section-intro p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 300;
    line-height: 1.85;
    color: rgba(200, 232, 250, 0.78);
}

.pf-section-intro p+p {
    margin-top: 10px;
}

.pf-intro-sub {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
    margin-top: 14px;
    display: block;
}

.pf-project-block {
    margin-bottom: 64px;
    border: 1px solid rgba(126, 206, 244, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.pf-project-block:last-of-type {
    margin-bottom: 32px;
}

.pf-project-header {
    padding: 28px 36px 22px;
    background: rgba(6, 24, 37, 0.55);
    border-bottom: 1px solid rgba(126, 206, 244, 0.07);
    position: relative;
    overflow: hidden;
}

.pf-project-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(126, 206, 244, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.pf-project-tag {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.55);
    display: block;
    margin-bottom: 10px;
}

.pf-project-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #fff 0%, var(--ice-1) 60%, rgba(126, 206, 244, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pf-project-descriptor {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(13px, 1vw, 15px);
    font-style: italic;
    font-weight: 300;
    color: rgba(168, 216, 234, 0.6);
    line-height: 1.6;
}

.pf-project-body {
    padding: 32px 36px 36px;
    background: rgba(3, 16, 30, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pf-narrative {
    margin-bottom: 28px;
}

.pf-narrative-label {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.5);
    display: block;
    margin-bottom: 12px;
}

.pf-narrative p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(14px, 1.05vw, 16px);
    font-weight: 300;
    line-height: 1.9;
    color: rgba(200, 232, 250, 0.75);
    padding-left: 18px;
    border-left: 2px solid rgba(126, 206, 244, 0.12);
    position: relative;
}

.pf-narrative p+p {
    margin-top: 16px;
}

.pf-narrative-sep {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(126, 206, 244, 0.1), rgba(201, 168, 76, 0.1), transparent);
    margin: 28px 0;
}

.pf-archive-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.pf-archive-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.25), transparent);
}

.pf-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}

.pf-screenshot-item {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(126, 206, 244, 0.1);
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
    background: rgba(6, 24, 37, 0.6);
}

.pf-screenshot-item:hover {
    border-color: rgba(126, 206, 244, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 16px rgba(126, 206, 244, 0.08);
    transform: translateY(-3px);
}

.pf-screenshot-img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
    filter: brightness(0.85) saturate(0.8);
    transition: filter 0.35s;
}

.pf-screenshot-item:hover .pf-screenshot-img {
    filter: brightness(1) saturate(1);
}

.pf-screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: rgba(6, 24, 37, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.pf-screenshot-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(126, 206, 244, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(126, 206, 244, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.pf-ph-icon {
    font-size: 18px;
    opacity: 0.2;
    position: relative;
    z-index: 1;
}

.pf-ph-text {
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.2);
    position: relative;
    z-index: 1;
}

.pf-ph-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(126, 206, 244, 0.2), transparent);
    animation: ph-scan 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes ph-scan {
    0% {
        top: 0%;
        opacity: 0
    }

    10% {
        opacity: 1
    }

    90% {
        opacity: 0.3
    }

    100% {
        top: 100%;
        opacity: 0
    }
}

.pf-screenshot-caption {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
    color: rgba(126, 206, 244, 0.38);
    padding: 8px 10px;
    line-height: 1.5;
    border-top: 1px solid rgba(126, 206, 244, 0.06);
}

.pf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(2, 10, 20, 0.94);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}

.pf-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.pf-lightbox-inner {
    max-width: min(900px, 90vw);
    width: 100%;
    position: relative;
}

.pf-lightbox-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(126, 206, 244, 0.18);
    box-shadow: 0 0 80px rgba(126, 206, 244, 0.08);
    display: block;
}

.pf-lightbox-caption {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: rgba(168, 216, 234, 0.55);
    text-align: center;
    margin-top: 14px;
    font-weight: 300;
}

.pf-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: rgba(126, 206, 244, 0.4);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 4px 8px;
}

.pf-lightbox-close:hover {
    color: rgba(126, 206, 244, 0.9);
}

.pf-archive-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.1);
    padding: 6px 14px;
    margin-bottom: 32px;
    border-radius: 2px;
}

.pf-archive-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(126, 206, 244, 0.35);
    animation: pending-pulse 2s ease-in-out infinite;
}

@keyframes pending-pulse {

    0%,
    100% {
        opacity: 0.3
    }

    50% {
        opacity: 0.8
    }
}

.pf-closing {
    margin-top: 40px;
    padding: 24px 28px;
    border-top: 1px solid rgba(126, 206, 244, 0.07);
    text-align: center;
}

.pf-closing p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(13px, 1vw, 15px);
    font-style: italic;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.4);
    line-height: 1.8;
}

@media (max-width: 768px) {

    .pf-project-header,
    .pf-project-body {
        padding: 22px 20px;
    }

    .pf-screenshots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pf-screenshots {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Embedded live apps (Streamlit dashboards, GitHub Pages sites) ── */
.pf-embed-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(126, 206, 244, 0.15);
    background: rgba(3, 16, 30, 0.55);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.pf-embed-frame {
    width: 100%;
    height: 640px;
    max-height: 78vh;
    border: 0;
    display: block;
    background: rgba(3, 16, 30, 0.8);
}

.pf-embed-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(3, 16, 30, 0.85);
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.pf-embed-loading span {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.4);
}

.pf-embed-loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.pf-embed-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.pf-embed-note {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(126, 206, 244, 0.3);
    margin-right: auto;
}

.pf-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(168, 216, 234, 0.75);
    background: rgba(6, 24, 37, 0.6);
    border: 1px solid rgba(126, 206, 244, 0.25);
    padding: 10px 18px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pf-open-btn:hover {
    color: #fff;
    border-color: rgba(126, 206, 244, 0.6);
    background: rgba(10, 34, 55, 0.85);
    transform: translateY(-1px);
}

.pf-open-btn::after {
    content: '↗';
    font-size: 11px;
}

/* ── Publications ── */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.pub-card {
    background: rgba(6, 24, 37, 0.35);
    border: 1px solid rgba(126, 206, 244, 0.08);
    border-radius: 4px;
    padding: 20px 26px;
    transition: all 0.35s ease;
}

.pub-card:hover {
    border-color: rgba(126, 206, 244, 0.22);
    background: rgba(10, 34, 55, 0.5);
}

.pub-tag {
    font-family: 'Raleway', sans-serif;
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201, 168, 76, 0.6);
    margin-bottom: 8px;
    display: block;
}

.pub-citation {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(13.5px, 1.05vw, 15.5px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(200, 232, 250, 0.85);
}

/* ── Referee tab ── */
.referee-card {
    padding: 28px 32px;
    border: 1px solid rgba(126, 206, 244, 0.1);
    border-radius: 4px;
    background: rgba(6, 24, 37, 0.35);
    margin-bottom: 28px;
}

.referee-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(16px, 2vw, 22px);
    letter-spacing: 1.5px;
    color: var(--ice-1);
    margin-bottom: 16px;
}

.referee-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.85;
    font-weight: 300;
    color: rgba(200, 232, 250, 0.72);
}

.referee-text+.referee-text {
    margin-top: 12px;
}

.referee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.referee-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(200, 232, 250, 0.85);
    background: rgba(6, 24, 37, 0.6);
    border: 1px solid rgba(126, 206, 244, 0.2);
    padding: 13px 20px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.referee-btn:hover {
    color: #fff;
    border-color: rgba(126, 206, 244, 0.55);
    background: rgba(10, 34, 55, 0.85);
    transform: translateY(-2px);
}

.referee-btn .ref-icon {
    font-size: 13px;
}
