/* Same fonts and weights, served locally so external CSS cannot block startup. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 900;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400 600;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-normal.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400 600;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Han Sans Web";
  src: url("assets/SourceHanSansSC-Regular-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Source Han Sans Web";
  src: url("assets/SourceHanSansSC-Bold-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700 900;
}

@font-face {
  font-family: "FZ Matisse Web";
  src: url("assets/FZMatisse-Medium-name-subset.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

:root {
  --blue: #1a2bc2;
  --blue-mid: #4f80c9;
  --blue-light: #a9c4ea;
  --blue-faint: #b7c9e6;
  --title-blue: #0b3573;
  --subtitle-blue: #003e9c;
  --body-blue: #4f80c9;
  --body-light-blue: #719ee0;
  --white: #fff;
  --frame: 100%;
  --mono: "Inter", "Noto Sans SC", sans-serif;
  --sans: "Inter", "Noto Sans SC", sans-serif;
  --display-serif: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --nav-ink: #11110f;
  --nav-muted: rgba(17,17,15,.36);
  --zh-matisse: "FZ Matisse Web";
  --zh-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  --zh-sans: "Source Han Sans Web", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --project-cta: "VIEW PROJECT  →";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body { margin: 0; color: var(--blue); background: #fff; font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
body::after { position: fixed; z-index: 2200; top: 0; right: 0; left: 0; height: 2px; content: ""; background: var(--nav-ink); opacity: 0; pointer-events: none; transform: scaleX(var(--page-transition-progress, 0)); transform-origin: left center; transition: opacity 220ms ease; }
body.is-section-navigating::after { opacity: .72; }
body.dialog-open { overflow: hidden; }
button { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; top: 10px; left: 10px; padding: 10px 16px; color: #fff; background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-frame { position: relative; width: 100%; max-width: none; margin: 0; overflow: hidden; background: #fff; }
.section-nav { position: relative; display: grid; width: 100%; height: 64px; padding: 0 84px; grid-template-columns: repeat(4, 1fr); align-items: center; overflow: visible; background: #fff; border-bottom: 1px solid rgba(17,17,15,.12); isolation: isolate; }
.section-nav a { position: relative; z-index: 2; display: grid; height: 36px; min-width: 124px; padding: 0 12px; place-items: center; justify-self: center; color: var(--nav-muted); border-radius: 6px; font-family: var(--sans); font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: .5px; text-decoration: none; transition: color 360ms cubic-bezier(.16,1,.3,1), transform 360ms cubic-bezier(.16,1,.3,1); }
.section-nav a:first-child,
.section-nav a:last-of-type { justify-self: center; }
.section-nav a.is-active { width: auto; min-width: 124px; color: #fff; background: var(--nav-ink); }
.section-nav.is-indicator-ready a.is-active { background: transparent; }
.section-nav a:hover, .section-nav a:focus-visible { color: var(--nav-ink); transform: translateY(-1px); }
.section-nav a.is-active:hover, .section-nav a.is-active:focus-visible { color: #fff; }
.nav-active-indicator { position: absolute; z-index: 1; top: 0; left: 0; width: var(--nav-pill-width, 0); height: var(--nav-pill-height, 36px); background: var(--nav-ink); border-radius: 6px; box-shadow: 0 8px 22px rgba(0,0,0,.12); opacity: 0; pointer-events: none; transform: translate3d(var(--nav-pill-x, 0), var(--nav-pill-y, 0), 0); transition: width 560ms cubic-bezier(.16,1,.3,1), height 560ms cubic-bezier(.16,1,.3,1), transform 560ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
.section-nav.is-indicator-ready .nav-active-indicator { opacity: 1; }
.language-toggle { position: absolute; z-index: 3; top: 50%; right: 14px; display: grid; width: 66px; height: 30px; padding: 3px; grid-template-columns: repeat(2, 1fr); align-items: center; overflow: hidden; color: rgba(17,17,15,.48); background: rgba(255,255,255,.72); border: 1px solid rgba(17,17,15,.18); border-radius: 999px; box-shadow: 0 5px 18px rgba(0,0,0,.05); font-family: var(--sans); font-size: 9px; font-weight: 600; line-height: 1; cursor: pointer; isolation: isolate; transform: translateY(-50%); transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease; }
.language-toggle::before { position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); content: ""; background: var(--nav-ink); border-radius: 999px; box-shadow: 0 3px 9px rgba(0,0,0,.14); transform: translateX(0); transition: transform 440ms cubic-bezier(.16,1,.3,1); }
.language-toggle[data-language="zh"]::before { transform: translateX(100%); }
.language-toggle span { display: grid; height: 100%; place-items: center; transition: color 300ms ease; }
.language-toggle[data-language="en"] [data-language-choice="en"],
.language-toggle[data-language="zh"] [data-language-choice="zh"] { color: #fff; }
.language-toggle:hover, .language-toggle:focus-visible { border-color: rgba(17,17,15,.46); box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(calc(-50% - 1px)); }
.section-nav-top { position: absolute; z-index: 10; top: 0; left: 0; background: rgba(255,255,255,.5); border-bottom-color: rgba(17,17,15,.12); backdrop-filter: blur(14px) saturate(1.12); -webkit-backdrop-filter: blur(14px) saturate(1.12); }

.hero { position: relative; overflow: visible; }
.hero-panel { position: relative; min-height: max(840px, 100svh); overflow: hidden; isolation: isolate; }
.hero-particle-dust-canvas { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.hero-intro { padding-top: 64px; }
.hero-photo { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: linear-gradient(180deg, #d8dadc 0%, #d3d7da 58%, #c5cdd5 100%); }
.hero-photo::before { position: absolute; z-index: 2; top: 0; bottom: 0; left: 0; width: 58%; content: ""; background: linear-gradient(90deg, rgba(11,53,115,.13) 0%, rgba(79,128,201,.05) 48%, rgba(113,158,224,0) 100%); }
.hero-photo::after { position: absolute; z-index: 3; right: 0; bottom: -1px; left: 0; height: 70px; content: ""; background: none; }
.hero-photo img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: none; }
.hero-copy { position: relative; z-index: 5; width: 668px; padding-left: clamp(34px, 5.6vw, 96px); color: #fff; text-shadow: 0 1px 5px rgba(19,34,68,.12); }
.hero-copy-intro { padding-top: clamp(78px, 11vh, 126px); }
.hero-copy-details { position: absolute; top: clamp(365px, 46vh, 430px); left: 0; width: min(630px, 49vw); padding-top: 24px; padding-right: 24px; padding-bottom: 28px; }
.hero-copy h1 { display: flex; margin: 0 0 22px; align-items: flex-start; flex-direction: column; gap: clamp(8px, 1.05vw, 16px); font-family: var(--display-serif); font-optical-sizing: auto; font-weight: 500; line-height: 1; letter-spacing: -.065em; text-wrap: balance; }
.hero-copy h1 br { display: none; }
.hero-copy h1 .hero-greeting { font-size: clamp(88px, 7.7vw, 112px); line-height: .92; letter-spacing: -.075em; }
.hero-copy h1 .hero-name { font-size: clamp(55px, 5vw, 73px); line-height: .94; letter-spacing: -.065em; }
.hero-copy p { width: 100%; margin: 0 0 18px; font-size: 18px; font-weight: 400; line-height: 28.2px; }
.hero-copy .hero-role { margin-bottom: 19px; font-family: var(--display-serif); font-size: 23px; font-optical-sizing: auto; font-weight: 500; line-height: 1.15; letter-spacing: .005em; }
.hero-copy strong { font-size: 18px; font-weight: 600; letter-spacing: .035em; }
.hero-actions { display: flex; width: max-content; max-width: 100%; margin-top: 18px; align-items: flex-end; flex-wrap: wrap; gap: 9px; }
.hero-view-group {
  display: flex;
  min-height: 0;
  padding: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}
.hero-view-label {
  display: inline-flex;
  min-height: 12px;
  padding: 0;
  align-items: center;
  color: #fff;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .035em;
}
.hero-view-links { display: flex; min-width: 0; align-items: stretch; gap: 4px; }
.hero-action {
  display: inline-flex;
  min-height: 34px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.hero-action:hover, .hero-action:focus-visible { color: var(--title-blue); background: rgba(255,255,255,.9); border-color: #fff; transform: translateY(-2px); }
.hero-action-linkedin {
  min-height: 34px;
  padding: 0 10px;
  color: var(--title-blue);
  background: rgba(255,255,255,.62);
  border-color: rgba(255,255,255,.52);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(11,53,115,.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html[lang="zh-CN"] .hero-action,
html[lang="zh-CN"] .hero-view-label { font-family: var(--zh-sans); }
@media (min-width: 1041px) {
  html:not([lang="zh-CN"]) .hero-copy-details p { margin-bottom: 12px; font-size: 14px; line-height: 22px; }
  html:not([lang="zh-CN"]) .hero-copy-details strong { font-size: 14px; }
}
.bubble-field { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.bubble { position: absolute; width: 78px; opacity: .35; animation: bubble-float 7s ease-in-out infinite; }
.bubble-one { top: 18%; left: 47%; }
.bubble-two { top: 57%; right: 7%; width: 132px; animation-delay: -3s; animation-duration: 9s; }
.bubble-three { right: 43%; bottom: 7%; width: 90px; animation-delay: -5s; }
.bubble-four { top: 10%; right: 17%; width: 78px; animation-delay: -1.5s; animation-duration: 8s; }
.bubble-five { bottom: 22%; left: 7%; width: 108px; animation-delay: -4s; animation-duration: 10s; }
.bubble-six { top: 68%; left: 62%; width: 84px; animation-delay: -6s; animation-duration: 8.5s; }
@keyframes bubble-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.hero-copy-intro h1 { animation: hero-title-arrive 1050ms cubic-bezier(.16,1,.3,1) 80ms both; }
.hero-copy-intro .hero-role { animation: hero-title-arrive 980ms cubic-bezier(.16,1,.3,1) 190ms both; }
@keyframes hero-title-arrive { from { opacity: 0; filter: blur(8px); transform: translate3d(0,24px,0); } to { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); } }

html.motion-ready [data-section-reveal] { opacity: 0; filter: blur(5px); transform: translate3d(0,28px,0); transition: opacity 780ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms), filter 780ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms), transform 980ms cubic-bezier(.16,1,.3,1) var(--reveal-delay, 0ms); }
html.motion-ready [data-section-reveal].is-revealed { opacity: 1; filter: blur(0); transform: translate3d(0,0,0); }
html.motion-ready .work-card[data-section-reveal] { transform: translate3d(0,42px,0) scale(.985); }
html.motion-ready .work-card[data-section-reveal].is-revealed { transform: translate3d(0,0,0) scale(1); }

.explore-strip { position: relative; z-index: 6; display: flex; height: 100px; margin-top: -100px; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: transparent; font-size: 10px; font-weight: 600; text-decoration: none; transition: background-color 180ms ease; }
.explore-strip span { transition: opacity 180ms ease, transform 180ms ease; }
.explore-strip i, .rabbit-down i { width: 24px; height: 24px; margin-top: 5px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
.explore-strip i { transition: transform 180ms ease; }
.explore-strip:hover, .explore-strip:focus-visible { background: rgba(255,255,255,.08); }
.explore-strip:hover span, .explore-strip:focus-visible span { opacity: 1; transform: translateY(-2px); }
.explore-strip:hover i, .explore-strip:focus-visible i { transform: translateY(5px) rotate(45deg); }

.experience { position: relative; min-height: 1774px; color: #173d96; background: #fff; }
.experience-shape-particle-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .96; pointer-events: none; mix-blend-mode: multiply; }
.experience-jump-nav { position: sticky; z-index: 9; top: 0; display: flex; min-height: 60px; padding: 9px clamp(54px, 6vw, 96px); align-items: center; justify-content: space-between; gap: clamp(12px, 2vw, 36px); background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(79,128,201,.18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.experience-jump-nav a { padding: 9px 13px; color: var(--body-light-blue); border-radius: 3px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: .04em; text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.experience-jump-nav a:hover, .experience-jump-nav a:focus-visible { color: var(--subtitle-blue); }
.experience-jump-nav a.is-active { color: #fff; background: var(--title-blue); }
.resume-timeline { --timeline-pulse-y: 18px; position: relative; z-index: 1; margin: 48px 54px 0; padding: 0 0 0 28px; border-left: 2px solid rgba(90,127,195,.5); }
.resume-timeline::before { position: absolute; z-index: 2; top: -1px; left: -2px; width: 2px; height: var(--timeline-pulse-y); max-height: calc(100% + 2px); content: ""; background: linear-gradient(180deg, rgba(169,196,234,.32), #4f80c9 70%, #0b3573); border-radius: 999px; box-shadow: 0 0 12px rgba(79,128,201,.24); transition: height 120ms linear; }
.timeline-pulse { position: absolute; z-index: 4; top: var(--timeline-pulse-y); left: -1px; width: 11px; height: 11px; background: #0b3573; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 0 0 5px rgba(79,128,201,.12), 0 0 18px rgba(11,53,115,.34); pointer-events: none; transform: translate(-50%, -50%); transition: top 120ms linear; }
.timeline-pulse::before,
.timeline-pulse::after { position: absolute; inset: 50%; width: 11px; height: 11px; content: ""; border: 1px solid rgba(79,128,201,.5); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); }
.timeline-pulse::before { animation: timeline-pulse-breathe 2.4s ease-in-out infinite; }
.timeline-pulse::after { opacity: 0; }
.timeline-pulse.is-rippling::after { animation: timeline-pulse-ripple 760ms cubic-bezier(.16,.84,.32,1); }
.resume-timeline > .resume-group { position: relative; z-index: 1; }
@keyframes timeline-pulse-breathe { 0%,100% { opacity: .32; transform: translate(-50%, -50%) scale(1); } 50% { opacity: .06; transform: translate(-50%, -50%) scale(2.2); } }
@keyframes timeline-pulse-ripple { 0% { opacity: .58; transform: translate(-50%, -50%) scale(.75); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(4.6); } }
.resume-group { margin: 0 0 42px; }
.resume-group[id] { scroll-margin-top: 62px; }
.resume-group h3 { margin: 0 0 20px; color: #18346f; font-size: 25px; font-weight: 700; line-height: 33px; }
.resume-row { display: grid; grid-template-columns: 180px 360px minmax(0, 1fr); min-height: 34px; align-items: start; gap: 16px; color: #173d96; font-size: 14px; line-height: 20px; }
.resume-row time { font-weight: 600; }
.resume-row strong { font-weight: 600; }
.resume-row span { font-weight: 400; }
.resume-row.muted { color: inherit; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(1),
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(1) { color: #173d96; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(2),
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(2) { color: #3c62ac; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(3),
.resume-group:nth-of-type(2) .resume-entry p,
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(4),
.resume-group:nth-of-type(4) .resume-entry p,
.honors-group p { color: #5a7fc3; }
.resume-group:nth-of-type(4) .resume-row { color: #173d96; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(4) { color: #b0c3e7; }
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(3) { color: #5070ae; }
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(5) { color: #7b9ddb; }
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) { color: #9fb5dc; }
.resume-entry { margin-bottom: 25px; }
.resume-entry .resume-row { min-height: 28px; }
.resume-entry p { width: 790px; margin: 3px 0 0 196px; color: inherit; font-size: 14px; font-weight: 400; line-height: 22px; }
.resume-group:nth-of-type(3) > .resume-row { min-height: 0; margin-bottom: 18px; }
.resume-group:nth-of-type(3) > .resume-row:last-of-type { margin-bottom: 0; }
.compact-group { margin-bottom: 36px; }
.honors-group { margin-bottom: 0; }
.honors-group p { margin: 0 0 12px; color: #5a7fc3; font-size: 14px; font-weight: 400; line-height: 20px; }
.honors-group p.honor-from-resume { font-weight: 600; }
.rabbit-down { position: relative; z-index: 1; display: flex; width: 54px; margin: 56px auto 42px; flex-direction: column; align-items: center; color: var(--blue-light); text-decoration: none; }
.rabbit-down img { width: 34px; }
.rabbit-down i { width: 17px; height: 17px; margin-top: 4px; border-width: 2px; }

.portfolio { min-height: auto; background: #fff; }
.portfolio-content { min-height: 1000px; padding: 64px clamp(34px, 6.6vw, 112px) 128px; }
.portfolio-content h2 { margin: 0 0 72px; color: var(--nav-ink); font-size: 48px; font-weight: 700; line-height: 63px; letter-spacing: 0; }
.work-grid { display: grid; width: min(1120px, 100%); margin: 0 auto; gap: 104px; }
.work-card[id] { scroll-margin-top: 82px; }
.work-card { --card-surface: #f3d3ce; --card-ink: #622d29; --card-accent: #d95b4e; position: relative; min-height: 748px; padding: 42px clamp(36px, 5vw, 76px) 62px; overflow: hidden; color: var(--card-ink); background: var(--card-surface); border: 1px solid rgba(255,255,255,.58); border-radius: 38px; box-shadow: 0 28px 80px rgba(55,47,82,.12); isolation: isolate; }
.work-card--hihi { --card-surface: #f5d88b; --card-ink: #633a1f; --card-accent: #ea8f29; }
.work-card--mood-journal { --card-surface: #e4f1e3; --card-ink: #3d554a; --card-accent: #806eac; background: linear-gradient(135deg, #e2f1e2 0%, #eef4e9 45%, #e9e1f5 100%); }
.work-card.work-card--mood-journal::after { background: linear-gradient(122deg, rgba(255,255,255,.54) 0%, rgba(238,247,235,.28) 46%, rgba(225,214,244,.3) 100%); }
.work-card--research { --card-surface: #d9e9f4; --card-ink: #1d2f4b; --card-accent: #304a73; --research-yellow: #f4c95d; background: linear-gradient(135deg, #d9e9f4 0%, #f7fafc 52%, #fff0d2 100%); }
.work-card.work-card--research::after { background: linear-gradient(122deg, rgba(255,255,255,.6) 0%, rgba(220,231,242,.28) 52%, rgba(255,226,150,.3) 100%); }
.mood-card-glow { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.mood-card-glow::before,
.mood-card-glow::after { position: absolute; content: ""; border-radius: 50%; filter: blur(2px); }
.mood-card-glow::before { top: -180px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(194,172,231,.8), rgba(194,172,231,0) 68%); }
.mood-card-glow::after { bottom: -210px; left: -100px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(158,211,176,.82), rgba(158,211,176,0) 68%); }
.mood-card-glow span { position: absolute; color: var(--card-accent); font-family: Georgia, serif; opacity: .18; }
.mood-card-glow span:nth-child(1) { top: 21%; right: 8%; font-size: 76px; transform: rotate(10deg); }
.mood-card-glow span:nth-child(2) { bottom: 11%; left: 5%; font-size: 48px; }
.mood-card-glow span:nth-child(3) { top: 47%; left: 39%; font-size: 92px; opacity: .08; }
.work-card::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(118deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.48) 45%, rgba(255,255,255,.22) 100%); }
.work-card-backdrop { position: absolute; z-index: -2; inset: -10%; opacity: .2; transform: rotate(-4deg) scale(1.08); }
.work-card-backdrop img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 34%; filter: saturate(1.22) contrast(1.03); }
.project-code-canvas { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: 1; pointer-events: none; mix-blend-mode: multiply; }
.work-card-meta { position: relative; z-index: 1; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 38px; }
.work-index { display: block; padding-top: 2px; color: var(--card-accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; }
.work-card-meta p { margin: 0 0 6px; color: var(--card-accent); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; }
.work-card-meta h3 { max-width: 750px; margin: 0 0 8px; color: var(--card-ink); font-size: clamp(25px, 3vw, 38px); font-weight: 700; line-height: 1.16; letter-spacing: -.035em; }
.work-card-meta strong { display: block; color: var(--card-ink); font-size: 12px; font-weight: 500; line-height: 18px; opacity: .68; }
.work-showcase { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(270px, 360px) minmax(280px, 1fr); gap: clamp(58px, 8vw, 126px); align-items: center; justify-items: center; }

.code-cursor-layer { position: fixed; z-index: 9999; inset: 0; overflow: hidden; pointer-events: none; }
.code-trail-glyph { position: absolute; color: rgba(75,119,183,.34); font: 600 10px/1 var(--sans); transform: translate(-50%, -50%); animation: codeTrailFade 440ms cubic-bezier(.2,.72,.25,1) forwards; }
.code-click-burst { position: absolute; width: 28px; height: 28px; border: 1px solid rgba(75,119,183,.34); border-radius: 50%; transform: translate(-50%, -50%) scale(.35); animation: codeClickBurst 500ms ease-out forwards; }
.code-click-burst::before,
.code-click-burst::after { position: absolute; top: 50%; color: rgba(75,119,183,.55); font: 600 13px/1 var(--sans); transform: translateY(-55%); content: "["; }
.code-click-burst::before { right: calc(100% + 5px); }
.code-click-burst::after { left: calc(100% + 5px); content: "]"; }
@keyframes codeTrailFade { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.75); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -78%) scale(1.08); } }
@keyframes codeClickBurst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.35); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.45); } }
.hero-copy-details .typewriter-caret { display: inline-block; width: .62em; margin-left: .12em; color: rgba(255,255,255,.88); animation: typeCursorBlink 720ms steps(1,end) infinite; }
@keyframes typeCursorBlink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.project-trigger { position: relative; display: block; width: min(100%, 350px); padding: 0; overflow: hidden; background: #fff; border: 0; border-radius: 4px; box-shadow: -24px 28px 52px rgba(46,24,37,.25), 0 7px 18px rgba(46,24,37,.16); cursor: pointer; transform: rotate(-1.15deg); transition: transform 180ms ease, box-shadow 180ms ease; }
.project-trigger::after { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; content: var(--project-cta); color: #fff; background: rgba(11,53,115,.84); border: 1px solid rgba(255,255,255,.45); border-radius: 3px; box-shadow: 0 5px 18px rgba(11,53,115,.14); font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: .04em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color 160ms ease, transform 160ms ease; }
.project-trigger img { width: 100%; aspect-ratio: 1106 / 1597; object-fit: cover; transition: opacity 160ms ease; }
.project-trigger:hover, .project-trigger:focus-visible { box-shadow: -28px 34px 62px rgba(46,24,37,.3), 0 9px 22px rgba(46,24,37,.2); transform: translateY(-6px) rotate(-.65deg); }
.project-trigger:hover img, .project-trigger:focus-visible img { opacity: .9; }
.project-trigger:hover::after, .project-trigger:focus-visible::after { background: rgba(0,62,156,.94); transform: translateX(3px); }
.prototype-column { display: flex; width: 100%; min-width: 0; gap: 12px; align-items: center; flex-direction: column; justify-self: stretch; }
.prototype-label { color: var(--card-ink); font-size: 9px; font-weight: 600; letter-spacing: .12em; opacity: .56; }
.urban-ui-demo { display: flex; width: 340px; max-width: 100%; flex: 0 0 auto; align-items: center; flex-direction: column; }
.urban-screen-advance { display: grid; width: 100%; height: 660px; padding: 0; place-items: center; background: transparent; border: 0; cursor: pointer; }
.urban-phone-shell { position: relative; display: block; width: 100%; flex: 0 0 auto; aspect-ratio: 511 / 968; filter: drop-shadow(0 25px 32px rgba(56,36,34,.24)); }
.urban-phone-screen { position: absolute; z-index: 1; top: 5.992%; left: 11.546%; width: 76.908%; height: 88.017%; overflow: hidden; background: #fff; border-radius: 10.69% / 4.93%; }
.urban-phone-screen img { position: absolute; inset: -1px; width: calc(100% + 2px); max-width: none; height: calc(100% + 2px); object-fit: fill; }
.urban-phone-screen img[hidden] { display: none; }
.urban-phone-bezel { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.urban-demo-controls { display: grid; width: 100%; margin-top: 16px; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: center; gap: 8px; }
.urban-demo-controls button, .hihi-demo-reset { min-height: 30px; padding: 0 10px; color: var(--card-ink); background: rgba(255,255,255,.58); border: 1px solid rgba(98,45,41,.16); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.urban-demo-controls p { display: flex; margin: 0; align-items: center; flex-direction: column; text-align: center; }
.urban-demo-controls p span { font-size: 8px; font-weight: 600; letter-spacing: .08em; opacity: .58; }
.urban-demo-controls p strong { margin-top: 3px; font-size: 9px; line-height: 1.25; }
.urban-demo-dots { display: flex; min-height: 16px; margin-top: 12px; align-items: center; justify-content: center; gap: 6px; }
.urban-demo-dots button { width: 6px; height: 6px; padding: 0; background: var(--card-accent); border: 0; border-radius: 50%; cursor: pointer; opacity: .26; }
.urban-demo-dots button.is-active { width: 18px; border-radius: 999px; opacity: .92; }
.hihi-source-demo { position: relative; width: 360px; height: 690px; overflow: hidden; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hihi-source-demo iframe { position: relative; z-index: 1; width: 100%; height: 100%; background: transparent; border: 0; }
.hihi-demo-placeholder { position: absolute; z-index: 2; inset: 0; display: flex; gap: 18px; align-items: center; flex-direction: column; justify-content: center; opacity: 1; background: rgba(245,216,139,.7); transition: opacity 180ms ease; }
.hihi-demo-placeholder::after { position: absolute; width: 74px; height: 74px; content: ""; border: 1px dashed rgba(99,58,31,.28); border-radius: 50%; animation: hihi-placeholder-spin 7s linear infinite; }
.hihi-demo-placeholder img { width: 210px; max-width: 72%; opacity: .72; }
.hihi-demo-placeholder span { color: var(--card-ink); font-size: 8px; font-weight: 600; letter-spacing: .12em; opacity: .55; }
.hihi-source-demo.is-ready .hihi-demo-placeholder { opacity: 0; pointer-events: none; }
@keyframes hihi-placeholder-spin { to { transform: rotate(360deg); } }
.hihi-demo-reset { margin-top: 3px; padding-right: 16px; padding-left: 16px; }
.mood-project-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, 390px) minmax(300px, 1fr); gap: clamp(48px, 7vw, 104px); align-items: center; }
.mood-project-summary { width: 100%; padding: 32px; background: linear-gradient(145deg, rgba(244,239,252,.88), rgba(232,246,234,.84)); border: 1px solid rgba(128,110,172,.18); border-radius: 28px; box-shadow: 0 22px 54px rgba(79,91,81,.11); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.mood-project-summary > .prototype-label { display: block; margin-bottom: 16px; }
.mood-project-summary h4 { margin: 0 0 16px; color: var(--card-ink); font-family: var(--sans); font-size: clamp(22px, 2.2vw, 31px); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; }
.mood-project-summary > p { margin: 0; color: var(--card-ink); font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.75; opacity: .76; }
.mood-feature-list { display: grid; margin: 26px 0; padding: 0; gap: 10px; list-style: none; }
.mood-feature-list li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; }
.mood-feature-list li > span { display: grid; width: 30px; height: 30px; place-items: center; color: #fff; background: linear-gradient(145deg, #8d78bb, #71a082); border-radius: 50%; font-size: 8px; font-weight: 600; }
.mood-feature-list p { margin: 0; color: var(--card-ink); font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1.4; }
.mood-live-link { display: flex; min-height: 50px; padding: 0 18px; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #8874b5, #6f9d80); border-radius: 15px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; box-shadow: 0 14px 26px rgba(92,83,123,.2); transition: transform 180ms ease, box-shadow 180ms ease; }
.mood-live-link b { font-size: 19px; font-weight: 500; }
.mood-live-link:hover,
.mood-live-link:focus-visible { box-shadow: 0 18px 32px rgba(47,79,70,.26); transform: translateY(-3px); }
.mood-project-summary > small { display: block; margin-top: 9px; color: var(--card-ink); font-size: 8px; font-weight: 400; line-height: 1.4; text-align: center; opacity: .54; }
.mood-source-demo { position: relative; width: 360px; height: 690px; max-width: 100%; overflow: hidden; background: #eef2e9; border: 1px solid rgba(128,110,172,.18); border-radius: 30px; box-shadow: 0 26px 56px rgba(83,76,112,.17); }
.mood-source-demo iframe { position: relative; z-index: 1; width: 100%; height: 100%; background: #eef2e9; border: 0; }
.mood-demo-placeholder { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #eee7f8, #e0f0df); transition: opacity 220ms ease; }
.mood-demo-placeholder::after { position: absolute; width: 92px; height: 92px; content: ""; border: 1px dashed rgba(123,104,166,.36); border-radius: 50%; animation: hihi-placeholder-spin 7s linear infinite; }
.mood-demo-placeholder img { width: 220px; max-width: 72%; opacity: .78; }
.mood-source-demo.is-ready .mood-demo-placeholder { opacity: 0; pointer-events: none; }
.mood-demo-reset { min-height: 30px; margin-top: 3px; padding: 0 16px; color: var(--card-ink); background: linear-gradient(135deg, rgba(237,229,249,.82), rgba(225,242,226,.84)); border: 1px solid rgba(128,110,172,.2); border-radius: 999px; font-size: 8px; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.research-card-grid { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.research-card-grid::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(48,74,115,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(48,74,115,.055) 1px, transparent 1px); background-size: 54px 54px; -webkit-mask-image: linear-gradient(125deg, transparent 4%, #000 48%, transparent 92%); mask-image: linear-gradient(125deg, transparent 4%, #000 48%, transparent 92%); }
.research-card-grid span { position: absolute; color: var(--card-ink); font: 600 8px/1 var(--sans); letter-spacing: .18em; opacity: .18; }
.research-card-grid span:nth-child(1) { top: 44px; right: 52px; }
.research-card-grid span:nth-child(2) { right: 46px; bottom: 34px; }
.research-card-grid span:nth-child(3) { bottom: 36px; left: 46px; }
.research-project-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 390px) minmax(420px, 1fr); gap: clamp(48px, 6vw, 88px); align-items: center; }
.research-project-summary { width: 100%; padding: 32px; background: rgba(255,255,255,.82); border: 1px solid rgba(48,74,115,.16); border-radius: 4px; box-shadow: 0 22px 54px rgba(29,47,75,.11); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.research-project-summary > .prototype-label { display: block; margin-bottom: 16px; }
.research-project-summary h4 { margin: 0 0 16px; color: var(--card-ink); font-family: var(--sans); font-size: clamp(24px, 2.35vw, 33px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; }
.research-project-summary > p { margin: 0; color: var(--card-ink); font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.72; opacity: .7; }
.research-feature-list { display: grid; margin: 25px 0; padding: 0; gap: 9px; list-style: none; }
.research-feature-list li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; }
.research-feature-list li > span { display: grid; width: 30px; height: 30px; place-items: center; color: var(--card-ink); background: var(--research-yellow); border-radius: 50%; font-size: 8px; font-weight: 600; }
.research-feature-list p { margin: 0; color: var(--card-ink); font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.4; }
.research-live-link { display: flex; min-height: 50px; padding: 0 18px; align-items: center; justify-content: space-between; color: #fffdf7; background: var(--card-ink); border-radius: 2px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; box-shadow: 0 14px 26px rgba(29,47,75,.2); transition: color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.research-live-link b { font-size: 19px; font-weight: 500; }
.research-live-link:hover,
.research-live-link:focus-visible { color: var(--card-ink); background: var(--research-yellow); box-shadow: 0 18px 32px rgba(48,74,115,.2); transform: translateY(-3px); }
.research-project-summary > small { display: block; margin-top: 9px; color: var(--card-ink); font-size: 8px; font-weight: 400; line-height: 1.4; text-align: center; opacity: .5; }
.research-preview-column { gap: 15px; }
.research-browser-link { position: relative; display: block; width: 100%; max-width: 610px; overflow: hidden; color: var(--card-ink); background: #fffdf7; border: 1px solid rgba(48,74,115,.3); border-radius: 13px; box-shadow: 0 30px 62px rgba(29,47,75,.2); text-decoration: none; transform: rotate(.45deg); transition: transform 220ms ease, box-shadow 220ms ease; }
.research-browser-bar { display: flex; height: 38px; padding: 0 13px; align-items: center; gap: 6px; color: #fffdf7; background: #1d2f4b; }
.research-browser-bar i { display: block; width: 7px; height: 7px; background: var(--research-yellow); border-radius: 50%; opacity: .86; }
.research-browser-bar i:nth-child(2) { opacity: .48; }
.research-browser-bar i:nth-child(3) { opacity: .25; }
.research-browser-bar em { margin-left: 7px; overflow: hidden; font: normal 500 8px/1 var(--sans); letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; opacity: .68; }
.research-browser-bar b { margin-left: auto; font-size: 14px; font-weight: 500; }
.research-browser-link > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; transition: filter 220ms ease, transform 320ms cubic-bezier(.2,.7,.2,1); }
.research-browser-cta { position: absolute; right: 14px; bottom: 14px; display: flex; min-height: 38px; padding: 0 13px; align-items: center; gap: 12px; color: #1d2f4b; background: var(--research-yellow); border: 1px solid rgba(48,74,115,.28); border-radius: 2px; box-shadow: 0 10px 24px rgba(29,47,75,.2); font-size: 8px; font-weight: 700; letter-spacing: .1em; transition: background-color 180ms ease, transform 180ms ease; }
.research-browser-cta b { font-size: 15px; }
.research-browser-link:hover,
.research-browser-link:focus-visible { box-shadow: 0 38px 76px rgba(29,47,75,.25); transform: translateY(-6px) rotate(0); }
.research-browser-link:hover > img,
.research-browser-link:focus-visible > img { filter: contrast(1.03); transform: scale(1.018); }
.research-browser-link:hover .research-browser-cta,
.research-browser-link:focus-visible .research-browser-cta { background: #ffe09a; transform: translate(-3px, -3px); }
.phone-demo { position: relative; width: 278px; padding: 10px; background: linear-gradient(145deg, #303036, #08080a 64%); border: 1px solid rgba(255,255,255,.28); border-radius: 44px; box-shadow: 0 30px 52px rgba(35,23,31,.28), inset 0 0 0 1px rgba(0,0,0,.6); font-family: var(--sans); transform: rotate(1.2deg); }
.phone-speaker { position: absolute; z-index: 8; top: 18px; left: 50%; width: 82px; height: 20px; background: #08080a; border-radius: 999px; transform: translateX(-50%); }
.phone-screen { position: relative; height: 568px; overflow: hidden; background: #fff; border-radius: 35px; box-shadow: inset 0 0 0 1px rgba(12,12,16,.14); }
.phone-status { position: absolute; z-index: 7; top: 0; right: 0; left: 0; display: flex; height: 39px; padding: 12px 17px 0; align-items: flex-start; justify-content: space-between; color: #27232b; font-size: 9px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.phone-home-indicator { position: absolute; z-index: 9; bottom: 6px; left: 50%; width: 92px; height: 4px; background: rgba(17,15,18,.88); border-radius: 99px; transform: translateX(-50%); }
.wildlife-app { height: 100%; padding: 45px 15px 22px; color: #3c2928; background: linear-gradient(180deg, #fffaf7 0%, #fff3ee 100%); }
.wildlife-app > header { display: grid; grid-template-columns: 34px 1fr 30px; gap: 9px; align-items: center; }
.wildlife-app > header > div { display: flex; min-width: 0; flex-direction: column; }
.wildlife-app > header strong { font-size: 13px; line-height: 1.1; }
.wildlife-app > header small { margin-top: 3px; overflow: hidden; color: #a5766f; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.wildlife-app > header button { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #9b4940; background: rgba(233,92,75,.12); border: 0; border-radius: 50%; }
.wildlife-mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: #e95c4b; border-radius: 12px 12px 12px 4px; font-family: var(--sans); font-size: 17px; font-weight: 700; }
.demo-tabs { display: grid; margin: 18px 0 17px; padding: 4px; grid-template-columns: repeat(2, 1fr); background: rgba(223,100,84,.08); border: 1px solid rgba(199,96,82,.1); border-radius: 13px; }
.demo-tabs button { height: 31px; padding: 0; color: #ae7a72; background: transparent; border: 0; border-radius: 10px; font-size: 9px; font-weight: 600; }
.demo-tabs button.is-active { color: #fff; background: #df6051; box-shadow: 0 5px 13px rgba(202,78,62,.24); }
.demo-panel h4 { margin: 4px 0 15px; color: #542f2c; font-size: 18px; line-height: 1.25; letter-spacing: -.04em; }
.demo-kicker { margin: 0; color: #d55a4c; font-size: 7px; font-weight: 600; letter-spacing: .11em; }
.animal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.animal-grid button { display: flex; min-width: 0; height: 135px; padding: 13px 10px 10px; align-items: flex-start; flex-direction: column; color: #543834; background: rgba(255,255,255,.88); border: 1px solid rgba(220,117,102,.15); border-radius: 18px; box-shadow: 0 8px 20px rgba(154,77,66,.08); text-align: left; }
.animal-grid button > span { display: grid; width: 52px; height: 52px; margin-bottom: auto; place-items: center; background: #f9e1db; border-radius: 15px; font-size: 30px; }
.animal-grid button strong { font-size: 10px; }
.animal-grid button small { margin-top: 3px; color: #ae8079; font-size: 7px; }
.wildlife-map h4 { margin-bottom: 11px; }
.map-canvas { position: relative; height: 259px; overflow: hidden; background: linear-gradient(28deg, transparent 49%, rgba(255,255,255,.74) 50%, transparent 52%), linear-gradient(104deg, transparent 48%, rgba(255,255,255,.82) 49%, transparent 51%), #eadfce; border: 1px solid rgba(150,116,86,.14); border-radius: 20px; }
.map-canvas::before, .map-canvas::after, .map-canvas i { position: absolute; content: ""; background: rgba(128,165,125,.32); border-radius: 999px; transform: rotate(-24deg); }
.map-canvas::before { top: 30px; left: -20px; width: 170px; height: 46px; }
.map-canvas::after { right: -30px; bottom: 34px; width: 160px; height: 58px; }
.map-canvas i:nth-child(1) { top: 90px; right: 18px; width: 88px; height: 24px; }
.map-pin { position: absolute; display: grid; width: 34px; height: 34px; place-items: center; background: #e85e4e; border: 3px solid #fff; border-radius: 50% 50% 50% 10%; box-shadow: 0 6px 14px rgba(113,59,48,.2); font-size: 15px; }
.pin-a { top: 54px; left: 46px; }
.pin-b { top: 126px; right: 36px; }
.pin-c { bottom: 33px; left: 90px; }
.map-card { display: flex; margin-top: -26px; padding: 12px 14px; flex-direction: column; position: relative; background: rgba(255,255,255,.94); border-radius: 15px; box-shadow: 0 9px 22px rgba(95,65,52,.12); }
.map-card strong { font-size: 10px; }
.map-card small { margin-top: 4px; color: #a97770; font-size: 7px; }
.hihi-app { height: 100%; padding: 43px 18px 24px; color: #3e2b20; background: #fff5e3; }
.hihi-app > header { display: flex; gap: 8px; align-items: center; }
.hihi-app > header strong { margin-right: auto; font-family: var(--sans); font-size: 18px; font-weight: 700; }
.hihi-brand-dot { width: 9px; height: 9px; background: #f5c868; border-radius: 50%; box-shadow: 0 0 0 5px rgba(245,200,104,.18); }
.hihi-avatar { display: grid; width: 28px; height: 28px; place-items: center; color: #5f4030; background: #efb9c4; border-radius: 50%; font-size: 9px; font-weight: 600; }
.hihi-heading { margin-top: 24px; }
.hihi-heading small { color: #9c6f4b; font-size: 7px; font-weight: 600; letter-spacing: .1em; }
.hihi-heading h4 { margin: 6px 0 0; font-family: var(--zh-serif); font-size: 21px; line-height: 1.25; letter-spacing: -.035em; }
.hihi-visual-demo { position: relative; height: 178px; margin: 14px 0 5px; overflow: hidden; background: rgba(255,253,248,.8); border: 1px solid rgba(143,105,73,.08); border-radius: 24px; box-shadow: 0 15px 34px rgba(95,65,42,.1); }
.hihi-visual-demo img { position: absolute; top: 4px; left: 50%; width: 316px; max-width: none; transform: translateX(-50%); }
.hihi-demo-copy { min-height: 31px; margin: 10px 2px 9px; color: #765f51; font-size: 9px; line-height: 1.55; text-align: center; }
.hihi-moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hihi-moods button { display: flex; gap: 3px; height: 45px; padding: 5px 2px; align-items: center; justify-content: center; flex-direction: column; color: #826d60; background: rgba(255,253,248,.82); border: 1px solid #eadcc9; border-radius: 13px; font-size: 16px; }
.hihi-moods button small { font-size: 7px; font-weight: 700; }
.hihi-moods button.is-active { color: #3e2b20; background: #ffe3a1; border-color: rgba(126,88,55,.18); box-shadow: 0 6px 14px rgba(91,61,39,.08); }
.hihi-demo-start { display: flex; width: 100%; height: 42px; margin-top: 10px; padding: 0 14px; align-items: center; justify-content: space-between; color: #fffaf0; background: #3e2b20; border: 0; border-radius: 14px; font-size: 10px; font-weight: 700; box-shadow: 0 9px 18px rgba(62,43,32,.18); }
.hihi-demo-start.is-running { color: #3e2b20; background: #b8cb91; }

.contact { min-height: 100svh; color: var(--nav-ink); background: #f7f7f5; }
.contact-content { position: relative; min-height: calc(100svh - 64px); padding: clamp(44px, 5.2vh, 72px) clamp(34px, 5.8vw, 84px) clamp(110px, 12vh, 150px); text-align: center; }
.contact-content h2 { margin: 0 0 clamp(18px, 2.2vh, 28px); color: var(--nav-ink); font-size: clamp(62px, 6vw, 86px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.contact-intro { max-width: 640px; margin: 0 auto clamp(32px, 4.6vh, 58px); color: #6b6b67; font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: .04em; }
.contact-grid { display: grid; width: min(1040px, 100%); margin: 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; gap: clamp(28px, 4vw, 64px); text-align: left; }
.contact-card { position: relative; min-height: clamp(420px, 46vh, 600px); height: auto; padding: clamp(38px, 3.8vw, 54px) clamp(32px, 3.5vw, 50px); border-radius: 22px; }
.contact-card h3 { margin: 0 0 clamp(28px, 3.4vh, 42px); color: var(--nav-ink); font-size: clamp(24px, 2vw, 28px); font-weight: 700; line-height: 1.25; }
.contact-card dl, .contact-card dt, .contact-card dd { margin: 0; }
.contact-card dl { display: grid; gap: clamp(15px, 2vh, 22px); }
.contact-card dt { margin-bottom: 5px; font-size: clamp(13px, .9vw, 15px); font-weight: 600; }
.contact-card dd { font-size: clamp(13px, .9vw, 15px); font-weight: 400; line-height: 1.45; }
.contact-card a { text-decoration-thickness: 1px; text-underline-offset: 4px; transition: opacity 180ms ease; }
.contact-card a:hover, .contact-card a:focus-visible { opacity: .58; }
.contact-link-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.contact-card-outline { color: var(--nav-ink); background: #fff; border: 1.5px solid #bdbdb8; }
.contact-card-outline dd { color: #565653; }
.contact-card-filled { color: #f7f7f5; background: #1a1a18; }
.contact-card-filled h3 { color: #fff; }
.contact-card-filled dl { justify-items: end; text-align: right; }
.pin-decoration { position: absolute; top: -27px; left: 0; width: 66px; transform: rotate(-7deg); }
.phone-decoration { position: absolute; right: -26px; bottom: -22px; width: 82px; transform: rotate(6deg); }
.closing-line { margin: clamp(28px, 4vh, 48px) 0 0; color: #747470; font-size: 13px; font-weight: 400; }
.infinity-mark { position: absolute; bottom: clamp(22px, 3.2vh, 44px); left: 50%; display: block; height: auto; overflow: visible; color: #aaa9a4; font-size: 66px; font-weight: 500; line-height: 1; transform: translateX(-50%); }

.project-dialog { width: min(1180px, calc(100vw - 32px)); max-width: none; height: min(850px, calc(100vh - 32px)); max-height: none; padding: 0; border: 0; box-shadow: 0 28px 100px rgba(5,24,74,.28); }
.project-dialog::backdrop { background: rgba(8,25,70,.5); backdrop-filter: blur(5px); }
.dialog-panel { display: grid; height: 100%; grid-template-rows: 76px 1fr; }
.dialog-header { z-index: 2; display: flex; padding: 0 24px; align-items: center; justify-content: space-between; color: #fff; background: var(--blue-mid); }
.dialog-header h2 { margin: 0; font-size: 20px; font-weight: 700; }
.dialog-header > div { display: flex; align-items: center; gap: 18px; }
.open-pdf { font-size: 10px; font-weight: 600; text-decoration: none; }
.dialog-close { display: grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--blue-mid); background: #fff; border: 0; border-radius: 50%; font-size: 28px; cursor: pointer; }
.project-frame { z-index: 1; width: 100%; height: 100%; background: #eef2f8; border: 0; }
.dialog-loading { position: absolute; z-index: 0; top: 50%; left: 50%; margin: 0; font-size: 11px; font-weight: 400; transform: translate(-50%,-50%); }

:focus-visible { outline: 3px solid #ff8a00; outline-offset: 3px; }

html[lang="zh-CN"] { --project-cta: "查看项目  →"; }
html[lang="zh-CN"] body { font-family: var(--zh-sans); font-weight: 400; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { font-family: var(--zh-sans); font-weight: 700; }
html[lang="zh-CN"] .section-nav a,
html[lang="zh-CN"] .language-toggle,
html[lang="zh-CN"] .experience-jump-nav a { font-family: var(--zh-sans); font-weight: 700; letter-spacing: .04em; }
html[lang="zh-CN"] .hero-copy h1 { font-family: var(--zh-matisse), var(--mono); font-weight: 500; line-height: 1.04; letter-spacing: .01em; }
html[lang="zh-CN"] .hero-copy h1 .hero-greeting { font-family: var(--display-serif); font-weight: 500; }
html[lang="zh-CN"] .hero-copy h1 .hero-name { font-family: var(--zh-matisse), var(--zh-sans); font-weight: 500; }
html[lang="zh-CN"] .hero-copy h1 .hero-greeting { font-size: clamp(82px, 7vw, 102px); letter-spacing: .01em; }
html[lang="zh-CN"] .hero-copy h1 .hero-name { font-size: clamp(50px, 4.4vw, 64px); letter-spacing: .02em; }
html[lang="zh-CN"] .hero-copy p { font-size: 16px; font-weight: 400; line-height: 27px; }
html[lang="zh-CN"] .hero-copy .hero-role,
html[lang="zh-CN"] .hero-copy strong { font-size: 17px; font-weight: 700; }
html[lang="zh-CN"] .hero-copy .hero-role { font-family: var(--display-serif); font-weight: 500; letter-spacing: .005em; }
html[lang="zh-CN"] .resume-group h3 { letter-spacing: .02em; }
html[lang="zh-CN"] .resume-row,
html[lang="zh-CN"] .resume-entry p,
html[lang="zh-CN"] .honors-group p { letter-spacing: .01em; }
html[lang="zh-CN"] .resume-row span,
html[lang="zh-CN"] .resume-entry p,
html[lang="zh-CN"] .honors-group p,
html[lang="zh-CN"] .work-card p,
html[lang="zh-CN"] .contact-intro,
html[lang="zh-CN"] .contact-card dd,
html[lang="zh-CN"] .closing-line { font-weight: 400; }
html[lang="zh-CN"] .honors-group p.honor-from-resume { font-weight: 700; }
html[lang="zh-CN"] .resume-row time,
html[lang="zh-CN"] .resume-row strong,
html[lang="zh-CN"] .work-card h3,
html[lang="zh-CN"] .work-card strong,
html[lang="zh-CN"] .contact-card h3,
html[lang="zh-CN"] .contact-card dt { font-weight: 700; }

.experience.timeline-enhanced .resume-group > .resume-row,
.experience.timeline-enhanced .resume-entry .resume-row,
.experience.timeline-enhanced .resume-entry p,
.experience.timeline-enhanced .honors-group p { color: var(--body-light-blue) !important; opacity: .68; transition: color 220ms ease, opacity 220ms ease; }
.experience.timeline-enhanced .resume-group > .resume-row.is-current,
.experience.timeline-enhanced .resume-entry.is-current .resume-row,
.experience.timeline-enhanced .resume-entry.is-current p,
.experience.timeline-enhanced .honors-group p.is-current { color: var(--title-blue) !important; opacity: 1; }
.experience.timeline-enhanced .resume-group > .resume-row.is-current *,
.experience.timeline-enhanced .resume-entry.is-current .resume-row * { color: var(--title-blue) !important; }

/* Render the hero photo as a background layer so Safari/WebKit and embedded
   browsers keep it above the isolated panel background at every breakpoint. */
.hero-photo { background-image: url("assets/hero-hui.jpg"); background-position: center; background-size: cover; }
.hero-photo img { visibility: hidden; }

@media (max-width: 1100px) {
  .research-project-layout { grid-template-columns: 1fr; gap: 48px; }
  .research-project-summary { max-width: 560px; justify-self: center; }
  .research-browser-link { max-width: 680px; }
}

@media (max-width: 900px) {
  .section-nav { height: 64px; padding: 0 84px; }
  .hero-panel { min-height: 824px; }
  .hero-copy { width: 62%; padding-left: 34px; }
  .hero-copy-details { width: min(610px, 76%); }
  .hero-copy p { width: 100%; font-size: 14px; line-height: 22px; }
  .resume-timeline { margin-right: 26px; margin-left: 26px; }
  .resume-row { grid-template-columns: 145px 1fr; }
  .resume-row span { grid-column: 2; }
  .resume-entry p { width: auto; margin-left: 161px; }
  .work-grid { width: 100%; gap: 50px; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 720px) {
  body { overflow-x: hidden; background: #fff; }
  .site-frame { width: 100%; overflow: visible; }
  section[id] { scroll-margin-top: 52px; }

  .section-nav { height: 52px; padding: 0 6px; grid-template-columns: repeat(4, minmax(0, 1fr)) 58px; gap: 2px; }
  .section-nav a { min-width: 0; height: 28px; padding: 0 7px; color: var(--nav-muted); border-radius: 6px; font-size: clamp(9px, 2.9vw, 12px); letter-spacing: 0; }
  .section-nav a:first-child, .section-nav a:last-of-type { justify-self: center; }
  .section-nav a.is-active { min-width: 0; color: #fff; background: var(--nav-ink); }
  .language-toggle { position: relative; top: auto; right: auto; width: 58px; height: 30px; border-radius: 999px; font-size: 8px; transform: none; }
  .language-toggle:hover, .language-toggle:focus-visible { transform: translateY(-1px); }
  .section-nav-top { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.6); border-bottom-color: rgba(17,17,15,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .experience > .section-nav,
  .portfolio > .section-nav,
  .contact > .section-nav { display: none; }

  .hero { background: none; }
  .hero-panel { min-height: max(920px, calc(100svh - 52px)); }
  .hero-intro { padding-top: 0; }
  .hero-photo { background: linear-gradient(180deg, #d8dadc 0%, #c5cdd5 100%); }
  .hero-photo img {
    filter: none;
    object-position: 56% center;
  }
  .hero-photo::before { top: 0; width: 72%; background: linear-gradient(90deg, rgba(11,53,115,.22) 0%, rgba(79,128,201,.1) 46%, rgba(113,158,224,0) 100%); }
  .hero-photo::after { display: none; }
  .hero-photo-glow { display: none; }
  .hero-copy { width: 74%; padding: 54px 0 0 20px; }
  .hero-copy-details { top: 285px; width: 92%; padding: 24px 18px 28px 20px; }
  .hero-copy h1 { margin-bottom: 14px; }
  .hero-copy h1 .hero-greeting { font-size: 66px; }
  .hero-copy h1 .hero-name { font-size: 43px; }
  .hero-copy p { width: 100%; margin-bottom: 11px; font-size: 12px; font-weight: 400; line-height: 18px; }
  .hero-copy .hero-role { margin-bottom: 14px; font-size: 12.5px; line-height: 18px; }
  .hero-copy strong { font-size: 12px; }
  .bubble { opacity: .35; }
  .bubble-one { top: 39%; left: 22%; width: 48px; }
  .bubble-two { top: auto; right: -22px; bottom: 5%; width: 108px; }
  .bubble-three { right: 52%; bottom: -8px; width: 72px; }
  .bubble-four { top: 18%; right: 7%; width: 45px; }
  .bubble-five { bottom: 7%; left: -25px; width: 88px; }
  .bubble-six { top: 66%; left: 43%; width: 52px; }
  .explore-strip { display: none; }

  .experience { min-height: auto; padding: 30px 0 70px; color: var(--body-blue); }
  .experience-jump-nav { top: 52px; min-height: 42px; padding: 7px 12px; justify-content: flex-start; gap: 4px; overflow-x: auto; background: rgba(255,255,255,.92); scrollbar-width: none; }
  .experience-jump-nav::-webkit-scrollbar { display: none; }
  .experience-jump-nav a { flex: 0 0 auto; padding: 7px 8px; font-size: 9.5px; }
  .resume-timeline { margin: 0 20px; padding: 0 0 0 16px; border-left: 1.5px solid var(--body-blue); }
  .resume-group { margin-bottom: 38px; }
  .resume-group[id] { scroll-margin-top: 106px; }
  .resume-group h3 { margin-bottom: 18px; color: var(--subtitle-blue); font-size: 18px; line-height: 1.3; }
  .experience .resume-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: 0; padding: 0 0 16px; align-items: start; column-gap: 12px; row-gap: 3px; color: var(--body-blue) !important; border: 0; font-size: 11.5px; line-height: 1.48; }
  .experience .resume-row time { grid-column: 1; grid-row: 1 / span 2; color: var(--body-blue); font-size: 10.5px; line-height: 1.45; }
  .experience .resume-row strong { grid-column: 2; color: var(--subtitle-blue); font-size: 11.5px; line-height: 1.48; }
  .experience .resume-row span { grid-column: 2; color: var(--body-blue); font-size: 10.5px; line-height: 1.45; }
  .experience .resume-row.muted,
  .experience .resume-row.muted time,
  .experience .resume-row.muted strong,
  .experience .resume-row.muted span { color: var(--body-light-blue) !important; }
  #education > .resume-row:nth-of-type(2),
  #education > .resume-row:nth-of-type(2).is-current,
  #education > .resume-row:nth-of-type(2) time,
  #education > .resume-row:nth-of-type(2) span,
  #education > .resume-row:nth-of-type(2).is-current time,
  #education > .resume-row:nth-of-type(2).is-current span { color: #4f80c9 !important; }
  #education > .resume-row:nth-of-type(2) strong,
  #education > .resume-row:nth-of-type(2).is-current strong { color: #003e9c !important; }
  .resume-entry { margin-bottom: 22px; }
  .resume-entry .resume-row { padding-bottom: 5px; }
  .experience .resume-entry p { width: auto; margin: 3px 0 0 96px; color: var(--body-blue) !important; font-size: 11.5px; font-weight: 400; line-height: 1.55; }
  .resume-group:nth-of-type(3) > .resume-row { margin-bottom: 0; }
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6),
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) strong,
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) span,
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) time { color: var(--body-light-blue) !important; }
  .compact-group { margin-bottom: 34px; }
  .honors-group p { margin: 0 0 8px; color: var(--body-light-blue); font-size: 11.5px; font-weight: 400; line-height: 1.48; }
  .rabbit-down { display: none; }

  .portfolio { min-height: auto; }
  .portfolio-content { min-height: auto; padding: 48px 16px 88px; }
  .portfolio-content h2 { display: flex; margin: 0 8px 42px; align-items: center; color: var(--title-blue); font-size: 23px; line-height: 1.25; gap: 12px; }
  .portfolio-content h2::after { height: 1px; flex: 1; content: ""; background: var(--body-blue); }
  .work-grid { grid-template-columns: 1fr; width: 100%; gap: 58px; }
  .work-card { min-height: 0; padding: 28px 12px 46px; border-radius: 28px; }
  .work-card-meta { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; margin-bottom: 38px; }
  .work-index { color: var(--card-accent); font-size: 10px; line-height: 1.4; }
  .work-card-meta p { margin-bottom: 5px; color: var(--card-accent); font-size: 8px; line-height: 1.45; }
  .work-card-meta h3 { margin-bottom: 7px; color: var(--card-ink); font-size: 20px; line-height: 1.2; }
  .work-card-meta strong { color: var(--card-ink); font-size: 9px; line-height: 1.4; }
  .work-showcase { grid-template-columns: 1fr; gap: 58px; }
  .project-trigger { width: min(82vw, 280px); border-radius: 3px; box-shadow: -16px 22px 36px rgba(46,24,37,.24), 0 6px 16px rgba(46,24,37,.13); }
  .project-trigger::after { right: 8px; bottom: 8px; padding: 6px 8px; font-size: 7.5px; }
  .project-trigger img { height: auto; min-height: 0; aspect-ratio: 1106 / 1597; object-fit: cover; object-position: 50% 45%; }
  .prototype-column { justify-self: stretch; }
  .prototype-label { font-size: 8px; }
  .phone-demo { width: min(76vw, 260px); }
  .urban-ui-demo { width: 318px; max-width: 100%; }
  .urban-screen-advance { height: 620px; }
  .urban-demo-controls { grid-template-columns: 68px minmax(0,1fr) 68px; }
  .hihi-source-demo { width: min(100%, 320px); height: 650px; }

  .contact { min-height: auto; }
  .contact-content { min-height: 650px; padding: 36px 24px 78px; }
  .contact-content h2 { margin-bottom: 10px; color: var(--title-blue); font-size: clamp(38px, 11vw, 46px); line-height: 1.08; letter-spacing: 1px; }
  .contact-intro { margin-bottom: 25px; color: var(--body-blue); font-size: 10.5px; line-height: 1.5; letter-spacing: .02em; }
  .contact-intro br { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-card { width: 100%; height: auto; margin: 0; padding: 20px 18px 18px; border-radius: 12px; }
  .contact-card h3 { margin-bottom: 18px; color: var(--subtitle-blue); font-size: 17px; line-height: 1.3; }
  .contact-card dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .contact-card dt { margin-bottom: 3px; color: var(--subtitle-blue); font-size: 10.5px; }
  .contact-card dd { color: var(--body-blue); font-size: 10.5px; line-height: 1.4; overflow-wrap: anywhere; }
  .contact-card-outline { border-width: 1.5px; border-color: var(--body-light-blue); }
  .contact-card-filled { color: var(--body-blue); background: rgba(169,196,234,.62); }
  .contact-card-filled dl { justify-items: stretch; text-align: left; }
  .pin-decoration { top: -15px; left: -4px; width: 36px; }
  .phone-decoration { right: -5px; bottom: -6px; width: 38px; }
  .closing-line { margin-top: 22px; color: var(--body-blue); font-size: 10.5px; }
  .infinity-mark { bottom: 18px; color: var(--body-light-blue); font-size: 52px; }

  .project-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .dialog-panel { grid-template-rows: 58px 1fr; }
  .dialog-header { padding: 0 12px; }
  .dialog-header h2 { max-width: 58%; font-size: 13px; line-height: 1.25; }
  .dialog-header > div { gap: 10px; }
  .open-pdf { font-size: 9px; }
  .dialog-close { width: 34px; height: 34px; font-size: 24px; }

  html[lang="zh-CN"] .section-nav a { padding: 0 4px; font-size: clamp(9px, 2.7vw, 11px); }
  html[lang="zh-CN"] .hero-copy { width: 74%; }
  html[lang="zh-CN"] .hero-copy-details { width: 92%; }
  html[lang="zh-CN"] .hero-copy h1 .hero-greeting { font-size: 58px; }
  html[lang="zh-CN"] .hero-copy h1 .hero-name { font-size: 36px; }
  html[lang="zh-CN"] .hero-copy p { font-size: 12px; line-height: 19px; }
  html[lang="zh-CN"] .hero-copy .hero-role,
  html[lang="zh-CN"] .hero-copy strong { font-size: 12px; }
  html[lang="zh-CN"] .experience-jump-nav a { font-size: 9px; }
}

/* 2026-10-28 — horizontally draggable project index and restored demo covers */
.project-category {
  --project-progress: 0;
  position: relative;
  display: block;
  min-height: calc(100svh - 64px);
  padding: 24px 0 0;
}
.project-category-progress { position: relative; z-index: 4; }
.project-category-progress b {
  left: calc(2% + (var(--project-progress) * 96%));
  transition: left 420ms cubic-bezier(.16,1,.3,1);
}
.project-category-track {
  display: flex;
  min-height: calc(100svh - 112px);
  margin-top: 22px;
  padding: 0 clamp(18px, 2.3vw, 38px) clamp(190px, 24vh, 250px);
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 26px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-padding-inline: clamp(18px, 2.3vw, 38px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.project-category-track::-webkit-scrollbar { display: none; }
.project-category-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.project-category-track.is-dragging * { pointer-events: none; user-select: none; }
.project-category-item {
  flex: 0 0 clamp(320px, 28vw, 430px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.project-category-item--two { flex-basis: clamp(260px, 21vw, 330px); }
.project-category-item--three { flex-basis: clamp(330px, 28vw, 440px); }
.project-category-item--four { flex-basis: clamp(300px, 25vw, 390px); }
.project-category-item--soon { flex-basis: clamp(260px, 22vw, 340px); }
.project-category-visual,
.project-category-item > img {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(290px, 46vh, 510px);
  grid-column: 1 / -1;
  overflow: hidden;
  background: #f1f1ee;
  transition: filter 420ms ease, transform 620ms cubic-bezier(.16,1,.3,1), box-shadow 620ms cubic-bezier(.16,1,.3,1);
}
.project-category-visual > img,
.project-category-item > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
}
.project-category-visual--wildlife { background: #c95f58; }
.project-category-visual--wildlife > img {
  opacity: .8;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: multiply;
}
.project-category-item--two > img {
  height: clamp(230px, 35vh, 390px);
  object-position: center 24%;
}
.project-category-item--three .project-category-visual { height: clamp(300px, 45vh, 500px); }
.project-category-item--four .project-category-visual { height: clamp(224px, 34vh, 380px); }
.project-category-visual--mood {
  background: linear-gradient(135deg, #dceedd 0%, #edf3e6 44%, #e6d9f1 100%);
}
.project-category-visual--mood::after,
.project-page-demo--mood::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 68% 18%, rgba(255,255,255,.72), transparent 36%);
}
.project-category-visual--mood iframe {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 844px;
  background: transparent;
  border: 0;
  box-shadow: none;
  clip-path: inset(15.2% 13.6% 14.8% 13.6% round 46px);
  filter: drop-shadow(0 28px 32px rgba(58,47,68,.22));
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.43);
  transform-origin: center;
}
.project-category-visual--research {
  display: grid;
  place-items: center;
  padding: clamp(22px, 3vw, 46px);
  background: linear-gradient(135deg, #d8e9f4 0%, #f6faf8 50%, #ffedc7 100%);
}
.project-category-browser {
  display: block;
  width: 92%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 66px rgba(40,54,68,.18);
}
.project-category-browser > span {
  display: block;
  padding: 8px 10px 7px;
  color: #5d6570;
  border-bottom: 1px solid #e8e8e5;
  font-size: 7px;
  letter-spacing: .08em;
}
.project-category-browser > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-category-visual--soon {
  display: flex;
  padding: clamp(24px, 3vw, 44px);
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  color: #5d5a54;
  background: #eeeae2;
}
.project-category-visual--soon > strong {
  font-family: var(--display-serif);
  font-size: clamp(92px, 10vw, 150px);
  font-style: italic;
  font-weight: 500;
  line-height: .75;
  letter-spacing: -.08em;
}
.project-category-visual--soon > span {
  max-width: 11ch;
  font-size: clamp(18px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.05;
}
.project-category-item:hover > img,
.project-category-item:focus-visible > img,
.project-category-item:hover .project-category-visual,
.project-category-item:focus-visible .project-category-visual {
  filter: contrast(1.025);
  box-shadow: 0 24px 58px rgba(17,17,15,.12);
  transform: translateY(-8px) scale(1.012);
}
.project-category-item--soon:hover .project-category-visual { filter: none; }
.project-category-footer {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: clamp(160px, 22vh, 230px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 38%, #fff);
}

.project-page--wildlife { background: #b94f49; }
.project-page--wildlife .project-page-background {
  opacity: .84;
  filter: grayscale(1) contrast(1.18);
  mix-blend-mode: multiply;
}
.project-page--wildlife .project-page-scrim { background: rgba(57,6,6,.18); }
.project-page--mood {
  color: #26332b;
  background: linear-gradient(135deg, #dceedd 0%, #eef4e8 43%, #e4d7f0 100%);
}
.project-page--research {
  color: #1e3148;
  background: linear-gradient(135deg, #d8e9f4 0%, #f7faf8 52%, #ffedc7 100%);
}
.project-page-demo {
  position: absolute;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.project-page-demo--mood {
  top: 50%;
  right: clamp(5vw, 9vw, 150px);
  width: min(31vw, 420px);
  height: min(76vh, 720px);
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
}
.project-page-demo--mood iframe {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 390px;
  height: 844px;
  background: transparent;
  border: 0;
  clip-path: inset(15.2% 13.6% 14.8% 13.6% round 46px);
  filter: drop-shadow(0 34px 40px rgba(50,37,62,.24));
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
  transform-origin: center;
}
.project-page-demo--research {
  top: 50%;
  right: clamp(4vw, 7vw, 120px);
  width: min(52vw, 760px);
  padding-top: 34px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(43,58,73,.2);
  transform: translateY(-50%);
}
.project-page-demo--research > span {
  position: absolute;
  top: 0;
  left: 0;
  padding: 11px 14px;
  color: #66717c;
  font-size: 8px;
  letter-spacing: .1em;
}
.project-page-demo--research > img { display: block; width: 100%; height: auto; max-width: none; }
.project-page--mood .project-page-copy,
.project-page--research .project-page-copy {
  position: relative;
  z-index: 2;
  max-width: min(48vw, 650px);
  text-shadow: none;
}
.project-page--mood .project-page-copy p span:first-child,
.project-page--research .project-page-copy p span:first-child { border-right-color: currentColor; }
.project-page--mood .project-page-actions,
.project-page--research .project-page-actions { position: relative; z-index: 2; }
.project-page--mood .project-page-actions > *,
.project-page--research .project-page-actions > * {
  color: currentColor;
  background: rgba(255,255,255,.32);
  border-color: currentColor;
}
.project-page--mood .project-page-actions > a:first-child,
.project-page--research .project-page-actions > a:first-child { color: currentColor; border-bottom-color: currentColor; }
.project-page--mood .project-page-actions > *:hover,
.project-page--mood .project-page-actions > *:focus-visible,
.project-page--research .project-page-actions > *:hover,
.project-page--research .project-page-actions > *:focus-visible { color: #fff; background: #222a25; }
.project-page--mood .project-page-actions > a:first-child:hover,
.project-page--mood .project-page-actions > a:first-child:focus-visible,
.project-page--research .project-page-actions > a:first-child:hover,
.project-page--research .project-page-actions > a:first-child:focus-visible { color: currentColor; background: transparent; }

@media (max-width: 980px) {
  .project-category-track { display: flex; padding-right: 18px; padding-left: 18px; gap: 16px; }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four,
  .project-category-item--soon { flex: 0 0 min(58vw, 420px); margin-top: 0; }
  .project-category-visual,
  .project-category-item > img,
  .project-category-item--two > img,
  .project-category-item--three .project-category-visual,
  .project-category-item--four .project-category-visual { height: clamp(300px, 48vh, 470px); }
  .project-page-demo--mood { right: 5vw; width: 38vw; opacity: .72; }
  .project-page-demo--research { right: 4vw; width: 58vw; opacity: .72; }
}

@media (max-width: 720px) {
  .project-category { padding-bottom: 0; }
  .project-category-track {
    min-height: calc(100svh - 96px);
    padding: 0 18px calc(184px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four,
  .project-category-item--soon {
    width: min(76vw, 300px);
    min-width: min(76vw, 300px);
    flex-basis: min(76vw, 300px);
  }
  .project-category-visual,
  .project-category-item > img,
  .project-category-item--two > img,
  .project-category-item--three .project-category-visual,
  .project-category-item--four .project-category-visual { height: min(48vh, 410px); }
  .project-category-visual--mood iframe { transform: translate(-50%, -50%) scale(.39); }
  .project-category-footer {
    min-height: 166px;
    padding: 8px 18px calc(14px + env(safe-area-inset-bottom));
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 16px;
  }
  .project-page--mood .project-page-copy,
  .project-page--research .project-page-copy { max-width: 100%; }
  .project-page-demo--mood {
    top: 54%;
    right: -16%;
    width: 78vw;
    height: 58vh;
    opacity: .3;
  }
  .project-page-demo--mood iframe { transform: translate(-50%, -50%) scale(.55); }
  .project-page-demo--research {
    top: 52%;
    right: -32%;
    width: 118vw;
    opacity: .28;
  }
}

/* Mobile portrait system: preserve the desktop art direction while giving small
   screens their own reading rhythm, touch targets, and consistent mockup scale. */
@media (max-width: 720px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; }
  body { overflow-x: hidden; padding-bottom: calc(72px + env(safe-area-inset-bottom)); background: #f7f9fd; }
  .site-frame { width: 100%; overflow: visible; background: #fff; }
  section[id] { scroll-margin-top: 52px; }
  .section-nav .nav-active-indicator { display: none; }
  .section-nav.is-indicator-ready a.is-active { background: var(--nav-ink); }

  .section-nav { height: 52px; padding: 0 6px; grid-template-columns: repeat(4, minmax(0, 1fr)) 58px; gap: 2px; }
  .section-nav a { min-width: 0; height: 44px; padding: 0 7px; color: var(--nav-muted); border-radius: 14px; font-size: clamp(9px, 2.65vw, 11px); letter-spacing: -.01em; }
  .section-nav a:first-child, .section-nav a:last-of-type { justify-self: center; }
  .section-nav a.is-active { min-width: 0; color: #fff; background: var(--nav-ink); }
  .language-toggle { position: relative; top: auto; right: auto; width: 58px; height: 32px; border-radius: 999px; font-size: 8.5px; transform: none; }
  .language-toggle:hover, .language-toggle:focus-visible { transform: translateY(-1px); }
  .section-nav-top {
    position: fixed;
    z-index: 40;
    top: auto;
    right: 15px;
    bottom: calc(35px + env(safe-area-inset-bottom));
    left: 15px;
    width: auto;
    height: 54px;
    padding: 1px 6px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) 58px;
    gap: 0;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,17,15,.14);
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(0,0,0,.14);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
  }
  .section-nav-top a { height: 44px; padding: 0; border-radius: 14px; font-size: 10.335px; letter-spacing: 0; }
  .section-nav-top a.is-active { min-width: 54px; height: 28px; justify-self: center; }
  .section-nav-top .language-toggle { width: 58px; height: 28px; border-radius: 999px; }
  .experience > .section-nav,
  .portfolio > .section-nav,
  .contact > .section-nav { display: none; }

  .hero { background: none; }
  .hero-panel { --mobile-hero-visual-height: max(720px, 100svh); display: block; height: auto; min-height: calc(var(--mobile-hero-visual-height) + 596px); background: linear-gradient(180deg, #e1eaf2 0%, #e1eaf2 51.801%, #b7cfef 78.681%, #b7cfef 100%); }
  .hero-particle-dust-canvas { top: 0; bottom: auto; height: var(--mobile-hero-visual-height); }
  .hero-intro { padding-top: 0; }
  .hero-photo {
    z-index: 1;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--mobile-hero-visual-height);
    background-image: url("assets/hero-hui.jpg");
    background-position: 62% center;
    background-size: cover;
  }
  .hero-photo img { display: none; }
  .hero-photo::before {
    display: none;
    top: 0;
    width: 100%;
    background:
      linear-gradient(180deg, rgba(7,28,60,.02) 0%, rgba(7,28,60,0) 32%, rgba(7,28,60,.28) 58%, rgba(7,28,60,.72) 100%),
      linear-gradient(90deg, rgba(11,53,115,.2) 0%, rgba(79,128,201,.08) 48%, rgba(113,158,224,0) 100%);
  }
  .hero-photo::after, .hero-photo-glow { display: none; }
  .hero-copy { width: auto; padding: 0; color: #fff; text-shadow: none; }
  .hero-copy-intro { position: absolute; z-index: 5; top: 42px; left: 24px; width: 350px; padding-top: 0; margin-left: 0; }
  .hero-copy-intro::after { display: none; }
  .hero-copy-details {
    position: absolute;
    z-index: 5;
    top: calc(var(--mobile-hero-visual-height) + 21px);
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    min-height: 555px;
    margin: 0;
    padding: 24px 20px 22px;
    background: rgba(113,127,145,.32);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 20px 56px rgba(112,126,147,.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }
  .hero-copy h1 { margin: 0 0 18px; gap: 8px; }
  .hero-copy h1 .hero-greeting,
  .hero-copy h1 .hero-name {
    color: rgba(17,17,15,.9);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
  .hero-copy h1 .hero-greeting { font-size: 66px; line-height: .94; letter-spacing: -.075em; }
  .hero-copy h1 .hero-name { font-size: 43px; line-height: .96; letter-spacing: -.065em; }
  .hero-copy p { width: 100%; margin-bottom: 14px; font-size: 13px; font-weight: 400; line-height: 20.54px; }
  .hero-copy p:last-child { margin-bottom: 0; }
  .hero-copy .hero-role { margin: 14px 0 0; color: #272724; font-family: var(--display-serif); font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: 0; }
  .hero-copy strong { font-size: 12.5px; line-height: 19.75px; letter-spacing: .75px; }
  .hero-copy-details > p:last-of-type { margin-bottom: 0; }
  .hero-actions { width: 100%; margin-top: 16px; flex-wrap: nowrap; gap: 5px; }
  .hero-view-group { min-width: 0; min-height: 0; padding: 0; flex: 1 1 auto; gap: 4px; }
  .hero-view-label { min-height: 11px; padding: 0; font-size: 8px; letter-spacing: 0; }
  .hero-view-links { min-width: 0; flex: 1 1 auto; gap: 3px; }
  .hero-view-links .hero-action { min-width: 0; min-height: 32px; padding: 0 7px; flex: 1 1 auto; border-radius: 11px; font-size: 8px; letter-spacing: 0; }
  .hero-view-links .hero-action:last-child { flex-grow: 1.35; }
  .hero-action-linkedin { min-width: 0; min-height: 32px; padding: 0 8px; flex: 0 0 auto; border-radius: 11px; font-size: 8.5px; letter-spacing: 0; }
  .bubble { opacity: .3; }
  .bubble-one { top: 32%; left: 13%; width: 48px; }
  .bubble-two { top: auto; right: -26px; bottom: 8%; width: 112px; }
  .bubble-three { right: 50%; bottom: -8px; width: 72px; }
  .bubble-four { top: 14%; right: 8%; width: 45px; }
  .bubble-five { bottom: 28%; left: -28px; width: 86px; }
  .bubble-six { top: 54%; left: 44%; width: 52px; }
  .explore-strip { display: none; }

  .experience { min-height: auto; padding: 0 0 84px; color: var(--body-blue); background: #f7f9fd; }
  .experience-jump-nav {
    top: 0;
    min-height: 55px;
    padding: 5px 12px;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    background: rgba(247,249,253,.9);
    border-bottom-color: rgba(79,128,201,.14);
    box-shadow: 0 8px 24px rgba(11,53,115,.05);
    scrollbar-width: none;
  }
  .experience-jump-nav::-webkit-scrollbar { display: none; }
  .experience-jump-nav a { display: grid; min-height: 44px; flex: 0 0 auto; padding: 0 13px; place-items: center; border-radius: 14px; font-size: 10px; }
  .resume-timeline { margin: 28px 14px 0; padding: 0; border-left: 0; }
  .resume-group {
    margin: 0 0 16px;
    padding: 24px 18px 8px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(79,128,201,.14);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(11,53,115,.06);
  }
  #education { min-height: 0; }
  .resume-group[id] { scroll-margin-top: 64px; }
  .resume-group h3 { margin-bottom: 20px; color: var(--subtitle-blue); font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
  .experience .resume-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 0 0 18px;
    align-items: start;
    row-gap: 5px;
    color: var(--body-blue) !important;
    border: 0;
    font-size: 13px;
    line-height: 1.5;
  }
  .experience .resume-row + .resume-row { padding-top: 2px; }
  .experience .resume-row time { grid-column: 1; grid-row: auto; color: var(--body-blue); font-size: 10.5px; font-weight: 600; line-height: 1.4; letter-spacing: .035em; }
  .experience .resume-row strong { grid-column: 1; color: var(--subtitle-blue); font-size: 13.5px; line-height: 1.48; }
  .experience .resume-row span { grid-column: 1; color: var(--body-blue); font-size: 12px; line-height: 1.5; }
  .experience .resume-row.muted,
  .experience .resume-row.muted time,
  .experience .resume-row.muted strong,
  .experience .resume-row.muted span { color: var(--body-light-blue) !important; }
  .resume-entry { margin-bottom: 20px; }
  .resume-entry .resume-row { padding-bottom: 8px; }
  .experience .resume-entry p { width: auto; margin: 0; color: var(--body-blue) !important; font-size: 12.5px; font-weight: 400; line-height: 1.65; }
  .resume-group:nth-of-type(3) > .resume-row { margin-bottom: 0; }
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6),
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) strong,
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) span,
  .resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) time { color: var(--body-light-blue) !important; }
  .compact-group { min-height: 0; margin-bottom: 16px; }
  .honors-group { padding-bottom: 16px; }
  #honors { min-height: 0; }
  .honors-group p { margin: 0; padding: 10px 0; color: var(--body-light-blue); border-top: 1px solid rgba(79,128,201,.1); font-size: 12.5px; font-weight: 400; line-height: 1.55; }
  .honors-group h3 + p { border-top: 0; }
  .experience.timeline-enhanced .resume-group > .resume-row,
  .experience.timeline-enhanced .resume-entry .resume-row,
  .experience.timeline-enhanced .resume-entry p,
  .experience.timeline-enhanced .honors-group p { opacity: 1; }
  .rabbit-down { display: none; }

  .portfolio { min-height: auto; background: #fff; }
  .portfolio-content { min-height: auto; padding: 64px 14px 108px; }
  .portfolio-content h2 { display: flex; margin: 0 4px 42px; align-items: center; color: var(--nav-ink); font-size: 27px; line-height: 1.25; gap: 14px; }
  .portfolio-content h2::after { height: 1px; flex: 1; content: ""; background: rgba(17,17,15,.28); }
  .work-grid { grid-template-columns: 1fr; width: 100%; gap: 40px; }
  .work-card { min-height: 0; padding: 28px 16px 54px; border-radius: 30px; box-shadow: 0 22px 54px rgba(55,47,82,.11); }
  .work-card-meta { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; margin: 0 2px 40px; }
  .work-index { color: var(--card-accent); font-size: 10px; line-height: 1.4; }
  .work-card-meta p { margin-bottom: 6px; color: var(--card-accent); font-size: 9px; line-height: 1.45; }
  .work-card-meta h3 { margin-bottom: 8px; color: var(--card-ink); font-size: clamp(21px, 6.4vw, 26px); line-height: 1.18; }
  .work-card-meta strong { color: var(--card-ink); font-size: 10px; line-height: 1.4; }
  .work-showcase { grid-template-columns: 1fr; gap: 66px; }
  .project-trigger { width: min(78vw, 296px); border-radius: 4px; box-shadow: -16px 22px 36px rgba(46,24,37,.24), 0 6px 16px rgba(46,24,37,.13); }
  .project-trigger::after { right: 8px; bottom: 8px; padding: 6px 8px; font-size: 7.5px; }
  .project-trigger img { height: auto; min-height: 0; aspect-ratio: 1106 / 1597; object-fit: cover; object-position: 50% 45%; }
  .prototype-column { justify-self: stretch; gap: 14px; }
  .prototype-label { max-width: 290px; color: var(--card-ink); font-size: 8.5px; line-height: 1.5; text-align: center; }
  .phone-demo { width: min(76vw, 260px); }
  .urban-ui-demo { width: min(78vw, 296px); max-width: 100%; }
  .urban-screen-advance { height: auto; aspect-ratio: 511 / 968; }
  .urban-demo-controls { margin-top: 14px; grid-template-columns: 76px minmax(0,1fr) 76px; gap: 6px; }
  .urban-demo-controls button,
  .hihi-demo-reset { min-height: 44px; padding: 0 10px; font-size: 8.5px; }
  .urban-demo-controls p span { font-size: 8.5px; }
  .urban-demo-controls p strong { font-size: 9px; }
  .urban-demo-dots { min-height: 28px; margin-top: 8px; gap: 2px; }
  .urban-demo-dots button { width: 22px; height: 22px; background: radial-gradient(circle, var(--card-accent) 0 3px, transparent 3.5px); opacity: .32; }
  .urban-demo-dots button.is-active { width: 28px; background: radial-gradient(ellipse, var(--card-accent) 0 7px, transparent 7.5px); opacity: .92; }
  .hihi-source-demo { width: min(78vw, 296px); height: 612px; border-radius: 26px; }
  .hihi-demo-reset { min-width: 154px; margin-top: 0; }

  .contact { min-height: 100svh; color: var(--nav-ink); background: #f7f7f5; }
  .contact-content { min-height: 100svh; padding: 58px 18px calc(132px + env(safe-area-inset-bottom)); }
  .contact-content h2 { margin-bottom: 14px; color: var(--nav-ink); font-size: clamp(39px, 12vw, 50px); line-height: 1.04; letter-spacing: -.025em; }
  .contact-intro { max-width: 330px; margin-bottom: 34px; color: #6b6b67; font-size: 12px; line-height: 1.62; letter-spacing: .01em; }
  .contact-intro br { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { width: 100%; height: auto; min-height: 0; margin: 0; padding: 28px 22px 26px; border-radius: 22px; }
  .contact-card h3 { margin-bottom: 24px; color: var(--nav-ink); font-size: 19px; line-height: 1.3; }
  .contact-card dl { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-card dt { margin-bottom: 5px; color: inherit; font-size: 11px; }
  .contact-card dd { min-height: 0; color: #565653; font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
  .contact-card a { display: inline-flex; min-height: 32px; align-items: center; }
  .contact-card-outline { border-width: 1.5px; border-color: #bdbdb8; background: #fff; }
  .contact-card-filled { color: #f7f7f5; background: #1a1a18; }
  .contact-card-filled h3, .contact-card-filled dd { color: #fff; }
  .contact-card-filled dl { justify-items: stretch; text-align: left; }
  .pin-decoration { top: -18px; left: -5px; width: 43px; }
  .phone-decoration { right: -6px; bottom: -7px; width: 46px; }
  .closing-line { margin-top: 32px; color: #747470; font-size: 11.5px; line-height: 1.5; }
  .infinity-mark { bottom: calc(84px + env(safe-area-inset-bottom)); color: #aaa9a4; font-size: 54px; }

  .project-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .dialog-panel { grid-template-rows: 58px 1fr; }
  .dialog-header { padding: 0 12px; }
  .dialog-header h2 { max-width: 58%; font-size: 13px; line-height: 1.25; }
  .dialog-header > div { gap: 10px; }
  .open-pdf { font-size: 9px; }
  .dialog-close { width: 34px; height: 34px; font-size: 24px; }

  html[lang="zh-CN"] .section-nav a { padding: 0 4px; font-size: clamp(9px, 2.45vw, 10.5px); }
  html[lang="zh-CN"] .hero-copy { width: auto; }
  html[lang="zh-CN"] .hero-copy-details { right: 16px; left: 16px; width: auto; }
  html[lang="zh-CN"] .hero-copy h1 .hero-greeting { font-size: 60px; letter-spacing: .01em; }
  html[lang="zh-CN"] .hero-copy h1 .hero-name { font-size: 35px; letter-spacing: .02em; }
  html[lang="zh-CN"] .hero-copy p { font-size: 13px; line-height: 1.66; }
  html[lang="zh-CN"] .hero-copy .hero-role,
  html[lang="zh-CN"] .hero-copy strong { font-size: 12.5px; }
  html[lang="zh-CN"] .experience-jump-nav a { font-size: 10px; }
}

@media (max-width: 370px) {
  .section-nav-top { right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; }
  .section-nav a { padding: 0 4px; font-size: 8.5px; }
  .hero-copy-intro { left: 20px; margin-left: 0; }
  .hero-copy-details { right: 12px; left: 12px; margin: 0; padding-right: 17px; padding-left: 17px; }
  .portfolio-content { padding-right: 10px; padding-left: 10px; }
  .work-card { padding-right: 12px; padding-left: 12px; }
  .contact-content { padding-right: 14px; padding-left: 14px; }
}

@media (max-width: 720px) {
  .portfolio { min-height: auto; }
  .work-card--mood-journal { padding-right: 16px; padding-left: 16px; }
  .mood-card-glow span:nth-child(1) { top: 14%; right: 2%; font-size: 54px; }
  .mood-project-layout { grid-template-columns: 1fr; gap: 46px; }
  .mood-project-summary { padding: 24px 20px; border-radius: 24px; }
  .mood-project-summary h4 { font-size: 22px; }
  .mood-project-summary > p { font-size: 12px; line-height: 1.7; }
  .mood-feature-list { margin: 22px 0; }
  .mood-live-link { min-height: 50px; font-size: 10px; }
  .mood-source-demo { width: min(82vw, 320px); height: 640px; border-radius: 26px; }
  .mood-demo-reset { min-height: 44px; padding: 0 14px; font-size: 8.5px; }
  .work-card--research { padding-right: 16px; padding-left: 16px; }
  .research-card-grid span { display: none; }
  .research-project-layout { grid-template-columns: 1fr; gap: 46px; }
  .research-project-summary { padding: 24px 20px; border-radius: 3px; }
  .research-project-summary h4 { font-size: 24px; }
  .research-project-summary > p { font-size: 12px; line-height: 1.7; }
  .research-feature-list { margin: 22px 0; }
  .research-live-link { min-height: 50px; font-size: 9px; }
  .research-browser-link { width: 100%; max-width: 560px; border-radius: 10px; transform: none; }
  .research-browser-bar { height: 34px; padding: 0 10px; }
  .research-browser-bar em { font-size: 7px; }
  .research-browser-cta { right: 9px; bottom: 9px; min-height: 34px; padding: 0 10px; gap: 8px; font-size: 7px; }
}

@media (max-width: 720px) {
  .experience-shape-particle-canvas,
  .timeline-pulse,
  .resume-timeline::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.motion-ready [data-section-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero-particle-dust-canvas, .code-cursor-layer { display: none; }
  .timeline-pulse::before,
  .timeline-pulse::after { display: none; }
}

/* 2026-10-28 — monochrome experience and full-page project catalogue */
.experience {
  color: #2c2c2a;
  background: #f7f7f5;
}
.experience-shape-particle-canvas { filter: grayscale(1) contrast(.82); opacity: .46; }
.experience-jump-nav {
  background: rgba(247,247,245,.92);
  border-bottom-color: rgba(17,17,15,.13);
}
.experience-jump-nav a { color: #8a8a85; }
.experience-jump-nav a:hover,
.experience-jump-nav a:focus-visible { color: #1b1b19; }
.experience-jump-nav a.is-active { color: #fff; background: #1b1b19; }
.resume-timeline { border-left-color: rgba(17,17,15,.28); }
.resume-timeline::before { background: #1b1b19; box-shadow: 0 0 12px rgba(0,0,0,.16); }
.timeline-pulse { background: #1b1b19; box-shadow: 0 0 0 5px rgba(0,0,0,.08), 0 0 18px rgba(0,0,0,.2); }
.timeline-pulse::before,
.timeline-pulse::after { border-color: rgba(17,17,15,.34); }
.resume-group h3 { color: #1b1b19; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(1),
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(1),
.resume-group:nth-of-type(4) .resume-row { color: #20201e; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(2),
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(2) { color: #4d4d49; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(3),
.resume-group:nth-of-type(2) .resume-entry p,
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(4),
.resume-group:nth-of-type(4) .resume-entry p,
.honors-group p { color: #71716c; }
.resume-group:nth-of-type(1) > .resume-row:nth-of-type(4),
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(6) { color: #adada7; }
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(3) { color: #5d5d59; }
.resume-group:nth-of-type(3) > .resume-row:nth-of-type(5) { color: #8b8b85; }
.experience.timeline-enhanced .resume-group > .resume-row,
.experience.timeline-enhanced .resume-entry .resume-row,
.experience.timeline-enhanced .resume-entry p,
.experience.timeline-enhanced .honors-group p { color: #92928c !important; }
.experience.timeline-enhanced .resume-group > .resume-row.is-current,
.experience.timeline-enhanced .resume-entry.is-current .resume-row,
.experience.timeline-enhanced .resume-entry.is-current p,
.experience.timeline-enhanced .honors-group p.is-current,
.experience.timeline-enhanced .resume-group > .resume-row.is-current *,
.experience.timeline-enhanced .resume-entry.is-current .resume-row * { color: #181816 !important; }
.rabbit-down { color: #6f6f6a; filter: grayscale(1); }

.portfolio { background: #fff; }
.portfolio-content { min-height: 0; padding: 0; }
.legacy-work-grid[hidden] { display: none !important; }
.project-category {
  display: grid;
  min-height: calc(100svh - 64px);
  padding: 24px 0 24px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--nav-ink);
  background: #fff;
}
.project-category-progress {
  display: flex;
  padding: 0 clamp(18px, 2.3vw, 38px);
  align-items: center;
  gap: 10px;
  color: #8b8b86;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .05em;
}
.project-category-progress i { position: relative; display: block; height: 1px; flex: 1; background: #d2d2cd; }
.project-category-progress b {
  position: absolute;
  top: 50%;
  left: 17%;
  width: 11px;
  height: 11px;
  background: #121210;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17,17,15,.26);
  transform: translate(-50%, -50%);
}
.project-category-track {
  display: grid;
  min-height: 0;
  margin-top: 26px;
  padding: 0 4px;
  grid-template-columns: 1.08fr .78fr 1.08fr .82fr;
  align-items: start;
  gap: clamp(8px, .9vw, 16px);
}
.project-category-item {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(44px, 4vw, 68px) minmax(0, 1fr);
  gap: 12px 8px;
  color: #11110f;
  text-decoration: none;
}
.project-category-item img {
  width: 100%;
  max-width: none;
  height: clamp(290px, 46vh, 510px);
  grid-column: 1 / -1;
  object-fit: cover;
  object-position: center 28%;
  background: #f1f1ee;
  transition: filter 420ms ease, transform 620ms cubic-bezier(.16,1,.3,1);
}
.project-category-item--two { margin-top: clamp(28px, 5vh, 52px); }
.project-category-item--two img { height: clamp(230px, 35vh, 390px); object-position: center 24%; }
.project-category-item--three { margin-top: clamp(4px, 1vh, 12px); }
.project-category-item--three img { height: clamp(300px, 45vh, 500px); object-position: center; }
.project-category-item--four { margin-top: clamp(34px, 6vh, 64px); }
.project-category-item--four img { height: clamp(224px, 34vh, 380px); object-position: center top; }
.project-category-number {
  font-size: clamp(34px, 3.3vw, 56px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
}
.project-category-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.project-category-copy strong { font-size: 12px; font-weight: 600; line-height: 1.18; letter-spacing: -.02em; }
.project-category-copy small { color: #666661; font-size: 9px; font-weight: 400; line-height: 1.35; }
.project-category-item:hover img,
.project-category-item:focus-visible img { filter: contrast(1.04); transform: translateY(-8px) scale(1.012); }
.project-category-item:focus-visible { outline: 2px solid #11110f; outline-offset: 4px; }
.project-category-footer {
  display: flex;
  min-height: clamp(160px, 22vh, 230px);
  padding: 12px clamp(18px, 2.3vw, 38px) 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.project-category-footer p { display: flex; margin: 0 0 6px; gap: 22px; color: #5f5f5a; font-size: 9px; }
.portfolio-content .project-category-footer h2 {
  display: block;
  margin: 0;
  color: #11110f;
  font-family: var(--display-serif);
  font-size: clamp(94px, 12.8vw, 190px);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 500;
  padding: 0 .16em .1em 0;
  line-height: .86;
  letter-spacing: -.08em;
}
.portfolio-content .project-category-footer h2::after { display: none; }

.project-pages { background: #11110f; }
.project-page {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: clamp(76px, 8vw, 126px) clamp(28px, 6.6vw, 112px) clamp(34px, 5vw, 72px);
  align-items: stretch;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #fff;
  background: #161614;
  isolation: isolate;
  scroll-margin-top: 0;
}
.project-page-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.96) contrast(1.02);
  transform: scale(1.01);
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.project-page--hihi .project-page-background { object-position: center 22%; }
.project-page--mood .project-page-background { object-position: center; }
.project-page--research .project-page-background { object-position: center top; }
.project-page-scrim { position: absolute; z-index: -2; inset: 0; background: rgba(9,9,8,.42); }
.project-page--mood .project-page-scrim { background: rgba(28,22,31,.4); }
.project-page:hover .project-page-background { transform: scale(1.035); }
.project-page-copy { max-width: min(920px, 78vw); text-shadow: 0 2px 24px rgba(0,0,0,.34); }
.project-page-copy p { display: flex; margin: 0 0 24px; align-items: center; gap: 18px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.project-page-copy p span:first-child { padding-right: 18px; border-right: 1px solid rgba(255,255,255,.52); }
.project-page-copy h3 {
  margin: 0 0 18px;
  font-family: var(--display-serif);
  font-size: clamp(52px, 7vw, 108px);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: .94;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.project-page-copy strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .03em; }
.project-page-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.project-page-actions > a,
.project-page-actions > button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #fff;
  background: rgba(16,16,14,.28);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 260ms ease, background-color 260ms ease, transform 260ms ease;
}
.project-page-actions > a:first-child { min-height: 44px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.72); }
.project-page-actions > a:hover,
.project-page-actions > a:focus-visible,
.project-page-actions > button:hover,
.project-page-actions > button:focus-visible { color: #11110f; background: #fff; transform: translateY(-3px); }
.project-page-actions > a:first-child:hover,
.project-page-actions > a:first-child:focus-visible { color: #fff; background: transparent; transform: translateX(-4px); }
.project-page-actions b { font-size: 18px; font-weight: 400; }

@media (max-width: 980px) {
  .project-category-track { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 12px; gap: 28px 12px; }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four { margin-top: 0; }
  .project-category-item img,
  .project-category-item--two img,
  .project-category-item--three img,
  .project-category-item--four img { height: clamp(260px, 42vh, 430px); }
  .project-category-footer { min-height: 190px; }
}

@media (max-width: 720px) {
  .experience { color: #292927; background: #f4f4f1; }
  .experience-jump-nav { background: rgba(244,244,241,.92); border-bottom-color: rgba(17,17,15,.12); box-shadow: 0 8px 24px rgba(0,0,0,.04); }
  .experience-jump-nav a { color: #777772; }
  .experience-jump-nav a.is-active { color: #fff; background: #1a1a18; }
  .resume-group { background: rgba(255,255,255,.94); border-color: rgba(17,17,15,.12); box-shadow: 0 14px 34px rgba(0,0,0,.045); }
  .resume-group h3,
  .experience .resume-row strong { color: #20201e; }
  .experience .resume-row,
  .experience .resume-row time,
  .experience .resume-row span,
  .experience .resume-entry p { color: #5d5d59 !important; }
  .experience .resume-row.muted,
  .experience .resume-row.muted time,
  .experience .resume-row.muted strong,
  .experience .resume-row.muted span,
  .honors-group p { color: #8d8d87 !important; }
  .honors-group p { border-top-color: rgba(17,17,15,.09); }

  .portfolio-content { padding: 0; }
  .project-category { min-height: 100svh; padding: 24px 0 calc(92px + env(safe-area-inset-bottom)); }
  .project-category-progress { padding: 0 18px; }
  .project-category-track {
    display: flex;
    margin-top: 26px;
    padding: 0 18px 18px;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .project-category-track::-webkit-scrollbar { display: none; }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four {
    width: min(76vw, 300px);
    min-width: min(76vw, 300px);
    align-content: start;
    scroll-snap-align: center;
  }
  .project-category-item img,
  .project-category-item--two img,
  .project-category-item--three img,
  .project-category-item--four img { height: min(48vh, 410px); }
  .project-category-item--three img,
  .project-category-item--four img { object-position: center; }
  .project-category-number { font-size: 40px; }
  .project-category-copy strong { font-size: 11px; }
  .project-category-footer { min-height: 180px; padding: 8px 18px 0; align-items: flex-end; flex-direction: column-reverse; justify-content: flex-start; gap: 18px; }
  .project-category-footer p { width: 100%; justify-content: space-between; }
  .portfolio-content .project-category-footer h2 { align-self: flex-end; padding: 0 .14em .1em 0; font-size: clamp(70px, 25vw, 104px); line-height: .88; }

  .project-page {
    min-height: 100svh;
    padding: 76px 20px calc(104px + env(safe-area-inset-bottom));
  }
  .project-page-background { object-position: center 24%; }
  .project-page--research .project-page-background { object-position: 56% top; }
  .project-page-copy { max-width: 100%; }
  .project-page-copy p { margin-bottom: 18px; flex-wrap: wrap; gap: 10px; font-size: 8.5px; line-height: 1.4; }
  .project-page-copy p span:first-child { padding-right: 10px; }
  .project-page-copy h3 { font-size: clamp(44px, 14.5vw, 64px); line-height: .98; }
  .project-page-copy strong { font-size: 10.5px; }
  .project-page-actions { align-items: flex-start; flex-direction: column-reverse; }
  .project-page-actions > a,
  .project-page-actions > button { width: 100%; min-height: 52px; }
  .project-page-actions > a:first-child { width: auto; min-height: 36px; align-self: flex-start; }
  html[lang="zh-CN"] .project-page-copy h3 { font-family: var(--zh-matisse), var(--zh-serif); font-size: clamp(39px, 12.5vw, 54px); line-height: 1.12; letter-spacing: .01em; }
}

/* Final project-index overrides: these intentionally follow the legacy catalogue rules. */
.project-category {
  --project-progress: 0;
  position: relative;
  display: block;
  min-height: calc(100svh - 64px);
  padding: 24px 0 0;
}
.project-category-progress { position: relative; z-index: 4; }
.project-category-progress b {
  left: calc(2% + (var(--project-progress) * 96%));
  transition: left 120ms linear;
  will-change: left;
}
.project-category.is-track-dragging .project-category-progress b { transition: none; }
.project-category-track {
  display: flex;
  min-height: calc(100svh - 112px);
  margin-top: 22px;
  padding: 0 clamp(18px, 2.3vw, 38px) clamp(190px, 24vh, 250px);
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 26px);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: clamp(18px, 2.3vw, 38px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.project-category-track::-webkit-scrollbar { display: none; }
.project-category-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.project-category-track.is-dragging * { pointer-events: none; user-select: none; }
.project-category-item { flex: 0 0 clamp(320px, 28vw, 430px); scroll-snap-align: start; scroll-snap-stop: always; }
.project-category-item--two {
  flex-basis: clamp(260px, 21vw, 330px);
  margin-top: clamp(12px, 2vh, 24px);
}
.project-category-item--three { flex-basis: clamp(330px, 28vw, 440px); }
.project-category-item--four { flex-basis: clamp(300px, 25vw, 390px); }
.project-category-item--soon { flex-basis: clamp(260px, 22vw, 340px); }
.project-category-visual,
.project-category-item > img {
  display: block;
  width: 100%;
  max-width: none;
  height: clamp(290px, 46vh, 510px);
  grid-column: 1 / -1;
  overflow: hidden;
}
.project-category-visual > img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 28%; }
.project-category-item--two > img { height: clamp(230px, 35vh, 390px); }
.project-category-item--three .project-category-visual { height: clamp(300px, 45vh, 500px); }
.project-category-item--four .project-category-visual { height: clamp(224px, 34vh, 380px); }
.project-category-visual--wildlife > img { height: 100%; opacity: .8; filter: grayscale(1) contrast(1.2); mix-blend-mode: multiply; }
.project-category-browser > img { height: auto; filter: none !important; transform: none !important; }
.project-category-item:hover .project-category-visual,
.project-category-item:focus-visible .project-category-visual { filter: contrast(1.025); box-shadow: 0 24px 58px rgba(17,17,15,.12); transform: translateY(-8px) scale(1.012); }
.project-category-item:hover .project-category-visual > img,
.project-category-item:focus-visible .project-category-visual > img { transform: none; }
.project-category-item--soon:hover .project-category-visual { filter: none; }
.project-category-footer {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: clamp(160px, 22vh, 230px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 38%, #fff);
}
.project-page--wildlife { background: #b94f49; }
.project-page--wildlife .project-page-background { opacity: .84; filter: grayscale(1) contrast(1.18); mix-blend-mode: multiply; }
.project-page--wildlife .project-page-scrim { background: rgba(57,6,6,.18); }
.project-page--mood { color: #26332b; background: linear-gradient(135deg, #dceedd 0%, #eef4e8 43%, #e4d7f0 100%); }
.project-page--research { color: #1e3148; background: linear-gradient(135deg, #d8e9f4 0%, #f7faf8 52%, #ffedc7 100%); }
.project-page--mood .project-page-copy,
.project-page--research .project-page-copy { position: relative; z-index: 2; max-width: min(48vw, 650px); text-shadow: none; }
.project-page--mood .project-page-actions,
.project-page--research .project-page-actions { position: relative; z-index: 2; }
.project-page--mood .project-page-copy p span:first-child,
.project-page--research .project-page-copy p span:first-child { border-right-color: currentColor; }
.project-page--mood .project-page-actions > *,
.project-page--research .project-page-actions > * { color: currentColor; background: rgba(255,255,255,.32); border-color: currentColor; }
.project-page--mood .project-page-actions > a:first-child,
.project-page--research .project-page-actions > a:first-child { color: currentColor; border-bottom-color: currentColor; }

@media (max-width: 980px) {
  .project-category-track { display: flex; padding-right: 18px; padding-left: 18px; gap: 16px; }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four,
  .project-category-item--soon { flex: 0 0 min(58vw, 420px); margin-top: 0; }
  .project-category-visual,
  .project-category-item > img,
  .project-category-item--two > img,
  .project-category-item--three .project-category-visual,
  .project-category-item--four .project-category-visual { height: clamp(300px, 48vh, 470px); }
}

@media (max-width: 720px) {
  .project-category { min-height: 100svh; padding: 24px 0 0; }
  .project-category-track { min-height: calc(100svh - 96px); padding: 0 18px calc(184px + env(safe-area-inset-bottom)); gap: 12px; }
  .project-category-item,
  .project-category-item--two,
  .project-category-item--three,
  .project-category-item--four,
  .project-category-item--soon { width: min(76vw, 300px); min-width: min(76vw, 300px); flex: 0 0 min(76vw, 300px); }
  .project-category-visual,
  .project-category-item > img,
  .project-category-item--two > img,
  .project-category-item--three .project-category-visual,
  .project-category-item--four .project-category-visual { height: min(48vh, 410px); }
  .project-category-footer { min-height: 166px; padding: 8px 18px calc(14px + env(safe-area-inset-bottom)); }
  .project-page--mood .project-page-copy,
  .project-page--research .project-page-copy { max-width: 100%; }
}

/* 01 uses the supplied PDF cover as-is — no tint or recolouring. */
.project-category-item--one { flex-basis: clamp(420px, 37vw, 580px); }
.project-category-item--one .project-category-visual {
  height: auto;
  aspect-ratio: 2701 / 1751;
  background: #f8f4f3;
}
.project-category-visual--wildlife > img {
  height: 100%;
  opacity: 1;
  object-fit: contain;
  object-position: center;
  filter: none;
  mix-blend-mode: normal;
}
.project-page--wildlife { color: #5d1b1c; background: #f4eeee; }
.project-page--wildlife .project-page-background {
  opacity: 1;
  object-fit: cover;
  object-position: center top;
  filter: none;
  mix-blend-mode: normal;
}
.project-page--wildlife .project-page-scrim {
  background: linear-gradient(90deg, rgba(250,247,246,.94) 0%, rgba(250,247,246,.74) 34%, rgba(250,247,246,.08) 68%, transparent 100%);
}
.project-page--wildlife .project-page-copy { max-width: min(48vw, 690px); text-shadow: none; }
.project-page--wildlife .project-page-copy p span:first-child { border-right-color: currentColor; }
.project-page--wildlife .project-page-actions > * { color: currentColor; background: rgba(255,255,255,.38); border-color: currentColor; }
.project-page--wildlife .project-page-actions > a:first-child { color: currentColor; border-bottom-color: currentColor; }
.project-page--wildlife .project-page-actions > *:hover,
.project-page--wildlife .project-page-actions > *:focus-visible { color: #fff; background: #5d1b1c; }
.project-page--wildlife .project-page-actions > a:first-child:hover,
.project-page--wildlife .project-page-actions > a:first-child:focus-visible { color: currentColor; background: transparent; }

@media (max-width: 980px) {
  .project-category-item--one { flex-basis: min(76vw, 560px); }
}

@media (max-width: 720px) {
  .project-category-item--one { width: min(84vw, 330px); min-width: min(84vw, 330px); flex-basis: min(84vw, 330px); }
  .project-category-item--one .project-category-visual { height: auto; }
  .project-category-visual--mood iframe { transform: translate(-50%, -50%) scale(.43); }
  .project-category-footer { bottom: calc(66px + env(safe-area-inset-bottom)); }
  .project-page--wildlife .project-page-copy { max-width: 100%; }
  .project-page--wildlife .project-page-background { object-position: 62% center; }
  .project-page--wildlife .project-page-scrim { background: rgba(250,247,246,.74); }
}

/* Stable local preview for 03: the real product still opens from the project CTA. */
.project-category-visual--mood,
.project-page-demo--mood { display: grid; place-items: center; }
.mood-phone-preview {
  position: relative;
  z-index: 1;
  display: flex;
  width: 148px;
  height: 310px;
  padding: 42px 14px 18px;
  align-items: flex-start;
  flex-direction: column;
  overflow: hidden;
  color: #403027;
  background: linear-gradient(180deg, #fffaf0 0%, #fff7e8 100%);
  border: 5px solid #171715;
  border-radius: 28px;
  box-shadow: 0 22px 38px rgba(48,38,54,.22);
  font-family: var(--sans);
}
.mood-phone-preview > i {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 14px;
  background: #111;
  border-radius: 999px;
  transform: translateX(-50%);
}
.mood-phone-preview > b { font-size: 12px; font-weight: 600; line-height: 1.35; }
.mood-phone-preview > em {
  margin-top: 14px;
  padding: 5px 9px;
  color: #fff;
  background: #4a3328;
  border-radius: 999px;
  font-size: 7px;
  font-style: normal;
  font-weight: 600;
}
.mood-preview-card {
  display: flex;
  width: 100%;
  margin-top: 18px;
  padding: 10px;
  flex-direction: column;
  gap: 12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(87,62,45,.1);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(104,76,54,.08);
}
.mood-preview-card > small { color: #5d493d; font-size: 7px; font-weight: 600; }
.mood-preview-card > span { display: flex; height: 44px; align-items: flex-end; justify-content: space-between; gap: 4px; }
.mood-preview-card > span > i { width: 15%; background: #efd5b4; border-radius: 5px 5px 2px 2px; }
.mood-preview-card > span > i:nth-child(1) { height: 32%; }
.mood-preview-card > span > i:nth-child(2) { height: 54%; background: #e5c0ae; }
.mood-preview-card > span > i:nth-child(3) { height: 78%; background: #d6c4e5; }
.mood-preview-card > span > i:nth-child(4) { height: 64%; background: #bdd8ce; }
.mood-preview-card > span > i:nth-child(5) { height: 42%; background: #efd9a6; }
.mood-phone-preview > small { margin-top: auto; color: #8a7464; font-size: 6.5px; line-height: 1.3; }
.project-page-demo--mood .mood-phone-preview {
  width: min(72%, 270px);
  height: auto;
  aspect-ratio: 148 / 310;
  padding: 76px 24px 30px;
  border-width: 8px;
  border-radius: 48px;
}
.project-page-demo--mood .mood-phone-preview > i { top: 14px; width: 82px; height: 22px; }
.project-page-demo--mood .mood-phone-preview > b { font-size: 21px; }
.project-page-demo--mood .mood-phone-preview > em { margin-top: 24px; padding: 9px 15px; font-size: 11px; }
.project-page-demo--mood .mood-preview-card { margin-top: 30px; padding: 17px; gap: 20px; border-radius: 20px; }
.project-page-demo--mood .mood-preview-card > small { font-size: 11px; }
.project-page-demo--mood .mood-preview-card > span { height: 82px; }
.project-page-demo--mood .mood-phone-preview > small { font-size: 10px; }

@media (max-width: 720px) {
  .project-category-visual--mood .mood-phone-preview { width: 138px; height: 290px; }
  .project-page-demo--mood .mood-phone-preview { width: min(70vw, 250px); }
}

/* Internship summaries keep dates, workstream headings and outcomes distinct. */
#internships .resume-entry { margin-bottom: 34px; }
#internships .resume-entry:last-child { margin-bottom: 0; }
#internships .resume-row { grid-template-columns: 180px minmax(0, 1fr); }
.experience #internships .resume-entry .resume-row { color: #262624 !important; opacity: 1; }
.experience #internships .resume-entry .resume-row * { color: inherit !important; }
#internships .internship-highlights {
  width: min(830px, calc(100% - 196px));
  margin: 12px 0 0 196px;
  padding-left: 18px;
  color: #5d5d59;
  list-style: disc;
}
#internships .internship-highlights li { padding-left: 3px; }
#internships .internship-highlights li + li { margin-top: 18px; }
#internships .internship-highlights li::marker { color: #8b8b85; font-size: 10px; }
#internships .internship-highlights h4 {
  margin: 0 0 5px;
  color: #262624;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.experience #internships .internship-highlights p {
  width: auto;
  margin: 0;
  color: #5d5d59 !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  opacity: 1;
}
@media (min-width: 721px) and (max-width: 900px) {
  #internships .resume-row { grid-template-columns: 145px minmax(0, 1fr); }
  #internships .internship-highlights { width: calc(100% - 161px); margin-left: 161px; }
}
@media (max-width: 720px) {
  #internships .resume-row { grid-template-columns: minmax(0, 1fr); }
  #internships .internship-highlights { width: 100%; margin: 8px 0 0; padding-left: 16px; }
  #internships .internship-highlights h4 { font-size: 13.5px; }
  .experience #internships .internship-highlights p { font-size: 13px; }
  #internships .resume-entry { margin-bottom: 30px; }
}

/* The project pages host the original interactive apps, above the backdrop. */
.project-page--interactive {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy demo" "actions actions";
  align-items: center;
  column-gap: clamp(32px, 7vw, 120px);
  row-gap: 24px;
  padding-top: clamp(76px, 8vh, 108px);
  padding-bottom: 34px;
  color: #26332b;
  background: linear-gradient(135deg, #dceedd 0%, #eef4e8 43%, #e4d7f0 100%);
}
.project-page--hihi.project-page--interactive {
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  grid-template-areas: "demo copy" "actions actions";
}
.project-page--interactive .project-page-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  align-self: start;
  max-width: 100%;
  padding-top: 30px;
  text-shadow: none;
}
.project-page--hihi .project-page-copy h3 {
  font-size: clamp(46px, 4.7vw, 80px);
  line-height: 1.02;
}
.project-page--interactive .project-page-copy p span:first-child { border-right-color: currentColor; }
.project-live-demo {
  grid-area: demo;
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}
.project-live-stage.hihi-source-demo,
.project-live-stage.mood-source-demo {
  position: relative;
  width: 100%;
  max-width: none;
  height: clamp(520px, calc(100svh - 238px), 800px);
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.project-live-stage iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  pointer-events: auto;
}
.project-demo-loading {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 20px;
  place-items: center;
  color: #5d6a60;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .09em;
  text-align: center;
  pointer-events: none;
}
.project-live-stage.is-ready .project-demo-loading { visibility: hidden; }
.project-live-toolbar {
  display: flex;
  max-width: 320px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #536055;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-live-toolbar button {
  min-height: 36px;
  margin: 0;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(38,51,43,.3);
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.project-live-toolbar button:hover { color: #17231b; border-bottom-color: currentColor; }
.project-live-toolbar button:focus-visible { outline: 2px solid #26332b; outline-offset: 4px; }
.project-page--interactive .project-page-actions {
  grid-area: actions;
  position: relative;
  z-index: 1;
  width: 100%;
}
.project-page--interactive .project-page-actions > * {
  color: currentColor;
  background: rgba(255,255,255,.24);
  border-color: currentColor;
}
.project-page--interactive .project-page-actions > a:first-child {
  color: currentColor;
  background: transparent;
  border-bottom-color: currentColor;
}
.project-page--interactive .project-page-actions > a:hover,
.project-page--interactive .project-page-actions > a:focus-visible { color: #fff; background: #26332b; }
.project-page--interactive .project-page-actions > a:first-child:hover,
.project-page--interactive .project-page-actions > a:first-child:focus-visible { color: currentColor; background: transparent; }

@media (max-width: 840px) {
  .project-page--interactive,
  .project-page--hihi.project-page--interactive {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "copy" "demo" "actions";
    min-height: 100svh;
    padding: 76px 20px calc(104px + env(safe-area-inset-bottom));
    gap: 32px;
  }
  .project-page--interactive .project-page-copy h3 {
    max-width: 13ch;
    font-size: clamp(42px, 9vw, 64px);
    line-height: 1.02;
  }
  .project-page--interactive .project-page-copy { padding-top: 0; }
  .project-page--interactive .project-page-copy p { flex-wrap: wrap; gap: 10px; font-size: 8.5px; }
  .project-live-demo { max-width: 420px; }
  .project-live-stage.hihi-source-demo,
  .project-live-stage.mood-source-demo { height: clamp(560px, calc(100svh - 180px), 720px); }
  .project-live-toolbar { padding: 0 12px; font-size: 8px; }
  .project-live-toolbar button { min-height: 44px; }
}
