:root {
    color-scheme: light;
    --shadow-grey: #242331;
    --deep-walnut: #533e2d;
    --golden-earth: #a27035;
    --camel: #b88b4a;
    --golden-sand: #ddca7d;
    --paper: #f7f4ee;
    --paper-deep: #efe8dc;
    --paper-panel: #fbf9f4;
    --ink: #242019;
    --muted: #6e655a;
    --line: rgba(83, 62, 45, 0.2);
    --line-strong: rgba(83, 62, 45, 0.36);
    --nav-height: 96px;
    --footer-height: 184px;
    --frame-radius: 10px;
    --page-gutter: clamp(24px, 4.2vw, 64px);
    --ease-out: cubic-bezier(0.2, 0.72, 0.18, 1);
}

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

html {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    scroll-snap-type: y mandatory;
    overflow-x: clip;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: "Geist", "SF Pro Display", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    font-weight: 500;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    background: url("/static/images/paper-texture.png") center / 560px auto repeat;
    mix-blend-mode: multiply;
    opacity: 0.045;
}

body.nav-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 14px;
    color: #fff;
    background: var(--shadow-grey);
    border-radius: 6px;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.snap-section,
.project-step,
.story-snap-point {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Navigation */
.landing-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    gap: 36px;
    padding: env(safe-area-inset-top) var(--page-gutter) 0;
    color: var(--ink);
    background: rgba(247, 244, 238, 0.94);
    border-bottom: 1px solid transparent;
    transition: border-color 220ms ease, background-color 220ms ease;
}

.landing-nav.is-scrolled {
    background: rgba(247, 244, 238, 0.98);
    border-bottom-color: var(--line);
}

.landing-brand {
    flex: 0 0 auto;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(22px, 2.7vw, 48px);
    min-width: 0;
    margin-left: auto;
}

.landing-nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.landing-nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--golden-earth);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms var(--ease-out);
}

.landing-nav-links a:hover::after,
.landing-nav-links a.is-active::after,
.landing-nav-links a[aria-current="location"]::after {
    transform: scaleX(1);
}

.landing-nav-links a.is-active {
    color: var(--golden-earth);
}

.landing-nav-toggle {
    display: none;
}

/* Hero */
.landing-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: calc(var(--nav-height) + 12px) var(--page-gutter) 60px;
    overflow: hidden;
}

.hero-key-visual {
    width: min(88vw, calc((100svh - var(--nav-height) - 78px) * 1.5), 1260px);
    margin: 0;
    transform: translateY(10px);
}

.hero-key-visual img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(36, 35, 49, 0.12));
}

.button {
    min-width: 216px;
    min-height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 30px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 220ms var(--ease-out);
}

.button:hover {
    transform: translateY(-3px);
}

.button-primary {
    color: #fff;
    background: var(--golden-earth);
    border-color: var(--golden-earth);
}

.button-primary:hover {
    background: var(--deep-walnut);
    border-color: var(--deep-walnut);
}

.button-secondary {
    color: var(--golden-earth);
    background: transparent;
    border-color: var(--golden-earth);
}

.button-secondary:hover {
    color: #fff;
    background: var(--golden-earth);
}

.hero-scroll-cue {
    position: absolute;
    bottom: clamp(24px, 4vh, 50px);
    left: 50%;
    width: 28px;
    height: 42px;
    border: 2px solid var(--golden-earth);
    border-radius: 16px;
    transform: translateX(-50%);
}

.hero-scroll-cue::after {
    content: "";
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--golden-earth);
    border-bottom: 2px solid var(--golden-earth);
    transform: translateX(-50%) rotate(45deg);
}

.hero-scroll-cue span {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 3px;
    height: 7px;
    border-radius: 2px;
    background: var(--golden-earth);
    transform: translateX(-50%);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.35; }
    50% { transform: translate(-50%, 12px); opacity: 1; }
}

/* Sticky story frames */
.story-stack {
    position: relative;
    z-index: 2;
    padding: 8vh 0 12vh;
    background: var(--paper-deep);
}

.story-snap-point {
    display: block;
    width: 1px;
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
}

.story-card {
    position: sticky;
    top: calc(var(--nav-height) + 14px);
    scroll-snap-align: none;
    width: calc(100% - 16px);
    min-height: calc(100svh - var(--nav-height) - 28px);
    margin: 0 auto 24vh;
    overflow: hidden;
    background: var(--paper-panel);
    border: 1px solid var(--line);
    border-radius: var(--frame-radius);
    box-shadow: 0 18px 44px rgba(83, 62, 45, 0.08);
    transform-origin: center top;
}

.story-card-about {
    z-index: 2;
}

.story-card-education {
    z-index: 3;
}

.story-card-news {
    z-index: 4;
    margin-bottom: 10vh;
}

.story-progress {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 64px;
    border-bottom: 1px solid var(--line);
    color: var(--deep-walnut);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.story-progress-index,
.story-progress-total {
    flex: 0 0 auto;
    line-height: 1;
}

.story-progress-index {
    color: var(--golden-earth);
}

.story-progress-track {
    position: relative;
    width: 240px;
    height: 3px;
    background: rgba(83, 62, 45, 0.16);
}

.story-progress-track::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: var(--golden-earth);
}

.story-card-about .story-progress-track::after { width: 33.333%; }
.story-card-education .story-progress-track::after { width: 50%; }
.story-card-news .story-progress-track::after { width: 66.667%; }

.about-bento {
    min-height: calc(100svh - var(--nav-height) - 101px);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: minmax(420px, 2fr) minmax(220px, 1fr);
    grid-auto-flow: dense;
}

.about-bento > * {
    min-width: 0;
    padding: clamp(34px, 4.8vw, 74px);
}

.about-bento-intro {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-bento-intro h2,
.contact-copy h2 {
    max-width: 72rem;
    margin: 0;
    color: var(--ink);
    font-size: clamp(3.2rem, 5.2vw, 5.35rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.about-bento-intro p {
    max-width: 680px;
    margin: 34px 0 0;
    font-size: clamp(1rem, 1.35vw, 1.28rem);
    line-height: 1.9;
}

.about-bento-cell {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 3.4vw, 52px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-bento-cell:nth-of-type(3) {
    border-right: 0;
}

.about-bento-cell h3 {
    margin: 0;
    font-size: clamp(1.2rem, 1.7vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

.about-bento-cell p {
    margin: 24px 0 0;
    font-size: clamp(1rem, 1.18vw, 1.18rem);
    line-height: 1.8;
}

.about-bento-cell strong {
    color: var(--golden-earth);
    font-weight: 700;
}

.about-bento-interests {
    grid-column: span 6;
    border-bottom: 0;
}

.skills-marquee {
    grid-column: span 6;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.skills-marquee-track {
    width: max-content;
    display: flex;
    align-items: center;
    animation: skills-marquee 18s linear infinite;
}

.skills-marquee-track span {
    flex: 0 0 auto;
    padding-right: 80px;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@keyframes skills-marquee {
    to { transform: translateX(-50%); }
}

/* Education — pure vertical timeline with an open detail column. */
.education-timeline-layout {
    height: calc(100svh - var(--nav-height) - 101px);
    min-height: min(620px, calc(100svh - var(--nav-height) - 101px));
    display: grid;
    grid-template-columns: 37.5% 62.5%;
}

.education-timeline-nav {
    --education-axis: clamp(62px, 6.5vw, 100px);
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(60px, 8vh, 100px) 0;
    border-right: 1px solid var(--line);
}

.education-timeline-line {
    position: absolute;
    top: clamp(102px, 13vh, 148px);
    bottom: clamp(102px, 13vh, 148px);
    left: var(--education-axis);
    width: 2px;
    background: var(--golden-earth);
    pointer-events: none;
}

.education-timeline-item {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 8px 32px 8px calc(var(--education-axis) + 44px);
    color: var(--ink);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.education-timeline-item::before,
.education-timeline-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: var(--education-axis);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 260ms var(--ease-out), height 260ms var(--ease-out), background-color 220ms ease;
}

.education-timeline-item::before {
    width: 16px;
    height: 16px;
    background: var(--golden-earth);
}

.education-timeline-item::after {
    width: 0;
    height: 0;
    border: 0 solid var(--paper-panel);
    background: var(--golden-earth);
}

.education-timeline-item.is-active::before {
    width: 34px;
    height: 34px;
    background: var(--paper-panel);
    border: 3px solid var(--golden-earth);
}

.education-timeline-item.is-active::after {
    width: 14px;
    height: 14px;
}

.education-timeline-item time {
    color: var(--golden-earth);
    font-size: clamp(1.25rem, 1.8vw, 1.8rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.025em;
}

.education-timeline-item > span {
    font-size: clamp(0.92rem, 1.25vw, 1.2rem);
    font-weight: 600;
    line-height: 1.45;
}

.education-timeline-item.is-active time {
    font-size: clamp(1.85rem, 2.5vw, 2.5rem);
}

.education-timeline-item.is-active > span {
    font-size: clamp(1.05rem, 1.42vw, 1.4rem);
    font-weight: 700;
}

.education-detail-deck {
    min-width: 0;
    max-height: calc(100svh - var(--nav-height) - 101px);
    overflow-y: auto;
    scrollbar-color: rgba(162, 112, 53, 0.48) transparent;
    scrollbar-width: thin;
}

.education-detail {
    padding: clamp(36px, 3.5vw, 54px) clamp(42px, 4.2vw, 66px) 48px;
}

.education-detail-header h2 {
    margin: 0;
    color: var(--deep-walnut);
    font-size: clamp(2.6rem, 3.8vw, 3.7rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.education-detail-subtitle {
    margin: 12px 0 0;
    color: var(--golden-earth);
    font-size: clamp(1.2rem, 1.8vw, 1.75rem);
    font-weight: 700;
}

.education-detail-intro {
    max-width: 880px;
    margin: 18px 0 0;
    color: var(--ink);
    font-size: clamp(0.92rem, 1.14vw, 1.1rem);
    font-weight: 500;
    line-height: 1.72;
}

.education-ruled-group {
    margin-top: clamp(24px, 3vh, 34px);
}

.education-ruled-group h3 {
    margin: 0;
    padding-bottom: 10px;
    color: var(--golden-earth);
    border-bottom: 1px solid var(--line-strong);
    font-size: clamp(1.05rem, 1.38vw, 1.35rem);
    font-weight: 700;
}

.education-record {
    min-width: 0;
    border-bottom: 1px solid var(--line);
}

.education-record:last-child {
    border-bottom: 0;
}

.education-record strong,
.education-record > span {
    color: var(--ink);
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
    font-weight: 650;
}

.education-record p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: clamp(0.72rem, 0.84vw, 0.82rem);
    font-weight: 500;
    line-height: 1.45;
}

.education-record-activity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    padding: 9px 0;
}

.education-record-activity > span::before {
    content: "— ";
    color: var(--golden-earth);
}

.education-record-course {
    display: grid;
    grid-template-columns: minmax(185px, 1.05fr) minmax(260px, 1.9fr) 48px;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.education-record-course > p {
    margin: 0;
}

.education-record-course > span {
    justify-self: end;
    font-size: 1.05rem;
}

/* News — one chronological entry per ruled row. */
.news-layout {
    height: calc(100svh - var(--nav-height) - 101px);
    min-height: min(620px, calc(100svh - var(--nav-height) - 101px));
    display: flex;
    flex-direction: column;
    padding: clamp(30px, 3.6vh, 44px) clamp(32px, 4.7vw, 72px) 28px;
    overflow-y: auto;
    scrollbar-color: rgba(162, 112, 53, 0.48) transparent;
    scrollbar-width: thin;
}

.news-heading {
    display: grid;
    grid-template-columns: minmax(370px, 0.7fr) 1.6fr;
    align-items: center;
    gap: 52px;
    padding-bottom: clamp(20px, 2.8vh, 32px);
}

.news-heading h2 {
    margin: 0;
    color: var(--deep-walnut);
    font-size: clamp(2.8rem, 4.1vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.news-heading p {
    margin: 0;
    color: var(--deep-walnut);
    font-size: clamp(0.98rem, 1.34vw, 1.3rem);
    font-weight: 500;
    line-height: 1.65;
}

.news-timeline {
    --news-date-column: clamp(112px, 11.8vw, 180px);
    --news-axis-column: clamp(68px, 7.6vw, 116px);
    --news-axis-center: clamp(34px, 3.8vw, 58px);
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-timeline::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 38px;
    bottom: 38px;
    left: calc(var(--news-date-column) + var(--news-axis-center));
    width: 2px;
    background: var(--golden-earth);
}

.news-timeline-item {
    position: relative;
    z-index: 1;
    min-height: 70px;
    flex: 1 0 auto;
    display: grid;
    grid-template-columns: var(--news-date-column) var(--news-axis-column) minmax(0, 1fr);
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.news-timeline-item:last-child {
    border-bottom: 0;
}

.news-timeline-item time {
    color: var(--golden-earth);
    font-size: clamp(1rem, 1.42vw, 1.38rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.news-timeline-node {
    position: relative;
    justify-self: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--golden-earth);
    border-radius: 50%;
    background: var(--paper-panel);
}

.news-timeline-node::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--golden-earth);
    transform: translate(-50%, -50%);
}

.news-entry {
    min-width: 0;
    padding-right: 18px;
}

.news-entry p {
    margin: 0;
    color: var(--ink);
    font-size: clamp(0.88rem, 1.12vw, 1.08rem);
    font-weight: 560;
    line-height: 1.46;
}

.news-entry strong {
    font-weight: 700;
}

.news-entry .news-entry-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: clamp(0.72rem, 0.87vw, 0.84rem);
    font-weight: 500;
}

/* Projects */
.projects-section {
    --project-count: 1;
    position: relative;
    z-index: 4;
    min-height: calc(var(--project-count) * 100svh);
    background: var(--paper);
}

.projects-stage {
    position: sticky;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    background: var(--paper);
}

.gsap-ready .projects-stage {
    position: relative;
}

.project-orbit {
    position: absolute;
    top: 18%;
    left: 5%;
    width: 90%;
    height: 53%;
    border: 2px solid rgba(83, 62, 45, 0.17);
    border-radius: 50%;
    transform: perspective(900px) rotateX(66deg);
    transform-origin: center;
}

.project-orbit::before,
.project-orbit::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 18%;
    height: 8px;
    background: var(--paper);
}

.project-orbit::before { left: 29%; }
.project-orbit::after { right: 17%; }

.project-ring {
    position: absolute;
    top: 37%;
    left: 56%;
    width: 1px;
    height: 1px;
    perspective: 1600px;
    transform-style: preserve-3d;
}

.project-loading,
.project-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(480px, 80vw);
    color: var(--muted);
    text-align: center;
    transform: translate(-50%, -50%);
}

.project-card {
    position: absolute;
    top: 0;
    left: 0;
    width: clamp(320px, 28vw, 430px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--paper-deep);
    border: 2px solid rgba(83, 62, 45, 0.24);
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(36, 35, 49, 0.14);
    transform-style: preserve-3d;
    transform-origin: center;
    transition: transform 800ms var(--ease-out), border-color 420ms ease, filter 420ms ease, opacity 420ms ease;
    will-change: transform, opacity;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(36, 35, 49, 0.08);
    pointer-events: none;
    transition: background-color 420ms ease;
}

.project-card.is-active {
    border-color: var(--golden-earth);
    filter: saturate(1.04) contrast(1.02);
}

.project-card.is-active::after {
    background: transparent;
}

.project-card.is-active:hover img {
    transform: scale(1.035);
}

.project-card:not(.is-active) {
    pointer-events: none;
}

.project-fixed-copy {
    position: absolute;
    bottom: clamp(112px, 12.8vh, 136px);
    left: var(--page-gutter);
    z-index: 12;
    width: min(900px, 62vw);
}

.project-counter {
    color: var(--golden-earth);
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.project-progress {
    width: min(386px, 52vw);
    height: 3px;
    margin: 14px 0 24px;
    overflow: hidden;
    background: rgba(83, 62, 45, 0.15);
}

.project-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--golden-earth);
    transition: width 500ms var(--ease-out);
}

.project-fixed-copy h2 {
    max-width: 900px;
    margin: 0;
    color: var(--deep-walnut);
    font-size: clamp(2.2rem, 3.1vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.project-fixed-copy h2 .project-word {
    display: inline-block;
    will-change: transform, opacity;
}

.project-fixed-copy > p:not(.project-scroll-hint) {
    margin: 12px 0 0;
    color: var(--golden-earth);
    font-size: clamp(1rem, 1.4vw, 1.34rem);
    font-weight: 700;
}

.project-scroll-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.project-scroll-hint span {
    position: relative;
    width: 16px;
    height: 24px;
    border: 1.5px solid currentColor;
    border-radius: 8px;
}

.project-scroll-hint span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 50%;
    width: 2px;
    height: 5px;
    background: currentColor;
    transform: translateX(-50%);
}

.project-steps {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.project-step {
    height: 100svh;
}

/* Contact and footer */
.contact-section {
    position: relative;
    z-index: 6;
    min-height: calc(100svh - var(--nav-height) - var(--footer-height));
    display: grid;
    align-items: center;
    padding: clamp(54px, 7vh, 86px) var(--page-gutter);
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.contact-layout {
    width: 100%;
    max-width: 1386px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    margin: 0 auto;
}

.contact-copy {
    min-width: 0;
    padding-right: clamp(40px, 4vw, 62px);
}

.contact-copy h2 {
    font-size: clamp(3.5rem, 5.6vw, 5.8rem);
}

.contact-copy > p {
    margin: 46px 0 0;
    padding-top: 34px;
    border-top: 1px solid var(--camel);
    font-size: clamp(1.08rem, 1.55vw, 1.46rem);
    line-height: 1.8;
}

.contact-copy > a {
    display: inline-block;
    margin-top: 34px;
    color: var(--golden-earth);
    border-bottom: 2px solid currentColor;
    font-size: clamp(1.35rem, 2.05vw, 2rem);
    font-weight: 700;
}

.resume-form {
    min-width: 0;
    padding-left: clamp(54px, 5vw, 80px);
    border-left: 2px solid var(--camel);
}

.resume-form h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.85rem, 2.5vw, 2.65rem);
    font-weight: 700;
    line-height: 1.2;
}

.resume-form > p:not(.resume-status) {
    margin: 24px 0 38px;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.resume-form input {
    width: 100%;
    min-height: 78px;
    padding: 18px 24px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    font-weight: 600;
    outline: 0;
}

.resume-form input:focus {
    border-color: var(--golden-earth);
    box-shadow: 0 0 0 3px rgba(162, 112, 53, 0.12);
}

.resume-form .button {
    width: 100%;
    min-height: 78px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.resume-form .button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.resume-status {
    min-height: 26px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.resume-status.is-error {
    color: #8b3d2f;
}

.resume-status.is-success {
    color: #466341;
}

.landing-footer {
    position: relative;
    z-index: 7;
    height: var(--footer-height);
    min-height: var(--footer-height);
    display: grid;
    grid-template-columns: 1fr auto auto 1.1fr 1.35fr;
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    padding: 34px var(--page-gutter);
    color: #fff;
    background: var(--shadow-grey);
    font-weight: 600;
    scroll-snap-align: end;
    scroll-snap-stop: always;
}

.landing-footer a,
.landing-footer span {
    white-space: nowrap;
}

.landing-footer a {
    transition: color 180ms ease;
}

.landing-footer a:hover {
    color: var(--golden-sand);
}

/* Desktop tightening */
@media (max-width: 1180px) {
    :root {
        --nav-height: 84px;
    }

    .landing-nav {
        gap: 22px;
    }

    .landing-nav-links {
        gap: 20px;
    }

    .landing-nav-links a {
        font-size: 0.9rem;
    }

    .button {
        min-width: 176px;
    }

    .about-bento > * {
        padding: 42px;
    }

    .education-timeline-layout {
        grid-template-columns: 35% 65%;
    }

    .education-record-course {
        grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.7fr) 44px;
    }

    .news-heading {
        grid-template-columns: minmax(310px, 0.7fr) 1.6fr;
    }

    .landing-footer {
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
    }
}

/* Tablet and mobile */
@media (max-width: 820px) {
    :root {
        --nav-height: 72px;
        --page-gutter: 24px;
    }

    html {
        scroll-snap-type: y proximity;
    }

    .landing-nav {
        min-height: var(--nav-height);
        padding-right: 20px;
        padding-left: 20px;
    }

    .landing-nav-toggle {
        position: relative;
        width: 42px;
        height: 42px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-left: auto;
        padding: 0;
        color: var(--ink);
        background: transparent;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
    }

    .landing-nav-toggle span:not(.visually-hidden) {
        width: 18px;
        height: 2px;
        background: currentColor;
        transition: transform 220ms ease;
    }

    .landing-nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(4.5px) rotate(45deg);
    }

    .landing-nav-toggle[aria-expanded="true"] span:nth-child(2) {
        transform: translateY(-4.5px) rotate(-45deg);
    }

    .landing-nav-links {
        position: fixed;
        top: var(--nav-height);
        right: 12px;
        left: 12px;
        max-height: calc(100svh - var(--nav-height) - 12px);
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        padding: 14px;
        overflow-y: auto;
        background: var(--paper-panel);
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 20px 44px rgba(83, 62, 45, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 200ms ease, visibility 200ms ease, transform 240ms var(--ease-out);
    }

    .landing-nav-links.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .landing-nav-links a {
        min-height: 52px;
        padding: 0 14px;
        border-bottom: 1px solid var(--line);
    }

    .landing-nav-links a::after {
        right: 14px;
        bottom: 8px;
        left: 14px;
    }

    .landing-hero {
        min-height: 100svh;
        padding: calc(var(--nav-height) + 24px) 0 62px;
    }

    .button {
        min-width: 0;
        min-height: 58px;
        padding: 15px 20px;
    }

    .hero-key-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(185vw, 720px);
        max-width: none;
        transform: translate(-50%, -46%);
    }

    .hero-key-visual img {
        max-height: none;
    }

    .hero-scroll-cue {
        display: none;
    }

    .story-stack {
        padding: 34px 0 68px;
    }

    .story-card {
        position: relative;
        top: auto;
        width: calc(100% - 24px);
        min-height: auto;
        margin-bottom: 28px;
        box-shadow: 0 12px 30px rgba(83, 62, 45, 0.07);
    }

    .story-progress {
        height: 54px;
        gap: 10px;
        padding: 0 22px;
        font-size: 0.78rem;
    }

    .story-progress-track {
        width: 120px;
        height: 2px;
    }

    .about-bento {
        min-height: 0;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .about-bento > * {
        grid-column: 1;
        padding: 36px 26px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about-bento-intro h2,
    .contact-copy h2 {
        font-size: clamp(2.7rem, 13vw, 4.2rem);
    }

    .about-bento-intro p {
        margin-top: 26px;
        font-size: 1rem;
    }

    .about-bento-cell p {
        margin-top: 16px;
    }

    .about-bento-cell h3 {
        white-space: normal;
    }

    .skills-marquee {
        min-height: 128px;
        padding: 0;
        border-bottom: 0;
    }

    .skills-marquee-track span {
        padding-right: 52px;
        font-size: 1.3rem;
    }

    .education-timeline-layout {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .education-timeline-nav {
        --education-axis: 34px;
        min-height: 342px;
        gap: 22px;
        padding: 32px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .education-timeline-line {
        top: 76px;
        bottom: 76px;
    }

    .education-timeline-item {
        min-height: 76px;
        gap: 8px;
        padding: 6px 22px 6px 70px;
    }

    .education-timeline-item time,
    .education-timeline-item.is-active time {
        font-size: 1.35rem;
    }

    .education-timeline-item > span,
    .education-timeline-item.is-active > span {
        font-size: 0.9rem;
    }

    .education-timeline-item.is-active::before {
        width: 28px;
        height: 28px;
    }

    .education-timeline-item.is-active::after {
        width: 11px;
        height: 11px;
    }

    .education-detail-deck {
        max-height: none;
        overflow: visible;
    }

    .education-detail {
        padding: 38px 24px 44px;
    }

    .education-detail-header h2 {
        font-size: clamp(2.4rem, 12vw, 3.5rem);
    }

    .education-detail-intro {
        font-size: 0.92rem;
    }

    .education-record-activity {
        gap: 16px;
    }

    .education-record-course {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 16px;
        padding: 13px 0;
    }

    .education-record-course > p {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .education-record-course > span {
        grid-column: 2;
        grid-row: 1;
    }

    .news-layout {
        height: auto;
        min-height: 0;
        padding: 38px 22px 40px;
        overflow: visible;
    }

    .news-heading {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 26px;
    }

    .news-heading h2 {
        font-size: clamp(2.5rem, 12vw, 3.6rem);
    }

    .news-heading p {
        font-size: 0.92rem;
    }

    .news-timeline {
        --news-date-column: 74px;
        --news-axis-column: 40px;
        --news-axis-center: 20px;
    }

    .news-timeline::before {
        top: 34px;
        bottom: 34px;
    }

    .news-timeline-item {
        min-height: 84px;
        align-items: start;
        padding: 18px 0;
    }

    .news-timeline-item time {
        padding-top: 4px;
        font-size: 0.84rem;
    }

    .news-timeline-node {
        width: 18px;
        height: 18px;
        margin-top: 2px;
    }

    .news-timeline-node::after {
        width: 7px;
        height: 7px;
    }

    .news-entry {
        padding-right: 0;
    }

    .news-entry p {
        font-size: 0.88rem;
    }

    .news-entry .news-entry-note {
        margin-top: 7px;
        font-size: 0.76rem;
    }

    .project-orbit {
        top: 13%;
        left: -23%;
        width: 146%;
        height: 46%;
    }

    .project-ring {
        top: 34%;
        left: 50%;
    }

    .project-card {
        width: min(76vw, 350px);
    }

    .project-fixed-copy {
        bottom: 44px;
        width: calc(100% - 48px);
    }

    .project-fixed-copy h2 {
        font-size: clamp(2rem, 9.5vw, 3.2rem);
    }

    .project-progress {
        width: 220px;
    }

    .project-scroll-hint {
        margin-top: 18px;
    }

    .contact-section {
        min-height: auto;
        padding-top: 84px;
        padding-bottom: 84px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .contact-copy {
        padding-right: 0;
    }

    .contact-copy > p {
        margin-top: 34px;
        padding-top: 28px;
        font-size: 1.05rem;
    }

    .contact-copy > a {
        margin-top: 26px;
        font-size: clamp(1.2rem, 6vw, 1.65rem);
    }

    .resume-form {
        padding: 0;
        border: 0;
    }

    .resume-form input,
    .resume-form .button {
        min-height: 64px;
    }

    .landing-footer {
        height: auto;
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 18px 28px;
        padding-top: 42px;
        padding-bottom: 42px;
        font-size: 0.82rem;
    }
}

@media (max-width: 440px) {
    .landing-nav-links {
        grid-template-columns: 1fr;
    }

    .story-progress-track {
        width: 92px;
    }

    .project-fixed-copy {
        bottom: 34px;
    }

    .project-scroll-hint {
        margin-top: 16px;
    }
}

/* Reduced motion keeps all content usable and removes pinned travel. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .story-card {
        position: relative;
        top: auto;
    }
}

.reduced-motion .projects-section {
    min-height: auto !important;
    padding: 110px var(--page-gutter);
}

.reduced-motion .projects-stage {
    position: relative !important;
    height: auto;
    overflow: visible;
}

.reduced-motion .project-orbit,
.reduced-motion .project-steps,
.reduced-motion .project-fixed-copy {
    display: none;
}

.reduced-motion .project-ring {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
    perspective: none;
}

.reduced-motion .project-card {
    position: relative;
    width: 100%;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
