@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --ink: light-dark(#111e30, #edf5ff);
  --muted: light-dark(#4f6071, #b7c9dd);
  --line: light-dark(#d9e2e9, #3b516b);
  --page: light-dark(#f7fafd, #101d2e);
  --surface: light-dark(#fff, #18283c);
  --paper: light-dark(#eef4f9, #132237);
  --accent: #ff8668;
  --link: light-dark(#164f75, #a8d9ff);
  --meta: light-dark(#315a74, #a9cee8);
  --focus: light-dark(#a72e13, #ffbc96);
  --hero-glow: light-dark(#d7e7f5, #263e61);
  --diagram-line: light-dark(#547c9b, #8aaccb);
  --diagram-pulse: light-dark(#b24730, #ffc3a5);
  --glass: light-dark(#ffffffa8, #32495e82);
  --glass-edge: light-dark(#9cb6caad, #91b8d381);
  --glass-shadow: light-dark(#25405c14, #08152550);
  font-family: Geist, "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", Geist, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  scroll-padding-top: 1.5rem;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
.home-page { isolation: isolate; }
.home-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(125deg, var(--page) 12%, light-dark(#ebf3fa, #192b42) 43%, light-dark(#f0f6f5, #182a36) 65%, var(--page) 90%);
  background-size: 170% 170%;
}
img, canvas { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
ul, ol { margin-block: .6rem 0; }
a { color: var(--link); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 1rem 2rem; }
:root:has(.sticky-header) { scroll-padding-top: calc(var(--header-height, 76px) + 1rem); }
.sticky-header { position: sticky; top: 0; z-index: 4; background: var(--page); }
.sticky-header.is-scrolled { background: light-dark(#f7fafdF2, #101d2ef2); box-shadow: inset 0 -1px var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 760; letter-spacing: -.025em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 8px; background: #111e30; color: var(--accent); font-size: .79rem; letter-spacing: .025em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
nav a { display: inline-flex; align-items: center; padding: .28rem .5rem; border: 1px solid transparent; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 650; }
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 80% 15%, var(--hero-glow) 0%, transparent 68%), var(--paper); color: var(--ink); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #f59e7c99 28%, #688db9a0 77%, transparent); }
.hero-inner { min-height: 503px; display: grid; grid-template-columns: 1.13fr .95fr; align-items: center; gap: 1.6rem; padding-block: 3.6rem; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { font-family: var(--display); font-size: clamp(2.55rem, 5.65vw, 5.25rem); line-height: .95; letter-spacing: -.055em; font-weight: 760; }
.hero-role { margin-top: .75rem; color: var(--meta); font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.85rem); line-height: 1.2; }
.hero-local { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.hero-location { color: var(--ink); font-weight: 650; }
.hero-flag { display: inline-block; width: 1.1rem; height: .69rem; border-radius: 2px; font-size: 0; background: radial-gradient(circle at 45% 50%, #f42a41 0 25%, transparent 28%), #006a4e; }
.hero-local time { font-variant-numeric: tabular-nums; }
.hero-clock, .hero-live { display: inline-flex; align-items: center; gap: .4rem; }
.hero-live { color: var(--ink); font-weight: 650; }
.live-dot { position: relative; width: .42rem; height: .42rem; border-radius: 50%; background: light-dark(#167249, #86dfb1); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid light-dark(#167249, #86dfb1); opacity: 0; }
@keyframes live-pulse {
  0%, 50% { opacity: 0; transform: scale(1); }
  58% { opacity: .6; }
  90%, 100% { opacity: 0; transform: scale(2.3); }
}
.hero-intro { color: var(--muted); font-size: clamp(1.025rem, 1.55vw, 1.23rem); line-height: 1.65; max-width: 33rem; margin-block: 1.15rem 1.45rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.actions a { font-size: .93rem; white-space: nowrap; }
.button { padding: .68rem .98rem; border-radius: 5px; font-weight: 760; text-decoration: none; }
.primary { background: var(--accent); color: #241711; border: 1px solid var(--accent); }
.primary:hover { background: #ffa28b; }
.outline { color: var(--link); border: 1px solid var(--meta); }
.outline:hover { background: var(--surface); }
.text-link { color: var(--link); font-weight: 650; padding: .5rem .22rem; }
.theme-toggle { margin-inline-start: auto; min-height: 2.25rem; padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--link); font: 650 .8rem / 1.2 Geist, sans-serif; white-space: nowrap; cursor: pointer; }
.theme-icon-toggle { display: grid; place-items: center; margin: 0; width: 2.25rem; padding: 0; }
.theme-icon-toggle svg { display: none; width: 1.15rem; height: 1.15rem; }
.theme-icon-toggle[data-icon="light"] .theme-sun,
.theme-icon-toggle[data-icon="dark"] .theme-moon { display: block; }

.hero-isometric { display: block; width: 100%; height: auto; color: var(--diagram-line); }
.layer-gradient-light { stop-color: light-dark(#fff, #5a7895); stop-opacity: .72; }
.layer-gradient-dark { stop-color: light-dark(#b2cee2, #244463); stop-opacity: .78; }
.layer-top { fill: url(#layer-surface); stroke: currentColor; stroke-opacity: .75; }
.layer-side { fill: light-dark(#bed6e8, #1c3650); stroke: currentColor; stroke-opacity: .55; }
.layer-grid, .layer-axis, .layer-detail, .layer-pulse { fill: none; stroke: currentColor; }
.layer-grid { stroke-opacity: .25; }
.layer-axis { stroke-dasharray: 3 5; stroke-opacity: .55; }
.layer-detail { stroke-opacity: .75; stroke-width: 1.4; }
.layer-points { fill: var(--surface); stroke: currentColor; }
.layer-label { text-anchor: middle; fill: var(--ink); font-size: 17px; font-weight: 720; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-opacity: .8; }
.layer-pulse { stroke: var(--diagram-pulse); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 8 102; opacity: 0; }
.hero-isometric:not(.diagram-visible) .layer-pulse { visibility: hidden; }
@keyframes layer-signal {
  0%, 15% { opacity: 0; stroke-dashoffset: 8; }
  24%, 55% { opacity: .9; }
  64%, 100% { opacity: 0; stroke-dashoffset: -100; }
}
@media (prefers-reduced-motion: no-preference) {
  .layer-pulse { animation: layer-signal 8s linear infinite paused; }
  .layer-pulse-late { animation-delay: -4s; }
  .diagram-visible .layer-pulse { animation-play-state: running; }
}
.section { padding-block: 4.2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 1.6rem; }
.section-head h2, .contact h2 { font-size: clamp(1.95rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.057em; }
.section-head > p { color: var(--muted); }
.meta { color: var(--meta); font-size: .86rem; line-height: 1.4; font-weight: 720; }
.project-link { display: inline-block; margin-top: .84rem; font-size: .94rem; font-weight: 700; }
.feature-flow { display: grid; align-content: center; padding: 2.2rem clamp(1.25rem, 4vw, 3.8rem); background: linear-gradient(light-dark(#b3c8d850, #9eb8d322) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, light-dark(#b3c8d850, #9eb8d322) 1px, transparent 1px) 0 0 / 24px 24px, var(--paper); border-left: 1px solid var(--line); }
.feature-flow figcaption { font-size: .88rem; font-weight: 720; margin-bottom: .65rem; color: var(--meta); }
.feature-flow ol { padding: 0; margin: 0; list-style: none; display: grid; gap: .35rem; }
.feature-flow li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .15rem .5rem; background: var(--surface); padding: .56rem .75rem; border: 1px solid var(--line); border-left: 3px solid var(--meta); border-radius: 4px; }
.feature-flow span { color: var(--muted); font-size: .83rem; }
.project-grid, .focus-grid, .record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1040px) {
  .project-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .project-grid > .project { grid-column: span 2; }
  .project-grid > .project:nth-child(-n+2) { grid-column: span 3; }
}
.project { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.project-visual { flex-shrink: 0; aspect-ratio: 2.12; overflow: hidden; background: #16364a; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.project-carousel { position: relative; }
.project-carousel .carousel-slide { position: absolute; inset: 0; object-fit: contain; opacity: 0; visibility: hidden; }
.project-carousel .is-active { opacity: 1; visibility: visible; }
.carousel-controls { position: absolute; right: 2px; bottom: 0; display: flex; color: #fff; }
.carousel-dots { display: flex; }
.carousel-controls button { appearance: none; display: grid; place-items: center; width: 16px; height: 20px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.carousel-controls button:focus-visible { outline: 2px solid #172337; outline-offset: -2px; box-shadow: inset 0 0 0 3px #fff; }
.carousel-dot::before { content: ""; width: 4px; height: 4px; border-radius: 99px; background: #b7bdbb; box-shadow: 0 0 0 1px #222f2bbf; }
.carousel-dot[aria-current="true"]::before { width: 9px; background: #a5bda3; }
.carousel-playback::before { content: ""; width: 8px; height: 8px; border-inline: 2px solid currentColor; filter: drop-shadow(0 0 1px #101722); }
.carousel-playback[data-paused]::before { width: 0; height: 0; border: 0; border-block: 4px solid transparent; border-inline-start: 8px solid currentColor; }
@media (any-pointer: coarse) {
  .carousel-controls { right: 0; }
  .carousel-controls button { width: 24px; height: 28px; padding: 8px 0 0 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .project-carousel .carousel-slide { transition: opacity .25s ease, visibility 0s .25s; }
  .project-carousel .is-active { transition-delay: 0s; }
}
.attendance-visual { border: 0; padding: .55rem clamp(.65rem, 1.6vw, 1.25rem); background: var(--paper); overflow: visible; }
.attendance-visual figcaption { margin-bottom: .25rem; }
.attendance-visual ol { gap: .2rem; }
.attendance-visual li { padding: .22rem .5rem; font-size: .85rem; line-height: 1.3; }
.attendance-visual span { font-size: .78rem; }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.15rem; }
.project-copy h3 { margin-block: .3rem .42rem; }
.project-copy > p:not(.meta) { color: var(--muted); margin-bottom: .6rem; }
.project-copy .project-link { margin-top: auto; padding-top: .35rem; }
.cctv-visual, .thesis-visual { position: relative; display: grid; place-items: center; }
.cctv-visual { background: repeating-linear-gradient(0deg, transparent 0 17px, #67879a30 17px 18px), repeating-linear-gradient(90deg, transparent 0 17px, #67879a30 17px 18px), #19314a; }
.radar { position: relative; width: 40%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 25deg, #90c4f04f, transparent 72deg); }
.radar i { position: absolute; inset: 0; border: 1px solid #9abfda; border-radius: 50%; }
.radar i:nth-child(2) { inset: 16%; }
.radar i:nth-child(3) { inset: 34%; }
.radar b { position: absolute; width: 7px; height: 7px; background: #ff987d; top: 29%; right: 24%; border-radius: 50%; }
.thesis-visual { background: radial-gradient(ellipse at 55% 25%, #d5efeb, #a8d4cc); }
.signal { height: 64%; width: 68%; display: flex; gap: 6%; align-items: end; padding: .4rem 7%; border-left: 1px solid #275c59; border-bottom: 1px solid #275c59; }
.signal i { flex: 1; background: #266d67; height: 38%; border-radius: 2px 2px 0 0; }
.signal i:nth-child(2n) { height: 53%; }
.signal i:nth-child(3n) { height: 76%; }
.signal i:nth-child(4n) { height: 47%; }
.signal i:nth-child(7) { height: 68%; background: #985134; }
h1, h2, h3 { font-family: var(--display); }
h3 { font-size: clamp(1.13rem, 2vw, 1.42rem); line-height: 1.24; letter-spacing: -.025em; }
.more { margin-top: 1rem; text-align: center; }
.more summary { display: inline-flex; align-items: center; gap: .65rem; padding: .65rem .9rem; border: 1px solid var(--glass-edge); border-radius: 8px; background: var(--glass); font-weight: 760; color: var(--link); cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.1rem) rotate(45deg); }
.more[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.more ul { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem 1.4rem; list-style: none; padding: .45rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 8px; text-align: start; }
.more li { border-top: 1px solid var(--line); padding-top: .55rem; }
.more li span { display: block; color: var(--muted); }
.experience-band { background: var(--paper); border-block: 1px solid var(--line); }
.experience-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 1rem; }
.experience-grid article, .focus-grid article, .profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.1rem, 2.2vw, 1.8rem); }
.experience-grid h3, .profile-card .meta + h3 { margin-block: .3rem .55rem; }
.experience-grid p:not(.meta), .experience-grid li, .focus-grid p, .profile-card p:not(.meta) { color: var(--muted); }
.timeline { display: grid; gap: .6rem; list-style: none; padding: 0 0 0 .9rem; border-left: 2px solid #87a9be; margin-bottom: 1rem; }
.timeline li { display: grid; gap: .05rem; line-height: 1.42; }
.timeline strong { color: var(--ink); }
.timeline span { font-size: .875rem; }
.affiliation { font-weight: 650; }
.focus-grid p, .profile-card p:not(.meta) { margin-top: .5rem; }
.profile-section { padding-block: clamp(2rem, 4.6vw, 3.4rem); }
.about-copy { max-width: 68ch; color: var(--muted); }
.about-copy p + p { margin-top: .85rem; }
.skill-categories { border-block-end: 1px solid var(--line); }
.skill-category { display: grid; grid-template-columns: 14rem minmax(0, 1fr); align-items: start; gap: .5rem 1rem; padding-block: .75rem; border-top: 1px solid var(--line); }
.skill-category h3 { padding-block: .24rem; font-size: 1rem; }
.skill-chips { display: flex; flex-wrap: wrap; gap: .38rem; margin: 0; padding: 0; list-style: none; }
.skill-chips li { max-width: 100%; padding: .18rem .58rem; border-radius: 5px; background: var(--paper); color: var(--ink); font-size: .88rem; overflow-wrap: anywhere; }
.credentials-stack > section { border-top: 1px solid var(--line); }
.education-grid, .leadership-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.education-grid { grid-template-columns: 1.3fr 1fr; }
.education-secondary, .credential-list { display: grid; align-content: start; gap: .65rem; list-style: none; }
.education-secondary { margin: 0; }
.education-secondary li + li { padding-top: .65rem; border-top: 1px solid var(--line); }
.education-secondary span, .credential-list span { display: block; color: var(--muted); font-size: .87rem; }
.credential-list { padding: 0; }
.credential-list li + li { padding-top: .65rem; border-top: 1px solid var(--line); }
.award-card { max-width: 46rem; }
.contact { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.contact-inner { max-width: 47rem; display: grid; justify-items: center; gap: .85rem; padding-block: 2.2rem; text-align: center; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
.contact-links a { color: var(--link); display: inline-flex; align-items: center; gap: .35rem; padding-block: .3rem; }
.contact-icon { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid transparent; border-radius: 5px; }
.contact-icon svg { width: .95rem; height: .95rem; }
.copyright { color: var(--muted); font-size: .84rem; }
.contact-links a:focus-visible .contact-icon { background: var(--glass); border-color: var(--glass-edge); backdrop-filter: blur(8px); }
.case-hero { background: var(--paper); color: var(--ink); padding-block: clamp(2rem, 7vw, 5rem); }
.case-hero .meta { color: var(--meta); }
.case-hero h1 { font-size: clamp(2.25rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.06em; margin-block: .55rem 1rem; max-width: 17ch; }
.case-hero h1 + p { max-width: 59ch; color: var(--muted); font-size: 1.13rem; }
.case-main { display: grid; grid-template-columns: 1.55fr .75fr; align-items: start; gap: 2rem; }
.case-story section + section { margin-top: 1.6rem; }
.case-story h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.04em; }
.case-story p, .case-story li { color: var(--muted); }
.case-story h2 + p { margin-top: .45rem; }
.case-facts { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin: 0; }
.case-facts div + div { border-top: 1px solid var(--line); margin-top: .7rem; padding-top: .7rem; }
.case-facts dt { font-weight: 700; }
.case-facts dd { margin: .15rem 0 0; color: var(--muted); }
.case-visuals { grid-column: 1/-1; }
.case-visuals figure { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.case-visuals img { width: 100%; }
.case-visuals figcaption { padding: .7rem .9rem; color: var(--muted); }
.case-main > .feature-flow { border: 1px solid var(--line); border-radius: 8px; }
.case-bottom { grid-column: 1/-1; }
@media (max-width: 880px) {
  .shell { width: calc(100% - 44px); }
  .hero-inner { min-height: 0; gap: 1rem; }
  .hero h1 { font-size: clamp(2.55rem, 6vw, 4.25rem); }
  .project-grid, .record-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  :root:has(.sticky-header) { scroll-padding-top: calc(var(--header-height, 9rem) + 1rem); }
  .shell { width: calc(100% - 34px); }
  .site-header { flex-wrap: wrap; padding-block: .65rem; gap: .45rem 1rem; }
  .site-header nav { flex-basis: 100%; gap: .15rem .2rem; }
  nav a { padding-inline: .34rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 2.65rem 1.55rem; gap: 1.45rem; }
  .hero h1 { font-size: clamp(2.1rem, 9.1vw, 4rem); }
  .hero-intro { margin-block: .85rem 1.1rem; }
  .hero-local { margin-top: .7rem; }
  .hero-isometric { width: min(100%, 360px); justify-self: center; }
  .section { padding-block: 2.7rem; }
  .project-grid, .experience-grid, .focus-grid, .record-grid, .more ul, .case-main, .education-grid, .leadership-grid, .skill-category { grid-template-columns: 1fr; }
  .feature-flow { border-left: 0; border-top: 1px solid var(--line); }
  .attendance-visual { border: 0; min-height: min-content; }
  .contact-inner { padding-block: 1.7rem; }
}
.case-visuals h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.04em; margin-bottom: .65rem; }
.gallery { display: grid; gap: .65rem; }
.gallery figure img { width: 100%; aspect-ratio: 2.14; object-fit: contain; background: var(--paper); }
.gallery-controls { display: flex; flex-wrap: wrap; gap: .45rem; }
.gallery-controls button { color: var(--link); border: 1px solid var(--meta); background: var(--surface); border-radius: 5px; padding: .46rem .75rem; font: inherit; font-weight: 650; cursor: pointer; }
.gallery-controls button:hover { background: var(--paper); }

@keyframes enter {
  from { opacity: .54; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes profile-enter {
  from { opacity: .8; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes homepage-gradient {
  from { background-position: 0% 40%; }
  to { background-position: 100% 60%; }
}
@keyframes screen-change {
  from { opacity: .38; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .home-page::before { animation: homepage-gradient 52s ease-in-out infinite alternate; }
  .profile-section.reveal-in { animation: profile-enter .42s ease-out both; }
  .live-dot::after { animation: live-pulse 4s ease-out infinite; }
  .contact-icon { transition: transform .16s ease, background-color .16s ease, border-color .16s ease; }
  .contact-links a:focus-visible .contact-icon { transform: translateY(-2px); }
  .hero-copy h1 { animation: enter .54s cubic-bezier(.2,.7,.2,1) both; }
  .hero-intro { animation: enter .55s .09s cubic-bezier(.2,.7,.2,1) both; }
  .actions { animation: enter .54s .16s cubic-bezier(.2,.7,.2,1) both; }
  .reveal-in { animation: enter .45s cubic-bezier(.2,.7,.2,1) both; }
  .gallery[data-enhanced] figure:not([hidden]) img { animation: screen-change .3s ease-out both; }
  nav a, .theme-icon-toggle, .more summary, .project, .experience-grid article, .button { transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
  .project-visual:not(.project-carousel) img { transition: transform .35s ease; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-links a:hover .contact-icon { transform: translateY(-2px); }
  .project:hover .project-visual:not(.project-carousel) img { transform: scale(1.035); }
  .button:hover { transform: translateY(-2px); }
}

nav a:focus-visible, .theme-icon-toggle:focus-visible, .more summary:focus-visible,
.project:has(:focus-visible), .experience-grid article:has(:focus-visible) {
  background: var(--glass);
  border-color: var(--glass-edge);
  box-shadow: 0 6px 20px var(--glass-shadow);
  backdrop-filter: blur(8px);
}
@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover .contact-icon { background: var(--glass); border-color: var(--glass-edge); backdrop-filter: blur(8px); }
  nav a:hover, .theme-icon-toggle:hover, .more summary:hover,
  .project:hover, .experience-grid article:hover {
    background: var(--glass);
    border-color: var(--glass-edge);
    box-shadow: 0 6px 20px var(--glass-shadow);
    backdrop-filter: blur(8px);
  }
}
