/* ================================================================
   PIXEL SPACE_OS - visual system
   Keeps portfolio imagery sharp while translating the interface,
   layout, typography and motion language into a refined pixel grid.
   ================================================================ */

:root {
  --px-bg: #080a0e;
  --px-panel: #10141a;
  --px-panel-2: #171c23;
  --px-paper: #e8e9dc;
  --px-ink: #0b0e12;
  --px-text: #f1f3e7;
  --px-muted: #98a09d;
  --px-green: #cfe56b;
  --px-cyan: #cfe56b;
  --px-pink: #cfe56b;
  --px-line: rgba(241, 243, 231, .2);
  --px-grid: rgba(241, 243, 231, .055);
  --page: min(1480px, calc(100vw - 64px));
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --ease: steps(8, end);
}

html { background: var(--px-bg); }
body {
  color: var(--px-text);
  background: var(--px-bg);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, "Microsoft YaHei", monospace;
  font-variant-numeric: tabular-nums;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--px-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--px-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.header-sentinel { position: absolute; left: 0; top: 28px; width: 1px; height: 1px; pointer-events: none; }
::selection { color: var(--px-ink); background: var(--px-green); }

h1, h2, h3, .display-title, .section-title { font-family: inherit; }
.display-title em, .section-title em, .intro-statement em,
.project-hero__content h1 em, .about-signature { font-family: inherit; font-style: normal; color: var(--px-green); }
.section { position: relative; color: var(--px-text); background: var(--px-bg); }
.section--dark, .section--sage { color: var(--px-text); background: var(--px-panel); }
.section-rule { border-color: var(--px-line); }
.section-copy, .intro-side p, .page-hero p, .about-copy p,
.timeline-item p, .timeline-item time, .contact-detail small,
.project-overview__story + p { color: var(--px-muted); }

.eyebrow {
  padding: 7px 9px;
  border: 1px solid currentColor;
  font-size: 10px;
  letter-spacing: .12em;
  line-height: 1;
}
.eyebrow::before { width: 6px; height: 6px; background: currentColor; }
.section-title, .display-title { letter-spacing: -.065em; text-transform: uppercase; }
body[data-page="home"] main > section:not(.hero) .eyebrow,
.motion-stage .eyebrow,
.chapter .eyebrow { display: none; }
.text-link { color: var(--px-green); border-bottom: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.text-link::after { content: "[↗]"; }

.button {
  position: relative;
  min-height: 50px;
  border-radius: 0;
  border: 1px solid currentColor;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .7);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .16s steps(2, end), box-shadow .16s steps(2, end), background .16s;
}
.button::before { content: ""; position: absolute; width: 5px; height: 5px; top: -1px; left: -1px; background: currentColor; }
.button:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 rgba(0,0,0,.8); }
.button--light { color: var(--px-ink); background: var(--px-green); border-color: var(--px-green); }
.button--dark { color: var(--px-ink); background: var(--px-green); border-color: var(--px-green); }
.button--ghost { color: var(--px-text); background: rgba(8,10,14,.65); border-color: rgba(241,243,231,.55); }
.button--arrow::after { content: "↗"; }

/* Navigation */
.site-header { color: var(--px-text); height: 74px; border-bottom: 1px solid transparent; }
body[data-page="home"] .site-header:not(.is-scrolled) { color: var(--px-text); }
.site-header.is-scrolled, body:not([data-page="home"]) .site-header {
  height: 62px;
  color: var(--px-text);
  background: rgba(8, 10, 14, .88);
  border-bottom-color: var(--px-line);
  backdrop-filter: blur(10px);
}
.brand { gap: 10px; font-size: 13px; letter-spacing: .04em; }
.brand-mark {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(var(--px-green) 0 0) 0 0 / 9px 9px,
    linear-gradient(var(--px-green) 0 0) 13px 0 / 9px 9px,
    linear-gradient(var(--px-green) 0 0) 0 13px / 9px 9px,
    linear-gradient(var(--px-cyan) 0 0) 13px 13px / 9px 9px;
  background-repeat: no-repeat;
  animation: brand-pixel 1.8s steps(2, end) infinite;
}
.brand-mark::after { display: none; }
@keyframes brand-pixel { 50% { filter: hue-rotate(45deg); transform: rotate(90deg); } }
.brand small { color: var(--px-muted); font-size: 8px; }
.desktop-nav { gap: 8px; }
.nav-link { padding: 7px 10px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.nav-link::after { inset: auto 50% 0; width: 4px; height: 4px; background: var(--px-green); }
.nav-link:hover, .nav-link.is-active { color: var(--px-green); background: rgba(215,255,63,.08); }
.nav-link:hover::after, .nav-link.is-active::after { right: 50%; }
.lang-toggle, .menu-toggle { border-radius: 0; border-color: var(--px-line); background: var(--px-panel); }
.mobile-menu {
  color: var(--px-text);
  background-color: var(--px-bg);
  background-image: linear-gradient(var(--px-grid) 1px, transparent 1px), linear-gradient(90deg, var(--px-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--px-line); font-size: clamp(28px, 10vw, 54px); text-transform: uppercase; }

/* Pure visual opening - deliberately contains no project imagery */
.hero.pixel-intro {
  min-height: 100svh;
  color: var(--px-text);
  background: var(--px-bg);
  isolation: isolate;
}
.pixel-intro::after {
  background:
    linear-gradient(90deg, rgba(8,10,14,.9) 0%, rgba(8,10,14,.2) 48%, rgba(8,10,14,.82) 100%),
    linear-gradient(180deg, rgba(8,10,14,.12), rgba(8,10,14,.94));
}
.pixel-intro::before {
  z-index: 2;
  background: linear-gradient(90deg, transparent 0 47%, rgba(215,255,63,.17) 48% 48.4%, transparent 49%);
  animation: pixel-scan 5s steps(18, end) infinite;
}
@keyframes pixel-scan { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pixel-visual { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.pixel-intro .pixel-visual { pointer-events: auto; }
.pixel-visual > :not(.react-bits-hero) { pointer-events: none; }
.pixel-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(75,215,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,215,255,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(520px) rotateX(62deg) scale(1.7) translateY(27%);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #050608 0 55%, transparent 82%);
}
.pixel-halo {
  position: absolute;
  left: 58%;
  top: 47%;
  width: min(44vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(var(--px-green) 0 0) 48% 0 / 4% 4%,
    linear-gradient(var(--px-cyan) 0 0) 12% 38% / 6% 6%,
    linear-gradient(var(--px-pink) 0 0) 88% 64% / 5% 5%,
    repeating-radial-gradient(circle, transparent 0 11%, rgba(75,215,255,.14) 11.2% 11.8%, transparent 12% 19%);
  background-repeat: no-repeat;
  animation: pixel-halo 10s steps(24, end) infinite;
}
@keyframes pixel-halo { to { transform: translate(-50%,-50%) rotate(360deg); } }
.pixel-portal {
  position: absolute;
  left: 58%; top: 46%;
  width: min(23vw, 340px); aspect-ratio: 1;
  transform: translate(-50%,-50%) rotate(45deg);
  border: 2px solid var(--px-green);
  box-shadow: 0 0 0 12px rgba(215,255,63,.04), 0 0 80px rgba(215,255,63,.18), inset 0 0 55px rgba(75,215,255,.12);
  animation: portal-jump 2.8s steps(4, end) infinite;
}
.pixel-portal::before, .pixel-portal::after { content: ""; position: absolute; inset: 13%; border: 1px solid rgba(75,215,255,.75); }
.pixel-portal::after { inset: 28%; border-color: var(--px-pink); background: rgba(255,91,168,.05); }
.pixel-portal i { position: absolute; width: 9px; height: 9px; background: var(--px-green); box-shadow: 0 0 16px var(--px-green); }
.pixel-portal i:nth-child(1) { left: -5px; top: -5px; }
.pixel-portal i:nth-child(2) { right: -5px; top: -5px; }
.pixel-portal i:nth-child(3) { right: -5px; bottom: -5px; }
.pixel-portal i:nth-child(4) { left: -5px; bottom: -5px; }
@keyframes portal-jump { 50% { transform: translate(-50%,-50%) rotate(135deg) scale(.93); filter: hue-rotate(35deg); } }
.pixel-frame { position: absolute; width: 150px; height: 92px; border: 1px solid var(--px-line); background: rgba(16,20,26,.65); box-shadow: 8px 8px 0 rgba(0,0,0,.6); }
.pixel-frame::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(207,229,107,.3); }
.pixel-frame span { display: none; }
.pixel-frame--a { right: 8%; top: 20%; animation: frame-float 3.4s steps(5,end) infinite; }
.pixel-frame--b { left: 42%; bottom: 17%; width: 118px; height: 74px; animation: frame-float 4.1s steps(6,end) infinite reverse; }
@keyframes frame-float { 50% { transform: translate(0,-18px); } }
.pixel-cross { display: none; position: absolute; width: 28px; height: 28px; }
.pixel-cross::before, .pixel-cross::after { content: ""; position: absolute; background: var(--px-cyan); }
.pixel-cross::before { left: 12px; top: 0; width: 4px; height: 28px; }
.pixel-cross::after { left: 0; top: 12px; width: 28px; height: 4px; }
.pixel-cross--a { left: 9%; top: 24%; }
.pixel-cross--b { right: 19%; bottom: 18%; transform: scale(.65); filter: hue-rotate(95deg); }
.pixel-city { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: end; gap: 3px; height: 18%; opacity: .42; }
.pixel-city i { flex: 1; height: 45%; border-top: 1px solid var(--px-cyan); background: repeating-linear-gradient(0deg,rgba(75,215,255,.12) 0 5px,transparent 5px 10px); }
.pixel-city i:nth-child(3n) { height: 78%; }
.pixel-city i:nth-child(4n) { height: 32%; }
.pixel-city i:nth-child(5n) { height: 92%; border-color: var(--px-pink); }

.hero-content { min-height: 100svh; padding: 88px 0 48px; }
.hero-kicker { color: var(--px-green); font-size: 9px; }
.hero-kicker i { width: 7px; height: 7px; border-radius: 0; background: var(--px-green); box-shadow: 0 0 16px var(--px-green); animation: pixel-blink .8s steps(1,end) infinite; }
@keyframes pixel-blink { 50% { opacity: 0; } }
.hero-overline { color: var(--px-muted); font-size: 9px; }
.hero-name { font-family: inherit; font-size: clamp(72px, 10vw, 158px); line-height: .78; font-weight: 800; letter-spacing: -.09em; text-shadow: 5px 0 0 rgba(255,91,168,.35), -5px 0 0 rgba(75,215,255,.24); }
.hero-name sup { color: var(--px-green); font-size: .12em; vertical-align: top; letter-spacing: 0; }
.hero-discipline { font-size: clamp(38px, 5vw, 76px); font-weight: 800; text-transform: uppercase; }
.hero-gradient { color: var(--px-green); background: none; -webkit-text-fill-color: currentColor; animation: title-glitch 2.8s steps(1,end) infinite; }
@keyframes title-glitch { 92% { transform: none; } 94% { transform: translateX(8px); } 96% { transform: translateX(-4px); } 98% { transform: none; } }
.hero-discipline b { font-family: inherit; color: var(--px-pink); }
.hero-aside { border-color: var(--px-line); }
.hero-lead { color: #c9ceca; font-size: 13px; }
.pixel-status { display: grid; grid-template-columns: auto 1fr; gap: 5px 20px; padding: 12px; border: 1px solid var(--px-line); background: rgba(8,10,14,.7); font-size: 9px; }
.pixel-status span { color: var(--px-muted); }
.pixel-status b { color: var(--px-green); font-weight: 600; }
.pixel-blink { animation: pixel-blink .75s steps(1,end) infinite; }
.pixel-bootline { position: absolute; left: 32px; right: 32px; bottom: 18px; z-index: 4; display: flex; justify-content: space-between; color: rgba(241,243,231,.45); font-size: 8px; letter-spacing: .1em; }
.scroll-cue { right: 18px; color: var(--px-green); }
.scroll-cue::after { background: var(--px-green); animation-timing-function: steps(5,end); }
.ambient-flow { image-rendering: pixelated; mix-blend-mode: screen; }
.pixel-intro + .section { color: var(--px-text); background: var(--px-panel); }
.pixel-intro + .section .intro-side p, .pixel-intro + .section .fact span { color: var(--px-muted); }
.pixel-intro + .section .facts, .pixel-intro + .section .fact { border-color: var(--px-line); }

/* Ordered project archive */
#selected-projects { color: var(--px-text); background: var(--px-bg); }
#selected-projects .section-title em { color: var(--px-green); }
.projects-grid,
#selected-projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 18px;
}
.project-card, .project-card--wide, .project-card--portrait, .project-card--landscape,
#selected-projects .project-card:nth-child(n) { grid-column: auto; margin-top: 0; min-width: 0; }
.project-card__link {
  padding: 8px;
  color: var(--px-text);
  border: 1px solid var(--px-line);
  background: var(--px-panel);
  box-shadow: 6px 6px 0 #020305;
  transform: none;
  transition: transform .18s steps(2,end), border-color .18s, box-shadow .18s steps(2,end);
}
.project-card__link::before { display: none; }
.project-card__link:hover { transform: translate(-3px,-3px); border-color: var(--px-green); box-shadow: 10px 10px 0 rgba(215,255,63,.18); }
.project-card__top { display: flex; justify-content: space-between; gap: 12px; padding: 2px 3px 9px; color: var(--px-muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.project-card__top span:first-child { color: var(--px-green); }
.project-card__media,
.project-card--portrait .project-card__media,
.project-card--wide .project-card__media,
#selected-projects .project-card:nth-child(n) .project-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: 1px solid rgba(241,243,231,.16);
  background: #dfe0d8;
}
.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(8,10,14,.055) 3px 4px);
  mix-blend-mode: multiply;
}
.project-card__media img { height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.06); transition: transform .35s steps(5,end), filter .35s; }
.project-card[data-category="course"] .project-card__media img,
.project-card[data-category="technical"] .project-card__media img { object-fit: contain; object-position: center; }
.project-card__overlay { padding: 12px; background: rgba(8,10,14,.42); }
.project-card__view { width: 72px; height: 72px; border-radius: 0; color: var(--px-ink); background: var(--px-green); font-size: 9px; box-shadow: 4px 4px 0 #030408; }
.project-card__info { min-height: 88px; margin-top: 0; padding: 15px 3px 4px; border-top: 0; }
.project-card__info h3 { color: var(--px-text); font-size: clamp(17px,1.7vw,23px); letter-spacing: -.04em; }
.project-card__info p, .project-card__info span,
#selected-projects .project-card__info p, #selected-projects .project-card__info span { color: var(--px-muted); font-size: 9px; }
.project-card__index { color: var(--px-green) !important; }
.project-catalog { display: grid; grid-template-columns: repeat(5,1fr); margin-bottom: 54px; border-top: 1px solid var(--px-line); border-left: 1px solid var(--px-line); }
.catalog-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; min-height: 126px; padding: 16px; border-right: 1px solid var(--px-line); border-bottom: 1px solid var(--px-line); background: rgba(16,20,26,.6); }
.catalog-item > span { color: var(--px-green); font-size: 9px; }
.catalog-item strong { font-size: 14px; font-weight: 600; }
.catalog-item small { grid-column: 2; color: var(--px-muted); font-size: 8px; }
.catalog-item b { position: absolute; right: 12px; bottom: 5px; color: rgba(241,243,231,.12); font-size: 40px; line-height: 1; }
.filter-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--px-muted); font-size: 9px; letter-spacing: .08em; }
.filter-label span:first-child { color: var(--px-green); }
.filter-bar { gap: 0; margin-bottom: 48px; border-left: 1px solid var(--px-line); }
.filter-button { flex: 1; min-width: 120px; padding: 13px 12px; color: var(--px-muted); border: 1px solid var(--px-line); border-left: 0; border-radius: 0; background: var(--px-panel); font-size: 10px; }
.filter-button:hover, .filter-button.is-active { color: var(--px-ink); border-color: var(--px-green); background: var(--px-green); }

/* Pixel editorial modules */
.section-heading { padding-bottom: 24px; border-bottom: 1px solid var(--px-line); }
.intro-statement { font-family: inherit; font-weight: 700; text-transform: uppercase; }
.facts { border-color: rgba(11,14,18,.25); }
.fact strong { font-family: inherit; }
.process-list, .timeline { border-color: var(--px-line); }
.process-item, .timeline-item { border-color: var(--px-line); }
.process-item > span { color: var(--px-green); }
.process-item h3, .timeline-item h3 { font-family: inherit; }
.skill-strip { border-color: var(--px-line); background: var(--px-green); color: var(--px-ink); }
.skill-track { animation-timing-function: steps(40,end); }
.skill-track span { font-size: clamp(18px,2.2vw,30px); font-weight: 800; text-transform: uppercase; }
.skill-track span::after { content: "▓"; color: var(--px-pink); }

.motion-lab { background: var(--px-bg); }
.motion-stage { border-radius: 0; border-color: var(--px-line); background: var(--px-bg); box-shadow: 12px 12px 0 #182019; }
.motion-stage::before { content: "SYSTEM_VIEWPORT"; position: absolute; left: 0; top: 0; z-index: 6; padding: 7px 10px; color: var(--px-ink); background: var(--px-green); font-size: 8px; letter-spacing: .1em; }
.motion-stage::after { background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(255,255,255,.035) 4px 5px); }
.motion-stage__grid { opacity: .24; background-size: 32px 32px; mask-image: none; }
.motion-stage__top { top: 34px; }
.motion-stage__content h2 { font-family: inherit; font-weight: 800; text-transform: uppercase; text-shadow: 4px 0 rgba(255,91,168,.35), -4px 0 rgba(75,215,255,.26); }
.motion-stage__content h2 em { font-family: inherit; color: var(--px-green); }
.motion-plane { border-radius: 0; border-color: var(--px-green); box-shadow: 7px 7px 0 rgba(0,0,0,.75); }
.motion-plane img { filter: saturate(.45) contrast(1.25); }

/* Inner pages */
.page-hero {
  color: var(--px-text);
  background-color: var(--px-panel);
  background-image: linear-gradient(var(--px-grid) 1px,transparent 1px), linear-gradient(90deg,var(--px-grid) 1px,transparent 1px);
  background-size: 32px 32px;
  border-color: var(--px-line);
}
.page-hero::after { content: "SYS / PAGE_HEADER"; position: absolute; right: 32px; top: 92px; color: var(--px-green); font-size: 8px; letter-spacing: .12em; }
.page-hero p { color: var(--px-muted); }
.page-meta { border-color: var(--px-line); color: var(--px-muted); }
.page-meta span::before { content: "■ "; color: var(--px-green); }
.notice { border-radius: 0; border-color: rgba(215,255,63,.5); color: var(--px-green); background: rgba(215,255,63,.05); }
.notice::before { content: "!"; border-radius: 0; font-family: inherit; }

.portrait-frame, .resume-viewer, .media-frame { border-radius: 0; border: 1px solid var(--px-line); box-shadow: 7px 7px 0 rgba(0,0,0,.35); }
.portrait-frame::after, .media-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(8,10,14,.05) 4px 5px); }
.about-signature { color: var(--px-green); font-size: 24px; }
.skills-grid { gap: 8px; }
.skill-card { min-height: 210px; border-radius: 0; border-color: var(--px-line); background: var(--px-panel); box-shadow: 5px 5px 0 rgba(0,0,0,.32); }
.skill-card::before { display: none; }
.skill-card span { color: var(--px-green); }
.skill-card h3 { color: var(--px-text); font-family: inherit; font-size: 23px; text-transform: uppercase; }
.software-list span { border-radius: 0; border-color: var(--px-line); color: var(--px-text); background: var(--px-panel); }
.timeline-item time { color: var(--px-green); }

.contact-detail { border-color: var(--px-line); }
.contact-detail a { color: var(--px-green); }
.contact-form { padding: 24px; border: 1px solid var(--px-line); background: var(--px-panel); box-shadow: 8px 8px 0 #020305; }
.field input, .field select, .field textarea { color: var(--px-text); border-color: var(--px-line); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--px-green); }
.field select option { color: var(--px-text); background: var(--px-panel); }
.form-status { color: var(--px-muted); }

.project-hero { min-height: 88svh; background: var(--px-bg); }
.project-hero__media { inset: 16px; top: 74px; border: 1px solid var(--px-line); }
.project-hero__media::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent 0 4px,rgba(8,10,14,.1) 4px 5px); }
.project-hero::after { background: linear-gradient(180deg,rgba(8,10,14,.2),rgba(8,10,14,.92)); }
.project-hero__content h1 { font-family: inherit; font-weight: 800; text-transform: uppercase; }
.project-hero__content h1 em { color: var(--px-green); }
.project-hero__meta { border-color: var(--px-line); }
.reading-progress { height: 5px; background: var(--px-green); }
.reading-progress--native { animation: reading-progress linear both; animation-timeline: scroll(root block); }
@keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.project-overview__meta, .meta-item, .chapter { border-color: var(--px-line); }
.chapter__body { min-width: 0; }
.material-grid { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); }
.meta-item dt, .chapter__label { color: var(--px-green); }
.chapter__body h2 { font-family: inherit; font-weight: 700; text-transform: uppercase; }
.chapter__body > p { color: var(--px-muted); }
.media-caption { color: var(--px-muted); font-size: 9px; }
.swatch { border-radius: 0; border: 1px solid var(--px-line); }
.project-next { color: var(--px-text); background: var(--px-panel); border-top: 1px solid var(--px-green); }
.project-next h2 { font-family: inherit; font-weight: 800; text-transform: uppercase; }
.project-next__arrow { color: var(--px-green); }

/* Footer and overlays */
.site-footer { color: var(--px-text); background-color: #050608; background-image: linear-gradient(var(--px-grid) 1px,transparent 1px),linear-gradient(90deg,var(--px-grid) 1px,transparent 1px); background-size: 32px 32px; border-top: 1px solid var(--px-line); }
.footer-cta h2 { font-family: inherit; font-weight: 800; text-transform: uppercase; }
.footer-cta p, .footer-bottom { color: var(--px-muted); }
.footer-bottom { border-color: var(--px-line); }
.lightbox { background: rgba(5,6,8,.96); }
.lightbox img { border: 1px solid var(--px-green); box-shadow: 10px 10px 0 #030408; }
.lightbox button { border-radius: 0; border-color: var(--px-green); color: var(--px-green); }
.motion-preloader { color: var(--px-text); background-color: var(--px-bg); background-image: linear-gradient(var(--px-grid) 1px,transparent 1px),linear-gradient(90deg,var(--px-grid) 1px,transparent 1px); background-size: 24px 24px; transition-timing-function: steps(10,end); }
.motion-preloader__word { font-family: inherit; font-size: clamp(42px,8vw,118px); font-weight: 800; text-transform: uppercase; }
.motion-preloader__word i { font-family: inherit; color: var(--px-green); font-style: normal; }
.motion-preloader__bottom i { height: 5px; background: var(--px-green); }
.page-transition { color: var(--px-green); background: var(--px-bg); border-top: 12px solid var(--px-green); transition-timing-function: steps(8,end); }
.page-transition span { font-family: inherit; font-weight: 800; }
.pointer-glow { background: radial-gradient(circle,rgba(215,255,63,.09),transparent 62%); }
.motion-cursor, .pointer-glow { display: none !important; }
.motion-cursor { width: 12px; height: 12px; left: -6px; top: -6px; border-radius: 0; border-color: var(--px-green); background: rgba(8,10,14,.7); backdrop-filter: none; transition-timing-function: steps(3,end); }
.motion-cursor.is-view { border-radius: 0; color: var(--px-ink); border-color: var(--px-green); background: var(--px-green); }
.motion-cursor.is-link { border-radius: 0; background: var(--px-pink); }
.reveal { filter: none; clip-path: inset(0 0 100% 0); transform: translateY(18px); transition: opacity .55s steps(8,end), transform .55s steps(8,end), clip-path .55s steps(8,end); }
.reveal.is-visible { clip-path: inset(0); }

@media (max-width: 1100px) {
  .projects-grid, #selected-projects .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-catalog { grid-template-columns: repeat(3,1fr); }
  .pixel-halo, .pixel-portal { left: 70%; }
}

@media (max-width: 680px) {
  :root { --page: calc(100vw - 28px); }
  body::before { background-size: 24px 24px; }
  .site-header { height: 64px; }
  .hero-content { padding: 92px 0 54px; }
  .hero-kicker { margin-bottom: auto; }
  .hero-layout { gap: 18px; }
  .hero-overline { font-size: 7px; }
  .hero-name { margin-bottom: 10px; font-size: clamp(56px,18vw,74px); line-height: .8; }
  .hero-discipline { font-size: clamp(30px,9.5vw,40px); }
  .hero-aside { padding-top: 14px; border-color: var(--px-line); }
  .pixel-status { display: none; }
  .hero-lead { max-width: 310px; font-size: 11px; }
  .pixel-halo { left: 66%; top: 39%; width: 88vw; }
  .pixel-portal { left: 66%; top: 38%; width: 48vw; }
  .pixel-frame--a { right: -12%; top: 15%; transform: scale(.72); }
  .pixel-frame--b { left: 8%; bottom: 40%; transform: scale(.72); }
  .pixel-city { height: 12%; }
  .pixel-bootline { left: 14px; right: 14px; bottom: 12px; }
  .pixel-bootline span:nth-child(2) { display: none; }
  .projects-grid, #selected-projects .projects-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-card__media, .project-card--portrait .project-card__media { aspect-ratio: 4/3; }
  .project-catalog { grid-template-columns: repeat(2,1fr); margin-bottom: 38px; }
  .catalog-item { min-height: 98px; padding: 12px; }
  .catalog-item b { font-size: 30px; }
  .filter-label { display: none; }
  .filter-bar { display: grid; grid-template-columns: repeat(2,1fr); }
  .filter-button { min-width: 0; border-bottom: 0; }
  .filter-button:last-child { border-bottom: 1px solid var(--px-line); }
  .page-hero::after { right: 14px; top: 76px; }
  .page-meta { gap: 8px; }
  .motion-stage { box-shadow: 6px 6px 0 #b9bcae; }
  .project-hero__media { inset: 8px; top: 66px; }
  .contact-form { padding: 16px; box-shadow: 5px 5px 0 #020305; }
  .reveal { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark, .pixel-halo, .pixel-portal, .pixel-frame, .pixel-blink, .hero-kicker i { animation: none !important; }
}

/* Density pass: content stays visible even when motion observers are delayed. */
.section { padding: 88px 0; }
.section--compact { padding: 42px 0; }
.section-heading { margin-bottom: 40px; }
.intro-grid { gap: 6vw; }
.projects-grid,
#selected-projects .projects-grid { gap: 28px 18px; }
#selected-projects .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
#selected-projects .project-card:nth-child(n) .project-card__media { aspect-ratio: 16 / 10; }
.motion-lab { padding: 82px 0; }
.motion-stage,
.motion-stage__content { min-height: min(640px,72svh); }
.process-layout { gap: 5vw; }
.process-item { padding: 24px 0; }
.page-hero { padding: 140px 0 58px; }
.page-meta { margin-top: 36px; padding-top: 22px; }
.project-catalog { margin-bottom: 30px; }
.catalog-item { min-height: 104px; }
.filter-bar { margin-bottom: 34px; }

.reveal,
.motion-enabled .reveal {
  opacity: 1;
  filter: none;
  clip-path: none;
  transform: none;
}
.motion-enabled .reveal.is-visible {
  animation: pixel-content-in .48s steps(7,end) both;
}
@keyframes pixel-content-in {
  from { opacity: .25; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .section--compact { padding: 28px 0; }
  .section-heading { margin-bottom: 28px; }
  .intro-grid, .process-layout { gap: 32px; }
  .projects-grid, #selected-projects .projects-grid { grid-template-columns: 1fr; gap: 22px; }
  #selected-projects .project-card:nth-child(n) .project-card__media { aspect-ratio: 16 / 10; }
  .motion-lab { padding: 54px 0; }
  .motion-stage,
  .motion-stage__content { min-height: 520px; }
  .motion-stage__content { padding: 20% 7% 12%; }
  .process-item { padding: 21px 0; }
  .page-hero { padding: 104px 0 42px; }
  .page-meta { margin-top: 28px; padding-top: 18px; }
  .project-catalog { margin-bottom: 24px; }
  .catalog-item { min-height: 88px; }
  .filter-bar { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-enabled .reveal.is-visible { animation: none; }
}

/* Simple project detail: cover, introduction, images. */
.simple-project-page .project-hero,
.simple-project-page .project-hero__content { min-height: 74svh; }
.simple-project-page .project-hero__content { padding: 118px 0 38px; }
.simple-project-page .project-hero__meta { justify-content: flex-start; gap: 28px; margin-top: 28px; }
.simple-project-intro { padding: 68px 0 56px; border-bottom: 1px solid var(--px-line); }
.simple-project-intro__grid { display: grid; grid-template-columns: minmax(150px,.35fr) minmax(0,1.65fr); gap: 6vw; align-items: start; }
.simple-project-intro__label { margin: 7px 0 0; color: var(--px-green); font-size: 10px; letter-spacing: .08em; }
.simple-project-intro__copy { max-width: 940px; margin: 0; color: var(--px-text); font-size: clamp(22px,2.7vw,40px); line-height: 1.42; letter-spacing: -.035em; }
.simple-project-gallery-section { padding: 52px 0 88px; background: var(--px-bg); }
.simple-project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.simple-project-gallery figure { min-width: 0; margin: 0; }
.simple-project-gallery .media-frame { height: 100%; background: #dfe0d8; }
.simple-project-gallery .media-frame img { height: 100%; object-fit: contain; background: #dfe0d8; }
.simple-project-gallery--interior figure:first-child { grid-column: 1 / -1; }
.simple-project-gallery--interior .media-frame img { object-fit: cover; }
.simple-project-gallery--photos .media-frame { aspect-ratio: 4 / 3; background: #11140f; }
.simple-project-gallery--photos .media-frame img { object-fit: cover; background: #11140f; }
.simple-project-gallery--photos figure:first-child { grid-column: 1 / -1; }
.simple-project-gallery .gallery-item--contain .media-frame img { object-fit: contain; }
.simple-project-gallery--boards figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(760px,100%); margin-inline: auto; }
.simple-project-gallery--single { grid-template-columns: 1fr; }
.simple-project-gallery--single figure { width: min(980px,100%); margin-inline: auto; }

@media (max-width: 680px) {
  .simple-project-page .project-hero,
  .simple-project-page .project-hero__content { min-height: 66svh; }
  .simple-project-page .project-hero__content { padding: 94px 0 28px; }
  .simple-project-page .project-hero__meta { margin-top: 20px; }
  .simple-project-intro { padding: 42px 0 38px; }
  .simple-project-intro__grid { grid-template-columns: 1fr; gap: 16px; }
  .simple-project-intro__label { margin: 0; }
  .simple-project-intro__copy { font-size: 20px; line-height: 1.5; }
  .simple-project-gallery-section { padding: 28px 0 56px; }
  .simple-project-gallery { grid-template-columns: 1fr; gap: 14px; }
  .simple-project-gallery--interior figure:first-child,
  .simple-project-gallery--photos figure:first-child,
  .simple-project-gallery--boards figure:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
}

/* Three-part information architecture: home, projects, resume. */
.nav-link::after { display: none; }
.nav-link:hover,
.nav-link.is-active { color: var(--px-green); background: rgba(207,229,107,.08); }
.page-hero::after { display: none; }
.page-hero__grid { grid-template-columns: minmax(0,1fr); gap: 22px; align-items: start; }
.page-hero__grid > p { max-width: 640px; font-size: 16px; }
.eyebrow { padding: 0; border: 0; }
.eyebrow::before { display: none; }

.home-streamlined .pixel-intro::before { opacity: .36; }
.home-streamlined .pixel-visual::before { opacity: .28; }
.home-streamlined .hero-kicker { margin-bottom: 32px; }
.home-streamlined .hero-kicker::before { content: "["; }
.home-streamlined .hero-kicker::after { content: "]"; }
.home-streamlined #selected-projects { padding-block: 76px; }
.home-streamlined .section-heading { align-items: end; margin-bottom: 34px; padding-bottom: 20px; }
.home-streamlined .section-title { font-size: clamp(40px,5.6vw,76px); }

.project-card__link { padding: 0; box-shadow: none; }
.project-card__link:hover { transform: translateY(-3px); box-shadow: none; }
.project-card:nth-child(n) { margin-top: 0; }
.project-card__info { min-height: 0; padding: 14px 2px 4px; }
.project-card__info h3 { font-size: clamp(17px,1.6vw,22px); }
.project-card__index { white-space: nowrap; }

.site-footer--minimal { padding: 0; }
.footer-minimal { display: grid; grid-template-columns: 1fr auto auto; gap: 42px; align-items: center; min-height: 116px; }
.footer-identity { display: grid; gap: 4px; }
.footer-identity strong { color: var(--px-text); font-size: 16px; letter-spacing: .08em; }
.footer-identity span { color: var(--px-muted); font-size: 9px; text-transform: uppercase; }
.footer-email { color: var(--px-green); font-size: 11px; }
.site-footer--minimal .footer-links { display: flex; gap: 20px; color: var(--px-muted); font-size: 10px; }
.site-footer--minimal .footer-links a:hover { color: var(--px-green); }

@media (max-width: 680px) {
  .home-streamlined .hero-kicker { margin-bottom: auto; }
  .home-streamlined #selected-projects { padding-block: 52px; }
  .home-streamlined .section-heading { display: flex; align-items: end; gap: 18px; }
  .home-streamlined .section-heading .text-link { margin-top: 0; }
  .footer-minimal { grid-template-columns: 1fr; gap: 14px; min-height: 0; padding-block: 28px; }
  .site-footer--minimal .footer-links { order: 2; }
  .footer-email { order: 3; }
}

/* Continuous single-page portfolio: home, resume, projects. */
html { scroll-behavior: smooth; }
.single-page-portfolio { overflow-x: clip; background: var(--px-bg); }
.single-page-portfolio .story-section { scroll-margin-top: 68px; }
.single-page-portfolio .pixel-intro { min-height: 100svh; overflow: hidden; isolation: isolate; }
.single-page-portfolio .hero-content,
.single-page-portfolio .pixel-visual { will-change: transform, opacity; }
.single-page-portfolio .hero-actions { flex-wrap: wrap; }

.story-rail {
  position: absolute;
  left: max(22px,calc((100% - var(--page)) / 2));
  bottom: 22px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(42px,7vw) auto;
  gap: 10px;
  align-items: center;
  color: var(--px-muted);
  font-size: 8px;
  letter-spacing: .12em;
  pointer-events: none;
}
.story-rail span { color: var(--px-green); }
.story-rail i { display: block; height: 1px; overflow: hidden; background: var(--px-line); }
.story-rail i::after { content: ""; display: block; width: 38%; height: 100%; background: var(--px-green); animation: story-rail 1.8s steps(8,end) infinite; }
.story-rail b { font-weight: 500; }
@keyframes story-rail { from { transform: translateX(-100%); } to { transform: translateX(360%); } }

.single-page-section {
  position: relative;
  min-height: 100svh;
  overflow: clip;
  padding: 104px 0 120px;
  border-top: 1px solid var(--px-green);
  isolation: isolate;
}
.single-page-section > .page-shell { position: relative; z-index: 2; }
.single-page-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(215,255,63,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(215,255,63,.035) 1px,transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg,#000 0,transparent 42%);
}
.single-page-section::after {
  content: "";
  position: absolute;
  right: -14vw;
  top: -18vw;
  z-index: -1;
  width: 42vw;
  aspect-ratio: 1;
  border: 1px solid rgba(215,255,63,.14);
  transform: rotate(45deg);
  box-shadow: 0 0 0 7vw rgba(215,255,63,.018),0 0 0 14vw rgba(215,255,63,.012);
  pointer-events: none;
}
.home-projects { background: #0b0e13; }
.home-projects::after { left: -25vw; right: auto; top: 24vw; }

.section-signal {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 52px minmax(80px,13vw) 52px;
  align-items: center;
  min-height: 34px;
  color: var(--px-bg);
  background: var(--px-green);
  font-size: 9px;
  text-align: center;
}
.section-signal i { height: 1px; background: rgba(8,10,14,.36); }

.single-section-heading {
  display: grid;
  grid-template-columns: minmax(110px,2fr) minmax(0,7fr) minmax(240px,3fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 68px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--px-line);
}
.single-section-heading > p {
  margin: 0 0 9px;
  color: var(--px-green);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.single-section-heading h2 {
  margin: 0;
  color: var(--px-text);
  font-size: clamp(44px,6.2vw,90px);
  line-height: .92;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.single-section-heading h2 em { color: var(--px-green); font-style: normal; }
.single-section-heading > span {
  max-width: 360px;
  margin-bottom: 8px;
  color: var(--px-muted);
  font-size: 12px;
  line-height: 1.8;
}

.resume-continuity-grid {
  display: grid;
  grid-template-columns: minmax(240px,.42fr) minmax(0,1.58fr);
  gap: clamp(28px,5vw,76px);
  align-items: start;
}
.resume-panel {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 30px;
  padding: 24px;
  border: 1px solid var(--px-line);
  background: rgba(14,18,23,.9);
  box-shadow: 8px 8px 0 rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}
.resume-panel__identity > span { color: var(--px-green); font-size: 8px; letter-spacing: .1em; }
.resume-panel__identity h3 { margin: 20px 0 5px; color: var(--px-text); font-size: clamp(34px,4vw,54px); line-height: .9; letter-spacing: -.06em; }
.resume-panel__identity p { margin: 12px 0 0; color: var(--px-muted); font-size: 12px; line-height: 1.7; }
.resume-panel__facts { display: grid; margin: 0; border-top: 1px solid var(--px-line); }
.resume-panel__facts div { display: grid; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--px-line); }
.resume-panel__facts dt { color: var(--px-green); font-size: 8px; }
.resume-panel__facts dd { margin: 0; color: var(--px-text); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.resume-panel__facts a:hover { color: var(--px-green); }
.resume-download { justify-content: space-between; width: 100%; }
.resume-preview {
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--px-line);
  background: #e8e8e2;
  box-shadow: 14px 14px 0 rgba(0,0,0,.48);
  transform-origin: 50% 0;
  will-change: transform, opacity, clip-path;
}
.resume-preview img { display: block; width: 100%; height: auto; background: #fff; }
.resume-preview figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 3px 0; color: #33372f; font-size: 8px; letter-spacing: .08em; }
.story-rail--section { position: relative; left: auto; bottom: auto; width: var(--page); margin: 80px auto 0; }

.single-section-heading--projects { margin-bottom: 44px; }
.home-projects .filter-bar { position: relative; z-index: 4; margin-bottom: 42px; }
.projects-grid--continuous { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 46px 22px; }
.projects-grid--continuous .project-card { min-width: 0; will-change: transform, opacity; }
.project-card__link--static { cursor: default; }
.project-card__link--static:hover { transform: none; }
.project-card__summary {
  max-width: 680px;
  margin: 12px 2px 0;
  color: var(--px-muted);
  font-size: 10px;
  line-height: 1.7;
}
.project-card__browse {
  align-self: center;
  color: var(--px-green) !important;
  white-space: nowrap;
}
.project-card__browse::after { content: "  ↗"; }
.project-card__link:focus-visible {
  outline: 2px solid var(--px-green);
  outline-offset: 6px;
}
.projects-grid--continuous .project-card__media { aspect-ratio: 16 / 10; }
.projects-grid--continuous .project-card:nth-child(3n) { grid-column: span 2; }
.projects-grid--continuous .project-card:nth-child(3n) .project-card__media { aspect-ratio: 21 / 9; }
.project-card[hidden] { display: none !important; }

.project-back {
  position: absolute;
  top: 92px;
  left: 0;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 10px 13px;
  color: var(--px-text);
  border: 1px solid rgba(241,243,231,.42);
  background: rgba(8,10,14,.62);
  font-size: 9px;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.project-back::before { content: "←"; margin-right: 9px; color: var(--px-green); }
.project-back:hover,
.project-back:focus-visible { color: var(--px-ink); border-color: var(--px-green); background: var(--px-green); outline: none; }
.project-back:hover::before,
.project-back:focus-visible::before { color: var(--px-ink); }
.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--px-line);
}
.gallery-heading h2 { margin: 0; color: var(--px-text); font-size: clamp(28px,4vw,52px); letter-spacing: -.055em; }
.gallery-heading p { margin: 0; color: var(--px-muted); font-size: 10px; }
.gallery-heading p span { color: var(--px-green); }

.scroll-story-ready .section-signal i { animation: signal-scan 1.4s steps(7,end) infinite; transform-origin: left; }
@keyframes signal-scan { 0%,20% { transform: scaleX(.15); } 80%,100% { transform: scaleX(1); } }

@media (max-width: 980px) {
  .single-section-heading { grid-template-columns: 1fr 3fr; }
  .single-section-heading > span { grid-column: 2; }
  .resume-continuity-grid { grid-template-columns: minmax(210px,.5fr) minmax(0,1.5fr); gap: 28px; }
}

@media (max-width: 760px) {
  html { scroll-behavior: auto; }
  .single-page-section { min-height: 0; padding: 78px 0 76px; }
  .single-page-section::after { display: none; }
  .section-signal { grid-template-columns: 42px 74px 42px; }
  .single-section-heading { display: block; margin-bottom: 38px; padding-bottom: 22px; }
  .single-section-heading > p { margin-bottom: 20px; }
  .single-section-heading h2 { font-size: clamp(40px,13vw,58px); }
  .single-section-heading > span { display: block; margin-top: 22px; font-size: 11px; }
  .resume-continuity-grid { grid-template-columns: 1fr; gap: 28px; }
  .resume-panel { position: relative; top: auto; padding: 18px; box-shadow: 5px 5px 0 rgba(0,0,0,.38); }
  .resume-panel__facts { grid-template-columns: 1fr; }
  .resume-preview { padding: 5px; box-shadow: 6px 6px 0 rgba(0,0,0,.48); }
  .story-rail { left: 14px; bottom: 14px; }
  .story-rail--section { left: auto; bottom: auto; width: calc(100% - 28px); margin-top: 48px; }
  .projects-grid--continuous { grid-template-columns: 1fr; gap: 34px; }
  .projects-grid--continuous .project-card:nth-child(3n) { grid-column: auto; }
  .projects-grid--continuous .project-card:nth-child(3n) .project-card__media { aspect-ratio: 4 / 3; }
  .projects-grid--continuous .project-card__media { aspect-ratio: 4 / 3; }
  .project-card__summary { font-size: 10px; }
  .project-card__info { grid-template-columns: 1fr; gap: 9px; }
  .project-card__browse { justify-self: start; }
  .project-back { top: 78px; }
  .gallery-heading { display: block; margin-bottom: 18px; }
  .gallery-heading p { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-rail i::after,
  .scroll-story-ready .section-signal i { animation: none; }
  .single-page-portfolio [style] { transition-duration: .01ms !important; }
}

/* Hero poster pass: stronger hierarchy without adding more effects. */
.single-page-portfolio #home .hero-content {
  justify-content: flex-start;
  padding: 88px 0 32px;
}
.single-page-portfolio #home .hero-kicker {
  position: relative;
  z-index: 5;
  margin: 0;
}
.single-page-portfolio #home .hero-layout {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12,minmax(0,1fr));
  align-items: center;
  gap: 0;
  min-height: 0;
}
.single-page-portfolio #home .hero-lockup {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  width: 100%;
}
.single-page-portfolio #home h1 { position: relative; max-width: none; }
.single-page-portfolio #home .hero-name {
  display: grid;
  width: 100%;
  margin: 0;
  color: var(--px-text);
  font-size: clamp(154px,20.5vw,316px);
  line-height: .64;
  letter-spacing: -.105em;
  text-shadow: none;
  transform: translateX(-.025em);
}
.single-page-portfolio #home .hero-name__sun,
.single-page-portfolio #home .hero-name__lei {
  display: block;
  width: max-content;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.16,1,.3,1),color .16s steps(2,end),background .16s steps(2,end),box-shadow .16s steps(2,end);
}
.single-page-portfolio #home .hero-name__sun {
  position: relative;
  z-index: 1;
  justify-self: start;
  transform: translate3d(var(--hero-sun-x,0),var(--hero-sun-y,0),0);
}
.single-page-portfolio #home .hero-name__sun::after {
  content: "";
  position: absolute;
  right: -.18em;
  top: .08em;
  width: .12em;
  height: .12em;
  background: var(--px-green);
  box-shadow: .15em 0 0 rgba(241,243,231,.2),0 .15em 0 rgba(241,243,231,.2);
}
.single-page-portfolio #home .hero-name__lei {
  position: relative;
  z-index: 2;
  justify-self: end;
  margin-top: .04em;
  padding: .02em .11em .08em .045em;
  color: var(--px-ink);
  background: var(--px-green);
  box-shadow: -14px 14px 0 rgba(241,243,231,.08);
  transform: translate3d(var(--hero-lei-x,0),var(--hero-lei-y,0),0);
}
.single-page-portfolio #home .hero-discipline {
  position: absolute;
  left: 31%;
  top: 48%;
  z-index: 4;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 18px;
  padding: 11px 15px;
  color: var(--px-text);
  border: 1px solid rgba(241,243,231,.45);
  background: rgba(8,10,14,.9);
  box-shadow: 7px 7px 0 rgba(0,0,0,.55);
  font-size: clamp(18px,2vw,30px);
  line-height: 1;
  letter-spacing: -.035em;
  white-space: nowrap;
  transform: translate3d(var(--hero-band-x,0),var(--hero-band-y,0),0);
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}
.single-page-portfolio #home .hero-gradient {
  color: var(--px-green);
  animation: none;
}
.single-page-portfolio #home .hero-discipline__en {
  color: var(--px-muted);
  font-size: .38em;
  letter-spacing: .12em;
}
.single-page-portfolio #home .hero-aside {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 5;
  width: min(350px,31vw);
  gap: 18px;
  padding: 18px 0 0 20px;
  border-left: 1px solid var(--px-line);
  background: linear-gradient(90deg,rgba(8,10,14,.78),rgba(8,10,14,.24));
  transform: translate3d(var(--hero-aside-x,0),var(--hero-aside-y,0),0);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.single-page-portfolio #home .hero-lead { font-size: 12px; line-height: 1.7; }
.single-page-portfolio #home .hero-actions { gap: 10px; }
.single-page-portfolio #home .button { min-height: 46px; padding-inline: 18px; }

@media (hover: hover) and (pointer: fine) {
  .single-page-portfolio #home .hero-name__sun::before,
  .single-page-portfolio #home .hero-name__lei::before {
    content: attr(data-action);
    position: absolute;
    z-index: 6;
    padding: 8px 10px;
    border: 1px solid var(--px-green);
    font-size: 9px;
    line-height: 1;
    letter-spacing: .08em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s steps(2,end),transform .2s cubic-bezier(.16,1,.3,1);
  }
  .single-page-portfolio #home .hero-name__sun::before {
    right: -96px;
    top: 20px;
    color: var(--px-ink);
    background: var(--px-green);
    transform: translateX(-12px);
  }
  .single-page-portfolio #home .hero-name__lei::before {
    right: 0;
    top: -34px;
    color: var(--px-green);
    background: rgba(8,10,14,.92);
    transform: translateY(10px);
  }
  .single-page-portfolio #home .hero-name__sun:hover,
  .single-page-portfolio #home .hero-name__sun:focus-visible { color: var(--px-green); }
  .single-page-portfolio #home .hero-name__lei:hover,
  .single-page-portfolio #home .hero-name__lei:focus-visible {
    color: var(--px-ink);
    background: var(--px-text);
    box-shadow: -14px 14px 0 rgba(215,255,63,.58);
  }
  .single-page-portfolio #home .hero-name__sun:hover::before,
  .single-page-portfolio #home .hero-name__sun:focus-visible::before,
  .single-page-portfolio #home .hero-name__lei:hover::before,
  .single-page-portfolio #home .hero-name__lei:focus-visible::before {
    opacity: 1;
    transform: none;
  }
  .single-page-portfolio #home .hero-name__sun:focus-visible,
  .single-page-portfolio #home .hero-name__lei:focus-visible {
    outline: 2px solid var(--px-green);
    outline-offset: 7px;
  }
  .single-page-portfolio #home .hero-name__sun:active,
  .single-page-portfolio #home .hero-name__lei:active { scale: .985; }
}

@media (max-width: 980px) {
  .single-page-portfolio #home .hero-name { font-size: clamp(138px,21.5vw,220px); }
  .single-page-portfolio #home .hero-discipline { left: 24%; }
  .single-page-portfolio #home .hero-aside { width: min(330px,38vw); }
}

@media (max-width: 680px) {
  .single-page-portfolio #home .hero-content { padding: 86px 0 28px; }
  .single-page-portfolio #home .hero-kicker { margin-bottom: auto; }
  .single-page-portfolio #home .hero-layout {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 22px;
  }
  .single-page-portfolio #home .hero-lockup { width: 100%; }
  .single-page-portfolio #home .hero-name {
    font-size: clamp(102px,38vw,148px);
    line-height: .67;
    letter-spacing: -.1em;
  }
  .single-page-portfolio #home .hero-name__sun::after { right: -.11em; }
  .single-page-portfolio #home .hero-name__lei {
    margin-top: .1em;
    padding-right: .09em;
    box-shadow: -7px 7px 0 rgba(241,243,231,.08);
  }
  .single-page-portfolio #home .hero-discipline {
    position: relative;
    left: auto;
    top: auto;
    width: max-content;
    max-width: 100%;
    margin: 17px 0 0;
    grid-template-columns: auto;
    gap: 5px;
    padding: 8px 10px;
    font-size: 20px;
    white-space: normal;
  }
  .single-page-portfolio #home .hero-discipline__en { font-size: 8px; }
  .single-page-portfolio #home .hero-aside {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 15px 0 0;
    border-left: 0;
    border-top: 1px solid var(--px-line);
    background: none;
  }
  .single-page-portfolio #home .hero-lead { max-width: 330px; font-size: 10px; }
  .single-page-portfolio #home .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .single-page-portfolio #home .button { justify-content: center; min-width: 0; padding-inline: 10px; }
  .single-page-portfolio #home .hero-name__sun,
  .single-page-portfolio #home .hero-name__lei,
  .single-page-portfolio #home .hero-discipline,
  .single-page-portfolio #home .hero-aside { transform: none; }
}

/* ================================================================
   CINEMATIC GLASS PORTFOLIO / 2026-08-28
   Full-bleed opening adapted from the supplied landing-page brief.
   Shape rule: 16px media/panels, 8px controls, circular status marks.
   ================================================================ */
:root {
  --px-bg: #050707;
  --px-panel: #0b0f10;
  --px-panel-2: #111718;
  --px-paper: #eaedeb;
  --px-ink: #090b0b;
  --px-text: #f2f4f3;
  --px-muted: #a2aaa8;
  --px-green: #f0f2f1;
  --px-cyan: #f0f2f1;
  --px-pink: #f0f2f1;
  --px-line: rgba(239,243,242,.18);
  --px-grid: rgba(239,243,242,.035);
}

body {
  color-scheme: dark;
  background: #050707;
  font-family: "Arial Nova", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
body::before { opacity: .42; background-size: 48px 48px; }
::selection { color: #080a0a; background: #f4f6f5; }

/* The global chrome now shares the hero's restrained glass language. */
.site-header {
  height: 78px;
  color: #fff;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg,rgba(0,0,0,.24),transparent);
}
.site-header.is-scrolled,
body:not([data-page="home"]) .site-header {
  height: 64px;
  background: linear-gradient(145deg,rgba(13,16,16,.82),rgba(3,8,9,.88));
  border-bottom-color: rgba(255,255,255,.13);
  box-shadow: 0 2px 12px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035);
  backdrop-filter: blur(18px) saturate(108%);
}
.brand { font-family: "Arial Nova", "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 500; letter-spacing: -.02em; }
.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: conic-gradient(from 28deg,#f3f3f3 0 22%,#151718 22% 40%,#777b7a 40% 58%,#f9f9f9 58% 73%,#090a0a 73% 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,.38);
  animation: none;
}
.brand small { color: rgba(236,239,238,.58); font-family: inherit; font-size: 7px; font-weight: 400; letter-spacing: .09em; }
.desktop-nav { gap: clamp(20px,2.4vw,38px); }
.nav-link {
  padding: 8px 0;
  color: rgba(232,235,234,.74);
  font-family: inherit;
  font-size: 12px;
  font-weight: 430;
  letter-spacing: -.02em;
  text-transform: none;
}
.nav-link::after { inset: auto 0 0; width: 0; height: 1px; background: rgba(255,255,255,.9); }
.nav-link:hover,
.nav-link.is-active { color: #fff; background: transparent; }
.nav-link:hover::after,
.nav-link.is-active::after { right: auto; width: 100%; }
.lang-toggle,
.menu-toggle {
  border-color: rgba(255,255,255,.18);
  border-radius: 8px;
  background: linear-gradient(145deg,rgba(26,30,30,.66),rgba(5,12,13,.74));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 1px 6px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
}
.mobile-menu {
  background-color: rgba(5,8,8,.96);
  background-image: none;
  backdrop-filter: blur(18px) saturate(108%);
}

/* Full-bleed cinematic opening. */
.single-page-portfolio .cinematic-home {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 40%,rgba(60,86,85,.28),transparent 38%),
    linear-gradient(145deg,#151918,#030505 68%);
  isolation: isolate;
}
.single-page-portfolio .cinematic-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,rgba(0,0,0,.58) 0%,rgba(0,0,0,.17) 50%,rgba(0,0,0,.28) 100%),
    linear-gradient(180deg,rgba(0,0,0,.03),transparent 24%,transparent 76%,rgba(0,0,0,.36)),
    radial-gradient(ellipse at 44% 54%,transparent 28%,rgba(0,0,0,.3) 100%);
  animation: none;
  pointer-events: none;
}
.single-page-portfolio .cinematic-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,rgba(0,0,0,.22),transparent 18%,transparent 84%,rgba(0,0,0,.22));
  pointer-events: none;
}
.cinematic-background {
  position: absolute;
  inset: -12px;
  z-index: 0;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  object-position: center;
  filter: saturate(.67) brightness(.72) contrast(1.08);
  transform: translate3d(var(--cinema-bg-x,0),var(--cinema-bg-y,0),0) scale(1.025);
  transition: transform .8s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
  user-select: none;
}
.cinematic-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .13;
  background-image:
    repeating-radial-gradient(circle at 20% 30%,rgba(255,255,255,.18) 0 1px,transparent 1px 4px),
    repeating-radial-gradient(circle at 80% 70%,rgba(0,0,0,.2) 0 1px,transparent 1px 5px);
  background-size: 7px 7px,11px 11px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.mobile-signal { display: none; }
.cinematic-meta {
  position: absolute;
  top: 100px;
  right: max(32px,4.1vw);
  left: max(32px,4.1vw);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: rgba(235,238,237,.56);
  font-size: 9px;
  font-weight: 430;
  letter-spacing: .14em;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
.cinematic-hero-content {
  position: absolute;
  left: max(32px,4.1vw);
  bottom: clamp(38px,5.2vh,64px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translate3d(var(--cinema-copy-x,0),var(--cinema-copy-y,0),0);
  transition: transform .48s cubic-bezier(.16,1,.3,1);
}
.cinematic-kicker {
  margin: 0 0 clamp(14px,2vh,22px);
  color: rgba(238,241,240,.72);
  font-size: 10px;
  font-weight: 440;
  letter-spacing: .12em;
  text-shadow: 0 1px 3px rgba(0,0,0,.72);
}
.cinematic-title {
  margin: 0;
  color: #fff;
  font-family: "Arial Nova", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  font-size: clamp(58px,7.64vh,88px);
  font-optical-sizing: auto;
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: clamp(72px,9.34vh,106px);
  -webkit-text-stroke: .12px currentColor;
  text-shadow: 0 2px 2px rgba(0,0,0,.44);
  white-space: nowrap;
}
.cinematic-line { display: block; overflow: hidden; transform-origin: left center; }
.cinematic-line--one { transform: scaleX(.91); }
.cinematic-line--two { color: rgba(211,215,214,.76); transform: scaleX(.94); }
.cinematic-line__reveal { display: block; transform-origin: left center; }
.cinematic-copy {
  position: relative;
  left: 1px;
  width: clamp(390px,31.67vw,500px);
  margin: clamp(15px,2.08vh,24px) 0 0;
  color: rgba(226,229,228,.84);
  font-size: clamp(14px,1.7vh,19px);
  font-weight: 350;
  letter-spacing: .01em;
  line-height: clamp(21px,2.4vh,28px);
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.cinematic-copy > span { display: block; }
.cinematic-primary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(148px,15.09vh,168px);
  height: clamp(42px,4.4vh,48px);
  margin-top: clamp(24px,3.11vh,36px);
  padding: 5px 6px 5px 14px;
  color: #101111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.72);
  font-size: clamp(14px,1.55vh,17px);
  font-weight: 460;
  letter-spacing: -.025em;
  transition: filter .14s ease,transform .14s ease;
}
.cinematic-primary i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: #070909;
  font-style: normal;
}
.cinematic-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.cinematic-primary:active { transform: translateY(0) scale(.985); }

.cinematic-card {
  position: absolute;
  right: max(32px,4.1vw);
  bottom: clamp(38px,5.2vh,64px);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: clamp(180px,19vh,218px);
  padding: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(24,22,20,.72),rgba(5,12,14,.83));
  box-shadow: 0 2px 10px rgba(0,0,0,.44),0 0 0 3px rgba(255,255,255,.035) inset,0 0 0 1px rgba(0,0,0,.9);
  backdrop-filter: blur(14px) saturate(108%);
  transform: translate3d(var(--cinema-card-x,0),var(--cinema-card-y,0),0);
  transition: transform .54s cubic-bezier(.16,1,.3,1),border-color .2s ease;
}
.cinematic-card:hover { border-color: rgba(255,255,255,.28); }
.cinematic-card__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background:
    radial-gradient(circle at 46% 45%,rgba(226,236,233,.72) 0 2%,transparent 3%),
    radial-gradient(circle at 50% 50%,rgba(129,164,158,.36),transparent 30%),
    linear-gradient(145deg,#162321,#071011 72%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.cinematic-card__visual::before,
.cinematic-card__visual::after {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(225,235,232,.23);
  border-radius: 50%;
  animation: cinema-orbit 14s linear infinite;
}
.cinematic-card__visual::after { width: 46%; animation-direction: reverse; animation-duration: 9s; }
.cinematic-card__visual > span { position: relative; z-index: 2; color: rgba(255,255,255,.88); font-size: 34px; font-weight: 500; letter-spacing: -.08em; }
.cinematic-card__orb {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(222,232,229,.19);
  box-shadow: 0 0 42px rgba(180,216,207,.33);
  backdrop-filter: blur(4px);
  animation: cinema-breathe 4.8s ease-in-out infinite;
}
@keyframes cinema-orbit { to { transform: rotate(360deg); } }
@keyframes cinema-breathe { 50% { transform: scale(1.22); opacity: .58; } }
.cinematic-card__caption { display: grid; gap: 4px; padding: 5px 5px 3px; }
.cinematic-card__caption span { color: rgba(230,234,233,.52); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.cinematic-card__caption strong { color: rgba(250,250,250,.93); font-size: 12px; font-weight: 440; letter-spacing: -.02em; }
.cinematic-card__action,
.cinematic-card__motion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 0 10px;
  color: rgba(248,249,249,.9);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: linear-gradient(145deg,rgba(26,34,36,.76),rgba(16,29,33,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font: inherit;
  font-size: 10px;
  font-weight: 430;
  cursor: pointer;
  transition: filter .14s ease,border-color .14s ease,transform .14s ease;
}
.cinematic-card__action i { font-size: 13px; font-style: normal; }
.cinematic-card__action:hover,
.cinematic-card__motion:hover { filter: brightness(1.12); border-color: rgba(255,255,255,.3); }
.cinematic-card__action:active,
.cinematic-card__motion:active { transform: scale(.985); }
.cinematic-card__motion { justify-content: flex-start; gap: 8px; min-height: 32px; color: rgba(235,238,237,.64); background: rgba(2,6,7,.26); font-size: 8px; }
.cinematic-card__motion-icon { width: 7px; height: 9px; border: 0; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.cinematic-card__motion.is-paused .cinematic-card__motion-icon { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.cinematic-scroll {
  position: absolute;
  right: calc(max(32px,4.1vw) + clamp(180px,19vh,218px) + 24px);
  bottom: clamp(38px,5.2vh,64px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(235,238,237,.56);
  font-size: 7px;
  letter-spacing: .14em;
}
.cinematic-scroll i { display: block; width: 42px; height: 1px; overflow: hidden; background: rgba(255,255,255,.22); }
.cinematic-scroll i::after { content: ""; display: block; width: 30%; height: 100%; background: #fff; animation: cinema-scroll 1.8s ease-in-out infinite; }
@keyframes cinema-scroll { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

/* One-shot reveal, coordinated with the existing loader. */
html.motion-enabled body:not(.motion-loaded) .cinematic-kicker,
html.motion-enabled body:not(.motion-loaded) .cinematic-copy,
html.motion-enabled body:not(.motion-loaded) .cinematic-primary,
html.motion-enabled body:not(.motion-loaded) .cinematic-card,
html.motion-enabled body:not(.motion-loaded) .cinematic-meta,
html.motion-enabled body:not(.motion-loaded) .cinematic-scroll { opacity: 0; }
html.motion-enabled body:not(.motion-loaded) .cinematic-line__reveal { transform: translate3d(0,110%,0) skewY(2deg); }
body.motion-loaded .cinematic-meta { animation: cinematic-fade-up .52s cubic-bezier(.16,1,.3,1) .12s both; }
body.motion-loaded .cinematic-line--one .cinematic-line__reveal { animation: cinematic-line .8s cubic-bezier(.22,1,.36,1) .22s both; }
body.motion-loaded .cinematic-line--two .cinematic-line__reveal { animation: cinematic-line .85s cubic-bezier(.22,1,.36,1) .36s both; }
body.motion-loaded .cinematic-kicker { animation: cinematic-fade-up .48s cubic-bezier(.16,1,.3,1) .16s both; }
body.motion-loaded .cinematic-copy { animation: cinematic-fade-up .62s cubic-bezier(.16,1,.3,1) .66s both; }
body.motion-loaded .cinematic-primary { animation: cinematic-action .56s cubic-bezier(.16,1,.3,1) .86s both; }
body.motion-loaded .cinematic-card { animation: cinematic-card-in .92s cubic-bezier(.22,1,.36,1) .94s both; }
body.motion-loaded .cinematic-scroll { animation: cinematic-fade-up .52s cubic-bezier(.16,1,.3,1) 1.12s both; }
@keyframes cinematic-line { from { transform: translate3d(0,110%,0) skewY(2deg); } to { transform: translate3d(0,0,0) skewY(0); } }
@keyframes cinematic-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cinematic-action { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cinematic-card-in { from { opacity: 0; transform: translate3d(var(--cinema-card-x,0),calc(var(--cinema-card-y,0) + 12px),0) scale(.968); } to { opacity: 1; transform: translate3d(var(--cinema-card-x,0),var(--cinema-card-y,0),0) scale(1); } }

/* Resume and projects inherit the same dark glass material. */
.single-page-section {
  border-top-color: rgba(255,255,255,.16);
  background:
    radial-gradient(circle at 86% 8%,rgba(79,101,97,.13),transparent 30%),
    linear-gradient(145deg,#0b0e0e,#050707 68%);
}
.single-page-section::before {
  background-image: linear-gradient(rgba(239,243,242,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(239,243,242,.025) 1px,transparent 1px);
  background-size: 48px 48px;
}
.single-page-section::after { border-color: rgba(239,243,242,.08); box-shadow: 0 0 0 7vw rgba(239,243,242,.01),0 0 0 14vw rgba(239,243,242,.006); }
.home-projects { background: linear-gradient(145deg,#070909,#0b1010); }
.section-signal {
  color: rgba(246,248,247,.78);
  border-right: 1px solid rgba(255,255,255,.13);
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(145deg,rgba(24,28,28,.8),rgba(5,12,13,.86));
  backdrop-filter: blur(14px);
}
.section-signal i { background: rgba(255,255,255,.28); }
.single-section-heading > p,
.single-section-heading h2 em,
.project-card__browse,
.resume-panel__identity > span,
.resume-panel__facts dt,
.story-rail span,
.footer-email { color: #f0f2f1 !important; }
.resume-panel {
  border-color: rgba(255,255,255,.13);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(24,26,25,.76),rgba(5,12,13,.84));
  box-shadow: 0 2px 12px rgba(0,0,0,.34),0 0 0 3px rgba(255,255,255,.025) inset;
  backdrop-filter: blur(16px) saturate(108%);
}
.resume-download,
.button { border-radius: 8px; box-shadow: 0 1px 5px rgba(0,0,0,.32); }
.button::before { display: none; }
.button--light,
.button--dark { color: #101111; background: #f4f5f4; border-color: #f4f5f4; }
.button--ghost { color: #f0f2f1; background: rgba(8,12,12,.56); border-color: rgba(255,255,255,.2); backdrop-filter: blur(12px); }
.resume-preview {
  overflow: hidden;
  border-color: rgba(255,255,255,.16);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.26);
}
.filter-button { border-radius: 8px; }
.filter-button.is-active,
.filter-button:hover { color: #101111; background: #f1f3f2; border-color: #f1f3f2; }
.projects-grid--continuous .project-card__media {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: #101515;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.project-card__link:focus-visible,
.cinematic-primary:focus-visible,
.cinematic-card a:focus-visible,
.cinematic-card button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-footer--minimal { border-top: 1px solid rgba(255,255,255,.13); background: #050707; }

@media (max-width: 790px) {
  .cinematic-meta { top: 90px; }
  .cinematic-title { font-size: clamp(58px,8vw,78px); line-height: 1.12; }
  .cinematic-card { width: clamp(166px,24vw,196px); }
  .cinematic-scroll { display: none; }
}

@media (max-width: 619px) {
  .single-page-portfolio .cinematic-home {
    min-height: 100dvh;
    background:
      radial-gradient(circle at 50% 31%,rgba(124,49,31,.24),transparent 31%),
      radial-gradient(circle at 76% 42%,rgba(73,95,91,.18),transparent 34%),
      linear-gradient(160deg,#111515,#020404 72%);
  }
  .cinematic-background { object-position: 58% center; filter: saturate(.6) brightness(.58) contrast(1.1); }
  .cinematic-meta { top: 88px; right: 16px; left: 16px; }
  .cinematic-meta span:last-child { display: none; }
  .cinematic-card { display: none; }
  .mobile-signal {
    position: absolute;
    top: clamp(104px,13dvh,132px);
    left: 50%;
    z-index: 3;
    display: grid;
    width: min(82vw,320px);
    height: min(46dvh,388px);
    min-height: 318px;
    place-items: start center;
    color: rgba(238,242,240,.9);
    transform: translate3d(-50%,0,0);
    transform-origin: center center;
    will-change: transform,opacity;
    pointer-events: none;
  }
  .mobile-signal::before {
    content: "";
    position: absolute;
    inset: 4% -12% 16%;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(146,57,35,.21),rgba(72,90,86,.09) 34%,transparent 69%);
    filter: blur(13px);
    animation: mobile-signal-halo 3.8s ease-in-out infinite;
  }
  .mobile-signal__frame {
    position: relative;
    display: grid;
    overflow: hidden;
    width: min(72vw,278px);
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(229,235,232,.18);
    border-radius: 50%;
    background:
      radial-gradient(circle at center,rgba(167,72,46,.2),transparent 23%),
      radial-gradient(circle at center,rgba(10,18,18,.42),rgba(2,6,7,.78) 68%);
    box-shadow: inset 0 0 0 7px rgba(255,255,255,.012),0 0 70px rgba(135,55,38,.18);
    animation: mobile-signal-float 4.8s ease-in-out infinite;
    will-change: transform;
  }
  .mobile-signal__grid {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    opacity: .28;
    background-image:
      linear-gradient(rgba(224,233,230,.2) 1px,transparent 1px),
      linear-gradient(90deg,rgba(224,233,230,.2) 1px,transparent 1px);
    background-size: 14px 14px;
    animation: mobile-signal-grid 18s linear infinite;
    will-change: transform;
  }
  .mobile-signal__ring {
    position: absolute;
    border: 1px solid rgba(226,234,231,.24);
    border-radius: 50%;
    will-change: transform;
  }
  .mobile-signal__ring::before,
  .mobile-signal__ring::after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #d6dcd9;
    box-shadow: 0 0 18px rgba(229,238,234,.62);
    transform: translateX(-50%);
  }
  .mobile-signal__ring::after {
    top: auto;
    right: 10%;
    bottom: 8%;
    left: auto;
    width: 4px;
    height: 4px;
    background: #a34d34;
    box-shadow: 0 0 16px rgba(177,71,43,.75);
  }
  .mobile-signal__ring--outer { inset: 8%; border-style: dashed; animation: mobile-signal-turn 16s linear infinite; }
  .mobile-signal__ring--middle { inset: 20%; border-color: rgba(162,76,52,.55); animation: mobile-signal-turn-reverse 10s linear infinite; }
  .mobile-signal__ring--inner { inset: 32%; border-style: dotted; animation: mobile-signal-turn 6.8s linear infinite; }
  .mobile-signal__scan {
    position: absolute;
    top: 16%;
    left: 17%;
    width: 66%;
    height: 1px;
    background: linear-gradient(90deg,transparent,rgba(239,244,242,.9),transparent);
    box-shadow: 0 0 15px rgba(230,238,235,.48);
    animation: mobile-signal-scan 2.7s cubic-bezier(.45,0,.55,1) infinite;
    will-change: transform,opacity;
  }
  .mobile-signal__core {
    position: relative;
    z-index: 2;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border: 1px solid rgba(236,241,239,.42);
    background: linear-gradient(145deg,rgba(99,40,28,.84),rgba(8,16,16,.94));
    box-shadow: inset 0 0 0 5px rgba(255,255,255,.025),0 0 38px rgba(154,61,39,.32);
    transform: rotate(45deg);
    animation: mobile-signal-core 3.2s ease-in-out infinite;
    will-change: transform;
  }
  .mobile-signal__core b { color: #f3f5f4; font-size: 25px; font-weight: 540; letter-spacing: -.08em; transform: rotate(-45deg); }
  .mobile-signal__core small { position: absolute; right: 7px; bottom: 5px; color: rgba(237,242,240,.52); font-size: 6px; letter-spacing: .12em; transform: rotate(-45deg); }
  .mobile-signal__meter {
    position: absolute;
    bottom: 31px;
    left: 0;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
  }
  .mobile-signal__meter i {
    width: 3px;
    height: 45%;
    background: rgba(226,234,231,.74);
    transform-origin: center bottom;
    animation: mobile-signal-meter .9s steps(4,end) infinite alternate;
    will-change: transform,opacity;
  }
  .mobile-signal__meter i:nth-child(2n) { animation-delay: -.42s; }
  .mobile-signal__meter i:nth-child(3n) { animation-delay: -.68s; background: rgba(164,75,51,.86); }
  .mobile-signal__readout {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding-top: 9px;
    color: rgba(224,231,228,.45);
    border-top: 1px solid rgba(229,235,232,.18);
    font-size: 6px;
    letter-spacing: .14em;
  }
  .mobile-signal__readout b { color: rgba(235,239,237,.74); font-weight: 500; }
  .cinematic-card__visual { border-radius: 10px; }
  .cinematic-card__caption { display: none; }
  .cinematic-card__action { min-height: 34px; padding-inline: 8px; font-size: 8px; }
  .cinematic-card__motion { min-height: 28px; font-size: 7px; }
  .cinematic-hero-content {
    right: 16px;
    left: 16px;
    bottom: max(32px,env(safe-area-inset-bottom));
    will-change: transform,opacity;
  }
  .cinematic-kicker { margin-bottom: 10px; font-size: 8px; letter-spacing: .08em; }
  .cinematic-title { font-size: clamp(48px,15.2vw,70px); line-height: 1.05; letter-spacing: -.07em; }
  .cinematic-line--one { transform: scaleX(.91); }
  .cinematic-line--two { transform: scaleX(.96); }
  .cinematic-copy { width: min(100%,390px); margin-top: 14px; font-size: 11px; line-height: 1.65; }
  .cinematic-copy > span { display: inline; }
  .cinematic-copy > span + span::before { content: " "; }
  .cinematic-primary { width: 146px; height: 42px; margin-top: 20px; font-size: 13px; }
}

@keyframes mobile-signal-turn { to { transform: rotate(360deg); } }
@keyframes mobile-signal-turn-reverse { to { transform: rotate(-360deg); } }
@keyframes mobile-signal-grid { to { transform: rotate(360deg) scale(1.04); } }
@keyframes mobile-signal-float { 50% { transform: translate3d(0,-7px,0) scale(1.015); } }
@keyframes mobile-signal-halo { 50% { opacity: .58; transform: scale(1.08); } }
@keyframes mobile-signal-core { 50% { transform: rotate(45deg) scale(1.09); box-shadow: inset 0 0 0 5px rgba(255,255,255,.04),0 0 54px rgba(169,68,42,.48); } }
@keyframes mobile-signal-scan { 0% { opacity: 0; transform: translate3d(0,0,0); } 18% { opacity: .9; } 82% { opacity: .75; } 100% { opacity: 0; transform: translate3d(0,186px,0); } }
@keyframes mobile-signal-meter { to { opacity: .42; transform: scaleY(2.4); } }

@media (max-height: 700px) and (min-width: 620px) {
  .cinematic-meta { display: none; }
  .cinematic-title { font-size: clamp(48px,9vh,66px); line-height: 1.04; }
  .cinematic-copy { margin-top: 10px; font-size: 12px; line-height: 1.55; }
  .cinematic-primary { margin-top: 16px; }
  .cinematic-card { width: 158px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-signal::before,
  .mobile-signal__frame,
  .mobile-signal__grid,
  .mobile-signal__ring,
  .mobile-signal__scan,
  .mobile-signal__core,
  .mobile-signal__meter i { animation: none !important; }
  .cinematic-background,
  .cinematic-hero-content,
  .cinematic-card { transform: none !important; transition: none !important; }
  .cinematic-card__visual::before,
  .cinematic-card__visual::after,
  .cinematic-card__orb,
  .cinematic-scroll i::after { animation: none !important; }
  .cinematic-kicker,
  .cinematic-copy,
  .cinematic-primary,
  .cinematic-card,
  .cinematic-meta,
  .cinematic-scroll,
  .cinematic-line__reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
}

/* ================================================================
   STICKY PROJECT STAGE
   Adapted from the supplied 3D creator reference using real project
   imagery. Large card + media corners: 24px; controls: 8px.
   ================================================================ */
.home-projects { overflow: visible; }
.projects-stack {
  position: relative;
  display: grid;
  gap: clamp(72px,10vh,116px);
  padding: 0 0 clamp(84px,13vh,150px);
}
.project-stack-card {
  position: sticky;
  top: calc(78px + var(--stack-index) * 9px);
  z-index: calc(var(--stack-index) + 1);
  display: block;
  height: min(760px,calc(100svh - 116px - var(--stack-index) * 9px));
  min-height: 600px;
  margin: 0;
  transform-origin: center top;
}
.project-stack-card__link {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: clamp(15px,2vh,22px);
  overflow: hidden;
  width: 100%;
  height: 100%;
  padding: clamp(18px,2vw,30px);
  color: #eff2f1;
  border: 2px solid rgba(215,226,234,.58);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 8%,rgba(122,147,143,.09),transparent 28%),
    linear-gradient(145deg,rgba(17,21,21,.985),rgba(6,9,9,.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.045);
  transform-origin: center top;
  will-change: transform;
  transition: border-color .22s ease,box-shadow .22s ease;
}
.project-stack-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
  pointer-events: none;
}
.project-stack-card__link:hover {
  border-color: rgba(239,244,243,.92);
  box-shadow: 0 28px 84px rgba(0,0,0,.46),inset 0 1px 0 rgba(255,255,255,.06);
}
.project-stack-card__link:active { scale: .995; }
.project-stack-card__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.project-stack-card__header {
  display: grid;
  grid-template-columns: clamp(78px,8vw,126px) minmax(230px,1.1fr) minmax(260px,1fr) auto;
  gap: clamp(18px,2.4vw,42px);
  align-items: end;
  min-height: 102px;
  padding: 0 2px 15px;
  border-bottom: 1px solid rgba(215,226,234,.17);
}
.project-stack-card__number {
  align-self: center;
  color: #9da9ae;
  background: linear-gradient(180deg,#646973 0%,#bbccd7 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(50px,6vw,94px);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: .72;
}
.project-stack-card__identity { display: grid; align-content: end; min-width: 0; }
.project-stack-card__identity > span {
  margin-bottom: 8px;
  color: rgba(215,226,234,.58);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.project-stack-card__identity h3 {
  overflow: hidden;
  margin: 0;
  color: #f2f4f3;
  font-size: clamp(24px,2.55vw,40px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-stack-card__identity small {
  margin-top: 8px;
  color: rgba(215,226,234,.48);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.project-stack-card__header > p {
  max-width: 430px;
  margin: 0 0 2px;
  color: rgba(215,226,234,.65);
  font-size: 10px;
  font-weight: 350;
  line-height: 1.65;
}
.project-stack-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  margin-bottom: 1px;
  padding: 0 15px;
  color: #e9eeec;
  border: 1px solid rgba(215,226,234,.38);
  border-radius: 8px;
  background: rgba(215,226,234,.035);
  font-size: 9px;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .16s ease,background .16s ease,border-color .16s ease;
}
.project-stack-card__action i { font-size: 13px; font-style: normal; }
.project-stack-card__link:hover .project-stack-card__action { color: #101212; border-color: #eef2f0; background: #eef2f0; }
.project-stack-card__images {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,3fr);
  gap: clamp(9px,1vw,14px);
  min-height: 0;
}
.project-stack-card__column {
  display: grid;
  grid-template-rows: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(9px,1vw,14px);
  min-height: 0;
}
.project-stack-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(215,226,234,.12);
  border-radius: 18px;
  background: #101515;
  transform: translateZ(0);
}
.project-stack-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .8s cubic-bezier(.16,1,.3,1),filter .4s ease;
}
.project-stack-card__link:hover .project-stack-card__image img { transform: scale(1.045); }
.project-stack-card__image--hero img { will-change: transform; }
.project-stack-card--contain .project-stack-card__image { background: #e5e5e0; }
.project-stack-card--contain .project-stack-card__image img { object-fit: contain; }
.project-stack-card[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .project-stack-card__header { grid-template-columns: 78px minmax(0,1fr) auto; }
  .project-stack-card__header > p { display: none; }
  .project-stack-card__number { font-size: 64px; }
}

@media (max-width: 760px) {
  .home-projects { overflow: visible; }
  .projects-stack {
    gap: 0;
    padding-bottom: clamp(72px,14dvh,120px);
    perspective: 1200px;
  }
  .project-stack-card {
    position: sticky;
    top: calc(68px + var(--stack-index) * 5px);
    z-index: calc(var(--stack-index) + 1);
    height: min(720px,calc(100dvh - 88px - var(--stack-index) * 5px));
    min-height: 500px;
    transform-origin: center top;
  }
  .project-stack-card__link {
    gap: 14px;
    height: 100%;
    padding: 12px;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(0,0,0,.28);
    transform-origin: center top;
    will-change: transform,opacity;
  }
  .project-stack-card__header {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 12px;
    min-height: 0;
    padding: 5px 2px 13px;
  }
  .project-stack-card__number { align-self: start; margin-top: 3px; font-size: 42px; }
  .project-stack-card__identity > span { margin-bottom: 5px; font-size: 7px; }
  .project-stack-card__identity h3 { font-size: clamp(21px,6.6vw,28px); white-space: normal; }
  .project-stack-card__identity small { margin-top: 5px; font-size: 6px; }
  .project-stack-card__header > p { display: block; grid-column: 1 / -1; margin-top: 4px; font-size: 9px; }
  .project-stack-card__action { grid-column: 1 / -1; justify-content: space-between; width: 100%; min-height: 38px; margin-top: 2px; }
  .project-stack-card__images { height: auto; grid-template-columns: minmax(0,2fr) minmax(0,3fr); gap: 7px; }
  .project-stack-card__column { gap: 7px; }
  .project-stack-card__image { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-stack-card { position: relative; top: auto; height: auto; min-height: 0; }
  .project-stack-card__link { min-height: min(720px,80svh); transform: none !important; will-change: auto; }
  .project-stack-card__image img { transform: none !important; transition: none !important; }
}

/* Scroll-following project index replaces the former horizontal filter bar. */
.project-side-nav {
  position: fixed;
  left: max(18px,calc((100vw - 1480px) / 2 - 116px));
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: 108px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: linear-gradient(145deg,rgba(22,26,26,.84),rgba(4,9,10,.9));
  box-shadow: 0 10px 34px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(16px) saturate(108%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-18px,-50%,0);
  transition: opacity .24s ease,transform .36s cubic-bezier(.16,1,.3,1);
}
.project-side-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0,-50%,0);
}
.project-side-nav__title {
  padding: 7px 8px 9px;
  color: rgba(227,233,231,.4);
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 7px;
  letter-spacing: .16em;
}
.project-side-nav__item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 0 7px;
  color: rgba(224,230,228,.58);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 8px;
  transition: color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease;
}
.project-side-nav__item span { color: rgba(215,226,234,.36); font-size: 7px; }
.project-side-nav__item b { overflow: hidden; font-weight: 430; text-overflow: ellipsis; white-space: nowrap; }
.project-side-nav__item:hover { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.04); }
.project-side-nav__item:active { transform: scale(.98); }
.project-side-nav__item.is-active {
  color: #0d1010;
  border-color: #eef2f0;
  background: #eef2f0;
}
.project-side-nav__item.is-active span { color: rgba(13,16,16,.5); }
.project-side-nav__item.is-active::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #eef2f0;
  box-shadow: 0 0 12px rgba(238,242,240,.7);
}
.project-side-nav__item:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.project-stack-card { scroll-margin-top: 104px; }
.projects-stack { scroll-margin-top: 104px; }

@media (max-width: 1760px) and (min-width: 1101px) {
  .home-projects > .page-shell {
    width: calc(100vw - 180px);
    margin-right: 32px;
    margin-left: 148px;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .home-projects > .page-shell {
    width: calc(100vw - 98px);
    margin-right: 16px;
    margin-left: 82px;
  }
  .project-side-nav { left: 10px; width: 58px; padding: 6px; }
  .project-side-nav__title { padding-inline: 4px; text-align: center; }
  .project-side-nav__item { display: grid; grid-template-columns: 1fr; min-height: 40px; padding-inline: 4px; text-align: center; }
  .project-side-nav__item span { display: none; }
  .project-side-nav__item b { font-size: 7px; white-space: normal; }
}

@media (max-width: 760px) {
  .home-projects > .page-shell {
    width: calc(100vw - 56px);
    margin-right: 42px;
    margin-left: 14px;
  }
  .project-side-nav {
    right: 5px;
    left: auto;
    width: 34px;
    gap: 3px;
    padding: 4px;
    border-radius: 12px;
    transform: translate3d(12px,-50%,0);
  }
  .project-side-nav.is-visible { transform: translate3d(0,-50%,0); }
  .project-side-nav__title { display: none; }
  .project-side-nav__item {
    display: grid;
    min-height: 34px;
    padding: 0;
    place-items: center;
    border-radius: 7px;
  }
  .project-side-nav__item span,
  .project-side-nav__item b { display: none; }
  .project-side-nav__item::after { content: attr(data-short); color: currentColor; font-size: 8px; font-weight: 500; }
  .project-side-nav__item.is-active::after {
    position: static;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-side-nav { transition: none; }
}
