/* ══════════════════════════════════════════
   Fonts
   ══════════════════════════════════════════ */

@font-face {
    font-family: 'Bold';
    src: url('../fonts/Bold.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Thin';
    src: url('../fonts/Thin.otf') format('opentype');
    font-style: normal;
}

@font-face {
    font-family: 'Heavitas';
    src: url('../fonts/Heavitas.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'Lux';
    src: url('../fonts/Lux.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* ══════════════════════════════════════════
   Variables
   ══════════════════════════════════════════ */

:root {
    --white: #fff;
    --text: #aaa;
    --black: #000;
    --color-on-light: #111;
    --font-body: 'Thin', sans-serif;
    --font-display: 'Lux', serif;
    --white-06: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.2);
    --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.3);
    --pad-section: clamp(40px, 10vh, 120px);
    --pad-edge: clamp(16px, 5%, 80px);
    --section-gradient: radial-gradient(circle at 50% 100%, #333 0%, #202020 30%, var(--black) 80%);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ══════════════════════════════════════════
   Reset & Base
   ══════════════════════════════════════════ */

html {
    overflow-x: hidden;
    cursor: none !important;
    scrollbar-width: thin;
    scrollbar-color: var(--white) var(--black);
}

body {
    background: var(--black);
    font-family: var(--font-body);
    margin: 0;
    color: var(--text);
    cursor: none !important;
    overflow-x: hidden;
}

a,
button,
input,
[onclick] {
    cursor: none !important;
}

/* ══════════════════════════════════════════
   Page Load Overlay
   ══════════════════════════════════════════ */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--black);
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    transition: opacity 0.6s var(--ease-out) 0.2s;
}

.page-loader.done {
    opacity: 0;
}

.page-loader-bar {
    height: 2px;
    background: var(--white);
    width: 0%;
    transition: width 0.7s var(--ease-out);
}

/* ══════════════════════════════════════════
   Noise Overlay
   ══════════════════════════════════════════ */

.noise {
    position: fixed;
    inset: -200%;
    width: 400%;
    height: 400%;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    animation: noise-anim 0.2s steps(1) infinite;
}

@keyframes noise-anim {
    0% {
        transform: translate(0, 0);
    }

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

    20% {
        transform: translate(-7%, 2%);
    }

    30% {
        transform: translate(4%, -6%);
    }

    40% {
        transform: translate(-5%, 7%);
    }

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

    60% {
        transform: translate(6%, 4%);
    }

    70% {
        transform: translate(-4%, -1%);
    }

    80% {
        transform: translate(3%, 6%);
    }

    90% {
        transform: translate(-6%, -5%);
    }

    100% {
        transform: translate(2%, 3%);
    }
}

/* ══════════════════════════════════════════
   Custom Cursor
   ══════════════════════════════════════════ */

.cursor {
    z-index: 9999;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    transform-origin: center;
    mix-blend-mode: exclusion;
}

.cursor--small {
    transform: scale(0.8);
}

/* ══════════════════════════════════════════
   CTA Cursor
   ══════════════════════════════════════════ */

.cta-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    color: var(--color-on-light);
    font-family: var(--font-body);
    font-size: clamp(12px, 1.4vw, 16px);
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 50px;
    opacity: 0;
    white-space: nowrap;
    will-change: transform, opacity;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}

.cta-cursor.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 30px;
}

/* ══════════════════════════════════════════
   Navbar
   ══════════════════════════════════════════ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(12px, 2.5vh, 28px) var(--pad-edge);
    z-index: 999;
    box-sizing: border-box;
    font-size: clamp(13px, 1.4vw, 16px);
    color: var(--white);
    mix-blend-mode: difference;
    pointer-events: auto;
}

.brand {
    display: flex;
    align-items: center;
}

.brand img {
    width: clamp(40px, 8vh, 72px);
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.status-badge {
    display: flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: clamp(10px, 1vw, 13px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border: 1px solid var(--border-strong);
    padding: 5px 14px;
    border-radius: 50px;
    white-space: nowrap;
    pointer-events: none;
}

.links-container {
    display: flex;
    gap: clamp(8px, 1.5vw, 20px);
    align-items: center;
}

.link {
    text-decoration: none;
    color: inherit;
    padding: clamp(4px, 0.5vh, 8px) clamp(6px, 0.8vw, 12px);
    transition: background 0.3s, transform 0.3s var(--ease-out);
    will-change: transform;
    letter-spacing: 0.5px;
}

.link:hover,
.link.active {
    background-color: var(--white-06);
}

.link--cta {
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    padding: clamp(4px, 0.5vh, 8px) clamp(10px, 1.2vw, 18px);
    letter-spacing: 1px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}

.link--cta:hover {
    background: var(--white);
    color: var(--color-on-light);
}

.icon-arrow {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    background-color: currentColor;
    mask: url('../images/core/arrow-cta.svg') no-repeat center / contain;
    -webkit-mask: url('../images/core/arrow-cta.svg') no-repeat center / contain;
    vertical-align: middle;
    margin-left: 0.5em;
    transition: transform 0.3s var(--ease-out);
}

.link:hover .icon-arrow,
.prose-link:hover .icon-arrow {
    transform: translate(2px, -2px);
}

.cta-cursor .icon-arrow {
    margin-left: 0;
}

.link:focus-visible,
.link--cta:focus-visible,
.mobile-menu-link:focus-visible,
.featured-project:focus-visible,
.scatter-item:focus-visible,
.footer-links li a:focus-visible,
.hamburger:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: clamp(18px, 5vw, 22px);
    padding: clamp(4px, 0.5vh, 8px);
    line-height: 1;
}

/* ══════════════════════════════════════════
   Mobile Menu Overlay
   ══════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--section-gradient);
    pointer-events: none;
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: opacity 0.6s var(--ease-out),
        backdrop-filter 0.6s var(--ease-out),
        -webkit-backdrop-filter 0.6s var(--ease-out);
}

.mobile-menu.open {
    pointer-events: auto;
    opacity: 1;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(12px, 4vh, 32px);
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(36px, 10vw, 80px);
    color: var(--white);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out), color 0.2s;
}

.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) {
    transition-delay: 0.15s;
}

.mobile-menu.open .mobile-menu-link:nth-child(2) {
    transition-delay: 0.22s;
}

.mobile-menu.open .mobile-menu-link:nth-child(3) {
    transition-delay: 0.29s;
}

.mobile-menu.open .mobile-menu-link:nth-child(4) {
    transition-delay: 0.36s;
}

.mobile-menu-link:hover {
    color: var(--text);
}

.mobile-menu-footer {
    position: absolute;
    bottom: clamp(24px, 5vh, 48px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--pad-edge);
    font-family: var(--font-body);
    font-size: clamp(11px, 2vw, 14px);
    color: var(--text);
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
}

.mobile-menu.open .mobile-menu-footer {
    opacity: 1;
}

/* ══════════════════════════════════════════
   Sections (shared)
   ══════════════════════════════════════════ */

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   Section Title (shared)
   ══════════════════════════════════════════ */

.title {
    text-align: center;
    margin: var(--pad-section) 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: clamp(10px, 1.2vw, 14px);
    font-family: var(--font-body);
    font-weight: normal;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 var(--pad-edge);
    box-sizing: border-box;
}

.title::before,
.title::after {
    content: '';
    flex: 1;
    height: .8px;
    background: var(--text);
    margin: 0 clamp(12px, 2.5vw, 28px);
    transform: scaleX(0);
    transition: transform 1.5s var(--ease-out);
}

.title::before {
    transform-origin: right;
}

.title::after {
    transform-origin: left;
}

.title.visible::before,
.title.visible::after {
    transform: scaleX(1);
}

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */

#header {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    --hero-progress: 0;
}

#header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: calc(var(--hero-progress));
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.08s linear;
}

#hero-video,
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: grayscale(1) blur(calc(var(--hero-progress) * 26px)) brightness(calc(1 - (var(--hero-progress) * 0.55)));
    transition: filter 0.1s linear;
}

#hero-video {
    object-fit: cover;
    z-index: 0;
    background: #000;
}

#hero-canvas {
    z-index: 1;
}

.header-content {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(20px, 5vh, 60px);
    pointer-events: auto;
    z-index: 2;
    mix-blend-mode: difference;
}

#site-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 18vw, 250px);
    margin: 0 0 clamp(8px, 1.5vh, 20px);
    color: var(--white);
    pointer-events: none;
    font-style: italic;
    display: inline-block;
    line-height: 1;
}

.site-title-letter {
    display: inline-block;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
    will-change: transform, opacity;
}

.site-title-letter.visible {
    transform: translateY(0);
    opacity: 1;
}

.header-subtitles {
    display: flex;
    gap: clamp(6px, 1vw, 14px);
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--font-body);
    font-size: clamp(14px, 2.5vw, 28px);
    color: var(--white);
    letter-spacing: 2px;
}

/* Hero scroll hint */

.hero-scroll-hint {
    position: absolute;
    right: clamp(20px, 4vw, 60px);
    bottom: clamp(24px, 5vh, 60px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    animation: fade-in-slow 1s ease forwards 1.2s;
}

.hero-scroll-label {
    font-family: var(--font-body);
    font-size: clamp(9px, 0.9vw, 12px);
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.hero-scroll-line {
    width: 1px;
    height: clamp(40px, 6vh, 80px);
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

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

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

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

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

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

/* ══════════════════════════════════════════
   Shared section backgrounds & containers
   ══════════════════════════════════════════ */

#about-me,
#about-hero,
#web-projects,
#featured-projects,
#my-story,
#experience,
#education,
#skills,
#about-cta {
    z-index: 2;
    background: var(--section-gradient) center bottom / cover no-repeat fixed;
}


#about-me>.story-container,
#featured-projects>.featured-scatter,
#my-story>.story-container,
#experience>.story-container,
#education>.story-container,
#skills>.story-container {
    width: min(1200px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
}


#web-projects>.featured-list {
    width: min(840px, 100%);
    margin: 0 auto;
    padding: 0 var(--pad-edge);
    box-sizing: border-box;
}

/* ══════════════════════════════════════════
   About Me
   ══════════════════════════════════════════ */

#about-me {
    padding: clamp(48px, 10vh, 120px) 0 clamp(48px, 8vh, 100px);
    overflow: hidden;
}

#about-me .story-portrait {
    position: relative;
    top: auto;
}

/* ══════════════════════════════════════════
   Web Projects (list)
   ══════════════════════════════════════════ */

#web-projects {
    padding: var(--pad-section) 0;
}

.featured-list {
    display: flex;
    flex-direction: column;
}

.projects-empty {
    font-size: clamp(14px, 2vw, 20px);
    color: var(--text);
    text-align: center;
    padding: clamp(16px, 4vh, 40px) clamp(8px, 2vh, 20px);
}

.featured-project {
    font-size: clamp(16px, 2.4vw, 26px);
    font-family: var(--font-body);
    color: var(--white);
    background: none;
    padding: clamp(14px, 2.8vw, 34px) clamp(16px, 3.5vw, 40px);
    margin: 0;
    transition: background 0.25s ease, color 0.25s ease;
    text-decoration: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--border-strong);
    gap: clamp(8px, 2vw, 24px);
}

.featured-project:first-child {
    border-top: 1px solid var(--border-strong);
}

.featured-project:hover {
    background: var(--white);
    color: var(--color-on-light);
}

.featured-project:hover .featured-meta {
    color: rgba(0, 0, 0, 0.45);
}

.featured-project:hover .featured-author,
.featured-project:hover .featured-arrow {
    color: var(--text);
}

.featured-project--disabled {
    opacity: 0.4;
    pointer-events: none;
    border-bottom-color: var(--white-06);
}

.featured-project-title {
    flex: 1;
    min-width: 0;
}

.featured-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.featured-slot {
    position: relative;
    display: flex;
    align-items: center;
}

.featured-author {
    color: var(--text);
    font-style: italic;
    font-size: clamp(11px, 1.1vw, 14px);
    transition: color 0.25s ease, transform 0.35s var(--ease-out);
    white-space: nowrap;
}

.featured-project:hover .featured-author {
    transform: translateX(-20px);
}

.featured-arrow {
    position: absolute;
    right: 0;
    display: inline-flex;
    align-items: center;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}

.featured-project:hover .featured-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Project preview (cursor-follow tooltip) */

.project-preview-container {
    position: fixed;
    z-index: 9998;
    pointer-events: none;
    display: none;
    flex-direction: row;
    align-items: stretch;
    top: 0;
    left: 0;
    will-change: left, top;
    background: var(--white);
    border: 1px solid var(--white);
    box-shadow: var(--shadow-float);
}

.project-preview-img {
    width: auto;
    height: clamp(120px, 20vh, 220px);
    object-fit: cover;
    display: block;
    background: #222;
}

.project-preview-desc {
    color: #000;
    padding: clamp(12px, 2.5vh, 28px);
    font-family: var(--font-body);
    font-size: clamp(12px, 1.6vw, 18px);
    max-width: 300px;
    display: flex;
    align-items: center;
    line-height: 1.4;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   Featured Projects (scattered layout)
   ══════════════════════════════════════════ */

#featured-projects {
    padding: clamp(48px, 8vh, 96px) 0 clamp(120px, 18vh, 220px);
    overflow-x: clip;
}

.featured-scatter {
    position: relative;
    margin-top: clamp(44px, 8vh, 120px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    --featured-gap: 5px;
    gap: var(--featured-gap);
    padding: 0 var(--pad-edge);
    box-sizing: border-box;
}

.scatter-column {
    display: flex;
    flex-direction: column;
    gap: var(--featured-gap);
    will-change: transform;
    --parallax-speed: 100;
}

.scatter-column:nth-child(even) {
    --parallax-speed: 90;
}

.scatter-item {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    contain: content;
    background: #111;
    transition: filter 0.25s ease;
}

.scatter-item:hover {
    filter: brightness(0.5);
}

.scatter-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    image-rendering: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scatter-item img.loaded {
    opacity: 1;
}

/* ══════════════════════════════════════════
   My Story
   ══════════════════════════════════════════ */

#my-story {
    padding: var(--pad-section) 0;
}

.story-container {
    padding: 0 var(--pad-edge);
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 8vw, 140px);
}

.story-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(16px, 4vw, 64px);
}

.story-row.reverse {
    flex-direction: row-reverse;
}

.story-text {
    width: 55%;
    min-width: 0;
    z-index: 2;
    font-family: var(--font-body);
    color: var(--text);
    position: relative;
}

.story-text h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-style: italic;
    font-synthesis: weight style;
    font-size: clamp(24px, 3vw, 48px);
    color: var(--white);
    margin-top: 0;
    margin-bottom: clamp(8px, 2vh, 20px);
    text-wrap: balance;
}

.story-text p,
.story-text .story-paragraph {
    font-size: clamp(15px, 1.8vw, 26px);
    color: var(--text);
    text-wrap: balance;
    line-height: 1.6;
}

.story-container>.story-row:nth-child(odd) .story-text {
    text-align: right;
}

.story-image {
    width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */

#footer {
    min-height: 100dvh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid var(--border-strong);
    padding: clamp(40px, 15vh, 200px) clamp(20px, 10vw, 200px) clamp(24px, 5vh, 48px);
    box-sizing: border-box;
    overflow: hidden;
}

.footer-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(1);
}

.footer-title-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    background: #111;
    mix-blend-mode: multiply;
}

.big-name {
    font-family: var(--font-display);
    font-size: clamp(80px, 45vw, 50vh);
    color: var(--white);
    margin: 0;
    white-space: nowrap;
    text-align: center;
    transform: translateY(35%);
    font-weight: bold;
}

.footer-top-links {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 40px);
}

.footer-col h3 {
    font-family: var(--font-body);
    font-size: clamp(9px, 0.9vw, 11px);
    color: var(--text);
    margin: 0 0 clamp(10px, 2vw, 20px);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: clamp(6px, 1vw, 10px);
}

.footer-links li a {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.3vw, 18px);
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links li a:hover {
    opacity: 0.6;
}

.social-labeled-links i {
    width: 20px;
    text-align: center;
}

/* ══════════════════════════════════════════
   Smooth Scroll (Lenis)
   ══════════════════════════════════════════ */

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ══════════════════════════════════════════
   About Page
   ══════════════════════════════════════════ */

.about-main {
    padding-top: 0;
}

/* --- Hero / Intro --- */

#about-hero {
    padding: clamp(20px, 5vh, 56px) 0 clamp(40px, 8vh, 100px);
}



.about-hero-lede {
    font-family: var(--font-body);
    font-size: clamp(17px, 2vw, 24px);
    line-height: 1.55;
    color: var(--text);
    max-width: 60ch;
    margin: 0;
}

/* --- Story: prose + portrait --- */

#my-story {
    padding: var(--pad-section) 0;
}

.story-container--catch {
    padding: clamp(100px, 15vh, 200px) var(--pad-edge);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80vh;
}

.story-prose--catch {
    flex: 1;
    text-align: right;
    z-index: 10;
    margin-right: -12vw;
    mix-blend-mode: difference;
    pointer-events: none;
}

.story-prose--catch .scrubbing-text {
    pointer-events: auto;
}

/* About Hero Overrides (Centered) */
#about-hero .story-container--catch {
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

#about-hero .story-prose--catch {
    text-align: center;
    margin-right: 0;
    max-width: 800px;
}

#about-hero .about-title {
    text-align: center;
}

#about-hero .about-hero-lede {
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(38px, 6vw, 92px) !important;
    line-height: 1.05 !important;
    color: var(--white);
    margin-bottom: clamp(24px, 4vh, 40px) !important;
    text-wrap: balance;
    font-weight: normal;
}

.about-title strong {
    font-family: inherit;
    font-style: inherit;
    font-weight: bold;
}

.story-portrait--catch {
    flex: 0 0 45%;
    max-width: 600px;
    margin-left: -12vw;
    z-index: 5;
}

.story-prose {
    font-family: var(--font-body);
    color: var(--text);
    max-width: 62ch;
}

.story-prose p {
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.7;
    margin: 0 0 clamp(18px, 2.5vh, 28px);
    text-wrap: pretty;
}

.story-prose p:last-child {
    margin-bottom: 0;
}

.story-prose em {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--white);
}

.story-prose--catch .prose-link {
    pointer-events: auto;
    font-size: clamp(16px, 1.5vw, 20px);
    margin-top: clamp(20px, 3vh, 40px);
    display: inline-block;
    color: var(--white);
    opacity: 0.8;
}

.prose-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.25s ease;
}

.prose-link:hover {
    color: var(--text);
}

.story-portrait {
    margin: 0;
    position: sticky;
    top: 15vh;
    will-change: transform;
}

.story-portrait img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1) contrast(1.05);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* --- Experience / Education blocks --- */

.exp-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(48px, 9vh, 120px);
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}

.exp-block {
    display: grid;
    grid-template-columns: clamp(90px, 14vw, 150px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: start;
    padding-bottom: clamp(32px, 5vh, 56px);
    border-bottom: 1px solid var(--white-06);
}

.exp-stack .exp-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-head {
    display: contents;
}

.exp-year {
    grid-column: 1;
    grid-row: 1 / span 3;
    font-family: var(--font-body);
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 2px;
    color: var(--text);
    opacity: 0.6;
    padding-top: clamp(8px, 1.2vh, 14px);
    white-space: nowrap;
}

.exp-title {
    grid-column: 2;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--white);
    margin: 0 0 clamp(12px, 2vh, 24px);
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.5vh, 16px);
}

.company-logo {
    height: 150px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    mix-blend-mode: screen;
    filter: brightness(1.1) contrast(1.1);
    border-radius: 15px;
    will-change: transform;
}

.exp-company-name {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.8vw, 36px);
    font-style: italic;
    color: var(--white);
}

.exp-location {
    font-family: var(--font-body);
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.6;
    font-style: normal;
}

.exp-role {
    grid-column: 2;
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 15px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    opacity: 0.55;
    margin: 0 0 clamp(14px, 2.5vh, 24px);
}

.exp-lede {
    grid-column: 2;
    font-family: var(--font-body);
    font-size: clamp(15px, 1.45vw, 19px);
    line-height: 1.65;
    color: var(--text);
    margin: 0;
    max-width: 58ch;
    text-wrap: pretty;
}

/* Bulleted variant (Red Planet) */
.exp-list {
    grid-column: 2;
    list-style: none;
    margin: clamp(14px, 2vh, 20px) 0 0;
    padding: 0;
    max-width: 58ch;
}

.exp-list li {
    position: relative;
    padding-left: clamp(20px, 2vw, 28px);
    margin-bottom: clamp(8px, 1.2vh, 12px);
    font-size: clamp(14px, 1.35vw, 17px);
    line-height: 1.6;
    color: var(--text);
}

.exp-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--white);
    opacity: 0.4;
}

/* Facts grid (Rayon feature block) */
.exp-block--feature .exp-lede {
    font-size: clamp(17px, 1.7vw, 22px);
    color: var(--white);
    opacity: 0.85;
}

.exp-facts {
    grid-column: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin: clamp(20px, 3vh, 32px) 0 0;
}

.exp-facts>div {
    border-top: 1px solid var(--border-strong);
    padding-top: clamp(10px, 1.5vh, 14px);
}

.exp-facts dt {
    font-family: var(--font-body);
    font-size: clamp(9px, 0.9vw, 11px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.55;
    margin-bottom: 6px;
}

.exp-facts dd {
    font-family: var(--font-body);
    font-size: clamp(13px, 1.2vw, 15px);
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

/* --- Skills: ranked bands --- */

#skills {
    padding: var(--pad-section) 0;
}

.skills-v2 {
    display: flex;
    flex-direction: column;
    gap: clamp(28px, 4vh, 48px);
    max-width: 820px;
    margin: 0 auto;
}

.skill-band {
    display: grid;
    grid-template-columns: clamp(90px, 14vw, 150px) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: baseline;
    padding-bottom: clamp(24px, 3.5vh, 36px);
    border-bottom: 1px solid var(--white-06);
}

.skills-v2 .skill-band:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.skill-band-title {
    font-family: var(--font-body);
    font-size: clamp(10px, 1vw, 12px);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.6;
    margin: 0;
}

.skill-line {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 14px) clamp(14px, 2vw, 24px);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.5vw, 20px);
    color: var(--white);
}

.skill-line li {
    position: relative;
}

.skill-line li+li::before {
    content: '·';
    position: absolute;
    left: calc(-1 * clamp(7px, 1vw, 12px));
    color: var(--text);
    opacity: 0.4;
}

.skill-line--langs {
    flex-direction: column;
    gap: clamp(6px, 1vh, 10px);
}

.skill-line--langs li+li::before {
    content: none;
}

.skill-line--langs li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    max-width: 320px;
}

.skill-level {
    font-family: var(--font-body);
    font-size: clamp(11px, 1vw, 13px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0.6;
}

.skills-aside {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.35vw, 17px);
    color: var(--text);
    font-style: italic;
    line-height: 1.65;
    margin: clamp(8px, 2vh, 20px) 0 0;
    padding-left: clamp(110px, calc(14vw + 4vw), 206px);
    max-width: 60ch;
    opacity: 0.8;
}

/* --- About CTA --- */

#about-cta {
    padding: clamp(80px, 14vh, 180px) 0 clamp(80px, 14vh, 180px);
    text-align: center;
}

.about-cta-inner {
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 0 var(--pad-edge);
    box-sizing: border-box;
}

.about-cta-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(40px, 8vw, 120px);
    line-height: 0.98;
    color: var(--white);
    margin: 0 0 clamp(24px, 5vh, 56px);
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.about-cta-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    flex-wrap: wrap;
}

.about-cta-link {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.4vw, 18px);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: clamp(10px, 1.5vh, 14px) clamp(20px, 2.5vw, 28px);
    border: 1px solid var(--border-strong);
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}

.about-cta-link--primary {
    background: var(--white);
    color: var(--color-on-light);
    border-color: var(--white);
}

.about-cta-link:hover {
    background: var(--white);
    color: var(--color-on-light);
}

.about-cta-link--primary:hover {
    background: transparent;
    color: var(--white