.featured-inner-break {
    margin-bottom: 16px;
}

.inner-section-break {
    margin-bottom: 40px;
}

.featured-section-break {
    margin-bottom: 80px;
}

.section-break {
    margin-bottom: 120px;
}

/* Mobile: tighten the Selected Works -> Creative Explorations gap to 80px.
   The last row's .featured-section-break (80px) plus the last tile's
   .inner-section-break (40px) would otherwise total 120px; trimming the
   row to 40px lands the gap at 80px. Scoped to #selected-works only. */
@media (max-width: 767px) {
    #selected-works .featured-section-break {
        margin-bottom: 40px;
    }
}

.inner-section-feature-break {
    margin-bottom: 16px;
}

.title-break {
    margin-bottom: 32px;
}

a {
    text-decoration: none;
}

a:hover {
    color: #8195f7;
}

.header-link-dark {
    color: #020a0a;
}

.header-link-dark:hover {
    color: #8195f7;
}

.header-link-muted {
    color: #797878;
}

.header-hr {
    border: none;
    border-top: 1px solid #E6E9EB;
    margin: 12px 0 0 0;
}

.flex-divider {
    flex: 1;
    height: 1px;
    background: #E6E9EB;
}

.icon-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
}

.icon-link {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

/* ── Header subtitle rotation ── */
.header-subtitle {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    column-gap: 0.3em;
}

.hb-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.hb-line {
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform-origin: 10px 10px;
}

/* Hamburger state: spread lines from center */
.hb-line-1 { transform: translateY(-3px); }
.hb-line-3 { transform: translateY(3px); }

/* X state: rotate around center (lines are already at y=10) */
.hb-open .hb-line-1 { transform: rotate(45deg); }
.hb-open .hb-line-3 { transform: rotate(-45deg); }

.menu-nav-link {
    animation: menuLinkIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: calc(0.08s + var(--i) * 0.06s);
}

.menu-nav-heading {
    font-family: 'Noto Serif', serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 24px;
    text-decoration: none;
}

.menu-ampli-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-bottom-hr {
    border: none;
    border-top: 1px solid #E6E9EB;
    margin: 0 0 12px;
}

.menu-bottom-links {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    line-height: 18px;
    padding: 0 16px 12px;
}

@keyframes menuLinkIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-word-wrap {
    display: inline-block;
    overflow: hidden;
    line-height: 1.4;
}

.header-word-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.header-word-inner.visible {
    transform: translateY(0);
    opacity: 1;
}

.header-word-inner.exiting {
    transform: translateY(-110%);
    opacity: 0;
}
.feature-img-wrap {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.feature-img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
}

video.feature-img {
    object-fit: cover;
    margin-top: -1px;
    height: calc(100% + 1px);
}

.featured-title {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;

    color: #797878;
}



.title-text {
    font-family: 'Noto Serif';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;

    color: #222222;
}

.body-text {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

.intro-body-text {
    color: #020A0A;
}

.featured-body-text {
    color: #797878;
}


.portfolio-subtitle {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 24px;

    /* identical to box height, or 171% */

    color: #797878;
}

.portfolio-body {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;

    /* or 143% */

    color: #020A0A;

    vertical-align: middle;
}

.divider {
    margin-top: 80px;
       margin-bottom: 80px;
}

.bio-text {
    font-family: 'Noto Serif';
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #222222;
}

@media (max-width: 767px) {
    .bio-text {
        font-size: 18px;
        line-height: 28px;
    }
}

.bio-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    animation: bio-word-in 0.55s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.04s + var(--delay-offset, 0.1s));
    animation-play-state: paused;
}

.bio-word.playing {
    animation-play-state: running;
}

@keyframes bio-word-in {
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* ── Text reveal ── */
.reveal-wrap {
    display: block;
}

.reveal-text {
    display: block;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* ── Media (image/video) fade-up reveal ── */
.reveal-media {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* ── Divider left-to-right reveal ── */
.reveal-divider-line {
    flex: 1;
    height: 1px;
    background: #E6E9EB;
    border: none;
    margin: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0.4, 0, 1);
    will-change: transform;
}

.reveal-divider-line.is-visible {
    transform: scaleX(1);
}

/* standalone <hr> dividers sit in flex-column containers — prevent flex-basis:0 from collapsing height */
hr.reveal-divider-line {
    flex: none;
    width: 100%;
    opacity: 1;
}

.section-label {
    font-family: 'IBM Plex Sans';
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #797878;
    white-space: nowrap;
}

.feature-img-sized {
    width: 100%;
    aspect-ratio: 1 / 1;
}


.feature-link {
    display: block;
}

/* Mobile: title + description stacked */
.card-text-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Desktop: title fixed 136px, description fills to image right edge */
@media (min-width: 768px) {
    .card-text-row {
        display: grid;
        grid-template-columns: 136px 1fr;
        gap: 12px;
    }
}

/* ── About page ── */

/* Heading: reuses bio-text (Noto Serif Medium 24px/36px #222); 16px gap to bio (Figma gap-[16px]) */
.about-heading {
    margin-bottom: 16px;
}

/* CSS grid: equal 1fr columns so bio sits at ~50% of container; photo fills the other half */
.about-intro-grid {
    display: grid;
    grid-template-columns: 395px 1fr;
    column-gap: 46px;
    align-items: start;
}

/* Bio text: IBM Plex Sans Regular 16px/24px #020a0a */
.about-bio-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #020a0a;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-bio-text p {
    margin: 0;
}

/* Photo column: flex-col, 12px gap between photo and caption (Figma gap-[12px]) */
.about-photo-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

/* Photo: 375px tall, object-cover, 10px radius */
.about-photo {
    width: 100%;
    height: 375px;
    object-fit: cover;
    border-radius: 10px;
}

/* Caption: IBM Plex Sans Regular 14px/20px #797878 */
.about-caption {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #797878;
    width: 100%;
}

/* "baking bread": inline underlined button matching Figma text-decoration-skip-ink:none */
.bread-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #797878;
    text-decoration: none;
    cursor: pointer;
    display: inline;
    vertical-align: baseline;
}

.bread-link:hover {
    color: #8195f7;
}

.bread-link sup {
    color: #8195f7;
    font-size: 10px;
}

/* Experience: flex-col, 16px between entries (Figma gap-[16px]) */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Desktop: role left | year right, items-center (Figma justify-between items-center) */
.experience-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
}

/* Role: #020a0a */
.experience-role {
    color: #020a0a;
}

/* Year: #797878, tighter leading, no wrap (Figma leading-[20px]) */
.experience-year {
    color: #797878;
    line-height: 20px;
    white-space: nowrap;
}

/* ── Portfolio Template ── */

.portfolio-col {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 124px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.portfolio-overview {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.portfolio-title {
    font-family: 'Noto Serif';
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    color: #222222;
    margin: 0;
}

.portfolio-summary {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #020a0a;
}

.portfolio-summary p {
    margin-bottom: 11px;
}

.portfolio-summary p:last-child {
    margin-bottom: 0;
}

.portfolio-meta {
    display: flex;
    gap: 24px;
    color: #797878;
}

.portfolio-meta-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.portfolio-meta-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.portfolio-meta-value {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
}

.portfolio-hero {
    width: 100%;
    height: 375px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    display: block;
}

.portfolio-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.portfolio-section-no-tag {
    /* portfolio-col gap is 80px; -48px leaves 32px above a tagless heading */
    margin-top: -48px;
}

.portfolio-section-heading {
    font-family: 'Noto Serif';
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #222222;
    margin: 0;
}

.portfolio-body-wrap {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* Heading -> body gap: 16px (section gap is 24px, so pull body up 8px) */
.reveal-wrap + .portfolio-body-wrap {
    margin-top: -8px;
}

.portfolio-body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #020a0a;
    margin: 0;
}

.portfolio-body a {
    color: #020a0a;
}

.portfolio-body a:hover {
    color: #8195f7;
}

.portfolio-img-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    width: 100%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.portfolio-img-btn img {
    pointer-events: none;
}

.portfolio-section-img {
    width: 100%;
    height: 375px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    display: block;
}

.portfolio-video-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

video.portfolio-section-img {
    border: none;
    display: block;
    height: calc(375px + 2px);
    margin-top: -1px;
    margin-bottom: -1px;
    object-fit: cover;
}

.portfolio-meta-row-2 {
    margin-top: 24px;
}

.portfolio-meta-value-wrap {
    white-space: normal;
}

/* Side-by-side image pair with captions */
.portfolio-img-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.portfolio-img-pair-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-pair-img {
    height: auto;
    aspect-ratio: 2246 / 2172;
}

.portfolio-img-caption {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #797878;
    margin: 0;
}

/* Toggle */
.portfolio-toggle {
    position: relative;
    display: flex;
    background: #F3F2F9;
    border-radius: 100px;
    padding: 4px;
    gap: 0;
    width: fit-content;
    overflow: hidden;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    background: #DCDAF3;
    border-radius: 100px;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.toggle-slider.no-transition {
    transition: none !important;
}

.toggle-tab {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #797878;
    padding: 4px 16px;
    border-radius: 100px;
    border: none;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-tab:not(.active):hover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(93, 80, 180, 0.06);
    border-radius: 100px;
    z-index: -1;
    transition: background 0.2s ease;
}

.toggle-tab.active {
    font-weight: 600;
    color: #222222;
    background: none;
}

/* Lightbox */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.lightbox-img {
    max-width: calc(100vw - 32px);
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
    display: block;
}

/* Next Project */
hr {
    opacity: 1;
}

.portfolio-next-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: -40px;
}

.portfolio-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.portfolio-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #797878;
    transition: color 0.2s ease;
}

.portfolio-nav-link:hover {
    color: #8195f7;
}

.portfolio-nav-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.portfolio-nav-arrow {
    width: 12px;
    height: 12px;
}

.footer-say-hi {
    color: #020a0a;
}

.footer-say-hi:hover {
    color: #8195f7;
}

@media (max-width: 767px) {
    .portfolio-col {
        padding-left: 16px;
        padding-right: 16px;
        margin-top: 120px;
        gap: 60px;
    }

    .portfolio-section-no-tag {
        /* mobile portfolio-col gap is 60px; -28px keeps 32px above */
        margin-top: -28px;
    }

    .portfolio-title {
        font-size: 20px;
        line-height: 28px;
    }

    .portfolio-section-heading {
        font-size: 18px;
    }

    .portfolio-section-img {
        height: 274px;
    }

    video.portfolio-section-img {
        height: calc(274px + 2px);
        margin-bottom: -1px;
    }

    .portfolio-toggle {
        padding: 4px;
        width: 100%;
    }

    .toggle-tab {
        font-size: 13px;
        padding: 4px 6px;
        flex: 1;
        text-align: center;
    }

    .portfolio-meta-value {
        white-space: normal;
    }

    .portfolio-img-pair {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Keep caption images at their square ratio on mobile instead of the
       274px cover-crop that .portfolio-section-img would otherwise impose */
    .portfolio-pair-img {
        height: auto;
    }

}

@media (max-width: 767px) {
    /* Heading: Noto Serif Medium 20px/28px on mobile (Figma mobile spec) */
    .about-heading {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 24px;
    }

    /* Single column, 24px row gap (Figma mobile flex-col gap-[24px]) */
    .about-intro-grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 24px;
    }

    /* Photo: full-width, 375px tall on mobile */
    .about-photo {
        width: 100%;
        height: 375px;
    }

    .about-photo-side {
        align-items: stretch;
    }

    .about-caption {
        width: 100%;
    }

    /* Mobile experience: role stacked above year, 2px gap (Figma flex-col gap-[2px]) */
    .experience-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* ── Sticky header ── */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.70);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.25s ease;
}

#site-header.header-scrolled {
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}

#site-header.header-hidden {
    transform: translateY(-100%);
}

body.menu-open #site-header {
    transform: none !important;
}

/* ── Scroll-triggered text highlight ── */
.text-highlight {
    --marker-color: #8195f7;
    display: inline;
    margin: -.04em -.06em;
    padding: .04em .06em;
    border-radius: .2em .15em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    background-image: linear-gradient(
        75deg,
        color-mix(in srgb, var(--marker-color), transparent 50%),
        color-mix(in srgb, var(--marker-color), transparent 85%) 4%,
        color-mix(in srgb, var(--marker-color), transparent 70%) 96%,
        color-mix(in srgb, var(--marker-color), transparent 40%)
    );
    background-size: 0% 88%;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-size 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.text-highlight.is-visible {
    background-size: 100% 88%;
}
.text-highlight.highlight-yellow {
    background-image: linear-gradient(82deg, #f2be2273, #f2be221f 6%, #f2be2240 93%, #f2be2280);
}
.text-highlight.highlight-pink {
    background-image: linear-gradient(82deg, #d6409f6b, #d6409f1f 6%, #d6409f38 93%, #d6409f7a);
}
.text-highlight.highlight-green {
    background-image: linear-gradient(82deg, #2ea06e6b, #2ea06e1f 6%, #2ea06e38 93%, #2ea06e7a);
}

/* ── Portfolio side nav ── */
.portfolio-sidenav {
    position: fixed;
    top: 140px;
    /* xl (1200–1399px): Bootstrap container max-width 1140px, 12px left gutter */
    left: calc((100vw - 1140px) / 2 + 12px);
    width: 150px;
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    border-left: 1px solid #E6E9EB;
    opacity: 0;
    transition: opacity 0.15s ease;
}

@media (min-width: 1400px) {
    /* xxl: Bootstrap container max-width 1320px, 12px left gutter */
    .portfolio-sidenav {
        left: calc((100vw - 1320px) / 2 + 12px);
    }
}

.sidenav-item {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    line-height: 20px;
    color: #C5C5C5;
    font-weight: 400;
    text-decoration: none;
    padding: 5px 0 5px 10px;
    border-left: 2px solid transparent;
    margin-left: -13px;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidenav-item.active {
    color: #222222;
    font-weight: 500;
    border-left-color: #8195f7;
}

.sidenav-item:hover:not(.active) {
    color: #888;
}

@media (max-width: 1199px) {
    .portfolio-sidenav { display: none; }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ── More page ── */
@keyframes moreCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.more-card-anim {
    opacity: 0;
    animation: moreCardIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.more-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #797878;
    margin-top: 24px;
    margin-bottom: 0;
}

.more-gallery {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.more-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.more-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-card-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}

.more-card-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #020a0a;
    margin: 0 0 4px 0;
}

.more-card-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #797878;
    margin: 0;
}

@media (max-width: 767px) {
    .more-gallery {
        flex-direction: column;
    }

    .more-heading {
        font-size: 20px;
        line-height: 28px;
    }
}