/* ==========================================================================
   IRSYAAD. Portfolio — style.css
   "No filler. Every pixel has a purpose."
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    --bg: #F9F9F6;
    --bg-card-hover: #EEEDE8;
    --bg-detail: #F2F1ED;
    --text: #0A0A0A;
    --text-muted: rgba(10, 10, 10, 0.38);
    --text-subtle: rgba(10, 10, 10, 0.55);
    --border: rgba(10, 10, 10, 0.07);
    --border-strong: rgba(10, 10, 10, 0.13);
    --tag-bg: rgba(10, 10, 10, 0.05);
    --tag-border: rgba(10, 10, 10, 0.11);

    --sidebar-w: 5vw;
    --content-w: 45vw;
    --right-col-w: 50vw;

    --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);

    --dur-fast: 0.2s;
    --dur-mid: 0.45s;
    --dur-slow: 0.65s;
    --dur-panel: 0.6s;
}

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg);
    /* prevents any dark bleed at viewport edges */
    /* Moved from body to prevent sticky container bugs */
}

body {
    width: 100%;
    background-color: var(--bg);
    /* menu reveal black is handled by .fullscreen-menu */
    color: var(--text);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

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

ol,
ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* Hide scrollbars but allow scrolling */
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   2. CURTAIN REVEAL LAYOUT
   -------------------------------------------------------------------------- */

/* HERO is sticky at the top, behind everything else */
.section--hero {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SPLIT LAYOUT slides OVER the hero naturally via DOM order + z-index */
.split-layout {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    background-color: var(--bg);
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.08);
}


/* --------------------------------------------------------------------------
   3. SCROLLER — Far-left fixed nav
   -------------------------------------------------------------------------- */
.scroller {
    width: var(--sidebar-w);
    min-width: 56px;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    background-color: var(--bg);
    z-index: 200;
}

.scroller__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex: 1;
}

.scroller__link {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text);
    opacity: 0.28;
    transition: opacity var(--dur-mid) var(--ease-expo), transform var(--dur-mid) var(--ease-expo);
    display: block;
}

.scroller__link:hover {
    opacity: 0.65;
}

.scroller__link.is-active {
    opacity: 1;
    font-weight: 900;
}

.scroller__label {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 2rem;
    user-select: none;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. CONTENT AREA — Middle scrollable column
   -------------------------------------------------------------------------- */
.content {
    flex: 1;
    /* fill all space left after the scroller */
    min-width: 0;
    /* allow flex item to shrink below its content size */
    background-color: var(--bg);
    position: relative;
    z-index: 10;
    /* No fixed height, let it dictate the height of split-layout */
}

/* --------------------------------------------------------------------------
   5. SECTIONS
   -------------------------------------------------------------------------- */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section__inner {
    padding: 10vh 5vw 10vh 4vw;
}

.section__kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.section__title {
    font-size: clamp(2.8rem, 3.8vw, 5.2rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    margin-bottom: 4rem;
}

.section__header {
    margin-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    animation: fadeUp 0.8s var(--ease-expo) both 0.1s;
}

.hero__headline {
    font-size: clamp(4.5rem, 8vw, 9.5rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.05em;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.9s var(--ease-expo) both 0.25s;
}

.hero__line {
    display: block;
}

.hero__sub {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-subtle);
    margin-bottom: 4rem;
    max-width: 40ch;
    animation: fadeUp 0.9s var(--ease-expo) both 0.4s;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--text);
    padding-bottom: 0.3rem;
    transition: gap var(--dur-mid) var(--ease-expo), opacity var(--dur-fast) var(--ease-inout);
    animation: fadeUp 0.9s var(--ease-expo) both 0.55s;
}

.hero__cta:hover {
    gap: 1.4rem;
    opacity: 0.55;
}

/* Hero actions row */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeUp 0.9s var(--ease-expo) both 0.55s;
}

/* About button — ghost style */
.hero__about-btn {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1.5px solid var(--text);
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background var(--dur-mid) var(--ease-expo),
        color var(--dur-mid) var(--ease-expo),
        transform var(--dur-fast) var(--ease-expo);
}

.hero__about-btn:hover {
    background: var(--text);
    color: var(--bg);
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    animation: fadeUp 0.9s var(--ease-expo) both 0.7s;
}

.hero__scroll-text {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--border-strong);
    overflow: hidden;
    position: relative;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text);
    animation: scrollLine 2s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

/* -----------------------------------------------------------------------
   HERO ANIMATED TEXT
   ----------------------------------------------------------------------- */
.hero__animated-wrapper {
    display: inline-block;
    position: relative;
}

.hero__animated-spacer {
    visibility: hidden;
    pointer-events: none;
}

.hero__animated-text {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    will-change: transform, opacity;
}

.text-out {
    animation: textOut 0.4s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

.text-in {
    animation: textIn 0.4s cubic-bezier(0.7, 0, 0.2, 1) forwards;
}

@keyframes textOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

@keyframes textIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* The dot in IRSYAAD. — just fades out as circle expands from its position */
.hero__dot {
    display: inline-block;
    transition: opacity 0.2s ease 0.1s;
}

body.about-open .hero__dot {
    opacity: 0;
}

/* -----------------------------------------------------------------------
   ABOUT CIRCLE OVERLAY
   Starts as a tiny circle, expands to 85vmin centered on screen
   ----------------------------------------------------------------------- */
.about-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    /* 92vw diameter: wider than viewport height on landscape → pierces top & bottom */
    width: 92vw;
    height: 92vw;
    border-radius: 50%;
    background: #0A0A0A;
    color: #F9F9F6;
    z-index: 900;
    overflow: hidden;
    /* Start collapsed at dot's position (transform-origin set by JS) */
    scale: 0;
    opacity: 0;
    pointer-events: none;
    /* Longer, more balanced easing so small/medium/large stages are all visible */
    transition:
        scale 1.1s cubic-bezier(0.4, 0, 0.15, 1),
        opacity 0.25s ease;
}

body.about-open .about-circle {
    scale: 1;
    opacity: 1;
    pointer-events: auto;
}

/* Close button — right side but inset enough to sit on the black circle.
   The circle (92vw) narrows toward the top: at top:2.5rem its right edge is
   only ~85vw from the left, so right:4vw falls outside. right:15vw is safely
   inside the circle across all common viewport aspect ratios. */
.about-circle__close {
    position: fixed;
    top: 2.5rem;
    right: 15vw;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(249, 249, 246, 0.18);
    background: rgba(249, 249, 246, 0.06);
    color: rgba(249, 249, 246, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 1000;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s, background var(--dur-fast), color var(--dur-fast);
}

body.about-open .about-circle__close {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.6s, visibility 0s;
}

.about-circle__close svg {
    width: 12px;
    height: 12px;
    transition: transform var(--dur-fast) var(--ease-expo);
}

.about-circle__close:hover {
    background: rgba(249, 249, 246, 0.14);
    color: #F9F9F6;
}

.about-circle__close:hover svg {
    transform: rotate(90deg);
}

/* Inner content — row layout: photo left (big), text right */
.about-circle__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8vmin;
    padding: 5% 10%;
    overflow: hidden;
}

/* LEFT: big photo */
.about-circle__photo-wrap {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.about-circle__photo-placeholder {
    width: clamp(250px, 35vmin, 450px);
    height: clamp(320px, 45vmin, 600px);
    border-radius: 200px;
    background: rgba(249, 249, 246, 0.06);
    border: 1px solid rgba(249, 249, 246, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vmin, 4rem);
    font-weight: 700;
    color: rgba(249, 249, 246, 0.3);
}

.about-circle__photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.about-circle__availability {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(249, 249, 246, 0.45);
}

.about-circle__availability::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* RIGHT: text column */
.about-circle__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.about-circle__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(249, 249, 246, 0.4);
}

.about-circle__name {
    font-size: clamp(3rem, 7vmin, 6.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: #F9F9F6;
}

.about-circle__title {
    font-size: clamp(1rem, 2vmin, 1.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(249, 249, 246, 0.6);
}

.about-circle__divider {
    width: 50px;
    height: 2px;
    background: rgba(249, 249, 246, 0.2);
}

.about-circle__bio {
    font-size: clamp(0.9rem, 1.6vmin, 1.15rem);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(249, 249, 246, 0.7);
    max-width: 42ch;
}

.about-circle__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.about-circle__skill {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(249, 249, 246, 0.2);
    border-radius: 100px;
    color: rgba(249, 249, 246, 0.6);
}

/* Content fade-in after circle opens */
body.about-open .about-circle__content {
    animation: fadeUp 0.5s var(--ease-expo) both 0.35s;
}


/* --------------------------------------------------------------------------
   7. PORTFOLIO CARDS
   -------------------------------------------------------------------------- */
.work-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border-strong);
}

.card {
    border-bottom: 1px solid var(--border-strong);
}

/* Column separator — right border on every left-column card */
.card:nth-child(odd) {
    border-right: 1px solid var(--border-strong);
    padding-right: 2.5rem;
}

.card:nth-child(even) {
    padding-left: 2.5rem;
}

.card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    padding: 2.5rem 0;
    background-color: transparent;
    transition:
        background-color var(--dur-mid) var(--ease-expo),
        padding-left var(--dur-mid) var(--ease-expo),
        padding-right var(--dur-mid) var(--ease-expo);
    position: relative;
}

.card__link:hover {
    background-color: var(--bg-card-hover);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.card__index {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.card__year {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.card__title {
    font-size: clamp(1.55rem, 2.6vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    transition: transform var(--dur-mid) var(--ease-expo);
}

.card__link:hover .card__title {
    transform: translateX(8px);
}

.card__desc {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-subtle);
    max-width: 50ch;
    transition: transform var(--dur-mid) var(--ease-expo);
}

.card__link:hover .card__desc {
    transform: translateX(8px);
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.4rem;
    transition: transform var(--dur-mid) var(--ease-expo);
}

.card__link:hover .card__tags {
    transform: translateX(8px);
}

.card__tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--tag-border);
    border-radius: 100px;
    background-color: var(--tag-bg);
    color: var(--text-subtle);
    transition: border-color var(--dur-fast) var(--ease-inout), color var(--dur-fast) var(--ease-inout);
}

.card__link:hover .card__tag {
    border-color: var(--border-strong);
    color: var(--text);
}

.card__arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.6rem;
    transition:
        gap var(--dur-mid) var(--ease-expo),
        color var(--dur-mid) var(--ease-expo),
        transform var(--dur-mid) var(--ease-expo);
}

.card__link:hover .card__arrow {
    gap: 1rem;
    color: var(--text);
    transform: translateX(8px);
}

/* --------------------------------------------------------------------------
   8. CONTACT (APPLE STYLE FULL WIDTH)
   -------------------------------------------------------------------------- */

/*
  The curtain trick for section 2→3:
  - .contact-curtain-wrap sits in normal document flow AFTER split-layout
  - split-layout has position:relative z-index:2 with solid background
  - As split-layout scrolls past, it naturally covers the contact below
  - When split-layout fully exits the viewport top, contact is fully revealed
  The effect: split-layout appears to "slide away" uncovering contact below.
*/
.contact-curtain-wrap {
    position: relative;
    z-index: 1;
    /* Behind split-layout (z-index:2) */
    margin-top: -100vh;
    /* Pull contact UP so it starts behind split-layout */
    height: calc(100vh + 100vh);
    /* Extra height gives scroll room for the reveal */
}

.section--contact-full {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5vw;
}

/* Footer absolutely pinned to bottom — zero effect on centering of main content */
.contact-full__footer {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

/* Wave animation on "something" letters */
.contact-full__wave {
    display: inline-block;
}

.contact-full__wave span {
    display: inline-block;
    animation: letterWave 2.4s var(--ease-expo) infinite;
    animation-delay: calc(var(--i) * 0.08s);
}

@keyframes letterWave {

    0%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-12px);
    }

    60% {
        transform: translateY(4px);
    }
}

.contact-full__inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5rem;
}

.contact-full__title {
    font-size: clamp(3rem, 11vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.9;
    color: var(--text);
}

.contact-full__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.contact-full__link {
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--text);
    border-bottom: 2px solid transparent;
    transition: opacity var(--dur-mid) var(--ease-expo), border-color var(--dur-mid);
}

.contact-full__link:hover {
    opacity: 0.5;
    border-color: var(--text);
}

.contact-full__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.contact-full__social {
    font-size: clamp(0.9rem, 1.2vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-subtle);
    transition: color var(--dur-mid) var(--ease-expo);
}

.contact-full__social:hover {
    color: var(--text);
}

.section--contact-full .site-footer {
    margin-top: 8rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. RIGHT COLUMN WRAPPER — sticky typographic panel
   -------------------------------------------------------------------------- */
.right-col {
    display: none;
    /* hidden on desktop — content takes full remaining width */
}

.visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    transition: opacity var(--dur-panel) var(--ease-expo),
        transform var(--dur-panel) var(--ease-expo);
    will-change: transform, opacity;
}

/* When detail panel is open (class added to body) */
body.detail-open .visual {
    opacity: 0.3;
    transform: translateX(-40px);
}

.visual__decor {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
}

/* Thin vertical rule lines for editorial texture */
.visual__grid-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 0;
}

.visual__grid-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background-color: var(--border);
}

/* Oversized rotated brand name — watermark effect */
.visual__text-block {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.visual__big-text {
    font-size: clamp(4rem, 7vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
    color: var(--text);
    opacity: 0.045;
    user-select: none;
    white-space: nowrap;
}

.visual__tagline {
    font-size: clamp(2.5rem, 4.5vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: var(--text);
    position: relative;
    z-index: 1;
}

/* Bottom meta row */
.visual__meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.visual__meta span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. DETAIL PANEL & IMAGES OVERLAY
   -------------------------------------------------------------------------- */
.detail-images-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--right-col-w);
    /* Left side is 50vw */
    height: 100vh;
    z-index: 500;
    overflow-y: auto;
    padding: 7rem 5vw 5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-panel) var(--ease-expo),
        visibility 0s var(--dur-panel);
}

.detail-images-overlay[hidden] {
    display: block !important;
    visibility: hidden;
}

body.detail-open .detail-images-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--dur-panel) var(--ease-expo),
        visibility 0s 0s;
}

.detail-images-overlay__inner {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
}

.detail__image-left {
    width: 100%;
    border-radius: 12px;
    background-color: var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    object-fit: cover;
}

.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--right-col-w);
    height: 100vh;
    background-color: var(--bg-detail);
    transform: translateX(100%);
    transition: transform var(--dur-panel) var(--ease-expo),
        visibility 0s var(--dur-panel);
    overflow-y: auto;
    visibility: hidden;
    will-change: transform;
    z-index: 500;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.05);
}

/* hidden attr override */
.detail-panel[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

body.detail-open .detail-panel {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--dur-panel) var(--ease-expo),
        visibility 0s 0s;
    pointer-events: auto;
}

/* Blur background elements when detail panel is open */
.section--hero,
.split-layout,
.contact-curtain-wrap {
    transition: filter var(--dur-panel) var(--ease-expo);
}

body.detail-open .section--hero,
body.detail-open .split-layout,
body.detail-open .contact-curtain-wrap {
    filter: blur(10px);
    pointer-events: none;
}

/* Close button */
.detail-panel__close {
    position: sticky;
    top: 2rem;
    float: right;
    margin: 2rem 2rem 0 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background-color: transparent;
    color: var(--text);
    transition: background-color var(--dur-fast) var(--ease-inout),
        transform var(--dur-fast) var(--ease-inout);
    z-index: 10;
}

.detail-panel__close:hover {
    background-color: var(--border);
    transform: rotate(90deg);
}

.detail-panel__inner {
    padding: 7rem 2.5rem 5rem;
    clear: both;
}

/* Detail typography */
.detail__kicker {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.detail__title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2.5rem;
}

.detail__divider {
    width: 100%;
    height: 1px;
    background-color: var(--border-strong);
    margin-bottom: 2.5rem;
}

.detail__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.detail__meta-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.detail__meta-value {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.5;
}

.detail__section-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.detail__description {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-subtle);
    margin-bottom: 2.5rem;
    max-width: 55ch;
}

.detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 3rem;
}

.detail__tag {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.32rem 0.75rem;
    border: 1px solid var(--tag-border);
    border-radius: 100px;
    background-color: var(--tag-bg);
    color: var(--text-subtle);
}

.detail__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--text);
    padding-bottom: 0.3rem;
    transition: gap var(--dur-mid) var(--ease-expo), opacity var(--dur-fast) var(--ease-inout);
}

.detail__cta:hover {
    gap: 1.4rem;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   11. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
}

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

.reveal:nth-child(1) {
    transition-delay: 0ms;
}

.reveal:nth-child(2) {
    transition-delay: 80ms;
}

.reveal:nth-child(3) {
    transition-delay: 160ms;
}

.reveal:nth-child(4) {
    transition-delay: 240ms;
}

/* --------------------------------------------------------------------------
   ORGANIZATION TIMELINE (Horizontal Scroll)
   -------------------------------------------------------------------------- */
.org-scroll-wrapper {
    display: block;
    height: 400vh;
    position: relative;
    background-color: #0c0c0c;
    z-index: 10;
}

.org-sticky-container {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.section--org {
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c;
    color: #fff;
    border-radius: 0;
    padding: 15vh 5vw 0;
    margin-top: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section--org .section__inner {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
    width: 100%;
}

.section--org .section__header {
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 0;
}

.section--org .section__title {
    color: #fff;
}

.section--org .section__kicker {
    color: rgba(255, 255, 255, 0.4);
}

.timeline-container {
    width: 100%;
    overflow: visible;
    padding-bottom: 2rem;
    margin-top: 0;
}

.timeline-track {
    display: flex;
    gap: 3rem;
    position: relative;
    min-width: max-content;
    padding: 1rem 0;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-line {
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.timeline-item {
    width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.timeline-item__year {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.25rem;
}

.timeline-item__node {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 0 0 4px #0c0c0c, 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.timeline-item__content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    transition: background 0.3s ease;
    flex-grow: 1;
}

.timeline-item:hover .timeline-item__content {
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item__index {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.timeline-item__title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.timeline-item__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   GLOBAL HEADER (Language & Menu Toggle)
   -------------------------------------------------------------------------- */
.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4vw;
    z-index: 1000;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-expo), visibility 0s;
}

body.about-open .global-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-expo), visibility 0s var(--dur-mid);
}

.global-header button {
    pointer-events: auto;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text);
    transition: color var(--dur-mid) var(--ease-expo), opacity var(--dur-mid) var(--ease-expo), visibility 0s;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background-color: var(--bg);
    padding: 0.45rem 1rem;
    border-radius: 100px;
    line-height: 1;
}

.lang-switch svg {
    display: block;
    flex-shrink: 0;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0;
    line-height: 1;
    background-color: transparent;
    transition: color var(--dur-mid) var(--ease-expo);
}

body.menu-open .global-header .menu-toggle,
body.on-org .global-header .menu-toggle {
    color: #fff;
}

body.detail-open .global-header .menu-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-mid) var(--ease-expo),
        visibility 0s var(--dur-mid);
}

/* --------------------------------------------------------------------------
   FULLSCREEN MENU
   -------------------------------------------------------------------------- */
.fullscreen-menu {
    position: fixed;
    inset: 0;
    background-color: #000;
    color: #fff;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 5rem 10vw;
    /* Hidden by default — prevents black from bleeding into the landing page */
    visibility: hidden;
    transition: visibility 0s 0.85s;
}

body.menu-open .fullscreen-menu {
    visibility: visible;
    transition: visibility 0s 0s;
}

.fullscreen-menu__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    height: 100%;
    justify-content: center;
}

.fullscreen-menu__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 5rem;
}

.fullscreen-menu__link {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--dur-mid) var(--ease-expo),
        transform var(--dur-mid) var(--ease-expo);
    display: block;
}

.fullscreen-menu__link:hover {
    color: #fff;
    transform: translateX(-15px);
}

.fullscreen-menu__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.fullscreen-menu__footer a {
    display: block;
    margin-top: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: color var(--dur-fast), border-color var(--dur-fast);
}

.fullscreen-menu__footer a:hover {
    color: #fff;
    border-color: #fff;
}

.fullscreen-menu__theme-toggle p {
    margin-bottom: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    transition: color var(--dur-fast);
}

.fullscreen-menu__theme-toggle p:hover,
.fullscreen-menu__theme-toggle p.is-active {
    color: #fff;
}

.active-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    display: inline-block;
}

/* --------------------------------------------------------------------------
   PAGE WRAPPER (3D ROTATION)
   -------------------------------------------------------------------------- */
.page-wrapper {
    background-color: var(--bg);
    position: relative;
    z-index: 10;
    transition: transform 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        border-radius 0.85s cubic-bezier(0.7, 0, 0.2, 1),
        box-shadow 0.85s cubic-bezier(0.7, 0, 0.2, 1);
    transform-origin: top left;
    will-change: transform, border-radius;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .page-wrapper {
    transform: translate(-50vw, calc(15vh + var(--menu-scroll-offset, 0px))) rotate(-20deg) scale(0.7);
    border-radius: 20px;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   12. PAGE LOAD ANIMATION
   -------------------------------------------------------------------------- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* --------------------------------------------------------------------------
   13. MOBILE RESPONSIVE — ≤ 860px
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {

    /* Hero stays full height/width */
    .section--hero {
        height: 100vh;
    }

    .split-layout {
        flex-direction: column;
    }

    .scroller {
        display: none;
    }

    /* Right col is no longer sticky, it just stacks inline as a banner */
    .right-col {
        display: block;
        /* restore visibility on mobile */
        position: relative;
        width: 100%;
        height: auto;
        min-height: 180px;
        flex-shrink: 0;
        order: -1;
    }

    .visual {
        position: relative;
        inset: auto;
    }

    .visual__decor {
        padding: 2rem 6vw;
        min-height: 180px;
    }

    .visual__big-text {
        font-size: 15vw;
    }

    .visual__tagline {
        font-size: 10vw;
    }

    .visual__meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .content {
        width: 100%;
        height: auto;
        flex-shrink: 0;
    }

    .section {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .section__inner {
        padding: 4rem 6vw;
    }

    /* Detail Panel on Mobile covers entire screen */
    .detail-panel {
        width: 100vw;
    }

    .detail-panel__inner {
        padding: 6rem 1.5rem 4rem;
    }

    /* Works grid: single column on mobile */
    .work-list {
        grid-template-columns: 1fr;
        border-top: none;
    }

    .card {
        border-top: 1px solid var(--border-strong);
        border-bottom: none;
        border-right: none !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .card:last-child {
        border-bottom: 1px solid var(--border-strong);
    }

    /* Responsive for menu open rotation */
    body.menu-open .page-wrapper {
        transform: translate(-75vw, 5vh) rotate(-5deg) scale(0.85);
    }

    .fullscreen-menu {
        padding: 5rem 5vw;
    }

    .fullscreen-menu__link {
        font-size: clamp(2rem, 5vw, 2rem);
    }
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */
[data-theme="dark"] {
    --bg: #0D0D0D;
    --bg-card-hover: #181818;
    --bg-detail: #141414;
    --text: #F0EFE9;
    --text-muted: rgba(240, 239, 233, 0.38);
    --text-subtle: rgba(240, 239, 233, 0.55);
    --border: rgba(240, 239, 233, 0.07);
    --border-strong: rgba(240, 239, 233, 0.13);
    --tag-bg: rgba(240, 239, 233, 0.06);
    --tag-border: rgba(240, 239, 233, 0.12);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
body {
    cursor: none;
}

/* Re-enable default cursor inside the fullscreen menu */
.fullscreen-menu,
.fullscreen-menu * {
    cursor: none;
}

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
}

.cursor__dot {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 8px;
    height: 8px;
    background-color: var(--text);
    border-radius: 50%;
    transition: transform 0.12s var(--ease-expo),
        background-color 0.2s;
}

.cursor__ring {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--text);
    border-radius: 50%;
    opacity: 0.45;
    transition: top 0.18s var(--ease-expo),
        left 0.18s var(--ease-expo),
        width 0.35s var(--ease-expo),
        height 0.35s var(--ease-expo),
        opacity 0.35s var(--ease-expo),
        border-color 0.2s,
        background-color 0.35s var(--ease-expo);
    will-change: top, left, width, height;
}

/* Hover state — ring expands and fills subtly */
body.cursor-hover .cursor__ring {
    top: -28px;
    left: -28px;
    width: 56px;
    height: 56px;
    opacity: 0.18;
    background-color: var(--text);
}

/* Click flash */
body.cursor-click .cursor__dot {
    transform: scale(0.6);
}

/* White cursor on dark backgrounds (org section, open menu, about panel) */
body.on-org .cursor__dot,
body.menu-open .cursor__dot,
body.about-open .cursor__dot {
    background-color: #fff;
}

body.on-org .cursor__ring,
body.menu-open .cursor__ring,
body.about-open .cursor__ring {
    border-color: #fff;
}

/* Hide on mobile / touch */
@media (hover: none) {
    .cursor {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* ==========================================================================
   AVAILABILITY BADGE (Hero)
   ========================================================================== */
.hero__availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__availability-dot {
    position: relative;
    width: 8px;
    height: 8px;
    flex-shrink: 0;
}

.hero__availability-dot::before,
.hero__availability-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #22c55e;
}

.hero__availability-dot::after {
    animation: avail-pulse 2.4s ease-out infinite;
}

@keyframes avail-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(2.8);
        opacity: 0;
    }

    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

/* ==========================================================================
   CARD IMAGE PREVIEW (follows cursor on card hover)
   ========================================================================== */
.card-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 190px;
    border-radius: 6px;
    overflow: hidden;
    pointer-events: none;
    z-index: 600;
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.88) rotate(-3deg);
    transition: opacity 0.3s var(--ease-expo),
        transform 0.3s var(--ease-expo);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    will-change: transform, opacity;
}

.card-preview.is-visible {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1) rotate(0deg);
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   COPY EMAIL TOAST
   ========================================================================== */
.copy-toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background-color: var(--text);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s var(--ease-expo),
        transform 0.25s var(--ease-expo);
    z-index: 99998;
    white-space: nowrap;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   KEYBOARD SHORTCUT HINT (bottom-right, fades after load)
   ========================================================================== */
.kb-hint {
    position: fixed;
    bottom: 2rem;
    right: 2.5rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    pointer-events: none;
    opacity: 1;
    /* always visible on landing */
    transition: opacity 0.5s var(--ease-expo);
    z-index: 900;
    display: flex;
    gap: 1.2rem;
}

/* Hide when user scrolls past the hero section */
body.not-on-hero .kb-hint {
    opacity: 0;
}

.kb-hint span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.kb-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    font: inherit;
    font-size: 0.58rem;
}

.kb-hint.is-visible {
    opacity: 1;
}

@media (max-width: 860px) {
    .kb-hint {
        display: none;
    }
}

/* ==========================================================================
   SCROLL PROGRESS BAR
   ========================================================================== */
/*.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #;
    z-index: 99997;
    pointer-events: none;
    transform-origin: left;
    transition: width 0.1s linear;
}*/

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #3b82f6;
    z-index: 99997;
    pointer-events: none;
    transform-origin: left;
    transition: width 0.1s linear;
}

/* ==========================================================================
   THEME TOGGLE ACTIVE STATE (updates dynamically via JS)
   ========================================================================== */
.fullscreen-menu__theme-toggle p {
    transition: color var(--dur-fast);
}