:root {
  --ink: #1b1d1a;
  --ink-soft: #555950;
  --paper: #f3f0e9;
  --paper-deep: #e6e0d5;
  --white: #faf9f5;
  --sage: #526257;
  --sage-dark: #35443b;
  --sand: #b9a48e;
  --line: rgba(27, 29, 26, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --page: min(1440px, calc(100vw - 64px));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 84px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--sage); }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 1000;
  padding: 12px 18px; color: var(--white); background: var(--ink); border-radius: 999px;
}
.skip-link:focus { top: 16px; }
.page-shell { width: var(--page); margin-inline: auto; }
.section { padding: 132px 0; }
.section--compact { padding: 88px 0; }
.section--dark { color: var(--white); background: var(--ink); }
.section--sage { color: var(--white); background: var(--sage-dark); }
.section-rule { border-top: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.display-title {
  margin: 0; max-width: 1080px; font-size: clamp(46px, 7.3vw, 112px); line-height: .94;
  letter-spacing: -.065em; font-weight: 620;
}
.display-title em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.05em; }
.section-title {
  margin: 0; font-size: clamp(38px, 5vw, 74px); line-height: 1.02; letter-spacing: -.055em; font-weight: 560;
}
.section-title em { font-family: Georgia, serif; font-weight: 400; }
.section-copy { max-width: 680px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 22px); line-height: 1.75; }
.section--dark .section-copy, .section--sage .section-copy { color: rgba(250,249,245,.7); }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-weight: 650; }
.text-link::after { content: "↗"; transition: transform .3s var(--ease); }
.text-link:hover::after { transform: translate(4px, -4px); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  cursor: pointer; transition: transform .35s var(--ease), background .35s, color .35s, border-color .35s;
  font-size: 14px; font-weight: 700;
}
.button:hover { transform: translateY(-2px); }
.button--light { color: var(--ink); background: var(--white); }
.button--dark { color: var(--white); background: var(--ink); }
.button--ghost { color: inherit; background: transparent; border-color: currentColor; }
.button--arrow::after { content: "↗"; font-size: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ink); transition: height .4s var(--ease), background .4s, color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
body[data-page="home"] .site-header:not(.is-scrolled) { color: var(--white); }
.site-header.is-scrolled, body:not([data-page="home"]) .site-header {
  height: 68px; background: rgba(243, 240, 233, .86); border-bottom-color: var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header-inner { width: var(--page); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 750; letter-spacing: -.03em; }
.brand-mark { position: relative; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.brand small { font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; opacity: .65; }
.desktop-nav { display: flex; align-items: center; gap: 34px; }
.nav-link { position: relative; padding: 8px 0; font-size: 13px; font-weight: 650; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .menu-toggle {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid currentColor; border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 750;
}
.menu-toggle { display: none; width: 42px; padding: 0; }
.menu-toggle span, .menu-toggle::after { content: ""; width: 17px; height: 1px; background: currentColor; transition: transform .3s, margin .3s; }
.menu-toggle span { margin-bottom: 5px; }
.menu-toggle[aria-expanded="true"] span { transform: translateY(3px) rotate(45deg); margin: 0; }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-1px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; display: grid; align-content: center; visibility: hidden;
  padding: 100px 32px 48px; color: var(--white); background: var(--ink); opacity: 0; transition: .35s;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu a { font-size: clamp(38px, 12vw, 70px); line-height: 1.25; letter-spacing: -.05em; }
.mobile-menu small { margin-top: 48px; color: rgba(255,255,255,.55); }

/* Home hero */
.hero { position: relative; min-height: 100svh; color: var(--white); background: #262723; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; object-position: center; transform: scale(1.035); animation: hero-settle 1.8s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,11,.38) 0%, rgba(11,13,11,.08) 34%, rgba(11,13,11,.72) 100%);
}
.hero-content { position: relative; z-index: 2; width: var(--page); min-height: 100svh; margin: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 48px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #c5d0b9; box-shadow: 0 0 0 7px rgba(197,208,185,.16); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(260px, 3fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
.hero-lockup { min-width: 0; }
.hero-overline { display: block; margin-bottom: 20px; color: rgba(255,255,255,.68); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 1000px; font-weight: 560; }
.hero-name { display: block; margin-bottom: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(82px, 9vw, 142px); line-height: .72; letter-spacing: -.08em; font-weight: 400; }
.hero-discipline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(12px, 1.8vw, 28px); font-size: clamp(46px, 5.8vw, 88px); line-height: .92; letter-spacing: -.065em; }
.hero-discipline b { font-family: Georgia, serif; font-size: .72em; font-weight: 400; color: #c8b49a; }
.hero-aside { align-self: end; display: grid; gap: 28px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.34); }
.hero-folio { color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.5; letter-spacing: .16em; }
.hero-lead { max-width: 420px; margin: 0; font-size: clamp(14px, 1.05vw, 16px); color: rgba(255,255,255,.82); }
.hero-actions { justify-self: start; }
.scroll-cue { position: absolute; right: 32px; bottom: 48%; z-index: 2; display: flex; align-items: center; gap: 14px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: rgba(255,255,255,.55); animation: scroll-line 1.8s infinite; transform-origin: top; }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.11); } to { opacity: 1; transform: scale(1.035); } }
@keyframes scroll-line { 0%,100% { transform: scaleY(.2); opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } }

/* Intro */
.intro-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; align-items: start; }
.intro-statement { margin: 0; font-size: clamp(32px, 4.25vw, 65px); line-height: 1.08; letter-spacing: -.05em; }
.intro-statement em { font-family: Georgia, serif; font-weight: 400; color: var(--sage); }
.intro-side { padding-top: 12px; }
.intro-side p { margin: 0 0 42px; font-size: 19px; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 22px 12px 0 0; }
.fact strong { display: block; font-size: clamp(28px, 3vw, 46px); letter-spacing: -.05em; }
.fact span { font-size: 12px; color: var(--ink-soft); }

/* Projects */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 64px; }
.projects-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 60px 24px; }
.project-card { grid-column: span 6; min-width: 0; }
.project-card--wide { grid-column: span 8; }
.project-card--portrait { grid-column: span 4; }
.project-card--landscape { grid-column: span 7; }
.project-card:nth-child(4n) { margin-top: 70px; }
.project-card__link { display: block; }
.project-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius-md); background: var(--paper-deep); }
.project-card--portrait .project-card__media { aspect-ratio: 4 / 5; }
.project-card--wide .project-card__media { aspect-ratio: 16 / 9; }
.project-card__media img { height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .7s; }
.project-card--portrait .project-card__media img { object-position: 50% 20%; }
.project-card__overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.32)); opacity: 0; transition: opacity .4s; }
.project-card__view { display: inline-grid; place-items: center; width: 78px; height: 78px; color: var(--ink); background: var(--white); border-radius: 50%; font-size: 12px; font-weight: 750; transform: translateY(12px); transition: transform .45s var(--ease); }
.project-card__link:hover img { transform: scale(1.035); }
.project-card__link:hover .project-card__overlay { opacity: 1; }
.project-card__link:hover .project-card__view { transform: translateY(0); }
.project-card__info { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); margin-top: 16px; }
.project-card__info h3 { margin: 0 0 4px; font-size: clamp(21px, 2vw, 30px); line-height: 1.2; letter-spacing: -.035em; }
.project-card__info p, .project-card__info span { margin: 0; color: var(--ink-soft); font-size: 12px; }
.project-card__index { font-variant-numeric: tabular-nums; }
.project-card[hidden] { display: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 54px; }
.filter-button { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; transition: .3s; }
.filter-button:hover, .filter-button.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }

/* Process */
.process-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; align-items: start; }
.process-title-wrap { position: sticky; top: 120px; }
.process-list { border-top: 1px solid rgba(255,255,255,.2); }
.process-item { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.process-item span { color: rgba(255,255,255,.45); font-size: 12px; }
.process-item h3 { margin: 0 0 8px; font-size: 26px; font-weight: 500; }
.process-item p { margin: 0; color: rgba(255,255,255,.62); }

.skill-strip { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); }
.skill-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.skill-track span { display: inline-flex; align-items: center; gap: 24px; padding-right: 24px; font-size: clamp(24px, 3vw, 42px); letter-spacing: -.04em; white-space: nowrap; }
.skill-track span::after { content: "✦"; color: var(--sand); font-size: .65em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Editorial inner pages */
.page-hero { padding: 190px 0 90px; border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; }
.page-hero p { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: 18px; }
.page-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 34px; margin-top: 60px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid rgba(82,98,87,.35); border-radius: var(--radius-sm); color: var(--sage-dark); background: rgba(82,98,87,.08); font-size: 13px; }
.notice::before { content: "i"; flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid currentColor; border-radius: 50%; font-family: Georgia, serif; }

/* Project detail */
.reading-progress { position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 3px; transform: scaleX(0); transform-origin: left; background: #a9b59e; }
.project-hero { position: relative; min-height: 92svh; color: var(--white); overflow: hidden; background: var(--ink); }
.project-hero__media { position: absolute; inset: 0; }
.project-hero__media img { height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.72)); }
.project-hero__content { position: relative; z-index: 2; width: var(--page); min-height: 92svh; margin: auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 150px 0 55px; }
.project-hero__content h1 { max-width: 1100px; margin: 0; font-size: clamp(52px, 8vw, 116px); line-height: .92; letter-spacing: -.07em; font-weight: 560; }
.project-hero__content h1 em { display: block; font-family: Georgia, serif; font-weight: 400; }
.project-hero__meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.35); font-size: 12px; }
.project-overview { display: grid; grid-template-columns: .75fr 1.25fr; gap: 9vw; }
.project-overview__meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-content: start; gap: 0 28px; }
.meta-item { padding: 18px 0; border-top: 1px solid var(--line); }
.meta-item dt { margin-bottom: 5px; color: var(--ink-soft); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.meta-item dd { margin: 0; font-size: 14px; }
.project-overview__story { font-size: clamp(26px, 3.2vw, 48px); line-height: 1.25; letter-spacing: -.045em; }
.project-overview__story p { margin: 0; }
.chapter { display: grid; grid-template-columns: .36fr 1.64fr; gap: 7vw; padding: 110px 0; border-top: 1px solid var(--line); }
.chapter__label { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.chapter__body h2 { max-width: 850px; margin: 0 0 34px; font-size: clamp(36px, 5vw, 72px); line-height: 1.02; letter-spacing: -.055em; font-weight: 520; }
.chapter__body > p { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: 19px; }
.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--paper-deep); }
.media-frame img { cursor: zoom-in; transition: transform .7s var(--ease); }
.media-frame:hover img { transform: scale(1.015); }
.media-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; color: var(--ink-soft); font-size: 11px; }
.full-bleed { width: 100%; padding: 0 24px; }
.full-bleed .media-frame { border-radius: var(--radius-lg); }
.gallery-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 48px 24px; }
.gallery-item { grid-column: span 6; }
.gallery-item:nth-child(3n+1) { grid-column: span 12; }
.gallery-item img { aspect-ratio: 16/10; object-fit: cover; }
.drawing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.drawing-grid img { height: 100%; object-fit: contain; background: white; }
.board-gallery { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.board-gallery .media-frame:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 760px; margin: auto; }
.board-gallery img { background: var(--paper-deep); }
.material-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 50px; margin-top: 60px; }
.swatches { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.swatch { aspect-ratio: 1.3; display: flex; align-items: end; padding: 15px; border-radius: var(--radius-sm); font-size: 11px; }
.swatch:nth-child(1) { color: var(--white); background: #2d2d2a; }
.swatch:nth-child(2) { background: #b7aa9a; }
.swatch:nth-child(3) { background: #e4e0d8; }
.swatch:nth-child(4) { color: var(--white); background: #345f54; }
.project-next { padding: 100px 0 36px; color: var(--white); background: var(--sage-dark); }
.project-next a { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.project-next h2 { max-width: 1000px; margin: 18px 0 0; font-size: clamp(48px, 7vw, 106px); line-height: .95; letter-spacing: -.065em; font-weight: 520; }
.project-next__arrow { font-size: 60px; transition: transform .4s var(--ease); }
.project-next a:hover .project-next__arrow { transform: translate(12px,-12px); }

/* About / resume */
.about-lead { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8vw; }
.portrait-frame { position: sticky; top: 110px; overflow: hidden; border-radius: var(--radius-md); background: #dedbd3; }
.portrait-frame img { aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.about-copy .section-title { margin-bottom: 42px; }
.about-copy p { color: var(--ink-soft); font-size: 19px; }
.about-signature { margin-top: 48px; font-family: Georgia, serif; font-size: 42px; font-style: italic; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 160px .7fr 1.3fr; gap: 32px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-item time { color: var(--ink-soft); font-size: 12px; }
.timeline-item h3 { margin: 0; font-size: 21px; }
.timeline-item p { margin: 0; color: var(--ink-soft); }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.skill-card { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: space-between; }
.skill-card span { color: var(--ink-soft); font-size: 11px; }
.skill-card h3 { margin: 0; font-size: 28px; font-weight: 520; letter-spacing: -.035em; }
.software-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.software-list span { padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.resume-layout { display: grid; grid-template-columns: .38fr 1.62fr; gap: 7vw; align-items: start; }
.resume-aside { position: sticky; top: 110px; }
.resume-viewer { overflow: hidden; min-height: 1080px; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.resume-viewer object { width: 100%; height: 1080px; border: 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.contact-details { display: grid; gap: 22px; margin-top: 52px; }
.contact-detail { padding-top: 18px; border-top: 1px solid var(--line); }
.contact-detail small { display: block; margin-bottom: 6px; color: var(--ink-soft); }
.contact-detail a { font-size: clamp(20px,2vw,28px); letter-spacing: -.03em; }
.contact-form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { min-height: 24px; color: var(--sage-dark); font-size: 13px; }

/* Motion system inspired by interactive graphic canvases */
.motion-preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto;
  padding: 28px 32px; color: var(--white); background: #101210; clip-path: inset(0 0 0 0);
  transition: clip-path .9s var(--ease), visibility .9s;
}
.motion-preloader.is-complete { clip-path: inset(0 0 100% 0); visibility: hidden; }
.motion-preloader__top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .16em; }
.motion-preloader__word { align-self: center; font-size: clamp(58px, 9vw, 138px); line-height: .78; letter-spacing: -.075em; font-weight: 600; }
.motion-preloader__word i { margin-left: 10vw; font-family: Georgia, serif; font-weight: 400; color: #b9c9b9; }
.motion-preloader__bottom { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 14px; font-size: 11px; font-variant-numeric: tabular-nums; }
.motion-preloader__bottom div { height: 1px; background: rgba(255,255,255,.18); }
.motion-preloader__bottom i { display: block; width: 100%; height: 1px; background: var(--white); transform: scaleX(0); transform-origin: left; }
.page-transition { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; color: var(--white); background: var(--sage-dark); transform: scaleY(0); transform-origin: bottom; transition: transform .58s var(--ease); pointer-events: none; }
.page-transition span { font-family: Georgia, serif; font-size: clamp(80px, 15vw, 220px); opacity: .16; }
body.is-page-leaving .page-transition { transform: scaleY(1); }
.pointer-glow { position: fixed; left: -190px; top: -190px; z-index: 120; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(195,177,146,.12), transparent 68%); pointer-events: none; mix-blend-mode: screen; }
.motion-cursor { position: fixed; left: -7px; top: -7px; z-index: 900; width: 14px; height: 14px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(25,27,24,.42); pointer-events: none; transition: width .3s var(--ease), height .3s var(--ease), left .3s var(--ease), top .3s var(--ease), background .3s, border-color .3s; backdrop-filter: blur(4px); }
.motion-cursor span { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); font-size: 9px; font-weight: 800; letter-spacing: .1em; opacity: 0; transition: opacity .2s; }
.motion-cursor.is-view { left: -36px; top: -36px; width: 72px; height: 72px; border-color: rgba(255,255,255,.45); background: rgba(35,45,38,.82); }
.motion-cursor.is-view span { opacity: 1; }
.motion-cursor.is-link { left: -15px; top: -15px; width: 30px; height: 30px; background: rgba(82,98,87,.64); }
.ambient-flow { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.ambient-flow--hero { opacity: .8; mask-image: linear-gradient(to bottom, transparent 12%, #000 35%, #000); }
.ambient-flow--stage { z-index: 1; opacity: .95; }
.hero-media { z-index: 0; }
.hero::after { z-index: 1; }
.hero-content { z-index: 3; opacity: var(--hero-fade, 1); will-change: transform, opacity; }
.scroll-cue { z-index: 3; }
.project-hero__media { z-index: 0; }
.project-hero::after { z-index: 1; }
.project-hero__content { z-index: 3; }
.hero-gradient {
  color: transparent; background: linear-gradient(100deg, #fff 5%, #fff 38%, #d5c0a5 67%, #b8cebd 100%);
  background-size: 180% 100%; background-clip: text; -webkit-background-clip: text;
  animation: title-shimmer 6s ease-in-out infinite alternate;
}
.hero-suffix { display: inline-block; }
@keyframes title-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.12) 48%, transparent 61%); transform: translateX(-120%); animation: hero-scan 7s 2s infinite var(--ease); pointer-events: none; }
@keyframes hero-scan { 0%,60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(460px circle at var(--pointer-x, 75%) var(--pointer-y, 30%), rgba(82,98,87,.15), transparent 72%); transform: translateY(var(--page-shift,0)); }
.page-hero > * { position: relative; z-index: 1; }

.motion-lab { padding: 132px 0; background: var(--paper); }
.motion-stage { position: relative; min-height: min(780px, 82svh); overflow: hidden; color: var(--white); background: #0d100e; border: 1px solid rgba(27,29,26,.18); border-radius: 30px; isolation: isolate; box-shadow: 0 40px 100px rgba(20,22,19,.16); }
.motion-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 52% 62%, rgba(66,92,75,.12), transparent 40%), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)); pointer-events: none; }
.motion-stage__grid { position: absolute; inset: 0; z-index: 1; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(circle at center, #000, transparent 78%); }
.motion-stage__top { position: absolute; top: 24px; left: 26px; right: 26px; z-index: 4; display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .15em; color: rgba(255,255,255,.55); }
.motion-stage__content { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; min-height: min(780px, 82svh); padding: 10% 9%; }
.motion-stage__content h2 { margin: 0; max-width: 900px; font-size: clamp(64px, 9vw, 134px); line-height: .84; letter-spacing: -.075em; font-weight: 560; }
.motion-stage__content h2 em { font-family: Georgia, serif; font-weight: 400; color: #c9b598; }
.motion-stage__indent { display: inline-block; margin-left: 9vw; }
.motion-stage__content > p:last-child { max-width: 520px; margin: 44px 0 0 auto; color: rgba(255,255,255,.58); font-size: 13px; letter-spacing: .04em; }
.motion-plane { position: absolute; z-index: 3; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: 0 24px 80px rgba(0,0,0,.45); transition: transform .5s var(--ease); }
.motion-plane img { height: 100%; object-fit: cover; filter: saturate(.74) contrast(1.08); opacity: .78; }
.motion-plane--one { top: 12%; right: 6%; width: 260px; height: 170px; transform: perspective(800px) rotateY(-12deg) rotateZ(3deg) translate(var(--stage-shift-x,0), var(--stage-shift-y,0)); }
.motion-plane--two { left: 6%; bottom: 9%; width: 170px; height: 220px; transform: perspective(800px) rotateY(12deg) rotateZ(-4deg) translate(var(--stage-shift-x-reverse,0), var(--stage-shift-y-reverse,0)); }
.motion-stage__coordinates { position: absolute; right: 24px; bottom: 24px; z-index: 4; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.44); font-size: 9px; font-variant-numeric: tabular-nums; }
.motion-stage__coordinates i { width: 48px; height: 1px; background: currentColor; transform-origin: right; animation: coordinate-pulse 1.8s infinite ease-in-out; }
@keyframes coordinate-pulse { 50% { transform: scaleX(.35); opacity: .4; } }

#selected-projects { color: var(--white); background: #101210; border-color: rgba(255,255,255,.12); }
#selected-projects .section-title em { color: #c8b49a; }
#selected-projects .text-link, #selected-projects .project-card__info h3 { color: var(--white); }
#selected-projects .project-card__info { border-top-color: rgba(255,255,255,.2); }
#selected-projects .project-card__info p, #selected-projects .project-card__info span { color: rgba(255,255,255,.55); }
.project-card__link { position: relative; transform: perspective(1200px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)); transform-style: preserve-3d; transition: transform .35s var(--ease); }
.project-card__link::before, .skill-card::before { content: ""; position: absolute; inset: -1px; z-index: 2; border-radius: inherit; background: radial-gradient(420px circle at var(--card-x,50%) var(--card-y,50%), rgba(220,201,172,.22), transparent 38%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.project-card__link:hover::before, .skill-card:hover::before { opacity: 1; }
#selected-projects .project-card__media { box-shadow: 0 30px 80px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.12); }
#selected-projects .project-card:nth-child(1) { grid-column: span 7; }
#selected-projects .project-card:nth-child(2) { grid-column: span 5; }
#selected-projects .project-card:nth-child(3) { grid-column: span 5; }
#selected-projects .project-card:nth-child(4) { grid-column: span 7; margin-top: 0; }
#selected-projects .project-card:nth-child(1) .project-card__media,
#selected-projects .project-card:nth-child(4) .project-card__media { aspect-ratio: 16 / 10; }
#selected-projects .project-card:nth-child(2) .project-card__media,
#selected-projects .project-card:nth-child(3) .project-card__media { aspect-ratio: 4 / 5; }
.skill-card { position: relative; overflow: hidden; transform: perspective(900px) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)); transition: transform .35s var(--ease), background .35s; }
.skill-card:hover { background: rgba(255,255,255,.05); }
.reveal { filter: blur(10px); clip-path: inset(0 0 14% 0); }
.reveal.is-visible { filter: blur(0); clip-path: inset(0 0 0 0); }

@media (min-width: 1001px) {
  .intro-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
  .intro-grid > :first-child { grid-column: span 7; }
  .intro-grid > :last-child { grid-column: 9 / -1; }
}

/* Footer */
.site-footer { padding: 82px 0 24px; color: var(--white); background: var(--ink); }
.footer-cta { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; padding-bottom: 76px; }
.footer-cta h2 { margin: 0; max-width: 900px; font-size: clamp(46px, 7vw, 102px); line-height: .95; letter-spacing: -.065em; font-weight: 520; }
.footer-cta p { max-width: 430px; color: rgba(255,255,255,.62); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.52); font-size: 11px; }
.footer-links { display: flex; gap: 22px; }

/* Lightbox and motion */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; visibility: hidden; padding: 48px; background: rgba(12,13,12,.92); opacity: 0; transition: .3s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; color: white; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; cursor: pointer; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }

@media (max-width: 1000px) {
  :root { --page: min(100% - 40px, 900px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .hero-bottom, .page-hero__grid, .footer-cta, .contact-layout, .about-lead, .resume-layout { grid-template-columns: 1fr; }
  .hero-actions { justify-self: start; }
  .intro-grid, .process-layout, .project-overview { grid-template-columns: 1fr; gap: 64px; }
  .process-title-wrap, .portrait-frame, .resume-aside { position: static; }
  .project-card, .project-card--wide, .project-card--landscape { grid-column: span 6; }
  .project-card--portrait { grid-column: span 6; }
  .project-card:nth-child(4n) { margin-top: 0; }
  .chapter { grid-template-columns: 1fr; gap: 28px; }
  .chapter__label { justify-content: flex-start; }
  .material-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 130px 1fr; }
  .timeline-item p { grid-column: 2; }
  .hero-layout { grid-template-columns: 1fr; gap: 34px; }
  .hero-aside { grid-template-columns: 1fr auto; align-items: end; }
  .hero-folio { grid-column: 1 / -1; }
  #selected-projects .project-card:nth-child(n) { grid-column: span 6; }
  #selected-projects .project-card:nth-child(n) .project-card__media { aspect-ratio: 4 / 3; }
  .motion-plane--one { width: 220px; height: 145px; }
  .motion-plane--two { width: 145px; height: 190px; }
}

@media (max-width: 680px) {
  :root { --page: calc(100vw - 28px); --header-h: 72px; }
  body { font-size: 15px; }
  .section { padding: 88px 0; }
  .section--compact { padding: 64px 0; }
  .brand small { display: none; }
  .lang-toggle { min-width: 38px; height: 38px; padding: 0 9px; }
  .menu-toggle { width: 38px; height: 38px; }
  .hero-content { padding: 116px 0 28px; }
  .hero-kicker { margin-bottom: 30px; }
  .hero-overline { margin-bottom: 14px; font-size: 8px; }
  .hero-name { margin-bottom: 14px; font-size: clamp(70px, 21vw, 86px); }
  .hero-discipline { gap: 0 9px; font-size: clamp(39px, 12.4vw, 51px); line-height: .93; }
  .hero-layout { gap: 24px; }
  .hero-aside { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 18px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.34); }
  .hero-folio { display: none; }
  .hero-lead { max-width: 350px; font-size: 13px; line-height: 1.65; }
  .scroll-cue { display: none; }
  .button { min-height: 48px; }
  .intro-statement { font-size: 34px; }
  .facts { grid-template-columns: 1fr; }
  .fact { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .fact strong { font-size: 31px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading .text-link { margin-top: 24px; }
  .projects-grid { row-gap: 42px; column-gap: 0; }
  .project-card, .project-card--wide, .project-card--landscape, .project-card--portrait,
  #selected-projects .project-card:nth-child(n) { grid-column: 1 / -1; }
  .project-card--portrait .project-card__media { aspect-ratio: 4 / 3; }
  .project-card__overlay { display: none; }
  .process-item { grid-template-columns: 44px 1fr; }
  .page-hero { padding: 138px 0 64px; }
  .page-meta { flex-direction: column; margin-top: 42px; }
  .project-hero { min-height: 82svh; }
  .project-hero__content { min-height: 82svh; padding-bottom: 34px; }
  .project-hero__content h1 { font-size: clamp(48px, 15vw, 76px); }
  .project-hero__meta { flex-direction: column; }
  .project-overview__meta { grid-template-columns: 1fr; }
  .project-overview__story { font-size: 26px; }
  .chapter { padding: 74px 0; }
  .chapter__body h2 { font-size: 40px; }
  .chapter__body > p { font-size: 16px; }
  .full-bleed { padding: 0 10px; }
  .full-bleed .media-frame { border-radius: 16px; }
  .gallery-grid { gap: 32px; }
  .gallery-item, .gallery-item:nth-child(3n+1) { grid-column: 1 / -1; }
  .gallery-item img { aspect-ratio: 4 / 3; }
  .drawing-grid, .board-gallery, .skills-grid { grid-template-columns: 1fr; }
  .board-gallery .media-frame:last-child:nth-child(odd) { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .timeline-item p { grid-column: 1; }
  .resume-viewer { min-height: 720px; }
  .resume-viewer object { height: 720px; }
  .footer-cta { gap: 28px; padding-bottom: 54px; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 20px; }
  .motion-preloader { padding: 22px 16px; }
  .motion-preloader__word { font-size: 70px; }
  .motion-preloader__word i { margin-left: 4vw; }
  .motion-cursor, .pointer-glow { display: none; }
  .motion-lab { padding: 88px 0; }
  .motion-stage { min-height: 680px; border-radius: 18px; }
  .motion-stage__top span:nth-child(2) { display: none; }
  .motion-stage__content { min-height: 680px; padding: 24% 7% 14%; }
  .motion-stage__content h2 { font-size: clamp(52px, 15.5vw, 64px); line-height: .87; }
  .motion-stage__indent { margin-left: 0; }
  .motion-stage__content > p:last-child { margin: 34px 0 0; max-width: 290px; }
  .motion-plane--one { top: 13%; right: -9%; width: 180px; height: 118px; opacity: .75; }
  .motion-plane--two { left: -6%; bottom: 2%; width: 100px; height: 130px; opacity: .6; }
  #selected-projects { padding-top: 100px; }
  .reveal { filter: blur(5px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
