:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f4f0e8;
  --muted: rgba(244, 240, 232, 0.68);
  --soft: rgba(244, 240, 232, 0.38);
  --gold: #c8ab75;
  --silver: #c8ced5;
  --chrome: #dfe3e7;
  --ink: #070707;
  --display: "Bodoni 72", Didot, "Times New Roman", "Noto Serif SC", serif;
  --sans: "Aptos", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 8px;
}

html:not(.dark) {
  color-scheme: light;
  --bg: #f3f4f6;
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(17, 24, 39, 0.14);
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.66);
  --soft: rgba(17, 24, 39, 0.38);
  --gold: #83683d;
  --silver: #5f6670;
  --chrome: #20242a;
  --ink: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

body::before {
  display: none;
  content: none;
}

main {
  position: relative;
  z-index: 2;
}

.background-grid-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-position: center top;
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 10%, transparent 80%);
  pointer-events: none;
}

html:not(.dark) .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.star {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #ffffff;
  animation: twinkle 4s infinite ease-in-out;
  pointer-events: none;
}

html:not(.dark) .star {
  display: none;
}

.light-motion-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.86;
}

.light-motion-layer::before,
.light-motion-layer::after {
  position: absolute;
  width: 80vw;
  height: 80vw;
  min-width: 720px;
  min-height: 720px;
  content: "";
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  will-change: transform, opacity;
}

.light-motion-layer::before {
  top: -35%;
  left: -20%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.55), transparent 22%),
    radial-gradient(circle at 55% 48%, rgba(0, 255, 255, 0.42), transparent 34%),
    radial-gradient(circle at 62% 62%, rgba(189, 0, 255, 0.5), transparent 45%);
  animation: light-orbit-one 18s ease-in-out infinite alternate;
}

.light-motion-layer::after {
  right: -28%;
  bottom: -40%;
  background:
    radial-gradient(circle at 42% 42%, rgba(255, 215, 0, 0.4), transparent 25%),
    radial-gradient(circle at 52% 56%, rgba(255, 0, 170, 0.45), transparent 38%),
    radial-gradient(circle at 62% 42%, rgba(0, 120, 255, 0.45), transparent 48%);
  animation: light-orbit-two 22s ease-in-out infinite alternate;
}

.light-ray {
  position: fixed;
  top: -30vh;
  left: var(--x);
  z-index: 0;
  width: var(--w);
  height: 160vh;
  opacity: var(--o);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 14%,
    rgba(0, 255, 255, 0.18) 42%,
    rgba(255, 0, 170, 0.15) 58%,
    transparent 100%
  );
  filter: blur(18px);
  mix-blend-mode: screen;
  transform: rotate(var(--r));
  transform-origin: top center;
  animation: light-ray-drift var(--d) ease-in-out infinite alternate;
}

.top-media-bg,
.bottom-image-bg {
  position: fixed;
  left: 0;
  z-index: 0;
  width: 100%;
  pointer-events: none;
  overflow: hidden;
}

.top-media-bg {
  top: 0;
  height: 78vh;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.18), transparent 12rem),
    radial-gradient(circle at 26% 20%, rgba(0, 255, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 74% 34%, rgba(255, 0, 170, 0.12), transparent 24rem),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04), transparent 76%);
  mask-image: linear-gradient(to bottom, black 0%, black 58%, transparent 100%);
}

.bottom-image-bg {
  bottom: 0;
  height: 100vh;
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 215, 0, 0.12), transparent 24rem),
    radial-gradient(circle at 78% 76%, rgba(0, 120, 255, 0.16), transparent 26rem),
    linear-gradient(to top, rgba(255, 255, 255, 0.045), transparent 70%);
  mask-image: linear-gradient(to top, black 0%, black 65%, transparent 100%);
}

.aurora-container {
  position: fixed;
  top: -20%;
  left: -20%;
  z-index: 0;
  width: 100px;
  height: 180vh;
  pointer-events: none;
  transform: rotate(20deg);
  transform-origin: top center;
  mix-blend-mode: hard-light;
  animation: beam-sweep 25s linear infinite;
}

.aurora-beam {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(255, 215, 0, 0.7) 10%,
    rgba(255, 69, 0, 0.6) 25%,
    rgba(138, 43, 226, 0.5) 45%,
    rgba(0, 255, 255, 0.7) 60%,
    rgba(255, 215, 0, 0.7) 75%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: 100% 300%;
  animation: gradient-flow 50s linear infinite, beam-breathing-color 27s ease-in-out infinite;
}

.aurora-beam::before,
.aurora-beam::after {
  position: absolute;
  content: "";
  background-size: 100% 200%;
}

.aurora-beam::before {
  top: 10%;
  left: -40px;
  width: 40px;
  height: 80%;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 0, 255, 0.5) 40%, rgba(0, 0, 255, 0.4) 80%, transparent 100%);
  filter: blur(20px);
  opacity: 0.6;
  animation: gradient-flow 67s linear infinite reverse;
}

.aurora-beam::after {
  top: 20%;
  left: 60px;
  width: 30px;
  height: 70%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.3) 60%, transparent 100%);
  filter: blur(25px);
  mix-blend-mode: overlay;
  animation: gradient-flow 40s linear infinite;
}

html:not(.dark) .light-motion-layer {
  mix-blend-mode: multiply;
  opacity: 0.34;
}

html:not(.dark) .light-ray {
  opacity: calc(var(--o) * 0.5);
  mix-blend-mode: multiply;
}

html:not(.dark) .aurora-container {
  opacity: 0.34;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 250, 240, 0.85);
  outline-offset: 4px;
}

.progress-line {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), #fff);
}

.cursor-glow {
  position: fixed;
  z-index: 2;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(226, 206, 170, 0.11), transparent 66%);
  translate: -50% -50%;
  opacity: 0;
  transition: opacity 180ms ease;
}

.floating-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1240px, calc(100vw - 32px));
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028)),
    rgba(8, 8, 8, 0.58);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 60px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
}

.brand-mark,
.lang-toggle,
.theme-toggle {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.brand-mark span {
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 4vw, 38px);
  min-width: 0;
  padding: 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  text-align: center;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  position: relative;
  white-space: nowrap;
  transition: color 180ms ease;
}

.nav-links a:first-of-type {
  margin-left: auto;
}

.nav-links a:last-of-type {
  margin-right: auto;
}

.nav-links a::after {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 18px;
  height: 1px;
  content: "";
  background: var(--gold);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

body[data-lang="en"] .nav-links {
  gap: clamp(12px, 2.4vw, 26px);
  padding-inline: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

body[data-lang="en"] .nav-links a {
  flex-shrink: 1;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.lang-toggle,
.theme-toggle {
  padding: 0 14px;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.theme-toggle {
  min-width: 64px;
}

.section-shell {
  position: relative;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

#works,
#product-poster,
#detail-page,
#c4d-render,
#commerce-aigc,
#promo-poster,
#packaging-design,
#practice,
#about,
#contact,
.project-case {
  scroll-margin-top: 112px;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 96px 0 68px;
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero::before {
  width: min(76vw, 980px);
  aspect-ratio: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 240, 232, 0.18), transparent 28%),
    radial-gradient(circle at 62% 42%, rgba(120, 142, 171, 0.16), transparent 36%),
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.08), transparent 24%, rgba(200, 171, 117, 0.08), transparent 48%);
  filter: blur(0.2px);
  opacity: 0.52;
  animation: cinematicOrbit 16s ease-in-out infinite alternate;
}

.hero::after {
  width: min(48vw, 520px);
  aspect-ratio: 0.72;
  border-radius: 48% 48% 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.28) 52%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, rgba(229, 226, 217, 0.82), rgba(112, 116, 124, 0.45) 46%, rgba(18, 18, 22, 0.08));
  box-shadow: 0 0 150px rgba(255, 245, 226, 0.22), inset 18px 0 34px rgba(255, 255, 255, 0.16);
  opacity: 0.17;
  animation: centerObjectDrift 10s ease-in-out infinite alternate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0 50% auto 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  position: absolute;
  inset: 0;
  content: "";
}

.hero-atmosphere::before {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 246, 224, 0.2), transparent 18rem),
    radial-gradient(circle at 25% 74%, rgba(180, 138, 86, 0.1), transparent 24rem),
    radial-gradient(circle at 80% 28%, rgba(87, 105, 136, 0.15), transparent 24rem);
  animation: atmospherePulse 12s ease-in-out infinite alternate;
}

.hero-atmosphere::after {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42));
}

.beam {
  position: absolute;
  top: -20%;
  width: 15vw;
  height: 130%;
  filter: blur(38px);
  opacity: 0.32;
  transform: rotate(8deg);
  animation: beamDrift 12s ease-in-out infinite alternate;
}

.beam-a {
  left: 17%;
  background: linear-gradient(180deg, transparent, rgba(255, 245, 216, 0.18), transparent);
}

.beam-b {
  right: 18%;
  background: linear-gradient(180deg, transparent, rgba(118, 145, 181, 0.16), transparent);
  animation-duration: 16s;
}

.beam-c {
  left: 58%;
  background: linear-gradient(180deg, transparent, rgba(203, 159, 97, 0.12), transparent);
  animation-duration: 18s;
}

.grain,
.grain::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 28%, black, transparent 72%);
}

.hero-copy,
.about-strip,
.contact,
.project-case,
.case-plate {
  position: relative;
  z-index: 4;
}

.hero-copy {
  z-index: 6;
  display: grid;
  justify-items: center;
  max-width: 940px;
  text-shadow: 0 12px 44px rgba(0, 0, 0, 0.82), 0 0 42px rgba(0, 0, 0, 0.56);
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(4.2rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.92;
  color: #fffaf0;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  color: rgba(244, 240, 232, 0.55);
  font-size: clamp(2.2rem, 6vw, 5rem);
  font-style: italic;
}

.hero h1 span:first-child {
  margin-top: 0;
  color: #fffaf0;
  font-size: clamp(4.2rem, 12vw, 9rem);
  font-style: normal;
}

.hero-kicker {
  max-width: 720px;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.26rem);
  line-height: 1.9;
}

.en-copy {
  color: var(--soft);
}

.capability-pills,
.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-pills {
  margin-top: 26px;
}

.capability-pills span,
.visual-tags span,
.case-index {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 240, 232, 0.78);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button-primary:active,
.button-secondary:active,
.lang-toggle:active,
.theme-toggle:active {
  transform: scale(0.97);
}

.capability-marquee {
  z-index: 5;
  margin-top: -70px;
  border-block: 1px solid rgba(255, 255, 255, 0.095);
  overflow: hidden;
  color: rgba(244, 240, 232, 0.56);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: clamp(28px, 6vw, 86px);
  padding: 18px 0;
  animation: marqueeSlide 28s linear infinite;
}

.capability-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  white-space: nowrap;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--text);
  color: #080808;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.button-primary:hover,
.button-secondary:hover,
.contact-actions a:hover {
  transform: translateY(-4px) scale(1.01);
}

.media-plate {
  min-height: clamp(440px, 58vw, 640px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.065);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.58), 0 0 80px rgba(218, 199, 167, 0.08);
  overflow: hidden;
  backdrop-filter: blur(22px);
}

.plate-stage {
  position: relative;
  height: 100%;
  min-height: inherit;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 225, 203, 0.46), transparent 14rem),
    radial-gradient(circle at 68% 22%, rgba(255, 255, 255, 0.24), transparent 10rem),
    linear-gradient(160deg, rgba(73, 80, 94, 0.94), rgba(12, 12, 14, 0.7) 52%, rgba(128, 91, 53, 0.32));
}

.product-core {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(250px, 42vw);
  aspect-ratio: 0.72;
  border-radius: 44% 44% 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.08) 20%, rgba(255, 255, 255, 0.34) 52%, rgba(0, 0, 0, 0.25)),
    linear-gradient(180deg, #d7d2c9, #6e7075 46%, #1c1c1f);
  box-shadow: 0 0 110px rgba(255, 245, 226, 0.36);
  transform: translate(-50%, -50%);
  animation: floatCore 8s ease-in-out infinite alternate;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  animation: ringBreath 8s ease-in-out infinite;
}

.ring-one {
  width: 74%;
  aspect-ratio: 1.9;
}

.ring-two {
  width: 56%;
  aspect-ratio: 2.5;
  animation-delay: -2s;
}

.light-slice {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent);
}

.slice-one {
  left: 12%;
  right: 14%;
  top: 26%;
}

.slice-two {
  left: 24%;
  right: 10%;
  bottom: 25%;
}

.visual-tags {
  position: absolute;
  left: 22px;
  top: 22px;
  max-width: calc(100% - 44px);
}

.plate-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(244, 240, 232, 0.8);
  font-size: 0.78rem;
}

.plate-caption strong {
  color: var(--text);
  font-weight: 500;
}

.media-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: rgba(244, 240, 232, 0.56);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero-stats {
  z-index: 4;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-stats div {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.hero-stats strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.works,
.project-details,
.about-strip,
.contact {
  padding: clamp(64px, 9vw, 112px) 0;
}

.works::before,
.project-details::before,
.about-strip::before {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 100vw;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: end;
  margin-bottom: clamp(38px, 6vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.section-heading h2,
.about-strip h2,
.contact h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(1.78rem, 3.25vw, 2.9rem);
  font-weight: 400;
  line-height: 1.12;
}

.section-heading h2 {
  max-width: 680px;
}

.case-list {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.works-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.29fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.works-index {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 20px;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.065), transparent 42%),
    radial-gradient(circle at 20% 0%, rgba(255, 246, 224, 0.11), transparent 14rem),
    rgba(255, 255, 255, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.works-index p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.works-metrics {
  display: grid;
  gap: 1px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  overflow: hidden;
}

.works-metrics div {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.works-metrics strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.works-metrics span {
  color: var(--muted);
  font-size: 0.78rem;
}

.case-plate {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
  min-height: clamp(300px, 32vw, 360px);
  border: 1px solid rgba(255, 255, 255, 0.145);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 30%),
    rgba(255, 255, 255, 0.024);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.24);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

a.case-plate {
  color: inherit;
  text-decoration: none;
}

.case-plate::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.13), transparent 58%);
  opacity: 0;
  transform: translateX(-22%);
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events: none;
}

.case-plate::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.18), transparent 20rem);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.case-plate:hover {
  border-color: rgba(255, 255, 255, 0.31);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.075), transparent 34%),
    rgba(255, 255, 255, 0.036);
  transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-5px);
}

.case-plate:hover::after {
  opacity: 1;
  transform: translateX(18%);
}

.case-plate:hover::before {
  opacity: 1;
}

.case-image,
.project-hero {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.72) contrast(1.08);
  transition: transform 420ms ease, filter 420ms ease;
}

.case-image::before,
.project-hero::before {
  position: absolute;
  inset: 12% 16%;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 48% 48% 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.24) 52%, rgba(0, 0, 0, 0.26)),
    linear-gradient(180deg, var(--plate-top, rgba(235, 232, 224, 0.72)), var(--plate-mid, rgba(105, 112, 124, 0.48)) 48%, rgba(8, 8, 10, 0.08));
  box-shadow:
    0 0 80px var(--plate-glow, rgba(255, 245, 226, 0.18)),
    inset 16px 0 28px rgba(255, 255, 255, 0.12);
  opacity: 0.62;
  transform: translate3d(0, 0, 0);
}

.case-image::after,
.project-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.11), transparent 18%, rgba(255, 255, 255, 0.04) 50%, transparent 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 56%);
}

.case-index {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.case-image .case-index,
.project-hero .case-index {
  opacity: 0;
}

.case-plate:hover .case-image {
  filter: saturate(1) contrast(1.08);
  transform: scale(1.025);
}

.image-silver {
  --plate-top: rgba(235, 234, 228, 0.78);
  --plate-mid: rgba(116, 124, 137, 0.52);
  --plate-glow: rgba(230, 234, 238, 0.24);
  background:
    radial-gradient(circle at 54% 40%, rgba(255, 255, 255, 0.62), transparent 7rem),
    linear-gradient(135deg, #d9d7d0, #5f6670 42%, #0b0c0f 76%);
}

.image-amber {
  --plate-top: rgba(255, 219, 156, 0.65);
  --plate-mid: rgba(129, 86, 46, 0.54);
  --plate-glow: rgba(255, 204, 132, 0.22);
  background:
    radial-gradient(circle at 62% 35%, rgba(255, 220, 145, 0.52), transparent 8rem),
    linear-gradient(135deg, #20140f, #815a31 48%, #0d0a08);
}

.image-blue {
  --plate-top: rgba(210, 226, 244, 0.62);
  --plate-mid: rgba(73, 96, 122, 0.5);
  --plate-glow: rgba(168, 205, 247, 0.22);
  background:
    radial-gradient(circle at 44% 42%, rgba(184, 217, 255, 0.46), transparent 8rem),
    linear-gradient(135deg, #0e131a, #485f76 48%, #08090c);
}

.image-red {
  --plate-top: rgba(255, 201, 180, 0.62);
  --plate-mid: rgba(126, 44, 40, 0.48);
  --plate-glow: rgba(255, 166, 140, 0.2);
  background:
    radial-gradient(circle at 60% 36%, rgba(255, 194, 168, 0.46), transparent 8rem),
    linear-gradient(135deg, #110908, #70251f 50%, #080707);
}

.case-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3.6vw, 38px);
}

.case-number {
  color: var(--gold);
  font-family: var(--display);
  font-size: 1rem;
}

.case-content h3 {
  margin: 22px 0 12px;
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  font-weight: 400;
  line-height: 1;
  text-wrap: balance;
}

.case-content p,
.about-strip p,
.contact p,
.project-story p {
  color: var(--muted);
  line-height: 1.75;
}

.case-content p {
  display: -webkit-box;
  max-width: 520px;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.case-meta {
  margin-top: 18px;
  color: var(--soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.case-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 34px;
  margin-top: 18px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.case-plate:hover .case-cta,
.case-plate:focus-visible .case-cta,
.case-plate:focus-within .case-cta {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255, 255, 255, 0.32);
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 0.92fr);
  gap: clamp(24px, 6vw, 86px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.026), transparent 32%),
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
}

.about-strip p {
  max-width: 640px;
  margin-top: 0;
  font-size: 0.98rem;
}

.about-strip h2 {
  max-width: 760px;
}

.about-strip > p:not(.eyebrow) {
  grid-column: 2;
}

.project-details {
  display: grid;
  gap: clamp(26px, 5vw, 58px);
  padding-top: clamp(34px, 5vw, 64px);
}

.category-page {
  margin-top: clamp(42px, 7vw, 92px);
}

.capability-marquee + .category-page {
  margin-top: clamp(78px, 12vw, 150px);
}

.works + .about-strip {
  margin-top: clamp(28px, 5vw, 58px);
}

.about-strip + .category-page,
.works + .category-page {
  margin-top: clamp(78px, 12vw, 150px);
}

.category-page + .category-page {
  margin-top: clamp(28px, 4vw, 54px);
}

.project-case {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  min-height: clamp(460px, 62vh, 650px);
  border: 1px solid rgba(255, 255, 255, 0.145);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.052), transparent 36%),
    rgba(255, 255, 255, 0.024);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 90px rgba(0, 0, 0, 0.22);
}

.project-case:nth-child(even) .project-hero {
  order: 2;
}

.project-case:nth-child(even) .project-story {
  order: 1;
}

.project-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4.4vw, 48px);
}

.project-story h2 {
  margin: 18px 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
  text-wrap: balance;
}

.project-story > p {
  max-width: 620px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.story-grid div {
  min-height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), transparent 54%),
    rgba(255, 255, 255, 0.024);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-grid div:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-4px);
}

.story-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.story-grid p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.62;
}

.category-more-actions {
  display: flex;
  margin-top: 22px;
}

.category-more-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 42px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.category-more-toggle:hover,
.category-more-toggle:focus-visible {
  border-color: rgba(200, 171, 117, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.075)),
    rgba(200, 171, 117, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 48px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(200, 171, 117, 0.12);
  transform: translateY(-2px);
}

.category-more-toggle:focus-visible {
  outline: 2px solid rgba(200, 171, 117, 0.34);
  outline-offset: 4px;
}

.category-more-icon {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(200, 171, 117, 0.16);
  transition: transform 240ms ease, background 220ms ease;
}

.category-more-icon::before,
.category-more-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
}

.category-more-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: opacity 180ms ease;
}

.category-more-toggle[aria-expanded="true"] .category-more-icon {
  background: rgba(200, 171, 117, 0.28);
  transform: rotate(180deg);
}

.category-more-toggle[aria-expanded="true"] .category-more-icon::after {
  opacity: 0;
}

.category-more-panel {
  grid-column: 1 / -1;
  order: 3;
  padding: 0 clamp(22px, 4vw, 48px) clamp(24px, 4vw, 44px);
  overflow-anchor: none;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 360ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-category-navigating {
  overflow-anchor: none;
}

.category-more-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.mini-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.mini-work-card {
  --mini-accent: rgba(200, 171, 117, 0.55);
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)),
    rgba(255, 255, 255, 0.032);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 48px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 360ms ease calc(var(--mini-index) * 54ms),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mini-index) * 54ms),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.category-more-panel.is-open .mini-work-card {
  opacity: 1;
  transform: translateY(0);
}

.mini-work-card:hover {
  border-color: var(--mini-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 24px 62px rgba(0, 0, 0, 0.2),
    0 0 0 1px color-mix(in srgb, var(--mini-accent), transparent 55%);
  transform: translateY(-4px);
}

.mini-work-card-1 { --mini-accent: rgba(226, 232, 240, 0.66); }
.mini-work-card-2 { --mini-accent: rgba(245, 158, 11, 0.56); }
.mini-work-card-3 { --mini-accent: rgba(59, 130, 246, 0.58); }
.mini-work-card-4 { --mini-accent: rgba(248, 113, 113, 0.58); }
.mini-work-card-5 { --mini-accent: rgba(167, 139, 250, 0.58); }
.mini-work-card-6 { --mini-accent: rgba(45, 212, 191, 0.58); }

.mini-work-visual {
  position: relative;
  height: 148px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--mini-accent), rgba(255, 255, 255, 0.08));
}

.mini-work-visual::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  opacity: 0.72;
  content: "";
  transform: rotate(-18deg) scale(1.25);
}

.mini-work-visual::after {
  position: absolute;
  right: -14%;
  bottom: -28%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  content: "";
}

.mini-work-visual span {
  position: absolute;
  left: 16px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--display);
  font-size: 2.45rem;
  line-height: 1;
}

.mini-work-meta {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.mini-work-tag {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-work-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.28;
}

dl {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
}

dt {
  color: var(--gold);
  font-size: 0.74rem;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.44fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: end;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding-inline: clamp(24px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.075), transparent 34%),
    linear-gradient(300deg, rgba(200, 171, 117, 0.11), transparent 34%),
    rgba(255, 255, 255, 0.032);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 100px rgba(0, 0, 0, 0.26);
}

.contact::before {
  position: absolute;
  right: clamp(18px, 8vw, 92px);
  bottom: -0.18em;
  content: "FYH";
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--display);
  font-size: clamp(6rem, 18vw, 15rem);
  line-height: 0.8;
  pointer-events: none;
}

.contact::after {
  position: absolute;
  right: -80px;
  top: 50%;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: min(360px, 100%);
}

.contact-actions a,
.contact-actions span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.036);
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-actions a:hover,
.contact-actions span:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes beamDrift {
  from {
    transform: translateX(-18px) rotate(8deg);
  }
  to {
    transform: translateX(18px) rotate(4deg);
  }
}

@keyframes atmospherePulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes cinematicOrbit {
  from {
    opacity: 0.5;
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.96);
  }
  to {
    opacity: 0.82;
    transform: translate(-50%, -50%) rotate(7deg) scale(1.03);
  }
}

@keyframes centerObjectDrift {
  from {
    transform: translate(-50%, -52%);
  }
  to {
    transform: translate(-50%, -47%);
  }
}

@keyframes marqueeSlide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  }
}

@keyframes light-orbit-one {
  0% {
    opacity: 0.2;
    transform: translate3d(-10vw, -8vh, 0) scale(0.85) rotate(0deg);
  }
  45% {
    opacity: 0.44;
    transform: translate3d(22vw, 18vh, 0) scale(1.08) rotate(24deg);
  }
  100% {
    opacity: 0.34;
    transform: translate3d(48vw, 2vh, 0) scale(0.95) rotate(48deg);
  }
}

@keyframes light-orbit-two {
  0% {
    opacity: 0.26;
    transform: translate3d(8vw, 8vh, 0) scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 0.46;
    transform: translate3d(-24vw, -20vh, 0) scale(1.12) rotate(-20deg);
  }
  100% {
    opacity: 0.32;
    transform: translate3d(-50vw, -4vh, 0) scale(1) rotate(-42deg);
  }
}

@keyframes light-ray-drift {
  0% {
    opacity: calc(var(--o) * 0.55);
    transform: translate3d(-8vw, -3vh, 0) rotate(var(--r)) scaleX(0.85);
  }
  100% {
    opacity: var(--o);
    transform: translate3d(12vw, 5vh, 0) rotate(calc(var(--r) + 6deg)) scaleX(1.25);
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 50% 0%;
  }
  100% {
    background-position: 50% 200%;
  }
}

@keyframes beam-breathing-color {
  0% {
    filter: blur(35px) brightness(1.2) hue-rotate(0deg);
    transform: scaleX(1);
  }
  50% {
    filter: blur(45px) brightness(1.4) hue-rotate(45deg);
    transform: scaleX(1.2);
  }
  100% {
    filter: blur(35px) brightness(1.2) hue-rotate(0deg);
    transform: scaleX(1);
  }
}

@keyframes beam-sweep {
  0% {
    left: -20%;
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@keyframes floatCore {
  from {
    transform: translate(-50%, -52%);
  }
  to {
    transform: translate(-50%, -47%);
  }
}

@keyframes ringBreath {
  0%,
  100% {
    opacity: 0.35;
    scale: 0.98;
  }
  50% {
    opacity: 0.68;
    scale: 1.02;
  }
}

html:not(.dark) .floating-nav {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 20px 60px rgba(17, 24, 39, 0.14);
}

html:not(.dark) .brand-mark,
html:not(.dark) .lang-toggle,
html:not(.dark) .theme-toggle {
  border-color: rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
    rgba(255, 255, 255, 0.48);
  color: #111827;
}

html:not(.dark) .hero h1,
html:not(.dark) .hero h1 span:first-child,
html:not(.dark) .section-heading h2,
html:not(.dark) .project-story h2,
html:not(.dark) .contact h2 {
  color: #111827;
  text-shadow: none;
}

html:not(.dark) .hero h1 span,
html:not(.dark) .hero-kicker,
html:not(.dark) .case-content p,
html:not(.dark) .project-story > p,
html:not(.dark) .story-grid p,
html:not(.dark) .contact p,
html:not(.dark) dl dd {
  color: var(--muted);
}

html:not(.dark) .eyebrow,
html:not(.dark) .case-number,
html:not(.dark) .case-meta,
html:not(.dark) dl dt {
  color: rgba(17, 24, 39, 0.48);
}

html:not(.dark) .works-index,
html:not(.dark) .case-plate,
html:not(.dark) .project-case,
html:not(.dark) .about-strip,
html:not(.dark) .story-grid div,
html:not(.dark) .contact {
  border-color: rgba(17, 24, 39, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.44)),
    rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.1);
}

html:not(.dark) .button-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

html:not(.dark) .button-secondary,
html:not(.dark) .contact-actions a,
html:not(.dark) .contact-actions span {
  border-color: rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.56);
  color: #111827;
}

html:not(.dark) .capability-marquee {
  border-block-color: rgba(17, 24, 39, 0.1);
  color: rgba(17, 24, 39, 0.52);
}

html:not(.dark) .capability-pills span,
html:not(.dark) .visual-tags span,
html:not(.dark) .case-index,
html:not(.dark) .works-metrics div {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.48);
  color: rgba(17, 24, 39, 0.68);
}

html:not(.dark) .hero-atmosphere,
html:not(.dark) .beam {
  opacity: 0.34;
}

html:not(.dark) .cursor-glow {
  width: 26rem;
  height: 26rem;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.15) 22%, transparent 58%),
    radial-gradient(circle at 58% 62%, rgba(255, 255, 255, 0.18), transparent 48%);
  mix-blend-mode: screen;
  filter: blur(2px);
}

html:not(.dark) .contact::before {
  color: rgba(17, 24, 39, 0.045);
}

@media (max-width: 860px) {
  .floating-nav {
    top: 12px;
    grid-template-columns: auto 1fr auto;
    width: min(520px, calc(100vw - 24px));
    min-height: 48px;
    padding: 6px;
    border-radius: 999px;
  }

  .nav-links {
    order: initial;
    grid-column: auto;
    gap: clamp(12px, 5vw, 24px);
    padding: 0;
    font-size: 0.72rem;
  }

  .nav-actions {
    justify-self: end;
  }

  .hero,
  .case-plate,
  .works-layout,
  .project-case,
  .about-strip,
  .contact,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .works-index {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 18px;
  }

  .project-details {
    padding-top: 34px;
  }

  .project-case:nth-child(even) .project-hero,
  .project-case:nth-child(even) .project-story {
    order: initial;
  }

  .about-strip > p:not(.eyebrow) {
    grid-column: auto;
  }

  .hero-stats,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 112px 0 58px;
    min-height: 92svh;
  }

  .capability-marquee {
    margin-top: 0;
  }

  .hero::before {
    width: 112vw;
  }

  .hero::after {
    width: min(72vw, 340px);
  }

  .case-plate {
    min-height: auto;
    transform: none;
  }

  .case-plate:hover {
    transform: translateY(-4px);
  }

  .case-cta {
    opacity: 1;
    transform: none;
  }

  .case-content h3 {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }

  .contact-actions {
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  html {
    scroll-padding-top: 88px;
  }

  #works,
  #selected-works,
  #product-poster,
  #detail-page,
  #c4d-render,
  #commerce-aigc,
  #promo-poster,
  #packaging-design,
  #practice,
  #about,
  #contact,
  .project-case {
    scroll-margin-top: 88px;
  }

  .floating-nav {
    width: calc(100vw - 20px);
  }

  .brand-mark,
  .lang-toggle,
  .theme-toggle {
    min-width: 36px;
    height: 34px;
  }

  .brand-mark span,
  .lang-toggle,
  .theme-toggle {
    font-size: 0.66rem;
  }

  .theme-toggle {
    min-width: 50px;
    padding: 0 10px;
  }

  .nav-links {
    gap: clamp(10px, 4vw, 18px);
    padding: 0 8px;
  }

  .nav-links a::after {
    bottom: -6px;
    width: 14px;
  }

  .works,
  .project-details,
  .about-strip,
  .contact {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
    line-height: 0.98;
  }

  .hero h1 span:first-child {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

  .hero h1 span {
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .hero-kicker {
    max-width: 31rem;
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .hero-actions {
    display: grid;
    width: min(100%, 320px);
    margin-top: 26px;
  }

  .button-primary,
  .button-secondary,
  .contact-actions a,
  .contact-actions span {
    width: 100%;
  }

  .capability-marquee {
    margin-top: -6px;
  }

  .marquee-track {
    padding: 13px 0;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 28px;
    padding-top: 20px;
  }

  .section-heading h2,
  .about-strip h2,
  .contact h2 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    line-height: 1.16;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .works-layout {
    gap: 22px;
  }

  .works-index {
    gap: 16px;
    background: rgba(255, 255, 255, 0.028);
  }

  .works-index p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .works-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .works-metrics div {
    min-width: 0;
    padding: 12px 10px;
  }

  .works-metrics strong {
    font-size: clamp(1.12rem, 7vw, 1.55rem);
  }

  .works-metrics span {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .case-list {
    gap: 22px;
  }

  .case-image {
    min-height: 190px;
  }

  .case-image::before,
  .project-hero::before {
    inset: 16% 22%;
    opacity: 0.52;
  }

  .case-content {
    padding: 22px;
  }

  .case-content h3 {
    margin: 18px 0 10px;
    font-size: clamp(1.85rem, 10vw, 2.85rem);
  }

  .case-content p {
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-line-clamp: 3;
  }

  .case-meta {
    margin-top: 16px;
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .about-strip {
    gap: 18px;
  }

  .about-strip p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .project-case {
    min-height: auto;
  }

  .project-hero {
    min-height: 230px;
  }

  .project-story {
    padding: 24px 20px 22px;
  }

  .project-story h2 {
    margin: 16px 0 12px;
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    line-height: 1.06;
  }

  .project-story > p {
    font-size: 0.92rem;
    line-height: 1.68;
  }

  .story-grid {
    gap: 8px;
    margin-top: 18px;
  }

  .story-grid div {
    min-height: auto;
    padding: 14px;
  }

  .story-grid span {
    margin-bottom: 8px;
  }

  .story-grid p {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .contact {
    gap: 22px;
    padding-inline: 20px;
  }

  .contact::before {
    right: 12px;
    bottom: -0.08em;
    font-size: 5.4rem;
  }

  .contact::after {
    right: -120px;
    width: 220px;
  }

  .contact-actions {
    gap: 8px;
  }

  .contact-actions a,
  .contact-actions span {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Mobile navigation, experience deck, and edge-to-edge work viewer. */
.mobile-works-toggle {
  display: none;
}

.mobile-works-menu {
  display: contents;
}

.experience-deck-pagination {
  display: none;
}

@media (min-width: 641px) and (max-width: 920px) {
  .experience-stack-stage > .experience-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 14px) / 2);
  }
}

@media (max-width: 640px) {
  .floating-nav {
    top: 10px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    width: calc(100vw - 16px);
    min-height: 50px;
    padding: 6px;
    overflow: visible;
  }

  .brand-mark,
  .lang-toggle,
  .theme-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-links,
  body[data-lang="en"] .nav-links {
    position: static;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 4px;
    overflow: visible;
  }

  .nav-links > a[href="#top"],
  body[data-lang="en"] .nav-links > a[href="#top"] {
    flex: 0 0 auto;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
  }

  .mobile-works-toggle {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.7rem;
    cursor: pointer;
    transition:
      color 160ms ease,
      transform 180ms ease;
  }

  .mobile-works-toggle:hover,
  .mobile-works-toggle:focus-visible,
  .mobile-works-toggle.is-active,
  .floating-nav.is-mobile-menu-open .mobile-works-toggle {
    color: var(--text);
    outline: none;
  }

  .mobile-works-toggle:active {
    transform: scale(0.98);
  }

  .mobile-works-chevron {
    display: inline-block;
    margin-left: 5px;
    font-size: 1rem;
    line-height: 1;
    transform: rotate(90deg);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .floating-nav.is-mobile-menu-open .mobile-works-chevron {
    transform: rotate(-90deg);
  }

  .mobile-works-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 90;
    display: grid;
    max-height: calc(100dvh - 86px);
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
      rgba(8, 10, 16, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      0 24px 56px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(26px) saturate(150%);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transform-origin: 50% 0;
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .floating-nav.is-mobile-menu-open .mobile-works-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-works-menu a,
  body[data-lang="en"] .mobile-works-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border-radius: 7px;
    color: rgba(244, 248, 255, 0.68);
    font-size: 0.76rem;
    text-align: left;
  }

  .mobile-works-menu a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .mobile-works-menu a:hover,
  .mobile-works-menu a:focus-visible,
  .mobile-works-menu a.is-active {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    outline: none;
  }

  html:not(.dark) .mobile-works-toggle {
    color: rgba(17, 24, 39, 0.58);
  }

  html:not(.dark) .mobile-works-toggle:hover,
  html:not(.dark) .mobile-works-toggle:focus-visible,
  html:not(.dark) .mobile-works-toggle.is-active,
  html:not(.dark) .floating-nav.is-mobile-menu-open .mobile-works-toggle {
    color: #111827;
  }

  html:not(.dark) .mobile-works-menu {
    border-color: rgba(255, 255, 255, 0.8);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
      rgba(240, 246, 252, 0.72);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 24px 56px rgba(17, 24, 39, 0.14);
  }

  html:not(.dark) .mobile-works-menu a {
    color: rgba(17, 24, 39, 0.66);
  }

  html:not(.dark) .mobile-works-menu a + a {
    border-top-color: rgba(71, 85, 105, 0.09);
  }

  html:not(.dark) .mobile-works-menu a:hover,
  html:not(.dark) .mobile-works-menu a:focus-visible,
  html:not(.dark) .mobile-works-menu a.is-active {
    background: rgba(255, 255, 255, 0.62);
    color: #111827;
  }

  .experience-stack {
    width: 100vw;
    min-height: auto;
    margin-top: -18px;
    padding: 0;
    overflow: clip;
  }

  .experience-stack-stage.is-mobile-deck {
    display: block;
    width: min(calc(100vw - 48px), 320px);
    max-width: 320px;
    height: clamp(430px, 126vw, 500px);
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    perspective: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .experience-stack-stage.is-mobile-deck .experience-card,
  .experience-stack-stage.is-mobile-deck:hover .experience-card,
  .experience-stack-stage.is-mobile-deck:focus-within .experience-card {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 0.725;
    margin: 0;
    opacity: var(--mobile-card-opacity, 1);
    filter: blur(var(--mobile-card-blur, 0)) saturate(var(--mobile-card-saturation, 1));
    translate: none;
    rotate: 0deg;
    transform:
      translateX(-50%)
      translate(
        calc(var(--mobile-card-x, 0px) + var(--mobile-drag-x, 0px)),
        var(--mobile-card-y, 28px)
      )
      rotate(calc(var(--mobile-card-rotate, 0deg) + var(--mobile-drag-rotate, 0deg)))
      scale(var(--mobile-card-scale, 1));
    transform-origin: 50% 82%;
    animation: none;
    transition:
      transform 440ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 280ms ease,
      filter 280ms ease,
      box-shadow 280ms ease;
    will-change: transform;
  }

  .experience-stack-stage.is-mobile-deck .experience-card[data-mobile-stack-slot="0"] {
    --mobile-card-x: 0px;
    --mobile-card-y: 28px;
    --mobile-card-rotate: 0deg;
    --mobile-card-scale: 1;
    --mobile-card-opacity: 1;
    --mobile-card-blur: 0;
    --mobile-card-saturation: 1;
    z-index: 3;
  }

  .experience-stack-stage.is-mobile-deck .experience-card[data-mobile-stack-slot="1"] {
    --mobile-card-x: 10px;
    --mobile-card-y: 14px;
    --mobile-card-rotate: 1.1deg;
    --mobile-card-scale: 0.976;
    --mobile-card-opacity: 0.82;
    --mobile-card-blur: 0.25px;
    --mobile-card-saturation: 0.94;
    z-index: 2;
  }

  .experience-stack-stage.is-mobile-deck .experience-card[data-mobile-stack-slot="2"] {
    --mobile-card-x: -8px;
    --mobile-card-y: 0px;
    --mobile-card-rotate: -1.2deg;
    --mobile-card-scale: 0.952;
    --mobile-card-opacity: 0.66;
    --mobile-card-blur: 0.5px;
    --mobile-card-saturation: 0.88;
    z-index: 1;
  }

  .experience-stack-stage.is-mobile-deck .experience-card.is-mobile-active {
    cursor: grab;
  }

  .experience-stack-stage.is-mobile-deck.is-mobile-swiping .experience-card.is-mobile-active {
    cursor: grabbing;
    transition: none !important;
    will-change: transform, opacity;
  }

  .experience-stack-stage.is-mobile-deck.is-mobile-settling .experience-card {
    transition:
      transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 240ms ease !important;
  }

  .experience-stack-stage.is-mobile-deck.is-mobile-settling .experience-card.is-swipe-exiting {
    z-index: 4;
    will-change: transform, opacity;
  }

  .experience-stack-stage.is-mobile-deck .experience-card.is-swipe-target {
    --mobile-card-x: 0px;
    --mobile-card-y: 28px;
    --mobile-card-rotate: 0deg;
    --mobile-card-scale: 1;
    --mobile-card-opacity: 1;
    z-index: 3;
    opacity: 1;
    will-change: transform, opacity;
  }

  .experience-stack-stage.is-mobile-deck.is-mobile-resetting .experience-card {
    transition: none !important;
  }

  .experience-stack-stage.is-mobile-deck .experience-card:hover .experience-card-visual,
  .experience-stack-stage.is-mobile-deck .experience-card:focus .experience-card-visual,
  .experience-stack-stage.is-mobile-deck .experience-card.is-active .experience-card-visual {
    transform: none;
    filter: none;
  }

  .experience-stack-stage.is-mobile-deck .experience-card:focus {
    outline: none;
  }

  .experience-stack-stage.is-mobile-deck .experience-card:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.4);
    outline-offset: 4px;
  }

  .experience-deck-pagination {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 36px;
    margin: 2px auto 18px;
  }

  .experience-deck-pagination button {
    appearance: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .experience-deck-pagination button::before {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.28);
    content: "";
    transition:
      width 220ms cubic-bezier(0.22, 1, 0.36, 1),
      background-color 180ms ease;
  }

  .experience-deck-pagination button:hover::before,
  .experience-deck-pagination button:focus-visible::before {
    background: rgba(71, 85, 105, 0.54);
  }

  .experience-deck-pagination button:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.38);
    outline-offset: 0;
  }

  .experience-deck-pagination button.is-active::before {
    width: 16px;
    background: #2563eb;
  }

  html.dark .experience-deck-pagination button::before {
    background: rgba(226, 232, 240, 0.3);
  }

  html.dark .experience-deck-pagination button.is-active::before {
    background: #93c5fd;
  }

  body.work-lightbox-open {
    overscroll-behavior: none;
  }

  .work-lightbox {
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding:
      calc(48px + env(safe-area-inset-top))
      0
      calc(18px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox-figure {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: calc(100dvh - 118px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100vw;
    max-height: calc(100dvh - 154px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0 auto;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
  }

  .work-lightbox-meta {
    box-sizing: border-box;
    padding: 12px 44px 0;
  }

  .work-lightbox-close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
  }

  .work-lightbox-prev {
    left: 10px;
  }

  .work-lightbox-next {
    right: 10px;
  }

  .work-lightbox.is-long-page {
    width: 100vw;
    padding:
      calc(54px + env(safe-area-inset-top))
      0
      calc(76px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox.is-long-page .work-lightbox-figure,
  .work-lightbox.is-long-page .work-lightbox-image {
    width: 100vw;
    max-width: 100vw;
    margin-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .work-lightbox.is-long-page .work-lightbox-meta {
    max-width: calc(100vw - 24px);
    min-width: 0;
  }
}

/* Directional BorderGlow adapted for the static portfolio runtime. */
.border-glow-target {
  --border-glow-proximity: 0;
  --border-glow-floor: 0;
  --border-glow-level: max(var(--border-glow-proximity), var(--border-glow-floor));
  --border-glow-angle: 45deg;
  --border-glow-sensitivity: 28;
  --border-glow-gain: 0.007;
  --border-glow-radius: 28px;
  --border-glow-fill: 0.1;
  --border-glow-one: #c084fc;
  --border-glow-two: #f472b6;
  --border-glow-three: #38bdf8;
  --border-glow-hsl: 196 92% 76%;
  isolation: isolate;
}

[data-border-glow="nav"] {
  --border-glow-sensitivity: 24;
  --border-glow-gain: 0.006;
  --border-glow-radius: 24px;
  --border-glow-fill: 0.07;
  --border-glow-one: #7dd3fc;
  --border-glow-two: #a78bfa;
  --border-glow-three: #f0abfc;
  --border-glow-hsl: 198 92% 76%;
}

[data-border-glow="profile"] {
  --border-glow-one: #c084fc;
  --border-glow-two: #f472b6;
  --border-glow-three: #38bdf8;
  --border-glow-hsl: 274 88% 78%;
}

[data-border-glow="zhuolong"] {
  --border-glow-one: #fb7185;
  --border-glow-two: #e11d48;
  --border-glow-three: #38bdf8;
  --border-glow-hsl: 348 88% 70%;
}

[data-border-glow="molan"] {
  --border-glow-one: #facc15;
  --border-glow-two: #d4a34f;
  --border-glow-three: #2dd4bf;
  --border-glow-hsl: 43 82% 70%;
}

[data-border-glow="contact"] {
  --border-glow-sensitivity: 24;
  --border-glow-gain: 0.005;
  --border-glow-radius: 38px;
  --border-glow-fill: 0.075;
  --border-glow-one: #7dd3fc;
  --border-glow-two: #a78bfa;
  --border-glow-three: #f0abfc;
  --border-glow-hsl: 202 88% 76%;
  position: relative;
}

[data-border-glow="category"] {
  --border-glow-sensitivity: 28;
  --border-glow-gain: 0.0055;
  --border-glow-radius: 18px;
  --border-glow-fill: 0.045;
  --border-glow-one: #93c5fd;
  --border-glow-two: #a5b4fc;
  --border-glow-three: #67e8f9;
  --border-glow-hsl: 200 88% 78%;
}

.category-strip-section.is-more-open > [data-border-glow="category"] {
  --border-glow-floor: 58;
}

.border-glow-overlay,
.border-glow-overlay::before,
.border-glow-overlay::after,
.border-glow-edge,
.border-glow-edge::before {
  position: absolute;
  pointer-events: none;
}

.border-glow-overlay {
  inset: 0;
  z-index: 7;
  overflow: visible;
  border-radius: inherit;
  opacity: 1;
  transform: translateZ(0.02px);
}

.border-glow-overlay::before,
.border-glow-overlay::after {
  inset: 0;
  border-radius: inherit;
  content: "";
  transition: opacity 260ms ease-out;
}

.border-glow-overlay::before {
  padding: 1px;
  background:
    conic-gradient(
      from var(--border-glow-angle) at 50% 50%,
      transparent 0 4%,
      var(--border-glow-one) 9%,
      var(--border-glow-two) 16%,
      var(--border-glow-three) 23%,
      transparent 31% 100%
    );
  opacity: clamp(
    0,
    calc(
      (var(--border-glow-level) - var(--border-glow-sensitivity)) *
      var(--border-glow-gain)
    ),
    0.72
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.border-glow-overlay::after {
  inset: 1px;
  background:
    conic-gradient(
      from var(--border-glow-angle) at 50% 50%,
      transparent 0 7%,
      color-mix(in srgb, var(--border-glow-one) 68%, transparent) 12%,
      color-mix(in srgb, var(--border-glow-two) 54%, transparent) 19%,
      color-mix(in srgb, var(--border-glow-three) 60%, transparent) 26%,
      transparent 36% 100%
    );
  opacity: clamp(
    0,
    calc(
      (var(--border-glow-level) - var(--border-glow-sensitivity)) *
      var(--border-glow-gain) *
      var(--border-glow-fill)
    ),
    0.14
  );
  mask-image: radial-gradient(ellipse at center, transparent 48%, #000 100%);
  mix-blend-mode: soft-light;
}

.border-glow-edge {
  inset: calc(var(--border-glow-radius) * -1);
  z-index: -1;
  border-radius: inherit;
  opacity: clamp(
    0,
    calc(
      (var(--border-glow-level) - var(--border-glow-sensitivity)) *
      var(--border-glow-gain)
    ),
    0.52
  );
  transition: opacity 280ms ease-out;
  mix-blend-mode: plus-lighter;
  mask-image:
    conic-gradient(
      from var(--border-glow-angle) at center,
      #000 0 5%,
      transparent 14% 86%,
      #000 95% 100%
    );
}

.border-glow-edge::before {
  inset: var(--border-glow-radius);
  border-radius: inherit;
  content: "";
  box-shadow:
    inset 0 0 0 1px hsl(var(--border-glow-hsl) / 0.62),
    inset 0 0 7px hsl(var(--border-glow-hsl) / 0.28),
    inset 0 0 20px hsl(var(--border-glow-hsl) / 0.14),
    0 0 8px hsl(var(--border-glow-hsl) / 0.2),
    0 0 24px hsl(var(--border-glow-hsl) / 0.11),
    0 0 44px hsl(var(--border-glow-hsl) / 0.06);
}

[data-border-glow="category"] > .border-glow-overlay {
  opacity: 0;
}

.category-strip-section.is-more-open > [data-border-glow="category"] > .border-glow-overlay,
[data-border-glow="category"].is-border-glow-focus > .border-glow-overlay,
[data-border-glow="category"].is-border-glow-pulse > .border-glow-overlay {
  opacity: 1;
}

.floating-nav > :not(.border-glow-overlay),
.contact > :not(.border-glow-overlay) {
  position: relative;
  z-index: 2;
}

html.dark .border-glow-target {
  --border-glow-fill: 0.065;
}

html.dark [data-border-glow="contact"] {
  --border-glow-fill: 0.055;
}

@media (pointer: coarse) {
  .border-glow-edge {
    display: none;
  }

  .border-glow-overlay::after {
    mix-blend-mode: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .border-glow-overlay::before,
  .border-glow-overlay::after,
  .border-glow-edge {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .border-glow-overlay {
    display: none;
  }
}

@media (max-width: 360px) {
  .nav-links,
  body[data-lang="en"] .nav-links {
    padding-inline: 0;
  }

  .nav-links > a[href="#top"],
  body[data-lang="en"] .nav-links > a[href="#top"],
  .mobile-works-toggle {
    padding-inline: 8px;
  }

  .mobile-works-toggle {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-works-menu,
  .mobile-works-chevron,
  .experience-stack-stage.is-mobile-deck .experience-card,
  .experience-deck-pagination button::before {
    transition: none !important;
  }
}

/* Real-work categories: grouped wall with original image proportions. */
.category-strip-section.has-real-work .mini-work-grid-real {
  display: block;
}

.category-strip-section.has-real-work .product-work-group {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.category-strip-section.has-real-work .product-work-group + .product-work-group {
  margin-top: 42px;
}

.category-strip-section.has-real-work .product-work-group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: rgba(51, 65, 85, 0.72);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.category-strip-section.has-real-work .product-work-group-title::after {
  flex: 1;
  height: 1px;
  background: rgba(71, 85, 105, 0.15);
  content: "";
}

.category-strip-section.has-real-work .product-work-grid {
  --product-grid-gap: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--product-grid-gap);
}

.category-strip-section.has-real-work .mini-work-card-real {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 34px rgba(31, 41, 55, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.category-strip-section.has-real-work .category-more-panel.is-open .mini-work-card-real:hover,
.category-strip-section.has-real-work .category-more-panel.is-open .mini-work-card-real:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 18px 38px rgba(31, 41, 55, 0.12);
  transform: translateY(-2px);
}

.category-strip-section.has-real-work .mini-work-card-real::before {
  display: none;
}

.category-strip-section.has-real-work .mini-work-card-real .mini-work-visual {
  position: relative;
  inset: auto;
  display: block;
  height: auto;
  overflow: hidden;
  transform: none;
}

.category-strip-section.has-real-work .mini-work-card-real .mini-work-visual::before {
  display: none;
  content: none;
}

.category-strip-section.has-real-work .mini-work-card-real .mini-work-visual::after {
  position: absolute;
  inset: 48% 0 0;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.1) 48%, rgba(5, 10, 18, 0.68));
  content: "";
  opacity: 0.64;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.category-strip-section.has-real-work .mini-work-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: scale(1.001);
  transform-origin: center;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 320ms ease;
}

.category-strip-section.has-real-work .mini-work-card-real:hover .mini-work-image,
.category-strip-section.has-real-work .mini-work-card-real:focus-visible .mini-work-image {
  filter: saturate(1.025) brightness(1.01);
  transform: scale(1.015);
}

.category-strip-section.has-real-work .mini-work-card-real:hover .mini-work-visual,
.category-strip-section.has-real-work .mini-work-card-real:focus-visible .mini-work-visual {
  filter: none;
  transform: none;
}

.category-strip-section.has-real-work .mini-work-card-real:hover .mini-work-visual::after,
.category-strip-section.has-real-work .mini-work-card-real:focus-visible .mini-work-visual::after {
  opacity: 0.82;
}

.category-strip-section.has-real-work .real-work-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
  transform: translateY(8px);
  transition:
    opacity 260ms ease,
    transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-strip-section.has-real-work .mini-work-card-real:hover .real-work-caption,
.category-strip-section.has-real-work .mini-work-card-real:focus-visible .real-work-caption {
  opacity: 1;
  transform: translateY(0);
}

.category-strip-section.has-real-work .real-work-index {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.category-strip-section.has-real-work .real-work-title {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.category-strip-section.has-real-work .mini-work-card-real.is-last-real {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--product-grid-gap)) / 2);
}

#detail-page.has-real-work .product-work-grid-detail {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

#detail-page.has-real-work .mini-work-card-real {
  width: min(100%, 790px);
}

#detail-page.has-real-work .mini-work-card-real.is-last-real {
  grid-column: auto;
  width: min(100%, 790px);
}

#detail-page.has-real-work .is-long-page-card .mini-work-visual::after {
  inset: auto 0 0;
  height: min(420px, 12%);
}

#detail-page.has-real-work .mini-work-visual > .detail-page-open-cue {
  position: absolute;
  top: auto;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  height: auto;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(9, 15, 24, 0.44);
  color: rgba(255, 255, 255, 0.96);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(5, 10, 18, 0.2);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  opacity: 0.24;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: right bottom;
  transition:
    opacity 280ms ease,
    transform 440ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 240ms ease,
    background-color 240ms ease;
}

.detail-page-open-cue::after {
  font-size: 0.9rem;
  line-height: 1;
  content: "\2197";
}

#detail-page.has-real-work .is-long-page-card:hover .detail-page-open-cue,
#detail-page.has-real-work .is-long-page-card:focus-visible .detail-page-open-cue {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(9, 15, 24, 0.62);
  opacity: 1;
  transform: translateY(0) scale(1);
}

html.dark #detail-page.has-real-work .mini-work-visual > .detail-page-open-cue {
  border-color: rgba(226, 232, 240, 0.34);
  background: rgba(3, 7, 14, 0.58);
  color: #f8fbff;
}

#detail-page.has-real-work .mini-work-card-real:hover .mini-work-image,
#detail-page.has-real-work .mini-work-card-real:focus-visible .mini-work-image {
  transform: scale(1.001);
}

#practice.has-real-work .product-work-grid-practice-brand-project {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

#practice.has-real-work .product-work-group-practice-brand-project .mini-work-card-real,
#practice.has-real-work .product-work-group-practice-brand-project .mini-work-card-real.is-last-real {
  grid-column: auto;
  width: min(100%, 790px);
}

#practice.has-real-work .product-work-group-practice-brand-project .is-long-page-card .mini-work-visual::after {
  inset: auto 0 0;
  height: min(420px, 12%);
}

#practice.has-real-work .product-work-group-practice-brand-project .mini-work-card-real:hover .mini-work-image,
#practice.has-real-work .product-work-group-practice-brand-project .mini-work-card-real:focus-visible .mini-work-image {
  transform: scale(1.001);
}

#c4d-render.has-real-work .product-work-grid-c4d-render {
  display: block;
  columns: 3;
  column-gap: 18px;
}

#c4d-render.has-real-work .mini-work-card-real {
  break-inside: avoid;
  margin-bottom: 18px;
}

#c4d-render.has-real-work .mini-work-card-real.is-last-real {
  grid-column: auto;
  width: 100%;
}

@media (max-width: 980px) {
  #c4d-render.has-real-work .product-work-grid-c4d-render {
    columns: 2;
  }
}

@media (max-width: 640px) {
  #c4d-render.has-real-work .product-work-grid-c4d-render {
    columns: 1;
  }
}

html.dark .category-strip-section.has-real-work .product-work-group-title {
  color: rgba(226, 232, 240, 0.68);
}

html.dark .category-strip-section.has-real-work .product-work-group-title::after {
  background: rgba(203, 213, 225, 0.14);
}

html.dark .category-strip-section.has-real-work .mini-work-card-real {
  border-color: rgba(203, 213, 225, 0.2);
  background: rgba(8, 13, 22, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 36px rgba(0, 0, 0, 0.24);
}

html.dark .category-strip-section.has-real-work .category-more-panel.is-open .mini-work-card-real:hover,
html.dark .category-strip-section.has-real-work .category-more-panel.is-open .mini-work-card-real:focus-visible {
  border-color: rgba(226, 232, 240, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 42px rgba(0, 0, 0, 0.3);
}

body.work-lightbox-open {
  overflow: hidden;
}

.work-lightbox[hidden] {
  display: none;
}

.work-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 38px 76px 28px;
  background: rgba(5, 8, 13, 0.94);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  opacity: 0;
  transition: opacity 260ms ease;
}

.work-lightbox.is-open {
  opacity: 1;
}

.work-lightbox-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  width: min(100%, 1280px);
  max-height: calc(100vh - 66px);
  margin: 0;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.work-lightbox.is-open .work-lightbox-figure {
  opacity: 1;
  transform: scale(1);
}

.work-lightbox-image {
  display: block;
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.work-lightbox.is-long-page {
  display: block;
  overflow-y: auto;
  padding: 0 76px 82px;
  scrollbar-gutter: stable;
}

.work-lightbox.is-long-page[hidden] {
  display: none;
}

.work-lightbox.is-long-page .work-lightbox-figure {
  display: block;
  width: min(50vw, 420px);
  max-height: none;
  margin: 0 auto;
  transform: none;
  transition: opacity 280ms ease;
}

.work-lightbox.is-long-page .work-lightbox-image {
  display: block;
  width: 100%;
  max-width: 420px;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

.work-lightbox.is-long-page .work-lightbox-close,
.work-lightbox.is-long-page .work-lightbox-nav {
  position: fixed;
}

.work-lightbox.is-long-page .work-lightbox-meta {
  position: sticky;
  top: 16px;
  bottom: auto;
  z-index: 3;
  width: fit-content;
  min-width: 0;
  max-width: min(560px, calc(100vw - 160px));
  min-height: 0;
  margin: 16px auto 17px;
  gap: 10px;
  padding: 7px 12px;
  border: 0;
  border-radius: 5px;
  background: rgba(7, 10, 16, 0.56);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  transform: none;
}

.work-lightbox.is-long-page .work-lightbox-counter {
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.work-lightbox.is-long-page .work-lightbox-title {
  overflow: hidden;
  max-width: 420px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-lightbox-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 34px;
  padding-top: 14px;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.work-lightbox-counter {
  color: rgba(203, 213, 225, 0.62);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.work-lightbox-title {
  font-weight: 650;
}

.work-lightbox-close,
.work-lightbox-nav {
  appearance: none;
  position: absolute;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.work-lightbox-close:hover,
.work-lightbox-close:focus-visible,
.work-lightbox-nav:hover,
.work-lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  transform: scale(1.05);
}

.work-lightbox-close {
  top: 18px;
  right: 20px;
  z-index: 2;
  font-size: 1.5rem;
  line-height: 1;
}

.work-lightbox-nav {
  top: 50%;
  z-index: 2;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.work-lightbox-nav:hover,
.work-lightbox-nav:focus-visible {
  transform: translateY(-50%) scale(1.05);
}

.work-lightbox-prev {
  left: 18px;
}

.work-lightbox-next {
  right: 18px;
}

@media (max-width: 860px) {
  .category-strip-section.has-real-work .product-work-group + .product-work-group {
    margin-top: 32px;
  }

  .category-strip-section.has-real-work .mini-work-card-real {
    overflow: visible;
    background: transparent;
  }

  .category-strip-section.has-real-work .mini-work-card-real .mini-work-visual {
    overflow: hidden;
    border-radius: 7px;
  }

  .category-strip-section.has-real-work .mini-work-card-real .mini-work-visual::after {
    display: none;
  }

  .category-strip-section.has-real-work .real-work-caption {
    position: static;
    display: flex;
    padding: 11px 2px 2px;
    color: #263244;
    opacity: 1;
    text-shadow: none;
    transform: none;
  }

  .category-strip-section.has-real-work .real-work-index {
    color: rgba(71, 85, 105, 0.58);
  }

  html.dark .category-strip-section.has-real-work .real-work-caption {
    color: #f3f6fa;
  }

  html.dark .category-strip-section.has-real-work .real-work-index {
    color: rgba(203, 213, 225, 0.6);
  }

  #detail-page.has-real-work .mini-work-visual > .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:hover .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:focus-visible .detail-page-open-cue {
    top: auto;
    right: 14px;
    bottom: 14px;
    left: auto;
    min-height: 38px;
    padding-inline: 14px;
    opacity: 1;
    transform: none;
  }

  .work-lightbox {
    padding: 56px 48px 24px;
  }

  .work-lightbox-image {
    max-height: calc(100vh - 150px);
  }
}

@media (max-width: 700px) {
  .category-strip-section.has-real-work .product-work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .category-strip-section.has-real-work .mini-work-card-real.is-last-real {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .category-strip-section.has-real-work .category-more-panel {
    padding-inline: 12px;
  }

  .category-strip-section.has-real-work .product-work-group-title {
    margin-bottom: 12px;
    font-size: 0.68rem;
  }

  .category-strip-section.has-real-work .real-work-title {
    font-size: 0.82rem;
  }

  #detail-page.has-real-work .mini-work-visual > .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:hover .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:focus-visible .detail-page-open-cue {
    right: 10px;
    bottom: 10px;
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  .work-lightbox {
    padding: 54px 16px 22px;
  }

  .work-lightbox-close,
  .work-lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .work-lightbox-close {
    top: 10px;
    right: 10px;
  }

  .work-lightbox-prev {
    left: 8px;
  }

  .work-lightbox-next {
    right: 8px;
  }

  .work-lightbox-image {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 154px);
  }

  .work-lightbox-meta {
    display: grid;
    gap: 4px;
    padding-inline: 40px;
    font-size: 0.74rem;
  }

  .work-lightbox.is-long-page {
    padding: 0 12px 76px;
  }

  .work-lightbox.is-long-page .work-lightbox-image {
    max-width: 100%;
  }

  .work-lightbox.is-long-page .work-lightbox-meta {
    top: 10px;
    bottom: auto;
    display: flex;
    width: calc(100vw - 88px);
    min-width: 0;
    margin-top: 10px;
    margin-bottom: 13px;
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-strip-section.has-real-work .mini-work-image,
  .category-strip-section.has-real-work .real-work-caption,
  .detail-page-open-cue,
  .work-lightbox,
  .work-lightbox-figure,
  .work-lightbox-close,
  .work-lightbox-nav {
    transition: none !important;
  }

  .category-strip-section.has-real-work .mini-work-card-real:hover .mini-work-image,
  .category-strip-section.has-real-work .mini-work-card-real:focus-visible .mini-work-image,
  .work-lightbox.is-open .work-lightbox-figure {
    filter: none;
    transform: none;
  }

  #detail-page.has-real-work .mini-work-visual > .detail-page-open-cue {
    transition: none;
  }

}

@media (min-width: 861px) and (prefers-reduced-motion: reduce) {
  #detail-page.has-real-work .mini-work-visual > .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:hover .detail-page-open-cue,
  #detail-page.has-real-work .is-long-page-card:focus-visible .detail-page-open-cue {
    transform: none;
  }
}

/* Reference-style centered identity hero */
.hero {
  width: 100vw;
  min-height: 100svh;
  margin-left: calc(50% - 50vw);
  place-items: start center;
  padding: clamp(96px, 11vh, 122px) 24px 104px;
  isolation: isolate;
  background: #f5f6f8;
  color: #111827;
}

.hero::before,
.hero::after {
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero::before {
  z-index: 0;
  background:
    linear-gradient(to right, rgba(17, 24, 39, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% -8%, rgba(160, 238, 102, 0.62), transparent 28%),
    radial-gradient(ellipse at 16% 50%, rgba(242, 141, 208, 0.24), transparent 36%),
    radial-gradient(ellipse at 13% 100%, rgba(240, 151, 88, 0.32), transparent 35%),
    radial-gradient(ellipse at 45% 8%, rgba(219, 249, 208, 0.52), transparent 28%),
    linear-gradient(90deg, rgba(245, 246, 248, 0.72), rgba(245, 246, 248, 0.18) 34%, rgba(245, 246, 248, 0.82) 58%);
  filter: blur(0.4px);
  opacity: 0.96;
}

.hero-atmosphere {
  z-index: 1;
  mix-blend-mode: normal;
}

.hero-atmosphere::before,
.hero-atmosphere::after {
  animation: none;
}

.hero-atmosphere::before {
  background:
    radial-gradient(circle at 36% 10%, rgba(205, 255, 136, 0.42), transparent 16rem),
    radial-gradient(circle at 19% 74%, rgba(244, 167, 102, 0.18), transparent 18rem),
    radial-gradient(circle at 20% 38%, rgba(250, 160, 213, 0.16), transparent 20rem);
}

.hero-atmosphere::after,
.beam,
.grain {
  display: none;
}

.hero-copy {
  width: min(100%, 620px);
  max-width: 620px;
  text-shadow: none;
}

.hero-label {
  margin: 0 0 4px;
  background: linear-gradient(90deg, #8f54ff 8%, #d041ca 50%, #f3488f 88%);
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero .identity-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
  margin: 8px 0 34px;
  font-family: var(--sans);
  font-size: clamp(2.1rem, 4.3vw, 3.5rem);
  font-weight: 850;
  line-height: 1.06;
  color: #111827;
}

.hero .identity-title span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-style: normal;
}

.hero .identity-title span:first-child {
  color: inherit;
  font-size: inherit;
}

.identity-separator {
  color: rgba(85, 95, 112, 0.38) !important;
  font-weight: 400;
}

.hero-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 58px);
  row-gap: 16px;
  width: min(100%, 460px);
  margin: 0 auto 34px;
  color: #4b5563;
  font-size: 0.94rem;
  font-weight: 650;
  text-align: left;
}

.hero-contact-grid a,
.hero-contact-grid > span,
.hero-contact-copy {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  white-space: nowrap;
}

.hero-contact-copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.hero-contact-grid a,
.hero-contact-copy {
  transition: color 180ms ease, transform 180ms ease;
}

.hero-contact-grid a:hover,
.hero-contact-copy:hover {
  color: #2563eb;
  transform: translateY(-2px);
}

.hero-contact-copy:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 4px;
  border-radius: 999px;
}

.contact-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.hero-kicker {
  max-width: 560px;
  margin: 0 auto;
  color: #667085;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-style: italic;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 34px;
}

.hero .button-primary {
  min-height: 44px;
  padding: 0 26px;
  border: 0;
  background: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html:not(.dark) .hero .button-primary {
  background: #2563eb;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
  color: #ffffff;
}

.hero .button-primary::after {
  content: "↓";
  margin-left: 10px;
  font-size: 1rem;
  line-height: 1;
}

.hero .button-primary:hover {
  background: #1d4ed8;
  transform: translateY(-3px) scale(1.015);
}

html.dark .hero {
  background: #090b10;
  color: #f8fbff;
}

html.dark .hero::before {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

html.dark .hero::after {
  background:
    radial-gradient(ellipse at 30% -8%, rgba(160, 238, 102, 0.36), transparent 28%),
    radial-gradient(ellipse at 16% 50%, rgba(242, 141, 208, 0.18), transparent 36%),
    radial-gradient(ellipse at 13% 100%, rgba(240, 151, 88, 0.2), transparent 35%),
    linear-gradient(90deg, rgba(9, 11, 16, 0.44), rgba(9, 11, 16, 0.04) 34%, rgba(9, 11, 16, 0.76) 58%);
  opacity: 0.9;
}

html.dark .hero .identity-title {
  color: #f8fbff;
}

html.dark .hero-contact-grid,
html.dark .contact-icon {
  color: rgba(248, 251, 255, 0.72);
}

html.dark .hero-role {
  color: rgba(248, 251, 255, 0.76);
}

html.dark .hero-kicker {
  color: rgba(248, 251, 255, 0.68);
}

html:not(.dark) .capability-marquee {
  margin-top: 0;
}

@media (max-width: 860px) {
  .hero {
    padding: 112px 20px 78px;
  }

  .hero-contact-grid {
    width: min(100%, 430px);
    column-gap: 22px;
    font-size: 0.86rem;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 94svh;
    padding: 98px 18px 62px;
  }

  .hero-label {
    font-size: clamp(2.55rem, 15vw, 3.35rem);
  }

  .hero .identity-title {
    gap: 0.14em;
    margin-bottom: 26px;
    font-size: clamp(1.82rem, 10vw, 2.6rem);
  }

  .identity-separator {
    width: 100%;
    margin: -4px 0;
    text-align: center;
  }

  .hero-contact-grid {
    grid-template-columns: 1fr;
    width: min(100%, 310px);
    row-gap: 12px;
    margin-bottom: 26px;
    text-align: left;
  }

  .hero-contact-grid a,
  .hero-contact-grid > span,
  .hero-contact-copy {
    white-space: normal;
  }

  .hero-kicker {
    max-width: 310px;
    font-size: 0.9rem;
  }

  .hero-actions {
    width: min(100%, 250px);
    margin-top: 28px;
  }
}

/* Full-site continuity with the light-grid hero reference */
html:not(.dark) body {
  background: #f5f6f8;
  color: #111827;
}

.theme-toggle {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

html:not(.dark) .background-grid-stars {
  opacity: 1;
  inset: 0 -4vw;
  width: 108vw;
}

html:not(.dark) .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(17, 24, 39, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 24, 39, 0.026) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 31px 23px;
  mask-image: linear-gradient(90deg, transparent 0, #000 7vw, #000 calc(100% - 7vw), transparent 100%);
}

.top-media-bg,
.bottom-image-bg {
  left: -4vw;
  width: 108vw;
}

.top-media-bg {
  height: 130vh;
  background:
    radial-gradient(ellipse at 32% 0%, rgba(171, 239, 105, 0.62), transparent 28%),
    radial-gradient(ellipse at 12% 46%, rgba(244, 142, 210, 0.22), transparent 34%),
    radial-gradient(ellipse at 14% 100%, rgba(241, 154, 88, 0.32), transparent 36%),
    radial-gradient(ellipse at 58% 18%, rgba(223, 250, 213, 0.5), transparent 30%),
    linear-gradient(90deg, rgba(245, 246, 248, 0.68), rgba(245, 246, 248, 0.08) 34%, rgba(245, 246, 248, 0.82) 64%);
  mask-image: none;
  opacity: 1;
  animation: siteLightDrift 22s ease-in-out infinite alternate;
}

.bottom-image-bg {
  height: 130vh;
  background:
    radial-gradient(ellipse at 16% 78%, rgba(240, 151, 88, 0.24), transparent 34%),
    radial-gradient(ellipse at 74% 56%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(ellipse at 48% 100%, rgba(244, 142, 210, 0.12), transparent 30%);
  mask-image: none;
  opacity: 1;
  animation: siteLightDriftReverse 28s ease-in-out infinite alternate;
}

html:not(.dark) .light-motion-layer {
  opacity: 0.42;
  mix-blend-mode: multiply;
}

html:not(.dark) .light-motion-layer::before {
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.46), transparent 22%),
    radial-gradient(circle at 55% 48%, rgba(170, 238, 105, 0.34), transparent 34%),
    radial-gradient(circle at 62% 62%, rgba(244, 87, 171, 0.2), transparent 45%);
}

html:not(.dark) .light-motion-layer::after {
  background:
    radial-gradient(circle at 42% 42%, rgba(37, 99, 235, 0.12), transparent 26%),
    radial-gradient(circle at 52% 56%, rgba(244, 87, 171, 0.16), transparent 38%),
    radial-gradient(circle at 62% 42%, rgba(171, 239, 105, 0.24), transparent 48%);
}

html:not(.dark) .light-ray {
  opacity: calc(var(--o) * 0.26);
  mix-blend-mode: multiply;
}

html:not(.dark) .aurora-container {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.hero {
  background: transparent;
  overflow: visible;
}

.hero::before {
  opacity: 0;
}

.hero::after {
  inset: -10vh 0 -34vh 0;
  background:
    radial-gradient(ellipse at 30% -8%, rgba(160, 238, 102, 0.62), transparent 28%),
    radial-gradient(ellipse at 16% 50%, rgba(242, 141, 208, 0.24), transparent 36%),
    radial-gradient(ellipse at 13% 100%, rgba(240, 151, 88, 0.32), transparent 35%),
    radial-gradient(ellipse at 45% 8%, rgba(219, 249, 208, 0.52), transparent 28%),
    linear-gradient(90deg, rgba(245, 246, 248, 0.66), rgba(245, 246, 248, 0.12) 34%, rgba(245, 246, 248, 0.76) 58%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 74%, transparent 100%);
  animation: heroLightBreath 18s ease-in-out infinite alternate;
}

.hero-atmosphere {
  inset: -8vh 50% -28vh 50%;
  height: auto;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
}

.hero-label {
  background: linear-gradient(90deg, #9955f6 6%, #c83dd2 48%, #f04f99 88%);
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero .identity-title,
.hero .identity-title span,
.hero .identity-title span:first-child {
  color: #111827 !important;
  font-family: var(--sans);
  font-weight: 780;
}

.identity-separator {
  color: rgba(85, 95, 112, 0.36) !important;
  font-weight: 500;
}

.hero-role {
  margin: -18px 0 30px;
  color: #4b5563;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 760;
  letter-spacing: 0.02em;
}

.hero-contact-grid {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  width: min(100%, 680px);
  column-gap: clamp(24px, 4vw, 46px);
  row-gap: 14px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  color: #4b5563;
}

.contact-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability-marquee {
  display: none;
}

.marquee-track span {
  font-weight: 750;
}

.category-page {
  position: relative;
  z-index: 3;
  margin-top: clamp(28px, 4vw, 58px);
}

.capability-marquee + .category-page {
  margin-top: clamp(10px, 2vw, 28px);
}

.works + .about-strip,
.about-strip + .category-page,
.works + .category-page {
  margin-top: clamp(28px, 4vw, 58px);
}

.project-case {
  grid-template-columns: minmax(250px, 0.86fr) minmax(0, 1.14fr);
  min-height: clamp(420px, 54vh, 560px);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-left: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.42)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 24px 70px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

html:not(.dark) .project-case:hover {
  border-left: 0;
}

.project-case:hover {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 30px 90px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}

.project-hero {
  min-height: 260px;
  filter: none;
  background-size: cover;
}

.project-hero::before {
  inset: 15% 18%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.42)),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.05) 0 1px, transparent 1px 22px);
  box-shadow:
    0 26px 60px rgba(31, 41, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 1;
  transform: rotate(-4deg);
}

.project-hero::after {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.42), transparent 11rem),
    linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.5), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
}

.image-silver {
  --plate-top: rgba(255, 255, 255, 0.9);
  --plate-mid: rgba(220, 227, 236, 0.72);
  --plate-glow: rgba(37, 99, 235, 0.08);
  background:
    radial-gradient(circle at 35% 20%, rgba(160, 238, 102, 0.36), transparent 9rem),
    radial-gradient(circle at 64% 72%, rgba(37, 99, 235, 0.12), transparent 10rem),
    linear-gradient(135deg, #f9fafb, #dbe4ef 48%, #f6f7f9);
}

.image-amber {
  --plate-top: rgba(255, 255, 255, 0.9);
  --plate-mid: rgba(246, 219, 178, 0.74);
  --plate-glow: rgba(240, 151, 88, 0.16);
  background:
    radial-gradient(circle at 26% 22%, rgba(240, 151, 88, 0.32), transparent 9rem),
    radial-gradient(circle at 70% 28%, rgba(242, 141, 208, 0.16), transparent 10rem),
    linear-gradient(135deg, #fffaf2, #f1d8b4 48%, #f8f4ee);
}

.image-blue {
  --plate-top: rgba(255, 255, 255, 0.9);
  --plate-mid: rgba(210, 224, 252, 0.78);
  --plate-glow: rgba(37, 99, 235, 0.16);
  background:
    radial-gradient(circle at 32% 24%, rgba(37, 99, 235, 0.18), transparent 10rem),
    radial-gradient(circle at 70% 68%, rgba(160, 238, 102, 0.24), transparent 9rem),
    linear-gradient(135deg, #f6f9ff, #d8e5ff 50%, #f8fbff);
}

.image-red {
  --plate-top: rgba(255, 255, 255, 0.9);
  --plate-mid: rgba(249, 199, 222, 0.76);
  --plate-glow: rgba(242, 141, 208, 0.16);
  background:
    radial-gradient(circle at 31% 21%, rgba(242, 141, 208, 0.34), transparent 10rem),
    radial-gradient(circle at 70% 66%, rgba(240, 151, 88, 0.2), transparent 9rem),
    linear-gradient(135deg, #fff7fb, #f5cce2 48%, #f8f4f7);
}

.project-story {
  padding: clamp(28px, 4.4vw, 52px);
}

.case-number {
  color: #64748b;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.project-story h2,
.contact h2,
.section-heading h2,
.about-strip h2 {
  color: #111827;
  font-family: var(--sans);
  font-weight: 850;
  letter-spacing: 0;
}

.project-story h2 {
  margin: 16px 0;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: 1.02;
}

.contact p,
.project-story p {
  color: #667085;
}

.project-story > p {
  max-width: 610px;
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
}

.story-grid {
  gap: 12px;
}

.story-grid div {
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.story-grid div:hover {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

.story-grid span {
  color: #2563eb;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.story-grid p {
  color: #667085;
}

.contact {
  margin-top: clamp(52px, 8vw, 110px);
  margin-bottom: clamp(18px, 2.5vw, 32px);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 8%, rgba(160, 238, 102, 0.24), transparent 14rem),
    radial-gradient(circle at 86% 88%, rgba(242, 141, 208, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 28px 90px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(18px);
}

.contact::before {
  content: "Portfolio";
  color: rgba(153, 85, 246, 0.08);
  font-family: var(--sans);
  font-weight: 850;
}

.contact::after {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 60%);
}

.eyebrow,
.contact .eyebrow {
  color: #2563eb;
  font-family: var(--sans);
  font-weight: 850;
}

.contact-actions a,
.contact-actions span {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.58);
  color: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-actions a:hover,
.contact-actions span:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: #2563eb;
  color: #ffffff;
}

html.dark body {
  background: #090b10;
}

html.dark .top-media-bg,
html.dark .bottom-image-bg {
  opacity: 0.62;
}

html.dark .hero::after {
  animation: heroLightBreath 18s ease-in-out infinite alternate;
}

html.dark .project-case,
html.dark .story-grid div,
html.dark .contact {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(9, 11, 16, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 26px 80px rgba(0, 0, 0, 0.28);
}

html.dark .project-story h2,
html.dark .contact h2,
html.dark .section-heading h2,
html.dark .about-strip h2,
html.dark .hero .identity-title,
html.dark .hero .identity-title span,
html.dark .hero .identity-title span:first-child {
  color: #f8fbff !important;
}

html.dark .contact p,
html.dark .project-story p,
html.dark .story-grid p {
  color: rgba(248, 251, 255, 0.68);
}

html.dark .contact-actions a,
html.dark .contact-actions span {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fbff;
}

@keyframes siteLightDrift {
  0% {
    transform: translate3d(-2vw, -2vh, 0) scale(1);
  }
  50% {
    transform: translate3d(3vw, 2vh, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-1vw, 4vh, 0) scale(1.02);
  }
}

@keyframes siteLightDriftReverse {
  0% {
    transform: translate3d(3vw, 3vh, 0) scale(1.02);
  }
  100% {
    transform: translate3d(-3vw, -2vh, 0) scale(1.06);
  }
}

@keyframes heroLightBreath {
  0% {
    opacity: 0.82;
    transform: translate3d(-1.5vw, -1vh, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(1.5vw, 1.5vh, 0) scale(1.03);
  }
}

@media (max-width: 860px) {
  .hero-contact-grid {
    grid-template-columns: 1fr;
    width: min(100%, 330px);
    justify-content: stretch;
  }

  .hero-role {
    margin-top: -14px;
    margin-bottom: 24px;
  }

  .capability-marquee {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .project-case,
  .project-case:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-case:nth-child(even) .project-hero,
  .project-case:nth-child(even) .project-story {
    order: initial;
  }

  .project-story h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .category-more-panel {
    padding: 0 20px 28px;
  }

  .mini-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero .identity-title {
    gap: 0.16em;
    font-size: clamp(1.72rem, 8.4vw, 2.25rem);
  }

  .identity-separator {
    width: auto;
    margin: 0;
  }

  .hero-contact-grid {
    grid-template-columns: 1fr;
    width: min(100%, 310px);
  }

  .hero-role {
    margin: -12px 0 22px;
    font-size: 0.94rem;
  }

  .capability-marquee {
    margin-top: 0;
  }

  .category-page,
  .capability-marquee + .category-page,
  .works + .about-strip,
  .about-strip + .category-page,
  .works + .category-page,
  .category-page + .category-page {
    margin-top: 22px;
  }

  .project-case {
    border-radius: 8px;
  }

  .project-hero {
    min-height: 210px;
  }

  .project-story h2 {
    font-size: clamp(1.72rem, 9vw, 2.45rem);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .category-more-actions {
    margin-top: 18px;
  }

  .category-more-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .category-more-panel {
    padding: 0 14px 22px;
  }

  .mini-work-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mini-work-card {
    min-height: 210px;
  }

  .mini-work-visual {
    height: 136px;
  }

  .contact {
    margin-top: 34px;
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-more-toggle,
  .category-more-icon,
  .category-more-panel,
  .mini-work-card {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Use the global site background in the hero instead of a separate hero canvas. */
.hero::before,
.hero::after,
.hero-atmosphere {
  display: none;
}

.hero {
  background: transparent;
}

html.dark .hero {
  background: transparent;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  border-radius: 999px;
  line-height: 1;
}

@media (max-width: 520px) {
  .theme-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}

.theme-icon {
  display: block;
  width: 18px;
  height: 18px;
  color: #475569;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-0.5px);
  transition: color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.theme-toggle:hover .theme-icon {
  transform: translateY(-0.5px) scale(1.04);
}

.theme-toggle.is-lit .theme-icon {
  color: #f59e0b;
  filter: drop-shadow(0 0 7px rgba(245, 158, 11, 0.46));
}

html.dark .theme-icon {
  color: rgba(248, 251, 255, 0.78);
}

.copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: min(420px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.88);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(12px);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Low-fog panels: keep the background visible while preserving text contrast. */
html:not(.dark) .project-case,
html:not(.dark) .contact {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.22), transparent 18rem),
    radial-gradient(circle at 86% 88%, rgba(255, 255, 255, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 22px 64px rgba(31, 41, 55, 0.07);
  backdrop-filter: blur(4px) saturate(112%);
}

html:not(.dark) .project-case:hover {
  border-color: rgba(255, 255, 255, 0.82);
  background:
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 86% 88%, rgba(255, 255, 255, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 26px 76px rgba(37, 99, 235, 0.08);
}

html:not(.dark) .story-grid div {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

html:not(.dark) .story-grid div:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.3);
}

html.dark .project-case,
html.dark .contact {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.02)),
    rgba(9, 11, 16, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 72px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(6px) saturate(112%);
}

html.dark .story-grid div {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .story-grid div:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

/* Background clarity: keep glass panels, remove the milky veil from the large backdrop. */
html:not(.dark) .top-media-bg {
  background:
    radial-gradient(ellipse at 32% 0%, rgba(171, 239, 105, 0.5), transparent 28%),
    radial-gradient(ellipse at 12% 46%, rgba(244, 142, 210, 0.18), transparent 34%),
    radial-gradient(ellipse at 14% 100%, rgba(241, 154, 88, 0.26), transparent 36%),
    radial-gradient(ellipse at 58% 18%, rgba(223, 250, 213, 0.3), transparent 30%);
  opacity: 0.9;
}

html:not(.dark) .bottom-image-bg {
  background:
    radial-gradient(ellipse at 16% 78%, rgba(240, 151, 88, 0.2), transparent 34%),
    radial-gradient(ellipse at 74% 56%, rgba(37, 99, 235, 0.07), transparent 32%),
    radial-gradient(ellipse at 48% 100%, rgba(244, 142, 210, 0.1), transparent 30%);
  opacity: 0.86;
}

html:not(.dark) .hero::after {
  display: none;
}

html.dark .top-media-bg,
html.dark .bottom-image-bg {
  opacity: 0.5;
}

html.dark .hero::after {
  display: none;
}

/* Final hero alignment: center the intro copy at a standard first-screen position. */
.hero {
  min-height: 100svh;
  place-items: center;
  padding: clamp(88px, 10vh, 112px) 24px clamp(64px, 8vh, 92px);
}

.hero-copy {
  margin-top: clamp(-72px, -7vh, -38px);
  transform: translateY(clamp(-72px, -7vh, -38px));
}

@media (max-width: 860px) {
  .hero {
    min-height: 96svh;
    padding: 88px 20px 64px;
  }

  .hero-copy {
    margin-top: -28px;
    transform: translateY(-28px);
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 94svh;
    padding: 82px 18px 56px;
  }

  .hero-copy {
    margin-top: -18px;
    transform: translateY(-18px);
  }

  .copy-toast {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none !important;
  }
}

/* Dark luminous background: clear black field, subtle grid, restrained color volume. */
html.dark body {
  background:
    radial-gradient(ellipse at 62% 28%, rgba(33, 44, 54, 0.28), transparent 36%),
    linear-gradient(180deg, #010305 0%, #030407 46%, #010204 100%);
}

html.dark .background-grid-stars {
  opacity: 1;
}

html.dark .grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 58px 58px;
  background-position: center top;
  mask-image: linear-gradient(90deg, transparent 0, #000 8vw, #000 calc(100% - 6vw), transparent 100%);
  opacity: 0.48;
}

html.dark .star {
  display: block;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
  opacity: 0.72;
}

html.dark .star:nth-of-type(n + 6) {
  opacity: 0.32;
}

html.dark .top-media-bg,
html.dark .bottom-image-bg {
  left: -2vw;
  width: 104vw;
  opacity: 1;
  mix-blend-mode: screen;
  filter: saturate(112%);
}

html.dark .top-media-bg {
  height: 135vh;
  background:
    radial-gradient(ellipse at 12% -8%, rgba(195, 0, 0, 0.32), transparent 24%),
    radial-gradient(ellipse at 72% 9%, rgba(206, 27, 91, 0.28), transparent 25%),
    radial-gradient(ellipse at 92% 10%, rgba(0, 88, 156, 0.18), transparent 28%),
    radial-gradient(ellipse at 61% 25%, rgba(214, 190, 122, 0.1), transparent 24%),
    radial-gradient(ellipse at 80% 45%, rgba(82, 39, 166, 0.18), transparent 35%);
  animation: siteLightDrift 30s ease-in-out infinite alternate;
}

html.dark .bottom-image-bg {
  height: 128vh;
  background:
    radial-gradient(ellipse at 8% 78%, rgba(144, 0, 98, 0.22), transparent 31%),
    radial-gradient(ellipse at 64% 100%, rgba(0, 155, 214, 0.28), transparent 28%),
    radial-gradient(ellipse at 67% 72%, rgba(138, 23, 191, 0.26), transparent 34%),
    radial-gradient(ellipse at 82% 62%, rgba(29, 50, 150, 0.16), transparent 34%);
  animation: siteLightDriftReverse 34s ease-in-out infinite alternate;
}

html.dark .light-motion-layer {
  opacity: 0.7;
  mix-blend-mode: screen;
}

html.dark .light-motion-layer::before,
html.dark .light-motion-layer::after {
  filter: blur(86px);
  opacity: 0.42;
}

html.dark .light-motion-layer::before {
  top: -28%;
  left: -18%;
  background:
    radial-gradient(circle at 26% 28%, rgba(210, 0, 0, 0.42), transparent 22%),
    radial-gradient(circle at 50% 60%, rgba(146, 0, 122, 0.24), transparent 42%),
    radial-gradient(circle at 68% 48%, rgba(0, 120, 160, 0.14), transparent 45%);
  animation-duration: 32s;
}

html.dark .light-motion-layer::after {
  right: -18%;
  bottom: -28%;
  background:
    radial-gradient(circle at 38% 82%, rgba(0, 174, 225, 0.34), transparent 26%),
    radial-gradient(circle at 54% 52%, rgba(193, 20, 136, 0.28), transparent 42%),
    radial-gradient(circle at 72% 28%, rgba(42, 105, 190, 0.22), transparent 48%);
  animation-duration: 38s;
}

html.dark .light-ray {
  opacity: calc(var(--o) * 0.2);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.012) 18%,
    rgba(0, 174, 225, 0.12) 44%,
    rgba(210, 0, 126, 0.1) 62%,
    transparent 100%
  );
  filter: blur(24px);
  mix-blend-mode: screen;
}

html.dark .aurora-container {
  opacity: 0.12;
  mix-blend-mode: screen;
}

html.dark .aurora-beam {
  opacity: 0.62;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 178, 226, 0.26) 20%,
    rgba(185, 0, 120, 0.28) 43%,
    rgba(64, 82, 180, 0.22) 66%,
    rgba(0, 0, 0, 0) 100%
  );
}

html.dark .project-case,
html.dark .contact {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(4, 6, 10, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.105),
    0 24px 76px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(7px) saturate(118%);
}

html.dark .story-grid div {
  border-color: rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075);
}

html.dark .story-grid div:hover {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.062);
}

/* Hero headline follow-light: subtle glass reflection guided by pointer position. */
.hero .identity-title {
  --title-x: 50%;
  --title-y: 46%;
  --title-glow-core: 0.38;
  --title-glow: 0.2;
  --title-glow-soft: 0.15;
  --title-glow-muted: 0.1;
  --title-halo: 0;
  position: relative;
  isolation: isolate;
  transform-origin: center;
  transition: filter 220ms ease, text-shadow 220ms ease, transform 220ms ease;
  will-change: filter, transform;
}

.hero .identity-title::before {
  position: absolute;
  inset: -0.24em -0.3em -0.18em;
  z-index: -1;
  content: "";
  border-radius: 999px;
  background:
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(255, 255, 255, 0.42), transparent 13%),
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(116, 169, 255, 0.24), transparent 28%),
    radial-gradient(circle at calc(var(--title-x) + 10%) calc(var(--title-y) + 8%), rgba(236, 72, 153, 0.18), transparent 42%);
  opacity: var(--title-halo);
  filter: blur(20px);
  transform: scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.hero .identity-title span:not(.identity-separator) {
  background-image:
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(255, 255, 255, var(--title-glow-core)) 0%, rgba(130, 190, 255, var(--title-glow)) 12%, rgba(202, 92, 255, var(--title-glow-soft)) 24%, rgba(244, 86, 160, var(--title-glow-muted)) 35%, transparent 52%),
    linear-gradient(90deg, #111827, #111827);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  transition: filter 220ms ease, text-shadow 220ms ease;
}

.hero .identity-title:hover,
.hero .identity-title.is-title-active {
  --title-glow-core: 0.6;
  --title-glow: 0.42;
  --title-glow-soft: 0.32;
  --title-glow-muted: 0.24;
  --title-halo: 0.85;
  filter: brightness(1.03);
  text-shadow: 0 18px 42px rgba(37, 99, 235, 0.08);
  transform: scale(1.006);
}

.hero .identity-title:hover span:not(.identity-separator),
.hero .identity-title.is-title-active span:not(.identity-separator) {
  filter: drop-shadow(0 10px 22px rgba(99, 102, 241, 0.12));
}

html.dark .hero .identity-title {
  --title-glow-core: 0.44;
  --title-glow: 0.24;
  --title-glow-soft: 0.2;
  --title-glow-muted: 0.16;
  --title-halo: 0.06;
}

html.dark .hero .identity-title::before {
  background:
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(255, 255, 255, 0.44), transparent 12%),
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(0, 174, 225, 0.28), transparent 28%),
    radial-gradient(circle at calc(var(--title-x) + 12%) calc(var(--title-y) + 8%), rgba(210, 0, 126, 0.22), transparent 44%);
}

html.dark .hero .identity-title span:not(.identity-separator) {
  background-image:
    radial-gradient(circle at var(--title-x) var(--title-y), rgba(255, 255, 255, var(--title-glow-core)) 0%, rgba(150, 219, 255, var(--title-glow)) 13%, rgba(183, 126, 255, var(--title-glow-soft)) 26%, rgba(255, 94, 174, var(--title-glow-muted)) 38%, transparent 56%),
    linear-gradient(90deg, #f8fbff, #f8fbff);
}

html.dark .hero .identity-title:hover,
html.dark .hero .identity-title.is-title-active {
  --title-glow-core: 0.76;
  --title-glow: 0.56;
  --title-glow-soft: 0.46;
  --title-glow-muted: 0.36;
  --title-halo: 0.9;
  filter: brightness(1.08);
  text-shadow:
    0 0 24px rgba(0, 174, 225, 0.16),
    0 18px 48px rgba(210, 0, 126, 0.12);
}

html.dark .hero .identity-title:hover span:not(.identity-separator),
html.dark .hero .identity-title.is-title-active span:not(.identity-separator) {
  filter:
    drop-shadow(0 0 18px rgba(0, 174, 225, 0.12))
    drop-shadow(0 12px 30px rgba(210, 0, 126, 0.1));
}

.hero .identity-title .identity-separator {
  background: none;
  color: rgba(85, 95, 112, 0.38) !important;
  -webkit-text-fill-color: rgba(85, 95, 112, 0.38);
}

html.dark .hero .identity-title .identity-separator {
  color: rgba(248, 251, 255, 0.32) !important;
  -webkit-text-fill-color: rgba(248, 251, 255, 0.32);
}

@media (max-width: 860px), (pointer: coarse) {
  .hero .identity-title {
    --title-x: 50%;
    --title-y: 46%;
    --title-glow-core: 0.34;
    --title-glow: 0.18;
    --title-glow-soft: 0.14;
    --title-glow-muted: 0.09;
    --title-halo: 0;
  }

  .hero .identity-title:hover,
  .hero .identity-title.is-title-active {
    filter: none;
    transform: none;
    text-shadow: none;
  }

  .hero .identity-title::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .identity-title {
    --title-x: 50%;
    --title-y: 46%;
    transition: none !important;
    transform: none !important;
    will-change: auto;
  }

  .hero .identity-title::before,
  .hero .identity-title span:not(.identity-separator) {
    transition: none !important;
  }
}

/* Nav magnetic rail: active pill follows scroll state and pointer hover. */
.floating-nav {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(8, 9, 13, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.055),
    0 22px 70px rgba(0, 0, 0, 0.32);
}

.floating-nav::before {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent),
    radial-gradient(circle at 18% 0%, rgba(0, 174, 225, 0.16), transparent 32%),
    radial-gradient(circle at 82% 100%, rgba(210, 0, 126, 0.13), transparent 36%);
  opacity: 0.72;
  pointer-events: none;
}

.nav-links {
  --nav-indicator-x: 0px;
  --nav-indicator-w: 0px;
  position: relative;
  isolation: isolate;
  min-height: 38px;
  gap: clamp(6px, 1.4vw, 14px);
  padding: 0 10px;
  border-radius: 999px;
  transform: translateZ(0);
}

.nav-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 0;
  width: var(--nav-indicator-w);
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 30px rgba(0, 174, 225, 0.08),
    0 8px 22px rgba(210, 0, 126, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--nav-indicator-x), -50%, 0);
  backface-visibility: hidden;
  will-change: transform, width, opacity;
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    width 300ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease,
    border-color 180ms ease;
}

.nav-indicator.is-visible {
  opacity: 1;
}

.nav-links.is-magnet-hover .nav-indicator {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    0 12px 30px rgba(0, 174, 225, 0.1),
    0 8px 22px rgba(210, 0, 126, 0.08);
}

.nav-links a {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  transition:
    color 160ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    text-shadow 160ms ease;
  transform: translateZ(0);
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover {
  transform: translateY(-1px);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.nav-links a:active {
  transform: translateY(0) scale(0.985);
}

body[data-lang="en"] .nav-links {
  gap: clamp(4px, 1.1vw, 10px);
  padding-inline: 8px;
}

body[data-lang="en"] .nav-links a {
  padding-inline: 9px;
}

html:not(.dark) .floating-nav {
  border-color: rgba(17, 24, 39, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34),
    0 20px 58px rgba(17, 24, 39, 0.12);
}

html:not(.dark) .floating-nav::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.1), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(236, 72, 153, 0.1), transparent 36%);
  opacity: 0.9;
}

html:not(.dark) .nav-indicator {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.32)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 32px rgba(37, 99, 235, 0.08),
    0 8px 22px rgba(236, 72, 153, 0.06);
}

html:not(.dark) .nav-links.is-magnet-hover .nav-indicator {
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 12px 30px rgba(37, 99, 235, 0.1),
    0 8px 22px rgba(236, 72, 153, 0.07);
}

html:not(.dark) .nav-links a {
  color: rgba(17, 24, 39, 0.58);
}

html:not(.dark) .nav-links a:hover,
html:not(.dark) .nav-links a.is-active {
  color: #111827;
}

html:not(.dark) .nav-links a:hover {
  text-shadow: 0 0 18px rgba(37, 99, 235, 0.12);
}

@media (max-width: 860px) {
  .nav-links {
    min-height: 36px;
    gap: 8px;
    padding-inline: 6px;
  }

  .nav-links a {
    min-height: 30px;
    padding-inline: 9px;
  }

  .nav-indicator {
    height: 30px;
    transition-duration: 180ms;
    will-change: auto;
  }
}

@media (pointer: coarse) {
  .nav-links.is-magnet-hover .nav-indicator {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 12px 30px rgba(0, 174, 225, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-indicator,
  .nav-links a {
    transition: none !important;
  }
}

/* Nav crystal rail refinement: lighter glass, thinner active lens, unified controls. */
.floating-nav {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035) 46%, rgba(255, 255, 255, 0.075)),
    radial-gradient(circle at 18% 0%, rgba(0, 174, 225, 0.14), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(210, 0, 126, 0.1), transparent 38%),
    rgba(8, 10, 16, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 56px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}

.floating-nav::before {
  background:
    linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.34) 24%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.3) 76%, transparent 96%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%);
  opacity: 0.78;
}

.floating-nav::after {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 5px;
  height: 1px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), rgba(182, 229, 255, 0.5), transparent);
  opacity: 0.58;
  pointer-events: none;
}

.brand-mark,
.lang-toggle,
.theme-toggle {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.42), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.12);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.brand-mark:hover,
.lang-toggle:hover,
.theme-toggle:hover {
  border-color: rgba(202, 237, 255, 0.42);
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.58), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 18px rgba(116, 216, 255, 0.13),
    0 12px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-0.5px);
}

.nav-links {
  min-height: 36px;
}

.nav-indicator {
  height: 28px;
  border-color: rgba(211, 241, 255, 0.34);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.62), transparent 30%),
    radial-gradient(circle at 72% 78%, rgba(210, 0, 126, 0.18), transparent 42%),
    linear-gradient(115deg, rgba(202, 237, 255, 0.26), rgba(255, 255, 255, 0.07) 46%, rgba(182, 142, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 174, 225, 0.1),
    0 5px 18px rgba(210, 0, 126, 0.07);
}

.nav-links.is-magnet-hover .nav-indicator {
  border-color: rgba(225, 247, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 174, 225, 0.14),
    0 7px 20px rgba(210, 0, 126, 0.1);
}

.nav-links a {
  min-height: 30px;
  color: rgba(244, 248, 255, 0.58);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: rgba(255, 255, 255, 0.94);
}

.nav-links a:hover {
  text-shadow: 0 0 16px rgba(202, 237, 255, 0.2);
}

html:not(.dark) .floating-nav {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28) 48%, rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 34%),
    radial-gradient(circle at 82% 100%, rgba(236, 72, 153, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    0 18px 52px rgba(17, 24, 39, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.36);
}

html:not(.dark) .floating-nav::before {
  background:
    linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.82) 24%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0.74) 76%, transparent 96%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 52%);
  opacity: 0.82;
}

html:not(.dark) .nav-indicator {
  border-color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.86), transparent 32%),
    radial-gradient(circle at 72% 78%, rgba(236, 72, 153, 0.12), transparent 42%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22) 48%, rgba(219, 234, 254, 0.42)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36),
    0 10px 26px rgba(37, 99, 235, 0.08),
    0 7px 20px rgba(236, 72, 153, 0.055);
}

html:not(.dark) .nav-links.is-magnet-hover .nav-indicator {
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    0 10px 28px rgba(37, 99, 235, 0.1),
    0 7px 20px rgba(236, 72, 153, 0.07);
}

html:not(.dark) .nav-links a {
  color: rgba(17, 24, 39, 0.56);
}

html:not(.dark) .nav-links a:hover {
  text-shadow: 0 0 16px rgba(37, 99, 235, 0.1);
}

html:not(.dark) .brand-mark,
html:not(.dark) .lang-toggle,
html:not(.dark) .theme-toggle {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.88), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36),
    0 10px 24px rgba(17, 24, 39, 0.07);
}

html:not(.dark) .brand-mark:hover,
html:not(.dark) .lang-toggle:hover,
html:not(.dark) .theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.96);
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 18px rgba(37, 99, 235, 0.08),
    0 12px 26px rgba(17, 24, 39, 0.08);
}

@media (max-width: 860px) {
  .nav-links {
    min-height: 34px;
  }

  .nav-links a {
    min-height: 28px;
  }

  .nav-indicator {
    height: 28px;
  }

  .floating-nav {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.24),
      inset 0 -1px 0 rgba(255, 255, 255, 0.06),
      0 14px 42px rgba(0, 0, 0, 0.18);
  }
}

@media (pointer: coarse) {
  .nav-links.is-magnet-hover .nav-indicator {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      0 8px 22px rgba(0, 174, 225, 0.08);
  }
}

/* Nav polish fix: remove harsh top streak and center language text. */
.floating-nav::after {
  display: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0 !important;
  line-height: 1;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 520px) {
  .lang-toggle {
    width: 36px;
    min-width: 36px;
    height: 36px;
    font-size: 0.66rem;
  }
}

/* Nav motion smoothing: prioritize transform-only glide and lighter repaint cost. */
.nav-indicator {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 7px 18px rgba(0, 174, 225, 0.075),
    0 4px 14px rgba(210, 0, 126, 0.05);
  will-change: transform, opacity;
  transition:
    transform 280ms cubic-bezier(0.25, 1, 0.5, 1),
    opacity 140ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.nav-links.is-magnet-hover .nav-indicator {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(0, 174, 225, 0.095),
    0 5px 16px rgba(210, 0, 126, 0.065);
}

html:not(.dark) .nav-indicator {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 7px 18px rgba(37, 99, 235, 0.06),
    0 4px 14px rgba(236, 72, 153, 0.04);
}

html:not(.dark) .nav-links.is-magnet-hover .nav-indicator {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32),
    0 8px 20px rgba(37, 99, 235, 0.075),
    0 5px 16px rgba(236, 72, 153, 0.05);
}

@media (max-width: 860px) {
  .nav-indicator {
    transition-duration: 160ms;
    will-change: auto;
  }
}

/* Experience cards: frosted identity cards that open into a readable timeline. */
.experience-stack {
  position: relative;
  z-index: 3;
  width: 100vw;
  min-height: 510px;
  margin: -84px 0 0 calc(50% - 50vw);
  padding: 0 24px;
  outline: none;
}

.experience-stack-stage {
  --experience-card-width: clamp(238px, 22.4vw, 296px);
  --experience-card-height: calc(var(--experience-card-width) * 1.38);
  --spread-far-left: clamp(-420px, calc(175px - 50vw), -300px);
  --spread-far: clamp(300px, calc(50vw - 175px), 420px);
  --spread-near-left: clamp(-140px, calc(58px - 16.666vw), -100px);
  --spread-near: clamp(100px, calc(16.666vw - 58px), 140px);
  position: relative;
  display: block;
  width: min(320px, calc(100vw - 48px));
  height: 490px;
  margin: 0 auto;
  perspective: 1400px;
}

.experience-card {
  --card-accent: rgba(175, 117, 255, 0.6);
  --float-duration: 7.4s;
  --float-delay: -1.2s;
  --breath-x-start: 0px;
  --breath-x-mid: 0px;
  --breath-x-end: 0px;
  --breath-y-start: -6px;
  --breath-y-mid: 2px;
  --breath-y-end: 7px;
  --breath-rotate-start: 0deg;
  --breath-rotate-mid: 0deg;
  --breath-rotate-end: 0deg;
  --spread-delay: 0ms;
  --focus-scale: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: var(--experience-card-width);
  height: var(--experience-card-height);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.91), rgba(249, 251, 255, 0.78)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--card-accent), rgba(255, 255, 255, 0.62)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 18px 42px rgba(17, 24, 39, 0.09),
    0 3px 10px rgba(17, 24, 39, 0.045);
  backdrop-filter: blur(15px) saturate(138%) contrast(1.04);
  -webkit-backdrop-filter: blur(15px) saturate(138%) contrast(1.04);
  color: #111827;
  translate: 0 0;
  rotate: 0deg;
  transform: translate(-50%, -50%) rotate(var(--stack-rotate)) translate(var(--stack-x), var(--stack-y)) scale(var(--focus-scale));
  transform-origin: 50% 82%;
  animation: experience-card-float var(--float-duration) ease-in-out var(--float-delay) infinite alternate;
  transition:
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1) var(--spread-delay),
    box-shadow 420ms ease,
    filter 320ms ease,
    opacity 320ms ease,
    rotate 420ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, translate, rotate;
}

.experience-card::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.82), transparent 28%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 34%, transparent 68%, rgba(255, 255, 255, 0.16));
  background-position: 0% 0%, 0% 0%;
  background-size: 145% 145%, 170% 170%;
  opacity: 0.44;
  pointer-events: none;
  animation: experience-glass-glint 8.2s ease-in-out infinite alternate;
  transition: opacity 300ms ease;
  content: "";
}

.experience-card::after {
  position: absolute;
  right: 20px;
  bottom: 15px;
  left: 20px;
  z-index: 3;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-accent) 20%, var(--card-accent) 80%, transparent);
  opacity: 0.42;
  box-shadow: 0 0 5px var(--card-accent);
  animation: experience-edge-breathe 6.8s ease-in-out infinite;
  content: "";
}

.experience-card-profile {
  --stack-rotate: -2.2deg;
  --stack-x: -6px;
  --stack-y: 8px;
  --float-duration: 7.6s;
  --float-delay: -2.4s;
  --breath-x-start: -0.5px;
  --breath-x-mid: 0.5px;
  --breath-x-end: 0px;
  --breath-y-start: -6px;
  --breath-y-mid: 2px;
  --breath-y-end: 7px;
  --breath-rotate-start: -0.18deg;
  --breath-rotate-mid: 0.08deg;
  --breath-rotate-end: 0.16deg;
  --spread-delay: 0ms;
  z-index: 4;
}

.experience-card-company-one {
  --card-accent: rgba(34, 211, 238, 0.68);
  --stack-rotate: 1.35deg;
  --stack-x: 7px;
  --stack-y: 1px;
  --float-duration: 8.4s;
  --float-delay: -5.1s;
  --breath-x-start: -4px;
  --breath-x-mid: 2px;
  --breath-x-end: 5px;
  --breath-y-start: -7px;
  --breath-y-mid: 3px;
  --breath-y-end: 8px;
  --breath-rotate-start: -0.34deg;
  --breath-rotate-mid: 0.18deg;
  --breath-rotate-end: 0.42deg;
  --spread-delay: 38ms;
  z-index: 3;
}

.experience-card-company-two {
  --card-accent: rgba(163, 230, 53, 0.72);
  --stack-rotate: -0.8deg;
  --stack-x: -2px;
  --stack-y: -5px;
  --float-duration: 8s;
  --float-delay: -3.6s;
  --breath-x-start: 3px;
  --breath-x-mid: -2px;
  --breath-x-end: -5px;
  --breath-y-start: -8px;
  --breath-y-mid: 1px;
  --breath-y-end: 8px;
  --breath-rotate-start: 0.38deg;
  --breath-rotate-mid: -0.14deg;
  --breath-rotate-end: -0.46deg;
  --spread-delay: 76ms;
  z-index: 2;
}

.experience-card-company-three {
  --card-accent: rgba(244, 114, 182, 0.7);
  --stack-rotate: 2deg;
  --stack-x: 9px;
  --stack-y: -1px;
  --float-duration: 8.8s;
  --float-delay: -6.2s;
  --breath-x-start: -2px;
  --breath-x-mid: 3px;
  --breath-x-end: 6px;
  --breath-y-start: -7px;
  --breath-y-mid: 2px;
  --breath-y-end: 9px;
  --breath-rotate-start: -0.28deg;
  --breath-rotate-mid: 0.2deg;
  --breath-rotate-end: 0.52deg;
  --spread-delay: 114ms;
  z-index: 1;
}

.experience-card-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  width: calc(100% - 24px);
  aspect-ratio: 1;
  min-height: 0;
  margin: 12px 12px 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 13px;
  background: linear-gradient(145deg, #1d2736, #202b3b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -22px 50px rgba(4, 10, 20, 0.12);
  background-position: 50% 50%;
  background-size: 112% 112%;
  color: rgba(255, 255, 255, 0.96);
  animation: experience-visual-breathe 11s ease-in-out -3s infinite alternate;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), filter 360ms ease;
}

.experience-card-visual::before,
.experience-card-visual::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.experience-card-visual::before {
  inset: -38% 16% 28% -14%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: experience-orbit-drift 10.5s ease-in-out -2s infinite alternate;
}

.experience-card-visual::after {
  right: -20%;
  bottom: -44%;
  width: 75%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transform-origin: center;
  animation: experience-orb-breathe 8.5s ease-in-out -4s infinite alternate;
}

.experience-company-visual {
  align-items: center;
  justify-content: center;
  padding: 12px;
  isolation: isolate;
}

.experience-card-company-one .experience-company-visual {
  background: linear-gradient(145deg, #25161e, #121a29 72%);
}

.experience-card-company-two .experience-company-visual {
  background: linear-gradient(145deg, #20241c, #121a29 72%);
}

.experience-company-visual::before {
  z-index: 0;
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 0.52;
}

.experience-company-visual::after {
  z-index: 0;
  background: rgba(255, 255, 255, 0.06);
}

.experience-company-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: contrast(1.08) saturate(1.04) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 360ms ease;
}

.experience-company-logo-zhuolong {
  transform: scale(1.04);
}

.experience-company-logo-molan {
  transform: scale(0.94);
}

.experience-card-company-one:hover .experience-company-logo,
.experience-card-company-one:focus .experience-company-logo,
.experience-card-company-one.is-active .experience-company-logo {
  filter: contrast(1.1) saturate(1.06) drop-shadow(0 13px 22px rgba(0, 0, 0, 0.22));
  transform: scale(1.085);
}

.experience-card-company-two:hover .experience-company-logo,
.experience-card-company-two:focus .experience-company-logo,
.experience-card-company-two.is-active .experience-company-logo {
  filter: contrast(1.1) saturate(1.06) drop-shadow(0 13px 22px rgba(0, 0, 0, 0.22));
  transform: scale(0.98);
}

.experience-card-company-three .experience-card-visual { background: linear-gradient(145deg, #f8d2e8, #efb4d7); }

.experience-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 17px 24px;
}

.experience-card-index {
  display: block;
  margin-bottom: 10px;
  color: rgba(17, 24, 39, 0.48);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.experience-card h2 {
  margin: 0;
  color: #111827;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
}

.experience-card-role {
  margin: 4px 0 0;
  color: #7c3aed;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.35;
}

.experience-card-summary {
  margin: 10px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(71, 85, 105, 0.16);
  color: rgba(17, 24, 39, 0.78);
  font-size: 0.68rem;
  font-weight: 520;
  line-height: 1.48;
}

.experience-profile-visual {
  align-items: flex-end;
  background: #111827;
}

.experience-profile-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: contrast(1.06) saturate(1.04);
  transform: scale(1.015);
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 360ms ease;
}

.experience-profile-visual::before {
  display: none;
}

.experience-profile-visual::after {
  inset: 32% 0 0;
  z-index: 1;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.16) 36%, rgba(5, 10, 18, 0.84));
  animation: none;
}

.experience-card-profile:hover .experience-profile-photo,
.experience-card-profile:focus .experience-profile-photo,
.experience-card-profile.is-active .experience-profile-photo {
  filter: contrast(1.08) saturate(1.06) brightness(1.02);
  transform: scale(1.035);
}

.experience-profile-identity {
  position: relative;
  z-index: 2;
  width: 100%;
}

.experience-profile-identity > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.experience-profile-identity strong {
  color: #ffffff;
  font-size: 1.22rem;
  line-height: 1.15;
}

.experience-profile-identity span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
}

.experience-profile-identity p {
  margin: 5px 0 0;
  color: #c4a7ff;
  font-size: 0.7rem;
  font-weight: 750;
}

.experience-profile-meta,
.experience-company-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.experience-profile-links {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.72rem;
  font-weight: 850;
}

.experience-wechat-id {
  color: rgba(17, 24, 39, 0.82);
  font-size: 0.66rem;
  font-weight: 760;
}

.experience-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 11px;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.72);
  color: #526172;
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.experience-company-info {
  min-width: 0;
}

.experience-card-company .experience-company-meta {
  align-items: flex-start;
}

.experience-card-company h2 {
  font-size: 0.86rem;
  line-height: 1.26;
}

.experience-card-company .experience-card-summary {
  font-size: 0.66rem;
  line-height: 1.44;
}

.experience-period {
  display: grid;
  justify-items: end;
  flex: 0 0 auto;
  gap: 4px;
  color: rgba(17, 24, 39, 0.46);
  font-size: 0.54rem;
  text-align: right;
}

.experience-period strong {
  color: rgba(17, 24, 39, 0.78);
  font-size: 0.6rem;
  white-space: nowrap;
}

.experience-stack-stage:hover .experience-card-profile,
.experience-stack-stage:focus-within .experience-card-profile {
  transform: translate(-50%, -50%) rotate(0deg) translate(var(--spread-far-left), 0) scale(var(--focus-scale));
}

.experience-stack-stage:hover .experience-card-company-one,
.experience-stack-stage:focus-within .experience-card-company-one {
  transform: translate(-50%, -50%) rotate(0deg) translate(0, 0) scale(var(--focus-scale));
}

.experience-stack-stage:hover .experience-card-company-two,
.experience-stack-stage:focus-within .experience-card-company-two {
  transform: translate(-50%, -50%) rotate(0deg) translate(var(--spread-far), 0) scale(var(--focus-scale));
}

.experience-stack-stage:hover .experience-card-company-three,
.experience-stack-stage:focus-within .experience-card-company-three {
  transform: translate(-50%, -50%) rotate(0deg) translate(var(--spread-far), 0) scale(var(--focus-scale));
}

.experience-stack-stage:hover .experience-card,
.experience-stack-stage:focus-within .experience-card {
  --float-duration: 7.8s;
  --float-delay: 0ms;
  --breath-x-start: 0px;
  --breath-x-mid: 0px;
  --breath-x-end: 0px;
  --breath-y-start: -4px;
  --breath-y-mid: 1.5px;
  --breath-y-end: 4.5px;
  --breath-rotate-start: 0deg;
  --breath-rotate-mid: 0deg;
  --breath-rotate-end: 0deg;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36),
    0 22px 52px rgba(17, 24, 39, 0.12),
    0 4px 12px rgba(17, 24, 39, 0.045);
}

.experience-stack-stage.is-focusing .experience-card:not(.is-active),
.experience-stack-stage:has(.experience-card:hover) .experience-card:not(:hover),
.experience-stack-stage:has(.experience-card:focus) .experience-card:not(:focus) {
  --focus-scale: 0.986;
  z-index: 1;
  opacity: 0.82;
  filter: saturate(0.94) brightness(0.99);
}

.experience-stack-stage.is-focusing .experience-card.is-active,
.experience-stack-stage:hover .experience-card:hover,
.experience-stack-stage:focus-within .experience-card:focus {
  --focus-scale: 1.052;
  z-index: 8;
  opacity: 1;
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42),
    0 28px 64px rgba(50, 42, 86, 0.16),
    0 0 0 1px var(--card-accent);
}

.experience-card:focus {
  outline: none;
}

.experience-card:focus-visible {
  outline: 2px solid rgba(124, 58, 237, 0.38);
  outline-offset: 5px;
}

.experience-card.is-active::before,
.experience-card:hover::before,
.experience-card:focus::before {
  opacity: 0.72;
}

.experience-card.is-active .experience-card-visual,
.experience-card:hover .experience-card-visual,
.experience-card:focus .experience-card-visual {
  transform: scale(1.028);
  filter: saturate(1.07) brightness(1.03);
}

@keyframes experience-card-float {
  0% {
    translate: var(--breath-x-start) var(--breath-y-start);
    rotate: var(--breath-rotate-start);
  }
  45% {
    translate: var(--breath-x-mid) var(--breath-y-mid);
    rotate: var(--breath-rotate-mid);
  }
  100% {
    translate: var(--breath-x-end) var(--breath-y-end);
    rotate: var(--breath-rotate-end);
  }
}

@keyframes experience-glass-glint {
  0% {
    background-position: 0% 0%, 6% 10%;
    opacity: 0.34;
  }
  48% {
    background-position: 24% 18%, 52% 44%;
    opacity: 0.58;
  }
  100% {
    background-position: 42% 32%, 96% 82%;
    opacity: 0.46;
  }
}

@keyframes experience-edge-breathe {
  0%, 100% {
    opacity: 0.32;
    filter: saturate(0.9);
  }
  50% {
    opacity: 0.58;
    filter: saturate(1.04);
  }
}

@keyframes experience-visual-breathe {
  0% { background-position: 46% 46%; }
  100% { background-position: 54% 54%; }
}

@keyframes experience-orbit-drift {
  0% { transform: translate3d(-3px, 2px, 0) rotate(-18deg); }
  100% { transform: translate3d(6px, -4px, 0) rotate(-14deg); }
}

@keyframes experience-orb-breathe {
  0% { transform: translate3d(-2px, 2px, 0) scale(0.96); opacity: 0.72; }
  100% { transform: translate3d(5px, -4px, 0) scale(1.045); opacity: 1; }
}

html.dark .experience-card {
  background:
    linear-gradient(145deg, rgba(24, 31, 43, 0.9), rgba(11, 16, 24, 0.8)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), var(--card-accent), rgba(255, 255, 255, 0.1)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 22px 54px rgba(0, 0, 0, 0.26),
    0 4px 14px rgba(0, 0, 0, 0.16);
  color: #f8fbff;
}

html.dark .experience-card h2 { color: #f8fbff; }
html.dark .experience-card-index { color: rgba(248, 251, 255, 0.46); }
html.dark .experience-card-role { color: #c4b5fd; }
html.dark .experience-card-summary { color: rgba(248, 251, 255, 0.8); }
html.dark .experience-card-summary { border-top-color: rgba(255, 255, 255, 0.13); }
html.dark .experience-profile-links { color: rgba(248, 251, 255, 0.72); }
html.dark .experience-wechat-id { color: rgba(248, 251, 255, 0.86); }
html.dark .experience-status {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(51, 65, 85, 0.56);
  color: #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-transparency: reduce) {
  .experience-card {
    background: #f7f9fc;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html.dark .experience-card { background: #121923; }
}

@media (max-width: 920px) {
  .experience-stack {
    min-height: auto;
    margin-top: -18px;
    padding: 0 20px;
  }

  .experience-stack-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 620px);
    height: auto;
    gap: 14px;
  }

  .experience-card,
  .experience-stack-stage:hover .experience-card,
  .experience-stack-stage:focus-within .experience-card,
  .experience-stack-stage.is-focusing .experience-card,
  .experience-stack-stage.is-focusing .experience-card.is-active,
  .experience-stack-stage.is-focusing .experience-card:not(.is-active) {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    aspect-ratio: 0.725;
    opacity: 1;
    filter: none;
    translate: none;
    transform: none;
    animation: none;
  }

  .experience-card::after {
    animation: none;
  }

  .experience-card.is-active .experience-card-visual {
    transform: none;
    filter: none;
  }

  .experience-card-body { padding: 12px 16px 24px; }
  .experience-card-profile,
  .experience-card-company-one,
  .experience-card-company-two,
  .experience-card-company-three { margin-top: 0; }
}

@media (max-width: 520px) {
  .experience-stack {
    width: 100vw;
    padding: 0;
  }

  .experience-stack-stage {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 8px 18px 28px;
    gap: 12px;
    overflow-x: auto;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .experience-stack-stage::-webkit-scrollbar { display: none; }

  .experience-card,
  .experience-stack-stage:hover .experience-card,
  .experience-stack-stage:focus-within .experience-card {
    flex: 0 0 min(82vw, 320px);
    width: min(82vw, 320px);
    scroll-snap-align: center;
  }

  .experience-card h2 { font-size: 0.98rem; }
  .experience-card-summary { font-size: 0.66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .experience-card,
  .experience-card::before,
  .experience-card::after,
  .experience-card-visual,
  .experience-card-visual::before,
  .experience-card-visual::after,
  .experience-company-logo,
  .experience-status {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .experience-card {
    translate: none;
    rotate: 0deg;
  }
}

.category-strip-section,
html:not(.dark) .category-strip-section,
html.dark .category-strip-section {
  display: block;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
  transition: none;
}

.category-strip-section:hover,
html:not(.dark) .category-strip-section:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.category-strip-section + .category-strip-section {
  margin-top: 12px;
}

.capability-marquee + .category-strip-section {
  margin-top: clamp(18px, 3vw, 36px);
}

.category-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(58px, 0.12fr) minmax(0, 1fr) minmax(170px, 0.36fr) auto;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  width: 100%;
  min-height: clamp(86px, 9vw, 118px);
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  padding: clamp(18px, 2.4vw, 28px) clamp(18px, 3.2vw, 38px);
  color: #111827;
  text-align: left;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 54px rgba(31, 41, 55, 0.07);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.category-strip::before,
.category-strip::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.category-strip::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.36) 44%, rgba(255, 255, 255, 0.58)),
    repeating-linear-gradient(90deg, rgba(17, 24, 39, 0.045) 0 1px, transparent 1px 56px);
  opacity: 0.88;
}

.category-strip::after {
  right: clamp(18px, 3vw, 38px);
  bottom: 14px;
  left: clamp(18px, 3vw, 38px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.36), rgba(153, 85, 246, 0.26), transparent);
  opacity: 0.58;
  transform: scaleX(0.74);
  transform-origin: 0 50%;
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-strip > * {
  position: relative;
  z-index: 1;
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 24px 72px rgba(37, 99, 235, 0.11);
  transform: translateY(-2px);
}

.category-strip:hover::after,
.category-strip:focus-visible::after,
.category-strip-section.is-more-open .category-strip::after {
  opacity: 1;
  transform: scaleX(1);
}

.category-strip:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.26);
  outline-offset: 4px;
}

.category-strip-index {
  color: rgba(17, 24, 39, 0.42);
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.category-strip-main {
  display: contents;
}

.category-strip-en {
  color: #111827;
  font-family: var(--sans);
  font-size: clamp(1.25rem, 3vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}

.category-strip-zh {
  justify-self: end;
  color: rgba(17, 24, 39, 0.72);
  font-size: clamp(0.94rem, 1.35vw, 1.2rem);
  font-weight: 850;
  line-height: 1.3;
  text-align: right;
}

.category-strip-cue {
  justify-self: end;
  min-width: 76px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.42);
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.category-strip-section .category-more-panel {
  padding: 16px 0 clamp(18px, 3vw, 32px);
}

.category-strip-section .mini-work-grid {
  border-top: 0;
  padding-top: 0;
}

html.dark .category-strip {
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 62px rgba(0, 0, 0, 0.28);
}

html.dark .category-strip::before {
  background:
    linear-gradient(90deg, rgba(18, 24, 34, 0.84), rgba(11, 16, 24, 0.62) 44%, rgba(24, 31, 43, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 56px);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(147, 197, 253, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 26px 78px rgba(0, 0, 0, 0.36);
}

html.dark .category-strip-index {
  color: rgba(248, 251, 255, 0.42);
}

html.dark .category-strip-en {
  color: #f8fbff;
}

html.dark .category-strip-zh {
  color: rgba(248, 251, 255, 0.72);
}

html.dark .category-strip-cue {
  border-color: rgba(147, 197, 253, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .category-strip {
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr) auto;
    min-height: 96px;
  }

  .category-strip-main {
    display: grid;
    gap: 8px;
  }

  .category-strip-en,
  .category-strip-zh {
    grid-column: auto;
  }

  .category-strip-zh {
    justify-self: start;
    text-align: left;
  }

  .category-strip-cue {
    align-self: end;
  }
}

@media (max-width: 520px) {
  .category-strip-section,
  .capability-marquee + .category-strip-section,
  .category-strip-section + .category-strip-section {
    margin-top: 12px;
  }

  .category-strip {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    min-height: 112px;
    padding: 18px;
  }

  .category-strip-index {
    grid-column: 1;
    font-size: 0.86rem;
  }

  .category-strip-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .category-strip-cue {
    grid-column: 2;
    grid-row: 1;
    padding: 7px 10px;
  }

  .category-strip-section .category-more-panel {
    padding: 12px 0 20px;
  }

  .category-strip-section .mini-work-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-strip,
  .category-strip::after {
    transition-duration: 0.01ms !important;
  }
}

/* Taste pass: turn category entries into a restrained portfolio index. */
.category-strip-section,
html:not(.dark) .category-strip-section,
html.dark .category-strip-section {
  width: min(1120px, calc(100vw - 40px));
}

.category-strip-section + .category-strip-section {
  margin-top: 8px;
}

.capability-marquee + .category-strip-section {
  margin-top: clamp(18px, 4vw, 46px);
}

.category-strip {
  grid-template-columns: 74px minmax(0, 1fr) minmax(180px, 0.36fr) 104px;
  min-height: 78px;
  gap: clamp(14px, 2.2vw, 28px);
  border-color: rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  padding: 18px clamp(18px, 3vw, 34px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36)),
    rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 38px rgba(31, 41, 55, 0.055);
  transform: translateY(0);
}

.category-strip::before {
  inset: 0 auto 0 0;
  width: 7px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.68), rgba(45, 212, 191, 0.48)),
    var(--plate-glow, rgba(37, 99, 235, 0.12));
  opacity: 0.72;
}

.category-strip::after {
  right: 20px;
  bottom: 12px;
  left: 96px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.18), transparent 78%);
  opacity: 0;
  transform: scaleX(0.38);
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 52px rgba(31, 41, 55, 0.09);
  transform: translateY(-1px);
}

.category-strip:hover::before,
.category-strip:focus-visible::before,
.category-strip-section.is-more-open .category-strip::before {
  opacity: 1;
}

.category-strip-index {
  color: rgba(17, 24, 39, 0.44);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  letter-spacing: 0.16em;
}

.category-strip-en {
  font-size: clamp(1.12rem, 2.1vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.category-strip-zh {
  color: rgba(17, 24, 39, 0.62);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
}

.category-strip-cue {
  min-width: 0;
  border-color: rgba(17, 24, 39, 0.12);
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(17, 24, 39, 0.68);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.category-strip-section.is-more-open .category-strip-cue,
.category-strip:hover .category-strip-cue,
.category-strip:focus-visible .category-strip-cue {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.category-strip-section .category-more-panel {
  margin-top: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 16px 44px rgba(31, 41, 55, 0.06);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.category-strip-section .mini-work-grid {
  gap: 10px;
}

.category-strip-section .mini-work-card {
  min-height: 196px;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 38px rgba(31, 41, 55, 0.09);
}

.category-strip-section .mini-work-visual {
  height: 126px;
}

.category-strip-section .mini-work-meta {
  padding: 14px;
}

html.dark .category-strip {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(9, 11, 16, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 16px 46px rgba(0, 0, 0, 0.24);
}

html.dark .category-strip::before {
  background: linear-gradient(180deg, rgba(147, 197, 253, 0.52), rgba(45, 212, 191, 0.36));
}

html.dark .category-strip::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.18), transparent 78%);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(147, 197, 253, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 58px rgba(0, 0, 0, 0.32);
}

html.dark .category-strip-cue {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(248, 251, 255, 0.68);
}

html.dark .category-strip-section.is-more-open .category-strip-cue,
html.dark .category-strip:hover .category-strip-cue,
html.dark .category-strip:focus-visible .category-strip-cue {
  border-color: rgba(147, 197, 253, 0.22);
  background: rgba(147, 197, 253, 0.09);
  color: #bfdbfe;
}

html.dark .category-strip-section .category-more-panel {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
    rgba(9, 11, 16, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 54px rgba(0, 0, 0, 0.28);
}

@media (max-width: 860px) {
  .category-strip {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    min-height: 88px;
  }

  .category-strip::after {
    left: 72px;
  }
}

@media (max-width: 520px) {
  .category-strip-section,
  .capability-marquee + .category-strip-section,
  .category-strip-section + .category-strip-section {
    margin-top: 10px;
  }

  .category-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 98px;
    padding: 16px;
  }

  .category-strip::before {
    width: 5px;
  }

  .category-strip::after {
    right: 16px;
    left: 16px;
  }

  .category-strip-index {
    font-size: 0.78rem;
  }

  .category-strip-en {
    font-size: clamp(1rem, 6.2vw, 1.42rem);
  }

  .category-strip-cue {
    align-self: start;
  }

  .category-strip-section .category-more-panel {
    padding: 10px;
  }
}

/* Glass refinement: brighter frosted category index. */
.category-strip {
  border-color: rgba(255, 255, 255, 0.64);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.22) 52%, rgba(210, 242, 255, 0.24)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 14px 42px rgba(31, 41, 55, 0.045);
  backdrop-filter: blur(24px) saturate(168%) contrast(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(168%) contrast(1.04);
}

.category-strip::before {
  background:
    linear-gradient(180deg, rgba(125, 211, 252, 0.82), rgba(45, 212, 191, 0.42)),
    rgba(255, 255, 255, 0.42);
  opacity: 0.78;
}

.category-strip::after {
  right: 22px;
  bottom: auto;
  left: 94px;
  top: 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(191, 219, 254, 0.38), transparent 76%);
  opacity: 0.72;
  transform: scaleX(1);
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.98), transparent 36%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28) 52%, rgba(186, 230, 253, 0.32)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34),
    0 18px 48px rgba(31, 41, 55, 0.07);
}

.category-strip-en {
  color: transparent;
  background: linear-gradient(92deg, #64748b 0%, #2563eb 46%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 14px rgba(37, 99, 235, 0.08);
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #475569 0%, #1d4ed8 42%, #0891b2 100%);
  text-shadow: 0 1px 18px rgba(14, 165, 233, 0.16);
}

.category-strip-zh {
  color: rgba(15, 23, 42, 0.6);
}

.category-strip-cue {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(145%);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
}

.category-strip-section .category-more-panel {
  border-color: rgba(255, 255, 255, 0.54);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 14px 38px rgba(31, 41, 55, 0.045);
  backdrop-filter: blur(22px) saturate(154%) contrast(1.03);
  -webkit-backdrop-filter: blur(22px) saturate(154%) contrast(1.03);
}

html.dark .category-strip {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 14% 0%, rgba(186, 230, 253, 0.16), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 54%, rgba(14, 165, 233, 0.08)),
    rgba(8, 13, 22, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 16px 44px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(24px) saturate(150%) contrast(1.05);
  -webkit-backdrop-filter: blur(24px) saturate(150%) contrast(1.05);
}

html.dark .category-strip::before {
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.62), rgba(45, 212, 191, 0.34));
}

html.dark .category-strip::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.28), rgba(125, 211, 252, 0.16), transparent 76%);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(186, 230, 253, 0.24);
  background:
    radial-gradient(circle at 14% 0%, rgba(186, 230, 253, 0.2), transparent 36%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 54%, rgba(14, 165, 233, 0.11)),
    rgba(8, 13, 22, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.3);
}

html.dark .category-strip-en {
  background-image: linear-gradient(92deg, #f8fbff 0%, #93c5fd 46%, #67e8f9 100%);
  text-shadow: 0 1px 18px rgba(103, 232, 249, 0.12);
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #ffffff 0%, #bfdbfe 44%, #a5f3fc 100%);
  text-shadow: 0 1px 22px rgba(147, 197, 253, 0.18);
}

html.dark .category-strip-zh {
  color: rgba(248, 251, 255, 0.62);
}

html.dark .category-strip-cue {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html.dark .category-strip-section .category-more-panel {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(186, 230, 253, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 22, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px) saturate(145%) contrast(1.04);
  -webkit-backdrop-filter: blur(22px) saturate(145%) contrast(1.04);
}

/* Emotional spectrum: one glass material, six distinct category moods. */
.category-strip-section {
  --category-a: 148, 163, 184;
  --category-b: 37, 99, 235;
  --category-c: 6, 182, 212;
  --category-text-a: #64748b;
  --category-text-b: #2563eb;
  --category-text-c: #06b6d4;
  --category-dark-a: #f8fbff;
  --category-dark-b: #93c5fd;
  --category-dark-c: #67e8f9;
}

#product-poster {
  --category-a: 148, 163, 184;
  --category-b: 96, 165, 250;
  --category-c: 103, 232, 249;
  --category-text-a: #64748b;
  --category-text-b: #3b82f6;
  --category-text-c: #06b6d4;
  --category-dark-a: #f8fbff;
  --category-dark-b: #93c5fd;
  --category-dark-c: #67e8f9;
}

#detail-page {
  --category-a: 217, 119, 6;
  --category-b: 245, 158, 11;
  --category-c: 251, 191, 36;
  --category-text-a: #92400e;
  --category-text-b: #d97706;
  --category-text-c: #f59e0b;
  --category-dark-a: #fff7ed;
  --category-dark-b: #fbbf24;
  --category-dark-c: #fde68a;
}

#commerce-aigc {
  --category-a: 79, 70, 229;
  --category-b: 37, 99, 235;
  --category-c: 168, 85, 247;
  --category-text-a: #4f46e5;
  --category-text-b: #2563eb;
  --category-text-c: #a855f7;
  --category-dark-a: #e0e7ff;
  --category-dark-b: #93c5fd;
  --category-dark-c: #d8b4fe;
}

#promo-poster {
  --category-a: 225, 29, 72;
  --category-b: 244, 63, 94;
  --category-c: 251, 113, 133;
  --category-text-a: #be123c;
  --category-text-b: #e11d48;
  --category-text-c: #fb7185;
  --category-dark-a: #ffe4e6;
  --category-dark-b: #fb7185;
  --category-dark-c: #fecdd3;
}

#packaging-design {
  --category-a: 77, 124, 15;
  --category-b: 132, 204, 22;
  --category-c: 190, 242, 100;
  --category-text-a: #4d7c0f;
  --category-text-b: #65a30d;
  --category-text-c: #84cc16;
  --category-dark-a: #ecfccb;
  --category-dark-b: #bef264;
  --category-dark-c: #d9f99d;
}

#practice {
  --category-a: 13, 148, 136;
  --category-b: 20, 184, 166;
  --category-c: 45, 212, 191;
  --category-text-a: #0f766e;
  --category-text-b: #0d9488;
  --category-text-c: #14b8a6;
  --category-dark-a: #ccfbf1;
  --category-dark-b: #5eead4;
  --category-dark-c: #99f6e4;
}

.category-strip {
  border-color: rgba(var(--category-b), 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.9), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(var(--category-c), 0.18), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22) 52%, rgba(var(--category-b), 0.14)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28),
    0 14px 42px rgba(var(--category-a), 0.055);
}

.category-strip::before {
  background:
    linear-gradient(180deg, rgba(var(--category-c), 0.82), rgba(var(--category-b), 0.5)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    0 0 22px rgba(var(--category-b), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.category-strip::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(var(--category-c), 0.38), transparent 76%);
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(var(--category-b), 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.98), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(var(--category-c), 0.24), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.28) 52%, rgba(var(--category-b), 0.18)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.34),
    0 18px 48px rgba(var(--category-a), 0.09);
}

.category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-b) 46%, var(--category-text-c) 100%);
  text-shadow: 0 1px 16px rgba(var(--category-b), 0.12);
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-b) 40%, var(--category-text-c) 100%);
  text-shadow: 0 1px 22px rgba(var(--category-b), 0.2);
}

.category-strip-section.is-more-open .category-strip-cue,
.category-strip:hover .category-strip-cue,
.category-strip:focus-visible .category-strip-cue {
  border-color: rgba(var(--category-b), 0.28);
  background: rgba(var(--category-b), 0.09);
  color: rgb(var(--category-b));
}

.category-strip-section .category-more-panel {
  border-color: rgba(var(--category-b), 0.2);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(var(--category-c), 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 14px 38px rgba(var(--category-a), 0.06);
}

html.dark .category-strip {
  border-color: rgba(var(--category-c), 0.18);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--category-c), 0.15), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(var(--category-b), 0.1), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 54%, rgba(var(--category-b), 0.08)),
    rgba(8, 13, 22, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 16px 44px rgba(0, 0, 0, 0.22);
}

html.dark .category-strip::before {
  background: linear-gradient(180deg, rgba(var(--category-c), 0.54), rgba(var(--category-b), 0.34));
  box-shadow: 0 0 24px rgba(var(--category-b), 0.14);
}

html.dark .category-strip::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.28), rgba(var(--category-c), 0.18), transparent 76%);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(var(--category-c), 0.26);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--category-c), 0.19), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(var(--category-b), 0.13), transparent 34%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045) 54%, rgba(var(--category-b), 0.11)),
    rgba(8, 13, 22, 0.5);
}

html.dark .category-strip-en {
  background-image: linear-gradient(92deg, var(--category-dark-a) 0%, var(--category-dark-b) 46%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 18px rgba(var(--category-b), 0.14);
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #ffffff 0%, var(--category-dark-b) 44%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 22px rgba(var(--category-c), 0.18);
}

html.dark .category-strip-section.is-more-open .category-strip-cue,
html.dark .category-strip:hover .category-strip-cue,
html.dark .category-strip:focus-visible .category-strip-cue {
  border-color: rgba(var(--category-c), 0.22);
  background: rgba(var(--category-b), 0.1);
  color: var(--category-dark-c);
}

html.dark .category-strip-section .category-more-panel {
  border-color: rgba(var(--category-c), 0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--category-c), 0.1), transparent 30%),
    radial-gradient(circle at 92% 6%, rgba(var(--category-b), 0.08), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 22, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.24);
}

/* Conservative spectrum: quieter category distinction on the same glass system. */
.category-strip-section {
  --category-a: 120, 130, 145;
  --category-b: 92, 116, 148;
  --category-c: 138, 154, 178;
  --category-text-a: #1f2937;
  --category-text-b: #475569;
  --category-text-c: #64748b;
  --category-dark-a: #f8fbff;
  --category-dark-b: #cbd5e1;
  --category-dark-c: #94a3b8;
}

#product-poster {
  --category-a: 116, 132, 153;
  --category-b: 96, 135, 176;
  --category-c: 129, 172, 201;
  --category-text-a: #1f2937;
  --category-text-b: #3f5f82;
  --category-text-c: #5d879f;
  --category-dark-a: #f8fbff;
  --category-dark-b: #bfdbfe;
  --category-dark-c: #a5d8e8;
}

#detail-page {
  --category-a: 151, 132, 95;
  --category-b: 178, 144, 82;
  --category-c: 207, 176, 119;
  --category-text-a: #262626;
  --category-text-b: #7b6132;
  --category-text-c: #a17b3f;
  --category-dark-a: #fffaf0;
  --category-dark-b: #e7c98c;
  --category-dark-c: #f4ddb0;
}

#commerce-aigc {
  --category-a: 105, 112, 158;
  --category-b: 101, 116, 176;
  --category-c: 145, 128, 190;
  --category-text-a: #23263a;
  --category-text-b: #4f5f91;
  --category-text-c: #73649d;
  --category-dark-a: #eef2ff;
  --category-dark-b: #b7c5f3;
  --category-dark-c: #d0c4ec;
}

#promo-poster {
  --category-a: 154, 105, 119;
  --category-b: 181, 116, 132;
  --category-c: 214, 151, 165;
  --category-text-a: #2f2429;
  --category-text-b: #874f5d;
  --category-text-c: #ac6b7a;
  --category-dark-a: #fff1f3;
  --category-dark-b: #e9b6c0;
  --category-dark-c: #f2cbd2;
}

#packaging-design {
  --category-a: 121, 141, 94;
  --category-b: 133, 156, 96;
  --category-c: 165, 190, 125;
  --category-text-a: #26301f;
  --category-text-b: #61733f;
  --category-text-c: #82985c;
  --category-dark-a: #f4f9e8;
  --category-dark-b: #cbdca6;
  --category-dark-c: #dfefbd;
}

#practice {
  --category-a: 91, 137, 132;
  --category-b: 82, 151, 145;
  --category-c: 120, 184, 176;
  --category-text-a: #1f302f;
  --category-text-b: #426f6b;
  --category-text-c: #5d948e;
  --category-dark-a: #edfdfa;
  --category-dark-b: #a8dcd5;
  --category-dark-c: #c6eee8;
}

.category-strip {
  border-color: rgba(var(--category-b), 0.14);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(var(--category-c), 0.075), transparent 30%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24) 52%, rgba(var(--category-b), 0.055)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 14px 40px rgba(31, 41, 55, 0.045);
}

.category-strip::before {
  width: 6px;
  background:
    linear-gradient(180deg, rgba(var(--category-c), 0.5), rgba(var(--category-b), 0.32)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 14px rgba(var(--category-b), 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 0.62;
}

.category-strip::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(var(--category-c), 0.18), transparent 76%);
  opacity: 0.58;
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(var(--category-b), 0.2);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.98), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(var(--category-c), 0.115), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.29) 52%, rgba(var(--category-b), 0.08)),
    rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32),
    0 16px 44px rgba(31, 41, 55, 0.055);
}

.category-strip:hover::before,
.category-strip:focus-visible::before,
.category-strip-section.is-more-open .category-strip::before {
  opacity: 0.78;
}

.category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-a) 48%, var(--category-text-c) 100%);
  text-shadow: 0 1px 10px rgba(var(--category-b), 0.06);
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-b) 48%, var(--category-text-c) 100%);
  text-shadow: 0 1px 14px rgba(var(--category-b), 0.1);
}

.category-strip-section.is-more-open .category-strip-cue,
.category-strip:hover .category-strip-cue,
.category-strip:focus-visible .category-strip-cue {
  border-color: rgba(var(--category-b), 0.18);
  background: rgba(var(--category-b), 0.045);
  color: rgb(var(--category-b));
}

.category-strip-section .category-more-panel {
  border-color: rgba(var(--category-b), 0.12);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(var(--category-c), 0.055), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    0 14px 36px rgba(31, 41, 55, 0.045);
}

html.dark .category-strip {
  border-color: rgba(var(--category-c), 0.12);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--category-c), 0.08), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(var(--category-b), 0.055), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035) 54%, rgba(var(--category-b), 0.045)),
    rgba(8, 13, 22, 0.42);
}

html.dark .category-strip::before {
  background: linear-gradient(180deg, rgba(var(--category-c), 0.36), rgba(var(--category-b), 0.22));
  box-shadow: 0 0 14px rgba(var(--category-b), 0.08);
}

html.dark .category-strip::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.24), rgba(var(--category-c), 0.1), transparent 76%);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(var(--category-c), 0.18);
  background:
    radial-gradient(circle at 14% 0%, rgba(var(--category-c), 0.105), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(var(--category-b), 0.075), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045) 54%, rgba(var(--category-b), 0.065)),
    rgba(8, 13, 22, 0.48);
}

html.dark .category-strip-en {
  background-image: linear-gradient(92deg, #f8fbff 0%, var(--category-dark-a) 50%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 14px rgba(var(--category-b), 0.08);
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #ffffff 0%, var(--category-dark-b) 50%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 18px rgba(var(--category-c), 0.12);
}

html.dark .category-strip-section.is-more-open .category-strip-cue,
html.dark .category-strip:hover .category-strip-cue,
html.dark .category-strip:focus-visible .category-strip-cue {
  border-color: rgba(var(--category-c), 0.16);
  background: rgba(var(--category-b), 0.065);
  color: var(--category-dark-c);
}

html.dark .category-strip-section .category-more-panel {
  border-color: rgba(var(--category-c), 0.105);
  background:
    radial-gradient(circle at 10% 0%, rgba(var(--category-c), 0.055), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(var(--category-b), 0.045), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 22, 0.46);
}

/* Title-only tint: unified glass, minimal category color in English headings. */
.category-strip-section {
  --category-a: 120, 130, 145;
  --category-b: 92, 116, 148;
  --category-c: 138, 154, 178;
  --category-text-a: #1f2937;
  --category-text-b: #475569;
  --category-text-c: #64748b;
  --category-dark-a: #f8fbff;
  --category-dark-b: #cbd5e1;
  --category-dark-c: #94a3b8;
}

#product-poster {
  --category-text-c: #5d879f;
  --category-dark-c: #a5d8e8;
}

#detail-page {
  --category-text-c: #a17b3f;
  --category-dark-c: #f4ddb0;
}

#commerce-aigc {
  --category-text-c: #73649d;
  --category-dark-c: #d0c4ec;
}

#promo-poster {
  --category-text-c: #ac6b7a;
  --category-dark-c: #f2cbd2;
}

#packaging-design {
  --category-text-c: #82985c;
  --category-dark-c: #dfefbd;
}

#practice {
  --category-text-c: #5d948e;
  --category-dark-c: #c6eee8;
}

.category-strip {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.92), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(186, 230, 253, 0.07), transparent 30%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.24) 52%, rgba(203, 213, 225, 0.08)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.26),
    0 14px 40px rgba(31, 41, 55, 0.045);
}

.category-strip::before {
  width: 6px;
  background:
    linear-gradient(180deg, rgba(186, 230, 253, 0.46), rgba(148, 163, 184, 0.28)),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 14px rgba(148, 163, 184, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  opacity: 0.62;
}

.category-strip::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.84), rgba(191, 219, 254, 0.16), transparent 76%);
  opacity: 0.58;
}

.category-strip:hover,
.category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.98), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(186, 230, 253, 0.11), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.29) 52%, rgba(203, 213, 225, 0.1)),
    rgba(255, 255, 255, 0.4);
}

.category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-a) 58%, var(--category-text-c) 100%);
  text-shadow: 0 1px 10px rgba(71, 85, 105, 0.055);
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, var(--category-text-a) 0%, var(--category-text-b) 56%, var(--category-text-c) 100%);
  text-shadow: 0 1px 14px rgba(71, 85, 105, 0.08);
}

.category-strip-section.is-more-open .category-strip-cue,
.category-strip:hover .category-strip-cue,
.category-strip:focus-visible .category-strip-cue {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.055);
  color: #475569;
}

.category-strip-section .category-more-panel {
  border-color: rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.78), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(186, 230, 253, 0.055), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.18)),
    rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16),
    0 14px 36px rgba(31, 41, 55, 0.045);
}

html.dark .category-strip {
  border-color: rgba(203, 213, 225, 0.12);
  background:
    radial-gradient(circle at 14% 0%, rgba(186, 230, 253, 0.08), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(148, 163, 184, 0.055), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035) 54%, rgba(148, 163, 184, 0.045)),
    rgba(8, 13, 22, 0.42);
}

html.dark .category-strip::before {
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.28), rgba(148, 163, 184, 0.2));
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.08);
}

html.dark .category-strip::after {
  background: linear-gradient(90deg, rgba(248, 251, 255, 0.24), rgba(191, 219, 254, 0.1), transparent 76%);
}

html.dark .category-strip:hover,
html.dark .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(203, 213, 225, 0.18);
  background:
    radial-gradient(circle at 14% 0%, rgba(186, 230, 253, 0.105), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(148, 163, 184, 0.075), transparent 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045) 54%, rgba(148, 163, 184, 0.065)),
    rgba(8, 13, 22, 0.48);
}

html.dark .category-strip-en {
  background-image: linear-gradient(92deg, #f8fbff 0%, #f8fbff 58%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 14px rgba(148, 163, 184, 0.08);
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #ffffff 0%, var(--category-dark-b) 56%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 18px rgba(148, 163, 184, 0.1);
}

html.dark .category-strip-section.is-more-open .category-strip-cue,
html.dark .category-strip:hover .category-strip-cue,
html.dark .category-strip:focus-visible .category-strip-cue {
  border-color: rgba(203, 213, 225, 0.16);
  background: rgba(148, 163, 184, 0.065);
  color: #cbd5e1;
}

html.dark .category-strip-section .category-more-panel {
  border-color: rgba(203, 213, 225, 0.105);
  background:
    radial-gradient(circle at 10% 0%, rgba(186, 230, 253, 0.055), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(148, 163, 184, 0.045), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    rgba(8, 13, 22, 0.46);
}

/* Clean title gradients: deep neutral to clear light accents. */
.category-strip-section {
  --category-text-c: #7ea8d8;
  --category-dark-c: #b9ddff;
}

#product-poster {
  --category-text-c: #78b7e6;
  --category-dark-c: #bde7ff;
}

#detail-page {
  --category-text-c: #d7b979;
  --category-dark-c: #ffe4aa;
}

#commerce-aigc {
  --category-text-c: #9ca8ff;
  --category-dark-c: #d6dcff;
}

#promo-poster {
  --category-text-c: #efa4b8;
  --category-dark-c: #ffd3df;
}

#packaging-design {
  --category-text-c: #77cdb9;
  --category-dark-c: #c5f4e8;
}

#practice {
  --category-text-c: #81d8d0;
  --category-dark-c: #c5f5ef;
}

.category-strip-en {
  background-image: linear-gradient(92deg, #1f2937 0%, #1f2937 70%, var(--category-text-c) 100%);
  text-shadow: 0 1px 8px rgba(71, 85, 105, 0.045);
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #1f2937 0%, #334155 58%, var(--category-text-c) 100%);
  text-shadow: 0 1px 12px rgba(71, 85, 105, 0.07);
}

html.dark .category-strip-en {
  background-image: linear-gradient(92deg, #f8fbff 0%, #f8fbff 70%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 12px rgba(148, 163, 184, 0.07);
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  background-image: linear-gradient(92deg, #ffffff 0%, #f8fbff 58%, var(--category-dark-c) 100%);
  text-shadow: 0 1px 16px rgba(148, 163, 184, 0.09);
}

/* Plain archive titles with restrained category index colors. */
.category-strip-section {
  --category-index: #6d91a6;
  --category-index-active: #4f798f;
  --category-index-dark: #a8c2d0;
  --category-index-dark-active: #c6e3ef;
}

#product-poster {
  --category-index: #6d91a6;
  --category-index-active: #4f798f;
  --category-index-dark: #a8c2d0;
  --category-index-dark-active: #c6e3ef;
}

#detail-page {
  --category-index: #aa895e;
  --category-index-active: #8f6d44;
  --category-index-dark: #d7bd93;
  --category-index-dark-active: #ecd5ae;
}

#c4d-render {
  --category-index: #70899c;
  --category-index-active: #526f83;
  --category-index-dark: #abc4d4;
  --category-index-dark-active: #c8dce8;
}

#commerce-aigc {
  --category-index: #77759d;
  --category-index-active: #5f5d87;
  --category-index-dark: #b8b4d5;
  --category-index-dark-active: #d3cfea;
}

#promo-poster {
  --category-index: #aa7885;
  --category-index-active: #915e6d;
  --category-index-dark: #d5acb6;
  --category-index-dark-active: #e9c8d0;
}

#packaging-design {
  --category-index: #6e917f;
  --category-index-active: #537765;
  --category-index-dark: #a8c8b7;
  --category-index-dark-active: #c6ddcf;
}

#practice {
  --category-index: #65918f;
  --category-index-active: #4b7776;
  --category-index-dark: #9fc7c4;
  --category-index-dark-active: #bee0dd;
}

.category-strip-en,
.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  color: #1f2937;
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

.category-strip:hover .category-strip-en,
.category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  color: #111827;
}

.category-strip-index {
  color: var(--category-index);
  text-shadow: none;
  transition: color 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-strip:hover .category-strip-index,
.category-strip:focus-visible .category-strip-index,
.category-strip-section.is-more-open .category-strip-index {
  color: var(--category-index-active);
}

.category-strip::before,
.category-strip:hover::before,
.category-strip:focus-visible::before,
.category-strip-section.is-more-open .category-strip::before {
  background:
    linear-gradient(180deg, rgba(186, 230, 253, 0.5), rgba(148, 163, 184, 0.3)),
    rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 12px rgba(148, 163, 184, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  opacity: 0.68;
}

.category-strip:hover::before,
.category-strip:focus-visible::before,
.category-strip-section.is-more-open .category-strip::before {
  opacity: 0.78;
}

html.dark .category-strip-en,
html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  color: #f3f6fa;
  background: none;
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: none;
}

html.dark .category-strip:hover .category-strip-en,
html.dark .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  color: #ffffff;
}

html.dark .category-strip-index {
  color: var(--category-index-dark);
  text-shadow: none;
}

html.dark .category-strip:hover .category-strip-index,
html.dark .category-strip:focus-visible .category-strip-index,
html.dark .category-strip-section.is-more-open .category-strip-index {
  color: var(--category-index-dark-active);
}

html.dark .category-strip::before,
html.dark .category-strip:hover::before,
html.dark .category-strip:focus-visible::before,
html.dark .category-strip-section.is-more-open .category-strip::before {
  background: linear-gradient(180deg, rgba(186, 230, 253, 0.3), rgba(148, 163, 184, 0.2));
  box-shadow:
    0 0 12px rgba(148, 163, 184, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Centered work frames with restrained lower-left descriptions. */
.category-strip-section .category-more-panel {
  padding: clamp(18px, 2.8vw, 32px) clamp(12px, 2vw, 24px);
}

.category-strip-section .mini-work-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2vw, 22px);
}

.category-strip-section .mini-work-card {
  position: relative;
  isolation: isolate;
  width: min(84%, 1040px);
  min-height: 0;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 34px rgba(31, 41, 55, 0.08);
  outline: none;
  transform: translateY(12px);
  transition:
    opacity 360ms ease calc(var(--mini-index) * 54ms),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1) calc(var(--mini-index) * 54ms),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.category-strip-section .mini-work-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 13, 22, 0.08) 68%, rgba(8, 13, 22, 0.56) 100%);
  content: "";
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 320ms ease;
}

.category-strip-section .category-more-panel.is-open .mini-work-card {
  transform: translateY(0);
}

.category-strip-section .category-more-panel.is-open .mini-work-card:hover,
.category-strip-section .category-more-panel.is-open .mini-work-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 42px rgba(31, 41, 55, 0.12);
  transform: translateY(-2px);
}

.category-strip-section .mini-work-card:hover::before,
.category-strip-section .mini-work-card:focus-visible::before {
  opacity: 1;
}

.category-strip-section .mini-work-card:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.36);
  outline-offset: 4px;
}

.category-strip-section .mini-work-visual {
  position: absolute;
  inset: 0;
  height: auto;
  transform: scale(1.001);
  transform-origin: 50% 50%;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 360ms ease;
}

.category-strip-section .mini-work-card:hover .mini-work-visual,
.category-strip-section .mini-work-card:focus-visible .mini-work-visual {
  filter: saturate(1.035) brightness(1.015);
  transform: scale(1.015);
}

.category-strip-section .mini-work-caption {
  position: absolute;
  left: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 2.8vw, 30px);
  z-index: 2;
  width: min(40rem, calc(100% - clamp(36px, 6vw, 68px)));
  padding: 0;
  pointer-events: none;
}

.category-strip-section .mini-work-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.5;
  text-shadow: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html.dark .category-strip-section .mini-work-card {
  border-color: rgba(203, 213, 225, 0.18);
  background: rgba(15, 23, 42, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 16px 38px rgba(0, 0, 0, 0.22);
}

html.dark .category-strip-section .mini-work-card::before {
  background: linear-gradient(180deg, transparent 52%, rgba(3, 7, 18, 0.12) 68%, rgba(3, 7, 18, 0.64) 100%);
}

html.dark .category-strip-section .category-more-panel.is-open .mini-work-card:hover,
html.dark .category-strip-section .category-more-panel.is-open .mini-work-card:focus-visible {
  border-color: rgba(203, 213, 225, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 20px 46px rgba(0, 0, 0, 0.28);
}

html.dark .category-strip-section .mini-work-description {
  color: rgba(248, 251, 255, 0.96);
}

@media (max-width: 980px) {
  .category-strip-section .mini-work-card {
    width: 90%;
  }
}

@media (max-width: 520px) {
  .category-strip-section .category-more-panel {
    padding: 12px;
  }

  .category-strip-section .mini-work-grid {
    gap: 16px;
  }

  .category-strip-section .mini-work-card {
    width: calc(100% - 2px);
    aspect-ratio: 4 / 3;
  }

  .category-strip-section .mini-work-caption {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .category-strip-section .mini-work-description {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-strip-section .mini-work-visual,
  .category-strip-section .mini-work-caption {
    transition: none !important;
  }

  .category-strip-section .mini-work-card:hover .mini-work-visual,
  .category-strip-section .mini-work-card:focus-visible .mini-work-visual {
    filter: none;
    transform: none;
  }

  .category-strip-section .category-more-panel.is-open .mini-work-card:hover,
  .category-strip-section .category-more-panel.is-open .mini-work-card:focus-visible {
    transform: none;
  }
}

/* Editorial category index: one continuous archive instead of six glass cards. */
.category-strip-section + .category-strip-section {
  margin-top: 0;
}

.category-strip-section .category-strip {
  grid-template-columns: 56px minmax(0, 1fr) 36px;
  gap: 16px;
  min-height: 82px;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(71, 85, 105, 0.16);
  border-radius: 0;
  padding: 15px clamp(18px, 2.4vw, 30px);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  transition: background-color 240ms ease, border-color 240ms ease;
}

#practice .category-strip {
  border-bottom: 1px solid rgba(71, 85, 105, 0.16);
}

.category-strip-section .category-strip::before,
.category-strip-section .category-strip::after {
  display: none;
}

.category-strip-section .category-strip:hover,
.category-strip-section .category-strip:focus-visible,
.category-strip-section.is-more-open .category-strip {
  border-color: rgba(71, 85, 105, 0.25);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  transform: none;
}

.category-strip-section .category-strip:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: -2px;
}

.category-strip-section .category-strip-main {
  display: grid;
  min-width: 0;
  gap: 3px;
  transform: translateX(0);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-strip-section .category-strip:hover .category-strip-main,
.category-strip-section .category-strip:focus-visible .category-strip-main,
.category-strip-section.is-more-open .category-strip-main {
  transform: translateX(4px);
}

.category-strip-section .category-strip-index {
  align-self: start;
  padding-top: 4px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1;
}

.category-strip-section .category-strip-en,
.category-strip-section .category-strip:hover .category-strip-en,
.category-strip-section .category-strip:focus-visible .category-strip-en,
.category-strip-section.is-more-open .category-strip-en {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.08;
  white-space: normal;
}

.category-strip-section .category-strip-zh {
  justify-self: start;
  color: rgba(51, 65, 85, 0.66);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}

.category-strip-section .category-strip-cue,
.category-strip-section.is-more-open .category-strip-cue,
.category-strip-section .category-strip:hover .category-strip-cue,
.category-strip-section .category-strip:focus-visible .category-strip-cue {
  position: relative;
  align-self: center;
  justify-self: end;
  width: 34px;
  min-width: 34px;
  height: 34px;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.category-strip-section .category-strip-cue::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #526172;
  content: "\2198";
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transform: rotate(0deg);
  transition: color 220ms ease, transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-strip-section .category-strip:hover .category-strip-cue,
.category-strip-section .category-strip:focus-visible .category-strip-cue,
.category-strip-section.is-more-open .category-strip-cue {
  background: rgba(148, 163, 184, 0.08);
}

.category-strip-section .category-strip:hover .category-strip-cue::before,
.category-strip-section .category-strip:focus-visible .category-strip-cue::before {
  color: #1f2937;
}

.category-strip-section.is-more-open .category-strip-cue::before {
  color: #1f2937;
  transform: rotate(-90deg);
}

html.dark .category-strip-section .category-strip,
html.dark .category-strip-section .category-strip:hover,
html.dark .category-strip-section .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(203, 213, 225, 0.13);
  background: transparent;
  box-shadow: none;
}

html.dark #practice .category-strip {
  border-bottom-color: rgba(203, 213, 225, 0.13);
}

html.dark .category-strip-section .category-strip:hover,
html.dark .category-strip-section .category-strip:focus-visible,
html.dark .category-strip-section.is-more-open .category-strip {
  border-color: rgba(203, 213, 225, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

html.dark .category-strip-section .category-strip-en,
html.dark .category-strip-section .category-strip:hover .category-strip-en,
html.dark .category-strip-section .category-strip:focus-visible .category-strip-en,
html.dark .category-strip-section.is-more-open .category-strip-en {
  color: #f3f6fa;
}

html.dark .category-strip-section .category-strip-zh {
  color: rgba(226, 232, 240, 0.62);
}

html.dark .category-strip-section .category-strip-cue::before {
  color: #b8c4d1;
}

html.dark .category-strip-section .category-strip:hover .category-strip-cue,
html.dark .category-strip-section .category-strip:focus-visible .category-strip-cue,
html.dark .category-strip-section.is-more-open .category-strip-cue {
  background: rgba(203, 213, 225, 0.08);
}

html.dark .category-strip-section .category-strip:hover .category-strip-cue::before,
html.dark .category-strip-section .category-strip:focus-visible .category-strip-cue::before,
html.dark .category-strip-section.is-more-open .category-strip-cue::before {
  color: #f3f6fa;
}

@media (max-width: 860px) {
  .category-strip-section .category-strip {
    grid-template-columns: 48px minmax(0, 1fr) 32px;
    gap: 14px;
    min-height: 82px;
    padding: 14px 16px;
  }

  .category-strip-section .category-strip-en,
  .category-strip-section .category-strip:hover .category-strip-en,
  .category-strip-section .category-strip:focus-visible .category-strip-en,
  .category-strip-section.is-more-open .category-strip-en {
    font-size: 1.28rem;
  }
}

@media (max-width: 520px) {
  .category-strip-section + .category-strip-section {
    margin-top: 0;
  }

  .category-strip-section .category-strip {
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    gap: 12px;
    min-height: 84px;
    padding: 14px 12px;
  }

  .category-strip-section .category-strip-index,
  .category-strip-section .category-strip-main,
  .category-strip-section .category-strip-cue {
    grid-column: auto;
    grid-row: auto;
  }

  .category-strip-section .category-strip-index {
    font-size: 0.72rem;
  }

  .category-strip-section .category-strip-en,
  .category-strip-section .category-strip:hover .category-strip-en,
  .category-strip-section .category-strip:focus-visible .category-strip-en,
  .category-strip-section.is-more-open .category-strip-en {
    font-size: 1.12rem;
    line-height: 1.12;
  }

  .category-strip-section .category-strip-zh {
    font-size: 0.7rem;
  }

  .category-strip-section .category-strip-cue,
  .category-strip-section.is-more-open .category-strip-cue,
  .category-strip-section .category-strip:hover .category-strip-cue,
  .category-strip-section .category-strip:focus-visible .category-strip-cue {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }
}

/* Keep the final mobile geometry above legacy responsive refinements. */
@media (max-width: 640px) {
  .floating-nav {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    width: calc(100vw - 16px);
    min-height: 50px;
    padding: 6px;
    overflow: visible;
  }

  .nav-links,
  body[data-lang="en"] .nav-links {
    position: static;
    justify-content: center;
    gap: 4px;
    min-height: 36px;
    padding: 0 4px;
    overflow: visible;
  }

  .nav-links > a[href="#top"],
  body[data-lang="en"] .nav-links > a[href="#top"] {
    flex: 0 0 auto;
    min-height: 30px;
    margin: 0;
    padding: 0 10px;
  }

  .mobile-works-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
  }

  .mobile-works-menu a,
  body[data-lang="en"] .mobile-works-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 0 12px;
    border-radius: 7px;
    text-align: left;
  }

  .experience-stack-stage.is-mobile-deck,
  .experience-stack-stage.is-mobile-deck:hover,
  .experience-stack-stage.is-mobile-deck:focus-within {
    display: block;
    width: min(calc(100vw - 48px), 320px);
    max-width: 320px;
    height: clamp(430px, 126vw, 500px);
    padding: 0;
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .experience-stack-stage.is-mobile-deck .experience-card,
  .experience-stack-stage.is-mobile-deck:hover .experience-card,
  .experience-stack-stage.is-mobile-deck:focus-within .experience-card {
    position: absolute;
    top: 0;
    left: 50%;
    flex: none;
    width: 100%;
    height: auto;
    filter: none;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 255, 0.88)) padding-box,
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), var(--card-accent), rgba(255, 255, 255, 0.68)) border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform:
      translateX(-50%)
      translate(
        calc(var(--mobile-card-x, 0px) + var(--mobile-drag-x, 0px)),
        var(--mobile-card-y, 28px)
      )
      rotate(calc(var(--mobile-card-rotate, 0deg) + var(--mobile-drag-rotate, 0deg)))
      scale(var(--mobile-card-scale, 1));
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: auto;
    pointer-events: none;
  }

  .experience-stack-stage.is-mobile-deck .experience-card.is-mobile-active {
    pointer-events: auto;
  }

  .experience-stack-stage.is-mobile-deck.is-focusing .experience-card:not(.is-mobile-active),
  .experience-stack-stage.is-mobile-deck:has(.experience-card:hover) .experience-card:not(:hover),
  .experience-stack-stage.is-mobile-deck:has(.experience-card:focus) .experience-card:not(:focus) {
    --focus-scale: 1;
    opacity: var(--mobile-card-opacity, 1);
    filter: none;
  }

  .experience-stack-stage.is-mobile-deck.is-focusing .experience-card.is-mobile-active,
  .experience-stack-stage.is-mobile-deck:hover .experience-card.is-mobile-active,
  .experience-stack-stage.is-mobile-deck:focus-within .experience-card.is-mobile-active {
    --focus-scale: 1;
    opacity: var(--mobile-card-opacity, 1);
    filter: none;
  }

  .experience-stack-stage.is-mobile-deck:hover .experience-card:hover,
  .experience-stack-stage.is-mobile-deck:focus-within .experience-card:focus,
  .experience-stack-stage.is-mobile-deck .experience-card.is-active {
    --focus-scale: 1;
    opacity: var(--mobile-card-opacity, 1);
    filter: none;
  }

  html.dark .experience-stack-stage.is-mobile-deck .experience-card {
    background:
      linear-gradient(145deg, rgba(24, 31, 43, 0.94), rgba(11, 16, 24, 0.88)) padding-box,
      linear-gradient(135deg, rgba(255, 255, 255, 0.24), var(--card-accent), rgba(255, 255, 255, 0.1)) border-box;
  }

  .experience-stack-stage.is-mobile-deck .experience-card::before,
  .experience-stack-stage.is-mobile-deck .experience-card::after,
  .experience-stack-stage.is-mobile-deck .experience-card-visual,
  .experience-stack-stage.is-mobile-deck .experience-card-visual::before,
  .experience-stack-stage.is-mobile-deck .experience-card-visual::after,
  .experience-stack-stage.is-mobile-deck .experience-company-logo,
  .experience-stack-stage.is-mobile-deck .experience-status {
    animation: none !important;
  }

  .experience-stack-stage.is-mobile-deck .experience-card > .border-glow-overlay {
    display: none;
  }

  .work-lightbox {
    box-sizing: border-box;
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding:
      calc(48px + env(safe-area-inset-top))
      0
      calc(18px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox-figure {
    box-sizing: border-box;
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    max-height: calc(100dvh - 118px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 154px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: 0 auto;
    border-radius: 0;
    object-fit: contain;
    box-shadow: none;
  }

  .work-lightbox.is-long-page {
    width: 100vw;
    padding:
      env(safe-area-inset-top)
      0
      calc(76px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .work-lightbox.is-long-page .work-lightbox-meta {
    top: calc(10px + env(safe-area-inset-top));
    margin: 10px auto 13px;
  }

  .work-lightbox.is-long-page .work-lightbox-figure,
  .work-lightbox.is-long-page .work-lightbox-image {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Minimal editorial skill rail between the Hero and experience deck. */
.skill-marquee {
  position: relative;
  z-index: 6;
  display: block;
  width: min(1120px, calc(100vw - 40px));
  margin-top: -58px;
  margin-bottom: clamp(34px, 4.5vw, 58px);
  overflow: visible;
  color: rgba(31, 41, 55, 0.72);
  mask-image: none;
}

html:not(.dark) .capability-marquee.skill-marquee,
html.dark .capability-marquee.skill-marquee {
  margin-top: -58px;
}

.skill-marquee-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skill-marquee-viewport {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(17, 24, 39, 0.11);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.skill-marquee .marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 15px 0;
  animation: skillMarqueeSlide 42s linear infinite;
  will-change: transform;
}

.skill-marquee .marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  min-width: max-content;
  padding-inline-end: clamp(34px, 4vw, 64px);
}

.skill-marquee .marquee-group span {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  font-size: clamp(0.86rem, 1.15vw, 1.05rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.skill-marquee .marquee-group span::after {
  width: 3px;
  height: 3px;
  margin-inline: clamp(24px, 3.2vw, 48px);
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.38;
}

.skill-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.skill-marquee + .experience-stack {
  margin-top: 0;
}

html.dark .skill-marquee {
  color: rgba(241, 245, 249, 0.67);
}

html.dark .skill-marquee-viewport {
  border-block-color: rgba(255, 255, 255, 0.13);
  background: rgba(8, 12, 20, 0.12);
}

@keyframes skillMarqueeSlide {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .skill-marquee {
    width: 100vw;
    margin-top: -34px;
    margin-bottom: 30px;
    margin-left: calc(50% - 50vw);
  }

  html:not(.dark) .capability-marquee.skill-marquee,
  html.dark .capability-marquee.skill-marquee {
    margin-top: -34px;
  }

  .skill-marquee-viewport {
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .skill-marquee .marquee-track {
    padding-block: 13px;
    animation-duration: 34s;
  }

  .skill-marquee .marquee-group {
    padding-inline-end: 28px;
  }

  .skill-marquee .marquee-group span {
    font-size: 0.82rem;
  }

  .skill-marquee .marquee-group span::after {
    margin-inline: 22px;
  }

  .skill-marquee + .experience-stack {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-marquee-viewport {
    overflow-x: auto;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    scrollbar-width: none;
  }

  .skill-marquee-viewport::-webkit-scrollbar {
    display: none;
  }

  .skill-marquee .marquee-track {
    animation: none !important;
    will-change: auto;
  }

  .skill-marquee .marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* Keep the desktop navigation links evenly grouped after the mobile menu wrapper. */
@media (min-width: 641px) {
  .floating-nav .nav-links {
    justify-content: center;
  }

  .floating-nav .nav-links > a[href="#top"],
  .floating-nav .mobile-works-menu > a {
    margin-inline: 0;
  }
}

/* Premium motion system: GSAP orchestrates entrances while component motion stays CSS-owned. */
.opening-sequence {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

html.motion-pending .opening-sequence {
  display: block;
}

html.motion-running {
  scrollbar-gutter: stable;
}

html.motion-running body {
  overflow-y: hidden;
}

.opening-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.1%;
  background-color: #f3f6f8;
  background-image:
    linear-gradient(rgba(47, 61, 76, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 61, 76, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  will-change: transform;
}

.opening-panel-top {
  top: 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.opening-panel-bottom {
  bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.82);
}

.opening-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 9px 18px;
  width: min(460px, calc(100vw - 48px));
  color: #17212d;
  transform: translate(-50%, -50%);
}

.opening-mark-code {
  font-family: var(--display);
  font-size: clamp(3.8rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.76;
  letter-spacing: 0;
}

.opening-mark-meta {
  padding-bottom: 4px;
  color: rgba(31, 41, 55, 0.58);
  font-size: 0.66rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.opening-mark-rule {
  grid-column: 1 / -1;
  display: block;
  height: 1px;
  background: rgba(31, 41, 55, 0.42);
}

html.dark .opening-panel {
  background-color: #0b1119;
  background-image:
    linear-gradient(rgba(226, 232, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226, 232, 240, 0.045) 1px, transparent 1px);
}

html.dark .opening-panel-top {
  border-bottom-color: rgba(226, 232, 240, 0.1);
}

html.dark .opening-panel-bottom {
  border-top-color: rgba(255, 255, 255, 0.04);
}

html.dark .opening-mark {
  color: #f2f6fa;
}

html.dark .opening-mark-meta {
  color: rgba(226, 232, 240, 0.58);
}

html.dark .opening-mark-rule {
  background: rgba(226, 232, 240, 0.42);
}

html.motion-pending .floating-nav,
html.motion-pending .hero-atmosphere,
html.motion-pending .hero-label,
html.motion-pending .identity-title,
html.motion-pending .hero-role,
html.motion-pending .hero-contact-grid > *,
html.motion-pending .hero-kicker,
html.motion-pending .hero-actions > *,
html.motion-pending .skill-marquee-viewport {
  visibility: hidden;
}

html.gsap-motion .reveal,
html.gsap-motion .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: none;
}

html.gsap-motion .category-more-panel.has-parallax-motion .mini-work-image {
  transform:
    translate3d(0, var(--motion-parallax-y, 0px), 0)
    scale(var(--motion-image-scale, 1.001));
  transform-origin: center;
}

html.gsap-motion .category-more-panel.is-open .mini-work-visual {
  will-change: auto;
}

html.gsap-motion .category-more-panel.has-parallax-motion .mini-work-image {
  will-change: transform;
}

html.gsap-motion .category-strip-en,
html.gsap-motion #contact h2 {
  transform-origin: left center;
}

@media (max-width: 640px) {
  .opening-mark {
    grid-template-columns: 1fr;
    gap: 10px;
    width: min(290px, calc(100vw - 40px));
  }

  .opening-mark-code {
    font-size: 4.4rem;
  }

  .opening-mark-meta {
    padding-bottom: 0;
    font-size: 0.6rem;
  }

  .opening-mark-rule {
    grid-column: 1;
  }

  .opening-panel {
    background-size: 32px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opening-sequence {
    display: none !important;
  }

  html.motion-running body {
    overflow-y: auto;
  }

  html.gsap-motion .category-more-panel.has-parallax-motion .mini-work-image {
    transform: none;
  }

  html.gsap-motion .category-more-panel.is-open .mini-work-visual,
  html.gsap-motion .category-more-panel.is-open .mini-work-image {
    will-change: auto;
  }
}

/* Performance pass: retain the color field while removing redundant fixed blur layers. */
.light-motion-layer,
.light-ray,
.aurora-container {
  display: none !important;
}

.cursor-glow {
  top: 0;
  left: 0;
  translate: none;
  transform:
    translate3d(var(--cursor-x, -999px), var(--cursor-y, -999px), 0)
    translate(-50%, -50%);
  will-change: transform, opacity;
}

@media (max-width: 860px), (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }

  .top-media-bg,
  .bottom-image-bg {
    animation: none !important;
    transform: none !important;
  }
}

/* Personal-practice video cards reuse the gallery without eager video downloads. */
.category-strip-section.has-real-work .is-video-work-card {
  cursor: pointer;
}

.category-strip-section.has-real-work .is-video-work-card .mini-work-image {
  opacity: 1;
  transition:
    opacity 280ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 320ms ease;
}

.category-strip-section.has-real-work .mini-work-video-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05080d;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.001);
  transition:
    opacity 280ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 320ms ease;
}

.category-strip-section.has-real-work .is-video-preview-active .mini-work-image {
  opacity: 0;
}

.category-strip-section.has-real-work .is-video-preview-active .mini-work-video-preview {
  opacity: 1;
}

.category-strip-section.has-real-work .is-video-work-card:hover .mini-work-video-preview,
.category-strip-section.has-real-work .is-video-work-card:focus-visible .mini-work-video-preview {
  filter: saturate(1.025) brightness(1.01);
  transform: scale(1.015);
}

.category-strip-section.has-real-work .real-work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(13, 20, 31, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 30px rgba(7, 12, 20, 0.2);
  backdrop-filter: blur(12px) saturate(1.08);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.category-strip-section.has-real-work .real-work-play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #ffffff;
  content: "";
}

.category-strip-section.has-real-work .is-video-work-card:hover .real-work-play,
.category-strip-section.has-real-work .is-video-work-card:focus-visible .real-work-play {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(13, 20, 31, 0.66);
  transform: translate(-50%, -50%) scale(1.08);
}

.category-strip-section.has-real-work .is-video-preview-active .real-work-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
}

.work-lightbox-video[hidden] {
  display: none;
}

.work-lightbox-video {
  display: block;
  align-self: center;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 132px);
  border-radius: 4px;
  background: #05080d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  object-fit: contain;
}

.work-lightbox.is-video-work .work-lightbox-figure {
  width: min(100%, 1180px);
}

@media (max-width: 860px) {
  .category-strip-section.has-real-work .real-work-play {
    width: 46px;
    height: 46px;
  }

  .work-lightbox-video {
    max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .work-lightbox-video {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-strip-section.has-real-work .real-work-play,
  .category-strip-section.has-real-work .mini-work-video-preview,
  .category-strip-section.has-real-work .is-video-work-card .mini-work-image {
    transition: none;
  }
}

/* Minimal legal footer below the contact panel. */
.site-footer {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  box-sizing: border-box;
  padding: 20px 0 max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(71, 85, 105, 0.16);
  color: rgba(71, 85, 105, 0.66);
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.5;
  text-align: center;
}

.site-footer-separator {
  color: rgba(100, 116, 139, 0.34);
}

.site-footer-icp {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.site-footer-icp:hover {
  color: #2563eb;
}

.site-footer-icp:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 4px;
}

html.dark .site-footer {
  border-top-color: rgba(226, 232, 240, 0.12);
  color: rgba(226, 232, 240, 0.58);
}

html.dark .site-footer-separator {
  color: rgba(226, 232, 240, 0.28);
}

html.dark .site-footer-icp:hover {
  color: #93c5fd;
}

@media (max-width: 380px) {
  .site-footer {
    flex-direction: column;
    gap: 5px;
    padding-top: 18px;
  }

  .site-footer-separator {
    display: none;
  }
}
