@import url("https://font.sec.miui.com/font/css?family=MiSans:700:Chinese_Simplify&display=swap");

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Portfolio Druk Wide";
  src: local("DrukWide-Bold"), local("Druk Wide Bold");
  font-weight: 700;
}

@font-face {
  font-family: "Portfolio LogoSC";
  src: local("LogoSC Unbounded Sans"), local("标小智无界黑");
  font-weight: 700;
}

.showcase {
  --display-font: "Bricolage Grotesque", MiSans, var(--system-font);
  --surface: #080f20;
  --ink: #f5f7ff;
  --muted: #b0bcd5;
  --line: #303d57;
  --blue: var(--brand-light);
  --interaction-ink: #fff;
  background: var(--surface);
}
.showcase-home {
  --surface: #101113;
  --ink: #f3f3f5;
  --muted: #b8b8bf;
  --line: #343539;
}

.showcase :is(.section-head h2, .project-card :is(h2, h3), .showcase-intro h1) {
  font-family: var(--display-font);
  font-weight: 700;
}

.showcase .site-header {
  --header-solid: #151619;
  --header-glass: rgb(21 22 25 / .87);
  --header-divider: rgb(255 255 255 / .11);
}
.showcase-home .site-header { margin-bottom: calc(-1 * var(--header-height)); }
.showcase .logo-only img { filter: brightness(0) invert(1); }
.showcase .site-header nav { gap: clamp(1rem, 3vw, 3rem); }
.showcase .site-header nav a { color: var(--muted); font-size: .94rem; }
.showcase :is(.site-header nav a, .cover-action, .section-link, .showcase-footer a):is(:hover, :focus-visible) {
  color: var(--interaction-ink);
}
.showcase :is(.site-header, .showcase-footer) a:focus-visible,
.showcase-home :is(a, button):focus-visible { outline-color: var(--interaction-ink); }
.showcase-home :is(a, button) { -webkit-tap-highlight-color: rgb(255 255 255 / .14); }
.showcase .skip { background: #26272a; color: var(--interaction-ink); }

.cover-scene {
  --cover-glow-position: 76% 45%;
  display: grid;
  min-height: clamp(34rem, 83svh, 48rem);
  background:
    linear-gradient(to bottom, transparent 62%, var(--surface)),
    radial-gradient(ellipse at var(--cover-glow-position), #172e59, #101d35 40%, var(--surface) 76%);
}

.cover-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(.75rem, 1.75vw, 1.5rem);
  padding-block: calc(var(--header-height) + 4rem) 1rem;
}
.cover-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 38rem;
  aspect-ratio: 1.18;
  justify-self: center;
}
.cover-media::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 48%;
  left: 49%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 59% 25%, #628eff, var(--brand) 49%, #0c2052 89%);
  box-shadow: 0 0 4rem #1769ff24;
  z-index: -2;
}
.cover-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 18%;
  width: 65%;
  height: 12%;
  background: radial-gradient(ellipse, #040816 0%, transparent 73%);
}
.cover-media img { position: absolute; pointer-events: none; }
.cover-character {
  left: 48%;
  bottom: -3%;
  transform: translateX(-50%);
  width: 98%;
  height: 114%;
  object-fit: contain;
  object-position: center bottom;
}
.cover-ornament { height: auto; }
.cover-video { position: absolute; pointer-events: none; opacity: 0; }
.cover-media.is-video-ready .cover-video { opacity: 1; }
.cover-media.is-video-ready .cover-poster { opacity: 0; }
.cover-replay {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.cover-card-target {
  position: absolute;
  left: 6.5%;
  top: 15%;
  width: 34%;
  height: 24%;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12%;
  background: transparent;
  transform: rotate(-15deg);
  pointer-events: auto;
  cursor: pointer;
}
.cover-card-target:focus-visible { outline: 2px solid var(--interaction-ink); outline-offset: 4px; }
.cover-card-target[aria-disabled="true"] { cursor: default; }
.cover-robot { top: 37%; right: 1%; width: 14%; }
.cover-ring { top: 13%; right: 11%; width: 11%; }
.cover-diamond { bottom: 23%; left: 2.5%; width: 9%; }
.cover-robot { animation: robot-float 4.8s ease-in-out infinite; }
.cover-ring { animation: ring-sway 6.4s ease-in-out -1.6s infinite; }
.cover-diamond { animation: diamond-drift 7.2s ease-in-out -3.2s infinite; }
.cover-media .cover-ornament { animation-play-state: paused; }
.cover-media.is-motion-active .cover-ornament { animation-play-state: running; }
@keyframes robot-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes ring-sway {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(5px) rotate(5deg); }
}
@keyframes diamond-drift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(3px, -6px) rotate(3deg); }
}
@media (max-width: 680px), (hover: none), (pointer: coarse) {
  .cover-card-target { inset: 0; width: 100%; height: 100%; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-media .cover-ornament { animation: none; }
}
.cover-copy {
  --hero-latin-font: "Portfolio Druk Wide", "Druk Wide", "Bricolage Grotesque", Arial, sans-serif;
  container-type: inline-size;
}
@media (min-width: 681px) {
  .cover-copy { translate: 0 calc(-1 * clamp(.75rem, 1.8vw, 1.75rem)); }
}
.showcase :is(.cover-greeting, .cover-role, .cover-name) { font-weight: 700; }
.showcase :is(.cover-greeting, .cover-role) { font-family: var(--hero-latin-font); }
.showcase .cover-greeting { color: var(--muted); font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.025em; }
.showcase .cover-name { font-family: "Portfolio LogoSC", "LogoSC Unbounded Sans", "标小智无界黑", var(--display-font); margin-top: clamp(.65rem, 1.45vw, 1.3rem); color: var(--brand); font-size: clamp(3.75rem, 7vw, 6rem); line-height: 1.05; letter-spacing: .035em; }
.showcase .cover-role { margin-top: clamp(.65rem, 1.4vw, 1.15rem); color: var(--muted); font-size: clamp(.875rem, 4.3cqi, 1.6875rem); line-height: 1.25; letter-spacing: -.025em; }
.cover-role span { display: inline-block; max-width: 100%; }
.cover-intro { max-width: 35em; margin-top: clamp(1rem, 1.8vw, 1.4rem); color: var(--muted); font-size: clamp(1rem, 1.28vw, 1.125rem); line-height: 1.8; text-wrap: pretty; }
.cover-phrase { white-space: nowrap; }
.cover-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.25rem, 2.5vw, 1.9rem); }
.cover-action { display: inline-flex; gap: .75rem; align-items: center; min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--brand); border-radius: .45rem; background: var(--brand); color: white; font-size: .9rem; font-weight: 700; }
.cover-action:not(.cover-action-secondary):is(:hover, :focus-visible) { background: var(--brand-strong); border-color: var(--brand-strong); }
.cover-action-secondary { background: transparent; border-color: rgb(255 255 255 / .62); }
.cover-action-secondary:is(:hover, :focus-visible) { background: rgb(255 255 255 / .12); }

.showcase #projects { margin-top: clamp(3rem, 6vw, 6rem); }
.showcase .section-head { padding-block: 1rem; border-top: 1px solid var(--line); }
.showcase .project-grid { grid-template-columns: minmax(0, 1.17fr) repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.65rem); }
.showcase .project-card { padding: 0; }
.showcase .project-card::before { display: none; }
.showcase .project-card a { background: #101b30; border-radius: .7rem; }
.showcase .project-card a:hover { border-color: var(--tab); }
.showcase .project-art { height: clamp(11rem, 19vw, 18rem); aspect-ratio: auto; }
.showcase .project-kind { color: var(--tab); }
.showcase .card-arrow { color: var(--ink); }
.showcase .card-content > p:last-of-type { max-width: 32em; }

.showcase :is(#projects, .home-about) .section-head {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  gap: .75rem;
  margin-bottom: clamp(1rem, 2vw, 1.625rem);
}
:is(#projects, .home-about) .section-head h2 {
  font-size: clamp(1.375rem, 2.25vw, 2rem);
  letter-spacing: -.025em;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--muted);
}
.showcase #projects .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
#projects .project-card a {
  display: block;
  border: 0;
  border-radius: 1.125rem;
  overflow: visible;
  background: transparent;
}
#projects .project-face {
  position: relative;
  isolation: isolate;
  border-radius: inherit;
  overflow: hidden;
  background: #191a1d;
  box-shadow: 0 .75rem 1.75rem rgb(0 0 0 / .3);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #projects .project-card > a {
    /* Move the complete image/glass composite; the article keeps a stable hover area. */
    transform: translate3d(0, 0, 0);
    transition: transform .2s ease-out;
  }
  #projects .project-face { transition: box-shadow .2s ease-out; }
  #projects .project-card:is(:hover, :focus-within) > a { transform: translate3d(0, -4px, 0); }
  #projects .project-card:is(:hover, :focus-within) .project-face {
    box-shadow: 0 .95rem 2rem rgb(0 0 0 / .4);
  }
}
#projects .project-art {
  position: relative;
  height: auto;
  aspect-ratio: 8 / 5;
}
#projects .project-art img { position: absolute; inset: 0; object-fit: cover; }
#projects .tone-rongji .project-art img { object-position: left center; }
/* Blur a duplicate cover, never the live backdrop of a moving card. */
#projects .project-glass { position: absolute; inset: 0; background: #191a1d; pointer-events: none; mask-image: linear-gradient(to bottom, transparent calc(100% - 11rem), #000 calc(100% - 3rem)); }
#projects .project-glass img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px); }
#projects .tone-rongji .project-glass img { object-position: left center; }
#projects .card-content {
  position: absolute;
  inset: auto 0 0;
  padding: 1.375rem clamp(.75rem, 1.35vw, 1.25rem) .625rem;
}
#projects .card-content::before {
  content: "";
  position: absolute;
  inset: -2.75rem -1px -1px;
  pointer-events: none;
  background: rgb(0 0 0 / .51);
  mask-image: linear-gradient(
    to bottom,
    transparent,
    rgb(0 0 0 / .06) .9rem,
    rgb(0 0 0 / .22) 1.7rem,
    rgb(0 0 0 / .48) 2.5rem,
    rgb(0 0 0 / .74) 3.3rem,
    rgb(0 0 0 / .92) 4.1rem,
    #000 5.25rem
  );
}
#projects .card-content > * { position: relative; z-index: 1; }
#projects .card-content :is(h2, h3) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  color: #f2f2f2;
  font-size: clamp(1.125rem, 1.55vw, 1.375rem);
  line-height: 1.15;
  margin: 0;
}
#projects .project-title-arrow {
  flex: none;
  color: #d1d1d6;
  font-size: 1.125rem;
}
#projects .project-card a:is(:hover, :focus-visible) :is(h2, h3, .project-title-arrow) { color: var(--interaction-ink); }
#projects .card-content > p { padding-top: .5rem; color: #ececef; font-size: .875rem; line-height: 1.4; }
#projects .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}
#projects .project-kind {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .375rem clamp(.425rem, .68vw, .6rem);
  border: 1px solid rgb(255 255 255 / .17);
  border-radius: .7rem;
  background: rgb(255 255 255 / .075);
  color: #e5e5e9;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.2;
}
#projects .project-kind svg {
  flex: none;
  width: .8rem;
  height: .8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-about-skills,
.home-about-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-about-skills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.875rem, 1.7vw, 1.5rem);
}
.home-about :is(.home-about-skills, .home-about-steps) h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}
.home-about :is(.home-about-skills, .home-about-steps) p {
  margin-top: .4rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}
.skill-card {
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: 1.125rem;
  background: #16171a;
}
.skill-card-copy { padding: clamp(1rem, 4cqi, 1.4rem); }
.home-about .skill-card-copy h3 { font-size: clamp(1rem, 3.1cqi, 1.2rem); }
.home-about .skill-card-copy p { color: #b9bbc2; }
.skill-scene {
  --glass-accent: var(--scene-accent);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(10.5rem, 32cqi, 14rem);
  background:
    radial-gradient(ellipse 50% 88% at 30% 16%, color-mix(in srgb, var(--scene-accent) 24%, transparent), transparent 76%),
    radial-gradient(ellipse at 68% 56%, var(--scene-light), transparent 76%),
    var(--scene-base);
  color: #c8d4ec;
  font-size: clamp(.625rem, 2.05cqi, .8rem);
  line-height: 1.4;
  user-select: none;
}
.skill-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle, rgb(225 236 255 / .16) .75px, transparent 1px) 0 0 / 13px 13px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000, transparent 76%);
}
.skill-scene-workflow { --scene-accent: #8ab7ff; --scene-light: #223d72; --scene-base: #101b34; }
.skill-scene-mobile {
  --scene-accent: #81dacd;
  --scene-light: #1a4b50;
  --scene-base: #102529;
  font-size: clamp(.6875rem, 2.15cqi, .875rem);
}
.skill-scene-system { --scene-accent: #aac0ff; --scene-light: #2d3b75; --scene-base: #151e38; }
.skill-scene-ai { --scene-accent: #c1a4ff; --scene-light: #3d2e6a; --scene-base: #201831; }
.skill-window,
.process-paper {
  --glass-edge: color-mix(in srgb, var(--glass-accent) 22%, rgb(255 255 255 / .12));
  border: 1px solid var(--glass-edge);
  border-top-color: color-mix(in srgb, var(--glass-edge) 72%, rgb(255 255 255 / .44));
  border-left-color: color-mix(in srgb, var(--glass-edge) 85%, rgb(255 255 255 / .36));
  background: linear-gradient(152deg,
    color-mix(in srgb, var(--glass-accent) 20%, rgb(38 42 51 / .50)),
    rgb(20 23 30 / .58) 82%);
  -webkit-backdrop-filter: blur(12px) saturate(112%);
  backdrop-filter: blur(12px) saturate(112%);
  box-shadow: inset 0 1px rgb(255 255 255 / .08), 0 .55rem 1.25rem rgb(0 0 0 / .26);
}
:is(.skill-workflow-rule, .skill-order, .skill-inspector, .skill-ai-prompt,
    .process-research-note, .process-priorities, .process-active-node, .process-review, .process-handoff-sheet) {
  background: linear-gradient(152deg,
    color-mix(in srgb, var(--glass-accent) 14%, rgb(57 62 68 / .29)),
    rgb(23 26 31 / .29));
  -webkit-backdrop-filter: blur(8px) saturate(122%);
  backdrop-filter: blur(8px) saturate(122%);
  box-shadow: inset 0 1px rgb(255 255 255 / .06), 0 .4rem 1rem rgb(0 0 0 / .17);
}
.skill-window {
  position: absolute;
  min-width: 0;
  padding: .8em;
  border-radius: .8em;
}
.skill-window strong { color: #f1f5ff; font-weight: 700; }
.skill-window-head,
.skill-ai-actions,
.skill-order-line,
.skill-inspector > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5em;
}
.skill-chip,
.skill-mock-button {
  display: inline-block;
  padding: .28em .65em;
  border-radius: .45em;
  white-space: nowrap;
}
.skill-chip {
  background: color-mix(in srgb, var(--scene-accent) 14%, transparent);
  color: var(--scene-accent);
}
.skill-mock-button {
  background: var(--scene-accent);
  color: #111b2a;
  font-weight: 750;
}
.skill-queue,
.skill-library {
  top: 14%;
  left: 11%;
  width: 73%;
  padding: 0;
  overflow: hidden;
}
.skill-window-head { padding: .7em 1em; border-bottom: 1px solid rgb(204 222 255 / .15); }
.skill-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: .42em;
  padding: .42em 1em;
  border-bottom: 1px solid rgb(204 222 255 / .10);
}
.skill-table > div:last-child { border: 0; }
.skill-table span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-table > div:first-child { color: #a9b8d0; }
.skill-table-active { color: #ebf3ff; background: rgb(78 132 240 / .19); }
.skill-workflow-rule {
  display: grid;
  gap: .35em;
  bottom: 6%;
  right: 6%;
  padding-inline: .95em;
}
.skill-workflow-rule strong span { padding-inline: .3em; color: var(--scene-accent); }
.skill-phone {
  top: 10%;
  left: clamp(1.25rem, 34% - 4rem, 22%);
  width: 34%;
  min-width: 8.25rem;
  height: 102%;
  padding: .8em;
  border-radius: 1.45em;
}
.skill-phone::after {
  content: "";
  position: absolute;
  top: 60%;
  right: .72em;
  width: .85em;
  height: .85em;
  border-radius: 50%;
  background: #a6f4e0;
  box-shadow: 0 0 .6em var(--scene-accent);
}
.skill-phone-top { margin-bottom: .5em; font-size: .9em; }
.skill-phone-banner {
  display: grid;
  gap: .22em;
  margin-block: .6em;
  padding: .75em;
  border-radius: .6em;
  background:
    radial-gradient(ellipse 2em 1.2em at 96% 78%, rgb(148 241 223 / .30), transparent),
    linear-gradient(130deg, rgb(129 218 205 / .24), rgb(129 218 205 / .10));
}
.skill-phone-banner span { color: var(--scene-accent); font-size: .9em; }
.skill-phone-options { display: flex; flex-wrap: wrap; align-items: center; gap: .45em; max-width: 80%; font-size: .94em; }
.skill-order {
  top: 45%;
  left: 47%;
  display: grid;
  gap: .55em;
  width: clamp(8rem, 30cqi, 12rem);
}
.skill-order .skill-mock-button { text-align: center; }
.skill-library { left: 12%; width: 69%; }
.skill-library-body {
  display: grid;
  gap: .48em;
  padding: .75em 1em .9em;
}
.skill-palette,
.skill-button-states { display: flex; gap: .5em; }
.skill-palette i {
  width: 1.8em;
  height: 1.25em;
  border: 1px solid rgb(220 233 255 / .2);
  border-radius: .3em;
  background: var(--brand);
}
.skill-palette i:nth-child(2) { background: #81a9ff; }
.skill-palette i:nth-child(3) { background: #283654; }
.skill-palette i:nth-child(4) { background: #e5edff; }
.skill-inspector {
  right: 8%;
  bottom: 11%;
  width: clamp(7rem, 25cqi, 11rem);
}
.skill-inspector > div { margin-top: .42em; }
.skill-inspector > div span:last-child { color: #e5ecff; }
.skill-ai-prompt {
  top: 13%;
  left: 11%;
  width: 78%;
  padding: .9em;
}
.skill-ai-actions { margin-top: .75em; }
.skill-ai-trace { display: none; }
.skill-ai-results {
  top: 41%;
  left: 16%;
  width: 77%;
  padding: max(2.4em, 1.85rem) 1em .42em;
}
.skill-ai-results > div {
  display: flex;
  align-items: center;
  gap: .6em;
  margin-top: .4em;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .skill-card {
    --skill-preview-cycle: 4s;
    transition: border-color .3s ease;
  }
  .skill-card:hover { border-color: rgb(255 255 255 / .14); }
  .skill-table-active { position: relative; isolation: isolate; overflow: hidden; }
  .skill-card:hover .skill-table-active::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent 15%, color-mix(in srgb, var(--scene-accent) 32%, transparent), transparent 82%);
    animation: skill-row-scan var(--skill-preview-cycle) ease-in-out infinite;
  }
  .skill-card:hover :is(.skill-workflow-rule, .skill-inspector) {
    animation: skill-panel-focus var(--skill-preview-cycle) ease .45s infinite;
  }
  .skill-card:hover .skill-workflow-rule strong span {
    animation: skill-text-focus var(--skill-preview-cycle) ease .43s infinite;
  }

  .skill-card:hover .skill-phone-options .skill-chip {
    animation: skill-control-pulse var(--skill-preview-cycle) ease .08s infinite;
  }
  .skill-card:hover .skill-order-line span:last-child {
    animation: skill-text-focus var(--skill-preview-cycle) ease .32s infinite;
  }
  .skill-card:hover .skill-order .skill-mock-button {
    animation: skill-control-pulse var(--skill-preview-cycle) ease .63s infinite;
  }

  .skill-card:hover .skill-palette i {
    animation: skill-control-pulse var(--skill-preview-cycle) ease infinite;
  }
  .skill-card:hover .skill-palette i:nth-child(2) { animation-delay: .10s; }
  .skill-card:hover .skill-palette i:nth-child(3) { animation-delay: .20s; }
  .skill-card:hover .skill-palette i:nth-child(4) { animation-delay: .30s; }
  .skill-card:hover .skill-inspector > div span:last-child {
    animation: skill-text-focus var(--skill-preview-cycle) ease .42s infinite;
  }
  .skill-card:hover .skill-inspector > div:nth-of-type(2) span:last-child { animation-delay: .52s; }
  .skill-card:hover .skill-inspector > div:nth-of-type(3) span:last-child { animation-delay: .62s; }

  .skill-card:hover .skill-ai-button {
    animation: skill-control-pulse var(--skill-preview-cycle) ease infinite;
  }
  .skill-card:hover .skill-ai-trace {
    display: block;
    position: absolute;
    inset: -1px;
    padding: 1.5px;
    border-radius: inherit;
    pointer-events: none;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
  .skill-card:hover .skill-ai-trace::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4rem;
    height: 1.25rem;
    background: radial-gradient(ellipse, #f4eaff, var(--scene-accent) 28%, transparent 70%);
    offset-path: border-box;
    animation:
      skill-ai-border-trace var(--skill-preview-cycle) cubic-bezier(.42, 0, .58, 1) infinite,
      skill-ai-trace-opacity var(--skill-preview-cycle) ease-in-out infinite;
  }
  .skill-ai-results > div { position: relative; isolation: isolate; }
  .skill-card:hover .skill-ai-results > div::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -.18em -.22em;
    border-radius: .4em;
    background: linear-gradient(90deg, color-mix(in srgb, var(--scene-accent) 28%, transparent), transparent 86%);
    transform-origin: left;
    animation: skill-ai-result var(--skill-preview-cycle) ease-out 1.28s infinite backwards;
  }
  .skill-card:hover .skill-ai-results > div:last-child::before { animation-delay: 1.56s; }

  /* Each 4s cycle includes a quiet period after the animated steps. */
  @keyframes skill-row-scan {
    0% { translate: -100% 0; }
    22%, 100% { translate: 100% 0; }
  }
  @keyframes skill-control-pulse {
    0%, 16%, 100% { box-shadow: 0 0 0 transparent; }
    6% { box-shadow: 0 0 .72rem color-mix(in srgb, var(--scene-accent) 54%, transparent); }
  }
  @keyframes skill-panel-focus {
    0%, 20%, 100% { border-color: revert-layer; }
    8% { border-color: color-mix(in srgb, var(--scene-accent) 66%, transparent); }
  }
  @keyframes skill-text-focus {
    0%, 15%, 100% { text-shadow: 0 0 0 transparent; }
    6% { text-shadow: 0 0 .5rem var(--scene-accent); }
  }
  @keyframes skill-ai-border-trace {
    0% { offset-distance: 0%; }
    32%, 100% { offset-distance: 100%; }
  }
  @keyframes skill-ai-trace-opacity {
    0%, 34%, 100% { opacity: 0; }
    4%, 28% { opacity: 1; }
  }
  @keyframes skill-ai-result {
    0% { opacity: 0; scale: .08 1; }
    5% { opacity: 1; }
    12% { opacity: .85; scale: 1; }
    22%, 100% { opacity: 0; scale: 1; }
  }
}
.home-about-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 1.75vw, 1.625rem);
}
.home-about-steps li {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: 1.125rem;
  background: #16171b;
}
.process-copy {
  flex: 1;
  padding: clamp(1.05rem, 1.75vw, 1.5rem);
  padding-bottom: .9rem;
}
.home-about .process-copy h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  font-size: 1.0625rem;
}
.home-about .process-copy p { color: #b9bbc2; }
.home-about-number {
  color: #b9bbc2;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.process-scene {
  --process-accent: #91b7f2;
  --glass-accent: var(--process-accent);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 11.5rem;
  background:
    radial-gradient(ellipse 52% 53% at 36% 48%, color-mix(in srgb, var(--process-accent) 27%, transparent), transparent 90%),
    radial-gradient(ellipse 54% 63% at 72% 72%, color-mix(in srgb, var(--process-accent) 12%, transparent), transparent 94%);
  font-size: .75rem;
  line-height: 1.35;
  user-select: none;
}
.process-scene-priority {
  --process-accent: #87c9b9;
}
.process-scene-path {
  --process-accent: #b6a6d9;
}
.process-scene-test {
  --process-accent: #c6b18f;
}
.process-scene-handoff {
  --process-accent: #aeb1ba;
}
.process-scene-research,
.process-scene-test,
.process-scene-handoff { font-size: .8125rem; }
.process-paper {
  display: grid;
  gap: .32rem;
  padding: .6rem .65rem;
  border-radius: .6rem;
  color: #c3c7cf;
}
.process-paper strong { color: #f0f1f4; }
.process-tag {
  justify-self: start;
  padding: .14rem .36rem;
  border-radius: .25rem;
  background: color-mix(in srgb, var(--process-accent) 18%, transparent);
  color: var(--process-accent);
  white-space: nowrap;
  font-size: .6875rem;
  font-weight: 700;
}
.process-research-back,
.process-research-note,
.process-prototype,
.process-review,
.process-handoff-back,
.process-handoff-sheet {
  position: absolute;
}
.process-research-back,
.process-prototype,
.process-handoff-back { padding-bottom: 1.35rem; }
.process-research-back {
  top: 9%;
  left: max(8%, 50% - 6.4rem);
  width: min(74%, 10.75rem);
}
.process-research-note {
  top: 40%;
  left: max(25%, 50% - 3.75rem);
  width: min(70%, 10.5rem);
}
.process-scene-priority::before {
  content: "";
  position: absolute;
  width: min(76%, 11rem);
  height: 6.35rem;
  border: 1px solid rgb(135 201 185 / .27);
  border-radius: .6rem;
  background:
    linear-gradient(90deg, rgb(135 201 185 / .85), rgb(135 201 185 / .14)) 76% 21% / 37% 4px no-repeat,
    linear-gradient(150deg, rgb(135 201 185 / .25), rgb(25 32 35 / .62));
  transform: translate(.4rem, -.9rem) rotate(8deg);
}
.process-priorities { position: relative; width: min(84%, 12rem); }
.process-priorities > div,
.process-handoff-sheet > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding-top: .28rem;
  border-top: 1px solid rgb(255 255 255 / .09);
}
.process-priorities > div span:last-child,
.process-handoff-sheet > div span:last-child { white-space: nowrap; }
.process-path {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  row-gap: .75rem;
}
.process-path::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .8rem auto 1.5rem 50%;
  width: 2px;
  background: linear-gradient(var(--process-accent), color-mix(in srgb, var(--process-accent) 44%, transparent));
  box-shadow: 0 0 .5rem var(--process-accent);
}
.process-path .process-paper { padding: .35rem .65rem; }
.process-path .process-active-node {
  color: var(--process-accent);
  font-weight: 750;
}
.process-branches {
  position: relative;
  display: flex;
  gap: .75rem;
}
.process-branches::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -.42rem 22% 50%;
  border: 1px solid color-mix(in srgb, var(--process-accent) 46%, transparent);
  border-bottom: 0;
  border-radius: .3rem .3rem 0 0;
}
.process-prototype {
  top: 10%;
  left: max(8%, 50% - 6.25rem);
  width: min(82%, 11.3rem);
}
.process-field {
  padding: .24rem .34rem;
  border-radius: .25rem;
  background: rgb(255 255 255 / .07);
}
.process-review {
  top: 61%;
  right: max(7%, 50% - 6.1rem);
  width: min(66%, 7.6rem);
}
.process-handoff-back {
  top: 9%;
  right: max(8%, 50% - 6.15rem);
  width: min(65%, 10rem);
}
.process-handoff-sheet {
  top: 40%;
  right: max(26%, 50% - 3.7rem);
  width: min(66%, 10rem);
}
.process-handoff-sheet > div span:last-child { color: var(--process-accent); font-weight: 750; }
@media (max-width: 1100px) {
  .home-about-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .home-about-skills { grid-template-columns: minmax(0, 1fr); }
  .home-about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-about-steps { grid-template-columns: minmax(0, 1fr); }
  .process-scene { height: 10.75rem; }
}

.showcase-page { min-height: 52vh; padding-bottom: clamp(3rem, 7vw, 6rem); }
.showcase-intro { padding-block: clamp(2rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.showcase-intro h1 { font-size: clamp(2.7rem, 7vw, 6rem); letter-spacing: -.075em; }
.showcase-intro h1 span { display: inline-block; font-size: .64em; color: var(--blue); }
.showcase-intro p { color: var(--muted); margin-block: .4rem; }
.showcase-page .about-section { margin-block: 0; padding-top: 2rem; }

.showcase-footer {
  --muted: #b7b7be;
  --ink: #f3f3f5;
  color: var(--ink);
  background: #151619;
  border-top: 1px solid rgb(255 255 255 / .12);
}
.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: .875rem;
  padding-block: clamp(1.125rem, 2vw, 2rem);
}
.footer-message,
.footer-contact-column { align-content: center; }
.footer-message h2 {
  font-family: var(--display-font);
  font-size: clamp(1.65rem, 3vw, 2.625rem);
  letter-spacing: -.035em;
}
.footer-message p {
  max-width: 22em;
  margin-top: .85rem;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.footer-invitation { white-space: nowrap; }
.footer-contact-details { min-width: 0; font-style: normal; }
.footer-contact-list { list-style: none; margin: 0; padding: 0; }
.footer-contact-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.footer-contact-details a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 38px;
  max-width: 100%;
  color: #d6d6da;
  font-size: clamp(.875rem, 1.55vw, 1rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.footer-contact-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-contact-art {
  display: grid;
  place-items: center end;
}
.footer-contact-art img {
  width: min(100%, 14rem);
  height: auto;
  background: radial-gradient(ellipse at 50% 58%, rgb(255 255 255 / .06), transparent 69%);
}
.showcase-footer .site-footer {
  min-height: 3.75rem;
  padding-block: .5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
}

@media (min-width: 901px) {
  .footer-contact { --footer-column-padding: clamp(1rem, 2vw, 1.875rem); }
  .footer-message { padding-inline-end: var(--footer-column-padding); }
  .footer-contact-column {
    display: grid;
    justify-items: center;
    padding-inline: var(--footer-column-padding);
  }
  .footer-contact-art { justify-items: center; }
  .footer-contact-column,
  .footer-contact-art { position: relative; }
  :is(.footer-contact-column, .footer-contact-art)::before {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    width: 1px;
    height: min(72%, 9rem);
    background: linear-gradient(transparent, rgb(255 255 255 / .13) 21%, rgb(255 255 255 / .13) 79%, transparent);
    transform: translateY(-50%);
    pointer-events: none;
  }
}
@media (max-width: 900px) {
  .footer-contact {
    grid-template-columns: minmax(15rem, 1.5fr) minmax(0, .75fr);
    column-gap: clamp(1rem, 4vw, 2.25rem);
  }
  .footer-message { grid-column: 1 / -1; }
  .footer-contact-details a { min-height: 44px; font-size: .9375rem; }
  .footer-contact-art img { width: min(100%, 12rem); }
}
@media (max-width: 420px) {
  .footer-contact-details a { font-size: .875rem; }
}
@media (max-width: 375px) {
  .footer-contact { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .footer-contact-art { justify-items: center; }
  .footer-contact-art img { width: min(50%, 8rem); }
}

@media (1100px < width < 1200px) {
  #projects .project-kind { padding-inline: .35rem; }
}

@media (max-width: 1100px) {
  .showcase #projects .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .showcase #projects .project-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  #projects .project-tags { gap: .25rem; }
  #projects .project-kind { gap: .25rem; padding-inline: .25rem; font-size: .6875rem; }
  #projects .project-kind svg { width: .75rem; height: .75rem; }
}

@media (max-width: 850px) {
  .showcase .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase .project-art { height: clamp(11rem, 25vw, 16rem); }
}

@media (max-width: 680px) {
  .cover-scene { --cover-glow-position: 54% 70%; min-height: 0; }
  .cover-inner { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: calc(var(--header-height) + 2rem) .5rem; }
  .showcase .cover-name { font-size: clamp(3.25rem, 12.5vw, 4.5rem); }
  .cover-media { width: min(96%, 26rem); }
  .cover-character { width: 94%; height: 106%; bottom: 0; }
  .showcase .project-grid { grid-template-columns: minmax(0, 1fr); }
  .showcase .project-art { height: auto; aspect-ratio: 1.64; }
}
/* About: resume reading order, independent portrait layers for future motion. */
.about-page { --surface: #101113; --ink: #f3f3f5; --muted: #b8b8bf; --line: #343539; color-scheme: dark; }
.resume-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem); }
.resume-sidebar, .resume-content { display: grid; gap: 1.5rem; min-width: 0; }
.resume-panel { background: #1e1f22; border: 1px solid #ffffff0b; border-radius: 1.5rem; padding: clamp(1.5rem, 2.4vw, 2.25rem); }
.resume-panel h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; font-size: 1.5rem; letter-spacing: 0; margin-bottom: 1.75rem; }
.resume-portrait { position: relative; isolation: isolate; aspect-ratio: 1.04; margin-top: -1.5rem; }
.resume-portrait-backdrop { position: absolute; inset: 14% 0 2%; border-radius: 2rem; background: radial-gradient(ellipse at 45% 45%, #1d4caa, #17233a 70%); z-index: -1; }
.resume-character { width: 100%; height: 100%; object-fit: contain; position: relative; }
.resume-robot { position: absolute; width: 24%; height: auto; left: -1%; top: 23%; transform: rotate(-8deg); }
.resume-identity { padding-bottom: 0; container-type: inline-size; }
.resume-greeting { margin-top: 1.75rem; font-family: var(--system-font); font-size: 11.8cqi; white-space: nowrap; line-height: 1.3; letter-spacing: .035em; }
.resume-greeting span { font-family: 'Portfolio LogoSC', var(--system-font); color: var(--brand); letter-spacing: inherit; }
.resume-contacts { display: grid; row-gap: .25rem; }
.resume-contacts h2 { margin-bottom: .75rem; }
.resume-contacts a { display: flex; align-items: center; gap: .75rem; font-size: 1rem; min-height: 44px; width: fit-content; overflow-wrap: anywhere; }
.about-page a:is(:hover, :focus-visible) { color: #fff; }
.about-page a:focus-visible { outline-color: #fff; }
.resume-detail { padding-left: 0; }
.resume-detail h3 { font-size: 1rem; line-height: 1.6; }
.resume-detail p { margin-top: .5rem; }
.resume-meta { color: var(--muted); }
.resume-certificates { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.resume-certificates li { padding-left: 0; }
.resume-skills { display: grid; gap: 1.75rem; }
.resume-skills dt { font-weight: 700; padding-left: 0; }
.resume-skills dd { padding-left: 0; color: var(--muted); margin-top: .625rem; line-height: 1.9; }
.resume-summary p { line-height: 1.95; }
.resume-summary p + p { margin-top: 1.25rem; color: #c7c7ce; }
.resume-summary .resume-summary-lead { font-size: clamp(1.375rem, 2.1vw, 1.875rem); font-weight: 600; line-height: 1.6; max-width: 20em; }
.resume-job { position: relative; padding-block: 2.25rem; border-top: 1px solid #ffffff24; }
.resume-job:first-of-type { padding-top: .5rem; border-top: 0; }
.resume-job:last-child { padding-bottom: 0; }
.resume-job-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.resume-job-header h3 { font-size: 1.25rem; line-height: 1.5; }
.resume-job-header div p { color: var(--muted); margin-top: .5rem; font-size: .9375rem; }
.resume-date { flex: none; font-size: .875rem; color: #d6d7df; background: #ffffff0a; border: 0; border-radius: 2rem; padding: .35rem .75rem; white-space: nowrap; }
.resume-project + .resume-project { margin-top: 1.75rem; }
.resume-project h4 { font-size: 1.125rem; line-height: 1.6; margin: 0; padding-left: 0; }
.resume-project h4 a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 44px; }
.resume-project ul { padding-left: 1.25rem; margin: .875rem 0 0; color: #c7c7ce; line-height: 1.9; }
.resume-project li + li { margin-top: .5rem; }
@media (max-width: 1100px) { .resume-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); } .resume-job-header { flex-direction: column; gap: .75rem; } }
@media (max-width: 760px) {
  .resume-layout { grid-template-columns: minmax(0, 1fr); }
  .resume-sidebar { display: contents; }
  .resume-identity { order: 0; width: 100%; margin-inline: auto; }
  .resume-portrait { margin-inline: auto; margin-bottom: 0; }
  .resume-content { order: 1; }
  .resume-sidebar > .resume-panel { order: 2; }
  .resume-panel { border-radius: 1.25rem; }
  .resume-panel h2 { font-size: 1.375rem; }
}
@media (prefers-reduced-motion: no-preference) { .resume-project h4 a, .resume-contacts a { transition: color 180ms ease; } }
.resume-robot { width: 40%; left: -8%; top: 20%; }
.resume-case-arrow { flex: none; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.resume-project h4 a:is(:hover, :focus-visible) .resume-case-arrow { color: #fff; }
.resume-content strong { color: #fff; font-weight: 700; }

/* Shared resume markers: identical size, independent of text wrapping. */
.resume-detail h3, .resume-certificates li, .resume-skills dt, .resume-project h4 { position: relative; padding-left: 1rem; }
:is(.resume-detail h3, .resume-certificates li, .resume-skills dt, .resume-project h4)::before { content: ""; position: absolute; left: 0; top: .35em; width: 4px; height: 16px; background: var(--brand); }
.resume-project h4:has(a)::before { top: 14px; }
.resume-detail p, .resume-skills dd { padding-left: 1rem; }
.resume-certificates li { display: block; min-width: 0; text-wrap: pretty; }
.resume-job:not(:first-of-type)::before { content: ""; position: absolute; top: -1px; right: 0; width: 4rem; height: 2px; background: var(--brand); }
@media (max-width: 760px) { .resume-greeting { margin-top: 1.5rem; } .resume-portrait { margin-top: -1rem; } }
.resume-role { margin-top: .75rem; font-family: var(--display-font); font-size: clamp(1rem, 5.2cqi, 1.5rem); color: var(--muted); }
@media (min-width: 480px) and (max-width: 760px) { .resume-portrait { aspect-ratio: 1.25; } }
.resume-portrait-backdrop { border-radius: 0; -webkit-mask: url("about-backdrop.svg") center / 100% 100% no-repeat; mask: url("about-backdrop.svg") center / 100% 100% no-repeat; }

/* Work index reuses the homepage project cards and neutral surface. */
.work-page { --surface: #101113; --ink: #f3f3f5; --muted: #b8b8bf; --line: #343539; color-scheme: dark; }
.work-page .showcase-intro { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.work-page .showcase-intro h1 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); letter-spacing: -.025em; }
.work-page .showcase-intro p { margin-top: .875rem; }
.showcase.work-page #projects { margin-top: 0; }
