/* ==========================================================================
   In Depth Advisory
   Carbon + chartreuse — minimal, premium, neutral dark.
   ========================================================================== */

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

:root {
    --void: #0a0a0a;
    --depth: #141414;
    --ivory: #f5f5f4;
    --mute: rgba(245, 245, 244, 0.62);
    --sun: #d4ff4d;
    --line: rgba(255, 255, 255, 0.1);
    --dim: rgba(245, 245, 244, 0.35);
    --text-soft: rgba(245, 245, 244, 0.8);
    --text-softer: rgba(245, 245, 244, 0.7);
    --scrim: rgba(10, 10, 10, 1);
    --serif: 'Syne', system-ui, sans-serif;
    --sans: 'Instrument Sans', system-ui, sans-serif;
    --safe-l: env(safe-area-inset-left, 0px);
    --safe-r: env(safe-area-inset-right, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --safe-b: env(safe-area-inset-bottom, 0px);
    --gutter: 1.7rem;
}

html {
    scroll-behavior: smooth;
    background: var(--void);
}

body {
    font-family: var(--sans);
    background: var(--void);
    color: var(--ivory);
    line-height: 1.55;
    font-size: 1.18rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.has-cursor,
body.has-cursor a,
body.has-cursor button {
    cursor: none;
}

body.has-cursor input,
body.has-cursor textarea {
    cursor: text;
}

.cursor {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 1px solid var(--ivory);
    border-radius: 50%;
    pointer-events: none;
    z-index: 80;
    opacity: 0.45;
    mix-blend-mode: difference;
}

.cursor-dot {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--sun);
    border-radius: 50%;
    pointer-events: none;
    z-index: 81;
    box-shadow: 0 0 10px rgba(212, 255, 77, 0.4);
}

body.has-cursor .cursor,
body.has-cursor .cursor-dot {
    display: block;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: calc(1.15rem + var(--safe-t)) calc(2rem + var(--safe-r)) 1.15rem calc(2rem + var(--safe-l));
}

.wordmark {
    position: absolute;
    left: 50%;
    top: calc(1.85rem + var(--safe-t));
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.45);
    opacity: calc(1 - var(--hero, 0) * 0.78);
}

.wordmark-name {
    display: block;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: -0.3em;
}

.brand-in,
.brand-depth {
    display: inline;
    vertical-align: baseline;
}

.brand-in {
    letter-spacing: 0.24em;
    margin-right: -0.12em;
}

.brand-depth {
    letter-spacing: 0.34em;
    margin-right: -0.34em;
    color: var(--sun);
}

.brand-advisory {
    font-family: var(--sans);
    font-weight: 400;
    letter-spacing: 0.36em;
    margin-right: -0.36em;
    opacity: 0.75;
}

.wordmark-sub {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.62rem;
    letter-spacing: 0.44em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-top: 0.2rem;
    margin-right: -0.44em;
}

.language-toggle {
    display: flex;
    gap: 1rem;
}

.lang-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    opacity: 0.55;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.45);
}

.lang-btn.active,
.lang-btn:hover {
    color: #fff;
    opacity: 1;
}

.surface {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 46%;
    z-index: 0;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.45) 48%, rgba(10, 10, 10, 0.15) 78%, transparent 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, transparent 32%, rgba(10, 10, 10, 0.55) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: max-content;
    max-width: none;
    margin: 0 auto 0 0;
    padding: 0 max(8vw, calc(var(--safe-r) + 1.75rem)) 0 max(8vw, calc(var(--safe-l) + 1.75rem));
    text-align: left;
}

.hero-sub {
    margin-top: 1.2rem;
    font-size: clamp(1.18rem, 1.7vw, 1.4rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-soft);
    text-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}

.headline {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.65rem, 7.5vw, 5.25rem);
    line-height: 0.9;
    letter-spacing: -0.048em;
    max-width: 11.5ch;
    color: var(--ivory);
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}

.headline > span {
    display: block;
    white-space: nowrap;
}

.headline .mark {
    font-style: normal;
    font-weight: 700;
    color: var(--sun);
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    bottom: calc(1.6rem + var(--safe-b));
    left: max(8vw, calc(var(--safe-l) + 1.75rem));
    color: var(--sun);
    text-decoration: none;
    animation: cue-breathe 2.8s ease-in-out infinite;
}

.scroll-cue svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

@keyframes cue-breathe {
    0%, 100% { opacity: 0.32; transform: translateY(0); }
    50% { opacity: 0.72; transform: translateY(6px); }
}

.story {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 5.5vw;
    align-items: center;
    padding: 10vh max(8vw, calc(var(--safe-r) + 1.75rem)) 14vh max(8vw, calc(var(--safe-l) + 1.75rem));
    background: var(--depth);
}

.story-hello {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.2vw, 4.5rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: var(--ivory);
    max-width: 8em;
    margin: 0 0 1.7rem;
    text-align: left;
}

.story-body p {
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    line-height: 1.5;
    color: var(--text-soft);
    max-width: 38em;
}

.story-body p + p {
    margin-top: 1.15rem;
}

.story-body strong {
    color: var(--ivory);
    font-weight: 600;
}

.story-body strong.accent {
    color: var(--sun);
    font-weight: 600;
}

.plate {
    position: relative;
    width: min(36vw, 400px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    justify-self: end;
    border-radius: 0.35rem;
    border: 1px solid rgba(212, 255, 77, 0.22);
}

.plate picture {
    display: block;
    width: 100%;
    height: 100%;
}

.plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 46% 28%;
    display: block;
}

.plate--stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, 0.35) 100%);
    pointer-events: none;
    z-index: 1;
}

.plate--stage img {
    filter: none;
    opacity: 1;
}

.work {
    position: relative;
    z-index: 1;
    background: var(--void);
}

.work-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: clamp(4.25rem, 10vh, 7rem) max(8vw, calc(var(--safe-r) + 1.75rem)) clamp(4.75rem, 11vh, 7.5rem) max(8vw, calc(var(--safe-l) + 1.75rem));
}

.work-slide:first-child {
    padding-top: clamp(5rem, 12vh, 8.5rem);
}

.work-slide .kicker {
    margin: 0 0 1.25rem;
}

.work-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.22em;
    margin: 0 0 0.95rem;
    font-family: var(--serif);
    font-size: clamp(2.65rem, 6.5vw, 4.85rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.work-num {
    color: var(--sun);
}

.work-name {
    color: var(--ivory);
}

.work-body {
    font-size: clamp(1rem, 1.55vw, 1.22rem);
    line-height: 1.48;
    max-width: 28em;
    color: var(--text-soft);
}

.kicker {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--sun);
    margin-bottom: 1.6rem;
}

.contact {
    position: relative;
    z-index: 1;
    padding: 16vh max(8vw, calc(var(--safe-r) + 1.75rem)) clamp(5.5rem, 11vh, 8.5rem) max(8vw, calc(var(--safe-l) + 1.75rem));
    background: var(--depth);
}

.invite {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.03em;
    max-width: 18em;
}

.email-wrap {
    margin-top: 2.2rem;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--sans);
    font-size: clamp(1.05rem, 1.65vw, 1.28rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.email-link svg {
    display: block;
    width: 1.05em;
    height: 1.05em;
}

.email-link:hover,
.email-link:focus-visible {
    color: var(--sun);
}

body.has-cursor .email-link {
    cursor: pointer;
}

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--depth);
    padding: 0 max(8vw, calc(var(--safe-r) + 1.75rem)) calc(0.75rem + var(--safe-b)) max(8vw, calc(var(--safe-l) + 1.75rem));
}

.site-footer-line {
    margin: 0;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-softer);
    line-height: 1.5;
}

.site-footer-mark {
    display: inline;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--ivory);
    text-decoration: none;
    white-space: nowrap;
}

.site-footer-mark .brand-in {
    letter-spacing: 0.2em;
    margin-right: -0.1em;
}

.site-footer-mark .brand-depth {
    letter-spacing: 0.28em;
    margin-right: -0.28em;
}

.site-footer-mark .brand-advisory {
    font-size: 1em;
    letter-spacing: 0.32em;
}

.site-footer-sep {
    opacity: 0.55;
}

.site-footer-year {
    letter-spacing: 0.2em;
}

/* Scroll reveal: words start dim, then light. .mark goes accent. */
[data-reveal] .word {
    color: var(--dim);
    transition: color 0.35s ease;
}

[data-reveal] .word.is-on {
    color: var(--ivory);
}

[data-reveal] .mark {
    font-style: normal;
    color: rgba(212, 255, 77, 0.28);
    transition: color 0.55s ease;
}

[data-reveal] .mark.is-on {
    color: var(--sun);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] .word,
    [data-reveal] .mark {
        transition: none;
        color: var(--ivory);
    }

    [data-reveal] .mark {
        color: var(--sun);
    }

    .scroll-cue {
        animation: none;
        opacity: 0.55;
        transform: none;
    }

}

@media (max-width: 1024px) {
    .wordmark-name {
        font-size: 0.88rem;
        letter-spacing: 0.26em;
    }

    .wordmark-sub {
        font-size: 0.6rem;
        letter-spacing: 0.38em;
    }

    .story {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 9vh max(8vw, calc(var(--safe-r) + 1.75rem)) 12vh max(8vw, calc(var(--safe-l) + 1.75rem));
        gap: 1.8rem;
    }

    .story-copy {
        display: contents;
    }

    .story-hello {
        order: 1;
        max-width: none;
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .plate {
        order: 3;
        width: min(100%, 17rem);
        max-width: 17rem;
        height: auto;
        aspect-ratio: 4 / 5;
        justify-self: center;
        align-self: center;
        margin-inline: auto;
        margin-top: 1.25rem;
        border-radius: 0.35rem;
    }

    .story-body {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 860px), (max-height: 500px) and (orientation: landscape) {
    .topbar {
        padding: calc(0.95rem + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 0.95rem calc(var(--gutter) + var(--safe-l));
    }

    .wordmark {
        top: calc(1.5rem + var(--safe-t));
    }

    .wordmark-name {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }

    .wordmark-sub {
        font-size: 0.54rem;
        letter-spacing: 0.3em;
        margin-top: 0.24rem;
    }

    .lang-btn {
        font-size: 0.64rem;
    }

    .surface {
        justify-content: flex-end;
        padding: 0 0 calc(4.8rem + var(--safe-b));
    }

    .hero-scrim {
        background: linear-gradient(180deg, rgba(10, 10, 10, 0.2) 0%, transparent 34%, rgba(10, 10, 10, 0.65) 70%, rgba(10, 10, 10, 0.9) 100%);
    }

    .hero-inner {
        width: auto;
        max-width: none;
        padding: 0 calc(var(--gutter) + var(--safe-r)) 0 calc(var(--gutter) + var(--safe-l));
    }

    .hero-sub {
        max-width: 22em;
    }

    .hero-photo {
        object-position: 74% 42%;
    }

    .headline {
        font-size: clamp(2.35rem, 11.5vw, 3.75rem);
        max-width: none;
    }

    .headline > span {
        white-space: normal;
    }

    .scroll-cue {
        left: calc(var(--gutter) + var(--safe-l));
    }

    .contact,
    .site-footer,
    .work-slide {
        padding-left: calc(var(--gutter) + var(--safe-l));
        padding-right: calc(var(--gutter) + var(--safe-r));
    }

    .story {
        display: flex;
        flex-direction: column;
        padding: 8vh calc(var(--gutter) + var(--safe-r)) 10vh calc(var(--gutter) + var(--safe-l));
        gap: 1.5rem;
    }

    .story-copy {
        display: contents;
    }

    .story-hello {
        order: 1;
        font-size: clamp(2.35rem, 11.5vw, 3.4rem);
        max-width: none;
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .plate {
        order: 3;
        width: min(100%, 17rem);
        max-width: 17rem;
        height: auto;
        aspect-ratio: 4 / 5;
        justify-self: center;
        align-self: center;
        margin-inline: auto;
        margin-top: 1.25rem;
        border-radius: 0.35rem;
    }

    .plate--stage img {
        object-position: 42% 22%;
    }

    .story-body {
        order: 2;
        width: 100%;
    }

    .story-body p {
        font-size: 1.12rem;
        line-height: 1.48;
    }

    .story-body p + p {
        margin-top: 1rem;
    }

    .work-slide {
        padding-top: clamp(3.5rem, 9vh, 5.5rem);
        padding-bottom: clamp(4rem, 10vh, 6rem);
    }

    .work-slide:first-child {
        padding-top: clamp(4rem, 11vh, 7rem);
    }

    .work-head {
        font-size: clamp(2rem, 7vw, 3.25rem);
        margin-bottom: 0.75rem;
        max-width: 100%;
    }

    .work-name {
        min-width: 0;
        max-width: 100%;
    }

    .work-body {
        font-size: 1.05rem;
        max-width: 22em;
    }

    .contact {
        padding-top: 12vh;
        padding-bottom: clamp(4.5rem, 9vh, 7rem);
    }

    .site-footer {
        padding-bottom: calc(0.65rem + var(--safe-b));
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .surface {
        padding: 0 0 calc(2.2rem + var(--safe-b));
    }

    .wordmark {
        top: calc(0.85rem + var(--safe-t));
    }

    .headline {
        font-size: clamp(1.7rem, 5.4vw, 2.6rem);
    }

    .hero-sub {
        margin-top: 0.7rem;
        max-width: 36em;
        font-size: 1.05rem;
    }

    .story {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.7fr);
        align-items: center;
        gap: 4vw;
        padding: 8vh calc(var(--gutter) + var(--safe-r)) 10vh calc(var(--gutter) + var(--safe-l));
    }

    .story-copy {
        display: block;
    }

    .story-hello {
        order: unset;
        width: auto;
        max-width: 10em;
        margin-bottom: 0.85rem;
        font-size: clamp(1.7rem, 4.2vw, 2.4rem);
    }

    .story-body {
        order: unset;
        width: auto;
    }

    .story-body p {
        font-size: 1rem;
        line-height: 1.42;
    }

    .plate {
        order: unset;
        width: min(28vw, 12.5rem);
        max-width: 12.5rem;
        max-height: none;
        aspect-ratio: 4 / 5;
        justify-self: end;
        align-self: center;
        margin-inline: 0;
        margin-top: 0;
    }

    .work-slide {
        padding-top: clamp(3rem, 8vh, 5rem);
        padding-bottom: clamp(3.5rem, 9vh, 5.5rem);
    }

    .work-slide:first-child {
        padding-top: clamp(3.75rem, 10vh, 6rem);
    }

    .work-head {
        font-size: clamp(1.65rem, 4.5vw, 2.55rem);
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: calc(0.85rem + var(--safe-t)) calc(var(--gutter) + var(--safe-r)) 0.85rem calc(var(--gutter) + var(--safe-l));
    }

    .wordmark {
        top: calc(1.35rem + var(--safe-t));
    }

    .wordmark-name {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
    }

    .wordmark-sub {
        font-size: 0.46rem;
        letter-spacing: 0.2em;
        margin-top: 0.2rem;
    }

    .story {
        padding-left: calc(var(--gutter) + var(--safe-l));
        padding-right: calc(var(--gutter) + var(--safe-r));
    }
}
