:root {
  --ink: #080d12;
  --ink-2: #0d151d;
  --blueprint: #092640;
  --blueprint-light: #0f3555;
  --paper: #e8edf0;
  --silver: #aab6bf;
  --muted: #7e8c96;
  --line: rgba(184, 211, 229, .18);
  --line-strong: rgba(184, 211, 229, .38);
  --orange: #ff5a1f;
  --white: #f4f7f8;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --gutter: clamp(22px, 5vw, 76px);
  --section-space: clamp(92px, 12vw, 180px);
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--white); background: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: hidden; }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:disabled { cursor: default; opacity: .72; }
img { display: block; max-width: 100%; }
svg { display: block; }
::selection { color: var(--white); background: var(--orange); }

.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: 200; top: 12px; left: 12px; padding: 10px 16px; color: var(--ink); background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

.blueprint-grid {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(rgba(106, 163, 199, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 163, 199, .08) 1px, transparent 1px),
    linear-gradient(rgba(106, 163, 199, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 163, 199, .03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
}

.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 74px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(8, 13, 18, .82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--orange); color: var(--orange); font: 700 11px/1 var(--mono); }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 42px); }
.main-nav a { position: relative; color: var(--silver); font-size: 13px; letter-spacing: .06em; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--white); }
.header-download { justify-self: end; padding: 9px 15px; border: 1px solid var(--line-strong); font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease; }
.header-download:hover { transform: translateY(-2px); }
.nav-toggle, .mobile-nav { display: none; }

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(360px, .82fr) minmax(480px, 1.18fr); align-items: center; gap: 3vw; padding: 110px var(--gutter) 70px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 46px; height: 1px; background: var(--line); }
.hero-copy { position: relative; z-index: 4; max-width: 660px; }
.hero-role, .section-index { margin: 0 0 26px; color: var(--orange); font: 700 12px/1.2 var(--mono); letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(82px, 10vw, 178px); font-weight: 800; line-height: .82; letter-spacing: -.08em; white-space: nowrap; }
.hero-lead { max-width: 500px; margin: 34px 0 0; color: #cfdae0; font-size: clamp(18px, 1.7vw, 26px); line-height: 1.45; letter-spacing: .02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: transform .2s ease, opacity .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.button-quiet { background: rgba(8, 13, 18, .4); }
.hero-facts { display: flex; gap: clamp(22px, 4vw, 54px); margin: 62px 0 0; }
.hero-facts div { display: grid; gap: 6px; }
.hero-facts dt { color: var(--white); font: 600 clamp(22px, 2.4vw, 34px)/1 var(--mono); }
.hero-facts dd { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .1em; }

.hero-visual { position: relative; z-index: 2; height: min(74vh, 780px); min-height: 520px; border-left: 1px solid var(--line); overflow: hidden; }
.hero-blueprint, .hero-solid, .hero-solid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-blueprint { opacity: .7; filter: invert(1) sepia(.15) hue-rotate(155deg) saturate(.75) contrast(1.1); mix-blend-mode: screen; padding: 7%; }
.hero-solid { clip-path: inset(0 0 0 51%); }
.hero-solid::after { content: ""; position: absolute; inset: 0; background: rgba(8, 13, 18, .15); pointer-events: none; }
.hero-solid img { padding: 7%; object-fit: contain; }
.hero-split { position: absolute; z-index: 4; top: 9%; bottom: 9%; left: 51%; width: 1px; background: var(--orange); }
.hero-split::before, .hero-split::after { content: ""; position: absolute; left: -3px; width: 7px; height: 7px; border: 1px solid var(--orange); background: var(--blueprint); }
.hero-split::before { top: 0; }.hero-split::after { bottom: 0; }
.hero-split span { position: absolute; top: 50%; font: 600 9px/1 var(--mono); letter-spacing: .14em; color: var(--silver); writing-mode: vertical-rl; }
.hero-split span:first-child { right: 14px; }.hero-split span:last-child { left: 14px; }
.dimension { position: absolute; z-index: 3; top: 5%; left: 9%; right: 9%; height: 18px; border-top: 1px solid var(--line-strong); }
.dimension::before, .dimension::after { content: ""; position: absolute; top: -4px; width: 7px; height: 7px; border-top: 1px solid var(--line-strong); transform: rotate(45deg); }
.dimension::before { left: 0; }.dimension::after { right: 0; }
.dimension span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); color: var(--silver); font: 9px/1 var(--mono); letter-spacing: .12em; }
.scroll-cue { position: absolute; z-index: 5; bottom: 20px; right: var(--gutter); display: flex; align-items: center; gap: 12px; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .12em; }
.scroll-cue i { width: 44px; height: 1px; background: var(--orange); transform-origin: right; animation: scroll-line 1.8s ease-in-out infinite; }
@keyframes scroll-line { 0%,100% { transform: scaleX(.3); opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }

.projects-section, .resume-section { padding: var(--section-space) var(--gutter); background: var(--paper); color: var(--ink); }
.section-heading { width: min(760px, 100%); margin-bottom: clamp(58px, 7vw, 100px); }
.section-heading h2 { margin: 0; font-size: clamp(48px, 7vw, 112px); font-weight: 750; line-height: .95; letter-spacing: -.06em; }
.section-heading > p:last-child { max-width: 620px; margin: 28px 0 0; color: #53616a; font-size: 16px; }
.section-heading-dark { color: var(--white); }
.section-heading-dark > p:last-child { color: var(--silver); }

.project-story { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px 46px; }
.project-list { position: relative; display: flex; flex-direction: column; border-top: 1px solid rgba(8, 13, 18, .18); }
.project-tab { display: grid; grid-template-columns: 32px 1fr; gap: 3px 12px; padding: 24px 8px; border: 0; border-bottom: 1px solid rgba(8, 13, 18, .18); color: #6d777d; background: transparent; text-align: left; cursor: pointer; }
.project-tab > span { grid-row: 1 / 3; font: 600 11px/1.4 var(--mono); }
.project-tab b { color: inherit; font-size: 19px; line-height: 1.2; }
.project-tab small { font-size: 11px; letter-spacing: .06em; }
.project-tab.is-active { color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }
.model-stage { position: relative; min-height: 640px; overflow: hidden; background: var(--ink); color: var(--white); }
.model-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; }
.model-stage::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--line); pointer-events: none; }
.model-poster, model-viewer { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.model-poster { transition: opacity .45s ease, transform .55s ease; }
model-viewer { opacity: 0; background: transparent; transition: opacity .45s ease; --poster-color: transparent; }
.model-stage.is-loaded model-viewer { opacity: 1; }
.model-stage.is-loaded .model-poster { opacity: 0; transform: scale(.98); pointer-events: none; }
.model-status { position: absolute; z-index: 5; top: 36px; left: 36px; display: flex; align-items: center; gap: 9px; color: var(--silver); font: 600 10px/1 var(--mono); letter-spacing: .12em; }
.model-status i { width: 7px; height: 7px; background: var(--orange); }
.load-model { position: absolute; z-index: 5; left: 50%; bottom: 88px; transform: translateX(-50%); }
.load-model:hover { transform: translateX(-50%) translateY(-2px); }
.model-stage.is-loaded .load-model { opacity: 0; pointer-events: none; }
.camera-controls { position: absolute; z-index: 5; right: 36px; bottom: 36px; display: flex; border: 1px solid var(--line-strong); }
.camera-controls button { padding: 10px 14px; border: 0; border-left: 1px solid var(--line); color: var(--silver); background: rgba(8,13,18,.82); font: 600 10px/1 var(--mono); cursor: pointer; }
.camera-controls button:first-child { border-left: 0; }
.camera-controls button.is-active { color: var(--ink); background: var(--orange); }
.model-hint { position: absolute; z-index: 5; left: 36px; bottom: 36px; margin: 0; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .08em; }
.model-fallback { color: var(--silver); font-size: 13px; }
.project-caption { grid-column: 2; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; }
.project-caption > span { color: var(--orange); font: 600 12px/1.4 var(--mono); }
.project-caption h3 { margin: 0; font-size: 27px; line-height: 1.1; }.project-caption p { margin: 8px 0 0; color: #68747b; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.project-actions .button { min-height: 40px; padding: 0 16px; font-size: 11px; }
.project-actions span { margin-left: 8px; color: inherit; font: 700 11px/1 var(--mono); }

.closing-section { padding: var(--section-space) var(--gutter); overflow: hidden; }
.closing-section .section-heading { margin-left: auto; margin-right: auto; text-align: center; }
.closing-section .section-index { color: var(--orange); }
.closing-layout { max-width: var(--max); margin: 0 auto; display: grid; gap: clamp(64px, 9vw, 130px); }
.drawing-toolbar { max-width: var(--max); margin: 0 auto 22px; display: flex; justify-content: space-between; align-items: flex-end; }
.drawing-toolbar p { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.drawing-toolbar b { font-size: 22px; }.drawing-toolbar span { color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .12em; }
.drawing-toolbar > div { display: flex; }
.drawing-toolbar button { display: grid; place-items: center; width: 46px; height: 42px; border: 1px solid var(--line-strong); color: var(--white); background: transparent; cursor: pointer; }
.drawing-toolbar button + button { border-left: 0; }
.drawing-toolbar svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.drawing-rail { display: flex; gap: 18px; width: calc(100% + var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 26px 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--orange) transparent; cursor: grab; }
.drawing-rail:active { cursor: grabbing; }
.drawing-card { flex: 0 0 min(66vw, 880px); scroll-snap-align: start; margin: 0; }
.drawing-card button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); background: var(--paper); cursor: zoom-in; overflow: hidden; }
.drawing-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper); transition: transform .4s ease; }
.drawing-card button:hover img { transform: scale(1.012); }
.drawing-card figcaption { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 2px; }
.drawing-card b { font-size: 16px; }.drawing-card span { color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .12em; }
.drawing-empty { min-height: 360px; flex: 1 0 100%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--silver); text-align: center; }
.noscript-note { margin-bottom: 24px; padding: 16px; border: 1px solid var(--orange); }.noscript-drawings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.noscript-drawings img { background: var(--paper); }

.resume-section { position: relative; }
.resume-section .section-heading { margin-bottom: 60px; }
.profile-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: clamp(44px, 6vw, 88px); align-items: start; }
.profile-kicker { margin: 0 0 22px; color: var(--orange); font: 700 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.timeline { max-width: var(--max); margin: 0 auto; border-top: 1px solid rgba(8,13,18,.2); }
.timeline article { display: grid; grid-template-columns: 190px 1fr 160px; gap: 28px; align-items: start; padding: 32px 0; border-bottom: 1px solid rgba(8,13,18,.2); }
.timeline time { color: #6b777d; font: 600 12px/1.5 var(--mono); }
.timeline h3 { margin: 0; font-size: 20px; }.timeline p { margin: 8px 0 0; color: #657078; }.timeline strong { justify-self: end; font-size: 13px; }

.skill-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid rgba(8,13,18,.16); background: rgba(8,13,18,.16); }
.skill-list article { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 20px; background: var(--paper); }
.skill-list article > span { color: var(--orange); font: 600 11px/1.5 var(--mono); }.skill-list h3 { margin: 0; font-size: 18px; }.skill-list p { margin: 6px 0 0; color: #657078; font-size: 13px; }
.full-history { margin-top: 18px; border-bottom: 1px solid rgba(8,13,18,.2); }
.full-history summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: var(--orange); font: 700 12px/1 var(--mono); letter-spacing: .08em; cursor: pointer; }
.full-history summary::-webkit-details-marker { display: none; }
.full-history summary span { color: #6b777d; }
.full-history div { display: grid; gap: 16px; padding-bottom: 22px; }
.full-history article { padding-left: 18px; border-left: 2px solid rgba(255,90,31,.45); }
.full-history time { color: #6b777d; font: 600 11px/1.4 var(--mono); }
.full-history h3 { margin: 6px 0 0; font-size: 16px; }
.full-history p { margin: 5px 0 0; color: #657078; font-size: 13px; }
.education { align-self: start; margin-top: 28px; padding: 32px; border: 1px solid rgba(8,13,18,.18); background: #dfe6ea; }
.education > p { margin: 0 0 26px; color: var(--orange); font: 700 11px/1 var(--mono); letter-spacing: .16em; }
.education h3 { margin: 0; font-size: 27px; }.education strong { display: block; margin-top: 8px; color: #53616a; font-size: 14px; }
.education ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }.education li { padding: 7px 10px; border: 1px solid rgba(8,13,18,.18); color: #53616a; font-size: 12px; }

.contact-section { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; }
.contact-section h2 { margin: 0; font-size: clamp(62px, 10vw, 164px); font-weight: 760; line-height: .9; letter-spacing: -.07em; }
.contact-section h2 span { color: var(--orange); }
.contact-mail { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 70px; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); font: 500 clamp(20px, 3vw, 44px)/1 var(--mono); transition: transform .25s ease; }
.contact-mail svg { width: 34px; fill: none; stroke: var(--orange); stroke-width: 1.4; }
.contact-actions { display: none; }
.contact-meta { display: flex; justify-content: space-between; margin-top: 30px; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .12em; }
footer { display: flex; justify-content: space-between; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); background: var(--ink); font: 10px/1 var(--mono); letter-spacing: .1em; }

.lightbox { position: fixed; z-index: 300; inset: 0; display: grid; grid-template-rows: auto 1fr; color: var(--white); background: rgba(4, 7, 10, .97); }
.lightbox[hidden] { display: none; }
.lightbox-bar { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; min-height: 70px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.lightbox-bar h2 { margin: 0; font-size: 16px; }.lightbox-bar p { margin: 0; color: var(--muted); font: 10px/1 var(--mono); letter-spacing: .08em; }
.lightbox-bar button { padding: 10px 0 10px 20px; border: 0; color: var(--white); background: transparent; cursor: pointer; }
.lightbox-canvas { position: relative; overflow: hidden; cursor: grab; touch-action: none; }
.lightbox-canvas:active { cursor: grabbing; }
.lightbox-canvas img { position: absolute; top: 50%; left: 50%; width: min(90vw, 1500px); max-width: none; max-height: 86vh; object-fit: contain; transform: translate(-50%, -50%) scale(1); transform-origin: center; user-select: none; pointer-events: none; }

.reveal-item { opacity: 0; transform: translateY(32px); }

@media (min-width: 1101px) {
  .project-list { align-self: start; position: sticky; top: 112px; }
  .model-stage { position: sticky; top: 92px; }
}

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }.main-nav, .header-download { display: none; }
  .nav-toggle { justify-self: end; display: grid; gap: 6px; padding: 10px; border: 0; background: transparent; }
  .nav-toggle span:not(.sr-only) { display: block; width: 24px; height: 1px; background: var(--white); }
  .mobile-nav { position: absolute; top: 74px; left: 0; right: 0; display: flex; flex-direction: column; padding: 18px var(--gutter) 26px; border-bottom: 1px solid var(--line); background: var(--ink); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: transform .25s ease, opacity .25s ease; }
  .site-header.nav-open .mobile-nav { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: .9fr 1.1fr; }.hero h1 { font-size: clamp(74px, 11vw, 116px); }
  .project-story { grid-template-columns: 1fr; }.project-list { display: grid; grid-template-columns: repeat(4, 1fr); }.project-tab { grid-template-columns: 1fr; }.project-tab > span { grid-row: auto; }.project-caption { grid-column: 1; }
  .profile-layout { grid-template-columns: 1fr; }
  .timeline article { grid-template-columns: 150px 1fr; }.timeline strong { grid-column: 2; justify-self: start; color: var(--orange); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --section-space: 0px; }
  html { scroll-padding-top: 64px; }
  main { scroll-snap-type: y proximity; }
  .site-header { height: 64px; }
  .brand { gap: 9px; font-size: 13px; letter-spacing: .04em; }
  .brand-mark { width: 30px; height: 30px; font-size: 10px; }
  .mobile-nav { top: 64px; }
  .hero, .projects-section, .resume-section, .closing-section { min-height: 100svh; scroll-snap-align: start; scroll-snap-stop: normal; }
  .mobile-panel { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
  .mobile-panel.is-panel-visible { opacity: 1; transform: translateY(0); }
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 14px; padding: 82px var(--gutter) 18px; }
  .hero-copy { order: 2; }
  .hero-role, .section-index { margin-bottom: 12px; font-size: 10px; letter-spacing: .12em; }
  .hero h1 { font-size: clamp(58px, 20vw, 82px); letter-spacing: -.045em; }
  .hero-lead { margin-top: 16px; font-size: 16px; line-height: 1.45; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .button { min-height: 44px; padding: 0 14px; font-size: 12px; letter-spacing: .03em; }
  .hero-facts { margin-top: 22px; gap: 14px; justify-content: space-between; }
  .hero-facts dt { font-size: 18px; }
  .hero-facts dd { font-size: 9px; letter-spacing: .06em; }
  .hero-visual { order: 1; height: 34svh; min-height: 230px; border: 1px solid var(--line); }
  .hero-blueprint, .hero-solid img { padding: 3%; }
  .hero::after, .scroll-cue { display: none; }

  .projects-section, .resume-section, .closing-section { padding: 78px var(--gutter) 18px; }
  .section-heading { margin-bottom: 16px; }
  .section-heading h2 { font-size: clamp(34px, 11vw, 48px); letter-spacing: -.035em; text-wrap: balance; }
  .section-heading > p:last-child { margin-top: 10px; font-size: 12px; line-height: 1.5; }
  .project-story { display: flex; flex-direction: column; gap: 12px; }
  .project-list { display: flex; flex-direction: row; gap: 8px; overflow-x: auto; border: 0; scroll-snap-type: x mandatory; padding-bottom: 2px; scrollbar-width: none; }
  .project-list::-webkit-scrollbar { display: none; }
  .project-tab { flex: 0 0 auto; min-width: 96px; scroll-snap-align: start; grid-template-columns: 1fr; gap: 2px; border: 1px solid rgba(8,13,18,.18); padding: 10px 12px; }
  .project-tab b { font-size: 13px; }
  .project-tab small { font-size: 9px; white-space: nowrap; }
  .project-tab.is-active { box-shadow: inset 0 3px 0 var(--orange); }
  .model-stage { min-height: 0; height: clamp(250px, 38svh, 340px); }
  .model-poster, model-viewer { padding: 3%; }
  .model-stage::after { inset: 10px; }
  .model-status { top: 18px; left: 18px; font-size: 9px; }
  .camera-controls { left: 18px; right: auto; bottom: 16px; }
  .camera-controls button { padding: 9px 12px; font-size: 9px; }
  .model-hint { display: none; }
  .load-model { bottom: 62px; min-height: 40px; white-space: nowrap; }
  .project-caption { grid-template-columns: 34px 1fr; gap: 10px; }
  .project-caption h3 { font-size: 20px; }
  .project-caption p { margin-top: 4px; font-size: 12px; }
  .project-actions { margin-top: 10px; gap: 8px; }
  .project-actions .button { flex: 1 1 120px; min-height: 40px; padding: 0 12px; }

  .profile-layout { display: flex; flex-direction: column; gap: 14px; }
  .profile-column { display: flex; flex-direction: column; }
  .profile-kicker { margin-bottom: 10px; font-size: 10px; }
  .skill-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-list article { grid-template-columns: 22px 1fr; gap: 7px; padding: 8px; }
  .skill-list article > span { font-size: 9px; }
  .skill-list h3 { font-size: 12px; line-height: 1.12; }
  .skill-list p { display: -webkit-box; margin-top: 3px; overflow: hidden; color: #657078; font-size: 9px; line-height: 1.25; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .timeline article { grid-template-columns: 70px 1fr; gap: 8px; padding: 8px 0; }
  .timeline time { font-size: 10px; }
  .timeline h3 { font-size: 13px; }
  .timeline p { display: -webkit-box; margin-top: 3px; overflow: hidden; font-size: 10px; line-height: 1.3; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
  .timeline strong { grid-column: 2; font-size: 10px; }
  .full-history { margin-top: 6px; }
  .full-history summary { padding: 10px 0; font-size: 10px; }
  .full-history div { gap: 9px; padding-bottom: 10px; }
  .full-history h3 { font-size: 12px; }
  .full-history p { font-size: 10px; }
  .education { order: 2; margin-top: 10px; padding: 10px 12px; }
  .full-history { order: 3; }
  .education > p { margin-bottom: 6px; font-size: 9px; }
  .education h3 { font-size: 15px; }
  .education strong { font-size: 11px; }
  .education ul { gap: 4px; margin-top: 8px; }
  .education li { padding: 3px 5px; font-size: 9px; }

  .closing-layout { display: flex; flex-direction: column; gap: 16px; }
  .closing-section .section-heading { text-align: left; margin-left: 0; margin-right: 0; }
  .drawing-toolbar { align-items: center; margin-bottom: 10px; }
  .drawing-toolbar p { display: grid; gap: 4px; }
  .drawing-toolbar b { font-size: 15px; }
  .drawing-toolbar button { width: 38px; height: 36px; }
  .drawing-rail { gap: 10px; width: calc(100% + var(--gutter)); padding-bottom: 4px; scrollbar-width: none; }
  .drawing-rail::-webkit-scrollbar { display: none; }
  .drawing-card { flex-basis: 42vw; }
  .drawing-card img { aspect-ratio: 3 / 4; }
  .drawing-card figcaption { display: grid; gap: 4px; padding: 8px 1px; }
  .drawing-card b { font-size: 11px; }
  .drawing-card span { font-size: 8px; }
  .drawing-empty { min-height: 170px; font-size: 12px; }
  .contact-section { min-height: 0; padding-top: 6px; }
  .contact-section h2 { font-size: clamp(40px, 12vw, 58px); letter-spacing: -.04em; }
  .contact-mail { margin-top: 18px; padding: 13px 0; font-size: 13px; gap: 12px; }
  .contact-mail svg { width: 20px; }
  .contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
  .contact-meta { margin-top: 16px; gap: 14px; font-size: 9px; }
  .lightbox-bar { grid-template-columns: 1fr auto; }.lightbox-bar p { display: none; }
  footer { display: none; }
}

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