/* ==========================================================================
   Caleb Aragon — site styles
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --ink: #ece6da;
  --ink-dim: #9c968a;
  --ink-faint: #4a4740;
  --line: rgba(236, 230, 218, 0.12);
  --accent: #e2672b; /* ember drop from the CA monogram */
  --helm: #c2302a;
  --rain: #8fd3ff;
  --ember: #e2672b;
  --black: #b9b2ff;

  --serif: "Archivo", "Helvetica Neue", Arial, sans-serif; /* display face */
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

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

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- grain + vignette overlay ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease),
              background .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: color-mix(in srgb, var(--ink) 12%, transparent); backdrop-filter: blur(2px); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ink); border-color: var(--ink); }
.cursor.is-label .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(.85); }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: grid; place-items: center; overflow: hidden;
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader__logo { width: clamp(120px, 18vw, 190px); height: auto; clip-path: inset(0 100% 0 0); animation: ink-in 1.4s .1s var(--ease-in-out) forwards; }
@keyframes ink-in { to { clip-path: inset(0 0 0 0); } }
.loader__name {
  font-family: var(--serif); font-size: clamp(40px, 8vw, 96px); line-height: 1;
  display: flex; overflow: hidden; letter-spacing: -0.01em;
}
.loader__name span { display: inline-block; transform: translateY(110%); }
.loader__bar { width: min(240px, 60vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.loader__count { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--ink-dim); }
.no-js .loader, .loaded .loader { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 75%, transparent), color-mix(in srgb, var(--bg) 0%, transparent));
  transition: transform .6s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { font-family: var(--serif); font-size: 22px; letter-spacing: .01em; color: var(--ink); display: inline-flex; gap: 12px; align-items: center; }
.nav__brand .logo { width: 46px; height: auto; transition: transform .8s var(--ease); }
.nav__brand:hover .logo { transform: rotate(-12deg); }
@media (max-width: 520px) { .nav__brand span { display: none; } .nav__brand .logo { width: 52px; } }
.nav__brand em { font-style: italic; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.nav__link {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
  position: relative; padding: 6px 0; overflow: hidden; display: inline-block;
}
.nav__link span { display: block; transition: transform .5s var(--ease); }
.nav__link span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; padding-top: 6px; }
.nav__link:hover span { transform: translateY(-100%); }
.nav__k {
  font-family: var(--mono); font-size: 11px; color: var(--ink); letter-spacing: .1em;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 999px; padding: 6px 12px;
  display: inline-flex; gap: 8px; align-items: center;
  transition: background .3s, color .3s;
}
.nav__k:hover { background: var(--ink); color: var(--bg); }
.nav__k kbd { font-family: inherit; opacity: .7; }
@media (max-width: 720px) {
  .nav__links .nav__link { display: none; }
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-dim); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.display {
  font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -0.02em; margin: 0;
}
.display em { font-style: italic; }
.lede { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-dim); max-width: 38em; line-height: 1.65; }
.placeholder-note {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: #f3c86b; border: 1px dashed rgba(243, 200, 107, .5); padding: 3px 8px; border-radius: 4px; vertical-align: middle;
}

.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; will-change: transform; }
.char { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --c: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--c);
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c);
  border-radius: inherit; transform: translateY(101%) scale(1.2, 1); transform-origin: bottom;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
  border-radius: 50% 50% 0 0;
}
.btn:hover { color: var(--bg); border-color: var(--c); }
.btn:hover::before { transform: translateY(0) scale(1); border-radius: 0; }
.btn svg { width: 14px; height: 14px; transition: transform .6s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn--solid { background: var(--c); color: var(--bg); }
.btn--solid::before { background: var(--bg); }
.btn--solid:hover { color: var(--c); }

/* ==========================================================================
   HOME
   ========================================================================== */

.hero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
}
.hero__gl, .hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(143, 211, 255, .18), transparent 60%),
    radial-gradient(50% 40% at 20% 80%, rgba(194, 48, 42, .18), transparent 60%),
    var(--bg);
}
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 20%, transparent), color-mix(in srgb, var(--bg) 0%, transparent) 30%, color-mix(in srgb, var(--bg) 85%, transparent)); pointer-events: none; }
.hero__content { position: relative; z-index: 2; display: grid; gap: clamp(18px, 3vh, 32px); }
.hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero__title { font-size: clamp(64px, 15.5vw, 260px); margin-left: -0.04em; }
.hero__title .row { display: block; overflow: hidden; line-height: .9; padding-bottom: .04em; }
.hero__title .row--2 { padding-left: clamp(0px, 12vw, 220px); font-style: italic; }
.hero__tag { max-width: 360px; color: var(--ink-dim); font-size: 15px; }
.hero__tag strong { color: var(--ink); font-weight: 500; }
.hero__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim);
}
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: drip 1.8s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- statement ---------- */
.statement { padding: clamp(110px, 20vh, 220px) var(--gutter); display: grid; gap: 40px; }
.statement__text {
  font-family: var(--serif); font-size: clamp(32px, 5.2vw, 84px); line-height: 1.04; letter-spacing: -0.015em;
  max-width: 17ch; margin: 0;
}
.statement__text .w { opacity: .14; transition: opacity .2s linear; }
.statement__text em { font-style: italic; }
.statement__aside { display: flex; justify-content: flex-end; }
.statement__aside p { max-width: 380px; color: var(--ink-dim); margin: 0; }

/* ---------- works (horizontal) ---------- */
.works { position: relative; }
.works__head { padding: 0 var(--gutter) 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.works__head h2 { font-size: clamp(56px, 10vw, 160px); }
.works__count { font-family: var(--mono); font-size: 12px; color: var(--ink-dim); letter-spacing: .2em; }
.works__pin { height: 100svh; overflow: hidden; position: relative; }
.works__track { display: flex; height: 100%; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.works__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 1px; background: var(--line); }
.works__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

.work {
  --c: var(--ink);
  position: relative; flex: 0 0 auto; width: min(86vw, 1080px); height: min(72svh, 640px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center;
  padding: clamp(20px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: 28px;
  background: radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%), var(--bg-2);
  overflow: hidden;
}
.work::after { /* hover glow that follows the pointer */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 18%, transparent), transparent 60%);
}
.work:hover::after { opacity: 1; }
.work--helm { --c: var(--helm); }
.work--rain { --c: var(--rain); }
.work--black { --c: var(--black); }
.work--ember { --c: var(--ember); }

.work__stage { position: relative; height: 100%; display: grid; place-items: center; perspective: 1400px; }
.work__body { position: relative; z-index: 2; display: grid; gap: 18px; align-content: center; }
.work__index { font-family: var(--mono); font-size: 12px; color: var(--c); letter-spacing: .2em; }
.work__kind { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .22em; text-transform: uppercase; }
.work__title { font-size: clamp(42px, 5.6vw, 92px); }
.work__blurb { color: var(--ink-dim); max-width: 34em; margin: 0; }
.work__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.work__ctas .btn { --c: var(--ink); }

@media (max-width: 860px) {
  .works__pin { height: auto; overflow: visible; }
  .works__track { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .works__progress { display: none; }
  .work { width: 100%; height: auto; grid-template-columns: 1fr; }
  .work__stage { height: 380px; }
}

/* ---------- 3D book ---------- */
.book {
  --w: clamp(190px, 19vw, 280px);
  --h: calc(var(--w) * 1.5);
  --d: calc(var(--w) * 0.16);
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(6deg);
  transition: transform .9s var(--ease);
}
.book__face { position: absolute; inset: 0; backface-visibility: hidden; }
.book__front {
  transform: translateZ(calc(var(--d) / 2));
  border-radius: 2px 6px 6px 2px; overflow: hidden;
  box-shadow: inset 4px 0 10px rgba(0,0,0,.45);
  background: #111;
}
.book__front img { width: 100%; height: 100%; object-fit: cover; }
.book__front::after { /* sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.18) 45%, transparent 60%);
  transform: translateX(var(--sheen, -60%)); mix-blend-mode: screen; pointer-events: none;
}
.book__front::before { /* spine crease */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(255,255,255,.06) 60%, transparent);
}
.book__back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #0c0c0c; border-radius: 6px 2px 2px 6px; }
.book__spine {
  width: var(--d); left: calc(50% - var(--d) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--w) / 2));
  background: linear-gradient(90deg, #050505, #1c1c1c 50%, #070707);
  display: grid; place-items: center;
}
.book__spine span { writing-mode: vertical-rl; font-family: var(--serif); color: #cfc6b2; font-size: calc(var(--w) * .06); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.book__pages {
  width: calc(var(--d) - 4px); left: calc(50% - var(--d) / 2 + 2px); top: 3px; bottom: 3px; height: auto;
  transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 4px));
  background: repeating-linear-gradient(90deg, #e9e1cf 0 1px, #cfc6b0 1px 2px);
}
.book__top {
  height: var(--d); top: calc(50% - var(--d) / 2); width: calc(100% - 4px);
  transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 3px));
  background: repeating-linear-gradient(0deg, #e9e1cf 0 1px, #cfc6b0 1px 2px);
}
.book__shadow {
  position: absolute; left: 50%; bottom: -14%; width: 120%; height: 24px; transform: translateX(-50%) translateZ(-40px) rotateX(90deg);
  background: radial-gradient(closest-side, rgba(0,0,0,.7), transparent); filter: blur(6px);
}
.book-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c, #fff) 35%, transparent), transparent); filter: blur(30px); opacity: .55; }

/* Notes by Black — sealed cover */
.sealed {
  position: relative; width: 100%; height: 100%; background: #050505;
  display: grid; place-items: center; text-align: center; padding: 14%;
}
.sealed__title { font-family: var(--serif); color: #e8e2d6; font-size: calc(var(--w, 240px) * .17); line-height: .95; font-style: italic; }
.sealed__title small { display: block; font-style: normal; font-family: var(--mono); font-size: calc(var(--w, 240px) * .04); letter-spacing: .3em; color: #6e6a62; margin-top: 1.2em; text-transform: uppercase; }
.sealed__ink { position: absolute; inset: 0; }
.sealed__stamp {
  position: absolute; right: 9%; bottom: 7%; font-family: var(--mono); font-size: calc(var(--w, 240px) * .038);
  color: #b9b2ff; border: 1px solid currentColor; padding: .35em .7em; letter-spacing: .2em; transform: rotate(-8deg); text-transform: uppercase;
}

/* Emberwake — card fan */
.cards { position: relative; width: clamp(180px, 17vw, 240px); aspect-ratio: 9 / 16; transform-style: preserve-3d; }
.card-x {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 170, 110, .45);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 40px -10px rgba(255,122,46,.35);
  transition: transform .8s var(--ease);
  transform-origin: 50% 120%;
  background: #120a06;
}
.card-x img { width: 100%; height: 100%; object-fit: cover; }
.card-x--memory {
  display: grid; align-content: end; padding: 16px; gap: 6px;
  background: radial-gradient(90% 60% at 50% 30%, #6b2a0c, #1a0c06 70%);
}
.card-x--memory b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: #ffd9b8; line-height: 1; }
.card-x--memory span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #d79a6c; }
.cards .card-x:nth-child(1) { transform: rotate(-14deg) translateX(-30%); }
.cards .card-x:nth-child(2) { transform: rotate(-4deg) translateX(-8%); }
.cards .card-x:nth-child(3) { transform: rotate(8deg) translateX(18%); }
.work:hover .cards .card-x:nth-child(1) { transform: rotate(-22deg) translateX(-48%) translateY(-4%); }
.work:hover .cards .card-x:nth-child(2) { transform: rotate(-6deg) translateX(-10%) translateY(-8%); }
.work:hover .cards .card-x:nth-child(3) { transform: rotate(14deg) translateX(30%) translateY(-2%); }
.embers { position: absolute; inset: 0; pointer-events: none; }

/* ---------- ledger marquee ---------- */
.ledger { padding: clamp(100px, 18vh, 200px) 0; overflow: hidden; border-block: 1px solid var(--line); position: relative; }
.ledger__label { padding: 0 var(--gutter); margin-bottom: 36px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.marquee { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: baseline; gap: 22px; padding-right: 64px; white-space: nowrap; }
.marquee__item q { font-family: var(--serif); font-size: clamp(36px, 6vw, 96px); font-style: italic; quotes: "\201C" "\201D"; }
.marquee__item small { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--helm); text-transform: uppercase; }
.marquee--rev q { color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 35%, transparent); font-style: normal; }

/* ---------- play ---------- */
.play { padding: clamp(110px, 18vh, 200px) var(--gutter); display: grid; gap: 56px; }
.play__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .play__grid { grid-template-columns: 1fr; } }
.portal {
  --c: var(--ink);
  position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); display: grid; align-content: end; padding: 26px; gap: 10px;
  transform-style: preserve-3d; transition: transform .6s var(--ease), border-color .5s;
}
@media (max-width: 960px) { .portal { aspect-ratio: 16 / 11; } }
.portal:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.portal__img { position: absolute; inset: -6%; z-index: -2; background-size: cover; background-position: center; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: saturate(.8) brightness(.6); }
.portal:hover .portal__img { transform: scale(1.06); filter: saturate(1.05) brightness(.8); }
.portal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--bg) 95%, transparent), color-mix(in srgb, var(--bg) 10%, transparent) 60%); }
.portal__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--c); }
.portal__title { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 56px); line-height: .95; }
.portal__desc { color: var(--ink-dim); font-size: 15px; margin: 0; max-width: 30em; }
.portal__url { font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.portal__url svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.portal:hover .portal__url svg { transform: rotate(-45deg); }
.portal--helm { --c: var(--helm); }
.portal--rain { --c: var(--rain); }
.portal--ember { --c: var(--ember); }

/* ---------- about ---------- */
.about { padding: clamp(110px, 18vh, 200px) var(--gutter); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 100px); align-items: start; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__portrait {
  aspect-ratio: 4 / 5; border-radius: 22px; border: 1px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  display: grid; place-items: center; text-align: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 30%, #17161c, var(--bg));
}
.about__mark { width: 62%; opacity: .14; filter: grayscale(1); transition: opacity .8s var(--ease), filter .8s var(--ease), transform 1.2s var(--ease); }
.about__portrait:hover .about__mark { opacity: .9; filter: none; transform: rotate(-6deg) scale(1.04); }
.about__portrait .placeholder-note { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.about h2 { font-size: clamp(48px, 7vw, 110px); margin-bottom: 30px; }
.about p { color: var(--ink-dim); font-size: clamp(16px, 1.3vw, 19px); max-width: 34em; }
.about .facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 40px; }
.about .facts div { background: var(--bg); padding: 22px; }
.about .facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.4vw, 54px); line-height: 1; }
.about .facts span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
@media (max-width: 520px) { .about .facts { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer__logo { width: clamp(90px, 10vw, 140px); height: auto; margin-bottom: 28px; }
.footer { padding: clamp(80px, 16vh, 160px) var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; position: relative; }
.footer__cta { display: grid; gap: 28px; margin-bottom: clamp(60px, 12vh, 120px); }
.footer__cta h2 { font-size: clamp(54px, 10vw, 170px); }
.footer__big {
  font-family: var(--serif); font-size: clamp(64px, 19vw, 330px); line-height: .8; letter-spacing: -0.03em;
  white-space: nowrap; margin: 0 0 24px -0.04em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 22%, transparent);
  background: radial-gradient(300px circle at var(--fx, -100%) var(--fy, -100%), var(--ink), transparent 70%);
  -webkit-background-clip: text; background-clip: text;
  user-select: none;
}
.footer__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--ink-dim); letter-spacing: .14em; text-transform: uppercase; }
.footer__row a:hover { color: var(--ink); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 250; display: grid; place-items: start center; padding-top: 18vh; visibility: hidden; }
.palette.is-open { visibility: visible; }
.palette__scrim { position: absolute; inset: 0; background: rgba(4,4,6,.6); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.palette.is-open .palette__scrim { opacity: 1; }
.palette__box {
  position: relative; width: min(560px, calc(100vw - 32px)); background: rgba(18,18,24,.92);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.9);
  transform: translateY(14px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
}
.palette.is-open .palette__box { transform: none; opacity: 1; }
.palette__input { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; color: var(--ink); font: 400 18px var(--sans); outline: none; }
.palette__input::placeholder { color: var(--ink-faint); }
.palette__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette__list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--ink-dim); }
.palette__list li a small { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.palette__list li.is-active a { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.palette__foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px; color: var(--ink-faint); letter-spacing: .1em; }

/* ---------- reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   BOOK PAGES
   ========================================================================== */
.bp { --c: var(--ink); }
.bp--helm { --c: var(--helm); }
.bp--rain { --c: var(--rain); }
.bp--black { --c: var(--black); }

.bp-hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  gap: clamp(24px, 5vw, 80px); padding: 120px var(--gutter) 80px; overflow: hidden;
}
@media (max-width: 900px) { .bp-hero { grid-template-columns: 1fr; padding-top: 110px; } }
.bp-hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.bp-hero__copy { position: relative; z-index: 2; display: grid; gap: 24px; }
.bp-hero__title { font-size: clamp(64px, 10vw, 170px); }
.bp-hero__title em { color: var(--c); }
.bp-hero__series { font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.bp-hero__stage { position: relative; z-index: 2; display: grid; place-items: center; perspective: 1600px; min-height: 520px; }
.bp-hero__stage .book { --w: clamp(220px, 24vw, 340px); }
.bp-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.bp-hero__ctas .btn { --c: var(--ink); }
.bp-hero__ctas .btn--solid { --c: var(--ink); }

.back { position: fixed; left: var(--gutter); bottom: 22px; z-index: 80; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); display: inline-flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); transition: color .3s; }
.back:hover { color: var(--ink); }

.bp-section { padding: clamp(90px, 16vh, 180px) var(--gutter); position: relative; }
.bp-section + .bp-section { border-top: 1px solid var(--line); }
.bp-blurb { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 100px); }
@media (max-width: 900px) { .bp-blurb { grid-template-columns: 1fr; } }
.bp-blurb__body p { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 34px); line-height: 1.3; margin: 0 0 .9em; color: var(--ink); }
.bp-blurb__body p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--c); font-style: italic; }
.bp-blurb__body .dim { color: var(--ink-dim); }

.lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline; padding: 28px 0;
  border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
@media (max-width: 700px) { .line { grid-template-columns: 1fr; gap: 6px; } }
.line::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 14%, transparent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); z-index: -1; }
.line:hover::before { transform: scaleX(1); }
.line small { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.line q { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 54px); line-height: 1.1; font-style: italic; }
.line q.redacted { color: transparent; background: linear-gradient(var(--ink-faint), var(--ink-faint)) no-repeat 0 60% / 100% .7em; border-radius: 2px; user-select: none; }
.line q.redacted:hover { color: var(--ink); background-size: 0 .7em; transition: background-size .8s var(--ease), color .4s .2s; }

.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }
.person { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; gap: 10px; align-content: start; transition: border-color .4s, transform .6s var(--ease); background: var(--bg-2); }
.person:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); transform: translateY(-6px); }
.person b { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; }
.person span { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.person p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.bp-next {
  display: block; padding: clamp(90px, 18vh, 180px) var(--gutter); border-top: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.bp-next small { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.bp-next__title { font-family: var(--serif); font-size: clamp(64px, 13vw, 220px); line-height: .9; display: block; transition: transform .8s var(--ease), letter-spacing .8s var(--ease); }
.bp-next:hover .bp-next__title { transform: translateX(2vw); font-style: italic; }
.bp-next__img { position: absolute; right: var(--gutter); top: 50%; width: clamp(140px, 16vw, 230px); aspect-ratio: 2/3; transform: translateY(-50%) rotate(8deg) scale(.8); opacity: 0; transition: transform .8s var(--ease), opacity .5s; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -20px #000; }
.bp-next:hover .bp-next__img { opacity: 1; transform: translateY(-50%) rotate(-4deg) scale(1); }
.bp-next__img img { width: 100%; height: 100%; object-fit: cover; }

/* Notes by Black: ink-reveal canvas */
.ink-reveal { position: relative; width: 100%; max-width: 900px; aspect-ratio: 16 / 9; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.ink-reveal__under { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 6%; background: radial-gradient(70% 60% at 50% 50%, #18161f, #050506); }
.ink-reveal__under p { font-family: var(--serif); font-size: clamp(26px, 4vw, 58px); line-height: 1.08; margin: 0; font-style: italic; }
.ink-reveal__under small { display: block; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--ink-dim); text-transform: uppercase; font-style: normal; }
.ink-reveal canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.ink-reveal__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 50%, transparent); pointer-events: none; transition: opacity .6s; }

.countdown { display: flex; gap: clamp(14px, 3vw, 40px); flex-wrap: wrap; }
.countdown div { display: grid; }
.countdown b { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 110px); line-height: 1; }
.countdown span { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--gutter); }
.nf h1 { font-size: clamp(90px, 22vw, 360px); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}

/* ---------- menu button: "Jump ⌘K" on desktop, "Menu" on touch / small screens ---------- */
.nav__k-m { display: none; }
@media (max-width: 720px), (hover: none) { .nav__k-d { display: none; } .nav__k-m { display: inline; } .nav__k { padding: 10px 16px; } }
@media (max-width: 720px) {
  .palette { padding-top: 12vh; }
  .palette__list li a { padding: 15px 14px; font-size: 17px; }
  .palette__foot { display: none; }
  .bp-hero__fx[data-fx="crack"] { opacity: .45; }
  .bp-hero__stage { min-height: 440px; }
  .hero__top { flex-direction: column-reverse; align-items: flex-start; gap: 14px; }
  .btn { padding: 15px 22px; }
  .back { bottom: max(14px, env(safe-area-inset-bottom)); }
}
.hero { padding-bottom: max(clamp(28px, 6vh, 64px), env(safe-area-inset-bottom)); }
.nav { padding-top: max(14px, env(safe-area-inset-top)); }
@media (max-width: 960px) { .portal { aspect-ratio: auto; min-height: 320px; } }

/* ==========================================================================
   v2: bolder, cleaner type + light "paper" theme (from the CA monogram)
   ========================================================================== */
.display, .loader__name, .work__title, .portal__title, .bp-next__title, .footer__big,
.countdown b, .about .facts b, .person b, .nav__brand, .door__title, .oki__time, .fact b {
  font-weight: 800; letter-spacing: -0.04em; font-stretch: 100%;
}
.nav__brand { letter-spacing: -0.02em; font-size: 19px; }
.nav__brand em, :where(.display) em, .work__title em { font-style: normal; color: var(--accent); }
.bp-hero__title em { color: var(--c); }
.hero__title .row--2 { font-style: normal; }
.display { line-height: .9; }
.line q, .marquee__item q, .ink-reveal__under p, .sealed__title { font-weight: 600; letter-spacing: -0.02em; }
.bp-blurb__body p { font-weight: 500; letter-spacing: -0.015em; line-height: 1.32; }
.bp-next:hover .bp-next__title { font-style: normal; color: var(--accent); }

.portal, .palette, .sealed, .book {
  --bg: #07070a; --ink: #ece6da; --ink-dim: #a39d91; --ink-faint: #5a564e; --line: rgba(236, 230, 218, 0.14);
}
.portal, .palette { color: var(--ink); }

:root.light {
  --bg: #fbf4e9;
  --bg-2: #fffaf2;
  --ink: #1b1816;
  --ink-dim: #6a635b;
  --ink-faint: #b3aa9d;
  --line: rgba(27, 24, 22, 0.14);
  --helm: #b3261f;
  --rain: #1f7fb8;
  --black: #5b50c9;
}
.light .grain { opacity: .05; mix-blend-mode: multiply; }
.light .placeholder-note { color: #8a5f00; border-color: rgba(138, 95, 0, .5); }
.light .work { box-shadow: 0 30px 80px -50px rgba(27, 24, 22, .35); }
.light .cursor__dot { mix-blend-mode: normal; }
.light .hero__fallback { background: radial-gradient(60% 50% at 75% 30%, rgba(226, 103, 43, .16), transparent 60%), var(--bg); }

/* ---------- landing hero ---------- */
.hero--me { align-items: stretch; padding-top: 96px; }
.hero--me .hero__content { grid-template-rows: 1fr auto auto; height: 100%; }
.hero--me .hero__shade { display: none; }
.hero__mark { align-self: center; justify-self: end; width: clamp(150px, 26vw, 420px); height: auto; will-change: transform; }
.hero--me .hero__title { font-size: clamp(60px, 17.2vw, 300px); text-transform: uppercase; letter-spacing: -0.055em; line-height: .82; margin-left: -0.05em; }
.hero--me .hero__title .row { padding-bottom: .02em; line-height: .84; }
.hero--me .hero__title .row--2 { padding-left: 0; color: var(--accent); }
.hero__intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hero__intro p { margin: 0; max-width: 30em; font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-dim); }
.hero__intro p strong { color: var(--ink); font-weight: 600; }
.facts-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fact {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim);
  transition: transform .5s var(--ease), border-color .4s, background .4s, color .4s;
}
.fact b { font-family: var(--serif); font-size: 15px; letter-spacing: -0.01em; color: var(--ink); text-transform: none; }
.fact:hover { transform: translateY(-3px); border-color: var(--accent); }
.fact i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: ping 2s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 10px transparent; } }
@media (max-width: 720px) {
  .hero--me { padding-top: 84px; }
  .hero__mark { justify-self: start; width: 46vw; }
  .hero__intro { flex-direction: column; align-items: flex-start; }
}

/* ---------- Okinawa ---------- */
.oki { position: relative; overflow: hidden; padding: clamp(100px, 18vh, 200px) var(--gutter); border-top: 1px solid var(--line); display: grid; gap: clamp(36px, 6vh, 72px); isolation: isolate; }
.oki__sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.oki__kanji {
  position: absolute; right: -0.06em; top: 50%; transform: translateY(-50%); z-index: -1; writing-mode: vertical-rl;
  font-size: clamp(160px, 30vw, 520px); line-height: .9; font-weight: 900; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 16%, transparent); user-select: none; pointer-events: none;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Sans JP", serif;
}
.oki__sky { position: absolute; left: 0; right: 0; top: 0; height: 46%; pointer-events: none; z-index: -1; }
.oki__sun {
  position: absolute; left: calc(var(--sx, .5) * 100%); top: calc(var(--sy, .5) * 100%); width: clamp(54px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--accent); box-shadow: 0 0 80px 10px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: left 1.6s var(--ease), top 1.6s var(--ease), background .6s;
}
.oki.is-night .oki__sun { background: var(--bg-2); border: 1px solid var(--ink); box-shadow: inset -14px -6px 0 0 color-mix(in srgb, var(--ink) 14%, transparent); }
.oki__head h2 { font-size: clamp(56px, 11vw, 190px); margin-top: 18px; }
.oki__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; max-width: 1100px; }
.oki__cell { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(8px); padding: clamp(20px, 2.6vw, 34px); display: grid; gap: 10px; align-content: space-between; min-height: 170px; }
.oki__cell > span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); }
.oki__cell b { font-family: var(--serif); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(34px, 4.4vw, 68px); line-height: .95; font-variant-numeric: tabular-nums; }
.oki__cell b small { font-size: .38em; letter-spacing: 0; font-weight: 600; color: var(--ink-dim); margin-left: .3em; }
.oki__cell p { margin: 0; color: var(--ink-dim); font-size: 14px; }
@media (max-width: 820px) { .oki__grid { grid-template-columns: 1fr; } .oki__cell { min-height: 0; } .oki__kanji { opacity: .7; } }

/* ---------- doors: Books / Games ---------- */
.doors { padding: clamp(80px, 14vh, 160px) var(--gutter); display: grid; gap: 40px; border-top: 1px solid var(--line); }
.doors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .doors__grid { grid-template-columns: 1fr; } }
.door {
  --c: var(--accent);
  position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2);
  min-height: clamp(360px, 56vh, 560px); padding: clamp(22px, 3vw, 40px); display: grid; align-content: space-between; gap: 20px;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s;
}
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .8s var(--ease); border-radius: 50% 50% 0 0 / 30% 30% 0 0; }
.door:hover::before, .door:focus-visible::before { transform: none; border-radius: 0; }
.door:hover, .door:focus-visible { color: var(--bg); }
.door__top { display: flex; justify-content: space-between; align-items: start; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); transition: color .6s; }
.door:hover .door__top { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.door__title { font-family: var(--serif); font-size: clamp(72px, 11vw, 190px); line-height: .82; display: block; }
.door__sub { display: flex; justify-content: space-between; align-items: end; gap: 16px; color: inherit; }
.door__sub p { margin: 0; max-width: 24em; opacity: .7; font-size: 15px; }
.door__go { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; flex: none; transition: transform .7s var(--ease), background .4s; }
.door__go svg { width: 18px; height: 18px; }
.door:hover .door__go { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.door__stack { position: absolute; right: clamp(20px, 4vw, 56px); top: 50%; width: clamp(110px, 13vw, 190px); aspect-ratio: 2 / 3; transform: translateY(-58%); pointer-events: none; }
.door__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); transition: transform .9s var(--ease); transform-origin: 50% 110%; }
.door__stack img:nth-child(1) { transform: rotate(-8deg) translateX(-18%); }
.door__stack img:nth-child(2) { transform: rotate(5deg) translateX(10%); }
.door:hover .door__stack img:nth-child(1) { transform: rotate(-18deg) translateX(-48%) translateY(-4%); }
.door:hover .door__stack img:nth-child(2) { transform: rotate(12deg) translateX(30%) translateY(-6%); }
@media (max-width: 520px) { .door__stack { width: 104px; top: 42%; } .door { min-height: 380px; } }

/* ---------- index pages (Books, Games) ---------- */
.index-hero { padding: clamp(130px, 22vh, 220px) var(--gutter) clamp(40px, 8vh, 80px); display: grid; gap: 22px; }
.index-hero h1 { font-size: clamp(84px, 19vw, 320px); text-transform: uppercase; letter-spacing: -0.055em; line-height: .82; margin-left: -0.05em; }
.play__grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .play__grid--2 { grid-template-columns: 1fr; } }
.index-body { padding: 0 var(--gutter) clamp(90px, 14vh, 160px); }
.footer--slim { padding-top: clamp(50px, 9vh, 90px); }

/* ==========================================================================
   v3: bright grayscale landing, dog tag, Okinawa, shelf, per-title themes
   ========================================================================== */
:root.light {
  --bg: #f3f3f1; --bg-2: #fcfcfb; --ink: #0e0e0e; --ink-dim: #5c5c5a; --ink-faint: #b5b5b1;
  --line: rgba(14, 14, 14, 0.14);
}
.light .hero__fallback { background: radial-gradient(60% 50% at 75% 30%, rgba(14, 14, 14, .08), transparent 60%), var(--bg); }
.light ::selection { background: var(--ink); color: var(--bg); }

/* hero */
.hero--me .hero__content { grid-template-rows: 1fr auto auto; }
.hero__upper { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; min-height: 0; }
.readout { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim); padding-top: 8px; }
.readout span { display: flex; align-items: center; gap: 10px; }
.readout span::before { content: ""; width: 6px; height: 6px; background: var(--ink); }
.readout span:nth-child(2)::before { background: var(--accent); border-radius: 50%; animation: ping 2s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.readout b { color: var(--ink); font-weight: 500; }
.hero--me .hero__title { font-size: clamp(58px, 18.6vw, 330px); font-variation-settings: "wght" 800, "wdth" 100; cursor: default; touch-action: pan-y; }
.hero--me .hero__title .char { transition: font-variation-settings .12s linear, color .3s; }
.hero--me .hero__title .row--2 { color: var(--ink); -webkit-text-stroke: 0; }
.hero--me .hero__title .row--2 .char:hover { color: var(--accent); }
.hero__intro { border-top: 1px solid var(--line); padding-top: 18px; align-items: center; }
.hero__intro .hero__scroll { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }
.fact b { font-weight: 700; }

/* dog tag */
.tag-wrap { perspective: 900px; padding-right: clamp(0px, 6vw, 110px); margin-top: -96px; }
.tag { position: relative; transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform; cursor: grab; padding-top: clamp(120px, 20vh, 210px); touch-action: none; user-select: none; }
.tag:active { cursor: grabbing; }
.tag__chain { position: absolute; left: 50%; top: 0; height: clamp(120px, 20vh, 210px); width: 8px; transform: translateX(-50%); background: radial-gradient(circle at 50% 4px, #8b8b88 0 3px, transparent 3.6px) 0 0 / 8px 9px repeat-y; filter: drop-shadow(0 1px 0 #fff); }
.tag__plate {
  position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 1 / 1.78; border-radius: 26% / 15%; padding: 34% 12% 12%;
  display: grid; align-content: center; gap: .32em;
  background: linear-gradient(calc(120deg + var(--tilt, 0deg)), #fafafa 0%, #c9c9c6 22%, #f4f4f2 38%, #a9a9a5 62%, #e9e9e6 80%, #b9b9b5 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.65), inset 0 0 0 4px rgba(0,0,0,.18), 0 30px 50px -22px rgba(0,0,0,.45), 0 2px 0 rgba(0,0,0,.25);
}
.tag__plate b { font-family: var(--mono); font-weight: 500; font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .14em; color: #2b2b2a; text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(0,0,0,.25); white-space: nowrap; }
.tag__hole { position: absolute; left: 50%; top: 7%; width: 13%; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: var(--bg); box-shadow: inset 0 2px 3px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.8); }
@media (max-width: 720px) {
  .tag-wrap { padding-right: 4vw; margin-top: -84px; }
  .tag, .tag__chain { --ch: 100px; }
  .tag { padding-top: 100px; } .tag__chain { height: 100px; }
  .tag__plate { width: 128px; }
  .tag__plate b { font-size: 10px; }
  .readout { font-size: 10px; letter-spacing: .14em; padding-top: 4px; }
}

/* band */
.band { border-block: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--ink); color: var(--bg); }
.band__item { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 3vw, 44px); letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; }
.band__item i { width: .42em; height: .42em; border-radius: 50%; background: var(--accent); flex: none; }

/* section heads */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(28px, 5vh, 56px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.sec-head h2 { font-size: clamp(72px, 15vw, 250px); text-transform: uppercase; letter-spacing: -0.055em; line-height: .8; margin-left: -0.04em; }
.sec-count { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--ink-dim); padding-bottom: 6px; }
.sec-count::before { content: "("; } .sec-count::after { content: ")"; }

/* shelf */
.shelf { padding: clamp(90px, 15vh, 170px) var(--gutter) clamp(60px, 10vh, 110px); border-top: 1px solid var(--line); }
.shelf__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shelf__item {
  --c: var(--ink); --tint: #0b0b0d; --fg: #ece6da;
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; border: 1px solid var(--line); background: var(--bg-2);
  display: grid; grid-template-rows: 1fr auto; min-height: clamp(460px, 68vh, 640px); transition: color .6s var(--ease), border-color .6s;
}
.shelf__item::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c) 45%, var(--tint)), var(--tint) 70%); clip-path: circle(0% at var(--mx, 50%) var(--my, 60%)); transition: clip-path .9s var(--ease); }
.shelf__item:hover::before, .shelf__item:focus-visible::before, .shelf__item.is-lit::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 60%)); }
.shelf__item:hover, .shelf__item:focus-visible, .shelf__item.is-lit { color: var(--fg); border-color: transparent; }
.shelf__item--helm { --c: #b3261f; --tint: #060404; }
.shelf__item--rain { --c: #27c8ff; --tint: #03060f; }
.shelf__item--black { --c: #6b6b6b; --tint: #000; }
.shelf__stage { display: grid; place-items: center; perspective: 1400px; padding: 40px 20px 10px; }
.shelf__stage .book { --w: clamp(170px, 15vw, 230px); }
.shelf__meta { padding: 22px 26px 26px; display: grid; gap: 8px; }
.shelf__status { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c); display: inline-flex; align-items: center; gap: 10px; }
.shelf__item:hover .shelf__status, .shelf__item.is-lit .shelf__status { color: color-mix(in srgb, var(--c) 60%, #fff); }
.shelf__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.shelf__title { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 3.2vw, 52px); letter-spacing: -0.04em; line-height: .95; margin: 0; }
@media (max-width: 900px) {
  .shelf__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shelf__row::-webkit-scrollbar { display: none; }
  .shelf__item { flex: 0 0 80%; scroll-snap-align: center; min-height: 480px; }
}

/* games */
.play { border-top: 1px solid var(--line); gap: 0; }
.play__grid--2 .portal { aspect-ratio: 16 / 11; }
@media (max-width: 960px) { .play__grid--2 .portal { aspect-ratio: auto; min-height: 300px; } }
.portal__title { font-size: clamp(40px, 5vw, 84px); }

/* ---------- title theme: The Cracked Helm (horror, after the Ledger site) ---------- */
.bp--helm { --serif: "IM Fell English", "Times New Roman", serif; --c: #b3261f; --ink: #d9d0bf; --ink-dim: #8d8474; background: #040303; position: relative; }
.bp--helm::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3; background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0,0,0,.75) 100%); }
.bp--helm .display, .bp--helm .person b, .bp--helm .bp-next__title { font-weight: 400; letter-spacing: 0; }
.bp--helm .bp-hero__title { font-family: "IM Fell English SC", "IM Fell English", serif; font-size: clamp(54px, 9vw, 150px); line-height: .98; }
.bp--helm .bp-hero__title em { font-style: normal; color: var(--c); text-shadow: 0 0 40px rgba(179, 38, 31, .55); animation: dread 7s infinite; }
@keyframes dread { 0%, 91%, 100% { opacity: 1; } 92% { opacity: .35; } 93% { opacity: 1; } 95% { opacity: .55; } 96% { opacity: 1; } }
.bp--helm .lede, .bp--helm .bp-blurb__body p { font-family: "IM Fell English", serif; font-weight: 400; letter-spacing: 0; color: var(--ink); }
.bp--helm .lede { font-size: clamp(19px, 1.8vw, 24px); font-style: italic; color: var(--ink-dim); }
.bp--helm .line q { font-weight: 400; letter-spacing: 0; }
.bp--helm :where(.display) em { font-style: italic; color: var(--c); }
.bp--helm .btn { --c: var(--ink); font-family: "IM Fell English SC", serif; font-size: 15px; letter-spacing: .14em; border-radius: 0; }
.bp--helm .btn--solid { --c: #b3261f; color: #f3e9d8; }
.bp--helm .btn--solid:hover { color: #b3261f; }
.refusal { overflow: hidden; border-block: 1px solid rgba(179, 38, 31, .35); padding: 14px 0; }
.refusal__item { font-family: "IM Fell English", serif; font-style: italic; font-size: clamp(22px, 3vw, 40px); color: rgba(179, 38, 31, .75); padding-right: 48px; white-space: nowrap; }

/* ---------- title theme: Clean Rain (neon rain) ---------- */
.bp--rain { --serif: "Chakra Petch", "Archivo", sans-serif; --c: #27e0ff; --c2: #ff2bd6; --ink: #e6f6ff; --ink-dim: #8aa3b8; --line: rgba(39, 224, 255, .2);
  background: radial-gradient(90% 60% at 80% 0%, rgba(255, 43, 214, .12), transparent 60%), radial-gradient(80% 60% at 0% 30%, rgba(39, 224, 255, .12), transparent 60%), #03040b; position: relative; }
.bp--rain::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 3; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.bp--rain .display { font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
.bp--rain .bp-hero__title { font-size: clamp(60px, 10vw, 170px); color: #eaffff; text-shadow: 0 0 6px #fff, 0 0 22px var(--c), 0 0 60px var(--c), 0 0 120px rgba(39, 224, 255, .5); }
.bp--rain .bp-hero__title em { font-style: normal; color: #ffe9fb; text-shadow: 0 0 6px #fff, 0 0 22px var(--c2), 0 0 60px var(--c2), 0 0 120px rgba(255, 43, 214, .5); animation: neon 5s infinite; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20% { opacity: .4; } 63% { opacity: .65; } }
.bp--rain .bp-hero__series, .bp--rain .eyebrow { color: var(--c); }
.bp--rain .lede { font-family: "Chakra Petch", sans-serif; font-size: clamp(19px, 2vw, 26px); color: var(--ink); }
.bp--rain .bp-blurb__body p { font-family: var(--sans); font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.55; letter-spacing: 0; color: var(--ink); }
.bp--rain .bp-blurb__body p:first-child::first-letter { float: none; font-size: 1em; padding: 0; color: inherit; font-style: normal; }
.bp--rain .btn { --c: var(--ink); border-radius: 4px; font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 13px; box-shadow: 0 0 18px -6px #27e0ff, inset 0 0 12px -8px #27e0ff; border-color: rgba(39, 224, 255, .6); }
.bp--rain .btn--solid { --c: #27e0ff; color: #02131a; box-shadow: 0 0 30px -4px #27e0ff; }
.bp--rain .person { background: rgba(8, 14, 28, .7); border-radius: 6px; backdrop-filter: blur(6px); }
.bp--rain .person:hover { box-shadow: 0 0 34px -10px var(--c2); border-color: var(--c2); }
.bp--rain .person b { font-weight: 700; letter-spacing: 0; text-transform: uppercase; font-size: 26px; }
.status-row { display: flex; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--c2, var(--accent)); }
.status--on { color: var(--ink); border-color: var(--c); }
.status--on i { background: #3dff9a; box-shadow: 0 0 10px #3dff9a; animation: ping 2s infinite; }

/* ---------- title theme: Notes by Black (typewritten, black and white) ---------- */
.bp--black { --serif: "Special Elite", "Courier New", monospace; --c: #f2f2f2; --ink: #f2f2f2; --ink-dim: #8c8c8c; background: #000; }
.bp--black .display, .bp--black .bp-next__title { font-weight: 400; letter-spacing: -0.02em; }
.bp--black .bp-hero__title { font-size: clamp(52px, 8.6vw, 140px); line-height: 1; }
.bp--black .bp-hero__title em { font-style: normal; color: #000; background: #f2f2f2; padding: .04em .14em 0; display: inline-block; }
.bp--black .lede { font-family: "Special Elite", monospace; color: var(--ink-dim); }
.bp--black .typed::after { content: "▌"; margin-left: 4px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bp--black .btn { border-radius: 0; font-family: "Special Elite", monospace; letter-spacing: .1em; font-size: 13px; }
.bp--black .ink-reveal { border-radius: 0; }
.bp--black .ink-reveal__under p { font-weight: 400; font-style: normal; }
.bp-next__title em { font-style: normal; }

/* Okinawa layout with photo */
.oki__layout { display: grid; grid-template-columns: minmax(260px, .8fr) 1.6fr; gap: clamp(28px, 5vw, 80px); align-items: center; perspective: 1400px; }
.oki__main { display: grid; gap: clamp(28px, 5vh, 56px); }
.oki__photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .55); will-change: transform; max-width: 520px; }
.oki__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.08); transform: scale(1.06); transition: filter 1s var(--ease), transform 1.4s var(--ease); }
.oki__photo:hover img, .oki__photo.is-lit img { filter: none; transform: scale(1); }
.oki__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; padding: 40px 18px 16px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent); }
.oki__head h2 { font-size: clamp(56px, 9vw, 160px); }
.oki__grid { max-width: none; }
.oki__cell b { font-size: clamp(30px, 3.4vw, 56px); }
@media (max-width: 1100px) { .oki__grid { grid-template-columns: 1fr; } .oki__cell { min-height: 0; } }
@media (max-width: 820px) { .oki__layout { grid-template-columns: 1fr; } .oki__photo { max-width: none; } }
.fact--link:hover { background: var(--ink); border-color: var(--ink); }
.fact--link:hover b { color: var(--bg); }

/* Emberwake: a hand of the game's own painted cards */
.portal__hand { position: absolute; left: 50%; top: 8%; width: 30%; aspect-ratio: 330 / 242; transform: translateX(-50%); z-index: -1; }
.portal__hand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 180, 120, .5); box-shadow: 0 18px 40px -14px #000, 0 0 30px -10px rgba(226, 103, 43, .6); transform-origin: 50% 260%; transition: transform .9s var(--ease); }
.portal__hand img:nth-child(1) { transform: rotate(-16deg); }
.portal__hand img:nth-child(2) { transform: rotate(-8deg); }
.portal__hand img:nth-child(3) { transform: rotate(0deg); }
.portal__hand img:nth-child(4) { transform: rotate(8deg); }
.portal__hand img:nth-child(5) { transform: rotate(16deg); }
.portal:hover .portal__hand img:nth-child(1), .portal.is-lit .portal__hand img:nth-child(1) { transform: rotate(-30deg) translateY(-6%); }
.portal:hover .portal__hand img:nth-child(2), .portal.is-lit .portal__hand img:nth-child(2) { transform: rotate(-15deg) translateY(-9%); }
.portal:hover .portal__hand img:nth-child(3), .portal.is-lit .portal__hand img:nth-child(3) { transform: rotate(0deg) translateY(-11%); }
.portal:hover .portal__hand img:nth-child(4), .portal.is-lit .portal__hand img:nth-child(4) { transform: rotate(15deg) translateY(-9%); }
.portal:hover .portal__hand img:nth-child(5), .portal.is-lit .portal__hand img:nth-child(5) { transform: rotate(30deg) translateY(-6%); }
@media (max-width: 960px) { .portal__hand { width: 38%; top: 10%; } .play__grid--2 .portal--ember { min-height: 420px; } }

/* ---------- fixes ---------- */
.hero--me .hero__title { font-size: min(18.6vw, 33svh); }
.hero--me .hero__content { gap: clamp(10px, 2vh, 22px); }
.split-line { white-space: nowrap; }
.bp--helm .bp-hero__title { font-size: clamp(44px, 7.2vw, 124px); }
.bp--rain .split-line { overflow: visible; }
.oki__sky { height: 20%; }
.oki__cell b small { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }
@media (max-width: 720px) {
  .back { bottom: auto; top: 74px; padding: 8px 12px; font-size: 10px; }
  .bp-hero { padding-top: 124px; }
  .bp-hero__title { font-size: clamp(48px, 15vw, 96px) !important; }
  .bp--helm .bp-hero__title { font-size: clamp(40px, 11.6vw, 80px) !important; }
}

/* ---------- title theme: Emberwake (painted, firelit) ---------- */
.bp--ember { --serif: "IM Fell English SC", "IM Fell English", serif; --c: #ff8a3c; --ink: #f6e3cc; --ink-dim: #b59a80; --line: rgba(255, 150, 80, .22);
  background: linear-gradient(to bottom, rgba(10, 5, 3, .55), #0a0503 92%), url(/img/ember/north.webp) center top / cover no-repeat fixed, #0a0503; }
@media (max-width: 820px) { .bp--ember { background-attachment: scroll; background-size: auto 100svh, auto 100svh, auto; } }
.bp--ember .display { font-weight: 400; letter-spacing: .04em; }
.bp--ember .bp-hero__title { font-size: clamp(46px, 8.4vw, 150px); color: #fff0db; text-shadow: 0 0 18px rgba(255, 150, 70, .9), 0 0 60px rgba(255, 110, 30, .6); animation: flick 4s infinite; }
@keyframes flick { 0%, 100% { text-shadow: 0 0 18px rgba(255, 150, 70, .9), 0 0 60px rgba(255, 110, 30, .6); } 45% { text-shadow: 0 0 12px rgba(255, 150, 70, .7), 0 0 44px rgba(255, 110, 30, .45); } 50% { text-shadow: 0 0 22px rgba(255, 170, 90, 1), 0 0 76px rgba(255, 110, 30, .7); } }
.bp--ember .lede { font-family: "IM Fell English", serif; font-style: italic; font-size: clamp(20px, 2.1vw, 30px); color: var(--ink); }
.bp--ember .bp-hero__series, .bp--ember .eyebrow { color: var(--c); }
.bp--ember .btn { --c: var(--ink); font-family: "IM Fell English SC", serif; font-size: 16px; letter-spacing: .12em; border-radius: 4px; }
.bp--ember .btn--solid { --c: #c2410c; color: #fff0db; background: linear-gradient(#c2410c, #8f2d08); border-color: #ffb37a; box-shadow: 0 0 34px -8px #ff7a2e; }
.bp--ember .status--on i { background: var(--c); box-shadow: 0 0 10px var(--c); }
.cards--art { width: clamp(190px, 20vw, 290px); }
.cards--art .card-x:nth-child(1) { transform: rotate(-13deg) translateX(-34%); }
.cards--art .card-x:nth-child(2) { transform: rotate(-3deg) translateX(-6%); }
.cards--art .card-x:nth-child(3) { transform: rotate(9deg) translateX(24%); }
.bp-hero__stage:hover .cards--art .card-x:nth-child(1) { transform: rotate(-22deg) translateX(-56%) translateY(-3%); }
.bp-hero__stage:hover .cards--art .card-x:nth-child(3) { transform: rotate(17deg) translateX(46%) translateY(-3%); }
.deck { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 26px); margin-top: 36px; }
@media (max-width: 720px) { .deck { grid-template-columns: repeat(2, 1fr); } }
.deck__card { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 180, 120, .5); aspect-ratio: 330 / 242; box-shadow: 0 24px 50px -24px #000, 0 0 40px -14px rgba(255, 122, 46, .55); transition: transform .7s var(--ease), box-shadow .7s, filter 1.2s, border-color 1s; background: #120a06; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; transition: filter 1.2s, transform 1.2s var(--ease); }
.deck__card:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 34px 60px -24px #000, 0 0 60px -10px rgba(255, 122, 46, .8); }
.deck__card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 110%, #fff3c4 0%, #ff8a3c 22%, #c2410c 42%, transparent 66%); opacity: 0; transform: translateY(40%); pointer-events: none; mix-blend-mode: screen; }
.deck__card.is-burning::after { animation: burnup .9s ease-in forwards; }
@keyframes burnup { 0% { opacity: 0; transform: translateY(40%); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70%); } }
.deck__card.is-ash { border-color: rgba(160, 160, 160, .3); box-shadow: none; }
.deck__card.is-ash img { filter: grayscale(1) brightness(.45) contrast(1.2); transform: scale(1.03); }

/* hero: dog tag hangs out of flow so the name always fits the first screen */
.hero--me .hero__content { position: relative; }
.hero--me .tag-wrap { position: absolute; top: -96px; right: clamp(0px, 7vw, 130px); margin: 0; padding: 0; z-index: 3; }
.hero--me .hero__title { font-size: min(18.6vw, 30svh); position: relative; z-index: 2; }
@media (max-width: 720px) {
  .hero--me .tag-wrap { top: -84px; right: 3vw; }
  .back { position: absolute; }
}

@media (max-width: 720px) {
  .hero--me .tag { padding-top: 72px; }
  .hero--me .tag__chain { height: 72px; }
  .hero--me .tag__plate { width: 108px; }
  .hero--me .tag__plate b { font-size: 8.5px; letter-spacing: .1em; }
}
