:root {
  --bg: #0a0b0d;
  --bg-2: #111318;
  --surface: #17191f;
  --surface-2: #20232b;
  --surface-light: #e5e0d7;
  --text: #f1eee6;
  --text-muted: #b9b2a8;
  --text-dark: #171615;
  --line: rgba(229, 224, 215, 0.14);
  --line-strong: rgba(229, 224, 215, 0.3);
  --cyan: #8da6b8;
  --pink: #9b5b52;
  --yellow: #d3b56b;
  --mint: #8f9f8a;
  --violet: #888091;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(141, 166, 184, 0.1), transparent 28%),
    linear-gradient(300deg, rgba(154, 91, 82, 0.08), transparent 34%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(229, 224, 215, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 224, 215, 0.028) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(141, 166, 184, 0.035) 96px 97px);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 86%);
}

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

button,
input {
  font: inherit;
}

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  min-width: 320px;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(122deg, rgba(255, 224, 113, 0.16), transparent 34%),
    linear-gradient(238deg, rgba(112, 216, 255, 0.17), transparent 38%),
    linear-gradient(180deg, #171126 0%, #251633 52%, #110d19 100%);
  transition: opacity 640ms ease, visibility 640ms ease, background 900ms ease;
}

body.intro-lock {
  overflow: hidden;
}

.intro.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro.is-gone {
  display: none;
}

.intro.is-diving {
  background:
    linear-gradient(120deg, rgba(255, 247, 231, 0.9), rgba(255, 224, 113, 0.38) 32%, transparent 62%),
    linear-gradient(238deg, rgba(112, 216, 255, 0.34), transparent 42%),
    linear-gradient(180deg, #fff7e7 0%, #fbe8c9 44%, #251633 100%);
}

.intro.is-diving::after {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 250, 242, 0.98) 0 8%, rgba(255, 250, 242, 0.72) 18%, transparent 46%),
    radial-gradient(circle at 50% 48%, rgba(112, 216, 255, 0.34), transparent 54%);
  opacity: 0;
  transform: scale(0.62);
  animation: pageDiveFlash 1120ms cubic-bezier(0.12, 0.88, 0.18, 1) forwards;
}

.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mist,
.light-ray,
.paper-fragment,
.dust {
  position: absolute;
  pointer-events: none;
}

.intro-bg::before,
.intro-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: rotate(-8deg) scale(1.1);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 76%, transparent 100%);
  animation: ambientGridDrift 14s ease-in-out infinite;
}

.intro-bg::after {
  background-image:
    repeating-linear-gradient(112deg, transparent 0 22px, rgba(255, 250, 242, 0.055) 22px 23px),
    repeating-linear-gradient(18deg, transparent 0 34px, rgba(112, 216, 255, 0.05) 34px 35px);
  transform: rotate(6deg) scale(1.12);
  opacity: 0.72;
  animation-delay: -6s;
}

.intro-scene::before,
.intro-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: -1;
  width: min(720px, 92vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.52;
  transform: translate(-50%, -50%) scale(0.8);
  filter: blur(18px);
}

.intro-scene::before {
  background:
    radial-gradient(circle, rgba(255, 250, 242, 0.22), transparent 46%),
    conic-gradient(from 120deg, rgba(255, 224, 113, 0.24), rgba(112, 216, 255, 0.18), rgba(255, 110, 156, 0.18), rgba(255, 224, 113, 0.24));
  animation: auraTurn 8.4s ease-in-out infinite;
}

.intro-scene::after {
  width: min(520px, 74vw);
  opacity: 0.28;
  background:
    radial-gradient(circle at 42% 52%, rgba(255, 250, 242, 0.48), transparent 30%),
    radial-gradient(circle at 62% 44%, rgba(112, 216, 255, 0.28), transparent 46%);
  animation: auraBreath 5.8s ease-in-out infinite;
}

.mist {
  width: min(680px, 72vw);
  height: 190px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 242, 0.12), rgba(112, 216, 255, 0.08), transparent);
  filter: blur(24px);
  opacity: 0.72;
  animation: mistDrift 9s ease-in-out infinite;
}

.mist-a {
  left: -10%;
  top: 18%;
  transform: rotate(-12deg);
}

.mist-b {
  right: -12%;
  bottom: 14%;
  transform: rotate(14deg);
  animation-delay: -4s;
}

.light-ray {
  width: 2px;
  height: 54vh;
  top: -8%;
  background: linear-gradient(to bottom, transparent, rgba(255, 224, 113, 0.34), transparent);
  filter: blur(1px);
  opacity: 0.5;
  transform-origin: top center;
  animation: raySweep 7.4s ease-in-out infinite;
}

.ray-a {
  left: 21%;
  transform: rotate(24deg);
}

.ray-b {
  right: 24%;
  transform: rotate(-28deg);
  animation-delay: -3.3s;
  background: linear-gradient(to bottom, transparent, rgba(112, 216, 255, 0.3), transparent);
}

.paper-fragment {
  width: 42px;
  height: 30px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.74), rgba(255, 224, 113, 0.2)),
    rgba(255, 250, 242, 0.32);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  opacity: 0.62;
  animation: paperFloat 8.8s ease-in-out infinite;
}

.paper-a {
  left: 12%;
  bottom: 26%;
  transform: rotate(-18deg);
}

.paper-b {
  right: 14%;
  top: 31%;
  width: 34px;
  height: 24px;
  animation-delay: -2.7s;
}

.paper-c {
  right: 31%;
  bottom: 19%;
  width: 28px;
  height: 20px;
  animation-delay: -5.2s;
}

.dust {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.78);
  box-shadow:
    34px 28px 0 rgba(255, 224, 113, 0.54),
    -44px 72px 0 rgba(112, 216, 255, 0.44),
    74px 96px 0 rgba(255, 110, 156, 0.38),
    -80px -24px 0 rgba(146, 240, 200, 0.36);
  opacity: 0.7;
  animation: dustRise 6.8s ease-in-out infinite;
}

.dust-a {
  left: 29%;
  top: 28%;
}

.dust-b {
  right: 25%;
  top: 42%;
  animation-delay: -2.2s;
}

.dust-c {
  left: 49%;
  bottom: 24%;
  animation-delay: -4.5s;
}

.star {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 224, 113, 0.75);
  animation: starPulse 3.2s ease-in-out infinite;
}

.star-a {
  left: 17%;
  top: 22%;
}

.star-b {
  right: 18%;
  top: 18%;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(112, 216, 255, 0.76);
  animation-delay: -1.1s;
}

.star-c {
  left: 24%;
  bottom: 18%;
  width: 7px;
  height: 7px;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(255, 110, 156, 0.7);
  animation-delay: -2s;
}

.star-d {
  right: 28%;
  bottom: 24%;
  width: 5px;
  height: 5px;
  background: var(--mint);
  box-shadow: 0 0 16px rgba(146, 240, 200, 0.72);
  animation-delay: -2.7s;
}

.intro-skip {
  position: absolute;
  top: clamp(14px, 2vw, 24px);
  right: clamp(14px, 2vw, 24px);
  z-index: 3;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 8px;
  color: var(--text);
  background: rgba(16, 15, 24, 0.46);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.intro-scene {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100vw - 36px));
  min-height: min(700px, calc(100vh - 38px));
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto auto;
  justify-items: center;
  align-items: center;
  gap: 22px;
  padding: clamp(18px, 4vw, 48px);
}

.intro-camera {
  width: min(720px, 88vw);
  aspect-ratio: 1.42;
  display: grid;
  place-items: center;
  perspective: 1600px;
  transform: translateY(18px) scale(0.78);
  transition: transform 900ms cubic-bezier(0.18, 0.82, 0.16, 1);
}

.intro-book {
  position: relative;
  width: min(560px, 74vw);
  aspect-ratio: 1.48;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateZ(-7deg);
  transition: transform 940ms cubic-bezier(0.18, 0.82, 0.16, 1), filter 700ms ease;
}

.book-shadow {
  position: absolute;
  inset: 21% -2% -9%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.14) 42%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(255, 224, 113, 0.1), transparent);
  filter: blur(26px);
  transform: translateZ(-120px) rotateX(8deg);
}

.real-flip-book {
  width: min(650px, 84vw);
  aspect-ratio: 1.52;
  transform: rotateX(56deg) rotateZ(-5deg);
}

.real-flip-book::before {
  content: "";
  position: absolute;
  inset: 11% 8% 11% 8%;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(54, 33, 49, 0.38), rgba(255, 250, 242, 0.1) 8%, transparent 48%, rgba(54, 33, 49, 0.16)),
    linear-gradient(145deg, #a65487, #f2779d 44%, #6bcce8);
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 242, 0.2),
    inset 0 0 0 16px rgba(255, 250, 242, 0.055),
    0 34px 64px rgba(0, 0, 0, 0.32);
  transform: translateZ(-2px);
}

.real-flip-book::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 13%;
  bottom: 13%;
  z-index: 4;
  width: 18px;
  border-radius: 99px;
  background:
    linear-gradient(90deg, rgba(32, 22, 32, 0.26), rgba(255, 250, 242, 0.54), rgba(32, 22, 32, 0.2)),
    linear-gradient(180deg, transparent, rgba(255, 224, 113, 0.22), transparent);
  filter: blur(0.2px);
  opacity: 0.78;
  transform: translateX(-50%) translateZ(16px);
  pointer-events: none;
}

.flip-book-shell {
  position: absolute;
  inset: 7% 5% 9%;
  z-index: 2;
  display: grid;
  place-items: center;
  transform: translateZ(18px);
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.28));
}

.flip-book-shell::before,
.flip-book-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.flip-book-shell::before {
  inset: 4% 1% -3%;
  border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(91, 58, 70, 0.22) 0 1px, rgba(255, 247, 231, 0.45) 1px 4px),
    #f0dfc4;
  box-shadow:
    inset 0 0 0 1px rgba(73, 45, 58, 0.16),
    inset 0 -14px 20px rgba(83, 54, 66, 0.16);
  transform: translateZ(-3px);
}

.flip-book-shell::after {
  left: 50%;
  top: 3%;
  bottom: 2%;
  z-index: 6;
  width: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(38, 24, 35, 0.26), rgba(255, 255, 255, 0.36), rgba(38, 24, 35, 0.18));
  opacity: 0.72;
  transform: translateX(-50%);
}

.flip-book {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.flip-book:active {
  cursor: grabbing;
}

.closed-book-cover {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 12;
  width: 52%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(48, 18, 44, 0.34), transparent 18%, rgba(255, 255, 255, 0.18) 50%, transparent 84%),
    radial-gradient(circle at 29% 19%, rgba(255, 250, 242, 0.34), transparent 24%),
    linear-gradient(145deg, rgba(255, 224, 113, 0.98), rgba(255, 110, 156, 0.9) 42%, rgba(96, 197, 225, 0.92)),
    #c15d91;
  box-shadow:
    -9px 0 0 rgba(255, 245, 223, 0.72),
    -15px 0 0 rgba(235, 213, 184, 0.68),
    inset 0 0 0 2px rgba(255, 250, 242, 0.24),
    inset 0 0 0 16px rgba(255, 250, 242, 0.055),
    0 24px 48px rgba(0, 0, 0, 0.3);
  transform: translateX(-50%) translateZ(32px);
  transform-origin: left center;
  transition:
    opacity 520ms ease,
    transform 760ms cubic-bezier(0.16, 0.92, 0.18, 1),
    filter 520ms ease;
  pointer-events: none;
}

.closed-book-cover::before,
.closed-book-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.closed-book-cover::before {
  left: -16px;
  top: 2%;
  bottom: 2%;
  width: 34px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(42, 25, 38, 0.5), rgba(255, 250, 242, 0.38), transparent);
  filter: blur(4px);
  opacity: 0.72;
}

.closed-book-cover::after {
  right: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 245, 223, 0.7) 0 2px, rgba(213, 184, 150, 0.55) 2px 4px),
    #ead4ae;
  box-shadow: inset 4px 0 8px rgba(58, 34, 46, 0.12);
}

.closed-book-cover .cover-title {
  font-size: clamp(36px, 5.8vw, 64px);
}

.intro[data-step="0"] .flip-book {
  opacity: 0;
}

.intro[data-step="0"] .closed-book-cover {
  opacity: 1;
}

.intro[data-step="1"] .closed-book-cover,
.intro[data-step="2"] .closed-book-cover,
.intro[data-step="3"] .closed-book-cover,
.intro[data-step="4"] .closed-book-cover,
.intro.is-diving .closed-book-cover {
  opacity: 0;
  visibility: hidden;
  filter: blur(0.6px);
  transform: translateX(-50%) translateZ(42px) rotateY(-42deg) translateX(-10%);
}

.flip-book.stf__parent {
  width: 100%;
  max-width: 600px;
  min-height: 285px;
  touch-action: none;
}

.flip-book .stf__wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.flip-book .stf__block {
  border-radius: 11px;
  overflow: visible;
  perspective: 2300px;
}

.flip-book .stf__item {
  overflow: hidden;
  border-radius: 9px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(67, 44, 55, 0.13),
    inset 0 18px 32px rgba(255, 255, 255, 0.32);
}

.flip-book .stf__item.--left {
  border-radius: 10px 6px 6px 10px;
}

.flip-book .stf__item.--right {
  border-radius: 6px 10px 10px 6px;
}

.flip-book .stf__item.--hard {
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 242, 0.22),
    inset 0 0 0 16px rgba(255, 250, 242, 0.055),
    0 18px 34px rgba(0, 0, 0, 0.18);
}

.flip-book .stf__outerShadow,
.flip-book .stf__innerShadow,
.flip-book .stf__hardShadow,
.flip-book .stf__hardInnerShadow {
  border-radius: 10px;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.flip-page {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(22px, 7%, 36px);
  color: #2a1d30;
  background:
    linear-gradient(90deg, rgba(73, 45, 58, 0.16), transparent 8%, transparent 88%, rgba(73, 45, 58, 0.08)),
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.72), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 20px, rgba(72, 49, 59, 0.035) 20px 21px),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(80, 51, 62, 0.018) 18px 19px),
    #fff7e7;
}

.flip-page::before,
.flip-page::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.flip-page::before {
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.35), transparent 18%),
    radial-gradient(circle at 70% 72%, rgba(255, 224, 113, 0.11), transparent 28%),
    linear-gradient(90deg, rgba(63, 38, 51, 0.12), transparent 12%, rgba(255, 255, 255, 0.18) 48%, transparent 88%);
  opacity: 0.8;
}

.flip-page::after {
  inset: 3% 4%;
  border: 1px solid rgba(69, 44, 56, 0.1);
  opacity: 0.52;
}

.flip-page > * {
  position: relative;
  z-index: 2;
}

.flip-page h3 {
  margin: 8px 0 12px;
  max-width: 8.6em;
  color: #25172d;
  font-size: clamp(24px, 4.2vw, 42px);
  line-height: 0.95;
  font-weight: 950;
}

.flip-page p {
  margin: 0;
  max-width: 18em;
  color: rgba(42, 29, 48, 0.76);
  font-size: 13px;
  line-height: 1.72;
}

.flip-kicker {
  color: rgba(42, 29, 48, 0.54) !important;
  font-size: 10px !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flip-cover,
.flip-entry {
  color: #fffaf2;
  background:
    linear-gradient(90deg, rgba(48, 18, 44, 0.32), transparent 20%, rgba(255, 255, 255, 0.16) 52%, transparent 86%),
    radial-gradient(circle at 28% 18%, rgba(255, 250, 242, 0.28), transparent 24%),
    linear-gradient(145deg, rgba(255, 224, 113, 0.96), rgba(255, 110, 156, 0.88) 42%, rgba(96, 197, 225, 0.9)),
    #c15d91;
}

.flip-cover::after,
.flip-entry::after {
  inset: 16px;
  border-color: rgba(255, 250, 242, 0.24);
}

.flip-entry {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(130deg, rgba(255, 250, 242, 0.18), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 242, 0.54), rgba(255, 224, 113, 0.28) 22%, transparent 42%),
    linear-gradient(145deg, #251633, #6a4778 48%, #fff1cb);
}

.flip-entry h3,
.flip-entry p,
.flip-entry .flip-kicker,
.flip-cover .flip-kicker {
  color: #fffaf2 !important;
  text-shadow: 0 10px 22px rgba(40, 18, 38, 0.28);
}

.cover-mark {
  position: absolute;
  left: 9%;
  top: 10%;
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 10px;
  color: #231323;
  background: rgba(255, 250, 242, 0.84);
  box-shadow: 0 12px 22px rgba(46, 23, 43, 0.18);
  font-size: 23px;
  font-weight: 950;
}

.cover-title {
  position: absolute;
  left: 9%;
  bottom: 15%;
  color: #fffaf2;
  font-size: clamp(36px, 6.2vw, 70px);
  line-height: 0.9;
  font-weight: 950;
  text-shadow: 0 12px 26px rgba(59, 18, 56, 0.34);
}

.cover-ribbon {
  position: absolute;
  right: 12%;
  top: 12%;
  width: 13%;
  height: 62%;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 250, 242, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 250, 242, 0.16);
}

.page-line {
  display: block;
  width: 64%;
  height: 7px;
  border-radius: 99px;
  margin-bottom: 12px;
  background: rgba(40, 26, 49, 0.16);
}

.page-line.long {
  width: 82%;
}

.page-dot,
.page-spark,
.page-glow {
  position: absolute;
  right: 16%;
  bottom: 18%;
  width: 54px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  box-shadow: 0 0 28px rgba(255, 110, 156, 0.36);
}

.page-spark {
  right: 12%;
  bottom: 16%;
  width: 74px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.page-glow {
  right: 11%;
  bottom: 12%;
  width: 112px;
  background: radial-gradient(circle, rgba(255, 250, 242, 0.96), rgba(255, 224, 113, 0.5) 36%, rgba(112, 216, 255, 0.16) 62%, transparent 72%);
  filter: blur(1px);
  animation: pageGlowBreath 2.8s ease-in-out infinite;
}

.page-inside {
  background:
    linear-gradient(135deg, rgba(255, 224, 113, 0.2), transparent 40%),
    linear-gradient(315deg, rgba(112, 216, 255, 0.13), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(64, 41, 52, 0.034) 22px 23px),
    #fff8ea;
}

.page-visual {
  background:
    linear-gradient(135deg, rgba(182, 140, 255, 0.19), transparent 38%),
    radial-gradient(circle at 77% 77%, rgba(146, 240, 200, 0.26), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(64, 41, 52, 0.034) 22px 23px),
    #fff8ea;
}

.page-sketch {
  background:
    linear-gradient(135deg, rgba(112, 216, 255, 0.14), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 18px, rgba(64, 41, 52, 0.03) 18px 19px),
    #fff9ed;
}

.sketch-stroke {
  position: absolute;
  left: 13%;
  height: 3px;
  border-radius: 99px;
  background: rgba(42, 29, 48, 0.26);
  transform-origin: left center;
}

.stroke-a {
  bottom: 28%;
  width: 66%;
  transform: rotate(-8deg);
}

.stroke-b {
  bottom: 22%;
  width: 48%;
  transform: rotate(6deg);
}

.stroke-c {
  bottom: 16%;
  width: 58%;
  transform: rotate(-2deg);
}

.page-thumbs {
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: 14%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.page-thumbs span {
  min-height: 70px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.28), transparent),
    linear-gradient(145deg, var(--pink), var(--yellow));
  box-shadow: inset 0 0 0 1px rgba(42, 29, 48, 0.09);
}

.page-thumbs span:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.24), transparent),
    linear-gradient(145deg, var(--cyan), var(--mint));
  transform: translateY(-8px);
}

.page-thumbs span:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.24), transparent),
    linear-gradient(145deg, var(--violet), var(--pink));
}

.page-motion {
  background:
    radial-gradient(circle at 72% 35%, rgba(112, 216, 255, 0.24), transparent 28%),
    radial-gradient(circle at 28% 78%, rgba(255, 110, 156, 0.16), transparent 26%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(64, 41, 52, 0.03) 22px 23px),
    #fff8ea;
}

.page-orbit {
  position: absolute;
  right: 14%;
  bottom: 14%;
  width: 92px;
  aspect-ratio: 1;
  border: 2px solid rgba(112, 216, 255, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(112, 216, 255, 0.14);
}

.page-orbit::before {
  content: "";
  position: absolute;
  right: 10px;
  top: 13px;
  width: 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 20px rgba(255, 110, 156, 0.54);
}

.page-light {
  background:
    radial-gradient(circle at 65% 68%, rgba(255, 250, 242, 0.74), rgba(255, 224, 113, 0.25) 18%, transparent 42%),
    linear-gradient(135deg, rgba(255, 110, 156, 0.13), transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(64, 41, 52, 0.026) 22px 23px),
    #fff8ea;
}

.intro-copy {
  max-width: 680px;
  text-align: center;
  transition: opacity 420ms ease, transform 420ms ease;
}

.intro-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.intro-copy p:first-child {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.intro-copy h2 {
  margin: 8px 0 8px;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.04;
}

.intro-progress {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.intro-progress span {
  width: 32px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 250, 242, 0.25);
  transition: background 220ms ease, width 220ms ease;
}

.intro-progress span.is-current {
  width: 54px;
  background: linear-gradient(90deg, var(--yellow), var(--cyan));
}

.intro[data-step="1"] .intro-camera {
  transform: translateY(8px) scale(0.86);
}

.intro[data-step="2"] .intro-camera {
  transform: translateY(0) scale(0.94);
}

.intro[data-step="3"] .intro-camera {
  transform: translateY(-8px) scale(1.04);
}

.intro[data-step="4"] .intro-camera {
  transform: translateY(-24px) scale(1.72);
}

.intro[data-step="4"] .intro-book {
  transform: rotateX(42deg) rotateZ(0deg);
}

.intro[data-step="4"] .flip-book-shell {
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22))
    drop-shadow(0 0 46px rgba(255, 250, 242, 0.24));
}

.intro[data-step="4"] .intro-copy {
  opacity: 0.92;
  transform: translateY(-8px);
}

.intro.is-turning .book-shadow {
  animation: realBookShadowPulse 980ms cubic-bezier(0.16, 0.9, 0.16, 1) both;
}

.intro.is-turning .paper-fragment {
  animation-name: paperFloat, flipFragmentLift;
  animation-duration: 8.8s, 980ms;
  animation-timing-function: ease-in-out, cubic-bezier(0.16, 0.9, 0.16, 1);
  animation-iteration-count: infinite, 1;
}

.intro.is-turning .dust,
.intro.is-turning .star {
  filter: brightness(1.18);
}

.intro.no-page-flip .flip-book {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 11px;
  overflow: hidden;
}

.intro.no-page-flip .flip-page {
  display: none;
}

.intro.no-page-flip .flip-cover,
.intro.no-page-flip .page-inside {
  display: block;
}

.intro.is-diving .intro-camera {
  animation: bookCameraDive 1180ms cubic-bezier(0.1, 0.9, 0.16, 1) forwards;
}

.intro.is-diving .intro-book {
  animation: bookObjectDive 1180ms cubic-bezier(0.1, 0.9, 0.16, 1) forwards;
}

.intro.is-diving .flip-book-shell {
  box-shadow:
    inset 0 0 0 1px rgba(66, 42, 56, 0.08),
    inset 0 0 80px rgba(255, 250, 242, 0.96),
    0 0 120px rgba(255, 250, 242, 0.54);
}

.intro.is-diving .book-shadow,
.intro.is-diving .intro-copy,
.intro.is-diving .intro-progress,
.intro.is-diving .intro-skip {
  opacity: 0;
  pointer-events: none;
}

.intro.is-diving.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition-duration: 220ms;
}

.editor-toolbar {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  top: clamp(12px, 2vw, 20px);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  background: rgba(16, 15, 24, 0.86);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

body.public-view .editor-toolbar {
  display: none;
}

.tool-button,
.slot-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 250, 242, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-button {
  padding: 0 11px;
}

.tool-button:hover,
.slot-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 224, 113, 0.58);
  background: rgba(255, 250, 242, 0.16);
}

.primary-tool {
  color: #151119;
  border-color: transparent;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}

.tool-button.danger {
  color: #fff5f5;
  border-color: rgba(255, 110, 156, 0.36);
  background: rgba(255, 110, 156, 0.18);
}

.save-status {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.edit-only {
  display: none;
}

.is-editing .edit-only {
  display: inline-flex;
}

.is-editing .editor-toolbar {
  border-color: rgba(255, 224, 113, 0.58);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(10, 11, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(211, 181, 107, 0.68);
  border-radius: 4px;
  color: #0d0e10;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.brand-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
  padding-right: min(38vw, 420px);
}

.nav a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 760;
}

.nav a:hover {
  color: var(--text);
}

.section-band {
  padding: clamp(64px, 8vw, 116px) clamp(20px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding-top: clamp(58px, 8vw, 94px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
li,
span,
a {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: var(--text);
  font-size: clamp(42px, 7vw, 88px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0;
}

p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.74;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 640px;
  color: #fff2df;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.68;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 540px;
}

.hero-stats span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.08);
}

.hero-stats strong {
  color: var(--yellow);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.hero-stats small {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  border: 1px solid transparent;
}

.button.primary {
  color: #151119;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}

.button.secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 250, 242, 0.09);
}

.tag-list,
.project-meta,
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.tag-list li,
.project-meta span,
.skill-grid span {
  color: var(--text);
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 4px;
  background: rgba(229, 224, 215, 0.07);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 760;
}

.hero-art {
  position: relative;
  min-height: 640px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 224, 113, 0.22), transparent 30%),
    linear-gradient(315deg, rgba(112, 216, 255, 0.2), transparent 32%),
    #1b1421;
  box-shadow: var(--shadow);
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 250, 242, 0.13);
  border-radius: 8px;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 78%);
}

.image-slot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: zoom-in;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  pointer-events: none;
}

.image-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 250, 242, 0.22), transparent 42%);
  transform: translateX(-120%);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-slot:hover::after {
  opacity: 1;
  animation: sheen 1100ms ease;
}

.slot-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-image .slot-image {
  display: block;
}

.slot-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-weight: 900;
}

.has-image .slot-placeholder {
  background: linear-gradient(to top, rgba(16, 15, 24, 0.68), transparent 55%);
}

.slot-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: auto;
}

.slot-actions button {
  padding: 0 10px;
  background: rgba(16, 15, 24, 0.72);
  backdrop-filter: blur(12px);
}

.poster-main,
.poster-side,
.art-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  color: #fffaf2;
  border: 1px solid rgba(255, 250, 242, 0.26);
  border-radius: 8px;
  overflow: hidden;
  font-weight: 900;
}

.poster-main {
  left: 10%;
  top: 12%;
  width: 54%;
  height: 68%;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(255, 224, 113, 0.9), rgba(255, 110, 156, 0.88) 48%, rgba(112, 216, 255, 0.86)),
    #332139;
  box-shadow: 24px 28px 0 rgba(255, 250, 242, 0.08);
}

.poster-main .slot-placeholder::before {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 0;
  width: 45%;
  height: 78%;
  border-radius: 60px 60px 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.78), rgba(255, 250, 242, 0.1)),
    linear-gradient(160deg, #312043, #ff6e9c);
}

.poster-main .slot-placeholder span {
  position: relative;
  z-index: 2;
  max-width: 170px;
  font-size: 16px;
  line-height: 1.2;
}

.has-image.poster-main .slot-placeholder::before {
  content: none;
}

.poster-side {
  right: 9%;
  top: 18%;
  width: 30%;
  height: 33%;
  padding: 18px;
  background: linear-gradient(145deg, rgba(182, 140, 255, 0.88), rgba(112, 216, 255, 0.78));
}

.poster-side .slot-placeholder {
  align-items: flex-start;
}

.art-card {
  height: 86px;
  padding: 14px;
  background: rgba(16, 15, 24, 0.72);
  backdrop-filter: blur(12px);
}

.mini-a {
  left: 14%;
  bottom: 8%;
  width: 25%;
}

.mini-b {
  right: 12%;
  bottom: 12%;
  width: 33%;
}

.orbit {
  position: absolute;
  z-index: 0;
  height: 2px;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 113, 0.72), transparent);
  transform: rotate(-18deg);
}

.orbit-one {
  right: 8%;
  top: 10%;
  width: 210px;
}

.orbit-two {
  left: 12%;
  bottom: 22%;
  width: 260px;
}

.portfolio-hero-stage {
  position: relative;
  min-height: 650px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(211, 181, 107, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(141, 166, 184, 0.12), transparent 34%),
    radial-gradient(circle at 78% 16%, rgba(143, 159, 138, 0.08), transparent 28%),
    #101216;
  box-shadow: var(--shadow);
}

.portfolio-hero-stage::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: 1;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 4px;
  pointer-events: none;
}

.portfolio-hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(229, 224, 215, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 224, 215, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 82%);
}

.hero-work-card,
.project-thumb,
.character-project-main {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.hero-work-card {
  position: absolute;
  z-index: 2;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 4px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
  transition: transform 240ms ease, border-color 240ms ease;
}

.hero-work-card:hover {
  transform: translateY(-4px) rotate(var(--tilt, 0deg));
  border-color: rgba(255, 224, 113, 0.56);
}

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

.hero-work-card span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 4px;
  color: #fffaf2;
  background: rgba(10, 11, 13, 0.68);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
}

.hero-work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 15, 24, 0.46), transparent 46%);
  pointer-events: none;
}

.hero-work-card-1 {
  --tilt: -4deg;
  left: 9%;
  top: 9%;
  width: 36%;
  height: 70%;
  transform: rotate(-4deg);
}

.hero-work-card-2 {
  --tilt: 5deg;
  right: 8%;
  top: 8%;
  width: 25%;
  height: 45%;
  transform: rotate(5deg);
}

.hero-work-card-3 {
  --tilt: 2deg;
  right: 7%;
  bottom: 8%;
  width: 22%;
  height: 34%;
  transform: rotate(2deg);
}

.hero-work-card-4 {
  --tilt: -7deg;
  left: 40%;
  top: 18%;
  width: 35%;
  height: 18%;
  transform: rotate(-7deg);
}

.hero-work-card-5 {
  --tilt: 6deg;
  left: 37%;
  top: 43%;
  width: 34%;
  height: 18%;
  transform: rotate(6deg);
}

.hero-work-card-6 {
  --tilt: -2deg;
  left: 36%;
  bottom: 14%;
  width: 34%;
  height: 18%;
  transform: rotate(-2deg);
}

.hero-work-card-7 {
  --tilt: 4deg;
  left: 39%;
  bottom: 5%;
  width: 22%;
  height: 25%;
  transform: rotate(4deg);
}

.hero-stage-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 14px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 4px;
  color: var(--text);
  background: rgba(10, 11, 13, 0.76);
  backdrop-filter: blur(14px);
}

.hero-stage-note strong {
  color: var(--yellow);
  font-size: 32px;
  line-height: 1;
}

.hero-stage-note span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.section-heading p {
  margin: 16px 0 0;
  max-width: 650px;
}

.illustration-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 26%, rgba(211, 181, 107, 0.07), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(141, 166, 184, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(229, 224, 215, 0.025), transparent 42%),
    #0d0f13;
}

.illustration-marquee {
  position: relative;
  width: calc(100% + clamp(36px, 10vw, 144px));
  margin-inline: calc(clamp(18px, 5vw, 72px) * -1);
  padding: 6px 0 16px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 9%, black 91%, transparent 100%);
}

.illustration-marquee::before,
.illustration-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(150px, 18vw);
  pointer-events: none;
}

.illustration-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #0d0f13, transparent);
}

.illustration-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #0d0f13, transparent);
}

.illustration-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: illustrationLoop 34s linear infinite;
  will-change: transform;
}

.illustration-marquee:hover .illustration-track,
.is-editing .illustration-track {
  animation-play-state: paused;
}

.illustration-group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
}

.illustration-card {
  width: clamp(230px, 26vw, 340px);
  height: clamp(330px, 38vw, 450px);
  padding: 20px;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.04), rgba(10, 11, 13, 0.74)),
    var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
}

.illustration-card::before {
  inset: 12px;
  border-color: rgba(255, 250, 242, 0.18);
}

.illustration-card .slot-placeholder {
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  min-height: 100%;
  color: var(--text);
}

.illustration-card .slot-placeholder::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10%;
  height: 48%;
  z-index: -1;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 999px 999px 24px 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 250, 242, 0.76), transparent 18%),
    linear-gradient(160deg, rgba(255, 250, 242, 0.64), rgba(255, 250, 242, 0.08));
  opacity: 0.58;
}

.has-image.illustration-card .slot-placeholder::before {
  content: none;
}

.illustration-card h3,
.illustration-card p {
  margin: 0;
}

.illustration-card h3 {
  max-width: 13em;
  font-size: clamp(21px, 2.4vw, 31px);
  line-height: 1.04;
}

.illustration-card p {
  max-width: 18em;
  color: rgba(255, 250, 242, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.illustration-card small,
.illustration-index {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  background: rgba(16, 15, 24, 0.34);
  color: rgba(255, 250, 242, 0.86);
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.illustration-index {
  color: #151119;
  border-color: transparent;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}

.illustration-card-a {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(145deg, #d3b56b, #9b5b52 52%, #17191f);
}

.illustration-card-b {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(145deg, #17191f, #8da6b8 48%, #4f545e);
}

.illustration-card-c {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(145deg, #8f9f8a, #d3b56b 45%, #17191f);
}

.illustration-card-d {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(145deg, #9b5b52, #888091 50%, #111318);
}

.illustration-card-e {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    repeating-linear-gradient(135deg, rgba(229, 224, 215, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(145deg, #d3b56b, #8da6b8 48%, #0a0b0d);
}

.illustration-card-f {
  background:
    linear-gradient(180deg, transparent 0%, rgba(10, 11, 13, 0.78) 100%),
    linear-gradient(145deg, #888091, #8f9f8a 52%, #17191f);
}

.is-editing .illustration-marquee {
  overflow-x: auto;
  padding-bottom: 24px;
  mask-image: none;
}

.is-editing .illustration-track {
  animation: none;
  padding-inline: clamp(18px, 5vw, 72px);
  transform: none;
}

.is-editing .illustration-clones {
  display: none;
}

.layout-reel-section {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(154, 91, 82, 0.09), transparent 30%),
    linear-gradient(315deg, rgba(141, 166, 184, 0.08), transparent 34%),
    #08090d;
}

.layout-reel-marquee {
  position: relative;
  width: calc(100% + clamp(36px, 10vw, 144px));
  margin-inline: calc(clamp(18px, 5vw, 72px) * -1);
  padding: 6px 0 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.layout-reel-marquee::before,
.layout-reel-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(150px, 18vw);
  pointer-events: none;
}

.layout-reel-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #08090d, transparent);
}

.layout-reel-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #08090d, transparent);
}

.layout-reel-track,
.layout-reel-group {
  display: flex;
  flex-shrink: 0;
  gap: 18px;
}

.layout-reel-track {
  width: max-content;
  animation: layoutReelLoop 42s linear infinite;
  will-change: transform;
}

.layout-reel-marquee:hover .layout-reel-track,
.is-editing .layout-reel-track {
  animation-play-state: paused;
}

.layout-reel-card {
  position: relative;
  width: clamp(280px, 28vw, 390px);
  aspect-ratio: var(--layout-aspect, 1294 / 1900);
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.22);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(229, 224, 215, 0.08), rgba(141, 166, 184, 0.04)),
    rgba(10, 11, 13, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
}

.layout-reel-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout-reel-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 4px;
  color: var(--text);
  background: rgba(8, 9, 13, 0.72);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  backdrop-filter: blur(14px);
}

.layout-reel-card figcaption span {
  grid-row: span 2;
  color: var(--yellow);
  font-size: 17px;
  line-height: 1;
}

.layout-reel-card figcaption strong,
.layout-reel-card figcaption small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-reel-card figcaption small {
  color: rgba(255, 250, 242, 0.68);
  font-size: 11px;
}

.is-editing .layout-reel-marquee {
  overflow-x: auto;
  padding-bottom: 24px;
  mask-image: none;
}

.is-editing .layout-reel-track {
  padding-inline: clamp(18px, 5vw, 72px);
  transform: none;
}

.is-editing .layout-reel-clones {
  display: none;
}

.projects-section {
  background:
    linear-gradient(180deg, rgba(229, 224, 215, 0.035), transparent),
    #0f1115;
}

.character-project-grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.character-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(280px, 0.38fr) minmax(220px, 0.26fr);
  gap: 18px;
  min-height: 430px;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(229, 224, 215, 0.06), transparent 38%),
    linear-gradient(135deg, rgba(141, 166, 184, 0.05), rgba(229, 224, 215, 0.02)),
    rgba(10, 11, 13, 0.56);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.character-project-main {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 4px;
  background: rgba(10, 11, 13, 0.52);
}

.character-project-main img,
.project-thumb img,
.manual-page img,
.archive-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-project-main::after {
  content: "FULL BODY / PREVIEW";
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 4px;
  color: var(--text);
  background: rgba(10, 11, 13, 0.72);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.character-project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 4px;
}

.project-type {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.character-project-body p:not(.project-type) {
  margin: 14px 0 0;
}

.project-count {
  color: rgba(229, 224, 215, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.project-meta {
  margin-top: 18px;
}

.project-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 128px;
  gap: 10px;
  min-height: 0;
}

.project-thumb {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 4px;
  background: rgba(10, 11, 13, 0.48);
}

.project-thumb span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 6px 7px;
  border-radius: 4px;
  color: var(--text);
  background: rgba(10, 11, 13, 0.68);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.manual-section {
  overflow: hidden;
  background: #0b0d10;
}

.manual-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(560px, min(78vw, 920px));
  align-items: start;
  gap: 18px;
  width: calc(100% + clamp(36px, 10vw, 144px));
  margin-inline: calc(clamp(18px, 5vw, 72px) * -1);
  padding: 4px clamp(18px, 5vw, 72px) 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  isolation: isolate;
}

.manual-page {
  position: relative;
  aspect-ratio: var(--manual-aspect, 1900 / 1344);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(255, 250, 242, 0.14);
  border-radius: 4px;
  background: #050608;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
}

.manual-page img {
  object-fit: contain;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.manual-page.is-portrait {
  width: min(54vw, 460px);
  justify-self: center;
}

.manual-page figcaption {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  max-width: calc(100% - 24px);
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 4px;
  color: var(--text);
  background: rgba(5, 6, 8, 0.82);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  backdrop-filter: none;
}

.archive-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding: 14px;
  color: var(--text);
  background: linear-gradient(to top, rgba(16, 15, 24, 0.84), rgba(16, 15, 24, 0.18), transparent);
  font-size: 12px;
  font-weight: 850;
}

.manual-page figcaption span {
  color: var(--yellow);
  font-size: 16px;
  line-height: 1;
}

.archive-section {
  background:
    linear-gradient(135deg, rgba(141, 166, 184, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(229, 224, 215, 0.025), transparent),
    #101216;
}

.archive-method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: -8px 0 26px;
}

.archive-method article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(229, 224, 215, 0.14);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(229, 224, 215, 0.06), rgba(229, 224, 215, 0.02)),
    rgba(10, 11, 13, 0.42);
}

.archive-method strong,
.archive-method span {
  display: block;
}

.archive-method strong {
  color: var(--yellow);
  font-size: 15px;
  line-height: 1.35;
}

.archive-method span {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.62;
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.archive-toolbar a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 4px;
  color: var(--text);
  background: rgba(229, 224, 215, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.archive-grid {
  display: grid;
  gap: 38px;
}

.archive-group {
  scroll-margin-top: 90px;
}

.archive-group-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
}

.archive-group-copy {
  display: grid;
  min-width: 0;
  max-width: 780px;
  gap: 8px;
}

.archive-group-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 242, 0.68);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.72;
}

.archive-group-heading span {
  flex: 0 0 auto;
  padding-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 850;
}

.archive-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.resume-section,
.illustration-section,
.projects-section,
.layout-reel-section,
.manual-section,
.archive-section,
.about-section,
.daily-paintings-section,
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.archive-item {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.15);
  border-radius: 4px;
  background: rgba(229, 224, 215, 0.05);
  cursor: zoom-in;
}

.archive-item figcaption {
  padding: 38px 10px 10px;
}

.archive-item figcaption strong,
.archive-item figcaption span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.archive-item figcaption span {
  color: rgba(255, 250, 242, 0.66);
  font-size: 11px;
}

.compact {
  margin-bottom: 0;
}

.resume-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 250, 242, 0.16);
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
  background:
    linear-gradient(135deg, rgba(141, 166, 184, 0.14), transparent 34%),
    radial-gradient(circle at 84% 12%, rgba(211, 181, 107, 0.18), transparent 24%),
    linear-gradient(180deg, #111318 0%, #17141d 54%, #0c0d11 100%);
}

.resume-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 250, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

.resume-hero,
.resume-kpis,
.resume-grid {
  position: relative;
  z-index: 1;
}

.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 58px);
}

.resume-title-block {
  max-width: 920px;
}

.resume-title-block h2 {
  font-size: clamp(46px, 7vw, 104px);
  line-height: 0.92;
}

.resume-position {
  margin: 18px 0 0;
  color: #fffaf2;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 880;
}

.resume-summary {
  max-width: 860px;
  margin: 20px 0 0;
  color: rgba(255, 250, 242, 0.78);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.82;
}

.resume-id-card {
  display: grid;
  gap: 8px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 242, 0.12), rgba(255, 250, 242, 0.04)),
    rgba(10, 11, 13, 0.58);
  box-shadow: var(--shadow);
}

.resume-id-card span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
}

.resume-id-card strong {
  align-self: end;
  color: #fffaf2;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
}

.resume-id-card small {
  color: rgba(255, 250, 242, 0.72);
  font-size: 13px;
  font-weight: 780;
}

.resume-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.resume-kpis span {
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: end;
  padding: 18px;
  border: 1px solid rgba(255, 250, 242, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.055);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.resume-kpis strong {
  color: #fffaf2;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1;
}

.resume-kpis small {
  color: rgba(255, 250, 242, 0.6);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 760;
}

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

.resume-panel {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(255, 250, 242, 0.15);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.065);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.resume-panel-wide {
  grid-column: span 2;
}

.resume-panel-tall {
  grid-row: span 2;
}

.resume-panel-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
}

.resume-panel-head span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 950;
}

.resume-panel-head h3 {
  font-size: clamp(20px, 2vw, 28px);
}

.resume-panel p {
  margin: 14px 0 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 14px;
  line-height: 1.76;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-tags span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: 999px;
  color: #fffaf2;
  background: rgba(10, 11, 13, 0.34);
  font-size: 12px;
  font-weight: 820;
}

.resume-tags.large span {
  padding: 10px 13px;
  font-size: 13px;
}

.resume-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.resume-list div {
  display: grid;
  gap: 5px;
}

.resume-list dt {
  color: rgba(255, 250, 242, 0.46);
  font-size: 11px;
  font-weight: 900;
}

.resume-list dd {
  margin: 0;
  color: #fffaf2;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 740;
}

.resume-points {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resume-points li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 250, 242, 0.76);
  font-size: 14px;
  line-height: 1.68;
}

.resume-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--yellow);
}

.resume-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

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

.resume-skill-columns div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.25);
}

.resume-skill-columns strong {
  display: block;
  color: #fffaf2;
  font-size: 15px;
  line-height: 1.35;
}

.resume-timeline {
  display: grid;
  gap: 18px;
}

.resume-timeline div {
  position: relative;
  padding-left: 18px;
}

.resume-timeline div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(211, 181, 107, 0.5);
}

.resume-timeline time,
.resume-timeline strong {
  display: block;
}

.resume-timeline time {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 920;
}

.resume-timeline strong {
  margin-top: 5px;
  color: #fffaf2;
  font-size: 16px;
  line-height: 1.35;
}

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

.resume-process div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: 8px;
  background: rgba(10, 11, 13, 0.26);
}

.resume-process strong {
  display: block;
  color: #fffaf2;
  font-size: 15px;
  line-height: 1.4;
}

.resume-process p {
  margin-top: 10px;
}

.resume-contact-panel {
  background:
    linear-gradient(145deg, rgba(211, 181, 107, 0.13), rgba(255, 250, 242, 0.055)),
    rgba(255, 250, 242, 0.07);
}

.resume-contact-lines {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.resume-contact-lines span,
.resume-contact-lines a {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 6px;
  color: #fffaf2;
  background: rgba(10, 11, 13, 0.32);
  font-size: 13px;
  font-weight: 760;
}

.resume-contact-lines a:hover {
  border-color: rgba(255, 224, 113, 0.5);
  background: rgba(255, 250, 242, 0.1);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(280px, 0.45fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: var(--surface-light);
  color: var(--text-dark);
}

.about-section .eyebrow {
  color: #8f3260;
}

.about-section h2,
.about-section h3 {
  color: var(--text-dark);
}

.about-section p {
  max-width: 700px;
  color: #382f3c;
}

.skill-panel {
  border: 1px solid rgba(27, 23, 32, 0.14);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.58);
}

.skill-grid span {
  color: var(--text-dark);
  border-color: rgba(27, 23, 32, 0.12);
  background: rgba(27, 23, 32, 0.06);
}

.daily-paintings-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
  padding-block: clamp(42px, 5.6vw, 74px);
  border-top: 1px solid rgba(255, 250, 242, 0.1);
  background:
    linear-gradient(135deg, rgba(143, 159, 138, 0.12), transparent 30%),
    linear-gradient(180deg, #111318 0%, #0b0c10 100%);
}

.daily-paintings-copy {
  position: sticky;
  top: 96px;
}

.daily-paintings-copy h2 {
  max-width: 320px;
  color: #fffaf2;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 0.96;
}

.daily-paintings-copy p:not(.eyebrow) {
  max-width: 360px;
  margin: 16px 0 0;
  color: rgba(255, 250, 242, 0.68);
  font-size: 13px;
  line-height: 1.78;
}

.daily-paintings-grid {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: rgba(211, 181, 107, 0.62) rgba(255, 250, 242, 0.08);
}

.daily-painting-card {
  position: relative;
  flex: 0 0 clamp(156px, 16vw, 220px);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.14);
  border-radius: 6px;
  background: rgba(229, 224, 215, 0.05);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  cursor: zoom-in;
  scroll-snap-align: start;
}

.daily-painting-card.is-tall {
  height: clamp(230px, 27vw, 330px);
}

.daily-painting-card.is-wide {
  flex-basis: clamp(250px, 28vw, 410px);
  height: clamp(230px, 27vw, 330px);
}

.daily-painting-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
  transition: transform 360ms ease, opacity 220ms ease;
}

.daily-painting-card:hover img {
  transform: scale(1.035);
}

.motion-reactive {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
}

.motion-reactive > .interaction-aura,
.motion-reactive > .interaction-ring {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.motion-reactive > .interaction-aura {
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 250, 242, 0.24), transparent 0 18%),
    radial-gradient(circle at var(--mx) var(--my), rgba(211, 181, 107, 0.18), transparent 0 34%),
    radial-gradient(circle at var(--mx) var(--my), rgba(141, 166, 184, 0.16), transparent 0 46%);
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

.motion-reactive > .interaction-ring {
  inset: -1px;
  z-index: 6;
  padding: 1px;
  opacity: 0;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 54deg,
      rgba(211, 181, 107, 0.9) 76deg,
      rgba(141, 166, 184, 0.86) 112deg,
      rgba(255, 250, 242, 0.72) 142deg,
      transparent 182deg 360deg
    );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: motionRingSpin 5200ms linear infinite;
  animation-play-state: paused;
  transition: opacity 220ms ease, filter 220ms ease;
}

.motion-reactive:hover > .interaction-aura,
.motion-reactive.is-motion-active > .interaction-aura {
  opacity: 1;
}

.motion-reactive:hover > .interaction-ring,
.motion-reactive.is-motion-active > .interaction-ring {
  opacity: 0.86;
  filter: drop-shadow(0 0 11px rgba(211, 181, 107, 0.32));
  animation-play-state: running;
}

.motion-reactive.motion-lift {
  transition:
    transform 260ms ease,
    border-color 240ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.motion-reactive.motion-lift:hover,
.motion-reactive.motion-lift.is-motion-active {
  transform: translateY(-4px);
  border-color: rgba(255, 224, 113, 0.45);
  box-shadow:
    0 26px 66px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 250, 242, 0.08);
}

.motion-reactive img {
  transition: transform 360ms ease, opacity 220ms ease;
}

.motion-reactive.motion-lift:hover img,
.motion-reactive.motion-lift.is-motion-active img {
  transform: scale(1.025);
}

.motion-reactive > img,
.motion-reactive > .slot-image,
.motion-reactive > .work-image {
  position: relative;
  z-index: 2;
}

.motion-reactive > figcaption,
.motion-reactive > span:not(.interaction-aura):not(.interaction-ring),
.motion-reactive > .slot-placeholder,
.motion-reactive > .character-project-body,
.motion-reactive > .project-thumbs,
.motion-reactive > .daily-paintings-copy,
.motion-reactive > .daily-paintings-grid,
.motion-reactive > .skill-grid {
  position: relative;
  z-index: 3;
}

.hero-work-card.motion-reactive > .interaction-aura {
  z-index: 1;
}

.hero-work-card.motion-reactive > .interaction-ring {
  z-index: 6;
}

.hero-work-card.motion-reactive:hover > .interaction-aura {
  opacity: 0.78;
}

.character-project.motion-reactive > .interaction-aura,
.resume-panel.motion-reactive > .interaction-aura,
.daily-paintings-section.motion-reactive > .interaction-aura,
.about-section.motion-reactive > .interaction-aura {
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 250, 242, 0.16), transparent 0 22%),
    radial-gradient(circle at var(--mx) var(--my), rgba(143, 159, 138, 0.14), transparent 0 46%);
}

.character-project.motion-reactive:hover > .interaction-aura,
.resume-panel.motion-reactive:hover > .interaction-aura,
.daily-paintings-section.motion-reactive:hover > .interaction-aura,
.about-section.motion-reactive:hover > .interaction-aura {
  opacity: 1;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(54px, 7vw, 90px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #100f18;
}

.contact-section p {
  max-width: 650px;
}

[data-editable] {
  outline: 0 solid transparent;
  outline-offset: 3px;
  transition: outline-color 160ms ease, background 160ms ease;
}

.is-editing [data-editable] {
  outline: 1px dashed rgba(255, 224, 113, 0.62);
  background: rgba(255, 224, 113, 0.09);
  cursor: text;
}

.is-editing [data-editable]:focus {
  outline-style: solid;
  outline-color: rgba(112, 216, 255, 0.86);
  background: rgba(112, 216, 255, 0.13);
}

.is-editing .image-slot {
  cursor: default;
  outline: 1px dashed rgba(255, 224, 113, 0.62);
  outline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  animation: reveal 660ms ease forwards;
}

.motion-float {
  animation: float 6200ms ease-in-out infinite;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px clamp(18px, 4vw, 48px);
  background: rgba(8, 7, 12, 0.86);
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox p {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  bottom: 20px;
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 242, 0.24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 250, 242, 0.1);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes sheen {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(120%);
  }
}

@keyframes motionRingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes illustrationLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes layoutReelLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 9px));
  }
}

@keyframes ambientGridDrift {
  0%,
  100% {
    opacity: 0.54;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(1.1);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(2.4%, -1.8%, 0) rotate(-5deg) scale(1.16);
  }
}

@keyframes auraTurn {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, -50%) scale(0.78) rotate(0deg);
  }

  50% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.92) rotate(14deg);
  }
}

@keyframes auraBreath {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.72);
  }

  48% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(1.02);
  }
}

@keyframes starPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.72);
  }

  48% {
    opacity: 1;
    transform: scale(1.32);
  }
}

@keyframes pageDiveFlash {
  0% {
    opacity: 0;
    transform: scale(0.54);
  }

  48% {
    opacity: 0.82;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1.68);
  }
}

@keyframes mistDrift {
  0%,
  100% {
    opacity: 0.5;
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(0.96);
  }

  50% {
    opacity: 0.84;
    transform: translate3d(7%, -8%, 0) rotate(-7deg) scale(1.08);
  }
}

@keyframes raySweep {
  0%,
  100% {
    opacity: 0.22;
    transform: rotate(22deg) translateX(-18px);
  }

  45% {
    opacity: 0.68;
    transform: rotate(28deg) translateX(22px);
  }
}

@keyframes paperFloat {
  0%,
  100% {
    opacity: 0.42;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }

  50% {
    opacity: 0.82;
    transform: translate3d(18px, -34px, 0) rotate(9deg);
  }
}

@keyframes dustRise {
  0%,
  100% {
    opacity: 0.28;
    transform: translate3d(0, 12px, 0) scale(0.82);
  }

  50% {
    opacity: 0.78;
    transform: translate3d(14px, -42px, 0) scale(1.12);
  }
}

@keyframes pageTrailSweep {
  0% {
    opacity: 0;
    transform: translateX(88px) scaleX(0.48);
  }

  34% {
    opacity: 0.72;
    transform: translateX(14px) scaleX(0.86);
  }

  100% {
    opacity: 0;
    transform: translateX(-54px) scaleX(1.22);
  }
}

@keyframes pageGlowBreath {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.92);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.08);
  }
}

@keyframes realBookShadowPulse {
  0%,
  100% {
    opacity: 1;
    transform: translateZ(-120px) rotateX(8deg) scale(1);
  }

  44% {
    opacity: 0.78;
    transform: translateZ(-120px) rotateX(8deg) scale(0.88, 0.82);
  }
}

@keyframes flipFragmentLift {
  0%,
  100% {
    filter: brightness(1);
  }

  42% {
    filter: brightness(1.22);
  }
}

@keyframes bookCameraDive {
  0% {
    transform: translateY(-24px) scale(1.72);
  }

  38% {
    transform: translateY(-58px) scale(3.45);
  }

  100% {
    transform: translateY(-126px) scale(9.4);
  }
}

@keyframes bookObjectDive {
  0% {
    filter: blur(0) saturate(1);
    transform: rotateX(42deg) rotateZ(0deg) translateZ(0);
  }

  46% {
    filter: blur(0.2px) saturate(1.08);
    transform: rotateX(18deg) rotateZ(0deg) translateZ(112px);
  }

  100% {
    filter: blur(1.4px) saturate(1.16);
    transform: rotateX(2deg) rotateZ(0deg) translateZ(320px);
  }
}

@keyframes mobileHeroCardPulse {
  0%,
  100% {
    border-color: rgba(255, 250, 242, 0.28);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
  }

  50% {
    border-color: rgba(255, 224, 113, 0.55);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.5), 0 0 22px rgba(141, 166, 184, 0.18);
  }
}

@keyframes mobileHeroCardDrift {
  0%,
  100% {
    border-color: rgba(255, 250, 242, 0.32);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.44);
    transform:
      translate(calc(-50% + var(--mobile-drift-x-start, 0px)), calc(-50% + var(--mobile-drift-y-start, 0px)))
      rotate(var(--mobile-rot, 0deg));
  }

  50% {
    border-color: rgba(255, 224, 113, 0.58);
    box-shadow:
      0 28px 58px rgba(0, 0, 0, 0.52),
      0 0 22px rgba(141, 166, 184, 0.2);
    transform:
      translate(calc(-50% + var(--mobile-drift-x, 0px)), calc(-50% + var(--mobile-drift-y, -6px)))
      rotate(calc(var(--mobile-rot, 0deg) + var(--mobile-drift-rot, 1deg)));
  }
}

@keyframes mobileHeroImageBreath {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.035);
  }
}

@keyframes mobileHeroAuraSweep {
  0% {
    transform: translateX(-42%) rotate(-10deg);
    opacity: 0.16;
  }

  50% {
    transform: translateX(22%) rotate(-10deg);
    opacity: 0.36;
  }

  100% {
    transform: translateX(82%) rotate(-10deg);
    opacity: 0.16;
  }
}

@media (max-width: 1180px) {
  .nav {
    padding-right: 0;
  }

  .editor-toolbar {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1020px) {
  .hero,
  .about-section,
  .daily-paintings-section {
    grid-template-columns: 1fr;
  }

  .daily-paintings-copy {
    position: static;
  }

  .daily-paintings-grid {
    width: calc(100% + 40px);
    margin-inline: -4px -36px;
  }

  .resume-hero,
  .resume-kpis,
  .resume-grid,
  .resume-skill-columns,
  .resume-columns,
  .resume-process {
    grid-template-columns: 1fr;
  }

  .resume-panel-wide,
  .resume-panel-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .portfolio-hero-stage {
    min-height: 540px;
  }

  .illustration-card {
    width: clamp(220px, 38vw, 300px);
    height: 370px;
  }

  .layout-reel-card {
    width: clamp(250px, 42vw, 330px);
  }

  .character-project {
    grid-template-columns: minmax(250px, 0.42fr) minmax(0, 0.58fr);
  }

  .project-thumbs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .intro-scene {
    width: min(100vw - 18px, 540px);
    min-height: min(640px, calc(100vh - 18px));
    grid-template-rows: minmax(250px, 0.84fr) auto auto;
    gap: 14px;
    padding: 12px 10px 18px;
  }

  .intro-camera {
    width: min(500px, 104vw);
    transform: translateY(4px) scale(0.9);
  }

  .real-flip-book {
    width: min(455px, 104vw);
    transform: rotateX(48deg) rotateZ(-5deg);
  }

  .flip-book-shell {
    inset: 7% 4% 9%;
  }

  .flip-page {
    padding: clamp(14px, 5%, 22px);
  }

  .flip-page h3 {
    font-size: clamp(17px, 5.2vw, 24px);
    line-height: 0.98;
  }

  .flip-page p {
    font-size: 10px;
    line-height: 1.48;
  }

  .flip-kicker {
    font-size: 8px !important;
  }

  .cover-mark {
    width: 44px;
    font-size: 17px;
  }

  .cover-title,
  .closed-book-cover .cover-title {
    font-size: clamp(28px, 9.2vw, 44px);
  }

  .intro-copy h2 {
    font-size: clamp(30px, 9.6vw, 42px);
  }

  .intro-copy p {
    font-size: 13px;
  }

  .intro[data-step="1"] .intro-camera {
    transform: translateY(0) scale(1);
  }

  .intro[data-step="2"] .intro-camera {
    transform: translateY(-4px) scale(1.08);
  }

  .intro[data-step="3"] .intro-camera {
    transform: translateY(-10px) scale(1.16);
  }

  .intro[data-step="4"] .intro-camera {
    transform: translateY(-18px) scale(1.72);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .section-band {
    padding-inline: 18px;
  }

  .resume-section {
    padding-top: 72px;
  }

  .resume-title-block h2 {
    font-size: clamp(42px, 12vw, 72px);
  }

  .resume-id-card {
    min-height: 190px;
  }

  .resume-kpis span {
    min-height: 104px;
  }

  .hero {
    min-height: auto;
  }

  .portfolio-hero-stage {
    min-height: 430px;
  }

  .illustration-marquee {
    width: calc(100% + 36px);
    margin-inline: -18px;
  }

  .layout-reel-marquee {
    width: calc(100% + 36px);
    margin-inline: -18px;
  }

  .daily-paintings-section {
    padding-block: 46px;
  }

  .daily-paintings-grid {
    gap: 8px;
  }

  .daily-painting-card.is-tall,
  .daily-painting-card.is-wide {
    flex-basis: 168px;
    height: 244px;
  }

  .illustration-track,
  .illustration-group,
  .layout-reel-track,
  .layout-reel-group {
    gap: 12px;
  }

  .illustration-card {
    width: 228px;
    height: 330px;
    padding: 16px;
  }

  .illustration-card h3 {
    font-size: 22px;
  }

  .illustration-card p {
    font-size: 12px;
  }

  .layout-reel-card {
    width: min(76vw, 300px);
  }

  .hero-work-card-1 {
    left: 7%;
    top: 9%;
    width: 42%;
    height: 63%;
  }

  .hero-work-card-2 {
    right: 7%;
    top: 9%;
    width: 34%;
    height: 38%;
  }

  .hero-work-card-3 {
    right: 8%;
    bottom: 10%;
    width: 34%;
    height: 28%;
  }

  .hero-work-card-4 {
    left: 31%;
    top: 44%;
    width: 42%;
    height: 15%;
  }

  .hero-work-card-6 {
    display: none;
  }

  .hero-work-card-5 {
    left: 17%;
    bottom: 9%;
    width: 42%;
    height: 15%;
  }

  .hero-work-card-7 {
    display: none;
  }

  .hero-stage-note {
    right: 14px;
    bottom: 14px;
    min-width: 108px;
    padding: 10px;
  }

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

  .character-project {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .character-project-main {
    height: clamp(330px, 92vw, 430px);
    min-height: 0;
  }

  .project-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 126px;
  }

  .archive-method {
    grid-template-columns: 1fr;
  }

  .archive-group-heading {
    display: grid;
    gap: 8px;
  }

  .archive-group-heading span {
    padding-top: 0;
  }

  .manual-strip {
    grid-auto-columns: minmax(300px, 88vw);
    gap: 12px;
  }

  .manual-page.is-portrait {
    width: min(72vw, 360px);
  }

  .archive-group-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 120px;
  }

  .save-status {
    flex-basis: 100%;
    text-align: center;
  }
}

@media (max-width: 460px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 29px;
  }

  .tool-button {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .brand {
    min-width: 0;
  }

  .portfolio-hero-stage {
    min-height: 390px;
  }

  .illustration-card {
    width: 212px;
  }

  .layout-reel-card {
    width: min(78vw, 280px);
  }

  .archive-item {
    min-height: 270px;
  }
}

/* Reference-inspired opening deck: exhibition-style first screen. */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr) minmax(80px, 0.28fr);
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  min-height: 78px;
  padding: 18px clamp(18px, 3vw, 42px) 14px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.24);
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.9), rgba(5, 6, 8, 0.52) 74%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  justify-self: start;
  gap: 0;
  min-width: 0;
  padding: 7px 12px 8px;
  border: 3px solid rgba(255, 250, 242, 0.9);
  color: #fffaf2;
  background: rgba(8, 9, 12, 0.26);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.brand-mark {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 33px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.brand-text {
  flex: 0 1 auto;
  margin-left: 8px;
  color: inherit;
  font-size: clamp(12px, 1.25vw, 15px);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: normal;
  word-break: keep-all;
}

.nav {
  justify-self: center;
  justify-content: center;
  gap: clamp(18px, 3.8vw, 58px);
  padding: 0;
}

.nav a {
  position: relative;
  color: rgba(255, 250, 242, 0.68);
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 113, 0.86), transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav a:hover {
  color: #fffaf2;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.portfolio-hero {
  position: relative;
  display: block;
  min-height: 100vh;
  padding: clamp(116px, 12vh, 150px) clamp(18px, 3vw, 42px) clamp(38px, 6vh, 64px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.44), rgba(5, 6, 8, 0.08) 38%, rgba(5, 6, 8, 0.38) 100%),
    radial-gradient(circle at 19% 18%, rgba(141, 166, 184, 0.38), transparent 28%),
    radial-gradient(circle at 78% 82%, rgba(211, 181, 107, 0.3), transparent 28%),
    linear-gradient(135deg, #1d1a28 0%, #242d34 47%, #151018 100%);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.86) brightness(0.7) contrast(1.05);
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 700ms ease;
}

.hero-bg-video.is-video-ready {
  opacity: 0.58;
}

.hero-bg-video.is-video-disabled {
  display: none;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  inset: -14% -6% -10%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.74), rgba(5, 6, 8, 0.2) 36%, rgba(5, 6, 8, 0.34) 72%, rgba(5, 6, 8, 0.76)),
    linear-gradient(180deg, rgba(5, 6, 8, 0.48), rgba(5, 6, 8, 0.08) 42%, rgba(5, 6, 8, 0.76)),
    repeating-radial-gradient(ellipse at 48% 66%, rgba(255, 250, 242, 0.12) 0 2px, transparent 2px 38px),
    linear-gradient(90deg, rgba(255, 250, 242, 0.1), transparent 16%, transparent 84%, rgba(255, 250, 242, 0.08));
  opacity: 0.92;
  transform: rotate(-8deg) scale(1.06);
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -18%;
  z-index: 2;
  height: 46%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(112, 216, 255, 0.18), transparent 62%),
    linear-gradient(180deg, transparent, rgba(5, 6, 8, 0.74));
}

.portfolio-hero .hero-copy {
  position: absolute;
  left: clamp(20px, 5vw, 82px);
  bottom: clamp(34px, 7vh, 84px);
  z-index: 7;
  width: min(720px, 58vw);
  padding: 0;
  text-shadow: 0 18px 36px rgba(0, 0, 0, 0.58);
}

.portfolio-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #fffaf2;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.portfolio-hero .eyebrow::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  box-shadow: 0 0 20px rgba(211, 181, 107, 0.7);
}

.portfolio-hero h1 {
  max-width: 720px;
  color: #fffaf2;
  font-size: clamp(46px, 6vw, 86px);
  line-height: 0.91;
  font-weight: 950;
  text-transform: uppercase;
  text-wrap: balance;
}

.portfolio-hero h1 br {
  display: block;
}

.portfolio-hero .hero-lead {
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.58;
  font-weight: 640;
}

.portfolio-hero .hero-actions {
  gap: 10px;
  margin-top: 22px;
}

.portfolio-hero .button {
  min-width: 154px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 920;
  text-transform: uppercase;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.portfolio-hero .button.primary {
  background: #fffaf2;
  color: #151119;
}

.portfolio-hero .button.secondary {
  border-color: rgba(255, 250, 242, 0.58);
  background: rgba(10, 11, 13, 0.34);
}

.portfolio-hero .tag-list {
  max-width: 410px;
  gap: 7px;
  margin-top: 16px;
}

.portfolio-hero .tag-list li {
  border-color: rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  background: rgba(10, 11, 13, 0.38);
  color: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(10px);
}

.portfolio-hero .hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: none;
  margin-top: 18px;
}

.portfolio-hero .hero-stats span {
  min-width: 94px;
  padding: 9px 14px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.portfolio-hero .hero-stats span + span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 250, 242, 0.28);
}

.portfolio-hero .hero-stats strong {
  color: #fffaf2;
  font-size: clamp(24px, 3.1vw, 42px);
}

.portfolio-hero .hero-stats small {
  color: rgba(255, 250, 242, 0.7);
  font-size: 11px;
  font-weight: 850;
}

.portfolio-hero-stage {
  position: absolute;
  inset: clamp(92px, 12vh, 126px) -10vw clamp(34px, 5vh, 56px) -8vw;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.portfolio-hero-stage::before {
  inset: 11% 11% 10%;
  z-index: 0;
  border-color: rgba(255, 250, 242, 0.11);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent 0 14%, rgba(255, 250, 242, 0.16) 14% 14.2%, transparent 14.2%),
    linear-gradient(180deg, transparent 0 72%, rgba(255, 250, 242, 0.12) 72% 72.2%, transparent 72.2%);
  transform: rotate(-4deg);
}

.portfolio-hero-stage::after {
  inset: auto 12% 0 17%;
  z-index: 1;
  height: 30%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.58), transparent 64%),
    linear-gradient(90deg, transparent, rgba(255, 250, 242, 0.18), transparent);
  background-size: auto;
  mask-image: none;
  transform: rotate(-4deg);
}

.hero-work-card {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 2px;
  background: rgba(10, 11, 13, 0.5);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.48);
  transform-origin: center;
  transition: border-color 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}

.portfolio-hero-stage .hero-work-card {
  display: block;
}

.hero-work-card:hover {
  border-color: rgba(255, 224, 113, 0.75);
  box-shadow: 0 38px 88px rgba(0, 0, 0, 0.56);
}

.hero-work-card img {
  filter: none;
}

.hero-work-card span {
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-color: rgba(255, 250, 242, 0.22);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.6);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-work-card::after {
  background:
    linear-gradient(to top, rgba(5, 6, 8, 0.6), transparent 36%),
    linear-gradient(120deg, rgba(255, 250, 242, 0.08), transparent 28%);
}

.hero-work-card-1 {
  z-index: 4;
}

.hero-work-card-1:hover {
  border-color: rgba(255, 224, 113, 0.75);
}

.hero-work-card-2 {
  z-index: 2;
}

.hero-work-card-2:hover {
  border-color: rgba(255, 224, 113, 0.75);
}

.hero-work-card-3 {
  z-index: 2;
}

.hero-work-card-3:hover {
  border-color: rgba(255, 224, 113, 0.75);
}

.hero-work-card-4,
.hero-work-card-5,
.hero-work-card-6,
.hero-work-card-7 {
  z-index: 6;
  border-radius: 8px;
}

.hero-work-card-4:hover,
.hero-work-card-5:hover,
.hero-work-card-6:hover,
.hero-work-card-7:hover {
  border-color: rgba(255, 224, 113, 0.75);
}

.hero-work-card-4 span,
.hero-work-card-5 span,
.hero-work-card-6 span,
.hero-work-card-7 span {
  display: none;
}

.hero-stage-note {
  right: 20.5%;
  bottom: 16.5%;
  z-index: 6;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: #fffaf2;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.hero-stage-note strong {
  color: #fffaf2;
  font-size: 15px;
  line-height: 1;
}

.hero-stage-note span {
  color: rgba(255, 250, 242, 0.74);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav {
    justify-self: end;
    gap: clamp(12px, 2.2vw, 28px);
  }

  .portfolio-hero .hero-copy {
    width: min(520px, 48vw);
  }
}

@media (max-width: 1020px) {
  .portfolio-hero {
    min-height: 980px;
    padding-top: 118px;
  }

  .portfolio-hero-stage {
    inset: 120px -15vw 300px -14vw;
  }

  .portfolio-hero .hero-copy {
    left: clamp(20px, 5vw, 48px);
    right: clamp(20px, 5vw, 48px);
    bottom: 48px;
    width: auto;
  }

  .portfolio-hero .hero-lead {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .mobile-lite .intro {
    display: none !important;
  }

  .mobile-lite {
    overflow: auto;
  }

  .mobile-lite .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .mobile-lite .motion-float,
  .mobile-lite .illustration-track,
  .mobile-lite .layout-reel-track,
  .mobile-lite .hero-work-card,
  .mobile-lite .paper-fragment,
  .mobile-lite .dust,
  .mobile-lite .star,
  .mobile-lite .light-ray {
    animation: none !important;
  }

  .mobile-lite .interaction-aura,
  .mobile-lite .interaction-ring {
    display: none !important;
  }

  .mobile-lite .hero-bg-video {
    display: none;
  }

  .mobile-lite .illustration-track,
  .mobile-lite .layout-reel-track {
    transform: none !important;
    will-change: auto;
  }

  .mobile-lite .illustration-clones,
  .mobile-lite .layout-reel-clones {
    display: none;
  }

  .mobile-lite .illustration-marquee,
  .mobile-lite .layout-reel-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    mask-image: none;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .mobile-lite .illustration-marquee::-webkit-scrollbar,
  .mobile-lite .layout-reel-marquee::-webkit-scrollbar {
    display: none;
  }

  .mobile-lite .illustration-marquee::before,
  .mobile-lite .illustration-marquee::after,
  .mobile-lite .layout-reel-marquee::before,
  .mobile-lite .layout-reel-marquee::after {
    display: none;
  }

  .mobile-lite .illustration-card,
  .mobile-lite .layout-reel-card,
  .mobile-lite .manual-page,
  .mobile-lite .archive-item,
  .mobile-lite .daily-painting-card,
  .mobile-lite .character-project {
    content-visibility: auto;
    contain-intrinsic-size: 1px 360px;
  }

  .site-header {
    position: sticky;
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 10px;
    padding: 12px 14px 10px;
  }

  .brand {
    padding: 7px 10px;
    border-width: 2px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .brand-text {
    font-size: 12px;
  }

  .nav {
    justify-self: stretch;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

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

  .nav a {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .portfolio-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 22px 16px 40px;
  }

  .portfolio-hero-stage {
    position: relative;
    align-self: stretch;
    order: 2;
    inset: auto;
    z-index: 5;
    width: calc(100% + 32px);
    min-height: 0;
    height: auto;
    margin: 20px -16px 0;
    padding: 0 16px 4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid rgba(255, 250, 242, 0.1);
    perspective: none;
    transform-style: flat;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .portfolio-hero-stage::-webkit-scrollbar,
  .portfolio-hero-stage::before,
  .portfolio-hero-stage::after {
    display: none;
  }

  .portfolio-hero .hero-copy {
    position: relative;
    order: 1;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    z-index: 4;
    padding-top: 2px;
  }

  .portfolio-hero-stage .hero-work-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 0 0 min(72vw, 260px);
    width: min(72vw, 260px) !important;
    height: clamp(168px, 50vw, 220px) !important;
    scroll-snap-align: start;
    transform-style: flat;
    will-change: auto;
  }

  .portfolio-hero-stage {
    display: flex;
    gap: 10px;
  }

  .mobile-lite .portfolio-hero-stage .hero-work-card {
    display: block !important;
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    backface-visibility: hidden;
    transform: none !important;
    animation: none !important;
  }

  .mobile-lite .portfolio-hero-stage .hero-work-card img {
    animation: none !important;
  }

  .mobile-lite .hero-work-card-1,
  .mobile-lite .hero-work-card-2,
  .mobile-lite .hero-work-card-3,
  .mobile-lite .hero-work-card-4,
  .mobile-lite .hero-work-card-5,
  .mobile-lite .hero-work-card-6,
  .mobile-lite .hero-work-card-7 {
    z-index: auto !important;
    animation-delay: -5.2s !important;
  }

  .portfolio-hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 44px);
    line-height: 1.02;
  }

  .portfolio-hero .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .portfolio-hero .hero-lead {
    margin-top: 12px;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.62;
  }

  .portfolio-hero .hero-actions {
    align-items: stretch;
    gap: 8px;
    margin-top: 18px;
  }

  .portfolio-hero .button {
    flex: 1 1 150px;
    min-width: 0;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .portfolio-hero .tag-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    max-width: none;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .portfolio-hero .tag-list::-webkit-scrollbar {
    display: none;
  }

  .portfolio-hero .tag-list li {
    flex: 0 0 auto;
    font-size: 12px;
  }

  .portfolio-hero .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 15px;
    gap: 6px;
  }

  .portfolio-hero .hero-stats span {
    min-width: 0;
    padding: 6px 8px 6px 0;
  }

  .portfolio-hero .hero-stats strong {
    font-size: 30px;
  }

  .portfolio-hero .hero-stats small {
    font-size: 10px;
  }

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

@media (max-width: 460px) {
  .portfolio-hero {
    min-height: auto;
    padding-top: 18px;
  }

  .portfolio-hero-stage {
    inset: auto;
    width: calc(100% + 32px);
    min-height: 0;
    height: auto;
    margin-inline: -16px;
  }

  .portfolio-hero .hero-stats {
    gap: 8px;
  }

  .portfolio-hero .hero-stats span + span {
    padding-left: 10px;
  }

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

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

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

  .interaction-aura,
  .interaction-ring {
    display: none !important;
  }

  .motion-reactive,
  .motion-reactive img {
    transform: none !important;
    filter: none !important;
  }

  .hero-bg-video {
    opacity: 0;
  }
}
