:root {
  --black: #08090a;
  --obsidian: #0d1012;
  --panel: rgba(18, 19, 18, 0.94);
  --panel-strong: rgba(12, 13, 13, 0.96);
  --bone: #f3eadc;
  --muted: #b9b0a3;
  --dim: rgba(243, 234, 220, 0.42);
  --gold: #d3a45d;
  --gold-soft: rgba(211, 164, 93, 0.28);
  --gold-line: rgba(211, 164, 93, 0.2);
  --ember: #c24b34;
  --river: #27474b;
  --green: #547864;
  --purple: #8056b3;
  --landscape-wash: url("./assets/visual/landscape-wash.svg");
  --surface-embers:
    radial-gradient(circle at 12% 24%, rgba(232, 103, 52, 0.42) 0 1.4px, rgba(232, 103, 52, 0.11) 2px, transparent 5.6px),
    radial-gradient(circle at 37% 68%, rgba(211, 164, 93, 0.3) 0 1.2px, rgba(211, 164, 93, 0.08) 1.8px, transparent 5.2px),
    radial-gradient(circle at 66% 38%, rgba(232, 103, 52, 0.36) 0 1.3px, rgba(232, 103, 52, 0.1) 1.9px, transparent 5.4px),
    radial-gradient(circle at 88% 76%, rgba(211, 164, 93, 0.26) 0 1.1px, rgba(211, 164, 93, 0.07) 1.7px, transparent 5px);
  --radius: 8px;
  --page-gutter: clamp(24px, 3vw, 48px);
  --content-max: 1392px;
  --content-width: max(100vw, var(--content-max));
  --panel-pad: clamp(24px, 2.4vw, 36px);
  --section-pad: clamp(34px, 5vw, 74px);

  /* z-index layer system (1:1 mapping from historical magic numbers).
     Reading guide:
       ambient*  : deepest ambient bg layers (river/ember/landscape-wash)
       base      : default in-flow base
       stack-*   : in-flow stacking inside sections (content/cards/overlays)
       overlay-* : section-local visual overlays (hero frame, hover halos)
       nav       : primary tile-nav
       stage-*   : hero stage fixed overlay tiers
       fixed     : fixed playback strip (.reel-controls)
       top       : page-top-most (skip link / future modal)
     Rule: do NOT introduce a new magic number — extend this map.
  */
  --z-ambient-deep: -3;
  --z-ambient-mid: -2;
  --z-ambient: -1;
  --z-base: 0;
  --z-stack-1: 1;
  --z-stack-2: 2;
  --z-stack-3: 3;
  --z-stack-4: 4;
  --z-overlay-6: 6;
  --z-overlay-7: 7;
  --z-overlay-8: 8;
  --z-overlay-9: 9;
  --z-nav: 20;
  --z-stage-30: 30;
  --z-stage-36: 36;
  --z-stage-38: 38;
  --z-fixed: 40;
  --z-top: 80;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: #070808;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  color: var(--bone);
  background:
    radial-gradient(circle at 78% 11%, rgba(194, 75, 52, 0.08), transparent 24%),
    radial-gradient(circle at 18% 58%, rgba(39, 71, 75, 0.12), transparent 33%),
    linear-gradient(135deg, #070808, #090a0a 44%, #070808),
    #070808;
  font-family: "Avenir Next", "PingFang SC", "Noto Sans SC", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: var(--z-ambient-deep);
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.045) 0 1px, transparent 1px 10%),
    linear-gradient(0deg, rgba(243, 234, 220, 0.024) 0 1px, transparent 1px 34px),
    radial-gradient(ellipse at 70% 30%, rgba(194, 75, 52, 0.105), transparent 32%),
    radial-gradient(ellipse at 30% 72%, rgba(39, 71, 75, 0.11), transparent 38%);
  animation: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient-mid);
  pointer-events: none;
  opacity: 0.36;
  background:
    linear-gradient(120deg, transparent 0 18%, rgba(211, 164, 93, 0.115) 18.2%, transparent 18.6%),
    linear-gradient(155deg, transparent 0 63%, rgba(39, 71, 75, 0.16) 63.2%, transparent 64%),
    radial-gradient(circle at 82% 38%, rgba(194, 75, 52, 0.18), transparent 18%),
    radial-gradient(circle at 18% 80%, rgba(216, 92, 52, 0.13), transparent 14%);
  animation: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 2px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 1px solid rgba(211, 164, 93, 0.28);
}

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

.tile-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 18%, rgba(211, 164, 93, 0.08), transparent 23%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.34), rgba(8, 9, 10, 0.88)),
    #070808;
}

.tile-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 0.34;
  background:
    var(--landscape-wash) center 7vh / min(1500px, 118vw) auto no-repeat,
    repeating-linear-gradient(112deg, transparent 0 42px, rgba(243, 234, 220, 0.026) 43px, transparent 45px),
    radial-gradient(ellipse at 76% 22%, rgba(211, 164, 93, 0.08), transparent 36%),
    radial-gradient(ellipse at 18% 72%, rgba(79, 112, 116, 0.13), transparent 42%);
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.48) 58%, transparent 96%);
  animation: none;
}

.tile-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 0.62;
  background:
    radial-gradient(circle at 16% 72%, rgba(232, 103, 52, 0.38) 0 1px, transparent 2.6px),
    radial-gradient(circle at 38% 84%, rgba(211, 164, 93, 0.26) 0 0.9px, transparent 2.4px),
    radial-gradient(circle at 68% 38%, rgba(232, 103, 52, 0.32) 0 1px, transparent 2.6px),
    radial-gradient(circle at 88% 76%, rgba(211, 164, 93, 0.22) 0 0.9px, transparent 2.3px);
  background-size: 760px 1040px, 940px 1180px, 860px 1100px, 1020px 1280px;
  background-position: 0 0, 140px 180px, 260px 80px, 80px 320px;
  mix-blend-mode: screen;
  animation: none;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  overflow: hidden;
  opacity: 0.34;
}

.river-line {
  position: absolute;
  width: 70vw;
  height: 36vh;
  border: 1px solid transparent;
  border-top-color: rgba(79, 112, 116, 0.22);
  border-radius: 50%;
  transform: rotate(-11deg);
  filter: blur(0.2px);
  animation: none;
}

.line-a {
  left: 36vw;
  top: 16vh;
}

.line-b {
  left: -10vw;
  top: 58vh;
  width: 58vw;
  transform: rotate(9deg);
  animation-delay: -5s;
}

.ember {
  position: absolute;
  width: var(--ember-size, 5px);
  height: var(--ember-size, 5px);
  border-radius: 999px;
  background: rgba(232, 103, 52, var(--ember-alpha, 0.88));
  box-shadow:
    0 0 12px rgba(232, 103, 52, 0.9),
    0 0 32px rgba(194, 75, 52, 0.58);
  animation: none;
}

.ember::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(232, 103, 52, 0.34), transparent 62%);
}

.ember-a { left: 78%; top: 82%; animation-delay: -1s; }
.ember-b { left: 86%; top: 66%; --ember-size: 4px; --ember-duration: 10.5s; animation-delay: -4s; }
.ember-c { left: 14%; top: 74%; --ember-size: 3px; --ember-duration: 8.4s; animation-delay: -7s; }
.ember-d { left: 64%; top: 92%; --ember-size: 4px; --ember-duration: 11s; animation-delay: -2.5s; }
.ember-e { left: 43%; top: 86%; --ember-size: 3px; --ember-duration: 9.6s; animation-delay: -6s; }
.ember-f { left: 22%; top: 91%; --ember-size: 4px; --ember-alpha: 0.72; --ember-duration: 12s; animation-delay: -3s; }
.ember-g { left: 34%; top: 76%; --ember-size: 2px; --ember-alpha: 0.76; --ember-duration: 7.8s; animation-delay: -5.2s; }
.ember-h { left: 52%; top: 96%; --ember-size: 6px; --ember-alpha: 0.82; --ember-duration: 13s; animation-delay: -8s; }
.ember-i { left: 71%; top: 70%; --ember-size: 3px; --ember-alpha: 0.68; --ember-duration: 8.8s; animation-delay: -1.8s; }
.ember-j { left: 91%; top: 88%; --ember-size: 3px; --ember-alpha: 0.74; --ember-duration: 10.2s; animation-delay: -6.8s; }
.ember-k { left: 7%; top: 86%; --ember-size: 5px; --ember-alpha: 0.62; --ember-duration: 14s; animation-delay: -9.4s; }
.ember-l { left: 58%; top: 78%; --ember-size: 2px; --ember-alpha: 0.78; --ember-duration: 7.2s; animation-delay: -3.9s; }
.ember-m { left: 83%; top: 95%; --ember-size: 4px; --ember-alpha: 0.64; --ember-duration: 12.8s; animation-delay: -11s; }

.tile-hero,
.portfolio-columns,
.tile-grid,
.case-strip,
.rules-panel {
  position: relative;
  z-index: var(--z-stack-1);
}

.tile-hero {
  z-index: var(--z-overlay-6);
  min-height: auto;
  display: grid;
  grid-template-columns: var(--content-width);
  justify-content: center;
  align-items: center;
  padding: 74px var(--page-gutter) 4px;
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 84% 32%, rgba(194, 75, 52, 0.13), transparent 26%),
    radial-gradient(circle at 55% 54%, rgba(39, 71, 75, 0.22), transparent 31%),
    linear-gradient(90deg, rgba(8, 9, 10, 0.98), rgba(14, 16, 16, 0.72) 48%, rgba(8, 9, 10, 0.94));
  overflow: hidden;
}

.hero-stage {
  position: relative;
  z-index: var(--z-nav);
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  --hero-stage-scale: 1;
  --hero-stage-offset-y: 0px;
  transform: translateY(var(--hero-stage-offset-y)) scale(var(--hero-stage-scale));
  transform-origin: center center;
}

.frame-layer {
  position: absolute;
  inset: 0;
  z-index: var(--z-base);
  pointer-events: none;
  opacity: 0.86;
  background:
    linear-gradient(0deg, transparent 0 74%, rgba(194, 75, 52, 0.09) 74.2%, transparent 76%),
    linear-gradient(115deg, transparent 0 43%, rgba(211, 164, 93, 0.075) 43.2%, transparent 44%),
    radial-gradient(ellipse at 78% 52%, rgba(194, 75, 52, 0.13), transparent 30%),
    radial-gradient(ellipse at 18% 78%, rgba(216, 92, 52, 0.09), transparent 20%),
    linear-gradient(90deg, transparent 0 46%, rgba(243, 234, 220, 0.05) 46.2%, transparent 46.4%),
    repeating-linear-gradient(112deg, transparent 0 44px, rgba(211, 164, 93, 0.045) 45px, transparent 47px);
  animation: none;
}

.frame-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 83% 77%, rgba(232, 103, 52, 0.72) 0 2px, rgba(232, 103, 52, 0.22) 3px, transparent 11px),
    radial-gradient(circle at 71% 86%, rgba(232, 103, 52, 0.58) 0 1px, rgba(232, 103, 52, 0.18) 2px, transparent 9px),
    radial-gradient(circle at 18% 82%, rgba(232, 103, 52, 0.5) 0 1px, rgba(232, 103, 52, 0.16) 2px, transparent 8px),
    radial-gradient(circle at 91% 57%, rgba(232, 103, 52, 0.42) 0 1px, transparent 7px);
  opacity: 0;
  animation: none;
}

.frame-layer::after {
  content: "";
  position: absolute;
  inset: 8% -8% 0 18%;
  border-top: 1px solid rgba(79, 112, 116, 0.22);
  border-left: 1px solid rgba(211, 164, 93, 0.08);
  border-radius: 52% 48% 0 0;
  transform: rotate(-8deg);
}

.tile-nav {
  position: absolute;
  z-index: var(--z-top);
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(5, 6, 7, 0.84), rgba(5, 6, 7, 0.2) 78%, transparent);
}

.tile-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  /* Nav underline bound to status bar; nudged -2px on 2026-05-27 per Boss. */
  bottom: 14px;
  height: 1px;
  background: var(--gold-line);
  pointer-events: none;
}

.tile-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 12px;
  color: rgba(243, 234, 220, 0.66);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.tile-nav span b {
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 0.04em;
}

.tile-nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tile-nav a,
.kicker,
.panel-label,
.reel-header,
.project-list > .project-card > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  color: rgba(243, 234, 220, 0.72);
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tile-nav a:hover,
.tile-nav a:focus-visible {
  color: var(--gold);
  outline: none;
  box-shadow: inset 0 -2px 0 rgba(211, 164, 93, 0.78);
}

.tile-nav a:active {
  transform: translateY(1px);
}

.hero-copy {
  position: relative;
  isolation: isolate;
  z-index: var(--z-stack-2);
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-content: stretch;
  padding: clamp(30px, 3vw, 46px) clamp(28px, 2.6vw, 42px);
  border: 1px solid rgba(211, 164, 93, 0.28);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
}

.hero-cover-composite {
  grid-row: 1 / -1;
  aspect-ratio: 318 / 348;
  min-height: 0;
  height: auto;
  width: 100%;
  max-width: 100%;
  display: block;
  align-self: center;
  justify-self: center;
  padding: 0;
  overflow: hidden;
}

.hero-video-slogan {
  position: absolute;
  z-index: var(--z-stage-36);
  left: 50%;
  top: 50%;
  width: min(34%, 380px);
  aspect-ratio: 318 / 348;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.32));
}

.hero-video-slogan .hero-cover-composite {
  width: 100%;
  height: 100%;
}

.hero-video-slogan-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.hero-cover-art {
  position: absolute;
  z-index: var(--z-stack-2);
  left: 4%;
  right: 4%;
  top: 7%;
  bottom: 7%;
}

.hero-cover-layer {
  position: absolute;
  display: block;
  user-select: none;
  pointer-events: none;
}

.hero-cover-layer {
  z-index: var(--z-stack-2);
  height: auto;
}

.hero-cover-id {
  left: 22.6%;
  top: 5%;
  width: 55.8%;
  filter: brightness(1.2) contrast(1.08);
}

.hero-cover-title {
  left: 2.7%;
  top: 16.5%;
  width: 94.6%;
  filter:
    contrast(1.18)
    saturate(0.92)
    brightness(1.06)
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 10px rgba(211, 164, 93, 0.12));
}

.hero-cover-name {
  left: 34.4%;
  top: 73%;
  width: 31.4%;
  filter: brightness(1.16) contrast(1.06);
}

.hero-cover-tags {
  left: 20.9%;
  top: 82%;
  width: 57.1%;
  filter: brightness(1.18) contrast(1.08);
}

.hero-copy::before,
.hero-frame::before,
.project-thumb::before,
.type-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    radial-gradient(circle at 82% 34%, rgba(194, 75, 52, 0.16), transparent 28%),
    linear-gradient(118deg, transparent 0 52%, rgba(211, 164, 93, 0.06) 52.2%, transparent 53%);
}

.hero-copy::after {
  content: none;
  position: absolute;
  inset: 12px;
  z-index: var(--z-base);
  pointer-events: none;
  border: 1px solid rgba(243, 234, 220, 0.055);
  border-left-color: rgba(211, 164, 93, 0.22);
  background:
    linear-gradient(180deg, rgba(194, 75, 52, 0.12) 0 1px, transparent 1px),
    repeating-linear-gradient(112deg, transparent 0 18px, rgba(243, 234, 220, 0.032) 19px, transparent 20px);
  opacity: 0.82;
}

.hero-copy > * {
  position: relative;
  z-index: var(--z-stack-1);
}

.hero-cover-composite > * {
  position: absolute;
}

.kicker,
.panel-label {
  margin: 0 0 18px;
  color: var(--gold);
}

.hero-copy-top {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 4.8vh, 58px);
  text-align: center;
}

.hero-copy .kicker {
  width: fit-content;
  margin: 0;
  padding: 0;
  border-bottom: 0;
  color: rgba(243, 234, 220, 0.72);
  font-size: 17px;
  letter-spacing: 0.42em;
  text-shadow: 0 0 18px rgba(211, 164, 93, 0.1);
}

.hero-role {
  max-width: none;
  margin: 0;
  color: rgba(243, 234, 220, 0.52);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.32em;
  text-align: center;
}

.hero-name {
  position: relative;
  width: fit-content;
  margin: clamp(12px, 2.4vh, 24px) 0 0;
  padding: 0;
  color: rgba(243, 234, 220, 0.82);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(211, 164, 93, 0.1);
}

.hero-name::after {
  display: none;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 2.9vw, 50px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-title {
  position: relative;
  display: grid;
  gap: 0;
  width: min(100%, 390px);
  max-width: 100%;
  overflow: visible;
  align-self: center;
  margin: 0 0 clamp(22px, 3.2vh, 36px);
  padding: 0 0 18px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(50px, 4.6vw, 68px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
  color: var(--bone);
  text-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    0 0 26px rgba(194, 75, 52, 0.16);
}

.hero-title-art-lockup {
  width: min(116%, 500px);
  justify-items: center;
  align-self: center;
  margin: 0;
  padding: 0;
}

.hero-title-art {
  display: block;
  width: min(124%, 520px);
  max-width: none;
  height: auto;
  margin: 0;
  filter:
    drop-shadow(0 20px 40px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(211, 164, 93, 0.12));
}

.hero-title-line {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;
  background:
    linear-gradient(180deg, #fff4dc 0%, #edcf90 54%, #c5904e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-line::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  bottom: 0.08em;
  z-index: var(--z-ambient);
  height: 0.28em;
  background:
    linear-gradient(90deg, rgba(116, 29, 22, 0.72), rgba(194, 75, 52, 0.36), transparent);
  transform: skewX(-12deg);
  filter: blur(0.2px);
}

.hero-title-line.is-second {
  margin-left: clamp(54px, 5.2vw, 78px);
  margin-top: -2px;
}

.hero-title-overline,
.hero-title-foot {
  width: fit-content;
  max-width: 100%;
  -webkit-text-fill-color: currentColor;
  background: none;
  color: rgba(243, 234, 220, 0.5);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
}

.hero-title-overline {
  margin: 0 0 12px 4px;
  color: rgba(211, 164, 93, 0.82);
}

.hero-title-foot {
  margin: clamp(22px, 3.5vh, 34px) 0 0;
  color: rgba(243, 234, 220, 0.5);
  text-align: center;
}

.hero-title::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 30px;
  bottom: 22px;
  z-index: var(--z-ambient);
  width: 84px;
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.18), transparent),
    repeating-linear-gradient(0deg, rgba(243, 234, 220, 0.08) 0 1px, transparent 1px 11px);
  opacity: 0.52;
}

.hero-title-art-lockup::before {
  right: 18px;
  top: 46px;
  bottom: 34px;
  width: 70px;
  opacity: 0.34;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.58), rgba(194, 75, 52, 0.24), transparent);
  box-shadow: 0 0 14px rgba(194, 75, 52, 0.14);
}

.hero-title-image {
  display: block;
  width: min(100%, 560px);
  margin: -12px 0 28px -24px;
  padding-bottom: 0;
  font-size: 0;
  line-height: 0;
}

.hero-title-image::after {
  display: none;
}

.hero-title-image img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 14px rgba(194, 75, 52, 0.14));
}

.hero-copy > p:not(.hero-name):not(.hero-title-foot):last-of-type {
  max-width: 430px;
  margin-bottom: 0;
  color: rgba(243, 234, 220, 0.74);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.78;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}

.hero-tags span,
.project-tags b {
  padding: 8px 10px;
  border: 1px solid rgba(211, 164, 93, 0.24);
  color: rgba(243, 234, 220, 0.8);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.12), transparent 72%),
    rgba(8, 9, 10, 0.5);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 2px 0 0 rgba(194, 75, 52, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.hero-frame {
  position: relative;
  z-index: var(--z-stage-30);
  min-width: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0 18%, transparent 36%),
    repeating-linear-gradient(90deg, rgba(243, 234, 220, 0.035) 0 1px, transparent 1px 8.5%),
    repeating-linear-gradient(0deg, transparent 0 29px, rgba(211, 164, 93, 0.032) 30px, transparent 31px),
    radial-gradient(ellipse at 74% 28%, rgba(194, 75, 52, 0.26), transparent 24%),
    radial-gradient(ellipse at 28% 58%, rgba(39, 71, 75, 0.48), transparent 36%),
    linear-gradient(115deg, rgba(243, 234, 220, 0.11), rgba(16, 20, 20, 0.7) 35%, rgba(7, 8, 9, 0.96)),
    #0a0c0d;
  box-shadow:
    0 36px 108px rgba(0, 0, 0, 0.5),
    0 0 68px rgba(194, 75, 52, 0.055),
    inset 0 0 0 1px rgba(243, 234, 220, 0.045);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0 0 -16px;
  z-index: var(--z-stack-2);
  pointer-events: none;
  border: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0.08)),
    linear-gradient(180deg, rgba(5, 6, 7, 0.04), transparent 24%, rgba(5, 6, 7, 0.08) 66%, rgba(5, 6, 7, 0.34)),
    radial-gradient(ellipse at 82% 48%, rgba(211, 164, 93, 0.12), transparent 31%),
    radial-gradient(ellipse at 50% 56%, transparent 0 42%, rgba(5, 6, 7, 0.12) 78%);
  box-shadow: inset 0 -42px 34px rgba(0, 0, 0, 0.16);
}

.hero-frame::before {
  z-index: var(--z-stack-3);
  opacity: 0.42;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(39, 71, 75, 0.14) 72%, rgba(211, 164, 93, 0.11) 100%),
    radial-gradient(ellipse at 90% 30%, rgba(85, 122, 142, 0.36), transparent 28%),
    radial-gradient(ellipse at 88% 72%, rgba(194, 75, 52, 0.22), transparent 24%),
    repeating-linear-gradient(112deg, transparent 0 38px, rgba(243, 234, 220, 0.055) 39px, transparent 41px);
  mix-blend-mode: screen;
}

.hero-reel-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  background: #050607;
  opacity: 0.9;
  filter: saturate(1.04) contrast(1.05) brightness(0.94);
  mix-blend-mode: normal;
}

.hero-play {
  position: absolute;
  z-index: var(--z-stack-4);
  left: 24px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(243, 234, 220, 0.4);
  border-radius: 50%;
  background: rgba(5, 6, 7, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.hero-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid rgba(243, 234, 220, 0.88);
  transform: translate(-38%, -50%);
}

.reel-header {
  display: flex;
  position: absolute;
  z-index: var(--z-stage-38);
  top: 22px;
  left: 30px;
  align-items: center;
  gap: 12px;
  color: rgba(243, 234, 220, 0.9);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.62);
}

.reel-header::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ember);
  box-shadow: 0 0 18px rgba(194, 75, 52, 0.8);
}

.reel-header span {
  color: rgba(243, 234, 220, 0.5);
  font-weight: 500;
}

.asset-slot-label {
  position: absolute;
  z-index: var(--z-stack-4);
  top: 20px;
  right: 28px;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: rgba(243, 234, 220, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.asset-slot-label b {
  color: var(--gold);
  font-size: 11px;
}

.asset-slot-label span {
  padding: 5px 8px;
  border: 1px solid rgba(211, 164, 93, 0.18);
  background: rgba(8, 9, 10, 0.42);
}

.project-thumb {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(211, 164, 93, 0.2);
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45)),
    radial-gradient(circle at 72% 36%, rgba(194, 75, 52, 0.24), transparent 32%),
    radial-gradient(circle at 26% 64%, rgba(211, 164, 93, 0.16), transparent 28%),
    linear-gradient(120deg, rgba(243, 234, 220, 0.12), rgba(18, 21, 22, 0.92));
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(243, 234, 220, 0.09);
  background:
    linear-gradient(90deg, rgba(243, 234, 220, 0.12) 0 18%, transparent 18% 100%),
    linear-gradient(0deg, transparent 0 46%, rgba(243, 234, 220, 0.12) 46% 54%, transparent 54%);
  opacity: 0.42;
}

.launch-thumb {
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 78% 38%, rgba(39, 71, 75, 0.36), transparent 34%),
    linear-gradient(120deg, rgba(211, 164, 93, 0.12), rgba(16, 19, 20, 0.94));
}

.play-mark {
  appearance: none;
  position: absolute;
  z-index: var(--z-fixed);
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(243, 234, 220, 0.62);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.68);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 1px rgba(211, 164, 93, 0.12),
    0 0 44px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    opacity 180ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.hero-frame:hover .play-mark,
.hero-frame:focus-within .play-mark,
.hero-frame.is-controls-visible .play-mark {
  opacity: 1 !important;
  pointer-events: auto;
}

.play-mark:hover,
.play-mark:focus-visible {
  border-color: rgba(211, 164, 93, 0.88);
  background: rgba(8, 9, 10, 0.82);
  outline: none;
}

.play-mark::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(211, 164, 93, 0.14);
  border-radius: 50%;
}

.play-mark::before {
  content: "";
  position: relative;
  width: 0;
  height: 0;
  border-left: 20px solid rgba(243, 234, 220, 0.86);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  transform: translateX(8%);
}

.play-mark:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.play-mark.is-playing::before {
  width: 24px;
  height: 28px;
  border: 0;
  background:
    linear-gradient(
      90deg,
      rgba(243, 234, 220, 0.84) 0 7px,
      transparent 7px 17px,
      rgba(243, 234, 220, 0.84) 17px 24px
    );
  transform: none;
}

.reel-controls {
  position: absolute;
  z-index: var(--z-fixed);
  left: max(28px, calc((var(--content-width) - 100vw) / 2 + 28px));
  right: max(28px, calc((var(--content-width) - 100vw) / 2 + 28px));
  bottom: 18px;
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  color: rgba(243, 234, 220, 0.58);
  font-size: 12px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 180ms ease;
  display: none !important;
  pointer-events: none;
}

.reel-controls .progress {
  display: block;
}

.hero-frame:hover .reel-controls,
.hero-frame:focus-within .reel-controls,
.hero-frame.is-controls-visible .reel-controls {
  opacity: 1 !important;
  pointer-events: auto;
}

.reel-controls b {
  padding: 5px 8px;
  border: 1px solid rgba(243, 234, 220, 0.1);
  background: rgba(8, 9, 10, 0.42);
}

.reel-controls small,
.reel-controls b {
  font-size: 12px;
  font-weight: 700;
}

.progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(243, 234, 220, 0.15);
}

.progress i {
  display: block;
  width: calc(var(--hero-progress, 0) * 1%);
  height: 100%;
  background: var(--gold);
  transition: width 160ms linear;
}

.portfolio-columns {
  --works-ink: url("./assets/project-textures/raster/project-01-s3g-shinsen-right-v3.png");
  z-index: var(--z-overlay-8);
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  align-items: stretch;
  gap: 0;
  width: var(--content-width);
  margin: -6px 0 0 50%;
  transform: translateX(-50%);
  padding: clamp(24px, 3.3vw, 46px) 0 clamp(30px, 3.8vw, 54px);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.16), transparent 13%, transparent 87%, rgba(211, 164, 93, 0.12)),
    linear-gradient(105deg, rgba(18, 18, 16, 0.98), rgba(7, 8, 9, 0.97) 52%, rgba(14, 13, 11, 0.98));
}

.portfolio-columns[data-proof-project="project-01"] {
  --works-ink: url("./assets/project-textures/raster/project-01-s3g-shinsen-right-v3.png");
}

.portfolio-columns[data-proof-project="project-02"] {
  --works-ink: url("./assets/project-textures/raster/project-02-nobunaga-shinsen-right-v3.png");
}

.portfolio-columns[data-proof-project="project-03"] {
  --works-ink: url("./assets/project-textures/raster/project-03-s3g-cn-right-v3.png");
}

.portfolio-columns[data-proof-project="project-04"] {
  --works-ink: url("./assets/project-textures/raster/project-04-fantasia-cn-right-v3.png");
}

.portfolio-columns::before,
.portfolio-columns::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portfolio-columns::before {
  inset: 0;
  z-index: var(--z-base);
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.8) 0%, rgba(7, 8, 9, 0.7) 48%, rgba(7, 8, 9, 0.8) 100%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.18), rgba(7, 8, 9, 0.82)),
    var(--works-ink) center center / cover no-repeat,
    var(--surface-embers),
    repeating-linear-gradient(90deg, rgba(211, 164, 93, 0.02) 0 1px, transparent 1px 148px);
  background-size:
    auto,
    auto,
    cover,
    560px 380px, 720px 500px, 640px 460px, 800px 560px,
    auto;
  background-position:
    0 0,
    0 0,
    right center,
    0 0, 132px 72px, 248px 118px, 64px 238px,
    0 0;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat,
    repeat, repeat, repeat, repeat,
    repeat;
  opacity: 1;
  animation: none;
}

.portfolio-columns::after {
  inset: 0;
  z-index: var(--z-stack-1);
  border: 1px solid rgba(211, 164, 93, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(243, 234, 220, 0.05),
    inset 0 -1px 0 rgba(211, 164, 93, 0.08);
}

.portfolio-columns > article,
.type-tab,
.case-strip,
.rules-panel > div {
  background:
    var(--surface-embers),
    radial-gradient(circle at 84% 12%, rgba(194, 75, 52, 0.055), transparent 26%),
    linear-gradient(180deg, rgba(20, 20, 19, 0.96), rgba(11, 13, 13, 0.98));
  background-size:
    560px 380px, 720px 500px, 640px 460px, 800px 560px,
    auto, auto;
  background-position:
    0 0, 132px 72px, 248px 118px, 64px 238px,
    0 0, 0 0;
  background-repeat:
    repeat, repeat, repeat, repeat,
    no-repeat, no-repeat;
  animation: none;
}

.portfolio-columns > article {
  position: relative;
  z-index: var(--z-stack-2);
  min-height: 440px;
  padding: clamp(28px, 3.5vw, 50px);
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portfolio-columns > article:last-child {
  border-right: 0;
}

.intro-column {
  align-self: stretch;
  isolation: isolate;
  overflow: hidden;
  background: transparent !important;
  animation: none;
}

.portfolio-columns > .intro-column {
  padding-bottom: clamp(28px, 3.5vw, 50px);
}

.intro-column > * {
  position: relative;
  z-index: var(--z-stack-2);
}

.intro-column::after {
  content: none;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.portfolio-columns h2 {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: clamp(36px, 3.5vw, 54px);
  text-shadow:
    0 10px 28px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(211, 164, 93, 0.12);
}

.portfolio-columns .panel-label {
  color: rgba(211, 164, 93, 0.78);
}

.project-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(211, 164, 93, 0.18);
  border-radius: var(--radius);
  background: rgba(211, 164, 93, 0.16);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(243, 234, 220, 0.04);
}

.project-switch {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: visible;
  background: rgba(211, 164, 93, 0.16);
}

.project-switch button {
  position: relative;
  min-width: 0;
  min-height: 84px;
  padding: 14px 12px 13px;
  border: 0;
  color: rgba(243, 234, 220, 0.66);
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.035), transparent),
    rgba(7, 9, 10, 0.94);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 5px;
  align-content: center;
  align-items: center;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.project-switch button span {
  display: inline-grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  min-width: 28px;
  height: 20px;
  margin-bottom: 0;
  border: 1px solid rgba(211, 164, 93, 0.28);
  background: rgba(6, 8, 9, 0.72);
  color: var(--gold);
  font-size: 10px;
  line-height: 1;
}

.project-switch button b,
.project-switch button em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.project-switch button b {
  grid-column: 2;
  grid-row: 1;
  color: currentColor;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.1;
}

.project-switch button em {
  grid-column: 1 / -1;
  margin-top: 0;
  padding-left: 36px;
  color: rgba(243, 234, 220, 0.48);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
}

.project-switch button.is-active {
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(194, 75, 52, 0.1), transparent 66%),
    linear-gradient(180deg, rgba(211, 164, 93, 0.075), transparent 52%),
    rgba(14, 16, 16, 0.98);
  box-shadow:
    inset 0 2px 0 rgba(211, 164, 93, 0.84),
    inset 0 -1px 0 rgba(243, 234, 220, 0.06);
}

.project-switch button.is-active::after {
  content: none;
}

.project-switch button:hover {
  color: rgba(243, 234, 220, 0.92);
  background-color: rgba(18, 20, 20, 0.98);
}

.project-switch button:active {
  transform: none;
}

.project-switch button:focus-visible {
  z-index: var(--z-stack-2);
  outline: 0;
  color: var(--bone);
  box-shadow: inset 0 2px 0 rgba(211, 164, 93, 0.84);
}

.project-card[hidden] {
  display: none !important;
}

.project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  gap: 14px 20px;
  min-height: 0;
  padding: 24px 24px 24px;
  background:
    linear-gradient(180deg, rgba(7, 9, 10, 0.28), rgba(7, 9, 10, 0.36));
  animation: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card > * {
  position: relative;
  z-index: var(--z-stack-4);
}

.project-card::before {
  content: none;
  position: absolute;
  z-index: var(--z-overlay-7);
  top: 42px;
  right: 42px;
  padding: 7px 10px;
  border: 1px solid rgba(211, 164, 93, 0.36);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.18), rgba(194, 75, 52, 0.08)),
    rgba(5, 6, 7, 0.76);
  color: rgba(243, 234, 220, 0.9);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.project-card::after {
  content: none;
}

#project-01 {
  --project-ink: url("./assets/project-textures/raster/project-01-s3g-shinsen-ink.png");
}

#project-02 {
  --project-ink: url("./assets/project-textures/raster/project-02-nobunaga-shinsen-ink.png");
}

#project-03 {
  --project-ink: url("./assets/project-textures/raster/project-03-s3g-cn-ink.png");
}

#project-04 {
  --project-ink: url("./assets/project-textures/raster/project-04-fantasia-cn-ink.png");
}


.project-card:nth-of-type(1) {
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.28), rgba(7, 9, 10, 0.36));
}


.project-card:nth-of-type(2) {
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.28), rgba(7, 9, 10, 0.36));
}


.project-card:nth-of-type(3) {
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.28), rgba(7, 9, 10, 0.36));
}


.project-thumb {
  grid-column: 1 / -1;
  min-width: 0;
  grid-row: 1;
  min-height: 166px;
  aspect-ratio: 16 / 9;
  align-self: stretch;
  border-color: rgba(211, 164, 93, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.045),
    inset 0 0 0 14px rgba(5, 6, 7, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.project-thumb img,
.project-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.9) contrast(1.04) brightness(0.82);
  transform: scale(1.04);
}

.project-thumb.is-playing .project-thumb-video {
  opacity: 0.96;
  filter: saturate(0.96) contrast(1.02) brightness(0.9);
}

.project-thumb::before {
  content: attr(data-label);
  position: absolute;
  inset: auto;
  left: 18px;
  top: 18px;
  z-index: var(--z-stack-4);
  opacity: 1;
  padding: 8px 12px 9px;
  border: 1px solid rgba(211, 164, 93, 0.34);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.1), transparent),
    rgba(5, 6, 7, 0.78);
  color: rgba(243, 234, 220, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.project-thumb-clean::before,
.project-thumb-clean::after {
  display: none;
}

.project-thumb img,
.project-thumb-video,
.project-thumb::after,
.thumb-cta,
.thumb-star {
  z-index: var(--z-stack-2);
}

.thumb-cta,
.thumb-star {
  position: absolute;
  z-index: var(--z-stack-4);
}

.thumb-cta {
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(211, 164, 93, 0.34);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.12), transparent),
    rgba(5, 6, 7, 0.78);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
}

.thumb-star {
  right: 20px;
  top: 20px;
  bottom: auto;
  color: rgba(211, 164, 93, 0.28);
  font-size: 22px;
  line-height: 1;
  transform: rotate(-5deg);
}

.project-thumb::after {
  inset: 0;
  opacity: 0.44;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.04), rgba(4, 5, 6, 0.12) 48%, rgba(4, 5, 6, 0.8)),
    linear-gradient(90deg, rgba(5, 6, 7, 0.86), rgba(5, 6, 7, 0.26), rgba(5, 6, 7, 0.8)) 0 76% / 100% 22% no-repeat,
    linear-gradient(90deg, rgba(243, 234, 220, 0.3), rgba(243, 234, 220, 0.06)) 9% 31% / 210px 4px no-repeat,
    linear-gradient(90deg, rgba(211, 164, 93, 0.34), rgba(211, 164, 93, 0.1)) 72% 80% / 170px 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(211, 164, 93, 0.035) 0 1px, transparent 1px 8.33%);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.06),
    inset 0 -70px 54px rgba(0, 0, 0, 0.34);
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--z-overlay-8);
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(211, 164, 93, 0.46);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.7);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(243, 234, 220, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.48);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.card-play:hover,
.card-play:focus-visible {
  border-color: rgba(211, 164, 93, 0.78);
  background: rgba(8, 9, 10, 0.84);
  outline: none;
}

.project-thumb.is-playing .card-play {
  opacity: 0.72;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(0.88);
}

.project-thumb.is-playing:hover .card-play,
.project-thumb.is-playing .card-play:focus-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-play::before {
  content: "";
  position: relative;
  width: 0;
  height: 0;
  border-left: 16px solid rgba(243, 234, 220, 0.86);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  transform: translateX(8%);
}

.project-thumb.is-playing .card-play::before {
  width: 22px;
  height: 24px;
  border: 0;
  background:
    linear-gradient(
      90deg,
      rgba(243, 234, 220, 0.86) 0 7px,
      transparent 7px 15px,
      rgba(243, 234, 220, 0.86) 15px 22px
    );
  transform: none;
}

.project-list > .project-card > span {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: start;
  padding: 7px 10px;
  border: 1px solid rgba(211, 164, 93, 0.24);
  background: rgba(5, 6, 7, 0.54);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.project-list strong {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  min-width: 0;
  max-width: 620px;
  font-size: clamp(24px, 1.75vw, 30px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.project-list p {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.68;
}

.case-meta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 0;
  padding-top: 2px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.project-list .case-meta {
  display: grid;
}

.case-meta div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(211, 164, 93, 0.18);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.06), transparent),
    rgba(6, 8, 9, 0.48);
}

.case-meta dt,
.case-meta dd {
  margin: 0;
}

.case-meta dt {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.case-meta dd {
  color: rgba(243, 234, 220, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.project-tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  margin-top: 2px;
}

.project-card:hover {
  transform: translateY(-2px);
  background-color: rgba(18, 20, 20, 0.92);
  box-shadow: inset 0 0 0 1px rgba(211, 164, 93, 0.14);
}

.intro-copy {
  max-width: 600px;
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 28px;
}

.metrics strong {
  display: block;
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid rgba(211, 164, 93, 0.18);
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.065), transparent),
    rgba(7, 9, 10, 0.58);
  color: var(--bone);
  font-size: clamp(24px, 2.2vw, 33px);
  font-weight: 520;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "kern" 1;
}

.metrics span {
  display: block;
  margin-top: 10px;
  color: rgba(243, 234, 220, 0.64);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--gold-line);
}

.intro-points span {
  min-height: 82px;
  display: block;
  position: relative;
  padding: 18px 18px 16px 56px;
  border-top: 2px solid rgba(211, 164, 93, 0.36);
  color: rgba(243, 234, 220, 0.86);
  background:
    var(--surface-embers),
    linear-gradient(180deg, rgba(211, 164, 93, 0.035), transparent 48%),
    rgba(8, 10, 11, 0.82);
  background-size:
    560px 380px, 720px 500px, 640px 460px, 800px 560px,
    auto, auto;
  background-position:
    0 0, 132px 72px, 248px 118px, 64px 238px,
    0 0, 0 0;
  background-repeat:
    repeat, repeat, repeat, repeat,
    no-repeat, no-repeat;
  animation: none;
  font-weight: 800;
}

.intro-points b {
  display: block;
  margin-bottom: 3px;
  color: var(--gold);
  font-size: 11px;
}

.intro-points span::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(211, 164, 93, 0.42);
  border-radius: 6px;
  background:
    rgba(8, 10, 11, 0.72)
    var(--point-icon, url("./assets/icons/generated/icon-selling-point-codex.png")) center / 17px 17px no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.04),
    0 0 18px rgba(211, 164, 93, 0.1);
}

.intro-points span:nth-child(1) { --point-icon: url("./assets/icons/generated/icon-selling-point-codex.png"); }
.intro-points span:nth-child(2) { --point-icon: url("./assets/icons/generated/icon-storyboard-codex.png"); }
.intro-points span:nth-child(3) { --point-icon: url("./assets/icons/generated/icon-production-codex.png"); }
.intro-points span:nth-child(4) { --point-icon: url("./assets/icons/generated/icon-ua-codex.png"); }
.intro-points span:nth-child(5) { --point-icon: url("./assets/icons/generated/icon-qa-codex.png"); }
.intro-points span:nth-child(6) { --point-icon: url("./assets/icons/generated/icon-testing-codex.png"); }

.intro-points span::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px 54px;
  height: 1px;
  background: linear-gradient(90deg, rgba(211, 164, 93, 0.4), transparent);
}

.proof-detail {
  display: grid;
  gap: 12px;
  margin-top: clamp(48px, 5.3vw, 75px);
  padding: 14px;
  border: 1px solid rgba(211, 164, 93, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.04), transparent 42%),
    rgba(7, 9, 10, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.025),
    0 18px 44px rgba(0, 0, 0, 0.16);
}

.proof-detail article {
  padding: 18px 20px;
  border: 1px solid rgba(211, 164, 93, 0.16);
  border-radius: var(--radius);
  background:
    var(--surface-embers),
    linear-gradient(90deg, rgba(211, 164, 93, 0.06), transparent 42%),
    rgba(8, 10, 11, 0.72);
  background-size:
    560px 380px, 720px 500px, 640px 460px, 800px 560px,
    auto, auto;
  background-position:
    0 0, 132px 72px, 248px 118px, 64px 238px,
    0 0, 0 0;
  background-repeat:
    repeat, repeat, repeat, repeat,
    no-repeat, no-repeat;
  animation: none;
}

.proof-detail span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.proof-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.tile-grid {
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--gold-line);
}

.type-tab {
  --type-accent: var(--gold);
  position: relative;
  min-height: 280px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 42px var(--page-gutter);
  overflow: hidden;
  border-top: 3px solid rgba(211, 164, 93, 0.48);
  color: inherit;
  text-decoration: none;
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.035),
    0 18px 46px rgba(0, 0, 0, 0.16);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
}

.type-tab::after {
  content: "";
  position: absolute;
  top: 30px;
  right: var(--page-gutter);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(211, 164, 93, 0.16);
  opacity: 0.56;
  background:
    radial-gradient(circle, rgba(211, 164, 93, 0.35) 0 2px, transparent 3px),
    linear-gradient(135deg, transparent 44%, rgba(211, 164, 93, 0.32) 45% 55%, transparent 56%);
  transform: translate3d(0, 0, 0) rotate(0deg);
  transition:
    opacity 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.type-tab::before {
  opacity: 0.2;
  background:
    radial-gradient(circle at 76% 22%, color-mix(in srgb, var(--type-accent) 22%, transparent), transparent 34%),
    linear-gradient(140deg, transparent 0 48%, rgba(243, 234, 220, 0.055) 48.2%, transparent 48.8%),
    linear-gradient(180deg, transparent 0 56%, rgba(5, 6, 7, 0.22));
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.type-icon {
  position: absolute;
  top: 29px;
  right: var(--page-gutter);
  z-index: var(--z-stack-1);
  width: 54px;
  height: 54px;
  padding: 12px;
  border: 1px solid rgba(211, 164, 93, 0.26);
  background:
    radial-gradient(circle at 74% 24%, rgba(194, 75, 52, 0.18), transparent 36%),
    rgba(8, 10, 11, 0.64);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.035),
    0 14px 32px rgba(0, 0, 0, 0.24);
  transform: translate3d(0, 0, 0);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.type-tab:nth-child(1) { --type-accent: #c34d36; border-top-color: #c34d36; }
.type-tab:nth-child(2) { --type-accent: var(--gold); border-top-color: var(--gold); }
.type-tab:nth-child(3) { --type-accent: #4c7899; border-top-color: #4c7899; }
.type-tab:nth-child(4) { --type-accent: #5a805d; border-top-color: #5a805d; }

.type-tab span {
  color: rgba(243, 234, 220, 0.78);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.type-tab strong {
  max-width: 8em;
  color: var(--bone);
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.type-tab p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.type-tab ul,
.rules-panel ul {
  position: relative;
  z-index: var(--z-stack-1);
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.type-tab li,
.rules-panel li {
  position: relative;
  padding-left: 14px;
  color: rgba(243, 234, 220, 0.7);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.type-tab li::before,
.rules-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.type-tab:hover,
.type-tab:focus-visible {
  transform: translateY(-6px);
  border-top-color: var(--type-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--type-accent) 30%, transparent), rgba(211, 164, 93, 0.08) 36%, transparent 70%),
    linear-gradient(180deg, rgba(243, 234, 220, 0.06), transparent 46%),
    rgba(24, 27, 27, 0.98);
  box-shadow:
    inset 4px 0 0 var(--type-accent),
    inset 0 0 0 1px color-mix(in srgb, var(--type-accent) 62%, transparent),
    inset 0 -4px 0 color-mix(in srgb, var(--type-accent) 76%, transparent),
    0 24px 56px rgba(0, 0, 0, 0.34);
}

.type-tab:hover::before,
.type-tab:focus-visible::before,
.type-tab.is-pressing::before {
  opacity: 0.54;
  transform: translate3d(0, -8px, 0) scale(1.08);
}

.type-tab:hover::after,
.type-tab:focus-visible::after,
.type-tab.is-pressing::after,
.type-tab:hover .type-icon,
.type-tab:focus-visible .type-icon,
.type-tab.is-pressing .type-icon {
  border-color: color-mix(in srgb, var(--type-accent) 72%, rgba(243, 234, 220, 0.16));
  opacity: 1;
  transform: translate3d(0, -4px, 0) rotate(-4deg);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.06),
    0 0 0 1px color-mix(in srgb, var(--type-accent) 22%, transparent),
    0 18px 38px rgba(0, 0, 0, 0.34);
}

.type-tab:hover span,
.type-tab:hover strong,
.type-tab:focus-visible span,
.type-tab:focus-visible strong,
.type-tab.is-pressing span,
.type-tab.is-pressing strong {
  color: var(--bone);
}

.type-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -8px;
}

.type-tab:active,
.type-tab.is-pressing {
  transform: translateY(-2px) scale(0.992);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--type-accent) 34%, transparent), transparent 62%),
    rgba(24, 26, 26, 0.98);
  box-shadow:
    inset 4px 0 0 var(--type-accent),
    inset 0 0 0 1px color-mix(in srgb, var(--type-accent) 72%, transparent),
    inset 0 -4px 0 var(--type-accent);
}

.case-strip {
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: var(--section-pad) var(--page-gutter);
  background:
    var(--surface-embers),
    radial-gradient(circle at 76% 24%, rgba(194, 75, 52, 0.07), transparent 24%),
    rgba(8, 10, 11, 0.92);
  background-size:
    560px 380px, 720px 500px, 640px 460px, 800px 560px,
    auto, auto;
  background-position:
    0 0, 132px 72px, 248px 118px, 64px 238px,
    0 0, 0 0;
  background-repeat:
    repeat, repeat, repeat, repeat,
    no-repeat, no-repeat;
  animation: none;
}

.step-header {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.step-header h2 {
  margin-bottom: 0;
}

.section-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(211, 164, 93, 0.24);
  padding: 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.section-link:hover,
.section-link:focus-visible {
  border-color: rgba(211, 164, 93, 0.56);
  background: rgba(211, 164, 93, 0.08);
  outline: none;
}

.section-link:active {
  transform: translateY(1px);
}

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

.workflow-grid article {
  position: relative;
  min-height: 174px;
  padding: 22px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(211, 164, 93, 0.08), transparent 34%),
    rgba(10, 12, 13, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(243, 234, 220, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.14);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.workflow-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(194, 75, 52, 0.7), transparent);
  opacity: 0.48;
}

.workflow-title {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.workflow-icon {
  display: block;
  width: 26px;
  height: 26px;
  padding: 4px;
  border: 1px solid rgba(211, 164, 93, 0.32);
  background: rgba(7, 9, 10, 0.68);
  box-shadow: inset 0 0 0 1px rgba(243, 234, 220, 0.035);
}

.workflow-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 164, 93, 0.36);
}

.workflow-grid span {
  color: var(--gold);
  font-weight: 900;
}

.workflow-grid strong {
  display: block;
  margin: 0;
  font-size: 18px;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rules-panel {
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gold-line);
}

.rules-panel > div {
  padding: 38px var(--page-gutter);
}

.rules-panel p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.rules-panel p {
  max-width: 680px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.contact-link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(211, 164, 93, 0.34);
  background: rgba(243, 234, 220, 0.04);
  color: rgba(243, 234, 220, 0.84);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.contact-link::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: var(--z-ambient);
  border-left: 2px solid transparent;
  background: linear-gradient(90deg, rgba(211, 164, 93, 0.14), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease, border-color 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: rgba(211, 164, 93, 0.14);
  color: var(--bone);
  box-shadow:
    inset 0 -2px 0 var(--gold),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.contact-link:hover::before,
.contact-link:focus-visible::before {
  border-left-color: var(--gold);
  opacity: 1;
}

.contact-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.contact-link:active {
  transform: translateY(1px) scale(0.985);
  background: rgba(211, 164, 93, 0.2);
}

.materials-page .tile-shell {
  min-height: 100svh;
  padding-top: 74px;
}

.process-page .tile-shell {
  min-height: 100svh;
}

.error-page .tile-shell {
  min-height: 100svh;
}

.materials-hero,
.process-hero {
  position: relative;
  z-index: var(--z-stack-1);
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 20px;
  padding: 34px var(--page-gutter) 52px;
  border-bottom: 1px solid var(--gold-line);
  background:
    radial-gradient(circle at 74% 20%, rgba(194, 75, 52, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 14, 14, 0.96), rgba(8, 10, 11, 0.9));
  overflow: hidden;
}

.error-hero {
  min-height: 100svh;
  align-content: center;
}

.error-code {
  position: absolute;
  right: max(24px, var(--page-gutter));
  bottom: -0.16em;
  margin: 0;
  color: rgba(211, 164, 93, 0.06);
  font-size: clamp(140px, 28vw, 420px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.error-actions {
  margin-top: 12px;
}

.process-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: min(42vw, 520px);
  height: 100%;
  border-left: 1px solid rgba(211, 164, 93, 0.14);
  background:
    linear-gradient(90deg, transparent 0 24px, rgba(211, 164, 93, 0.08) 24px 25px, transparent 25px 48px),
    linear-gradient(0deg, transparent 0 18px, rgba(243, 234, 220, 0.04) 18px 19px, transparent 19px 38px);
  opacity: 0.52;
  transform: skewX(-8deg) translateX(12%);
  pointer-events: none;
}

.materials-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-overlay-9);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 17px var(--page-gutter);
  border-bottom: 1px solid rgba(211, 164, 93, 0.18);
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.94), rgba(5, 6, 7, 0.82)),
    rgba(8, 9, 10, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.materials-nav a {
  --nav-accent: var(--gold);
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(211, 164, 93, 0.2);
  padding: 0 14px;
  color: var(--bone);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.materials-nav a[data-material-nav="ua"] { --nav-accent: #c34d36; }
.materials-nav a[data-material-nav="pv"] { --nav-accent: var(--gold); }
.materials-nav a[data-material-nav="localization"] { --nav-accent: #4c7899; }
.materials-nav a[data-material-nav="testing"] { --nav-accent: #5a805d; }

.materials-nav a:hover,
.materials-nav a:focus-visible {
  border-color: color-mix(in srgb, var(--nav-accent) 66%, rgba(243, 234, 220, 0.14));
  background: rgba(20, 22, 22, 0.82);
  color: var(--gold);
  outline: none;
}

.materials-nav a.is-selected,
.materials-nav a[aria-current="location"] {
  border-color: color-mix(in srgb, var(--nav-accent) 78%, rgba(243, 234, 220, 0.16));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--nav-accent) 24%, transparent), rgba(211, 164, 93, 0.08)),
    rgba(211, 164, 93, 0.1);
  color: var(--bone);
  box-shadow:
    inset 4px 0 0 var(--nav-accent),
    inset 0 0 0 1px rgba(243, 234, 220, 0.05),
    inset 0 -3px 0 var(--nav-accent),
    0 14px 30px rgba(0, 0, 0, 0.22);
}

.materials-nav a:active {
  transform: translateY(1px);
}

.materials-hero h1,
.process-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--bone);
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.92;
}

.materials-hero > p:not(.panel-label):not(.error-code),
.process-hero > p:not(.panel-label):not(.error-code) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.process-board {
  position: relative;
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: var(--section-pad) var(--page-gutter);
  background:
    linear-gradient(90deg, rgba(211, 164, 93, 0.08), transparent 16%, transparent 84%, rgba(211, 164, 93, 0.05)),
    rgba(5, 7, 8, 0.18);
}

.process-step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 360px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(211, 164, 93, 0.22);
  border-radius: var(--radius);
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(211, 164, 93, 0.08), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(194, 75, 52, 0.1), transparent 28%),
    rgba(8, 10, 11, 0.88);
  box-shadow: inset 0 1px 0 rgba(243, 234, 220, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.process-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid rgba(211, 164, 93, 0.3);
  background:
    radial-gradient(circle at 80% 20%, rgba(194, 75, 52, 0.16), transparent 40%),
    rgba(5, 7, 8, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(243, 234, 220, 0.035),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

.process-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(194, 75, 52, 0.76), transparent);
}

.process-step::after {
  content: none;
  display: none;
}

.process-step span {
  position: relative;
  z-index: var(--z-stack-1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.process-step span::after {
  content: attr(data-shadow);
  position: absolute;
  right: -4px;
  top: -34px;
  z-index: var(--z-ambient);
  color: rgba(211, 164, 93, 0.07);
  font-size: 112px;
  line-height: 1;
  pointer-events: none;
}

.process-step em {
  width: fit-content;
  border: 1px solid rgba(211, 164, 93, 0.2);
  padding: 5px 9px;
  color: rgba(243, 234, 220, 0.62);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.process-step h2 {
  margin: 0;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.02;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.process-step ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.process-step li {
  position: relative;
  padding-left: 14px;
  color: rgba(243, 234, 220, 0.76);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.62;
}

.process-step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

.process-step:hover {
  transform: translateY(-3px);
  border-color: rgba(211, 164, 93, 0.42);
  background-color: rgba(13, 15, 15, 0.96);
}

.material-section {
  width: var(--content-width);
  margin-left: 50%;
  transform: translateX(-50%);
  scroll-margin-top: 16px;
  padding: var(--section-pad) var(--page-gutter);
  border-bottom: 1px solid var(--gold-line);
}

.material-section:target {
  background:
    radial-gradient(circle at 18% 10%, rgba(211, 164, 93, 0.08), transparent 28%),
    rgba(13, 15, 15, 0.72);
}

.material-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.62fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 28px;
}

.material-section-head .panel-label {
  grid-column: 1 / -1;
  margin-bottom: -18px;
}

.material-section-head h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 84px);
  line-height: 0.96;
}

.material-section-head p:not(.panel-label) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.material-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.material-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.material-stage {
  overflow: hidden;
  border: 1px solid rgba(211, 164, 93, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(211, 164, 93, 0.08), transparent 30%),
    rgba(8, 10, 11, 0.9);
}

.material-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid rgba(211, 164, 93, 0.22);
  background:
    radial-gradient(circle at 50% 50%, rgba(211, 164, 93, 0.1), transparent 34%),
    #030404;
}

.material-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030404;
}

.material-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 4, 4, 0.02), transparent 42%, rgba(3, 4, 4, 0.5)),
    linear-gradient(90deg, rgba(211, 164, 93, 0.08), transparent 16%, transparent 84%, rgba(211, 164, 93, 0.06));
}

.material-play {
  appearance: none;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: var(--z-stack-3);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(243, 234, 220, 0.58);
  border-radius: 50%;
  background: rgba(8, 9, 10, 0.68);
  box-shadow:
    0 0 0 1px rgba(211, 164, 93, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.material-play:hover,
.material-play:focus-visible {
  border-color: rgba(211, 164, 93, 0.88);
  background: rgba(8, 9, 10, 0.84);
  outline: none;
}

.material-play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid rgba(243, 234, 220, 0.88);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translateX(8%);
}

.material-play.is-playing::before {
  width: 22px;
  height: 26px;
  border: 0;
  background:
    linear-gradient(
      90deg,
      rgba(243, 234, 220, 0.86) 0 7px,
      transparent 7px 15px,
      rgba(243, 234, 220, 0.86) 15px 22px
    );
  transform: none;
}

.material-play:active {
  transform: translate(-50%, -50%) scale(0.97);
}

.material-play[hidden],
.material-frame-controls[hidden] {
  display: none;
}

.material-frame-controls {
  position: absolute;
  z-index: var(--z-stack-3);
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: grid;
  grid-template-columns: auto minmax(90px, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: rgba(243, 234, 220, 0.64);
  font-size: 12px;
}

.material-frame-controls small,
.material-frame-controls b {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.material-frame-controls b {
  border: 1px solid rgba(243, 234, 220, 0.1);
  padding: 5px 8px;
  background: rgba(8, 9, 10, 0.46);
  color: rgba(243, 234, 220, 0.72);
}

.material-stage-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.material-stage-poster[hidden] {
  display: none;
}

.material-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  color: rgba(243, 234, 220, 0.72);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 950;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.74);
  background:
    linear-gradient(135deg, rgba(211, 164, 93, 0.18), transparent 38%),
    repeating-linear-gradient(0deg, rgba(211, 164, 93, 0.08) 0 1px, transparent 1px 18px),
    rgba(4, 5, 5, 0.64);
}

.material-empty[hidden] {
  display: none;
}

.material-stage-copy {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.material-stage-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.material-stage-copy h3 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.04;
}

.material-stage-copy p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.material-stage-copy ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.material-stage-copy li {
  color: rgba(243, 234, 220, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.material-playlist-rail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.material-subtype-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 6px;
}

.material-subtype-tab {
  padding: 9px 10px;
  border: 1px solid rgba(211, 164, 93, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.04), transparent),
    rgba(7, 9, 10, 0.62);
  color: rgba(243, 234, 220, 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.material-subtype-tab:hover {
  border-color: rgba(211, 164, 93, 0.46);
  color: var(--bone);
}

.material-subtype-tab:focus-visible {
  outline: 2px solid rgba(211, 164, 93, 0.55);
  outline-offset: 2px;
}

.material-subtype-tab.is-active {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(211, 164, 93, 0.16), rgba(211, 164, 93, 0.04)),
    rgba(7, 9, 10, 0.72);
  color: var(--bone);
}

.material-playlist-empty {
  margin: 6px 4px 0;
  padding: 18px 12px;
  border: 1px dashed rgba(211, 164, 93, 0.22);
  border-radius: 6px;
  color: rgba(243, 234, 220, 0.5);
  font-size: 13px;
  text-align: center;
  background: rgba(7, 9, 10, 0.4);
}

.material-playlist {
  display: grid;
  gap: 10px;
  max-height: clamp(360px, 68vh, 620px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(211, 164, 93, 0.36) transparent;
}

.material-playlist[hidden] {
  display: none;
}

.material-playlist .material-thumb-video {
  width: 112px;
  height: 100%;
  min-height: 64px;
  object-fit: cover;
  background: rgba(7, 9, 10, 0.62);
  border-radius: 4px;
  pointer-events: none;
  display: block;
}

.material-playlist::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  display: block;
}

.material-playlist::-webkit-scrollbar-track {
  background: transparent;
}

.material-playlist::-webkit-scrollbar-thumb {
  background: rgba(211, 164, 93, 0.36);
  border-radius: 3px;
  transition: background-color 160ms ease;
}

.material-playlist::-webkit-scrollbar-thumb:hover {
  background: rgba(211, 164, 93, 0.62);
}

.material-playlist button {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 86px;
  border: 1px solid rgba(211, 164, 93, 0.16);
  padding: 8px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(211, 164, 93, 0.05), transparent 42%),
    rgba(7, 8, 8, 0.86);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.material-playlist button:hover,
.material-playlist button:focus-visible,
.material-playlist button.is-active {
  border-color: rgba(211, 164, 93, 0.48);
  background:
    linear-gradient(135deg, rgba(211, 164, 93, 0.09), rgba(194, 75, 52, 0.035) 38%, transparent 72%),
    rgba(19, 21, 21, 0.96);
  outline: none;
}

.material-playlist button.is-active {
  border-color: rgba(211, 164, 93, 0.62);
  box-shadow:
    inset 4px 0 0 var(--gold),
    inset 0 0 0 1px rgba(243, 234, 220, 0.055),
    inset 0 -2px 0 rgba(211, 164, 93, 0.38),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.material-playlist button:focus-visible {
  box-shadow:
    inset 3px 0 0 var(--gold),
    0 0 0 2px rgba(211, 164, 93, 0.18);
}

.material-playlist button:active {
  transform: translateY(1px);
}

.material-playlist img,
.material-playlist i {
  width: 112px;
  height: 68px;
  display: block;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(194, 75, 52, 0.2), transparent 48%),
    #050606;
}

.material-playlist i {
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 164, 93, 0.22);
  background:
    radial-gradient(circle at 76% 28%, rgba(194, 75, 52, 0.18), transparent 36%),
    rgba(5, 6, 6, 0.92);
}

.material-slot-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  background: var(--material-slot-icon, url("./assets/icons/generated/icon-pv-codex.png")) center / contain no-repeat;
}

.material-slot-icon-pv { --material-slot-icon: url("./assets/icons/generated/icon-pv-codex.png"); }
.material-slot-icon-localization { --material-slot-icon: url("./assets/icons/generated/icon-localization-codex.png"); }
.material-slot-icon-testing { --material-slot-icon: url("./assets/icons/generated/icon-testing-codex.png"); }

.material-playlist button:hover .material-slot-icon,
.material-playlist button:focus-visible .material-slot-icon,
.material-playlist button.is-active .material-slot-icon {
  border-color: rgba(211, 164, 93, 0.42);
}

.material-playlist span {
  display: grid;
  align-content: center;
  gap: 4px;
}

.material-playlist b {
  color: var(--gold);
  font-size: 11px;
}

.material-playlist strong {
  color: var(--bone);
  font-size: 15px;
  line-height: 1.18;
}

.material-playlist em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.material-status {
  width: fit-content;
  border: 1px solid rgba(211, 164, 93, 0.24);
  padding: 3px 6px;
  color: rgba(243, 234, 220, 0.72);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.material-playlist button[data-status="video-ready"] .material-status {
  border-color: rgba(87, 159, 129, 0.42);
  color: rgba(157, 220, 188, 0.88);
}

.material-playlist button[data-status="poster-only"] .material-status {
  border-color: rgba(211, 164, 93, 0.44);
  color: rgba(231, 194, 120, 0.9);
}

.material-playlist button[data-status="text-evidence"] .material-status {
  border-color: rgba(95, 142, 158, 0.5);
  color: rgba(166, 211, 224, 0.9);
}

.material-playlist button[data-status="empty"] .material-status {
  border-color: rgba(194, 75, 52, 0.42);
  color: rgba(226, 143, 119, 0.9);
}

.material-card {
  display: grid;
  min-height: 420px;
  grid-template-rows: minmax(190px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(211, 164, 93, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(211, 164, 93, 0.08), transparent 30%),
    rgba(8, 10, 11, 0.88);
}

.material-card.is-featured {
  min-height: 500px;
}

.material-media {
  position: relative;
  min-height: 230px;
  background:
    linear-gradient(135deg, rgba(194, 75, 52, 0.14), transparent 48%),
    #050606;
}

.material-media img,
.material-media video {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
}

.material-media video {
  background: #050606;
}

.material-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.48)),
    linear-gradient(90deg, rgba(211, 164, 93, 0.16), transparent 18% 82%, rgba(211, 164, 93, 0.12));
}

.material-slot .material-media {
  display: grid;
  place-items: center;
}

.material-slot .material-media span {
  position: relative;
  z-index: var(--z-stack-1);
  border: 1px solid rgba(211, 164, 93, 0.28);
  padding: 12px 16px;
  color: var(--gold);
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 950;
  letter-spacing: 0.06em;
}

.material-evidence {
  min-height: 230px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(76, 120, 153, 0.14), transparent 46%),
    radial-gradient(circle at 80% 20%, rgba(211, 164, 93, 0.12), transparent 28%),
    rgba(5, 6, 6, 0.94);
}

.testing-evidence {
  background:
    linear-gradient(135deg, rgba(194, 75, 52, 0.14), transparent 46%),
    radial-gradient(circle at 82% 18%, rgba(211, 164, 93, 0.12), transparent 28%),
    rgba(5, 6, 6, 0.94);
}

.material-evidence > span {
  display: inline-flex;
  margin-bottom: 20px;
  border: 1px solid rgba(211, 164, 93, 0.26);
  padding: 8px 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.material-evidence dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.material-evidence div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-top: 1px solid rgba(211, 164, 93, 0.16);
  padding-top: 12px;
}

.material-evidence dt {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.material-evidence dd {
  margin: 0;
  color: rgba(243, 234, 220, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.material-body {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.material-body span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.material-body h3 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.1;
}

.material-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.material-body ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.material-body li {
  color: rgba(243, 234, 220, 0.76);
  font-size: 13px;
  font-weight: 800;
}

@keyframes textureBreath {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  50% {
    opacity: 0.96;
    transform: scale(1.015);
    background-position: 20px 0, 0 12px, 0 0, 0 0;
  }
}

@keyframes mapDrift {
  0%,
  100% {
    opacity: 0.22;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.34;
    transform: translate3d(-14px, 8px, 0);
  }
}

@keyframes landscapeDrift {
  0%,
  100% {
    opacity: 0.26;
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    opacity: 0.38;
    transform: translate3d(-12px, 6px, 0) scale(1.012);
  }
}

@keyframes riverBreath {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) rotate(-11deg) scale(1);
  }
  50% {
    opacity: 0.45;
    transform: translate3d(-18px, 8px, 0) rotate(-10deg) scale(1.04);
  }
}

@keyframes emberFloat {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  16% {
    opacity: 0.82;
  }
  100% {
    opacity: 0;
    transform: translate3d(-26px, -210px, 0) scale(1.08);
  }
}

@keyframes emberField {
  0% {
    background-position: 0 0, 140px 180px, 260px 80px, 80px 320px;
    opacity: 0.3;
  }
  50% {
    opacity: 0.42;
  }
  100% {
    background-position: 760px -1040px, 1080px -1000px, 1120px -1020px, 1100px -960px;
    opacity: 0.3;
  }
}

@keyframes surfaceEmberDrift {
  0% {
    background-position:
      0 0, 132px 72px, 248px 118px, 64px 238px,
      0 0, 0 0, 0 0;
  }
  100% {
    background-position:
      560px -380px, 852px -428px, 888px -342px, 864px -322px,
      0 0, 0 0, 0 0;
  }
}

@keyframes emberPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.78;
    transform: translate3d(-8px, -6px, 0);
  }
}

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

@media (max-width: 900px) {
  :root {
    --page-gutter: 24px;
    --content-width: calc(100vw - (var(--page-gutter) * 2));
    --panel-pad: 24px;
    --section-pad: 36px;
  }

  html,
  body,
  .tile-shell {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
  }

  .process-page,
  .process-page .tile-shell,
  .error-page,
  .error-page .tile-shell {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .tile-hero,
  .portfolio-columns,
  .tile-grid,
  .case-strip,
  .materials-hero,
  .process-hero,
  .process-board,
  .material-section,
  .rules-panel {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    margin-left: 0;
    transform: none;
  }

  .tile-shell *,
  .tile-shell *::before,
  .tile-shell *::after {
    min-width: 0;
  }

  .tile-shell h1,
  .tile-shell h2,
  .tile-shell strong,
  .tile-shell p,
  .tile-shell li,
  .tile-shell dd,
  .tile-shell b {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tile-hero,
  .portfolio-columns,
  .tile-grid,
  .rules-panel,
  .process-board,
  .material-section,
  .material-section-head,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .tile-hero {
    display: block;
    min-height: auto;
    /* padding-top 等于 .tile-nav height (82px)，padding-bottom 0 让金线贴住 video 底部 */
    padding: 82px var(--page-gutter) 0;
  }

  .hero-stage {
    display: block;
    width: 100%;
    transform: none;
    --hero-stage-scale: 1;
  }

  .tile-nav {
    height: 82px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    padding-top: 8px;
    text-align: center;
  }

  .tile-nav::after {
    /* mobile: 金线压到 nav 容器底部，所有 nav 内容都在线之上 */
    bottom: 0;
  }

  .tile-nav > span {
    justify-content: center;
    text-align: center;
    min-height: 32px;
  }

  .tile-nav nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .tile-nav a {
    min-height: 30px;
  }

  .tile-nav span,
  .tile-nav a,
  .kicker,
  .panel-label {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .tile-nav span {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 38px;
  }

  .hero-copy {
    height: auto;
    align-self: auto;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
    max-width: calc(100vw - (var(--page-gutter) * 2));
    margin: 0 auto 26px;
    overflow: hidden;
  }

  .hero-cover-composite {
    aspect-ratio: 941 / 930;
    height: auto;
    width: min(100%, 390px);
    max-width: calc(100vw - (var(--page-gutter) * 2));
    justify-self: center;
    margin-inline: auto;
  }

  .hero-copy-top {
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-role {
    max-width: none;
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .hero-copy > *,
  .hero-frame > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy h1,
  .hero-copy p {
    max-width: 100%;
  }

  .hero-title {
    width: 100%;
    font-size: clamp(48px, 15vw, 68px);
  }

  .hero-title-art-lockup {
    width: min(118%, 440px);
  }

  .hero-title-art {
    width: min(126%, 460px);
  }

  .hero-title-image {
    width: min(100%, 520px);
    margin: -8px 0 30px -14px;
  }

  .hero-title-line.is-second {
    margin-left: clamp(34px, 13vw, 56px);
  }

  .hero-title-overline,
  .hero-title-foot {
    font-size: 9px;
    letter-spacing: 0.11em;
  }

  .hero-title::before {
    right: 0;
    width: 64px;
  }

  .hero-copy p,
  .intro-copy,
  .project-list p,
  .proof-detail p,
  .type-tab p,
  .workflow-grid p,
  .rules-panel p,
  .rules-panel li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-copy p:last-of-type {
    font-size: 15px;
    line-height: 1.78;
    max-width: 100%;
  }

  .hero-tags {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .hero-tags::-webkit-scrollbar {
    display: none;
  }

  .hero-tags span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero-tags span,
  .project-tags b {
    padding-inline: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .hero-frame {
    min-height: 0;
    aspect-ratio: 21 / 9;
    width: 100vw;
    box-sizing: border-box;
    max-width: 100vw;
    margin-left: calc(var(--page-gutter) * -1);
    margin-right: calc(var(--page-gutter) * -1);
    overflow: hidden;
    transform: scale(1.1);
    transform-origin: center top;
    margin-bottom: 0;
  }

  .hero-play {
    left: 18px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  .hero-play::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
    border-left-width: 12px;
  }

  .reel-header {
    top: 10px;
    left: 12px;
    font-size: 6px;
    gap: 6px;
    letter-spacing: 0.1em;
  }

  .reel-header::before {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 10px rgba(194, 75, 52, 0.8);
  }

  .asset-slot-label {
    top: 14px;
    right: 16px;
  }

  .asset-slot-label span {
    display: none;
  }

  .play-mark {
    width: 52px;
    height: 52px;
  }

  .play-mark::before {
    border-left-width: 15px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .reel-controls {
    left: 14px;
    right: 14px;
    bottom: 16px;
    grid-template-columns: auto minmax(60px, 1fr) auto;
    gap: 10px;
    overflow: hidden;
  }

  .reel-controls small,
  .reel-controls b {
    white-space: nowrap;
  }

  .reel-controls b:nth-of-type(n + 2) {
    display: none;
  }

  .portfolio-columns > article,
  .case-strip {
    min-height: auto;
    width: 100%;
    padding: var(--section-pad) var(--page-gutter);
    max-width: 100vw;
    overflow: hidden;
  }

  .step-header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    justify-content: start;
    gap: 12px;
  }

  .step-header h2 {
    width: 100%;
  }

  .step-header .section-link {
    width: fit-content;
  }

  .portfolio-columns {
    display: block;
    padding: 18px var(--page-gutter) 24px;
  }

  .portfolio-columns::after {
    inset: 10px var(--page-gutter);
  }

  .project-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 100%;
    padding-bottom: 32px;
    overflow: hidden;
  }

  .project-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .project-switch button {
    min-height: 72px;
    padding: 12px 10px;
    overflow-wrap: anywhere;
  }

  .project-switch button b,
  .project-switch button em {
    white-space: normal;
  }

  .project-list {
    width: 100%;
    max-width: 100%;
  }

  .project-thumb,
  .project-list strong,
  .project-list p,
  .case-meta,
  .project-tags,
  .project-list > .project-card > span {
    grid-column: 1;
    grid-row: auto;
  }

  .project-list strong,
  .project-list p,
  .case-meta,
  .project-tags {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .project-list strong {
    font-size: 26px;
    line-height: 1.18;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .project-thumb {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: 132px;
    aspect-ratio: auto;
    flex: 0 0 132px;
    margin-bottom: 2px;
  }

  .case-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .case-meta div {
    padding: 8px 10px;
  }

  .case-meta dt,
  .case-meta dd {
    display: inline;
  }

  .case-meta dt {
    margin: 0 8px 0 0;
  }

  .card-play {
    left: auto;
    right: 34px;
    top: 108px;
    transform: translateY(-50%);
  }

  .project-list p,
  .intro-copy {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .metrics,
  .intro-points,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 12px;
  }

  .metrics strong {
    padding: 12px 14px;
    border: 1px solid rgba(211, 164, 93, 0.16);
    background: rgba(8, 10, 11, 0.52);
    font-size: 28px;
    white-space: normal;
  }

  .metrics span {
    font-size: 11px;
  }

  .intro-column,
  .intro-column > * {
    max-width: calc(100vw - (var(--page-gutter) * 2));
  }

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

  .intro-points span {
    min-height: 78px;
    padding: 16px 12px 14px 48px;
  }

  .intro-points span::before {
    left: 14px;
    width: 21px;
    height: 21px;
  }

  .intro-points span::after {
    left: 48px;
  }

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

  .type-tab {
    min-height: 240px;
  }

  .materials-hero,
  .process-hero {
    padding-top: 118px;
  }

  .materials-nav {
    gap: 8px;
  }

  .materials-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .materials-hero h1,
  .process-hero h1 {
    font-size: 42px;
  }

  .materials-hero > p:not(.panel-label),
  .process-hero > p:not(.panel-label) {
    font-size: 15px;
  }

  .process-board {
    padding: var(--section-pad) var(--page-gutter);
  }

  .process-step {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    padding: 22px;
  }

  .process-step:nth-child(4),
  .process-step:nth-child(5),
  .process-step:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .process-step::after {
    display: none;
  }

  .process-step h2 {
    font-size: 34px;
  }

  .process-step li {
    line-height: 1.68;
  }

  .material-section-head {
    gap: 12px;
    margin-bottom: 18px;
  }

  .material-console {
    grid-template-columns: 1fr;
  }

  .material-video-frame {
    width: 100%;
  }

  .material-playlist {
    grid-template-columns: 1fr;
  }

  .material-playlist button {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .material-playlist img,
  .material-playlist i {
    width: 96px;
    height: 58px;
  }

  .material-section-head .panel-label {
    margin-bottom: 0;
  }

  .material-section-head h2 {
    font-size: 36px;
  }

  .material-card,
  .material-card.is-featured {
    min-height: 0;
  }

  .material-media {
    min-height: 210px;
  }

  .material-evidence {
    min-height: 210px;
    padding: 22px;
  }

  .material-evidence div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .material-body {
    padding: 20px;
  }

  .workflow-grid article:not(:last-child)::after {
    display: none;
  }

  .workflow-grid article:nth-child(4),
  .workflow-grid article:nth-child(5),
  .workflow-grid article:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  /* D-20260527-mobile-portrait-density-r1: 保持网格身份，收紧节奏，反 "强行下挪" 拉长 */

  /* R3 项目 tab 从 2×2 改回 1 列竖列；激活态加暗金左竖线 */
  .project-switch {
    grid-template-columns: 1fr;
  }
  .project-switch button {
    min-height: 64px;
    text-align: left;
    padding: 12px 14px 12px 18px;
  }
  .project-switch button.is-active {
    box-shadow:
      inset 3px 0 0 rgba(211, 164, 93, 0.92),
      inset 0 -1px 0 rgba(243, 234, 220, 0.06);
  }

  /* R4 内容类型 4 卡保持 1×4 横向并排（不许塌成 1 列竖叠 / 也不要 2×2） */
  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .type-tab {
    min-height: 112px;
    padding: 14px 6px 12px;
    gap: 4px;
    text-align: center;
    align-content: start;
  }
  .type-tab .type-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 2px;
  }
  .type-tab span {
    display: none;
  }
  .type-tab strong {
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }
  .type-tab p,
  .type-tab ul {
    display: none;
  }
  .type-tab::after,
  .type-tab::before {
    display: none;
  }

  /* 海外各区买量经历 3 数据保持横向 3-up，不撑成满宽大块 */
  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .metrics strong {
    padding: 10px 8px;
    font-size: clamp(16px, 4.6vw, 22px);
  }
  .metrics span {
    font-size: 10px;
    margin-top: 6px;
  }


  /* 创作流程 6 步：手机改 3 列 × 2 行小卡（不要 1 列长方形长条，也不要太大）*/
  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .workflow-grid article {
    padding: 10px 8px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .workflow-title {
    gap: 4px;
    flex-wrap: wrap;
  }
  .workflow-icon {
    width: 18px;
    height: 18px;
  }
  .workflow-grid article span {
    font-size: 10px;
  }
  .workflow-grid article strong {
    font-size: 12px;
    line-height: 1.2;
  }
  .workflow-grid article p {
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
