/* ============================================================
   YUKI NODA PORTFOLIO — Dark Editorial Design
   ============================================================ */

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

/* === DESIGN TOKENS === */
:root {
    --bg:           #080c06;
    --bg-2:         #0c110a;
    --bg-3:         #111608;
    --text:         #dde8d8;
    --text-muted:   #5e6e56;
    --text-dim:     #3a4436;
    --accent:       #b8f05c;
    --accent-glow:  rgba(184, 240, 92, 0.18);
    --accent-dim:   rgba(184, 240, 92, 0.07);
    --border:       rgba(255, 255, 255, 0.055);
    --border-hover: rgba(184, 240, 92, 0.28);

    --font-display: 'Fraunces', Georgia, serif;
    --font-mono:    'DM Mono', 'Courier New', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
}

/* === BASE === */
html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    font-family: var(--font-mono);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease;
    will-change: left, top;
}

.cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(184, 240, 92, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                border-color 0.3s ease, background 0.3s ease;
    will-change: left, top;
}

.cursor-follower.hovered {
    width: 64px;
    height: 64px;
    border-color: var(--accent);
    background: var(--accent-dim);
}

@media (hover: none) {
    .cursor, .cursor-follower { display: none; }
    html { cursor: auto; }
}

/* ============================================================
   GRAIN OVERLAY
   =========================================
   =================== */
.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 8000;
    opacity: 0.03;
    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: grainShift 0.4s steps(3) infinite;
}

@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-3%, -4%); }
    66%  { transform: translate(4%, 2%); }
    100% { transform: translate(-1%, 3%); }
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.9s var(--ease-in-out), visibility 0.9s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
    user-select: none;
}

.loader-count {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 60px rgba(184, 240, 92, 0.3);
}

.loader-bar {
    width: 180px;
    height: 1px;
    background: var(--border);
    margin: 24px auto 16px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
}

.loader-label {
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 50px;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(8, 12, 6, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    flex-shrink: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.72rem;
    letter-spacing: 2.5px;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease-out);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2.5s ease infinite;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 50px 90px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(184,240,92,0.03) 0%, transparent 70%);
}

.hero-side-text {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-size: 0.62rem;
    letter-spacing: 5px;
    color: var(--text-dim);
    white-space: nowrap;
    pointer-events: none;
    text-transform: uppercase;
}

.hero-bg-svg {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    max-width: 680px;
    pointer-events: none;
    animation: slowSpin 40s linear infinite;
    will-change: transform;
}

@keyframes slowSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 950px;
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards 1.4s;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2.5s ease infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10.5vw, 10.5rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -3px;
    margin-bottom: 64px;
}

.line-wrap {
    overflow: hidden;
    display: block;
}

.line {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    animation: lineReveal 1.1s var(--ease-out) forwards;
}

.line[data-delay="0"] { animation-delay: 1.5s; }
.line[data-delay="1"] { animation-delay: 1.68s; }
.line[data-delay="2"] { animation-delay: 1.86s; }

.line.italic {
    font-style: italic;
    color: var(--accent);
}

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

.hero-footer {
    display: flex;
    align-items: center;
    gap: 60px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards 2.1s;
}

.hero-name {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-name-jp {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-name-en {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 40px;
    border: 1px solid var(--border);
    border-radius: 60px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    font-weight: 400;
    color: var(--text);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s var(--ease-out);
    z-index: -1;
}

.btn-hero:hover {
    color: var(--bg);
    border-color: var(--accent);
}

.btn-hero:hover::before {
    transform: scaleX(1);
}

.scroll-indicator {
    position: absolute;
    bottom: 44px;
    right: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.6s;
}

.scroll-line {
    width: 1px;
    height: 55px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollPulse 2.5s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.scroll-indicator span {
    font-size: 0.58rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    text-transform: uppercase;
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 55px 50px;
    background: var(--bg-2);
}

.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-num-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(184,240,92,0.25);
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.66rem;
    color: var(--text-muted);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
}

/* ============================================================
   WORKS
   ============================================================ */
.works-section {
    padding: 120px 50px 140px;
    max-width: 1400px;
    margin: 0 auto;
}

.works-header {
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 3.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
}

.section-desc {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.card {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-dim);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    background: var(--bg-3);
}

.card:hover::after {
    opacity: 1;
}

.card-num {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    z-index: 2;
}

.card-image-wrap {
    height: 260px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-3) 100%);
    transition: background 0.4s ease;
}

.card:hover .card-image-wrap {
    background: linear-gradient(135deg, var(--bg-2) 0%, rgba(184,240,92,0.04) 100%);
}

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-placeholder svg {
    width: 90px;
    height: 90px;
    transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
    opacity: 0.7;
}

.card:hover .card-img-placeholder svg {
    transform: scale(1.08);
    opacity: 1;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
}

.card:hover .card-img {
    transform: scale(1.06);
}

.card-body {
    padding: 36px;
    position: relative;
    z-index: 2;
}

.card-tag {
    font-size: 0.62rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    margin: 14px 0 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.card-arrow {
    margin-top: 28px;
    color: var(--accent);
    display: flex;
    align-items: center;
    transform: translateX(0);
    transition: transform 0.35s var(--ease-out);
}

.card:hover .card-arrow {
    transform: translateX(8px);
}

/* Reveal Animation */
.reveal-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    background: var(--accent-dim);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
    padding: 150px 50px 160px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(ellipse 70% 60% at 20% 60%, rgba(184,240,92,0.025) 0%, transparent 65%);
}

.contact-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 3.5px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 13vw, 13rem);
    font-weight: 900;
    line-height: 0.83;
    letter-spacing: -6px;
    margin-bottom: 55px;
}

.contact-title em {
    font-style: italic;
    color: var(--accent);
    text-shadow: 0 0 80px rgba(184,240,92,0.15);
}

.contact-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-bottom: 45px;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.8vw, 1.3rem);
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
    transition: color 0.35s ease;
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out);
}

.contact-email:hover {
    color: var(--accent);
}

.contact-email:hover::after {
    width: 100%;
}

.contact-deco {
    position: absolute;
    right: 30px;
    bottom: 60px;
    font-family: var(--font-display);
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 900;
    color: rgba(255,255,255,0.018);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 26px 50px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-2);
}

.footer-left,
.footer-right {
    font-size: 0.66rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(184, 240, 92, 0.4); }
    50%       { box-shadow: 0 0 14px rgba(184, 240, 92, 0.85); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .card--large {
        grid-column: 1 / -1;
    }
    .card--large .card-image-wrap {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 24px;
    }
    .header-status {
        display: none;
    }
    .hero {
        padding: 80px 24px 70px;
        align-items: center;
        min-height: 100dvh;
    }
    .hero-bg-svg {
        opacity: 0.15;
        width: 90%;
        right: 5%;
    }
    .hero-side-text {
        display: none;
    }
    .hero-title {
        letter-spacing: -2px;
        margin-bottom: 44px;
    }
    .hero-footer {
        gap: 30px;
        flex-wrap: wrap;
    }
    .stats-section {
        padding: 40px 24px;
    }
    .stats-inner {
        gap: 30px;
        flex-wrap: wrap;
    }
    .stat-divider {
        display: none;
    }
    .works-section {
        padding: 80px 24px 100px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .card--large {
        grid-column: auto;
    }
    .contact-section {
        padding: 100px 24px 120px;
    }
    .contact-title {
        letter-spacing: -3px;
    }
    .contact-deco {
        font-size: 6rem;
        right: 10px;
        bottom: 40px;
    }
    footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .scroll-indicator {
        right: 24px;
    }
}
/* 落ち葉のコンテナ */
#leaf-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* 背景とテキストの間に配置 */
}

/* 葉のスタイル */
.leaf-item {
    position: absolute;
    top: -20px;
    width: 15px;
    height: 15px;
    background: var(--accent); /* あなたのサイトのアクセントカラーを使用 */
    opacity: 0.3;
    border-radius: 2px 15px 5px 15px; /* 葉の形 */
    filter: blur(0.5px);
}

/* 落下と揺れのアニメーション */
@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes sway {
    0% { margin-left: 0; }
    100% { margin-left: 50px; }
}
/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
    padding: 130px 50px 150px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.about-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 3.5px;
    margin-bottom: 70px;
    text-transform: uppercase;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
    max-width: 780px;
}

/* Text column */
.about-text-col {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -2px;
}

.about-title em {
    font-style: italic;
    color: var(--accent);
    text-shadow: 0 0 60px rgba(184,240,92,0.15);
}

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

.about-bio p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 2.0;
    letter-spacing: 0.3px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-tag {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 60px;
    font-size: 0.64rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    background: transparent;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.about-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* Photo column */
.about-photo-col {
    position: relative;
    height: 600px;
}

.about-photo-main {
    position: absolute;
    left: 0;
    top: 0;
    width: 78%;
}

.photo-frame {
    position: relative;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-2);
}

.photo-frame--main {
    aspect-ratio: 3/4;
    max-height: 530px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(18%) contrast(1.05);
    transition: filter 0.6s ease, transform 0.8s var(--ease-out);
}

.about-photo-col:hover .about-img {
    filter: grayscale(0%) contrast(1.0);
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(8,12,6,0.6) 100%
    );
    pointer-events: none;
}

/* Corner brackets */
.photo-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 2;
}

.photo-corner--tl {
    top: 12px;
    left: 12px;
    border-top: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
}

.photo-corner--br {
    bottom: 12px;
    right: 12px;
    border-bottom: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
}

.photo-label-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 0;
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.photo-label-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Avatar illustration */
.about-photo-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 220px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-ring {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(184,240,92,0.2);
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation: avatarPulse 4s ease infinite;
    pointer-events: none;
}

@keyframes avatarPulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50%       { transform: translateX(-50%) scale(1.06); opacity: 1; }
}

.avatar-img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--bg-3);
    box-shadow:
        0 0 0 1px rgba(184,240,92,0.15),
        0 20px 50px rgba(0,0,0,0.7),
        0 0 40px rgba(184,240,92,0.07);
    background: var(--bg-2);
    display: block;
    transition: box-shadow 0.5s ease, transform 0.5s var(--ease-out);
}

.about-photo-col:hover .avatar-img {
    box-shadow:
        0 0 0 1.5px rgba(184,240,92,0.4),
        0 20px 50px rgba(0,0,0,0.7),
        0 0 50px rgba(184,240,92,0.12);
    transform: translateY(-4px);
}

.avatar-badge {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    color: var(--accent);
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Responsive about */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .about-photo-col {
        height: 480px;
    }
    .about-photo-avatar {
        width: 180px;
        right: 10px;
    }
    .avatar-img {
        width: 140px;
        height: 140px;
    }
    .avatar-ring {
        width: 158px;
        height: 158px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 24px 100px;
    }
}

/* ============================================================
   CONTACT — DUAL EMAIL
   ============================================================ */
.contact-emails {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    max-width: 820px;
}

.contact-email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 36px;
    background: var(--bg-2);
    transition: background 0.3s ease;
    flex-wrap: wrap;
}

.contact-email-row:hover {
    background: var(--bg-3);
}

.contact-email-divider {
    height: 1px;
    background: var(--border);
}

.contact-email-type {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.contact-email-tag {
    font-size: 0.58rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.contact-email-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Override old single contact-email style for new usage */
.contact-emails .contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 1.4vw, 1.05rem);
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
    transition: color 0.3s ease;
}

.contact-emails .contact-email::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.5s var(--ease-out);
}

.contact-emails .contact-email:hover {
    color: var(--accent);
}

.contact-emails .contact-email:hover::after {
    width: 100%;
}

.contact-email-icon {
    flex-shrink: 0;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.contact-emails .contact-email:hover .contact-email-icon {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    .contact-email-row {
        padding: 22px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ============================================================
   PROFILE FLIP CARD
   ============================================================ */
.profile-flip-card {
    position: absolute;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    width: 210px;
    height: 300px;
    perspective: 1200px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.3s;
}

.profile-flip-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-flip-card.flipped .profile-flip-inner {
    transform: rotateY(180deg);
}

/* Shared face styles */
.profile-flip-front,
.profile-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ---- FRONT FACE ---- */
.profile-flip-front {
    background: var(--bg-3);
    border: 1px solid var(--border-hover);
    gap: 18px;
    box-shadow:
        0 0 60px rgba(184,240,92,0.06),
        inset 0 0 30px rgba(184,240,92,0.02);
}

.profile-circle-photo {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow:
        0 0 0 6px rgba(184,240,92,0.08),
        0 0 40px rgba(184,240,92,0.2);
    flex-shrink: 0;
    transition: box-shadow 0.4s ease;
}

.profile-flip-card:hover .profile-circle-photo {
    box-shadow:
        0 0 0 8px rgba(184,240,92,0.14),
        0 0 60px rgba(184,240,92,0.35);
}

.profile-circle-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.profile-front-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.profile-front-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
}

.profile-front-en {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 3.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.profile-flip-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.58rem;
    letter-spacing: 3px;
    color: var(--accent);
    opacity: 0.55;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    animation: hintPulse 2.5s ease infinite;
}

.profile-flip-card:hover .profile-flip-hint {
    opacity: 1;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.9; }
}

/* ---- BACK FACE ---- */
.profile-flip-back {
    background: var(--accent);
    transform: rotateY(180deg);
    gap: 10px;
    padding: 24px 18px;
}

.profile-back-deco-top {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 2.5px;
    color: rgba(8,12,6,0.45);
    text-transform: uppercase;
    position: absolute;
    top: 18px;
}

.profile-illus-circle {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.9);
    border: 3px solid rgba(8,12,6,0.12);
    box-shadow: 0 8px 30px rgba(8,12,6,0.18);
    flex-shrink: 0;
}

.profile-illus-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.profile-back-name-jp {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--bg);
    letter-spacing: 2px;
}

.profile-back-roles {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.58rem;
    color: rgba(8,12,6,0.6);
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.6;
    flex-wrap: wrap;
    justify-content: center;
}

.back-sep {
    color: rgba(8,12,6,0.3);
}

.profile-back-deco-bottom {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: rgba(8,12,6,0.4);
    text-transform: uppercase;
    position: absolute;
    bottom: 18px;
}

@media (max-width: 1024px) {
    .profile-flip-card {
        right: 4%;
        width: 180px;
        height: 260px;
    }
    .profile-circle-photo,
    .profile-illus-circle {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .profile-flip-card {
        position: static;
        transform: none;
        margin: 40px auto 0;
        width: 170px;
        height: 250px;
    }
}

/* ============================================================
   INSTAGRAM ROW
   ============================================================ */
.contact-ig-icon {
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.contact-instagram:hover .contact-ig-icon {
    opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 50px;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
}

/* ============================================================
   CARD UPDATES — tall image, link button, new tag
   ============================================================ */
.card-image-wrap--tall {
    height: 340px;
}

.new-tag {
    color: var(--accent) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s ease infinite;
}

.card-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 28px;
    border: 1px solid var(--accent);
    border-radius: 40px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    color: var(--accent);
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease;
    text-decoration: none;
}

.card-link-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
    z-index: -1;
}

.card-link-btn:hover {
    color: var(--bg);
}

.card-link-btn:hover::before {
    transform: scaleX(1);
}

/* ============================================================
   UNIBASE CARD
   ============================================================ */
.card--unibase .card-body {
    padding: 40px 44px;
    display: flex;
    gap: 60px;
    align-items: center;
    height: 100%;
}

.card-body--unibase {
    flex-direction: row !important;
}

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

.unibase-left h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0;
}

.unibase-left h3 em {
    font-style: italic;
    color: var(--accent);
}

.unibase-left p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.9;
}

.unibase-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    min-width: 220px;
}

.unibase-stat {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(184,240,92,0.025);
    transition: background 0.3s ease;
}

.unibase-stat:hover {
    background: rgba(184,240,92,0.06);
}

.unibase-stat-num {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(184,240,92,0.25);
}

.unibase-stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    line-height: 1.5;
}

.unibase-stat-divider {
    height: 1px;
    background: var(--border);
}

@media (max-width: 1024px) {
    .card--unibase .card-body,
    .card-body--unibase {
        flex-direction: column !important;
        gap: 32px;
    }
    .unibase-stats {
        flex-direction: row;
        min-width: unset;
        width: 100%;
    }
    .unibase-stat {
        flex: 1;
    }
    .unibase-stat-divider {
        width: 1px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
    }
    .card--large,
    .card--unibase {
        grid-row: unset !important;
        grid-column: unset !important;
    }
    .unibase-stats {
        flex-direction: column;
    }
    .unibase-stat-divider {
        width: auto;
        height: 1px;
    }
}

/* ============================================================
   WEB DEV STATS (Card 02)
   ============================================================ */
.webdev-stats {
    display: flex;
    gap: 0;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.webdev-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 16px 20px;
    background: rgba(184,240,92,0.03);
    transition: background 0.3s ease;
}

.webdev-stat:hover {
    background: rgba(184,240,92,0.07);
}

.webdev-stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 20px rgba(184,240,92,0.2);
}

.webdev-stat-unit {
    font-size: 1rem;
    font-weight: 700;
}

.webdev-stat-label {
    font-size: 0.58rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    line-height: 1.5;
}

.webdev-stat-divider {
    width: 1px;
    background: var(--border);
}

/* ============================================================
   UNIBASE BLOCK inside Space card
   ============================================================ */
.unibase-block {
    margin-top: 24px;
    border: 1px solid rgba(184,240,92,0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(184,240,92,0.03);
}

.unibase-block-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(184,240,92,0.15);
    background: rgba(184,240,92,0.05);
}

.unibase-block-label {
    font-size: 0.56rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 500;
}

.unibase-block-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 1px;
}

.unibase-block-desc {
    font-size: 0.72rem !important;
    color: var(--text-muted) !important;
    line-height: 1.85 !important;
    padding: 14px 18px !important;
    margin: 0 !important;
}

.unibase-block-stats {
    display: flex;
    border-top: 1px solid rgba(184,240,92,0.12);
}

.unibase-block-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-right: 1px solid rgba(184,240,92,0.12);
}

.unibase-block-stat:last-child {
    border-right: none;
}

.unibase-block-stat span {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--accent);
    display: block;
}

.unibase-block-stat small {
    font-size: 0.54rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.4;
}


/* ============================================================
   SPACE CARD — Stars, Rocket, Planet
   ============================================================ */

.card--space {
    overflow: hidden;
    position: relative;
}

.space-stars-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.space-star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle var(--twinkle-dur, 2s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    opacity: 0;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50%       { opacity: var(--star-opacity, 0.7); transform: scale(1); }
}

.space-planet {
    position: absolute;
    bottom: 80px;
    right: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%,
        rgba(184,240,92,0.7) 0%,
        rgba(184,240,92,0.3) 40%,
        rgba(80,130,20,0.2) 100%
    );
    box-shadow:
        0 0 20px rgba(184,240,92,0.4),
        inset -5px -5px 10px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 3;
    animation: planetBob 6s ease-in-out infinite;
}

.space-planet::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -14px;
    right: -14px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
    border: 1px solid rgba(184,240,92,0.3);
    transform: translateY(-50%) rotateX(72deg);
}

@keyframes planetBob {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(5deg); }
}

.space-rocket-wrap {
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 50px;
    height: 70px;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
}

.space-rocket-wrap.launch {
    animation: rocketFly 3.4s cubic-bezier(0.2, 0, 0.75, 1) forwards;
}

@keyframes rocketFly {
    0%   { opacity: 0;  bottom: -80px; left: -60px;  transform: rotate(-45deg) scale(0.5); }
    6%   { opacity: 1;  bottom: 0px;   left: 0px;    transform: rotate(-45deg) scale(0.8); }
    80%  { opacity: 1;  bottom: 110%;  left: 110%;   transform: rotate(-45deg) scale(1.1); }
    100% { opacity: 0;  bottom: 130%;  left: 130%;   transform: rotate(-45deg) scale(0.7); }
}

.space-rocket-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(184,240,92,0.7));
}

.rocket-flame {
    animation: flameFlicker 0.1s ease-in-out infinite alternate;
    transform-origin: 20px 38px;
}

@keyframes flameFlicker {
    from { transform: scaleY(1)   scaleX(1);    opacity: 0.9; }
    to   { transform: scaleY(1.4) scaleX(0.75); opacity: 1; }
}

@keyframes exhaustFade {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--ex, -15px), var(--ey, -35px)) scale(0.1); }
}

.card--space.rocket-active {
    box-shadow: 0 0 50px rgba(184,240,92,0.15), 0 0 100px rgba(184,240,92,0.05);
}

/* ============================================================
   CARD 3D TILT — Glare Overlay
   ============================================================ */

.card-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255,255,255,0.13) 0%,
        rgba(255,255,255,0.04) 35%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card:hover .card-glare {
    opacity: 1;
}

/* ============================================================
   HERO — Shooting Stars
   ============================================================ */

.shooting-star {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(184,240,92,0) 0%,
        rgba(184,240,92,0.9) 50%,
        rgba(255,255,255,1) 100%
    );
    pointer-events: none;
    z-index: 2;
    border-radius: 999px;
    opacity: 0;
    animation: shootingStar var(--ss-dur, 1.2s) linear forwards;
    transform-origin: left center;
}

@keyframes shootingStar {
    0%   { opacity: 0; transform: rotate(var(--ss-angle,-20deg)) translateX(0)   scaleX(0.05); }
    8%   { opacity: 1; }
    80%  { opacity: 1; transform: rotate(var(--ss-angle,-20deg)) translateX(var(--ss-dist, 250px)) scaleX(1); }
    100% { opacity: 0; transform: rotate(var(--ss-angle,-20deg)) translateX(calc(var(--ss-dist, 250px) + 60px)) scaleX(0.3); }
}

/* ============================================================
   HERO — Mixed Particle System (Orbs + Sparkles)
   ============================================================ */

.particle-orb {
    position: absolute;
    top: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,240,92,0.95), rgba(184,240,92,0.08));
    box-shadow: 0 0 10px rgba(184,240,92,0.5);
    pointer-events: none;
    filter: blur(0.5px);
    animation: fall var(--fall-dur, 12s) linear var(--fall-delay, 0s) infinite,
               orbPulse var(--pulse-dur, 2.5s) ease-in-out infinite alternate;
}

@keyframes orbPulse {
    from { box-shadow: 0 0 5px rgba(184,240,92,0.3);  opacity: 0.35; }
    to   { box-shadow: 0 0 20px rgba(184,240,92,0.9); opacity: 0.9; }
}

.particle-sparkle {
    position: absolute;
    top: -10px;
    background: rgba(255,255,255,0.85);
    pointer-events: none;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: fall var(--fall-dur, 8s) linear var(--fall-delay, 0s) infinite,
               sparkleSpin var(--spin-dur, 1s) linear infinite;
    opacity: 0.7;
}

@keyframes sparkleSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ============================================================
   HERO — Floating Rocket
   ============================================================ */

.hero-float-astronaut {
    position: absolute;
    font-size: 2.2rem;
    top: 22%;
    right: 12%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 0 14px rgba(184,240,92,0.4));
    animation: astronautBob 4s ease-in-out 2.8s infinite,
               fadeInAstronaut 0.8s ease 2.6s forwards;
}

@keyframes astronautBob {
    0%, 100% { transform: translateY(0px)   rotate(-8deg); }
    50%       { transform: translateY(-24px) rotate(8deg);  }
}

@keyframes fadeInAstronaut {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TYPEWRITER — Hero Label
   ============================================================ */

.hero-label-typewriter::after {
    content: '|';
    color: var(--accent);
    animation: caretBlink 0.85s step-end infinite;
    margin-left: 1px;
    font-weight: 300;
}

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

/* ============================================================
   GLITCH EFFECT — Hero Title
   ============================================================ */

.hero-title.glitching .line {
    position: relative;
}

.hero-title.glitching .line::before,
.hero-title.glitching .line::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    line-height: inherit;
    color: inherit;
}

.hero-title.glitching .line::before {
    color: #ff4dff;
    clip-path: polygon(0 20%, 100% 20%, 100% 45%, 0 45%);
    animation: glitchShiftA 0.35s steps(2) forwards;
}

.hero-title.glitching .line::after {
    color: #4dffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 78%, 0 78%);
    animation: glitchShiftB 0.35s steps(2) forwards;
}

@keyframes glitchShiftA {
    0%, 100% { transform: translateX(0);  opacity: 0; }
    25%, 75%  { transform: translateX(-7px); opacity: 0.85; }
    50%        { transform: translateX(4px);  opacity: 0.7; }
}

@keyframes glitchShiftB {
    0%, 100% { transform: translateX(0); opacity: 0; }
    30%, 70%  { transform: translateX(7px);  opacity: 0.85; }
    55%        { transform: translateX(-4px); opacity: 0.7; }
}

/* ============================================================
   SPLIT CHARACTER REVEAL — Section Headings
   ============================================================ */

.split-heading .split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(36px) rotate(5deg);
    transition: opacity 0.55s ease,
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--ci, 0) * 0.04s + 0.05s);
}

.split-heading.split-revealed .split-char {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* ============================================================
   CURSOR TRAIL
   ============================================================ */

.cursor-trail-dot {
    position: fixed;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(184,240,92,0.75);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.32s ease, transform 0.32s ease;
    will-change: left, top, opacity;
}

/* ============================================================
   STATS — Bounce + Particle Burst
   ============================================================ */

.stat-num {
    display: inline-block;
}

.stat-num.bounce {
    animation: counterBounce 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes counterBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.stat-burst-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    animation: burstFly var(--bd, 0.65s) ease-out forwards;
}

@keyframes burstFly {
    0%   { opacity: 1; transform: translate(0, 0) scale(1.2); }
    100% { opacity: 0; transform: translate(var(--bx, 20px), var(--by, -20px)) scale(0); }
}

/* ============================================================
   ABOUT — Tag Float + Cascade Reveal
   ============================================================ */

.about-tag {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    animation: tagFloat var(--tf-dur, 3s) ease-in-out var(--tf-delay, 0s) infinite;
    animation-play-state: paused;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.28s ease, color 0.28s ease, background 0.28s ease,
                box-shadow 0.28s ease;
}

.about-tags.visible .about-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation-play-state: running;
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(var(--tf-lift, -5px)); }
}

.about-tag:hover {
    transform: scale(1.12) translateY(-5px) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-dim) !important;
    box-shadow: 0 8px 24px rgba(184,240,92,0.18) !important;
    animation-play-state: paused !important;
}

/* ============================================================
   MARQUEE — Second Row (Reverse)
   ============================================================ */

.marquee-track--reverse {
    animation: marqueeScrollReverse 30s linear infinite;
    border-top: 1px solid var(--border);
}

@keyframes marqueeScrollReverse {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* ============================================================
   CONTACT — Animated Grid + Glitch Hover
   ============================================================ */

.contact-section {
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(184,240,92,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(184,240,92,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    animation: gridDrift 22s linear infinite;
}

@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}

.contact-title:hover em {
    animation: contactGlitch 0.4s steps(3) forwards;
    display: inline-block;
}

@keyframes contactGlitch {
    0%   { text-shadow: none; transform: none; }
    20%  { text-shadow: -3px 0 #ff00ff, 3px 0 #00ffff; transform: translateX(-2px); }
    40%  { text-shadow:  4px 0 #ff00ff, -4px 0 #00ffff; transform: translateX(2px); }
    60%  { text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;  transform: translateX(-1px); }
    80%  { text-shadow:  1px 0 #ff00ff, -1px 0 #00ffff; transform: none; }
    100% { text-shadow: none; transform: none; }
}

/* ============================================================
   SCANLINE REVEAL — Section Transitions
   ============================================================ */

.about-section::after,
.works-section::after,
.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    pointer-events: none;
    z-index: 10;
}

.about-section.scanline-active::after,
.works-section.scanline-active::after,
.contact-section.scanline-active::after {
    animation: scanlineReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scanlineReveal {
    0%   { transform: scaleX(0); opacity: 0.9; }
    70%  { transform: scaleX(1); opacity: 0.9; }
    100% { transform: scaleX(1); opacity: 0; }
}

/* ============================================================
   ARCHIVE / TIMELINE SECTION
   ============================================================ */

.archive-section {
    position: relative;
    padding: 140px 5vw 120px;
    background: var(--bg);
    overflow: hidden;
}

.archive-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184,240,92,0.04), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(184,240,92,0.03), transparent 40%);
    pointer-events: none;
}

.archive-header {
    max-width: 1200px;
    margin: 0 auto 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.archive-header .section-label {
    margin-bottom: 28px;
}

.archive-header .section-title {
    margin-bottom: 16px;
}

.archive-header .section-desc {
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(184,240,92,0.15) 8%,
        rgba(184,240,92,0.4) 50%,
        rgba(184,240,92,0.15) 92%,
        transparent 100%
    );
    transform: translateX(-50%) scaleY(0);
    transform-origin: top center;
    transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-section.timeline-active .timeline-line,
.timeline.timeline-track-active .timeline-line {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 28px 60px;
    box-sizing: border-box;
}

.timeline-item[data-side="left"] {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item[data-side="right"] {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-year {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.85;
}

/* Status badges (NOW / ARCHIVE) */
.timeline-status-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 5px;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 auto 50px;
    padding: 14px 0;
    max-width: 600px;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.timeline-status-divider.archived {
    color: var(--text-muted);
    margin-top: 30px;
}

.status-divider-dot {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.status-divider-dot.archived {
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
    opacity: 0.4;
}

.timeline-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    text-transform: uppercase;
    font-weight: 500;
}

.timeline-status.active {
    color: var(--accent);
    border-color: rgba(184,240,92,0.4);
    background: var(--accent-dim);
}

.status-pulse-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(184,240,92,0.6);
    animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(184,240,92,0.7); transform: scale(1); }
    70%  { box-shadow: 0 0 0 8px rgba(184,240,92,0); transform: scale(1.15); }
    100% { box-shadow: 0 0 0 0 rgba(184,240,92,0); transform: scale(1); }
}

.status-check {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.timeline-content {
    display: inline-block;
    padding: 24px 28px;
    background: rgba(184,240,92,0.025);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(184,240,92,0.08),
        transparent
    );
    transition: left 0.7s ease;
    pointer-events: none;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-6px);
    border-color: var(--accent);
    background: var(--accent-dim);
    box-shadow: 0 20px 50px rgba(184,240,92,0.1);
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

.timeline-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 2px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    margin-bottom: 14px;
    text-transform: uppercase;
}

.timeline-tag.new-tag {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    animation: tagPulse 2.2s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(184,240,92,0.5); }
    50%       { box-shadow: 0 0 0 6px rgba(184,240,92,0); }
}

.timeline-content h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.35;
}

.timeline-content p {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
    letter-spacing: 0.3px;
}

.timeline-dot {
    position: absolute;
    top: 36px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(184,240,92,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-item[data-side="left"] .timeline-dot {
    right: -7px;
}

.timeline-item[data-side="right"] .timeline-dot {
    left: -7px;
}

.timeline-item.current .timeline-dot {
    background: var(--accent);
    animation: dotPulse 1.8s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(184,240,92,0.5); transform: scale(1); }
    50%       { box-shadow: 0 0 0 4px var(--bg), 0 0 28px rgba(184,240,92,0.9); transform: scale(1.18); }
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 0 4px var(--bg), 0 0 24px rgba(184,240,92,0.7);
}

/* Reveal animation override for timeline items (slide from sides) */
.timeline-item.reveal-item {
    opacity: 0;
}

.timeline-item.reveal-item[data-side="left"] {
    transform: translateX(-40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.reveal-item[data-side="right"] {
    transform: translateX(40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.reveal-item.visible {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .archive-section {
        padding: 100px 5vw 80px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item[data-side="left"],
    .timeline-item[data-side="right"] {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 16px 0 16px 50px;
    }

    .timeline-item[data-side="left"] .timeline-dot,
    .timeline-item[data-side="right"] .timeline-dot {
        left: 13px;
    }

    .timeline-item.reveal-item[data-side="left"],
    .timeline-item.reveal-item[data-side="right"] {
        transform: translateX(-30px);
    }

    .timeline-item.reveal-item.visible {
        transform: translateX(0);
    }

    .timeline-content {
        max-width: 100%;
    }
}


/* ============================================================
   MOBILE + REDUCED MOTION
   ============================================================ */

@media (max-width: 768px) {
    .space-rocket-wrap     { display: none !important; }
    .shooting-star         { display: none !important; }
    .particle-orb          { display: none !important; }
    .particle-sparkle      { display: none !important; }
    .cursor-trail-dot      { display: none !important; }
    .hero-float-astronaut  { display: none !important; }
    .contact-section::before { display: none !important; }
    .about-tag             { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
    .space-rocket-wrap,
    .shooting-star,
    .particle-orb,
    .particle-sparkle,
    .cursor-trail-dot,
    .hero-float-astronaut,
    .rocket-flame,
    .space-planet,
    .space-star            { animation: none !important; display: none !important; }
    .hero-title.glitching .line::before,
    .hero-title.glitching .line::after { display: none !important; }
    .about-tag             { animation: none !important; }
    .contact-section::before { animation: none !important; }
}


/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #ffffff);
    z-index: 9999;
    box-shadow: 0 0 14px rgba(184,240,92,0.7), 0 0 4px rgba(184,240,92,0.5);
    transition: width 0.06s linear;
    pointer-events: none;
}

/* ============================================================
   SECTION NAVIGATION DOTS (right side)
   ============================================================ */
.section-nav {
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

body.loaded .section-nav {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 1.2s;
}

.section-nav a {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    position: relative;
    display: block;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
}

.section-nav a span {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-nav a.active {
    border-color: var(--accent);
    transform: scale(1.2);
    box-shadow: 0 0 14px rgba(184,240,92,0.5);
}

.section-nav a.active span {
    transform: scale(1);
}

.section-nav a:hover {
    border-color: var(--accent);
}

.section-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--accent);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    white-space: nowrap;
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(184,240,92,0.2);
    backdrop-filter: blur(8px);
}

.section-nav a:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 900px) {
    .section-nav { display: none; }
}

/* ============================================================
   MAGNETIC BUTTONS
   ============================================================ */
.btn-hero,
.card-link-btn {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
    will-change: transform;
}

/* ============================================================
   CONTACT FORM CTA (on main page)
   ============================================================ */

.contact-form-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding: 18px 40px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--accent-dim);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.contact-form-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.contact-form-cta:hover {
    color: var(--bg);
    transform: translateY(-2px);
}

.contact-form-cta:hover::before {
    transform: scaleX(1);
}

.contact-form-cta:hover svg {
    transform: translate(3px, -3px);
}

.contact-form-cta svg {
    transition: transform 0.35s ease;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

body.contact-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.contact-page-stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.contact-hero {
    padding: 180px 5vw 80px;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.contact-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -3px;
    margin: 0 0 32px;
    color: var(--text);
}

.contact-hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: contactHeroLine 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-hero-title .line:nth-child(1) { animation-delay: 0.1s; }
.contact-hero-title .line:nth-child(2) { animation-delay: 0.25s; }
.contact-hero-title .line:nth-child(3) { animation-delay: 0.4s; }

.contact-hero-title .italic {
    font-style: italic;
    color: var(--accent);
}

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

.contact-hero-sub {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.85;
    max-width: 560px;
    margin: 0 auto;
    opacity: 0;
    animation: contactHeroLine 0.9s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.contact-main {
    position: relative;
    z-index: 2;
    padding: 60px 5vw 120px;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 80px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.contact-col-label {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-bottom: 36px;
    text-transform: uppercase;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.col-num {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
}

/* === Form === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.form-label em {
    color: var(--accent);
    font-style: normal;
    margin-left: 4px;
}

.form-label em.opt {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-field.focused .form-label {
    color: var(--accent);
}

.form-field input,
.form-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 12px 4px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    width: 100%;
    transition: border-color 0.3s ease;
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(94, 110, 86, 0.6);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: 0;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(184, 240, 92, 0.5);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-field.focused .form-line {
    width: 100%;
}

.form-counter {
    align-self: flex-end;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* Radio group */
.form-field-select {
    display: flex;
    flex-direction: column;
}

.form-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 4px;
}

@media (max-width: 600px) {
    .form-radio-group {
        grid-template-columns: 1fr;
    }
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.28s ease;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    user-select: none;
}

.form-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-radio-bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    flex-shrink: 0;
    position: relative;
    transition: all 0.28s ease;
}

.form-radio-bullet::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-radio:hover {
    border-color: var(--accent);
    color: var(--text);
}

.form-radio input:checked ~ .form-radio-bullet {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(184, 240, 92, 0.4);
}

.form-radio input:checked ~ .form-radio-bullet::after {
    transform: scale(1);
}

.form-radio:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--accent);
}

/* Submit button */
.form-submit-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    margin-top: 16px;
}

.form-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 22px 50px;
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.form-submit-btn:hover {
    color: var(--bg);
}

.form-submit-btn:hover::before {
    transform: scaleX(1);
}

.form-submit-btn:hover svg {
    transform: translateX(4px);
}

.form-submit-btn svg {
    transition: transform 0.35s ease;
}

.form-submit-btn.sending {
    pointer-events: none;
    opacity: 0.6;
    animation: sendingPulse 1.2s ease-in-out infinite;
}

@keyframes sendingPulse {
    0%, 100% { opacity: 0.55; }
    50%       { opacity: 1; }
}

.form-note {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

/* Direct contact column */
.contact-direct-col {
    position: sticky;
    top: 100px;
}

.direct-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.direct-card:hover {
    padding-left: 4px;
}

.direct-card-tag {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.direct-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.direct-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.28s ease, gap 0.3s ease;
    word-break: break-all;
}

.direct-card-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.direct-card-link:hover {
    color: var(--accent);
    gap: 12px;
}

.direct-card-link:hover svg {
    transform: translate(2px, -2px);
}

.response-time-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 18px;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(184, 240, 92, 0.025);
    transition: all 0.3s ease;
}

.response-time-block:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.response-time-icon {
    color: var(--accent);
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--accent-dim);
}

.response-time-title {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.response-time-desc {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

.footer-back-link {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.footer-back-link:hover {
    color: var(--accent);
}

/* ============================================================
   KONAMI CODE EASTER EGG NOTIFICATION
   ============================================================ */
.konami-notif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    padding: 26px 44px;
    z-index: 10000;
    border-radius: 8px;
    box-shadow: 0 0 80px rgba(184,240,92,0.8),
                0 0 200px rgba(184,240,92,0.4),
                inset 0 0 20px rgba(255,255,255,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    animation: konamiPop 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #fff;
}

@keyframes konamiPop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5) rotate(-10deg); }
    12%  { opacity: 1; transform: translate(-50%, -50%) scale(1.08) rotate(2deg); }
    20%  { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    85%  { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85) rotate(-3deg); }
}

.konami-rocket-fly {
    position: fixed;
    z-index: 9000;
    pointer-events: none;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 16px rgba(184,240,92,0.7));
    will-change: transform, left, top;
}