:root {
  --bg: #0b0b0d;
  --panel: #151922;
  --panel-2: #1b2130;
  --text: #f5f5f5;
  --muted: #b1b1b9;
  --line: #25252b;
  --brand: #ffffff;
  --cyan: #3cf2de;
  --yellow: #ffe45e;
  --pink: #ff6bd6;
  --accent: #7ee3b2;
  --blue: #7ab7ff;
}

/* React Bits TargetCursor, adapted for the static progress-card grid. */
.target-cursor-wrapper {
  --target-cursor-color: var(--signal, #ff3b12);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  color: var(--target-cursor-color);
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 160ms ease, color 160ms ease;
  will-change: transform;
}

.target-cursor-wrapper.is-visible {
  opacity: 1;
}

.target-cursor-wrapper.is-targeting {
  --target-cursor-color: var(--signal-blue, #1f43ff);
}

.target-cursor-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent);
  transition: transform 180ms ease, background-color 160ms ease;
}

.target-cursor-wrapper.is-pressed .target-cursor-dot {
  transform: translate(-50%, -50%) scale(0.66);
}

.target-cursor-frame {
  position: absolute;
  inset: 0;
  animation: target-cursor-spin 2s linear infinite;
  transform-origin: 0 0;
}

.target-cursor-wrapper.is-targeting .target-cursor-frame {
  animation: none;
  transform: none;
}

.target-cursor-corner {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  will-change: transform;
}

.target-cursor-corner.corner-tl {
  border-right: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-tr {
  border-left: 0;
  border-bottom: 0;
}

.target-cursor-corner.corner-br {
  border-left: 0;
  border-top: 0;
}

.target-cursor-corner.corner-bl {
  border-right: 0;
  border-top: 0;
}

.target-cursor-zone.target-cursor-enabled,
.target-cursor-zone.target-cursor-enabled * {
  cursor: none !important;
}

.target-cursor-zone .cursor-target {
  position: relative;
  isolation: isolate;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 240ms ease,
    color 240ms ease;
}

.target-cursor-zone .cursor-target::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--signal-blue) 7%, transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.target-cursor-zone .cursor-target.is-cursor-targeted {
  transform: translateY(-5px);
}

.target-cursor-zone .cursor-target.is-cursor-targeted::after {
  opacity: 1;
}

body.target-cursor-in-zone .cursor-glow {
  opacity: 0;
}

body.target-cursor-in-zone .splash-cursor-layer {
  opacity: 0.18;
}

@keyframes target-cursor-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .target-cursor-wrapper {
    display: none;
  }

  .target-cursor-zone.target-cursor-enabled,
  .target-cursor-zone.target-cursor-enabled * {
    cursor: auto !important;
  }

  .target-cursor-zone .cursor-target,
  .target-cursor-zone .cursor-target.is-cursor-targeted {
    transform: none;
  }
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(126, 227, 178, 0.12), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(122, 183, 255, 0.1), transparent 34rem),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
}

body.is-gated {
  overflow: hidden;
}

body.has-scroll-motion [data-scroll-stage] {
  opacity: var(--stage-opacity, 0.18);
  transform: translate3d(0, var(--stage-shift, 64px), 0)
    scale(var(--stage-scale, 0.96));
  transition: opacity 280ms linear;
  will-change: transform, opacity;
}

body.has-scroll-motion [data-scroll-stage].is-readable {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.has-scroll-motion [data-parallax] {
  transform: translate3d(0, var(--parallax-shift, 0px), 0);
  will-change: transform;
}

.global-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 30;
  transform-origin: left center;
  transform: scaleX(var(--global-progress, 0));
  background: linear-gradient(90deg, #ffffff, #8e8ea0);
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  margin-top: -170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: opacity 280ms ease;
}

body.cursor-active .cursor-glow {
  opacity: 0.85;
}

.splash-cursor-layer {
  position: fixed;
  inset: 0;
  z-index: 35;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: multiply;
  overflow: hidden;
}

.splash-cursor-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

.entrance {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 28% 18%, #1b1c22, #0b0b0d 52%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 520ms step-end;
}

.entrance.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms ease, visibility 0ms step-start;
}

.entrance.is-leaving {
  opacity: 0;
}

.entrance-panel {
  width: min(760px, 90vw);
  text-align: center;
  display: grid;
  gap: 16px;
}

.entrance-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #b7b7bf;
}

.entrance-panel h1 {
  margin: 0;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.entrance-loading {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: #9f9faa;
}

.interactive-enter {
  justify-self: center;
  position: relative;
  border-radius: 999px;
  border: 1px solid #373742;
  background: #f4f4f6;
  color: #0b0b0d;
  padding: 12px 24px;
  min-width: 216px;
  overflow: hidden;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.interactive-enter:disabled {
  opacity: 0.52;
  cursor: wait;
}

.interactive-enter .enter-front,
.interactive-enter .enter-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.interactive-enter .enter-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0b0d;
  transition: transform 360ms ease;
}

.interactive-enter .enter-label {
  transition: transform 360ms ease, opacity 300ms ease;
}

.interactive-enter .enter-back {
  position: absolute;
  inset: 0;
  color: #f4f4f6;
  background: #101116;
  transform: translateX(40%);
  opacity: 0;
  transition: transform 360ms ease, opacity 300ms ease;
}

.interactive-enter:not(:disabled):hover .enter-dot {
  transform: scale(18);
}

.interactive-enter:not(:disabled):hover .enter-label {
  transform: translateX(120%);
  opacity: 0;
}

.interactive-enter:not(:disabled):hover .enter-back {
  transform: translateX(0);
  opacity: 1;
}

.interactive-enter:active {
  transform: translateY(1px);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(#ffffff33 0.4px, transparent 0.4px);
  background-size: 3px 3px;
  z-index: 1;
}

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

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.header {
  position: fixed;
  width: 100%;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(10, 10, 12, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 8;
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 14px;
}

.menu {
  display: flex;
  gap: 22px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 22, 32, 0.7);
  backdrop-filter: blur(16px);
}

.menu a {
  color: #d6d6de;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 200ms ease, background 200ms ease;
}

.menu a:hover {
  color: var(--text);
  background: rgba(126, 227, 178, 0.12);
}

.section {
  padding: 82px 0;
  scroll-margin-top: 96px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 118px;
  padding-bottom: 22px;
  perspective: 1200px;
}

.hero > .container {
  position: relative;
  z-index: 2;
  transform: translate3d(calc(var(--hero-depth-x, 0px) * -0.1), calc(var(--hero-depth-y, 0px) * -0.08), 0);
  transition: transform 360ms ease-out;
}

.hero-depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform-style: preserve-3d;
}

.hero-depth::before {
  content: "";
  position: absolute;
  inset: 8% 8% auto auto;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.02);
  transform: translate3d(calc(var(--hero-depth-x, 0px) * 0.36), calc(var(--hero-depth-y, 0px) * 0.26), -120px)
    rotateX(62deg) rotateZ(-18deg);
  filter: blur(0.2px);
}

.hero-depth-orb,
.hero-depth-grid {
  position: absolute;
  display: block;
  will-change: transform;
}

.hero-depth-orb {
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.76;
}

.hero-depth-orb-a {
  width: min(34vw, 430px);
  aspect-ratio: 1;
  left: -9vw;
  top: 12%;
  background: radial-gradient(circle, rgba(92, 219, 186, 0.3), transparent 68%);
  transform: translate3d(calc(var(--hero-depth-x, 0px) * -0.42), calc(var(--hero-depth-y, 0px) * -0.28), -80px);
}

.hero-depth-orb-b {
  width: min(28vw, 360px);
  aspect-ratio: 1;
  right: 10vw;
  bottom: 2%;
  background: radial-gradient(circle, rgba(255, 217, 94, 0.24), transparent 64%);
  transform: translate3d(calc(var(--hero-depth-x, 0px) * 0.58), calc(var(--hero-depth-y, 0px) * 0.34), 60px);
}

.hero-depth-grid {
  left: 6%;
  right: 6%;
  bottom: -38%;
  height: 58%;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 46px 46px;
  transform-origin: center bottom;
  transform: translate3d(calc(var(--hero-depth-x, 0px) * 0.18), calc(var(--hero-depth-y, 0px) * 0.12), -180px)
    rotateX(68deg);
}

.eyebrow {
  margin: 0;
  color: #c4c4ca;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-title {
  margin: 14px 0 8px;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-title-home {
  font-size: clamp(52px, 8.4vw, 132px);
}

.hero-title-work {
  max-width: 8ch;
  font-size: clamp(52px, 7vw, 104px);
  line-height: 0.82;
}

.hero-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-word {
  display: inline-block;
  margin-right: 0.24em;
  opacity: 0;
  transform: translateY(110%);
  transition: transform var(--dur, 700ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity calc(var(--dur, 700ms) * 0.55) ease;
  transition-delay: var(--d, 0ms);
}

body.intro-play .hero-word {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
}

.subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.subtitle-inline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2em;
}

.subtitle-dynamic {
  display: inline-block;
  min-width: 2.15em;
  color: #fff;
  transform: translateY(0);
  opacity: 1;
  transition: transform 260ms ease, opacity 260ms ease;
}

.subtitle-dynamic.is-out {
  transform: translateY(-8px);
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.hero-dashboard,
.workspace-strip {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.hero-dashboard {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: stretch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workspace-strip {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.stat-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 25, 34, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.stat-panel strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
}

.stat-panel span,
.stat-panel em {
  display: block;
}

.stat-panel span {
  margin-top: 8px;
  color: #dbe6f5;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-panel em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.hero-console,
.surface-shell,
.workspace-toolbar {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(21, 25, 34, 0.84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.hero-console {
  padding: 20px 22px;
  border-radius: 24px;
  display: grid;
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(126, 227, 178, 0.13), transparent 36%),
    rgba(21, 25, 34, 0.9);
}

.hero-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dce5f2;
}

.console-live {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(126, 227, 178, 0.32);
  color: var(--accent);
  background: rgba(126, 227, 178, 0.1);
}

.hero-console p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-console-tags,
.workspace-toolbar {
  align-self: start;
  justify-content: flex-end;
  padding: 16px 18px;
  border-radius: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-console-tags span,
.quick-pill,
.surface-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf6;
  font-size: 13px;
}

.section-surface {
  padding-top: 54px;
}

.surface-shell {
  padding: 28px;
  border-radius: 28px;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.surface-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(27, 33, 48, 0.92), rgba(10, 14, 20, 0.96)),
    #0a0d12;
}

.surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(145deg, black, transparent 72%);
  opacity: 0.5;
  pointer-events: none;
}

.surface-card > * {
  position: relative;
  z-index: 1;
}

.surface-chip {
  color: var(--accent);
  border-color: rgba(126, 227, 178, 0.28);
  background: rgba(126, 227, 178, 0.08);
}

.surface-card h3 {
  margin-top: 18px;
  font-size: clamp(22px, 2vw, 28px);
}

.surface-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.surface-bars {
  display: grid;
  gap: 6px;
  width: min(56%, 220px);
  margin-top: 20px;
}

.surface-bars span {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.78;
}

.surface-bars span:nth-child(2) {
  width: 72%;
  opacity: 0.56;
}

.surface-bars span:nth-child(3) {
  width: 44%;
  opacity: 0.38;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: 200ms ease;
}

.hero-actions .btn {
  min-width: 132px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: none;
}

.btn-primary {
  background: var(--brand);
  color: #0a0a0d;
}

.btn-ghost {
  background: rgba(21, 25, 34, 0.9);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: #3e3e46;
}

.marquee-wrap {
  --marquee-gap: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: #f0f0f0;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
}

.marquee-item {
  position: relative;
  flex-shrink: 0;
  margin-right: var(--marquee-gap);
}

.marquee-item::after {
  content: "•";
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  color: #818190;
}

.marquee-group .marquee-item:last-child {
  margin-right: 0;
}

.section-head {
  margin-bottom: 34px;
}

.split {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(126, 227, 178, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(21, 25, 34, 0.92), rgba(10, 14, 20, 0.96));
  padding: 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translate3d(0, var(--ty, 0px), 0);
  transition: transform 240ms ease, border-color 240ms ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(150deg, black, transparent 74%);
  opacity: 0.38;
  pointer-events: none;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.17),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.work-card > * {
  position: relative;
  z-index: 1;
}

.work-card:hover {
  --ty: -6px;
  border-color: #3f3f49;
}

.work-card:hover::before {
  opacity: 1;
}

.work-index {
  margin: 0 0 auto;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #c0c0cd;
}

.work-card p {
  margin: 12px 0 16px;
  color: #d0d0d8;
}

.work-card span {
  display: inline-block;
  font-size: 13px;
  color: #0b0b0d;
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}

.accent-cyan {
  background: linear-gradient(170deg, #11221f, #101112 66%);
}

.accent-yellow {
  background: linear-gradient(170deg, #2a2414, #101112 66%);
}

.accent-pink {
  background: linear-gradient(170deg, #2a1124, #101112 66%);
}

.services {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 72px;
  padding-bottom: 72px;
}

.narrative-wrap {
  align-items: flex-start;
}

.story-list {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
}

.story-panel {
  width: min(660px, 100%);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
}

.story-progress {
  position: sticky;
  top: 140px;
  height: 288px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.story-progress-line,
.story-progress-fill {
  position: absolute;
  width: 2px;
  top: 10px;
  bottom: 10px;
  border-radius: 999px;
}

.story-progress-line {
  background: #2a2a31;
}

.story-progress-fill {
  background: linear-gradient(180deg, #ffffff, #8f8f9c);
  transform-origin: top;
  transform: scaleY(var(--story-progress, 0));
  transition: transform 280ms ease;
}

.story-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #4d4d58;
  background: #111114;
  position: relative;
  z-index: 1;
  transition: transform 260ms ease, background-color 260ms ease, border-color 260ms ease;
}

.story-progress-dot.active {
  transform: scale(1.25);
  background: #fff;
  border-color: #fff;
}

.story-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0f13;
  padding: 24px;
  opacity: 0.28;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease, border-color 420ms ease;
}

.story-item p {
  margin: 12px 0 0;
  color: var(--muted);
}

.story-item.active {
  opacity: 1;
  transform: translateY(0);
  border-color: #4a4a55;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-list div {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(21, 25, 34, 0.92), rgba(10, 14, 20, 0.96));
}

.service-list h3 {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.service-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.about p,
.contact p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 24px;
}

.contact-link {
  display: inline-block;
  margin-top: 20px;
  font-size: clamp(34px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contact .contact-link {
  max-width: none;
  margin: 20px 0 0;
  color: #f5f6fb;
  font-size: clamp(52px, 8vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: none;
}

.contact {
  padding-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(150px, auto));
  gap: 18px;
  margin-top: 28px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(21, 25, 34, 0.92), rgba(10, 14, 20, 0.96));
  padding: 24px;
  min-height: 150px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-feature {
  grid-row: span 2;
  background: linear-gradient(180deg, #17141f, #0f0f13 72%);
}

.contact-card span {
  display: block;
  margin-bottom: 16px;
  color: #9a9aa7;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card strong,
.contact-card-link {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.contact-card-link {
  display: inline-block;
  text-transform: none;
}

.contact-card p {
  margin: 18px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.section-about,
.section-contact,
.section-notes {
  scroll-margin-top: 96px;
}

.section-about {
  padding-top: 120px;
  padding-bottom: 180px;
}

.section-contact {
  padding-top: 140px;
  padding-bottom: 140px;
}

.section-notes {
  padding-top: 140px;
  padding-bottom: 150px;
}

.hero-alt {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.life-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(560px, 640px);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

@media (max-width: 1100px) {
  .life-hero-layout {
    grid-template-columns: 1fr;
  }

  .life-photo-stack-panel {
    margin-top: 18px;
  }
}

.photo-stack-panel {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 34px;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(22, 25, 35, 0.92), rgba(8, 9, 12, 0.86));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.photo-stack-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.photo-stack-copy {
  position: relative;
  z-index: 2;
  width: 100%;
}

.photo-stack-copy h2 {
  margin-top: 6px;
  font-size: clamp(28px, 3.2vw, 42px);
}

.photo-stack-copy p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.photo-stack {
  --drag-x: 0px;
  --drag-rot: 0deg;
  position: relative;
  z-index: 2;
  width: min(300px, 72vw);
  aspect-ratio: 0.78;
  border: 0;
  background: transparent;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
}

.photo-stack:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 8px;
  border-radius: 30px;
}

.photo-stack-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  overflow: hidden;
  background: #151821;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.18, 1, 0.22, 1), opacity 360ms ease,
    filter 360ms ease;
  will-change: transform, opacity;
}

.photo-stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.photo-stack-card::after {
  content: attr(data-title);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(7, 8, 11, 0.62);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  backdrop-filter: blur(12px);
}

.photo-stack-card[data-stack-position="0"] {
  z-index: 5;
  opacity: 1;
  transform: translate3d(var(--drag-x), 0, 90px) rotateZ(var(--drag-rot)) rotateY(0deg) scale(1);
  filter: saturate(1.08);
}

.photo-stack-card[data-stack-position="1"] {
  z-index: 4;
  opacity: 0.92;
  transform: translate3d(18px, 13px, 54px) rotateZ(5deg) rotateY(-7deg) scale(0.96);
}

.photo-stack-card[data-stack-position="2"] {
  z-index: 3;
  opacity: 0.78;
  transform: translate3d(-17px, 24px, 24px) rotateZ(-7deg) rotateY(8deg) scale(0.92);
}

.photo-stack-card[data-stack-position="3"] {
  z-index: 2;
  opacity: 0.58;
  transform: translate3d(34px, 35px, 0) rotateZ(10deg) scale(0.88);
  filter: saturate(0.78);
}

.photo-stack-card[data-stack-position="4"] {
  z-index: 1;
  opacity: 0.32;
  transform: translate3d(-28px, 44px, -24px) rotateZ(-11deg) scale(0.84);
  filter: saturate(0.62);
}

.photo-stack-card[data-stack-position="hidden"] {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 56px, -80px) scale(0.78);
}

.photo-stack.is-dragging .photo-stack-card[data-stack-position="0"] {
  transition-duration: 120ms;
}

.photo-stack-next {
  position: relative;
  z-index: 2;
  appearance: none;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7fb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.photo-stack-next:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.hero-bottom-stack {
  align-items: flex-start;
}

.subtitle-wide {
  max-width: 760px;
}

.page-split {
  align-items: stretch;
}

.page-grid {
  display: grid;
  gap: 18px;
}

.page-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.bullet-panel,
.status-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(21, 25, 34, 0.92), rgba(10, 14, 20, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.feature-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--project-rx, 0deg)) rotateY(var(--project-ry, 0deg))
    translate3d(0, var(--project-ty, 0px), 0);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    340px circle at var(--project-mx, 50%) var(--project-my, 50%),
    rgba(255, 255, 255, 0.2),
    transparent 58%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(26px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.project-grid .feature-card:hover,
.projects-modal-grid .feature-card:hover {
  --project-ty: -8px;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.project-grid .feature-card:hover::before,
.project-grid .feature-card:hover::after,
.projects-modal-grid .feature-card:hover::before,
.projects-modal-grid .feature-card:hover::after {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
  transform: translateZ(34px);
}

.feature-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.feature-card-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f7f7fb;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  cursor: pointer;
}

.feature-card-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.section.project-deck-section {
  position: relative;
  min-height: 360svh;
  padding: 0;
  overflow: clip;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(126, 227, 178, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(255, 107, 214, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(12, 15, 21, 0.94), rgba(8, 10, 14, 0.98));
}

.project-deck-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 118px 0 74px;
  overflow: hidden;
}

.project-deck-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.74fr) minmax(420px, 1.26fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 34px 44px;
}

.project-deck-copy {
  position: relative;
  z-index: 3;
  max-width: 470px;
}

.project-deck-copy h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1;
}

.project-deck-stage {
  position: relative;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: min(66svh, 640px);
  perspective: 1400px;
  isolation: isolate;
}

.project-deck-stack {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.project-deck-card {
  appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 218px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f8f9fb;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform: translate3d(-50%, -50%, 0) rotate(0deg);
  transform-style: preserve-3d;
  transition: filter 220ms ease, box-shadow 220ms ease;
  will-change: transform, opacity;
}

.project-deck-card:hover,
.project-deck-card:focus-visible {
  outline: 0;
}

.project-deck-card:hover .project-deck-card-face,
.project-deck-card:focus-visible .project-deck-card-face {
  outline: 2px solid color-mix(in srgb, var(--deck-card-text) 72%, transparent);
  outline-offset: 3px;
}

.project-deck-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.84);
  outline-offset: 5px;
}

.project-deck-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--deck-card-a), var(--deck-card-b) 54%, var(--deck-card-c)),
    #151922;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateZ(1px);
}

.project-deck-card-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  pointer-events: none;
}

.project-deck-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09) 0,
      rgba(255, 255, 255, 0.09) 1px,
      transparent 1px,
      transparent 18px
    );
  opacity: 0.26;
  pointer-events: none;
}

.project-deck-card-corner,
.project-deck-card-type,
.project-deck-card-mark,
.project-deck-card-body,
.project-deck-card-action {
  position: relative;
  z-index: 1;
}

.project-deck-card-corner {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
}

.project-deck-card-type {
  align-self: flex-start;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.project-deck-card-mark {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 72px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "SF Pro Display", Inter, sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.project-deck-card-body {
  display: grid;
  gap: 8px;
}

.project-deck-card-body strong {
  color: #ffffff;
  font-size: 21px;
  line-height: 1.1;
}

.project-deck-card-body span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.project-deck-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.project-deck-card-dark {
  --deck-card-a: #151922;
  --deck-card-b: #263243;
  --deck-card-c: #101319;
}

.project-deck-card-warm {
  --deck-card-a: #3b2434;
  --deck-card-b: #7b4f43;
  --deck-card-c: #231924;
}

.project-deck-card-soft {
  --deck-card-a: #26364f;
  --deck-card-b: #786cba;
  --deck-card-c: #191d34;
}

.project-deck-card-green {
  --deck-card-a: #16362e;
  --deck-card-b: #3f8b70;
  --deck-card-c: #101c1a;
}

.project-deck-card-blue {
  --deck-card-a: #163052;
  --deck-card-b: #4d75b7;
  --deck-card-c: #101827;
}

.project-deck-card-pink {
  --deck-card-a: #402443;
  --deck-card-b: #b55c91;
  --deck-card-c: #251726;
}

.project-deck-footer {
  position: relative;
  z-index: 3;
  grid-column: 1;
}

.project-deck-more {
  appearance: none;
  width: min(100%, 340px);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(12, 16, 22, 0.72);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-deck-more:hover,
.project-deck-more:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(126, 227, 178, 0.42);
  background:
    linear-gradient(135deg, rgba(126, 227, 178, 0.16), rgba(122, 183, 255, 0.09)),
    rgba(12, 16, 22, 0.84);
}

.project-deck-more:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 4px;
}

.project-deck-more span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.project-deck-more strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .project-deck-layout {
    grid-template-columns: minmax(230px, 0.82fr) minmax(360px, 1.18fr);
    gap: 30px;
  }

  .project-deck-copy h2 {
    font-size: 42px;
  }

  .project-deck-card {
    width: 194px;
  }

  .project-deck-card-mark {
    font-size: 46px;
  }
}

@media (max-width: 900px) {
  .project-deck-section {
    min-height: 330svh;
  }

  .project-deck-sticky {
    padding: 96px 0 46px;
  }

  .project-deck-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: calc(100svh - 142px);
    gap: 22px;
  }

  .project-deck-copy {
    max-width: none;
  }

  .project-deck-copy h2 {
    font-size: 36px;
  }

  .project-deck-stage {
    grid-column: 1;
    grid-row: 2;
    min-height: 52svh;
  }

  .project-deck-footer {
    grid-column: 1;
    grid-row: 3;
  }

  .project-deck-more {
    width: 100%;
  }

  .project-deck-card {
    width: 172px;
  }

  .project-deck-card-face {
    padding: 15px;
  }

  .project-deck-card-body strong {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 560px) {
  .project-deck-section {
    min-height: 310svh;
  }

  .project-deck-sticky {
    padding: 88px 0 32px;
  }

  .project-deck-layout {
    min-height: calc(100svh - 120px);
    gap: 16px;
  }

  .project-deck-copy h2 {
    font-size: 31px;
  }

  .project-deck-stage {
    min-height: 48svh;
  }

  .project-deck-card {
    width: 148px;
  }

  .project-deck-card-face {
    gap: 10px;
    padding: 12px;
  }

  .project-deck-card-corner {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .project-deck-card-type {
    font-size: 11px;
  }

  .project-deck-card-mark {
    min-height: 48px;
    font-size: 34px;
  }

  .project-deck-card-body {
    gap: 5px;
  }

  .project-deck-card-body strong {
    font-size: 15px;
  }

  .project-deck-card-body span {
    display: none;
  }

  .project-deck-card-action {
    min-height: 32px;
    font-size: 12px;
  }

  .project-deck-more {
    min-height: 62px;
    padding: 12px 14px;
  }

  .project-deck-more strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-deck-section {
    min-height: auto;
  }

  .project-deck-sticky {
    position: relative;
    min-height: auto;
  }

  .project-deck-stage {
    min-height: 460px;
  }

  .project-deck-card {
    transition: none;
  }
}

/* Project deck motion follows anime/examples/onscroll-responsive-scope. */
.section.project-deck-section {
  display: block;
  height: 320lvh;
  min-height: 320lvh;
  padding: 0;
  overflow: visible;
  border-top: 1px solid rgba(33, 31, 26, 0.36);
  border-bottom: 1px solid rgba(33, 31, 26, 0.36);
  background: var(--paper);
  color: var(--ink);
}

.project-deck-sticky {
  position: sticky;
  top: 82px;
  display: block;
  width: 100%;
  height: calc(100lvh - 82px);
  min-height: calc(100lvh - 82px);
  padding: 0;
  overflow: hidden;
  perspective: 1000px;
  perspective-origin: 50%;
  transform-style: preserve-3d;
}

.project-deck-layout {
  position: relative;
  display: block;
  height: calc(100lvh - 82px);
  min-height: 0;
}

.project-deck-copy {
  position: absolute;
  top: 32px;
  left: 0;
  z-index: 5;
  width: min(390px, 34vw);
  max-width: none;
  padding-right: 20px;
  background: transparent;
  pointer-events: none;
}

.project-deck-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: 48px;
  line-height: 1;
}

.project-deck-copy .subtitle {
  color: var(--muted);
}

.project-deck-stage {
  position: absolute;
  inset: 0;
  display: flex;
  grid-column: auto;
  grid-row: auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  z-index: 1;
  perspective: 1000px;
  perspective-origin: 50%;
  transform-style: preserve-3d;
  isolation: isolate;
}

.project-deck-stack {
  --deck-width: min(30vh, 260px);
  --deck-height: min(40vh, 347px);
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: var(--deck-width);
  height: var(--deck-height);
  transform-style: preserve-3d;
  will-change: transform;
}

.project-deck-card {
  appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  color: var(--deck-card-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transform: none;
  transform-origin: 50% 105% 0;
  transform-style: preserve-3d;
  box-shadow:
    0 0.125em 0.75em 1px rgba(0, 0, 0, 0.05),
    0 0 0.125em 1px rgba(0, 0, 0, 0.1);
  transition: filter 220ms ease;
  will-change: transform;
}

.project-deck-card-face {
  position: absolute;
  inset: 0;
  gap: 7px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--deck-card-text) 28%, transparent);
  border-radius: inherit;
  background: var(--deck-card-bg);
  color: var(--deck-card-text);
  box-shadow: none;
  transform: translateZ(1px);
}

.project-deck-card-face::before {
  inset: 10px;
  border-color: color-mix(in srgb, var(--deck-card-text) 25%, transparent);
  border-radius: 0.65rem;
}

.project-deck-card-face::after {
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--deck-card-text) 10%, transparent) 0,
    color-mix(in srgb, var(--deck-card-text) 10%, transparent) 1px,
    transparent 1px,
    transparent 18px
  );
  opacity: 0.34;
}

.project-deck-card-corner,
.project-deck-card-type,
.project-deck-card-mark,
.project-deck-card-body strong,
.project-deck-card-body span,
.project-deck-card-action {
  color: var(--deck-card-text);
}

.project-deck-card-corner {
  width: 30px;
  height: 30px;
  background: color-mix(in srgb, var(--deck-card-text) 15%, transparent);
  font-size: 12px;
}

.project-deck-card-type {
  padding: 3px 6px;
  border-color: color-mix(in srgb, var(--deck-card-text) 28%, transparent);
  background: color-mix(in srgb, var(--deck-card-text) 8%, transparent);
  font-size: 10px;
}

.project-deck-card-mark {
  min-height: 34px;
  color: color-mix(in srgb, var(--deck-card-text) 86%, transparent);
  font-size: 32px;
  text-shadow: none;
}

.project-deck-card-body {
  gap: 3px;
}

.project-deck-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-deck-card-body span {
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--deck-card-text) 78%, transparent);
  font-size: 10px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-deck-card-action {
  min-height: 26px;
  border-color: color-mix(in srgb, var(--deck-card-text) 28%, transparent);
  background: color-mix(in srgb, var(--deck-card-text) 10%, transparent);
  font-size: 10px;
}

.project-deck-card-dark {
  --deck-card-bg: var(--ink);
  --deck-card-text: var(--paper-bright);
}

.project-deck-card-warm {
  --deck-card-bg: var(--signal);
  --deck-card-text: var(--paper-bright);
}

.project-deck-card-soft {
  --deck-card-bg: #d8d5c6;
  --deck-card-text: var(--ink);
}

.project-deck-card-green {
  --deck-card-bg: var(--signal-blue);
  --deck-card-text: var(--paper-bright);
}

.project-deck-card-blue {
  --deck-card-bg: #40534c;
  --deck-card-text: var(--paper-bright);
}

.project-deck-card-pink {
  --deck-card-bg: #7f2f25;
  --deck-card-text: var(--paper-bright);
}

.project-deck-footer {
  position: absolute;
  bottom: 44px;
  left: 50%;
  z-index: 7;
  grid-column: auto;
  transform: translateX(-50%);
}

.project-deck-more {
  width: min(340px, 34vw);
  min-height: 68px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}

.project-deck-more:hover,
.project-deck-more:focus-visible {
  border-color: var(--ink);
  background: var(--signal);
  color: var(--paper-bright);
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
}

.project-deck-more span,
.project-deck-more strong,
.project-deck-more:hover span,
.project-deck-more:hover strong,
.project-deck-more:focus-visible span,
.project-deck-more:focus-visible strong {
  color: inherit;
}

@media (max-width: 900px) {
  .project-deck-copy {
    top: 32px;
    width: min(360px, 86vw);
  }

  .project-deck-copy h2 {
    font-size: 38px;
  }

  .project-deck-copy .subtitle {
    max-width: 32ch;
  }

  .project-deck-footer {
    left: 0;
    right: 0;
    bottom: 28px;
    transform: none;
  }

  .project-deck-more {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .project-deck-sticky {
    top: 72px;
    height: calc(100lvh - 72px);
    min-height: calc(100lvh - 72px);
  }

  .project-deck-layout {
    height: calc(100lvh - 72px);
  }

  .project-deck-copy {
    top: 24px;
  }

  .project-deck-copy h2 {
    font-size: 32px;
  }

  .project-deck-copy .subtitle {
    display: none;
  }

  .project-deck-card-face {
    gap: 9px;
    padding: 12px;
  }

  .project-deck-card-body span {
    display: none;
  }

  .project-deck-footer {
    bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section.project-deck-section {
    height: auto;
    min-height: auto;
    padding: 104px 0;
  }

  .project-deck-sticky {
    position: relative;
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .project-deck-layout {
    height: auto;
  }

  .project-deck-copy,
  .project-deck-footer {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
  }

  .project-deck-stage {
    position: relative;
    min-height: 520px;
  }

  .project-deck-card {
    transform: rotate(calc((var(--deck-index, 0) - 2.5) * 7deg));
  }
}

.workspace-toolbar {
  padding: 14px;
  border-radius: 20px;
}

.quick-pill {
  justify-content: center;
  appearance: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.quick-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(126, 227, 178, 0.38);
  background: rgba(126, 227, 178, 0.11);
}

.quick-pill-strong {
  border-color: rgba(126, 227, 178, 0.34);
  background: rgba(126, 227, 178, 0.14);
  color: #dff9eb;
}

.project-more-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.project-more-button {
  min-width: 176px;
  background: #f3f4f7;
  color: #0b0b0d;
  border-color: #f3f4f7;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.1);
}

.project-more-button:hover {
  background: #ffffff;
  color: #0b0b0d;
  border-color: #ffffff;
}

.projects-modal-panel {
  width: min(1180px, 100%);
}

.projects-modal .report-modal-backdrop {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.13), transparent 34%),
    rgba(5, 5, 8, 0.78);
}

.projects-modal .report-modal-panel {
  transform-origin: center 58%;
  transform: perspective(1200px) translate3d(0, 42px, -160px) rotateX(10deg) scale(0.92);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.18, 1, 0.22, 1), opacity 260ms ease;
}

.projects-modal.is-open .report-modal-panel {
  transform: perspective(1200px) translate3d(0, 0, 0) rotateX(0deg) scale(1);
  opacity: 1;
}

.project-search {
  display: grid;
  gap: 10px;
  margin: 8px 0 20px;
}

.project-search-label {
  color: #c8c9d4;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-search-input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #f7f7fb;
  padding: 0 18px;
  font: inherit;
  outline: none;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.project-search-input::placeholder {
  color: #777986;
}

.project-search-input:focus {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}

.project-search-count {
  margin: 0;
  color: #8f93a3;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.projects-modal-grid {
  margin-top: 20px;
}

.projects-modal-grid .feature-card.is-filtered-out {
  display: none;
}

.project-empty-state {
  margin: 18px 0 0;
  border: 1px dashed #353844;
  border-radius: 20px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.report-modal {
  position: fixed;
  inset: 0;
  z-index: 54;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.report-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0ms step-start;
}

.report-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.76);
  backdrop-filter: blur(14px);
}

.report-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(86vh, 960px);
  overflow: auto;
  border: 1px solid #2d3038;
  border-radius: 30px;
  background: linear-gradient(180deg, #111218, #090a0d 74%);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.5);
  padding: 30px;
}

.report-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.report-modal-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.report-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f7f7fb;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.report-modal-close:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.report-article {
  display: grid;
  gap: 20px;
}

.report-hero-card,
.report-compare-card,
.report-point,
.report-section {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(16, 17, 22, 0.88);
}

.report-hero-card,
.report-section {
  padding: 24px;
}

.report-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171922;
  color: #d7d9e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-hero-card p,
.report-section p {
  margin: 14px 0 0;
  color: #d4d7e2;
}

.report-section h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.06;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.report-compare-card {
  padding: 22px;
}

.report-compare-card span {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #c8c9d4;
  text-transform: uppercase;
}

.report-compare-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #d7d8e3;
  display: grid;
  gap: 12px;
}

.report-stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.report-point {
  padding: 22px;
}

.report-point strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}

.report-point p {
  margin: 10px 0 0;
  color: var(--muted);
}

.report-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}

.report-table-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 0;
}

.report-table-row span {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7d8e3;
}

.report-table-row span:last-child {
  border-right: 0;
}

.report-table-row:last-child span {
  border-bottom: 0;
}

.report-table-head span {
  background: #151821;
  color: #f4f5fb;
  font-weight: 600;
}

.feature-card h3,
.bullet-panel h3,
.status-card strong {
  margin: 0;
}

.status-card strong {
  display: block;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-card p:last-child,
.bullet-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.status-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.game-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.game-tag-list span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ebedf7;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.game-card {
  justify-content: flex-start;
  min-height: 420px;
}

.game-card .work-index {
  margin-bottom: 2px;
}

.game-cover-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 8px 0 6px;
}

.game-cover-tile {
  position: relative;
  aspect-ratio: 0.72;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #1a2130, #101114);
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.game-cover-tile:nth-child(4),
.game-cover-tile:nth-child(5) {
  grid-column: span 1;
}

.game-cover-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
}

.game-cover-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-cover-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 100%);
}

.game-cover-title {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.game-shelf-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.game-more-link {
  min-width: 180px;
  background: #f3f4f7;
  color: #0b0b0d;
  border-color: #f3f4f7;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.1);
}

.game-more-link:hover {
  background: #ffffff;
  color: #0b0b0d;
  border-color: #ffffff;
}

.feature-card-warm {
  background: linear-gradient(180deg, #201a13, #0f0f13 72%);
}

.feature-card-soft {
  background: linear-gradient(180deg, #161d25, #0f0f13 72%);
}

.feature-card-dark {
  background: linear-gradient(180deg, #17131d, #0f0f13 72%);
}

.bullet-panels {
  display: grid;
  gap: 16px;
  width: min(640px, 100%);
}

.bullet-panel {
  padding: 24px;
}

.anime-overview {
  display: grid;
  gap: 22px;
}

.anime-overview-head {
  align-items: flex-end;
}

.anime-overview-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.anime-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.anime-focus-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #14141b, #0f0f13 72%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  padding: 24px;
}

.anime-focus-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171922;
  color: #d7d9e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.anime-focus-card h3 {
  margin: 16px 0 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.08;
}

.anime-focus-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.anime-shelf {
  margin-top: 42px;
  display: grid;
  gap: 22px;
}

.anime-shelf-head {
  align-items: flex-end;
}

.anime-shelf-copy {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.anime-cover-stack-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px) auto;
  align-items: center;
  gap: 24px;
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 26%, rgba(92, 219, 186, 0.13), transparent 34%),
    linear-gradient(180deg, #151822, #0e0f13 76%);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.anime-cover-stack-panel .photo-stack {
  width: min(260px, 64vw);
}

.anime-cover-stack-panel .photo-stack-next {
  align-self: end;
  margin-bottom: 8px;
  white-space: nowrap;
}

.anime-shelf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0f13;
}

.anime-shelf-status {
  color: #cfcfda;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.anime-shelf-note {
  color: #8f93a3;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: right;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.anime-shelf-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.anime-more-link {
  min-width: 180px;
  background: #f3f4f7;
  color: #0b0b0d;
  border-color: #f3f4f7;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.12);
}

.anime-more-link:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #0b0b0d;
}

.anime-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #0f0f13;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  transform: translateY(0) scale(1);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.anime-card-cover {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1d2332, #111114 75%);
  overflow: hidden;
  position: relative;
}

.anime-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 11, 0) 40%, rgba(8, 8, 11, 0.78) 100%);
  opacity: 0.68;
  transition: opacity 260ms ease;
}

.anime-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 360ms ease;
}

.anime-card-body {
  padding: 22px;
  display: grid;
  gap: 14px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.anime-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anime-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171922;
  color: #d7d9e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.anime-card h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
}

.anime-card p {
  margin: 0;
  color: var(--muted);
}

.anime-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  opacity: 0.82;
  transition: opacity 220ms ease, transform 220ms ease;
}

.anime-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #3a3c49;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

.anime-card:hover .anime-card-cover img {
  transform: scale(1.08);
}

.anime-card:hover .anime-card-cover::after {
  opacity: 0.42;
}

.anime-card:hover .anime-card-link {
  opacity: 1;
  transform: translateX(3px);
}

.anime-card-empty {
  grid-column: 1 / -1;
  border: 1px dashed #32323a;
  border-radius: 24px;
  padding: 28px;
  background: #0f0f13;
}

.anime-card-empty p {
  margin: 10px 0 0;
  color: var(--muted);
}

.anime-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.anime-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0ms step-start;
}

.anime-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(10px);
}

.anime-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  border: 1px solid #2a2b32;
  border-radius: 28px;
  background: #0b0b0f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 28px;
  z-index: 1;
}

.anime-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.anime-modal-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.music-shelf {
  display: grid;
  gap: 22px;
}

.music-shelf-head {
  align-items: flex-end;
}

.music-shelf-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.music-shelf-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0f13;
}

.music-shelf-status {
  color: #cfcfda;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.music-shelf-note {
  color: #8f93a3;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-align: right;
}

.music-playlist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.music-playlist-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #14141b, #0f0f13 68%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 22px;
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.music-playlist-card:hover {
  transform: translateY(-8px);
  border-color: #383b4a;
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.34);
}

.music-playlist-cover {
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #1b2232, #111114 76%);
}

.music-playlist-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.68) 100%);
}

.music-playlist-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 360ms ease;
}

.music-playlist-card:hover .music-playlist-cover img {
  transform: scale(1.06);
}

.music-playlist-headline {
  display: grid;
  gap: 8px;
}

.music-playlist-headline h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.08;
}

.music-playlist-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171922;
  color: #d7d9e6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.music-track-preview {
  display: grid;
  gap: 12px;
}

.music-track-preview-item,
.music-modal-track {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.music-track-cover,
.music-modal-track-cover {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #181922;
}

.music-track-cover img,
.music-modal-track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.music-track-text,
.music-modal-track-text {
  min-width: 0;
}

.music-track-text strong,
.music-modal-track-text strong {
  display: block;
  margin: 0;
  font-size: 16px;
  line-height: 1.15;
}

.music-track-text span,
.music-modal-track-text span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.music-playlist-actions {
  display: flex;
  justify-content: flex-start;
}

.music-playlist-button {
  min-width: 160px;
  background: #f3f4f7;
  color: #0b0b0d;
  border-color: #f3f4f7;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.1);
}

.music-playlist-button:hover {
  background: #ffffff;
  color: #0b0b0d;
  border-color: #ffffff;
}

.music-modal {
  position: fixed;
  inset: 0;
  z-index: 52;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.music-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0ms step-start;
}

.music-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(10px);
}

.music-modal-panel {
  position: relative;
  width: min(980px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  border: 1px solid #2a2b32;
  border-radius: 28px;
  background: #0b0b0f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 28px;
  z-index: 1;
}

.music-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.music-modal-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.music-modal-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #13131a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.music-modal-list {
  display: grid;
  gap: 12px;
}

.music-modal-track {
  padding: 12px;
  border: 1px solid #202129;
  border-radius: 18px;
  background: #101015;
}

body.is-music-modal-open {
  overflow: hidden;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 53;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms step-end;
}

.game-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease, visibility 0ms step-start;
}

.game-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.74);
  backdrop-filter: blur(10px);
}

.game-modal-panel {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(82vh, 900px);
  overflow: auto;
  border: 1px solid #2a2b32;
  border-radius: 28px;
  background: #0b0b0f;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  padding: 28px;
  z-index: 1;
}

.game-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.game-modal-subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.game-modal-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #13131a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.game-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-modal-card {
  border: 1px solid #262832;
  border-radius: 24px;
  overflow: hidden;
  background: #101015;
}

.game-modal-card-cover {
  aspect-ratio: 0.74;
  background: linear-gradient(180deg, #1a2130, #101114);
}

.game-modal-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-modal-card-body {
  padding: 18px;
}

.game-modal-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.game-modal-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.game-modal-card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #171922;
  color: #d7d9e6;
  font-size: 12px;
  letter-spacing: 0.05em;
}

body.is-game-modal-open {
  overflow: hidden;
}

body.is-report-modal-open {
  overflow: hidden;
}

.anime-modal-close {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #13131a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

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

body.is-modal-open {
  overflow: hidden;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  padding: 24px;
}

.status-card span {
  display: block;
  margin-bottom: 14px;
  color: #9a9aa7;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 116px;
  }

  .life-hero-layout,
  .anime-cover-stack-panel {
    grid-template-columns: 1fr;
  }

  .life-photo-stack-panel {
    margin-top: 18px;
  }

  .anime-cover-stack-panel .photo-stack-next {
    justify-self: center;
    margin-bottom: 0;
  }

  .hero-depth::before {
    width: 78vw;
    right: -18vw;
  }

  .hero-bottom,
  .split {
    flex-direction: column;
  }

  .hero-dashboard,
  .workspace-strip,
  .surface-grid {
    grid-template-columns: 1fr;
  }

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

  .work-grid,
  .service-list,
  .page-grid-2,
  .page-grid-3,
  .anime-focus-grid,
  .anime-grid,
  .anime-grid-modal,
  .music-playlist-grid,
  .game-modal-grid,
  .report-grid,
  .status-strip,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-rows: none;
  }

  .report-table-row {
    grid-template-columns: 1fr;
  }

  .report-table-row span {
    border-right: 0;
  }

  .contact-card-feature {
    grid-row: auto;
  }

  .menu {
    gap: 8px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .anime-shelf-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .anime-shelf-note {
    text-align: left;
  }

  .music-shelf-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .music-shelf-note {
    text-align: left;
  }

  .game-cover-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 64px 0;
  }

  .section-about {
    padding-top: 88px;
    padding-bottom: 120px;
  }

  .section-contact {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .section-notes {
    padding-top: 96px;
    padding-bottom: 112px;
  }

  .subtitle {
    font-size: 17px;
  }

  .surface-shell {
    padding: 22px;
  }

  .story-item {
    opacity: 1;
    transform: none;
  }

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

  .story-progress {
    display: none;
  }

  .contact-link {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .hero > .container,
  .hero-depth::before,
  .hero-depth-orb,
  .hero-depth-grid,
  .feature-card,
  .feature-card > *,
  .feature-card::after,
  .projects-modal .report-modal-panel {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }

  .splash-cursor-layer {
    display: none;
  }

  .entrance,
  .interactive-enter .enter-dot,
  .interactive-enter .enter-label,
  .interactive-enter .enter-back {
    transition: none;
  }

  body.has-scroll-motion [data-scroll-stage],
  body.has-scroll-motion [data-parallax] {
    transform: none;
    opacity: 1;
    filter: none;
    transition: none;
  }
}

/* Signal Paper theme ------------------------------------------------------ */
:root {
  --bg: #f3f0e9;
  --panel: #f8f6f1;
  --panel-2: #ece8df;
  --text: #171716;
  --muted: #65635e;
  --line: #b8b2a8;
  --brand: #ff3b12;
  --cyan: #1f43ff;
  --yellow: #f2b441;
  --pink: #ff3b12;
  --accent: #ff3b12;
  --blue: #1f43ff;
  --paper: #f3f0e9;
  --paper-bright: #faf8f3;
  --signal: #ff3b12;
  --signal-blue: #1f43ff;
  --ink: #171716;
}

html {
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 16px;
}

::selection {
  background: var(--signal);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--signal-blue);
  outline-offset: 4px;
}

.noise,
.hero-depth {
  display: none;
}

.global-progress {
  height: 3px;
  background: var(--signal);
}

.cursor-glow {
  width: 280px;
  height: 280px;
  margin-left: -140px;
  margin-top: -140px;
  background: rgba(255, 59, 18, 0.08);
  filter: blur(28px);
}

.entrance {
  background: var(--paper);
  color: var(--ink);
}

.entrance-panel {
  width: min(920px, 90vw);
  justify-items: center;
  text-align: center;
  gap: 20px;
}

.entrance-kicker,
.entrance-loading {
  color: var(--signal);
  font-weight: 700;
}

.entrance-panel h1 {
  max-width: none;
  text-align: center;
  font-family: "Avenir Next Condensed", "PingFang SC", sans-serif;
  font-weight: 800;
  font-size: clamp(64px, 7.6vw, 126px);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.interactive-enter {
  justify-self: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--signal);
  color: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}

.interactive-enter .enter-dot {
  background: #fff;
}

.interactive-enter .enter-back {
  color: #fff;
  background: var(--ink);
}

.container {
  width: min(1280px, 92vw);
}

.header {
  background: rgba(243, 240, 233, 0.9);
  border-bottom: 1px solid rgba(23, 23, 22, 0.65);
  backdrop-filter: blur(16px);
}

.nav {
  height: 82px;
}

.logo {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  background: var(--signal-blue);
  vertical-align: 0.12em;
}

.menu {
  gap: clamp(18px, 3.5vw, 54px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.menu a {
  position: relative;
  padding: 10px 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
}

.menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.menu a:hover {
  color: var(--signal);
  background: transparent;
}

.menu a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.section {
  padding: 104px 0;
}

.hero {
  padding-top: 138px;
  padding-bottom: 38px;
  min-height: 720px;
  border-bottom: 1px solid rgba(23, 23, 22, 0.62);
  background: var(--paper);
}

.hero > .container {
  transform: none;
  transition: none;
}

.eyebrow {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.2em;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 18px;
  margin-right: 16px;
  background: var(--signal-blue);
  vertical-align: -4px;
}

.hero-title,
h2,
h3 {
  color: var(--ink);
}

.hero-title {
  font-family: "Avenir Next Condensed", "PingFang SC", sans-serif;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero-title-home {
  position: relative;
  z-index: 2;
  max-width: 10ch;
  margin-top: 22px;
  font-size: clamp(74px, 9.3vw, 148px);
  line-height: 0.76;
}

.hero-title-work,
.page-life .hero-title {
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.hero-title-work {
  max-width: 8.5ch;
  font-size: clamp(68px, 7vw, 108px);
  line-height: 0.86;
}

.page-work .hero > .container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.62fr);
  grid-template-areas:
    "work-eyebrow work-side"
    "work-title work-side"
    "work-strip work-strip";
  column-gap: clamp(48px, 7vw, 108px);
  align-items: start;
}

.page-work .hero .eyebrow {
  grid-area: work-eyebrow;
}

.page-work .hero-title {
  grid-area: work-title;
}

.page-work .hero-bottom {
  grid-area: work-side;
  width: 100%;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.page-work .workspace-strip {
  grid-area: work-strip;
}

.work-archive-marker {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: var(--signal);
}

.work-archive-marker strong {
  font-family: "Avenir Next Condensed", sans-serif;
  font-size: clamp(94px, 11vw, 158px);
  font-weight: 800;
  line-height: 0.68;
  letter-spacing: -0.06em;
}

.work-archive-marker span {
  padding-bottom: 2px;
  color: var(--signal-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0.08em;
}

.hero-line {
  padding-right: 0.05em;
  padding-bottom: 0.11em;
}

body.intro-settled .hero-line {
  overflow: visible;
}

.page-life .hero-title {
  line-height: 0.96;
}

h2 {
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-transform: none;
}

h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
}

.subtitle,
.subtitle-dynamic {
  color: var(--muted);
}

.subtitle {
  line-height: 1.72;
}

.page-home .hero > .container {
  min-height: 570px;
}

.page-home .hero .eyebrow,
.page-home .hero-title,
.page-home .hero-bottom,
.page-home .hero-dashboard {
  position: relative;
  z-index: 2;
}

.hero-editorial-art {
  position: absolute;
  z-index: 1;
  top: -58px;
  right: -18vw;
  width: min(820px, 69vw);
  margin: 0;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-editorial-art img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: normal;
}

.hero-editorial-note {
  position: absolute;
  z-index: 3;
  color: var(--signal-blue);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.hero-editorial-note span {
  display: block;
  width: 20px;
  height: 3px;
  margin-bottom: 10px;
  background: var(--signal-blue);
}

.hero-editorial-note p {
  margin: 0;
}

.hero-editorial-note-work {
  top: 92px;
  right: 31%;
}

.hero-editorial-note-life {
  right: 23%;
  bottom: 138px;
}

.hero-bottom {
  width: min(590px, 58%);
  align-items: flex-start;
  flex-direction: column;
}

.page-home .hero-bottom {
  margin-top: 6px;
}

.hero-actions {
  gap: 18px;
  margin-top: 12px;
}

.btn {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.hero-actions .btn {
  min-width: 168px;
}

.btn-primary {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.btn-ghost {
  background: rgba(250, 248, 243, 0.72);
  color: var(--ink);
}

.btn:hover {
  transform: translate(-3px, -3px);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.hero-dashboard,
.workspace-strip {
  position: relative;
  z-index: 3;
  margin-top: 36px;
}

.hero-dashboard {
  display: block;
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(243, 240, 233, 0.84);
}

.stat-panel {
  min-height: 94px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid rgba(23, 23, 22, 0.4);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.stat-panel:last-child {
  border-right: 0;
}

.stat-panel strong {
  color: var(--signal);
  font-family: "Avenir Next Condensed", sans-serif;
  font-size: 27px;
}

.stat-panel span {
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
}

.stat-panel em {
  color: var(--muted);
  font-size: 12px;
}

.workspace-strip {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.workspace-strip .hero-stats {
  border: 0;
}

.workspace-toolbar {
  align-self: stretch;
  align-content: center;
  justify-content: flex-start;
  padding: 16px 20px;
  border: 0;
  border-left: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.quick-pill,
.hero-console-tags span,
.surface-chip {
  min-height: 34px;
  border-color: var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.quick-pill:hover,
.quick-pill-strong {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.marquee-wrap {
  border-color: var(--ink);
  background: var(--signal);
  color: #fff;
}

.marquee-track {
  padding: 15px 0;
  color: #fff;
  font-family: "Avenir Next Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.marquee-item::after {
  color: #fff;
}

.section-surface,
.section-about,
.section-notes {
  background: #ebe7df;
}

.surface-shell,
.hero-console {
  border: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.surface-shell {
  padding: 34px 0;
}

.surface-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.surface-card {
  min-height: 270px;
  padding: 28px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.surface-card:last-child {
  border-right: 0;
}

.surface-card::before,
.surface-bars,
.work-card::before,
.work-card::after,
.feature-card::before,
.feature-card::after {
  display: none;
}

.surface-chip {
  color: var(--signal);
  border-color: var(--signal);
}

.surface-card p,
.work-card p,
.feature-card p:last-child,
.bullet-panel p,
.status-card p,
.anime-focus-card p,
.anime-card p,
.music-track-text span,
.music-modal-track-text span {
  color: var(--muted);
}

.split {
  gap: 56px;
}

.section-head {
  margin-bottom: 44px;
}

.work-grid,
.page-grid,
.anime-focus-grid,
.anime-grid,
.music-playlist-grid,
.game-modal-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.work-card,
.feature-card,
.bullet-panel,
.status-card,
.anime-focus-card,
.anime-card,
.music-playlist-card,
.game-modal-card {
  border: 0;
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: none;
}

.work-card,
.feature-card {
  min-height: 300px;
  padding: 28px;
}

.work-card:hover,
.project-grid .feature-card:hover,
.projects-modal-grid .feature-card:hover,
.music-playlist-card:hover,
.anime-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 14px 0 rgba(255, 59, 18, 0.18);
}

.work-index,
.game-card .work-index,
.anime-focus-kicker,
.anime-pill,
.music-playlist-kicker,
.project-search-count {
  color: var(--signal);
  font-weight: 750;
}

.work-card span,
.game-tag-list span,
.game-modal-card-tags span {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.accent-cyan {
  background: var(--signal);
  color: #fff;
}

.accent-cyan h3,
.accent-cyan p,
.accent-cyan .work-index {
  color: #fff;
}

.accent-yellow,
.feature-card-warm {
  background: #f4ddd4;
}

.accent-pink {
  background: var(--signal-blue);
  color: #fff;
}

.accent-pink h3,
.accent-pink p,
.accent-pink .work-index {
  color: #fff;
}

.feature-card-soft,
.feature-card-dark {
  background: var(--paper-bright);
}

.services,
.story-panel,
.service-list div,
.contact-card,
.anime-shelf,
.music-shelf,
.anime-cover-stack-panel,
.photo-stack-panel {
  border-color: var(--line);
}

.service-list div,
.story-item,
.contact-card {
  border-radius: 0;
  background: transparent;
}

.story-progress-line {
  background: var(--line);
}

.story-progress-fill,
.story-progress-dot.active {
  background: var(--signal);
}

.story-progress-dot {
  border-color: var(--signal);
  background: var(--paper);
}

.contact-card {
  border: 1px solid var(--ink);
}

.contact-card-feature {
  background: var(--signal);
  color: #fff;
}

.contact-card-feature span,
.contact-card-feature p,
.contact-card-feature strong {
  color: #fff;
}

.contact-link,
.contact-card-link,
.feature-card-link,
.anime-card-link,
.music-playlist-button,
.game-more-link,
.anime-more-link,
.project-more-button {
  border-color: var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.contact-link:hover,
.contact-card-link:hover,
.feature-card-link:hover,
.anime-card-link:hover,
.music-playlist-button:hover,
.game-more-link:hover,
.anime-more-link:hover,
.project-more-button:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.page-work .contact .contact-link {
  display: block;
  width: 100%;
  margin-top: 32px;
  padding: 24px 30px 28px;
  border: 2px solid var(--signal);
  background: var(--signal);
  color: #fff;
  font-size: clamp(42px, 5.8vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.page-work .contact .contact-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.photo-stack-panel,
.anime-cover-stack-panel {
  border-radius: 0;
  background: #e7e2d8;
  box-shadow: none;
}

.photo-stack-panel::before {
  display: none;
}

.photo-stack-card {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  box-shadow: 12px 14px 0 rgba(23, 23, 22, 0.14);
}

.photo-stack-card::after,
.anime-card-cover::after,
.music-playlist-cover::after,
.game-cover-tile::after {
  display: none;
}

.photo-stack-next {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--signal);
  color: #fff;
}

.anime-shelf,
.music-shelf {
  border-radius: 0;
  background: transparent;
}

.anime-focus-card,
.music-playlist-card,
.anime-card,
.game-modal-card {
  color: var(--ink);
}

.anime-shelf-status,
.music-shelf-status {
  border-radius: 0;
  background: var(--signal);
  color: #fff;
}

.anime-shelf-note,
.music-shelf-note,
.anime-overview-copy,
.anime-shelf-copy,
.music-shelf-copy {
  color: var(--muted);
}

.anime-card-cover,
.music-playlist-cover,
.game-modal-card-cover,
.game-cover-tile {
  border-radius: 0;
  background: #d9d4ca;
}

.music-track-preview-item,
.music-modal-track {
  border-color: var(--line);
  border-radius: 0;
  background: var(--paper-bright);
}

.report-modal-backdrop,
.anime-modal-backdrop,
.music-modal-backdrop,
.game-modal-backdrop,
.projects-modal .report-modal-backdrop {
  background: rgba(23, 23, 22, 0.64);
  backdrop-filter: blur(10px);
}

.report-modal-panel,
.anime-modal-panel,
.music-modal-panel,
.game-modal-panel {
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 18px 18px 0 rgba(23, 23, 22, 0.34);
}

.report-modal-close,
.anime-modal-close,
.music-modal-close,
.game-modal-close {
  border-color: var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.report-modal-close:hover,
.anime-modal-close:hover,
.music-modal-close:hover,
.game-modal-close:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.project-search-label,
.report-modal-subtitle,
.anime-modal-subtitle,
.music-modal-subtitle,
.game-modal-subtitle {
  color: var(--muted);
}

.project-search-input {
  border-color: var(--ink);
  border-radius: 0;
  background: var(--paper-bright);
  color: var(--ink);
}

.project-search-input::placeholder {
  color: #85817a;
}

.project-search-input:focus {
  border-color: var(--signal-blue);
  background: #fff;
  box-shadow: 5px 5px 0 rgba(31, 67, 255, 0.18);
}

.project-empty-state,
.report-hero-card,
.report-compare-card,
.report-point,
.report-section {
  border-color: var(--line);
  border-radius: 0;
  background: var(--paper-bright);
  color: var(--ink);
}

.report-kicker,
.report-point strong,
.report-compare-card span,
.report-table-head span {
  color: var(--signal);
}

.report-hero-card p,
.report-section p,
.report-point p,
.report-table-row span:last-child,
.report-compare-card ul {
  color: var(--muted);
}

.report-table,
.report-table-row,
.report-table-row span {
  border-color: var(--line);
}

.status-strip {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.status-card {
  min-height: 210px;
}

.status-card strong {
  color: var(--signal);
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 680px);
  }

  .header {
    position: sticky;
  }

  .nav {
    height: auto;
    min-height: 72px;
    align-items: center;
  }

  .menu {
    gap: 14px;
    overflow-x: auto;
  }

  .menu a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .section {
    padding: 74px 0;
  }

  .hero {
    min-height: 0;
    padding-top: 72px;
  }

  .page-home .hero > .container {
    min-height: 660px;
  }

  .hero-title-home {
    max-width: 100%;
    font-size: clamp(60px, 16vw, 108px);
  }

  .hero-title-work,
  .page-life .hero-title {
    font-size: clamp(58px, 15vw, 96px);
  }

  .page-work .hero > .container {
    display: block;
  }

  .page-work .hero-bottom {
    margin-top: 30px;
  }

  .hero-editorial-art {
    top: 200px;
    right: -36vw;
    width: min(720px, 115vw);
    opacity: 0.32;
  }

  .hero-editorial-note {
    display: none;
  }

  .hero-bottom,
  .page-home .hero-bottom {
    width: 100%;
    max-width: 520px;
    margin-top: 24px;
  }

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

  .stat-panel:nth-child(2) {
    border-right: 0;
  }

  .stat-panel:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(23, 23, 22, 0.4);
  }

  .workspace-strip {
    grid-template-columns: 1fr;
  }

  .workspace-toolbar {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .split,
  .hero-bottom,
  .life-hero-layout {
    gap: 28px;
  }

  .surface-grid,
  .work-grid,
  .page-grid-3,
  .page-grid-2,
  .anime-focus-grid,
  .anime-grid,
  .music-playlist-grid,
  .game-modal-grid {
    grid-template-columns: 1fr;
  }

  .surface-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .surface-card:last-child {
    border-bottom: 0;
  }

  .report-modal,
  .anime-modal,
  .music-modal,
  .game-modal {
    padding: 12px;
  }

  .report-modal-panel,
  .anime-modal-panel,
  .music-modal-panel,
  .game-modal-panel {
    padding: 22px;
    box-shadow: 8px 8px 0 rgba(23, 23, 22, 0.26);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 520px);
  }

  .logo {
    font-size: 17px;
  }

  .menu {
    gap: 12px;
  }

  .menu a {
    font-size: 12px;
  }

  .page-home .hero > .container {
    min-height: 600px;
  }

  .hero-title-home {
    max-width: 100%;
    font-size: clamp(50px, 16vw, 76px);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-editorial-art {
    top: 250px;
    right: -58vw;
    width: 140vw;
  }

  .hero-dashboard {
    margin-top: 22px;
  }

  .stat-panel {
    min-height: 88px;
    padding: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .work-card,
  .feature-card,
  .surface-card {
    min-height: 250px;
    padding: 22px;
  }

  .page-work .contact .contact-link {
    padding: 20px;
    font-size: clamp(32px, 11vw, 48px);
  }
}

/* Pointer-aware card edge glow, tuned to the Signal Paper palette. */
.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-red: rgba(255, 59, 18, 0.96);
  --glow-gold: rgba(242, 180, 65, 0.9);
  --glow-blue: rgba(31, 67, 255, 0.92);
  --glow-fill: rgba(255, 59, 18, 0.12);
  position: relative;
  isolation: isolate;
  transform-style: preserve-3d;
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}

.border-glow-card::before {
  z-index: 4;
  padding: 2px;
  background: conic-gradient(
    from calc(var(--cursor-angle) - 38deg),
    transparent 0deg,
    var(--glow-blue) 15deg,
    var(--glow-gold) 38deg,
    var(--glow-red) 61deg,
    transparent 76deg 360deg
  );
  opacity: calc(var(--edge-proximity) * 0.01);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.border-glow-card::after {
  z-index: 0;
  background: radial-gradient(
    240px circle at var(--glow-x) var(--glow-y),
    var(--glow-fill),
    transparent 70%
  );
  opacity: calc(var(--edge-proximity) * 0.007);
}

.border-glow-card > .edge-light {
  z-index: 3;
  transform: none;
  opacity: calc(var(--edge-proximity) * 0.0085);
  -webkit-mask-image: conic-gradient(
    from calc(var(--cursor-angle) - 48deg),
    transparent 0deg,
    #000 20deg 76deg,
    transparent 96deg 360deg
  );
  mask-image: conic-gradient(
    from calc(var(--cursor-angle) - 48deg),
    transparent 0deg,
    #000 20deg 76deg,
    transparent 96deg 360deg
  );
  box-shadow:
    inset 0 0 0 1px var(--glow-red),
    inset 0 0 12px rgba(255, 59, 18, 0.24),
    inset 0 0 24px rgba(31, 67, 255, 0.12);
}

.border-glow-card > :not(.edge-light) {
  position: relative;
  z-index: 2;
}

.border-glow-card > .project-deck-card-face {
  position: absolute;
}

.border-glow-card.accent-cyan,
.border-glow-card.accent-pink,
.border-glow-card.contact-card-feature {
  --glow-red: rgba(255, 255, 255, 0.98);
  --glow-gold: rgba(242, 180, 65, 0.98);
  --glow-blue: rgba(155, 202, 255, 0.98);
  --glow-fill: rgba(255, 255, 255, 0.2);
}

.border-glow-card:focus-visible::before,
.border-glow-card:focus-within::before {
  opacity: 0.92;
}

.border-glow-card:focus-visible > .edge-light,
.border-glow-card:focus-within > .edge-light {
  opacity: 0.68;
}

@media (hover: none), (pointer: coarse) {
  .border-glow-card {
    --edge-proximity: 26;
    --cursor-angle: 100deg;
  }

  .border-glow-card::after,
  .border-glow-card > .edge-light {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .border-glow-card::before,
  .border-glow-card::after,
  .border-glow-card > .edge-light {
    transition: none;
  }
}

/* Click-to-flip photo stacks -------------------------------------------- */
.photo-stack-panel,
.anime-cover-stack-panel {
  border-radius: 38px;
  overflow: hidden;
}

.swipe-stack {
  position: relative;
  width: 100%;
  height: clamp(420px, 52vh, 500px);
  overflow: hidden;
  border: 1px solid rgba(23, 23, 22, 0.34);
  border-radius: 32px;
  background:
    linear-gradient(rgba(23, 23, 22, 0.035) 1px, transparent 1px),
    var(--paper-bright);
  background-size: 100% 24px;
  box-shadow: inset 0 0 0 8px rgba(243, 240, 233, 0.74);
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  contain: layout paint;
  isolation: isolate;
}

.swipe-stack .photo-stack-card {
  position: absolute;
  inset: 24px 22px 34px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(23, 23, 22, 0.78);
  border-radius: 40px;
  background: var(--paper-bright);
  box-shadow:
    0 0 30px rgba(23, 23, 22, 0.14),
    0 3px 0 rgba(23, 23, 22, 0.1);
  transform-origin: top center;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform 150ms cubic-bezier(0.22, 0.9, 0.32, 1),
    opacity 150ms ease;
  will-change: transform, opacity;
  contain: layout paint style;
}

.swipe-stack .photo-stack-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  pointer-events: none;
}

.swipe-stack .photo-stack-card[data-stack-position="0"] {
  z-index: 6;
  opacity: 1;
  transform: translate3d(0, 0, 80px) rotateZ(0) scale(1);
}

.swipe-stack .photo-stack-card[data-stack-position="1"] {
  z-index: 5;
  opacity: 0.96;
  transform: translate3d(0, 13px, 50px) rotateZ(1.8deg) scale(0.96);
}

.swipe-stack .photo-stack-card[data-stack-position="2"] {
  z-index: 4;
  opacity: 0.86;
  transform: translate3d(0, 25px, 25px) rotateZ(-2.2deg) scale(0.92);
}

.swipe-stack .photo-stack-card[data-stack-position="3"] {
  z-index: 3;
  opacity: 0.68;
  transform: translate3d(0, 36px, 0) rotateZ(2.8deg) scale(0.88);
}

.swipe-stack .photo-stack-card[data-stack-position="4"] {
  z-index: 2;
  opacity: 0.42;
  transform: translate3d(0, 46px, -20px) rotateZ(-3.2deg) scale(0.84);
}

.swipe-stack .photo-stack-card[data-stack-position="hidden"] {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 54px, -50px) scale(0.8);
}

.swipe-stack.is-resetting .photo-stack-card {
  transition: none !important;
}

.swipe-stack.is-committing {
  pointer-events: none;
}

.swipe-stack:not(.is-committing):hover .photo-stack-card[data-stack-position="0"] {
  box-shadow:
    0 0 38px rgba(23, 23, 22, 0.18),
    0 4px 0 rgba(23, 23, 22, 0.12);
}

.photo-stack-label {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 20px;
  background: rgba(23, 23, 22, 0.76);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  text-align: left;
  backdrop-filter: blur(14px);
}

.swipe-stack:focus-visible {
  outline: 3px solid var(--signal-blue);
  outline-offset: 5px;
}

.anime-cover-stack-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  min-height: 520px;
}

.anime-cover-stack-panel .photo-stack {
  width: min(390px, 72vw);
}

@media (max-width: 900px) {
  .photo-stack-panel,
  .anime-cover-stack-panel {
    border-radius: 34px;
  }

  .anime-cover-stack-panel {
    min-height: 0;
  }

  .anime-cover-stack-panel .photo-stack {
    width: min(100%, 440px);
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .photo-stack-panel,
  .anime-cover-stack-panel {
    padding: 18px;
    border-radius: 28px;
  }

  .swipe-stack {
    height: 420px;
    border-radius: 26px;
  }

  .swipe-stack .photo-stack-card {
    inset: 18px 14px 28px;
    border-radius: 32px;
  }

  .photo-stack-label {
    right: 12px;
    bottom: 12px;
    left: 12px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-stack .photo-stack-card {
    transition: none;
  }
}


/* Retro Magazine theme ----------------------------------------------------
 * 冷调书写纸 + 砖红 + 墨绿，衬线标题，方角印刷感。
 * 只覆盖视觉风格（颜色 / 字体 / 圆角 / 阴影），不改布局。
 * ------------------------------------------------------------------------ */
:root {
  --bg: #f0eee4;
  --panel: #f5f4ea;
  --panel-2: #e9e7d8;
  --text: #211f1a;
  --muted: #6d6a5e;
  --line: #c4bfae;
  --brand: #a03a2b;
  --cyan: #2e4b3f;
  --yellow: #c9a227;
  --pink: #a03a2b;
  --accent: #a03a2b;
  --blue: #2e4b3f;
  --paper: #f0eee4;
  --paper-bright: #f7f6ee;
  --signal: #a03a2b;
  --signal-blue: #2e4b3f;
  --ink: #211f1a;
}

/* 衬线标题：杂志名Plate感 */
.entrance-panel h1,
.hero-title,
.hero-title-work,
.page-life .hero-title,
h2,
h3,
.logo,
.marquee-track,
.stat-panel strong,
.work-archive-marker strong,
.page-work .contact .contact-link {
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

.entrance-panel h1 {
  letter-spacing: -0.02em;
}

.hero-title {
  letter-spacing: -0.02em;
}

.hero-title-home {
  line-height: 0.92;
}

.hero-title-work,
.page-life .hero-title {
  letter-spacing: -0.03em;
  line-height: 0.98;
}

h2 {
  letter-spacing: -0.02em;
}

h3 {
  letter-spacing: -0.01em;
}

.logo {
  letter-spacing: -0.01em;
}

/* 光标光晕换成砖红 */
.cursor-glow {
  background: rgba(160, 58, 43, 0.08);
}

/* 顶部导航底色随新纸色 */
.header {
  background: rgba(240, 238, 228, 0.9);
}

/* 首屏数据条底色随新纸色 */
.hero-stats {
  background: rgba(240, 238, 228, 0.86);
}

/* 分区底色：更冷的书写纸 */
.section-surface,
.section-about,
.section-notes {
  background: #e8e6d7;
}

/* 卡片配色：暖粉换成灰绿 */
.accent-yellow,
.feature-card-warm {
  background: #e2e3d1;
}

/* 照片墙 / 封面占位底色 */
.photo-stack-panel,
.anime-cover-stack-panel {
  background: #e5e3d4;
}

.anime-card-cover,
.music-playlist-cover,
.game-modal-card-cover,
.game-cover-tile {
  background: #d6d3c3;
}

/* 跑马灯：墨色缎带 */
.marquee-wrap {
  background: var(--ink);
}

.marquee-track,
.marquee-item::after {
  color: var(--paper);
}

/* 悬停投影换砖红 */
.work-card:hover,
.project-grid .feature-card:hover,
.projects-modal-grid .feature-card:hover,
.music-playlist-card:hover,
.anime-card:hover {
  box-shadow: 0 14px 0 rgba(160, 58, 43, 0.16);
}

/* 搜索框焦点换墨绿 */
.project-search-input::placeholder {
  color: #7a7668;
}

.project-search-input:focus {
  border-color: var(--signal-blue);
  box-shadow: 5px 5px 0 rgba(46, 75, 63, 0.16);
}

/* 卡片边缘辉光调成砖红 / 旧金 / 墨绿 */
.border-glow-card {
  --glow-red: rgba(160, 58, 43, 0.96);
  --glow-gold: rgba(201, 162, 39, 0.9);
  --glow-blue: rgba(46, 75, 63, 0.92);
  --glow-fill: rgba(160, 58, 43, 0.12);
}

.border-glow-card > .edge-light {
  box-shadow:
    inset 0 0 0 1px var(--glow-red),
    inset 0 0 12px rgba(160, 58, 43, 0.24),
    inset 0 0 24px rgba(46, 75, 63, 0.12);
}

.border-glow-card.accent-cyan,
.border-glow-card.accent-pink,
.border-glow-card.contact-card-feature {
  --glow-gold: rgba(201, 162, 39, 0.98);
}

/* 照片翻页堆：方角印刷感 */
.photo-stack-panel,
.anime-cover-stack-panel {
  border-radius: 0;
}

.swipe-stack {
  border-radius: 0;
  box-shadow: inset 0 0 0 8px rgba(240, 238, 228, 0.74);
}

.swipe-stack .photo-stack-card {
  border-radius: 0;
}

.photo-stack-label {
  border-radius: 0;
}

/* Life photo orbit: the archive becomes a rotating 3D ring. */
.photo-stack.photo-orbit {
  --orbit-card-w: 132px;
  --orbit-card-h: 198px;
  --orbit-radius: 245px;
  --orbit-tilt: 0deg;
  position: relative;
  width: calc(100% + 32px);
  height: clamp(450px, 54vh, 540px);
  margin-inline: -16px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  perspective: 1100px;
  transform-style: preserve-3d;
  cursor: pointer;
  isolation: isolate;
  contain: layout paint;
}

.photo-orbit-inner {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: var(--orbit-card-w);
  height: var(--orbit-card-h);
  transform-style: preserve-3d;
  transform: translate(-50%, -53%) perspective(1100px) rotateX(var(--orbit-tilt)) rotateY(0deg);
  animation: photo-orbit-rotating 26s linear infinite;
  will-change: transform;
}

@keyframes photo-orbit-rotating {
  from {
    transform: translate(-50%, -53%) perspective(1100px) rotateX(var(--orbit-tilt)) rotateY(0deg);
  }
  to {
    transform: translate(-50%, -53%) perspective(1100px) rotateX(var(--orbit-tilt)) rotateY(1turn);
  }
}

.photo-orbit.is-paused .photo-orbit-inner {
  animation-play-state: paused;
}

.photo-orbit-card {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(23, 23, 22, 0.78);
  border-radius: 14px;
  background: var(--paper-bright);
  box-shadow: 0 12px 28px rgba(23, 23, 22, 0.22);
  transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--orbit-radius));
  backface-visibility: hidden;
  transition: border-color 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.photo-orbit-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 23, 22, 0.76));
  pointer-events: none;
}

.photo-orbit-card:hover {
  border-color: var(--signal);
  box-shadow: 0 16px 34px rgba(160, 58, 43, 0.28);
  filter: saturate(1.08) contrast(1.02);
}

.photo-orbit-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  pointer-events: none;
}

.photo-orbit-card figcaption {
  position: absolute;
  z-index: 3;
  right: 8px;
  bottom: 8px;
  left: 8px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-orbit-center {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  color: rgba(23, 23, 22, 0.22);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.18em;
  text-align: center;
  transform: translate(-50%, -35%);
}

.photo-orbit.is-paused::after {
  content: "PAUSED";
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid var(--ink);
  background: var(--signal);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.photo-orbit:focus-visible {
  outline: 3px solid var(--signal-blue);
  outline-offset: 5px;
}

.anime-cover-stack-panel .photo-stack.photo-orbit {
  --orbit-card-w: 156px;
  --orbit-card-h: 234px;
  --orbit-radius: 290px;
  width: calc(100% + 80px);
  height: 570px;
  margin-inline: -40px;
  min-width: 0;
}

.anime-cover-stack-panel {
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
  gap: 8px;
  min-height: 620px;
}

@media (max-width: 900px) {
  .anime-cover-stack-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .anime-cover-stack-panel .photo-stack.photo-orbit {
    --orbit-card-w: 132px;
    --orbit-card-h: 198px;
    --orbit-radius: 245px;
    width: min(100%, 560px);
    height: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .photo-stack.photo-orbit {
    --orbit-card-w: 90px;
    --orbit-card-h: 135px;
    --orbit-radius: 154px;
    width: calc(100% + 20px);
    height: 350px;
    margin-inline: -10px;
  }

  .anime-cover-stack-panel .photo-stack.photo-orbit {
    --orbit-card-w: 90px;
    --orbit-card-h: 135px;
    --orbit-radius: 154px;
    height: 350px;
  }

  .photo-orbit-card {
    border-radius: 11px;
  }

  .photo-orbit-card figcaption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-orbit-inner {
    animation-duration: 80s;
  }
}

/* Anime archive: image-only front with a rotating title reveal. */
.anime-card.anime-reveal-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-bright);
  transform: rotate(0deg) scale(1);
  transform-origin: center;
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.anime-card.anime-reveal-card > .anime-reveal-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
}

.anime-reveal-cover,
.anime-reveal-content {
  position: absolute;
  inset: 0;
}

.anime-reveal-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #d6d3c3;
}

.anime-reveal-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01) rotate(0deg);
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.anime-reveal-cover > span {
  color: rgba(23, 23, 22, 0.24);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.18em;
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.anime-reveal-content {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 38px);
  box-sizing: border-box;
  border: 2px solid var(--ink);
  background:
    linear-gradient(rgba(23, 23, 22, 0.045) 1px, transparent 1px),
    var(--paper-bright);
  background-size: 100% 24px, auto;
  opacity: 0;
  transform: rotate(-45deg) scale(0.84);
  transform-origin: center;
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 420ms ease;
}

.anime-reveal-content h3 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  overflow-wrap: anywhere;
}

.anime-card.anime-reveal-card:hover,
.anime-card.anime-reveal-card:focus-within,
.anime-card.anime-reveal-card.is-revealed {
  transform: rotate(-3deg) scale(1.045);
  box-shadow: 0 16px 0 rgba(160, 58, 43, 0.18);
  z-index: 3;
}

.anime-reveal-card:hover .anime-reveal-content,
.anime-reveal-card:focus-within .anime-reveal-content,
.anime-reveal-card.is-revealed .anime-reveal-content {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.anime-reveal-card:hover .anime-reveal-cover img,
.anime-reveal-card:focus-within .anime-reveal-cover img,
.anime-reveal-card.is-revealed .anime-reveal-cover img,
.anime-reveal-card:hover .anime-reveal-cover > span,
.anime-reveal-card:focus-within .anime-reveal-cover > span,
.anime-reveal-card.is-revealed .anime-reveal-cover > span {
  transform: scale(0) rotate(-45deg);
}

.anime-reveal-link:focus-visible {
  outline: 3px solid var(--signal-blue);
  outline-offset: -6px;
}

@media (max-width: 560px) {
  .anime-card.anime-reveal-card {
    aspect-ratio: 4 / 3;
  }

  .anime-reveal-content h3 {
    font-size: clamp(24px, 8vw, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .anime-card.anime-reveal-card,
  .anime-reveal-cover img,
  .anime-reveal-cover > span,
  .anime-reveal-content {
    transition-duration: 1ms;
  }
}

/* Individual game covers reveal only the game name; categories stay intact. */
.game-cover-tile.game-tile-reveal {
  position: relative;
  overflow: visible;
  background: transparent;
  transform: rotate(0deg) scale(1);
  transform-origin: center;
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.game-tile-front,
.game-tile-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
}

.game-tile-front {
  z-index: 1;
  background: #d6d3c3;
}

.game-tile-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01) rotate(0deg);
  transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
}

.game-tile-front > span {
  display: grid;
  height: 100%;
  place-items: center;
  color: rgba(23, 23, 22, 0.24);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.game-tile-back {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  background:
    linear-gradient(rgba(23, 23, 22, 0.05) 1px, transparent 1px),
    var(--paper-bright);
  background-size: 100% 18px, auto;
  opacity: 0;
  transform: rotate(-45deg) scale(0.84);
  transform-origin: center;
  transition:
    transform 600ms cubic-bezier(0.23, 1, 0.32, 1),
    opacity 420ms ease;
}

.game-tile-back span {
  color: var(--ink);
  max-width: 100%;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  overflow-wrap: anywhere;
}

.game-cover-tile.game-tile-reveal:hover,
.game-cover-tile.game-tile-reveal:focus-visible {
  z-index: 3;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 10px 20px rgba(23, 23, 22, 0.2);
}

.game-tile-reveal:hover .game-tile-back,
.game-tile-reveal:focus-visible .game-tile-back {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.game-tile-reveal:hover .game-tile-front img,
.game-tile-reveal:focus-visible .game-tile-front img,
.game-tile-reveal:hover .game-tile-front > span,
.game-tile-reveal:focus-visible .game-tile-front > span {
  transform: scale(0) rotate(-45deg);
}

.game-tile-reveal:focus-visible {
  outline: 2px solid var(--signal-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .game-cover-tile.game-tile-reveal,
  .game-tile-front img,
  .game-tile-back {
    transition-duration: 1ms;
  }
}

/* Portrait panels retain their 2:3 ratio instead of stretching with page height. */
body::before,
body::after {
  display: none;
}

.chinoiserie-scroll-background {
  position: absolute;
  inset: 74px 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0,
    rgba(0, 0, 0, 0.28) 7%,
    rgba(0, 0, 0, 0.62) 22%,
    rgba(0, 0, 0, 0.62) 78%,
    rgba(0, 0, 0, 0.28) 93%,
    #000 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0,
    rgba(0, 0, 0, 0.28) 7%,
    rgba(0, 0, 0, 0.62) 22%,
    rgba(0, 0, 0, 0.62) 78%,
    rgba(0, 0, 0, 0.28) 93%,
    #000 100%
  );
  opacity: 1;
}

.chinoiserie-scroll-panel {
  display: block;
  width: 100%;
  height: auto;
  margin: calc(-1 * var(--panel-overlap, 2px)) 0 0;
  object-fit: contain;
}

.chinoiserie-scroll-panel:first-child {
  margin-top: 0;
}

.chinoiserie-scroll-panel.is-mirrored {
  transform: scaleX(-1);
}

body > main,
body > footer {
  position: relative;
  z-index: 2;
}

.hero {
  background: transparent;
}

body > main > section {
  background: transparent !important;
}

.page-work #contact .contact > :not(.contact-link) {
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(247, 246, 238, 0.9),
    0 0 18px rgba(247, 246, 238, 0.72);
}

body.is-gated .chinoiserie-scroll-background,
body.is-report-modal-open .chinoiserie-scroll-background,
body.is-modal-open .chinoiserie-scroll-background {
  opacity: 0;
}

/* Work intro: remove only the stray rule between the summary and marquee. */
.page-work .hero {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .chinoiserie-scroll-background {
    inset: 72px 0 0;
  }
}

/* Restrained SVG detail: a drawn hero thread. */
.hero-svg-thread {
  position: absolute;
  z-index: 0;
  inset: -26px -4vw auto -3vw;
  width: calc(100% + 7vw);
  height: min(610px, 78vh);
  overflow: visible;
  pointer-events: none;
  opacity: 0.76;
  filter: drop-shadow(0 1px 0 rgba(42, 31, 17, 0.34));
}

.hero-svg-thread-path {
  fill: none;
  stroke: url("#hero-thread-gold");
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: url("#hero-thread-glow");
}

.hero-svg-thread-path-main {
  stroke-width: 2.3;
  animation: hero-svg-draw 2.8s 1.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-svg-thread-path-echo {
  stroke-width: 1.2;
  opacity: 0.58;
  animation: hero-svg-draw 2.3s 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-svg-nodes {
  fill: #c8943d;
  stroke: rgba(247, 237, 205, 0.92);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
  animation:
    hero-svg-node-in 700ms 3.25s ease-out forwards,
    hero-svg-node-breathe 4.8s 4s ease-in-out infinite;
}

@keyframes hero-svg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Progress cards: paper cards with a contained route strip at the bottom. */
.page-work #progress .page-grid.page-grid-2 {
  gap: 22px;
  border: 0;
  background: transparent;
}

.svg-status-card {
  --status-vector-accent: #a13b2d;
  position: relative;
  isolation: isolate;
  min-height: 250px;
  padding: 30px 32px 118px;
  overflow: hidden;
  border: 1px solid rgba(33, 31, 26, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 251, 244, 0.94), rgba(245, 243, 232, 0.9)) !important;
  box-shadow: 0 10px 26px rgba(65, 45, 19, 0.08);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.svg-status-card:nth-child(2) {
  --status-vector-accent: #1f5e50;
}

.svg-status-card:nth-child(3) {
  --status-vector-accent: #294ea6;
}

.svg-status-card:nth-child(4) {
  --status-vector-accent: #a67725;
}

.svg-status-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--status-vector-accent) 42%, rgba(33, 31, 26, 0.14));
  box-shadow: 0 16px 34px rgba(65, 45, 19, 0.13);
}

.svg-status-card > .status-card-vector {
  position: absolute;
  z-index: 0;
  left: 28px;
  right: 28px;
  bottom: 24px;
  width: calc(100% - 56px);
  height: 64px;
  overflow: visible;
  pointer-events: none;
}

.svg-status-card > .edge-light {
  display: none;
}

.status-vector-area {
  fill: var(--status-vector-accent);
  opacity: 0;
  transition: opacity 500ms ease;
}

.status-vector-baseline {
  fill: none;
  stroke: rgba(33, 31, 26, 0.16);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 7;
  vector-effect: non-scaling-stroke;
}

.status-vector-route {
  fill: none;
  stroke: var(--status-vector-accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.92;
  vector-effect: non-scaling-stroke;
}

.status-vector-node {
  fill: none;
  stroke: var(--status-vector-accent);
  stroke-width: 4.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 420ms ease;
}

.status-vector-node-end {
  stroke-width: 6.6;
}

.svg-status-card > :not(.status-card-vector) {
  position: relative;
  z-index: 1;
}

.svg-status-card > span {
  color: var(--status-vector-accent);
}

.svg-status-card > strong {
  color: var(--ink);
}

#progress.is-readable .status-vector-route {
  animation: status-vector-draw 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#progress.is-readable .status-vector-area {
  opacity: 0.08;
}

#progress.is-readable .status-vector-node {
  opacity: 1;
}

#progress.is-readable .status-vector-node-end {
  transition-delay: 900ms;
}

#progress.is-readable .svg-status-card:hover .status-vector-area {
  opacity: 0.14;
}

#progress.is-readable .svg-status-card:nth-child(2) .status-vector-route {
  animation-delay: 90ms;
}

#progress.is-readable .svg-status-card:nth-child(3) .status-vector-route {
  animation-delay: 180ms;
}

#progress.is-readable .svg-status-card:nth-child(4) .status-vector-route {
  animation-delay: 270ms;
}

.page-work #contact {
  padding-block: clamp(72px, 9vw, 138px);
}

.svg-contact-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 520px;
  padding: clamp(76px, 7vw, 112px) clamp(44px, 6vw, 92px) clamp(64px, 6vw, 92px);
  flex-direction: column;
  justify-content: center;
}

.svg-contact-panel > :not(.contact-svg-art) {
  position: relative;
  z-index: 1;
}

.page-work #contact .svg-contact-panel > h2 {
  max-width: 980px;
  margin-top: 12px;
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.02;
}

.page-work #contact .svg-contact-panel > p:not(.eyebrow, .contact-link) {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted);
}

.page-work #contact .svg-contact-panel .contact-link {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 38px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 5px solid var(--signal);
  background: transparent;
  color: var(--signal);
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.94;
  text-shadow: none;
}

.page-work #contact .svg-contact-panel .contact-link:hover {
  border-color: var(--signal-blue);
  background: transparent;
  color: var(--signal-blue);
}

@keyframes status-vector-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 700px) {
  .page-work #progress .page-grid.page-grid-2 {
    gap: 14px;
  }

  .svg-status-card {
    min-height: 230px;
    padding: 26px 24px 104px;
  }

  .svg-status-card > .status-card-vector {
    left: 22px;
    right: 22px;
    bottom: 20px;
    width: calc(100% - 44px);
  }

  .svg-contact-panel {
    min-height: 540px;
    padding: 82px 28px 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-vector-route,
  .contact-svg-signal {
    animation: none !important;
    stroke-dashoffset: 0;
  }

  .status-vector-area {
    opacity: 0.08;
  }

  .status-vector-node {
    opacity: 1;
  }

  .contact-svg-nodes {
    animation: none !important;
    opacity: 1;
  }
}


@keyframes hero-svg-node-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 0.9;
    transform: scale(1);
  }
}

@keyframes hero-svg-node-breathe {
  0%,
  100% {
    opacity: 0.52;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .hero-svg-thread {
    inset: 16px -12vw auto -10vw;
    width: 122vw;
    height: 470px;
    opacity: 0.58;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-svg-thread-path,
  .hero-svg-nodes {
    animation: none;
  }

  .hero-svg-thread-path {
    stroke-dashoffset: 0;
  }

  .hero-svg-nodes {
    opacity: 0.72;
  }
}

/* Text motion follows the SVG path reveal in the progress and contact panels. */
body.has-scroll-motion .svg-status-card > span,
body.has-scroll-motion .svg-status-card > strong,
body.has-scroll-motion .svg-status-card > p,
body.has-scroll-motion .svg-contact-panel > .eyebrow,
body.has-scroll-motion .svg-contact-panel > h2,
body.has-scroll-motion .svg-contact-panel > p:not(.contact-link),
body.has-scroll-motion .svg-contact-panel > .contact-link {
  opacity: 0;
}

#progress.is-readable .svg-status-card > span {
  animation: svg-copy-kicker-in 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#progress.is-readable .svg-status-card > strong {
  animation: svg-copy-title-in 760ms 110ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#progress.is-readable .svg-status-card > p {
  animation: svg-copy-body-in 720ms 230ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#progress.is-readable .svg-status-card:nth-child(2) > :not(.status-card-vector),
#progress.is-readable .svg-status-card:nth-child(4) > :not(.status-card-vector) {
  animation-delay: 180ms;
}

#progress.is-readable .svg-status-card:nth-child(2) > strong,
#progress.is-readable .svg-status-card:nth-child(4) > strong {
  animation-delay: 290ms;
}

#progress.is-readable .svg-status-card:nth-child(2) > p,
#progress.is-readable .svg-status-card:nth-child(4) > p {
  animation-delay: 410ms;
}

#contact.is-readable .svg-contact-panel > .eyebrow {
  animation: svg-copy-kicker-in 620ms 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-readable .svg-contact-panel > h2 {
  animation: svg-contact-title-in 920ms 260ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-readable .svg-contact-panel > p:not(.contact-link) {
  animation: svg-copy-body-in 700ms 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-readable .svg-contact-panel > .contact-link {
  transform-origin: left center;
  animation: svg-contact-link-in 820ms 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes svg-copy-kicker-in {
  from {
    opacity: 0;
    letter-spacing: 0.32em;
    transform: translate3d(-18px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes svg-copy-title-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes svg-copy-body-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes svg-contact-title-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes svg-contact-link-in {
  0% {
    opacity: 0;
    transform: translate3d(-26px, 0, 0) scaleX(0.82);
  }
  72% {
    opacity: 1;
    transform: translate3d(4px, 0, 0) scaleX(1.015);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .svg-status-card > span,
  .svg-status-card > strong,
  .svg-status-card > p,
  .svg-contact-panel > .eyebrow,
  .svg-contact-panel > h2,
  .svg-contact-panel > p:not(.contact-link),
  .svg-contact-panel > .contact-link {
    opacity: 1;
    animation: none !important;
    clip-path: none;
    transform: none;
  }
}

/* Homepage section headings rendered as inline SVG text. */
.home-svg-title {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 0;
  font-size: 0;
  line-height: 0;
}

.home-svg-title-style {
  max-width: 520px;
}

.home-svg-title-contact {
  max-width: 252px;
}

.home-svg-title > svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.home-svg-title-text {
  font-family: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -2px;
}

.home-svg-title-fill {
  fill: var(--ink);
  stroke: none;
}

.home-svg-title-stroke {
  fill: transparent;
  stroke: var(--signal);
  stroke-width: 1.35px;
  stroke-linejoin: round;
  stroke-dasharray: 16 9;
  opacity: 0;
}

.home-svg-title-sweep {
  fill: none;
  stroke: var(--signal);
  stroke-width: 5px;
  stroke-linecap: square;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

body.has-scroll-motion .home-svg-title-fill {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

body.has-scroll-motion .home-svg-title-stroke {
  stroke-dashoffset: 420;
}

body.has-scroll-motion .home-svg-title-sweep {
  stroke-dashoffset: 1;
}

#about.is-svg-title-visible .home-svg-title-stroke,
#contact.is-svg-title-visible .home-svg-title-stroke {
  animation: home-svg-stroke-draw 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#about.is-svg-title-visible .home-svg-title-fill,
#contact.is-svg-title-visible .home-svg-title-fill {
  animation: home-svg-fill-reveal 820ms 280ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#about.is-svg-title-visible .home-svg-title-sweep,
#contact.is-svg-title-visible .home-svg-title-sweep {
  animation: home-svg-sweep-in 760ms 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#about.is-svg-title-visible .home-svg-title,
#contact.is-svg-title-visible .home-svg-title {
  animation: home-svg-title-float 3.6s 1.25s ease-in-out infinite;
}

@keyframes home-svg-stroke-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 420;
    transform: translate3d(-8px, 8px, 0);
  }
  100% {
    opacity: 0.82;
    stroke-dashoffset: 0;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-svg-fill-reveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(-12px, 0, 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-svg-sweep-in {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-svg-title-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

.home-svg-title-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .home-svg-title-style {
    max-width: 430px;
  }

  .home-svg-title-contact {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-svg-title,
  .home-svg-title-fill,
  .home-svg-title-stroke,
  .home-svg-title-sweep {
    animation: none !important;
  }

  .home-svg-title-fill {
    opacity: 1;
    clip-path: none;
  }

  .home-svg-title-stroke {
    opacity: 0;
  }

  .home-svg-title-sweep {
    stroke-dashoffset: 0;
  }
}

/* Homepage SVG-title sections: stagger the supporting copy after the title reveal. */
body.has-scroll-motion #about .about > div:last-child > p,
body.has-scroll-motion #about .about > div:last-child > .btn,
body.has-scroll-motion #contact .contact > p:not(.eyebrow),
body.has-scroll-motion #contact .contact-card > span,
body.has-scroll-motion #contact .contact-card > strong,
body.has-scroll-motion #contact .contact-card > p,
body.has-scroll-motion #contact .contact-card > .contact-card-link {
  opacity: 0;
}

#about.is-svg-title-visible .about > div:last-child > p {
  animation: home-svg-content-slide 760ms 480ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#about.is-svg-title-visible .about > div:last-child > .btn {
  animation: home-svg-content-rise 680ms 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-svg-title-visible .contact > p:not(.eyebrow) {
  animation: home-svg-content-rise 680ms 430ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact .contact-card:nth-child(1) {
  --home-contact-delay: 620ms;
}

#contact .contact-card:nth-child(2) {
  --home-contact-delay: 780ms;
}

#contact .contact-card:nth-child(3) {
  --home-contact-delay: 940ms;
}

#contact.is-svg-title-visible .contact-card > span {
  animation: home-svg-content-slide 560ms var(--home-contact-delay) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-svg-title-visible .contact-card > strong,
#contact.is-svg-title-visible .contact-card > .contact-card-link {
  animation: home-svg-contact-value-in 720ms calc(var(--home-contact-delay) + 100ms)
    cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-svg-title-visible .contact-card > p {
  animation: home-svg-content-rise 620ms calc(var(--home-contact-delay) + 220ms)
    cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes home-svg-content-slide {
  from {
    opacity: 0;
    transform: translate3d(34px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-svg-content-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes home-svg-contact-value-in {
  0% {
    opacity: 0;
    letter-spacing: 0.08em;
    transform: translate3d(-24px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #about .about > div:last-child > p,
  #about .about > div:last-child > .btn,
  #contact .contact > p:not(.eyebrow),
  #contact .contact-card > span,
  #contact .contact-card > strong,
  #contact .contact-card > p,
  #contact .contact-card > .contact-card-link {
    opacity: 1;
    animation: none !important;
    transform: none;
  }
}

/* Life page only: let the recent-photo orbit float over the patterned background. */
.page-life .life-photo-stack-panel {
  border: 0;
  background: rgba(229, 227, 212, 0.52);
  box-shadow: none;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.page-life .life-photo-stack-panel::before {
  display: none;
}


.contact-svg-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.contact-svg-surface {
  fill: rgba(247, 246, 238, 0.7);
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.contact-svg-wave {
  fill: none;
  stroke: rgba(126, 227, 178, 0.08);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.contact-svg-signal {
  fill: none;
  stroke: #a13b2d;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
}

.contact-svg-nodes {
  fill: #c8953f;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

#contact.is-readable .contact-svg-signal {
  animation: contact-vector-draw 1.8s 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#contact.is-readable .contact-svg-nodes {
  animation: contact-vector-nodes 600ms 1.2s ease-out forwards;
}

@keyframes contact-vector-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes contact-vector-nodes {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* AI video portfolio: a single cinematic feature inside the work page. */
.ai-video-portfolio {
  position: relative;
  padding-block: clamp(90px, 11vw, 164px);
  overflow: hidden;
}

.ai-video-portfolio::before {
  content: "AI / 01";
  position: absolute;
  top: 34px;
  right: clamp(24px, 5vw, 82px);
  color: rgba(33, 31, 26, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(74px, 12vw, 190px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.ai-video-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(28px, 7vw, 112px);
  margin-bottom: clamp(38px, 6vw, 76px);
}

.ai-video-heading h2 {
  margin-top: 14px;
  font-size: clamp(52px, 7vw, 106px);
  line-height: 0.92;
}

.ai-video-feature {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 56px);
  border-top: 1px solid rgba(33, 31, 26, 0.58);
  border-bottom: 1px solid rgba(33, 31, 26, 0.58);
}

.ai-video-copy {
  display: grid;
  align-content: center;
  gap: 22px;
}

.ai-video-number {
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.ai-video-copy h3 {
  margin: 0;
  font-size: clamp(38px, 4.3vw, 68px);
  line-height: 0.96;
}

.ai-video-copy p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.75;
}

.ai-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-video-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(33, 31, 26, 0.48);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ai-video-player-shell {
  position: relative;
  padding: 12px 12px 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(240, 238, 228, 0.48);
  box-shadow: 0 26px 70px rgba(52, 38, 17, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ai-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #171713;
  object-fit: cover;
}

.ai-video-player-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  padding-inline: 6px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.ai-video-player-caption span {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.ai-video-player-caption strong {
  font-weight: 800;
}

.ai-video-player-caption em {
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 900px) {
  .ai-video-heading,
  .ai-video-feature {
    grid-template-columns: 1fr;
  }

  .ai-video-heading {
    gap: 18px;
  }

  .ai-video-copy {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ai-video-copy h3,
  .ai-video-copy p {
    grid-column: 1;
  }

  .ai-video-tags {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-content: center;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .ai-video-portfolio {
    padding-block: 76px;
  }

  .ai-video-copy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ai-video-copy h3,
  .ai-video-copy p,
  .ai-video-tags {
    grid-column: auto;
    grid-row: auto;
  }

  .ai-video-tags {
    justify-content: flex-start;
  }

  .ai-video-player-shell {
    margin-inline: -12px;
    padding: 7px 7px 0;
    border-radius: 16px;
  }

  .ai-video-player {
    border-radius: 11px;
  }

  .ai-video-player-caption em {
    display: none;
  }
}
