:root {
    --cream: #f7f0e3;
    --paper: #fffaf0;
    --matcha: #87975a;
    --matcha-mid: #68783f;
    --matcha-deep: #263019;
    --matcha-ink: #172010;
    --strawberry: #c93c57;
    --strawberry-deep: #8f263b;
    --pink: #f0b4c0;
    --pink-soft: #f7dadd;
    --ink: #1c2117;
    --muted: #5f6256;
    --line: rgba(28, 33, 23, 0.2);
    --line-strong: rgba(28, 33, 23, 0.56);
    --cream-line: rgba(247, 240, 227, 0.28);
    --header-height: 5rem;
    --font: "Times New Roman", Times, serif;
    --hero-scroll: 0;
    --pointer-x: 0;
    --pointer-y: 0;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: clip;
    background: var(--cream);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
::selection { color: var(--paper); background: var(--strawberry); }

:focus-visible {
    outline: 3px solid var(--strawberry);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 300;
    padding: 0.7rem 1rem;
    border: 1px solid var(--paper);
    border-radius: 999px;
    color: var(--paper);
    background: var(--matcha-deep);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus { transform: none; }

.section-shell {
    width: min(1160px, calc(100% - 3rem));
    margin-inline: auto;
}

.section-pad { padding: clamp(5rem, 8vw, 8rem) 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    background: rgba(247, 240, 227, 0.82);
    backdrop-filter: blur(18px) saturate(125%);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    border-color: var(--line);
    background: rgba(247, 240, 227, 0.94);
    box-shadow: 0 10px 30px rgba(23, 32, 16, 0.07);
}

.nav-shell {
    width: min(1240px, calc(100% - 3rem));
    height: 100%;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 2.6vw, 2.5rem);
}

.nav-links > a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.38rem;
    left: 0;
    height: 2px;
    background: var(--strawberry);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-links > a:hover::after,
.nav-links > a.active::after { transform: scaleX(1); }

.nav-resume { padding: 0; border: 0; border-radius: 0; background: transparent; }
.nav-resume:hover, .nav-resume.active { color: inherit; background: transparent; transform: none; }

.menu-toggle {
    min-height: 2.75rem;
    display: none;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--matcha-deep);
    border-radius: 999px;
    color: var(--matcha-deep);
    background: transparent;
    cursor: pointer;
}

.menu-toggle-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-bars { display: grid; gap: 0.28rem; }
.menu-bars i { width: 1rem; height: 1px; background: currentColor; transition: transform 0.2s ease; }

.hero {
    position: relative;
    min-height: calc(100svh - var(--header-height));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background:
        linear-gradient(rgba(28, 33, 23, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 33, 23, 0.035) 1px, transparent 1px),
        var(--cream);
    background-size: 4.5rem 4.5rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(247, 240, 227, 0.98) 0 36%, rgba(247, 240, 227, 0.72) 58%, transparent 82%);
    pointer-events: none;
}

.hero-liquid,
.hero-orbit {
    position: absolute;
    z-index: -2;
    pointer-events: none;
    will-change: transform;
}

.hero-liquid-matcha {
    top: -21rem;
    right: -14rem;
    width: min(68vw, 68rem);
    aspect-ratio: 1;
    border-radius: 52% 48% 64% 36% / 47% 36% 64% 53%;
    background: var(--matcha);
    transform: translate3d(
        calc(var(--pointer-x) * 16px),
        calc((var(--hero-scroll) * 72px) + (var(--pointer-y) * 12px)),
        0
    ) rotate(calc(-8deg + (var(--hero-scroll) * 6deg)));
}

.hero-liquid-strawberry {
    right: 17%;
    bottom: -18rem;
    width: min(42vw, 38rem);
    aspect-ratio: 1;
    border-radius: 64% 36% 42% 58% / 45% 62% 38% 55%;
    background: var(--strawberry);
    opacity: 0.94;
    transform: translate3d(
        calc(var(--pointer-x) * -10px),
        calc((var(--hero-scroll) * -46px) + (var(--pointer-y) * -9px)),
        0
    ) rotate(calc(17deg + (var(--hero-scroll) * -8deg)));
}

.hero-orbit {
    top: 7%;
    right: 5%;
    width: min(48vw, 39rem);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 250, 240, 0.65);
    border-radius: 50%;
    transform: translate3d(calc(var(--pointer-x) * -6px), calc(var(--pointer-y) * -6px), 0) rotate(-12deg);
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 250, 240, 0.4);
    border-radius: 50%;
}

.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 29%; }

.hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.72fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding-top: clamp(3rem, 6vh, 5rem);
    padding-bottom: clamp(3.5rem, 7vh, 6rem);
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow,
.section-kicker {
    margin: 0 0 1rem;
    color: var(--strawberry-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.action-pane h2 {
    margin: 0;
    font-weight: 400;
    letter-spacing: -0.055em;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3.25rem, 6.15vw, 6.2rem);
    line-height: 0.83;
}

.hero-line { display: block; overflow: hidden; padding-bottom: 0.11em; }
.hero-line > span { display: block; }
.hero-line-italic { color: var(--strawberry-deep); font-style: italic; }

.hero-intro {
    max-width: 670px;
    margin: 1.55rem 0 0;
    color: #484c40;
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.7rem;
}

.button {
    min-height: 3.15rem;
    padding: 0.76rem 1.18rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    border: 1px solid var(--matcha-deep);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(23, 32, 16, 0.14); }
.button-primary, .button-dark { color: var(--paper); background: var(--matcha-deep); }
.button-primary:hover, .button-dark:hover { background: var(--strawberry-deep); }
.button-secondary { background: rgba(255, 250, 240, 0.8); }
.button-secondary:hover { color: var(--paper); background: var(--matcha-mid); }

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0;
    margin: 1.45rem 0 0;
    padding: 0;
    color: #55594b;
    list-style: none;
}

.hero-tags li { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-tags li + li::before { content: "·"; margin-inline: 0.75rem; color: var(--strawberry); }

.hero-portrait-wrap {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(100%, 27rem);
    padding: 2.1rem 1.7rem 2.6rem;
    will-change: transform;
    transform: translate3d(0, calc(var(--hero-scroll) * -34px), 0);
}

.hero-portrait-wrap::before {
    content: "";
    position: absolute;
    inset: 0 2.1rem 1.1rem 0;
    z-index: -1;
    border: 1px solid var(--paper);
    background: rgba(255, 250, 240, 0.24);
    transform: rotate(-3.5deg);
}

.hero-portrait-wrap::after {
    content: "";
    position: absolute;
    right: -1.2rem;
    bottom: 0;
    z-index: -1;
    width: 9rem;
    height: 9rem;
    border-radius: 50%;
    background: var(--pink);
}

.portrait-card {
    position: relative;
    overflow: hidden;
    border: 0.65rem solid var(--paper);
    background: var(--paper);
    box-shadow: 0 28px 60px rgba(23, 32, 16, 0.2);
    clip-path: polygon(7% 0, 100% 0, 100% 91%, 82% 100%, 0 96%, 0 11%);
}

.portrait-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center 25%;
    filter: saturate(0.88) contrast(1.02);
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-portrait-wrap:hover .portrait-card img { transform: scale(1.025); }

.portrait-caption {
    position: absolute;
    right: 0.25rem;
    bottom: 0.1rem;
    left: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--paper);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.hero-marquee {
    position: relative;
    z-index: 3;
    border-block: 1px solid var(--matcha-deep);
    background: var(--pink-soft);
}

.marquee-track {
    width: min(1160px, calc(100% - 3rem));
    margin-inline: auto;
    padding: 0.72rem 0;
    color: var(--matcha-deep);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    white-space: nowrap;
}

.powder-section {
    color: var(--cream);
    background: var(--matcha-deep);
}

.section-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1.2rem;
    margin-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.section-number {
    width: 2.7rem;
    height: 2.7rem;
    display: grid;
    place-items: center;
    margin-top: 0.25rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
}

.section-heading .section-kicker { margin-bottom: 0.45rem; }
.powder-section .section-kicker { color: var(--pink); }

.section-heading h2 {
    max-width: 900px;
    font-size: clamp(2.8rem, 5.2vw, 5.2rem);
    line-height: 0.98;
}

.timeline {
    display: grid;
    border-top: 1px solid var(--cream-line);
}

.timeline-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 1.25fr 2fr;
    grid-template-rows: auto auto;
    column-gap: clamp(1rem, 3vw, 3rem);
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--cream-line);
}

.timeline-card::before {
    content: "";
    position: absolute;
    top: 2.05rem;
    left: -1.25rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--pink);
    transform: scale(0);
    transition: transform 0.25s ease;
}

.timeline-card:hover::before,
.timeline-card.current::before { transform: scale(1); }

.timeline-date {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: var(--pink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.timeline-card h3 {
    grid-column: 2;
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 400;
    line-height: 1.15;
}

.timeline-company {
    grid-column: 2;
    margin: 0.35rem 0 0;
    color: rgba(247, 240, 227, 0.68);
    font-size: 0.82rem;
}

.timeline-card > p:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
    color: rgba(247, 240, 227, 0.82);
    font-size: 0.98rem;
    line-height: 1.6;
}

.education-strip {
    display: grid;
    grid-template-columns: 0.65fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.25rem;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--cream-line);
    border-radius: 1rem;
    background: rgba(255, 250, 240, 0.045);
}

.education-title {
    align-self: center;
    color: var(--pink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.education-strip article + article { padding-left: 1.5rem; border-left: 1px solid var(--cream-line); }
.education-strip article > span { color: var(--pink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; }
.education-strip h3 { margin: 0.2rem 0 0; font-size: 1.05rem; font-weight: 400; line-height: 1.25; }
.education-strip p { margin: 0.25rem 0 0; color: rgba(247, 240, 227, 0.67); font-size: 0.78rem; }

.scallop-divider {
    height: 2rem;
    margin-top: -1px;
    background:
        radial-gradient(circle at 1.25rem 0, var(--matcha-deep) 1.25rem, transparent 1.29rem) 0 0 / 2.5rem 2rem repeat-x,
        var(--cream);
}

.scallop-divider-end {
    background:
        radial-gradient(circle at 1.25rem 0, var(--cream) 1.25rem, transparent 1.29rem) 0 0 / 2.5rem 2rem repeat-x,
        var(--pink-soft);
}

.work { background: var(--cream); }
.work .section-shell { width: min(1100px, calc(100% - 3rem)); }
.work .section-kicker { color: var(--strawberry-deep); }

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 31.5rem;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.project-card {
    --card-accent: var(--strawberry);
    min-width: 0;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: 15rem 1fr;
    border: 1px solid var(--line-strong);
    border-radius: 1.1rem;
    background: var(--paper);
    box-shadow: 0 12px 28px rgba(23, 32, 16, 0.06);
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card-matcha { --card-accent: var(--matcha-mid); }

.project-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 22px 42px rgba(23, 32, 16, 0.12);
    transform: translateY(-6px);
}

.project-visual {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--pink-soft);
}

.project-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 54%, color-mix(in srgb, var(--card-accent) 24%, transparent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-visual::after { opacity: 1; }
.image-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.45s ease; }
.project-card:hover .image-visual img { transform: scale(1.035); filter: saturate(1.04); }
.fashion-visual img { object-position: 68% 16%; }
.savoured-visual { background: var(--pink); }
.savoured-visual img { width: 45%; margin-inline: auto; object-fit: cover; object-position: center top; filter: drop-shadow(0 12px 20px rgba(23, 32, 16, 0.18)); }
.harvard-visual img { object-position: center 42%; }
.malaria-visual img { object-position: center 45%; }
.hunt-visual img { object-fit: contain; padding: 1rem; background: #f0ece5; }

.visual-label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 3;
    padding: 0.34rem 0.58rem;
    border: 1px solid var(--matcha-deep);
    border-radius: 999px;
    color: var(--matcha-deep);
    background: rgba(255, 250, 240, 0.9);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.scotty-visual {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--matcha), #d7d9bc 50%, var(--pink));
}

.phone-mockup {
    width: 31%;
    min-width: 8.5rem;
    padding: 0.58rem;
    border: 2px solid #3e4351;
    border-radius: 1rem;
    color: #f8f8fb;
    background: #171a22;
    box-shadow: 0 13px 25px rgba(23, 32, 16, 0.25);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card:hover .phone-mockup { transform: translateY(-4px) rotate(1deg); }
.phone-status { display: flex; justify-content: space-between; font-size: 0.38rem; }
.phone-greeting { margin-top: 0.65rem; font-size: 0.42rem; }
.phone-balance { display: grid; margin-top: 0.45rem; padding: 0.55rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 0.5rem; background: rgba(255,255,255,0.07); }
.phone-balance small { color: #aeb3c2; font-size: 0.34rem; }
.phone-balance strong { font-size: 0.85rem; }
.phone-chart { height: 2.5rem; display: flex; align-items: end; gap: 0.25rem; margin-top: 0.55rem; padding: 0.4rem; border-radius: 0.45rem; background: rgba(255,255,255,0.05); }
.phone-chart i { flex: 1; height: 45%; background: #a8b97c; }
.phone-chart i:nth-child(2) { height: 70%; }
.phone-chart i:nth-child(3) { height: 40%; }
.phone-chart i:nth-child(4) { height: 88%; background: #e59aad; }
.phone-chart i:nth-child(5) { height: 60%; }
.phone-chart i:nth-child(6) { height: 76%; }
.phone-pet { margin-top: 0.55rem; padding: 0.35rem; border-radius: 0.4rem; color: #202532; background: #cbd6a8; font-size: 0.45rem; text-align: center; }
.phone-pet span { display: block; font-size: 0.31rem; }

.project-body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.35rem 1.15rem;
    border-top: 0.34rem solid var(--card-accent);
}

.project-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.project-title-row h3 {
    margin: 0;
    max-width: 86%;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.project-title-row > span {
    padding-top: 0.15rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
}

.project-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.52;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin: 0.85rem 0 0;
    padding: 0;
    list-style: none;
}

.project-tags li {
    padding: 0.28rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.project-footer {
    min-height: 2.3rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: 0.68rem;
}

.project-footer strong { color: var(--strawberry-deep); }
.project-card-matcha .project-footer strong { color: var(--matcha-mid); }
.project-footer span, .project-footer a { color: var(--muted); font-weight: 700; }
.project-footer a { text-underline-offset: 0.25rem; }
.project-footer a:hover { color: var(--strawberry-deep); }

.action-section {
    padding: clamp(4rem, 6vw, 6rem) 0;
    background: var(--pink-soft);
}

.action-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
    border-radius: 1.15rem;
    background: rgba(255, 250, 240, 0.86);
    box-shadow: 0 24px 60px rgba(143, 38, 59, 0.1);
}

.action-pane {
    min-width: 0;
    min-height: 17rem;
    padding: clamp(1.8rem, 3.2vw, 2.8rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resume-pane { background: transparent; }
.contact-pane { border-left: 1px solid var(--line-strong); background: transparent; }
.action-pane .section-kicker { margin-bottom: 0.35rem; color: var(--strawberry-deep); }
.action-pane h2 { max-width: 500px; font-size: clamp(2.1rem, 3.5vw, 3.4rem); line-height: 0.98; }
.action-pane > div > p:last-child { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.86rem; }
.action-pane > .button { margin-top: auto; }
.contact-actions { width: 100%; display: flex; align-items: center; gap: 1.3rem; margin-top: auto; }
.contact-links { display: flex; gap: 1.25rem; }
.contact-links a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-underline-offset: 0.28rem; }

footer {
    padding: 1.65rem 0;
    color: var(--cream);
    background: var(--matcha-deep);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-wordmark { color: var(--cream); font-size: 1rem; letter-spacing: -0.02em; }
.footer-inner p { margin: 0; color: rgba(247, 240, 227, 0.68); font-size: 0.7rem; letter-spacing: 0.05em; }
.footer-links { justify-self: end; display: flex; gap: 1.25rem; }
.footer-links a { color: rgba(247, 240, 227, 0.8); font-size: 0.72rem; font-weight: 700; text-underline-offset: 0.25rem; }
.footer-links a:hover { color: var(--pink); }

.motion-ready .hero-line > span,
.motion-ready .hero-intro,
.motion-ready .hero-actions,
.motion-ready .hero-tags,
.motion-ready .hero-portrait-wrap {
    opacity: 0;
    transform: translateY(2rem);
}

.motion-ready .hero-portrait-wrap { transform: translate3d(2.5rem, 1rem, 0) rotate(2deg); }
.motion-ready.loaded .hero-line > span { opacity: 1; transform: none; transition: opacity 0.75s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.motion-ready.loaded .hero-line:nth-child(2) > span { transition-delay: 0.08s; }
.motion-ready.loaded .hero-line:nth-child(3) > span { transition-delay: 0.16s; }
.motion-ready.loaded .hero-line:nth-child(4) > span { transition-delay: 0.24s; }
.motion-ready.loaded .hero-intro,
.motion-ready.loaded .hero-actions,
.motion-ready.loaded .hero-tags { opacity: 1; transform: none; transition: opacity 0.65s ease, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1); }
.motion-ready.loaded .hero-intro { transition-delay: 0.34s; }
.motion-ready.loaded .hero-actions { transition-delay: 0.42s; }
.motion-ready.loaded .hero-tags { transition-delay: 0.5s; }
.motion-ready.loaded .hero-portrait-wrap { opacity: 1; transform: translate3d(0, calc(var(--hero-scroll) * -34px), 0); transition: opacity 0.85s 0.18s ease, transform 1.1s 0.18s cubic-bezier(0.16, 1, 0.3, 1); }

.motion-ready .reveal {
    opacity: 0;
    transform: translateY(1.75rem);
    transition: opacity 0.7s ease, transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.motion-ready .reveal.visible { opacity: 1; transform: none; }
.motion-ready .project-card.reveal:nth-child(even) { transition-delay: 0.1s; }

@media (max-width: 1024px) {
    .hero h1 { font-size: clamp(3.2rem, 6.6vw, 5.2rem); }
    .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.72fr); gap: 2rem; }
    .hero-portrait-wrap { width: min(100%, 24rem); }
    .timeline-card { grid-template-columns: 0.8fr 1.25fr 1.8fr; }
}

@media (max-width: 900px) {
    :root { --header-height: 4.6rem; }
    .menu-toggle { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        height: calc(100svh - var(--header-height));
        padding: 3rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.22s ease, visibility 0s linear 0.22s;
    }
    .nav-links.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
    .nav-links > a { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 2rem; font-weight: 400; letter-spacing: -0.03em; text-transform: none; }
    .nav-links > a::after { display: none; }
    .nav-links .nav-resume { margin: 0; justify-content: flex-start; border-bottom: 1px solid var(--line); }
    .menu-toggle[aria-expanded="true"] .menu-bars i:first-child { transform: translateY(0.18rem) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-bars i:last-child { transform: translateY(-0.18rem) rotate(-45deg); }

    .hero { min-height: auto; }
    .hero::after { background: linear-gradient(180deg, rgba(247, 240, 227, 0.98) 0 48%, rgba(247, 240, 227, 0.42) 74%, transparent); }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; padding-top: 4rem; }
    .hero-copy { max-width: 760px; }
    .hero h1 { font-size: clamp(3.6rem, 11vw, 6rem); }
    .hero-portrait-wrap { justify-self: center; width: min(80%, 28rem); }
    .hero-liquid-matcha { top: auto; right: -22rem; bottom: -4rem; width: 52rem; }
    .hero-liquid-strawberry { right: auto; bottom: -16rem; left: -13rem; width: 33rem; }
    .hero-orbit { top: auto; right: 2%; bottom: 4%; width: 34rem; }
    .portrait-caption { left: 3rem; }

    .timeline-card { grid-template-columns: 0.9fr 1.35fr 1.8fr; }
    .contact-actions { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
}

@media (max-width: 760px) {
    .section-shell,
    .nav-shell,
    .work .section-shell { width: min(100% - 1.5rem, 42rem); }
    .section-pad { padding-block: 4.5rem; }
    .wordmark { font-size: 1.05rem; }
    .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
    .hero h1 { font-size: clamp(3rem, 13.5vw, 4.25rem); line-height: 0.86; }
    .hero-intro { font-size: 1rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .button { width: 100%; }
    .hero-tags { gap: 0.35rem 0; }
    .hero-tags li { font-size: 0.66rem; }
    .hero-tags li + li::before { margin-inline: 0.52rem; }
    .hero-portrait-wrap { width: min(100%, 24rem); padding-inline: 1.25rem; }
    .portrait-caption { right: 0; left: 2rem; font-size: 0.54rem; }
    .marquee-track { width: calc(100% - 1.5rem); overflow: hidden; font-size: 0.58rem; letter-spacing: 0.11em; text-align: left; }

    .section-heading { gap: 0.8rem; margin-bottom: 2.8rem; }
    .section-number { width: 2.25rem; height: 2.25rem; font-size: 0.63rem; }
    .section-heading h2 { font-size: clamp(2.55rem, 11.5vw, 4rem); }

    .timeline-card { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; padding: 1.5rem 0; }
    .timeline-card::before { left: auto; right: 0; }
    .timeline-date,
    .timeline-card h3,
    .timeline-company,
    .timeline-card > p:last-child { grid-column: 1; grid-row: auto; }
    .timeline-card h3 { margin-top: 0.55rem; }
    .timeline-card > p:last-child { margin-top: 0.85rem; }
    .education-strip { grid-template-columns: 1fr; gap: 1rem; }
    .education-strip article + article { padding-top: 1rem; padding-left: 0; border-top: 1px solid var(--cream-line); border-left: 0; }

    .project-grid { grid-template-columns: 1fr; grid-auto-rows: 29rem; }
    .project-card { grid-template-rows: 13.25rem 1fr; }
    .project-title-row h3 { font-size: 1.45rem; }
    .phone-mockup { width: 37%; min-width: 8rem; }

    .action-card { grid-template-columns: 1fr; }
    .action-pane { min-height: 15rem; padding: 1.65rem; }
    .contact-pane { border-top: 1px solid var(--line-strong); border-left: 0; }
    .action-pane h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
    .contact-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0.75rem 1.2rem; }
    .action-pane .button { width: auto; }
    .contact-links { flex-wrap: wrap; gap: 0.8rem 1.2rem; }

    .footer-inner { grid-template-columns: 1fr; justify-items: start; }
    .footer-links { justify-self: start; }
}

@media (max-width: 430px) {
    .hero h1 { font-size: clamp(2.85rem, 13.7vw, 3.7rem); }
    .hero-portrait-wrap::after { right: -0.2rem; width: 7rem; height: 7rem; }
    .project-grid { grid-auto-rows: 29.5rem; }
    .project-body { padding-inline: 1.1rem; }
    .project-title-row h3 { font-size: 1.35rem; }
    .phone-mockup { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero-liquid,
    .hero-orbit,
    .hero-portrait-wrap { transform: none !important; }
    .motion-ready .hero-line > span,
    .motion-ready .hero-intro,
    .motion-ready .hero-actions,
    .motion-ready .hero-tags,
    .motion-ready .hero-portrait-wrap,
    .motion-ready .reveal { opacity: 1 !important; transform: none !important; }
}

@media (hover: none), (pointer: coarse) {
    .hero-liquid,
    .hero-orbit { transform: none; }
    .hero-portrait-wrap { transform: none; }
    .project-card:hover { transform: none; }
}
