:root {
    --background: 219 29% 6%;        /* #0A0D12 as HSL — matches --bg in base.css */
    --foreground: 220 22% 93%;       /* #E6EAF2 */
    --hero-sub: 220 13% 70%;
    --surface: hsla(219, 20%, 11%, 0.55);
    --surface-border: hsla(220, 16%, 86%, 0.14);
    --accent-ice: #5B9DFF;
    --accent-steel: #C8D0DE;
    --accent-ice-soft: #8DBAFF;
}

body {
    font-family: var(--font-main, "Geist Mono", monospace);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: 100vh;
    isolation: isolate;
}

/* The purple sky-drift / nebula-breathe overlays that used to live here have
   been removed — base.css owns the grain (body::before) and the cold radial
   wash (body::after), so we don't override them from this file anymore. */

#main-content {
    position: relative;
    z-index: 2;
}

.hero-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: -2;
    pointer-events: none;
}

.mesh,
#reading-progress {
    display: none !important;
}

header {
    background: transparent;
    border: 0 !important;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
    z-index: 20;
}

header .container {
    max-width: 1240px;
    padding: 0 18px;
}

header nav {
    position: sticky;
    top: 0;
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    border: none;
    background: hsl(var(--background) / 0.56);
    backdrop-filter: blur(14px);
    z-index: 999;
}

header::after {
    display: none;
}

.logo-img {
    height: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-links {
    gap: 6px;
}

.nav-links a {
    color: hsl(var(--foreground) / 0.9);
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 180ms ease, background-color 180ms ease;
    border-radius: 999px;
    padding: 10px 13px;
}

.nav-links a:hover,
.nav-links a.active {
    color: hsl(var(--foreground));
    background: hsl(var(--foreground) / 0.1);
    text-shadow: none;
}

.nav-links a i {
    display: none;
}

.nav-actions .hero-signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 16px;
    border: none;
    color: hsl(var(--foreground));
    background: hsl(var(--foreground) / 0.12);
    backdrop-filter: blur(12px);
    font-weight: 600;
    transition: transform 180ms ease, background-color 180ms ease;
}

.nav-actions .hero-signup-btn:hover {
    transform: translateY(-1px);
    background: hsl(var(--foreground) / 0.2);
}

.hero {
    min-height: clamp(520px, 82vh, 760px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.hero::after {
    content: "";
    position: absolute;
    inset: -8% -6% auto;
    height: 78%;
    background:
        radial-gradient(46% 54% at 18% 28%, rgba(91, 157, 255, 0.14), rgba(91, 157, 255, 0) 72%),
        radial-gradient(44% 52% at 82% 26%, rgba(200, 208, 222, 0.07), rgba(200, 208, 222, 0) 74%),
        radial-gradient(56% 60% at 50% 8%, rgba(91, 157, 255, 0.10), rgba(91, 157, 255, 0) 76%);
    filter: blur(10px);
    opacity: 0.85;
    animation: hero-aurora 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

.hero-blur-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 984px;
    height: 527px;
    opacity: 0.85;
    background: #0A0D12;
    filter: blur(82px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    background: hsl(var(--background) / 0.48);
    backdrop-filter: blur(8px);
    margin: 0 6px 10px;
}

.hero h1.ai-hero-title {
    font-family: var(--font-heading, 'Fraunces', serif);
    font-size: clamp(3rem, 12vw, 170px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 0;
    text-wrap: balance;
    font-variation-settings: "opsz" 144;
}

.hero h1.ai-hero-title .line {
    display: block;
}

.hero h1 .dim {
    color: hsl(var(--foreground));
}

.hero h1 .glow-word {
    color: transparent;
    background-image: linear-gradient(100deg, var(--accent-ice-soft), var(--accent-ice) 50%, var(--accent-steel));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
    color: hsl(var(--hero-sub));
    font-size: 1.125rem;
    line-height: 1.75rem;
    max-width: 32rem;
    margin: 9px auto 0;
    opacity: 0.86;
}

.hero-actions {
    margin-top: 16px;
    margin-bottom: 34px;
    justify-content: center;
}

.hero-actions .btn-primary,
#quick-tour-btn {
    display: none;
}

.hero-actions .btn-secondary {
    background: hsl(var(--foreground) / 0.12);
    border: none;
    border-radius: 999px;
    color: hsl(var(--foreground));
    padding: 24px 29px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 180ms ease, background-color 180ms ease;
}

.hero-actions .btn-secondary:hover {
    background: hsl(var(--foreground) / 0.22);
    transform: translateY(-2px);
}

.marquee {
    padding-bottom: 16px;
    border-top: 0;
    background: transparent;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

.marquee-shell {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 0 16px;
}

.marquee-title {
    color: hsl(var(--foreground) / 0.56);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.marquee-track-wrap {
    overflow: hidden;
    flex: 1;
}

.brand-marquee {
    width: max-content;
    gap: 64px;
    animation: brand-scroll 20s linear infinite;
}

.brand-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: hsl(var(--foreground));
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0.95;
}

.brand-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-icon.liquid-glass {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border: 0 !important;
    outline: 0 !important;
    padding: 0;
}

.brand-icon.liquid-glass::before {
    display: none;
}

.brand-icon.liquid-glass::after {
    display: none;
}

.brand-item .brand-icon {
    filter: saturate(1.08) drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

.brand-item span:last-child {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}

.brand-icon i {
    font-size: 0.9rem;
    line-height: 1;
}

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

@keyframes sky-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        filter: hue-rotate(0deg);
    }
    100% {
        transform: translate3d(0, -18px, 0) scale(1.04);
        filter: hue-rotate(12deg);
    }
}

@keyframes nebula-breathe {
    0%,
    100% {
        opacity: 0.68;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.03);
    }
}

@keyframes hero-aurora {
    0% {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
        opacity: 0.82;
    }
    100% {
        transform: translate3d(1.5%, 1%, 0) scale(1.05);
        opacity: 0.96;
    }
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.15) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15) 80%,
        rgba(255, 255, 255, 0.45) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.section.container,
.footer-cta.container {
    position: relative;
    z-index: 8;
    background: linear-gradient(180deg, hsla(219, 22%, 12%, 0.55), hsla(219, 22%, 9%, 0.5));
    border: 1px solid transparent;
    border-radius: 26px;
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(200, 208, 222, 0.05);
    margin-top: 14px;
    padding: 34px;
}

.section.container::before,
.footer-cta.container::before {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, hsl(var(--foreground) / 0.38), transparent);
}

.section-tag {
    color: hsl(var(--foreground) / 0.72);
    letter-spacing: 0.08em;
}

.section-title,
.big-text,
.project-title,
.tl-role {
    color: hsl(var(--foreground));
}

.section-title {
    letter-spacing: -0.02em;
}

.section-seo,
.project-desc,
.expertise-item-desc,
.tl-desc,
.contact-link {
    color: hsl(var(--foreground) / 0.8);
}

.glass-panel,
.featured-metrics-panel,
.client-mode-toolbar,
.tl-item,
.carousel-item,
.contact-form-container,
.contact-social-links {
    background: hsl(var(--background) / 0.52);
    border: 1px solid transparent;
    border-radius: 18px;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.glass-panel:hover,
.tl-item:hover,
.carousel-item:hover,
.contact-form-container:hover,
.contact-social-links:hover {
    transform: translateY(-2px);
    background: hsl(var(--background) / 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tl-item {
    border-left: 0;
}

.tl-item[data-type="personal"] {
    box-shadow: inset 3px 0 0 rgba(91, 157, 255, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tl-item[data-type="school"] {
    box-shadow: inset 3px 0 0 rgba(200, 208, 222, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.tl-item[data-type="internship"] {
    box-shadow: inset 3px 0 0 rgba(141, 186, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#experience {
    padding-top: 30px;
    padding-bottom: 26px;
}

#experience .section-title {
    margin-top: 8px;
    margin-bottom: 12px;
    font-size: clamp(1.34rem, 2.6vw, 2rem);
}

#experience .section-seo {
    max-width: 780px;
    margin-bottom: 20px;
}

#experience .timeline {
    position: relative;
    display: grid;
    gap: 10px;
}

/* Remove legacy timeline markers from base/components styles. */
#experience .timeline::before,
#experience .tl-item::before {
    display: none !important;
    content: none !important;
}

#experience .tl-item {
    border-radius: 16px;
    padding: 11px 14px;
    min-height: 96px;
}

#experience .tl-meta {
    margin-bottom: 5px;
    gap: 8px;
}

#experience .tl-date,
#experience .tl-company {
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

#experience .tl-role {
    font-size: clamp(0.95rem, 1.45vw, 1.2rem);
    line-height: 1.2;
}

#experience .tl-desc {
    margin-top: 5px;
    line-height: 1.52;
}

.btn,
.client-filter-btn,
.carousel-btn {
    border-radius: 999px;
}

.btn-primary,
.btn-secondary,
.client-filter-btn,
.carousel-btn {
    border: 1px solid transparent;
    background: hsl(var(--foreground) / 0.1);
    color: hsl(var(--foreground));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.form-group input,
.form-group textarea,
.search-header input,
#booking-form input,
#booking-form textarea,
#booking-form select {
    background: hsl(var(--background) / 0.62) !important;
    color: hsl(var(--foreground)) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

#contact-form .form-group {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    position: relative;
    margin-bottom: 18px;
}

#contact-form .form-group label {
    position: static;
    left: auto;
    top: auto;
    padding: 0;
    margin: 0;
    color: hsl(var(--foreground) / 0.7);
    line-height: 1.35;
}

#contact-form .form-group input,
#contact-form .form-group textarea {
    padding-top: 16px;
    padding-bottom: 16px;
}

#contact-form .form-group input:focus + label,
#contact-form .form-group textarea:focus + label,
#contact-form .form-group input:not(:placeholder-shown) + label,
#contact-form .form-group textarea:not(:placeholder-shown) + label {
    position: static;
    left: auto;
    top: auto;
    background: transparent;
    padding: 0;
    color: hsl(var(--foreground) / 0.86);
    font-size: 0.9rem;
    transform: none;
}

#contact-form .form-group.field-error::after {
    margin-top: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.search-header input:focus,
#booking-form input:focus,
#booking-form textarea:focus,
#booking-form select:focus {
    border-color: rgba(91, 157, 255, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(91, 157, 255, 0.22) !important;
}

.contact-link {
    border-radius: 12px;
    border: 1px solid transparent;
    background: hsl(var(--background) / 0.42);
    padding: 10px 12px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.discord-card {
    background: hsl(var(--background) / 0.56) !important;
    border: 1px solid transparent !important;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover,
.client-filter-btn:hover,
.carousel-btn:hover {
    background: hsl(var(--foreground) / 0.18);
}

@media (max-width: 1024px) {
    header .container {
        padding: 0 12px;
    }

    header nav {
        padding: 14px 14px;
        border-radius: 20px;
    }

    .nav-actions {
        display: none;
    }

    .marquee-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero h1.ai-hero-title {
        font-size: clamp(3.6rem, 15vw, 7.6rem);
    }

    .section.container,
    .footer-cta.container {
        padding: 24px;
        border-radius: 20px;
    }

    .section.container::before,
    .footer-cta.container::before {
        left: 16px;
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after {
        animation: none;
    }

    .hero::after {
        animation: none;
    }
}

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

    .hamburger-btn {
        display: inline-flex;
    }

    .hero-tag {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }

    .hero-actions .btn-secondary {
        width: min(100%, 320px);
    }

    .marquee {
        margin-top: 0;
        padding-bottom: 28px;
    }

    .section.container,
    .footer-cta.container {
        padding: 18px;
        margin-top: 20px;
    }

    .hero-monogram {
        font-size: clamp(200px, 55vw, 360px) !important;
    }
}

/* ── HERO MONOGRAM (P.) — parallax display element behind the title ── */
.hero-monogram {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 900;
    font-style: italic;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    font-size: clamp(280px, 42vw, 560px);
    line-height: 0.85;
    color: rgba(200, 208, 222, 0.045);
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    will-change: transform;
    text-shadow: 0 0 40px rgba(91, 157, 255, 0.06);
}

/* ── HERO STATUS CARET (typewriter-style) ── */
.hero-tag .hero-status-caret {
    display: inline-block;
    width: 0.55ch;
    margin-left: 0.25ch;
    color: var(--ice-blue);
    animation: caret-blink 1s steps(2, start) infinite;
    font-family: var(--font-mono);
    font-weight: 400;
    transform: translateY(-1px);
}

@keyframes caret-blink {
    to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-tag .hero-status-caret { animation: none; }
}
