@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --abyss: #0d1928;
  --night: #14263c;
  --slate: #223751;
  --steel: #3a536f;
  --mist: #a9bccb;
  --moss: #8fae92;
  --moss-deep: #4a6a58;
  --cream: #f1e9d5;
  --ivory: #fbf6e9;
  --gold: #d9b76e;
  --ink: #16243a;
  --warm: #fbf7ee;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 76rem;
  --pad: clamp(1.25rem, 4.5vw, 3rem);
  --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  min-height: 100vh; background: var(--abyss); color: var(--warm);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, canvas, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .6rem; left: .6rem; z-index: 200; transform: translateY(-200%); background: var(--cream); color: var(--ink); padding: .7rem 1rem; font-weight: 600; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--ring, var(--gold)); outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.ico { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.is-hidden { display: none !important; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.is-scrolled {
  background: rgba(13, 25, 40, .84); box-shadow: 0 1px 0 rgba(217, 183, 110, .22), 0 14px 30px -18px rgba(0, 0, 0, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.header-inner { max-width: var(--maxw); margin-inline: auto; padding: 0 var(--pad); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--warm); }
.brand-mark { width: .55rem; height: .55rem; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 14px rgba(217, 183, 110, .8); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; letter-spacing: .005em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.7rem; }
.nav-button { position: relative; display: inline-block; padding: .4rem 0; font-weight: 500; font-size: .95rem; letter-spacing: .02em; color: #dde6ee; transition: color .25s; }
.nav-button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease); }
.nav-button:hover { color: var(--warm); }
.nav-button:hover::after, .nav-button.nav-active::after, .nav-button[aria-current]::after { transform: scaleX(1); }
.nav-button.nav-active, .nav-button[aria-current] { color: var(--gold); }
.lang-toggle { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; cursor: pointer; padding: .38rem .7rem; background: transparent; color: #dde6ee; border: 1px solid rgba(169, 188, 203, .5); border-radius: 2px; transition: background .25s, border-color .25s, color .25s; }
.lang-toggle:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold); color: var(--warm); }
.nav-toggle { display: none; }

.btn { position: relative; display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.6rem; font-weight: 600; font-size: .95rem; letter-spacing: .02em; border: 1px solid transparent; border-radius: 2px; cursor: pointer; line-height: 1.2; transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s, border-color .3s; }
.btn::before { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; opacity: .28; border-radius: 1px; pointer-events: none; transition: opacity .3s, inset .3s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { opacity: .55; inset: 4px; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: var(--ink); border-color: var(--gold); box-shadow: 0 14px 34px -14px rgba(217, 183, 110, .65); }
.btn-primary:hover { background: #e6c883; box-shadow: 0 16px 40px -10px rgba(217, 183, 110, .85); }
.btn-ghost { background: rgba(255, 255, 255, .05); color: var(--warm); border-color: rgba(169, 188, 203, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--warm); }
.theme-paper .btn-ghost { color: var(--ink); border-color: rgba(22, 36, 58, .5); background: rgba(255, 255, 255, .35); }
.theme-paper .btn-ghost:hover { background: rgba(255, 255, 255, .7); border-color: var(--night); }
.text-link { display: inline-block; margin-top: 1.2rem; color: var(--link); font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .25s; }
.text-link:hover { color: var(--fg); }

.hero { position: relative; z-index: 1; isolation: isolate; overflow: hidden; min-height: max(640px, 100svh); max-height: 1200px; display: flex; align-items: center; background: var(--abyss); }
.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-art { position: absolute; left: var(--art-left, 12%); top: 0; width: var(--art-w, 120%); height: 100%; max-width: none; transform-origin: 50% 40%; will-change: transform; animation: art-in 2.4s var(--ease) both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%); mask-image: linear-gradient(90deg, transparent 0, #000 20%); }
.hero-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; }
.hero-mist { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55; background:
  radial-gradient(60% 40% at 25% 78%, rgba(169, 188, 203, .4), transparent 70%),
  radial-gradient(55% 35% at 78% 88%, rgba(143, 174, 146, .35), transparent 70%); animation: drift 60s ease-in-out infinite alternate; }
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-glow { position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 183, 110, .22), rgba(217, 183, 110, 0) 62%); mix-blend-mode: screen; opacity: 0; transition: opacity .5s; pointer-events: none; z-index: 4; will-change: transform; }
.hero.is-lit .hero-glow { opacity: 1; }
.hero-veil { position: absolute; inset: 0; z-index: 5; pointer-events: none; background:
  linear-gradient(90deg, rgba(13, 25, 40, .93) 0%, rgba(13, 25, 40, .74) 26%, rgba(13, 25, 40, .28) 48%, rgba(13, 25, 40, 0) 66%),
  linear-gradient(180deg, rgba(13, 25, 40, .62) 0%, rgba(13, 25, 40, 0) 22%),
  linear-gradient(0deg, var(--abyss) 0%, rgba(13, 25, 40, 0) 26%); }
.hero-content { position: relative; z-index: 6; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: calc(var(--header-h) + 2rem) var(--pad) clamp(6rem, 12vh, 8rem); }
.hero-content > * { max-width: 36rem; }
.hero-title { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 600; line-height: .92; }
.hero-title .hello { display: flex; align-items: center; gap: .7em; font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.3rem); color: var(--mist); line-height: 1.2; }
.hero-title .hello::after { content: ""; width: 2.8em; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.hero-title .name { font-size: clamp(3.4rem, 10.5vw, 8.4rem); letter-spacing: -.015em; color: var(--warm); margin-left: -.035em; text-shadow: 0 2px 30px rgba(13, 25, 40, .55); }
.hero-role { display: flex; align-items: center; gap: .9em; margin-top: 1.5rem; font-weight: 600; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero-role::before { content: ""; width: .5rem; height: .5rem; background: currentColor; transform: rotate(45deg); }
.hero-lead { margin-top: 1.1rem; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.6; color: #e3ebf2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.1rem; }
.hero-proof { margin-top: 2rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--mist); }
.hero-title, .hero-role, .hero-lead, .hero-cta, .hero-proof { animation: rise 1.1s var(--ease) both; }
.hero-title { animation-delay: .25s; } .hero-role { animation-delay: .45s; } .hero-lead { animation-delay: .6s; } .hero-cta { animation-delay: .75s; } .hero-proof { animation-delay: .9s; }
.hero-credit { position: absolute; right: var(--pad); bottom: 4.6rem; z-index: 7; font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; color: rgba(251, 247, 238, .6); max-width: 24rem; text-align: right; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.hero-sm .hero-credit { bottom: .8rem; }
.hero-credit a { text-decoration: underline; text-underline-offset: 2px; }
.scroll-cue { position: absolute; left: 50%; margin-left: -12px; bottom: clamp(2.2rem, 6vh, 3.2rem); z-index: 7; width: 24px; height: 40px; border: 1px solid rgba(251, 247, 238, .5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2.4s ease-in-out infinite; }

.hero.hero-sm { min-height: clamp(400px, 58vh, 580px); max-height: none; align-items: flex-end; }
.hero-sm .hero-art img { object-position: 50% var(--focus-y, 40%); }
.hero-sm .hero-content { padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: clamp(3rem, 7vh, 4.5rem); }
.hero-sm .hero-content > * { max-width: 40rem; }
.hero-sm .scroll-cue { display: none; }
.page-eyebrow { display: flex; align-items: center; gap: .7em; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.5vw, 1.65rem); color: var(--mist); line-height: 1.2; }
.page-eyebrow::after { content: ""; width: 2.8em; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.page-title { margin-top: .1em; font-family: var(--serif); font-weight: 600; font-size: clamp(2.9rem, 8vw, 5.8rem); line-height: .96; letter-spacing: -.012em; color: var(--warm); text-shadow: 0 2px 30px rgba(13, 25, 40, .6); }
.page-lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: #e3ebf2; }
.hero-sm .page-eyebrow, .hero-sm .page-title, .hero-sm .page-lead { animation: rise 1s var(--ease) both; }
.hero-sm .page-title { animation-delay: .12s; } .hero-sm .page-lead { animation-delay: .24s; }
.hero.hero-sm { border-bottom: 1px solid rgba(217, 183, 110, .35); }

.credits-wrap { max-width: 60rem; }
.credits-note { padding-bottom: 1.5rem; }
.credits-note p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.7; }
.credits-note .credits-warn { padding: .9rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(217, 183, 110, .14); }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.credit-item { display: grid; grid-template-columns: 10rem 1fr; gap: 1.2rem; padding: 1rem; border: 1px solid rgba(34, 55, 81, .22); background: rgba(255, 255, 255, .45); }
.credit-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.credit-body h3 { font-variant-numeric: lining-nums; margin: 0 0 .25rem; font-family: var(--serif, 'Cormorant Garamond', serif); font-size: 1.35rem; }
.credit-alt { margin: 0 0 .6rem; font-size: .95rem; opacity: .8; }
.credit-body dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: 0; font-size: .86rem; }
.credit-body dt { font-weight: 600; opacity: .7; }
.credit-body dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.credit-body code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; }
.credit-body a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .credit-item { grid-template-columns: 1fr; } }

.band { position: relative; height: clamp(150px, 24vw, 340px); overflow: hidden; z-index: 1; background: var(--abyss); }
.band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; max-width: none; object-fit: cover; will-change: transform; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; height: 38%; pointer-events: none; }
.band::before { top: 0; background: linear-gradient(180deg, var(--band-top, var(--abyss)), transparent); }
.band::after { bottom: 0; background: linear-gradient(0deg, var(--band-bottom, var(--cream)), transparent); }
.band figcaption { position: absolute; z-index: 3; right: var(--pad); bottom: .7rem; font-family: var(--mono); font-size: .6rem; letter-spacing: .04em; color: rgba(251, 247, 238, .7); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }

.section { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.theme-night { --fg: var(--warm); --fg-soft: #cdd9e4; --muted: #9fb3c4; --accent: var(--gold); --link: var(--gold); --line: rgba(169, 188, 203, .3); --ring: var(--gold); color: var(--fg); background: linear-gradient(180deg, var(--night), var(--abyss)); }
.theme-paper { --fg: var(--ink); --fg-soft: #30425a; --muted: #566a80; --accent: #8a6a22; --link: #2f5a7e; --line: rgba(22, 36, 58, .26); --ring: var(--night); color: var(--fg); background: linear-gradient(180deg, var(--ivory), var(--cream)); }
.section-pad-top-sm { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

.chapter-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.chapter-head.center { margin-inline: auto; text-align: center; }
.chapter-no { font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: .04em; color: var(--muted); }
.chapter-no b { font-style: normal; font-weight: 600; letter-spacing: .14em; margin-left: .35em; color: var(--accent); }
.chapter-title { margin: .12em 0 .1em; font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.012em; }
.rule { position: relative; display: block; width: min(18rem, 100%); height: 9px; margin-top: .6rem; color: var(--accent);
  background: linear-gradient(90deg, transparent, currentColor) left center / calc(50% - 14px) 1px no-repeat, linear-gradient(270deg, transparent, currentColor) right center / calc(50% - 14px) 1px no-repeat; }
.rule::after { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; margin-left: -3.5px; background: currentColor; transform: rotate(45deg); }
.center .rule { margin-inline: auto; }
.chapter-sub { margin-top: 1.1rem; color: var(--fg-soft); font-size: 1.12rem; max-width: 36rem; }
.center .chapter-sub, .center .chapter-aside { margin-inline: auto; }
.chapter-aside { margin-top: .7rem; color: var(--muted); max-width: 34rem; font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

.plate { position: relative; display: block; color: var(--fg); padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .4); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .75), inset 0 0 0 5px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, border-color .4s; }
.theme-night .plate { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 4px rgba(13, 25, 40, .6), inset 0 0 0 5px var(--line); }
a.plate:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .62); border-color: var(--accent); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .75), inset 0 0 0 5px var(--accent), 0 22px 44px -22px rgba(22, 36, 58, .55); }
.theme-night a.plate:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 4px rgba(13, 25, 40, .6), inset 0 0 0 5px var(--accent), 0 22px 44px -22px rgba(0, 0, 0, .75); }
.stone { --s: 3.1rem; flex: none; width: var(--s); height: var(--s); display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #34506f, #14263c 72%); box-shadow: inset 0 0 0 1px rgba(217, 183, 110, .5), 0 3px 12px rgba(13, 25, 40, .3); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.stone img { width: 58%; height: 58%; object-fit: contain; border-radius: 3px; }
li:hover > .stone, .skill-card:hover .stone, .skill-card:focus-visible .stone { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--gold), 0 0 22px rgba(217, 183, 110, .6); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips .badge, .chips > span { display: inline-block; font-family: var(--mono); font-size: .7rem; letter-spacing: .01em; line-height: 1.3; padding: .22rem .5rem; border: 1px solid var(--line); border-radius: 2px; color: var(--fg-soft); background: rgba(255, 255, 255, .08); }
.still { position: relative; margin: 0; }
.still-frame { position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 0 0 5px rgba(251, 246, 233, .55), 0 0 0 6px var(--line), 0 26px 50px -26px rgba(13, 25, 40, .8); }
.theme-night .still-frame { box-shadow: 0 0 0 5px rgba(13, 25, 40, .6), 0 0 0 6px var(--line), 0 26px 50px -26px rgba(0, 0, 0, .85); }
.still-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.still:hover .still-frame img { transform: scale(1.035); }
.still figcaption { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.35; color: var(--muted); }
.still figcaption small { display: block; margin-top: .3rem; font-family: var(--mono); font-style: normal; font-size: .62rem; letter-spacing: .03em; opacity: .85; }

.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.2rem, 6vw, 5.5rem); align-items: start; }
.about-side { position: sticky; top: calc(var(--header-h) + 2rem); display: grid; gap: 2.2rem; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; padding: 10px; border-radius: 999px 999px 6px 6px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); }
.portrait-frame::before { content: ""; position: absolute; inset: -11px; border-radius: inherit; border: 1px solid var(--line); pointer-events: none; }
.portrait-frame::after { content: ""; position: absolute; left: 50%; top: -17px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--accent); transform: rotate(45deg); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 999px 999px 3px 3px; }
.portrait figcaption { margin-top: 1.4rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.6; color: var(--fg); max-width: 38rem; }
.dropcap::first-letter { float: left; font-family: var(--serif); font-weight: 600; font-size: 4.6em; line-height: .78; padding: .09em .1em 0 0; color: var(--accent); }
.sigils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; margin-top: 2.2rem; max-width: 38rem; }
.sigils li { display: flex; align-items: center; gap: .9rem; }
.sigils b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.1; }
.sigils small { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.how { margin-top: 2.4rem; padding-top: 1.7rem; border-top: 1px solid var(--line); max-width: 38rem; }
.how-title { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; margin-bottom: .6rem; }
.how p { color: var(--fg-soft); margin-top: .7rem; }
.ledger { display: grid; margin-top: 0; padding: 1rem .2rem 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.ledger li { display: grid; grid-template-columns: 5.2rem 1fr; align-items: baseline; gap: .6rem; padding: .35rem 0; border-bottom: 1px dotted var(--line); }
.ledger b { font-family: var(--serif); font-weight: 600; font-size: 1.65rem; line-height: 1; color: var(--fg); text-align: right; }
.craft { margin-top: clamp(4rem, 8vw, 6.5rem); }
.craft-head h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.1; }
.craft-head p { color: var(--fg-soft); margin-top: .4rem; }
.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.plate-sm { display: flex; flex-direction: column; }
.plate-sm h4 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.1; }
.plate-sm p { margin-top: .5rem; font-size: .96rem; color: var(--fg-soft); }
.ex { display: inline-flex; align-items: flex-start; gap: .25rem; margin-top: auto; padding-top: 1rem; font-size: .86rem; font-weight: 500; color: var(--link); }
.ex .ico { margin-top: .22em; transition: transform .3s var(--ease); }
.ex:hover { color: var(--fg); } .ex:hover .ico { transform: translateX(3px); }

.grimoire { overflow: hidden; }
.grimoire-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.rune-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem 1rem; margin: 1.8rem 0 2.2rem; }
.rune-row li { display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--fg-soft); }
.rune-row .stone { --s: 3.4rem; }
.favorites h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; color: var(--fg-soft); }

.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.project-plate { display: flex; flex-direction: column; gap: .9rem; padding: .9rem .9rem 1.1rem; }
.plate-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: var(--night); }
.plate-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
a.plate:hover .plate-media img { transform: scale(1.05); }
.plate-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(217, 183, 110, .28), transparent 62%); }
a.plate:hover .plate-media::after { opacity: 1; }
.plate-body { display: block; padding: 0 .2rem; }
.plate-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.12; }
.plate-body small { display: block; margin-top: .3rem; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.more-plate { display: grid; place-content: center; justify-items: center; text-align: center; gap: .3rem; min-height: 14rem; }
.more-plate b { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; }
.more-plate small { color: var(--muted); font-size: .88rem; }
.more-ring { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: .6rem; border-radius: 50%; border: 1px solid var(--line); transition: box-shadow .4s, transform .4s var(--ease); }
.more-plate:hover .more-ring { box-shadow: 0 0 28px rgba(217, 183, 110, .55); transform: scale(1.06); }
.more-ring .ico { width: 1.4rem; height: 1.4rem; }
.companions { margin-top: clamp(4rem, 8vw, 6.5rem); }
.roster { display: grid; max-width: 46rem; margin-top: 1.4rem; }
.roster-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px dashed var(--line); }
.roster-row img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(255, 255, 255, .4); }
.roster-row b { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.roster-row .role { font-size: .88rem; color: var(--muted); text-align: right; }

.contact { position: relative; background: var(--abyss); }
.contact-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.contact-bg img { position: absolute; left: 0; bottom: 0; width: 100%; height: 62%; max-width: none; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 46%); mask-image: linear-gradient(180deg, transparent 0, #000 46%); opacity: .8; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 25, 40, 0) 38%, rgba(13, 25, 40, .5) 100%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: 1rem; }
.steps { counter-reset: step; position: relative; display: grid; gap: 1.5rem; padding-left: 1.9rem; }
.steps::before { content: ""; position: absolute; left: 4px; top: .6rem; bottom: .6rem; border-left: 1px dashed rgba(217, 183, 110, .55); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: ""; position: absolute; left: -1.9rem; top: .55rem; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.steps h4 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.15; }
.steps h4::before { content: counter(step) ". "; font-style: italic; font-weight: 400; color: var(--gold); }
.steps p { color: var(--fg-soft); font-size: .98rem; margin-top: .15rem; }
.discord-card { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(217, 183, 110, .55); background: rgba(13, 25, 40, .55); border-radius: 2px; position: relative; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background .35s; }
.discord-card::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(217, 183, 110, .22); pointer-events: none; }
.discord-card:hover { transform: translateY(-3px); border-color: var(--gold); background: rgba(13, 25, 40, .75); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 34px rgba(217, 183, 110, .2); }
.discord-ico { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; border: 1px solid rgba(217, 183, 110, .6); color: var(--gold); }
.discord-ico svg { width: 1.3rem; height: 1.3rem; }
.discord-copy { flex: 1; min-width: 0; }
.discord-copy b { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.discord-copy small { display: block; margin-top: .2rem; color: var(--fg-soft); font-size: .9rem; line-height: 1.45; }
.discord-card > .ico { color: var(--gold); width: 1.3rem; height: 1.3rem; transition: transform .3s var(--ease); }
.discord-card:hover > .ico { transform: translateX(4px); }
.socials { display: flex; gap: .8rem; margin-top: 1.6rem; }
.socials a { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 1px solid rgba(169, 188, 203, .5); color: var(--fg-soft); background: rgba(13, 25, 40, .4); transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.socials a:hover { color: var(--warm); background: rgba(255, 255, 255, .12); border-color: var(--gold); box-shadow: 0 0 24px rgba(217, 183, 110, .4); transform: translateY(-2px); }
.socials svg { width: 1.2rem; height: 1.2rem; }
.contract { padding: 1.4rem 1.3rem 1.5rem; }
.contract.theme-paper, .theme-night .contract.theme-paper { background: linear-gradient(180deg, var(--ivory), var(--cream)); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .9), inset 0 0 0 5px var(--line), 0 34px 70px -34px rgba(0, 0, 0, .8); }
.contract h3 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.clause { margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.clause h4 { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.clause ul { margin-top: .5rem; display: grid; gap: .4rem; }
.clause li { position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--fg-soft); }
.clause li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }
.clause-note { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--fg-soft); }

.site-footer { overflow-x: clip; background: var(--abyss); padding: 2.6rem var(--pad) 4.5rem; text-align: center; color: var(--muted); font-size: .92rem; position: relative; z-index: 1; border-top: 1px solid rgba(217, 183, 110, .22); }
.site-footer .rule { margin: 0 auto 1.2rem; }
.site-footer .credits { max-width: 52rem; margin: 1rem auto 0; font-size: .74rem; line-height: 1.55; color: rgba(169, 188, 203, .75); }
.site-footer .credits a { text-decoration: underline; text-underline-offset: 2px; }

.filters { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.filters-label { display: block; margin-bottom: .7rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }
.proj-filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-button { position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: .62rem 1.15rem; font-weight: 600; font-size: .9rem; letter-spacing: .02em; cursor: pointer; color: var(--fg-soft); background: rgba(255, 255, 255, .4); border: 1px solid var(--line); border-radius: 2px; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s; }
.filter-button::before { content: ""; width: 6px; height: 6px; background: currentColor; opacity: .4; transform: rotate(45deg); transition: opacity .3s; }
.filter-button:hover { background: rgba(255, 255, 255, .75); border-color: var(--night); transform: translateY(-1px); }
.filter-button.active, .filter-button[aria-checked="true"] { background: var(--night); color: var(--cream); border-color: var(--night); box-shadow: 0 12px 26px -14px rgba(13, 25, 40, .75); }
.filter-button.active::before, .filter-button[aria-checked="true"]::before { opacity: 1; background: var(--gold); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.7rem; }
.project-link { display: flex; color: var(--fg); }
.project-link.is-hidden { display: none; }
.project-link.disabled { cursor: default; }
.project-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 1rem 1rem 1.2rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .8), inset 0 0 0 5px var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, border-color .4s; }
.project-link:not(.disabled):hover .project-card, .project-link:not(.disabled):focus-visible .project-card { transform: translateY(-5px); background: rgba(255, 255, 255, .72); border-color: var(--accent); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .8), inset 0 0 0 5px var(--accent), 0 26px 46px -24px rgba(22, 36, 58, .6); }
.project-link:not(.disabled):focus-visible { outline: none; }
.project-link:not(.disabled):focus-visible .project-card { outline: 2px solid var(--night); outline-offset: 2px; }
.project-card .plate-media { margin: 0 0 1rem; }
.project-link:not(.disabled):hover .plate-media img { transform: scale(1.05); }
.project-card h3 { padding: 0 .3rem; font-family: var(--serif); font-weight: 600; font-size: 1.62rem; line-height: 1.12; }
.project-card > p { margin-top: .55rem; padding: 0 .3rem; font-size: .96rem; line-height: 1.6; color: var(--fg-soft); }
.project-card > p strong { font-weight: 600; color: var(--fg); }
.project-card .chips { margin-top: auto; padding: 1.1rem .3rem 0; }
.project-state { display: flex; align-items: center; gap: .6rem; margin: .9rem .3rem 0; padding-top: .8rem; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: var(--muted); }
.project-state::before { content: ""; width: .95rem; height: .95rem; flex: none; border: 1.5px solid currentColor; border-radius: 50%; background: radial-gradient(circle, currentColor 0 22%, transparent 24%); }
.project-state.own { color: var(--moss-deep); }
.project-state.own::before { width: .55rem; height: .55rem; border: 0; background: currentColor; box-shadow: 0 0 0 4px rgba(74, 106, 88, .2); }
.project-link:not(.disabled) .project-card::after { content: ""; position: absolute; right: 1.2rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b76e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / 1.1rem no-repeat; box-shadow: 0 6px 16px rgba(13, 25, 40, .5); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .4s var(--ease); pointer-events: none; }
.project-link:not(.disabled):hover .project-card::after, .project-link:not(.disabled):focus-visible .project-card::after { opacity: 1; transform: none; }

.grimoire-page { position: relative; }
.grimoire-page .section-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.grimoire-page .section-art img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; opacity: .38; will-change: transform; }
.grimoire-page .section-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--abyss) 0%, rgba(13, 25, 40, .55) 30%, rgba(13, 25, 40, .8) 100%); }
.spread { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 4px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(217, 183, 110, .45), 0 0 0 10px rgba(13, 25, 40, .85), 0 0 0 11px rgba(217, 183, 110, .3); }
.spread::before { content: ""; position: absolute; z-index: 3; left: 50%; top: 0; bottom: 0; width: 70px; margin-left: -35px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(58, 47, 31, .22) 46%, rgba(58, 47, 31, .3) 50%, rgba(58, 47, 31, .22) 54%, transparent); }
.leaf { padding: clamp(1.6rem, 3.4vw, 3rem); }
.leaf + .leaf { border-left: 1px solid rgba(22, 36, 58, .12); }
.leaf-head { margin-bottom: 1.6rem; }
.leaf-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.02; letter-spacing: -.01em; }
.leaf-label { margin-top: .55rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); }
@media (min-width: 881px) { .leaf-head { min-height: 10.5rem; } }
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .9rem; }
.skill-card { position: relative; display: flex; align-items: center; gap: .85rem; padding: .7rem .6rem; border-radius: 3px; border: 1px solid transparent; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.skill-card:hover, .skill-card:focus-visible { background: rgba(255, 255, 255, .55); border-color: var(--line); transform: translateX(2px); }
.skill-card .stone { --s: 2.9rem; }
.skill-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.1; color: var(--fg); }
.skill-kind { display: block; margin-top: .12rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; text-transform: lowercase; color: var(--muted); }
.skill-use { display: block; margin-top: .3rem; font-size: .8rem; line-height: 1.4; color: var(--fg-soft); }

.timeline-list { position: relative; display: grid; max-width: 46rem; padding-left: 2.4rem; }
.timeline-list::before { content: ""; position: absolute; left: 8px; top: .8rem; bottom: .8rem; border-left: 1px dashed var(--line); }
.timeline-item { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px dotted var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -2.4rem; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 4px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 0 5px rgba(217, 183, 110, .2); }
.timeline-item .dot { display: none; }
.timeline-item .text { flex: 1; min-width: 0; }
.timeline-item .when { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.timeline-item .what { margin-top: .1rem; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.timeline-icon img { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(255, 255, 255, .4); transition: box-shadow .3s; }
a.timeline-icon:hover img { box-shadow: 0 0 0 1px var(--night), 0 0 0 4px rgba(217, 183, 110, .55); }

.collabs-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.collabs-bar .chapter-head { margin-bottom: 0; }
.collabs-toggle { padding: .6rem 1.05rem; font-weight: 600; font-size: .85rem; cursor: pointer; border-radius: 2px; color: var(--warm); background: rgba(255, 255, 255, .06); border: 1px solid rgba(169, 188, 203, .55); transition: background .3s, border-color .3s; }
.collabs-toggle:hover { background: rgba(255, 255, 255, .13); border-color: var(--gold); }
.collabs-slider { overflow: hidden; padding: .5rem 0 1rem; }
.collabs-track { display: flex; gap: 28px; overflow: hidden; }
.collab-card { flex: none; width: 17.5rem; padding: .8rem .8rem 1rem; opacity: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 4px rgba(13, 25, 40, .6), inset 0 0 0 5px var(--line); transition: opacity .6s ease, background .3s, border-color .3s; }
.collab-card.visible { opacity: 1; }
.collab-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--gold); }
.collab-card > a { display: block; overflow: hidden; border: 1px solid var(--line); }
.collab-card > a img { width: 100%; height: 8.2rem; object-fit: cover; transition: transform .8s var(--ease); }
.collab-card:hover > a img { transform: scale(1.05); }
.collab-card h3 { margin-top: .8rem; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
.collab-card h3 a:hover { color: var(--gold); }
.collab-card .collab-badges { margin-top: .6rem; }
.collab-card > p { margin-top: .65rem; font-size: .84rem; line-height: 1.55; color: var(--fg-soft); }
.collab-card > p strong { color: var(--warm); font-weight: 600; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.id-row { display: flex; align-items: center; gap: 1.5rem; }
.id-avatar { flex: none; width: 8.5rem; aspect-ratio: 4 / 5; padding: 7px; border-radius: 999px 999px 5px 5px; border: 1px solid var(--line); background: rgba(255, 255, 255, .35); position: relative; }
.id-avatar::before { content: ""; position: absolute; inset: -8px; border-radius: inherit; border: 1px solid var(--line); pointer-events: none; }
.id-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 999px 999px 2px 2px; }
.id-name { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.01em; }
.id-pronouns { margin-top: .5rem; font-size: .95rem; color: var(--muted); }
.id-pronouns strong { color: var(--fg); font-weight: 600; }
.profile-block { margin-top: 2.2rem; }
.block-label { display: block; margin-bottom: .8rem; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); }
.role-chips span { font-size: .78rem; padding: .35rem .7rem; }
.profile-bio { max-width: 38rem; font-size: 1.08rem; line-height: 1.7; color: var(--fg-soft); }
.profile-bio strong { color: var(--fg); font-weight: 600; }
.panel { position: relative; padding: 1.2rem 1.1rem 1.3rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .42); box-shadow: inset 0 0 0 4px rgba(251, 246, 233, .75), inset 0 0 0 5px var(--line); }
.panel + .panel { margin-top: 1.4rem; }
.admin-badge { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; padding: .35rem .75rem; font-family: var(--mono); font-size: .74rem; color: var(--fg-soft); border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .5); }
.admin-badge .admin-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(22, 36, 58, .12); }
.admin-badge.is-online .admin-dot { background: #3f8a4a; box-shadow: 0 0 0 3px rgba(63, 138, 74, .22); }
.admin-badge.is-idle .admin-dot { background: #b08a2a; box-shadow: 0 0 0 3px rgba(176, 138, 42, .22); }
.admin-badge.is-dnd .admin-dot { background: #a8483f; box-shadow: 0 0 0 3px rgba(168, 72, 63, .22); }
.admin-badge .admin-text { display: none; }
.admin-badge .admin-text-unavailable { display: inline; }
.admin-badge.is-online .admin-text-online, .admin-badge.is-idle .admin-text-idle, .admin-badge.is-dnd .admin-text-dnd, .admin-badge.is-offline .admin-text-offline { display: inline; }
.admin-badge.is-online .admin-text-unavailable, .admin-badge.is-idle .admin-text-unavailable, .admin-badge.is-dnd .admin-text-unavailable, .admin-badge.is-offline .admin-text-unavailable { display: none; }
.badge-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.logo-tooltip { position: relative; display: inline-flex; }
.logo-tooltip img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line), 0 0 0 4px rgba(255, 255, 255, .45); transition: box-shadow .3s, transform .3s var(--ease); }
.logo-tooltip:hover img, .logo-tooltip:focus-visible img { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--night), 0 0 0 4px rgba(217, 183, 110, .55); }
.logo-tooltip::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + .6rem); transform: translate(-50%, 4px); white-space: nowrap; pointer-events: none; padding: .3rem .6rem; font-family: var(--mono); font-size: .68rem; color: var(--cream); background: var(--night); border-radius: 2px; opacity: 0; transition: opacity .25s, transform .25s var(--ease); z-index: 5; }
.logo-tooltip:hover::after, .logo-tooltip:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

.dc-panel[hidden], .skin-block[hidden] { display: none !important; }
.dc-user { display: flex; align-items: center; gap: .8rem; }
.dc-avatar { position: relative; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--slate); }
.dc-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.dc-dot { position: absolute; right: -2px; bottom: -2px; width: .85rem; height: .85rem; border-radius: 50%; background: #7d8a96; border: 2px solid var(--ivory); }
.dc-dot.is-online { background: #3f8a4a; } .dc-dot.is-idle { background: #b08a2a; } .dc-dot.is-dnd { background: #a8483f; }
.dc-who { display: grid; min-width: 0; }
.dc-name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; }
.dc-status { font-family: var(--mono); font-size: .7rem; color: var(--fg-soft); }
.dc-custom { display: flex; gap: .45rem; align-items: center; margin: .8rem 0 0; font-size: .88rem; line-height: 1.4; overflow-wrap: anywhere; }
.dc-emoji { width: 1.15rem; height: 1.15rem; }
.dc-act { display: flex; gap: .8rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.dc-art-wrap { position: relative; flex: none; width: 4rem; height: 4rem; }
.dc-art { width: 4rem; height: 4rem; border-radius: 6px; object-fit: cover; display: block; }
.dc-art-small { position: absolute; right: -.35rem; bottom: -.35rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--ivory); background: var(--ivory); object-fit: cover; }
.dc-act.is-spotify > .dc-art { flex: none; }
.dc-text { display: grid; gap: .1rem; min-width: 0; align-content: center; font-size: .84rem; line-height: 1.35; }
.dc-kind { font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-soft); }
.dc-title { font-weight: 700; overflow-wrap: anywhere; }
.dc-line { overflow-wrap: anywhere; color: var(--fg-soft); }
.dc-elapsed { font-family: var(--mono); font-size: .72rem; color: #3f8a4a; }
.dc-elapsed::before { content: "\25B6\00a0"; font-size: .6rem; }
.dc-bar { display: block; height: 3px; margin-top: .35rem; border-radius: 2px; background: rgba(22, 36, 58, .15); overflow: hidden; }
.dc-bar-fill { display: block; height: 100%; width: 0; background: #3f8a4a; }
.dc-empty { margin: .8rem 0 0; font-size: .86rem; color: var(--fg-soft); }
.skin-card { display: flex; align-items: center; gap: 1.4rem; padding: 1rem 1.2rem; max-width: 26rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .45); }
.skin-canvas { flex: none; width: 11rem; height: 15rem; max-width: 40vw; cursor: grab; touch-action: pan-y; }
.skin-canvas:active { cursor: grabbing; }
.skin-text { display: grid; gap: .35rem; font-size: .92rem; color: var(--fg-soft); }
.skin-name { font-family: var(--mono); font-size: 1rem; color: var(--ink); }
.skin-link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.conn-list { display: grid; gap: .5rem; }
.conn-list a { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; font-weight: 600; font-size: .95rem; border: 1px solid transparent; border-radius: 3px; color: var(--fg); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.conn-list a:hover, .conn-list a:focus-visible { background: rgba(255, 255, 255, .6); border-color: var(--line); transform: translateX(3px); }
.conn-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 50%; background: var(--night); color: var(--gold); }
.conn-ico svg { width: 1.1rem; height: 1.1rem; }
.profile-companion { margin-top: 2.6rem; }
.media-sec { position: relative; }
.media-sec .section-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.media-sec .section-art img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; opacity: .3; will-change: transform; }
.media-sec .section-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--abyss), rgba(13, 25, 40, .6) 30%, rgba(13, 25, 40, .85)); }
.media-kicker { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--muted); }
.media-subtitle { margin-bottom: .6rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.media-loading, .media-empty { margin-top: .6rem; font-size: .9rem; font-style: italic; color: var(--muted); }
.anime-rows { display: grid; gap: 1.8rem; }
.anime-row { min-width: 0; }
.anime-row .anime-slider { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(169, 188, 203, .4) transparent; }
.anime-track { display: flex; gap: .8rem; padding: .3rem .2rem .8rem; }
.anime-card { flex: none; width: 8.6rem; border: 1px solid rgba(169, 188, 203, .32); border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .05); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.anime-card:hover, .anime-card:focus-visible { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .75), 0 0 24px rgba(217, 183, 110, .2); }
.anime-cover { width: 100%; height: 11.2rem; object-fit: cover; }
.anime-text { padding: .5rem .55rem .65rem; }
.anime-title { font-size: .78rem; line-height: 1.3; color: var(--warm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anime-status { margin-top: .25rem; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.songs-wrap { margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px dashed rgba(169, 188, 203, .3); }
.songs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .6rem; margin-top: .9rem; }
.song-card { display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem .55rem .55rem; border: 1px solid rgba(169, 188, 203, .28); border-radius: 3px; background: rgba(255, 255, 255, .05); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.song-card:hover, .song-card:focus-visible { background: rgba(255, 255, 255, .12); border-color: var(--gold); transform: translateY(-2px); }
.song-cover { width: 2.8rem; height: 2.8rem; flex: none; border-radius: 2px; object-fit: cover; }
.song-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.song-title { font-weight: 600; font-size: .88rem; color: var(--warm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-play { flex: none; color: var(--mist); }
.song-play svg { width: 1.05rem; height: 1.05rem; }
.song-card:hover .song-play { color: var(--gold); }
.visits-bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.visitor-counter { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .85rem; color: var(--fg-soft); }
.visitor-counter svg { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.visitor-counter #visitor-count { color: var(--fg); font-weight: 600; }
.reactions-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.reaction-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; font-size: 1rem; cursor: pointer; background: rgba(255, 255, 255, .45); border: 1px solid var(--line); border-radius: 999px; color: var(--fg-soft); transition: background .3s, border-color .3s, transform .3s var(--ease); }
.reaction-btn:hover { background: rgba(255, 255, 255, .8); border-color: var(--night); transform: translateY(-2px); }
.reaction-btn.is-reacted { border-color: var(--moss-deep); background: rgba(143, 174, 146, .3); color: var(--ink); }
.reaction-btn.reaction-pop { transform: scale(1.08); }
.reaction-count { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

.cta-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 95; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1.15rem; font-weight: 600; font-size: .9rem; color: var(--warm); background: rgba(13, 25, 40, .88); border: 1px solid rgba(217, 183, 110, .55); border-radius: 2px; box-shadow: inset 0 0 0 3px rgba(13, 25, 40, .88), inset 0 0 0 4px rgba(217, 183, 110, .22), 0 12px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.cta-float:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: inset 0 0 0 3px rgba(13, 25, 40, .88), inset 0 0 0 4px rgba(217, 183, 110, .45), 0 14px 34px -8px rgba(217, 183, 110, .35); }
.cta-float .ico { width: 1rem; height: 1rem; color: var(--gold); }
.music-player { position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 95; display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem .5rem .5rem; background: rgba(13, 25, 40, .88); border: 1px solid rgba(217, 183, 110, .45); border-radius: 2px; box-shadow: inset 0 0 0 3px rgba(13, 25, 40, .88), inset 0 0 0 4px rgba(217, 183, 110, .2), 0 12px 30px -10px rgba(0, 0, 0, .6); }
.music-btn { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1px solid rgba(217, 183, 110, .55); background: transparent; color: var(--mist); cursor: pointer; transition: background .25s, box-shadow .25s, color .25s; }
.music-btn:hover { color: var(--warm); background: rgba(255, 255, 255, .1); box-shadow: 0 0 16px rgba(217, 183, 110, .4); }
.music-btn svg { width: .9rem; height: .9rem; }
.music-icon-pause, .music-player.is-playing .music-icon-play { display: none; }
.music-player.is-playing .music-icon-pause { display: block; }
.music-icon-muted, .music-player.is-muted .music-icon-vol { display: none; }
.music-player.is-muted .music-icon-muted { display: block; }
.music-info { display: flex; flex-direction: column; line-height: 1.15; }
.music-title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--warm); }
.music-artist { font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.music-volume { width: 4.6rem; accent-color: var(--gold); }
.toast-container { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 120; display: grid; gap: .5rem; }
body.page-exit { opacity: 0; transition: opacity .28s ease; }
body.terminal-mode { filter: saturate(.7) contrast(1.05); }
.ripple { display: none !important; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .95s var(--ease), transform .95s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes art-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 0, 0); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 1040px) {
  .craft-grid, .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  :root { --header-h: 4rem; }
  .nav-toggle { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-left: auto; cursor: pointer; background: transparent; border: 1px solid rgba(169, 188, 203, .5); border-radius: 2px; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1.5px; background: var(--warm); transition: transform .3s var(--ease), opacity .3s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .js .site-nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem var(--pad) 1.6rem; background: rgba(13, 25, 40, .97); border-bottom: 1px solid rgba(217, 183, 110, .25); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .js .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; }
  .js .nav-open { background: rgba(13, 25, 40, .97); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav-button { padding: .7rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(169, 188, 203, .14); }
  .nav-button::after { display: none; }
  .lang-toggle { align-self: flex-start; }
  .about-grid, .grimoire-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 26rem; margin-inline: auto; }
  .spread { grid-template-columns: 1fr; }
  .spread::before { display: none; }
  .leaf + .leaf { border-left: 0; border-top: 1px solid rgba(22, 36, 58, .14); }
  .id-row { flex-direction: column; align-items: flex-start; }
  .hero { align-items: flex-end; }
  .hero-art { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-art img { object-position: 50% 20%; }
  .hero-veil { background: linear-gradient(180deg, rgba(13, 25, 40, .5) 0%, rgba(13, 25, 40, 0) 22%, rgba(13, 25, 40, .55) 52%, var(--abyss) 86%); }
  .hero-content { padding-bottom: 4.5rem; }
  .hero-credit { display: none; }
  .hero.hero-sm { align-items: flex-end; }
  .hero-sm .hero-art img { object-position: 62% var(--focus-y, 40%); }
  .hero-sm .hero-veil { background: linear-gradient(180deg, rgba(13, 25, 40, .55) 0%, rgba(13, 25, 40, .3) 40%, rgba(13, 25, 40, .88) 100%); }
}
@media (max-width: 620px) {
  .craft-grid, .featured { grid-template-columns: 1fr; }
  .sigils { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: 1fr; }
  .roster-row { grid-template-columns: auto 1fr; }
  .roster-row .role { grid-column: 2; text-align: left; margin-top: -.6rem; }
  .music-info, .music-volume { display: none; }
  .cta-float span { display: none; }
  .cta-float { padding: .8rem; }
  .scroll-cue { display: none; }
  .collab-card { width: 15.5rem; }
  .rune-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .collab-card { opacity: 1; }
  .hero-art { animation: none; }
  .hero-title, .hero-role, .hero-lead, .hero-cta, .hero-proof, .hero-sm .page-eyebrow, .hero-sm .page-title, .hero-sm .page-lead { animation: none; }
  .hero-mist { animation: none; }
}

.vinyl { --u: 6px; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.2rem); align-items: start; padding-top: 3.5rem; }
.vinyl-side { display: grid; gap: 1.6rem; min-width: 0; }

.deck { position: relative; max-width: 40rem; width: 100%; }
.deck-top { position: relative; width: 100%; aspect-ratio: 1.3; border-radius: 8px; background: repeating-linear-gradient(92deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px), linear-gradient(150deg, #33221a, #1b120e 70%); box-shadow: 0 30px 50px -28px rgba(13, 25, 40, .75), 0 2px 0 rgba(255, 255, 255, .06) inset; }
.deck-top::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(217, 183, 110, .32); border-radius: 4px; pointer-events: none; }
.platter { position: absolute; left: calc(var(--u) * 4); top: calc(var(--u) * 6.5); width: calc(var(--u) * 64); height: calc(var(--u) * 64); border-radius: 50%; background: conic-gradient(from 0deg, #3a3f46, #747b84, #3a3f46, #8c939c, #3a3f46, #747b84, #3a3f46); box-shadow: 0 calc(var(--u) * .8) calc(var(--u) * 1.8) rgba(0, 0, 0, .6), inset 0 0 0 calc(var(--u) * .35) rgba(255, 255, 255, .14); }
.platter-ring { position: absolute; inset: calc(var(--u) * 1.6); border-radius: 50%; border: 1px solid rgba(0, 0, 0, .55); }
.mat { position: absolute; inset: calc(var(--u) * 3); border-radius: 50%; background: radial-gradient(circle, #1f2d3f, #0f1926 75%); box-shadow: inset 0 0 calc(var(--u) * 2) rgba(0, 0, 0, .7); }
.spindle { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0d99a, #a98741); }
.platter-slot { position: absolute; left: calc(var(--u) * 7); top: calc(var(--u) * 9.5); width: calc(var(--u) * 58); height: calc(var(--u) * 58); pointer-events: none; }
.deck-led { position: absolute; left: calc(var(--u) * 90); top: calc(var(--u) * 66); width: calc(var(--u) * 1.5); height: calc(var(--u) * 1.5); border-radius: 50%; background: #4a3a2a; transition: background .4s, box-shadow .4s; }
.vinyl.is-playing .deck-led { background: var(--gold); box-shadow: 0 0 calc(var(--u) * 2) rgba(217, 183, 110, .9); }
.deck-speed { position: absolute; left: calc(var(--u) * 72); top: calc(var(--u) * 65); font-family: var(--mono); font-size: calc(var(--u) * 1.8); letter-spacing: .08em; color: rgba(217, 183, 110, .8); }

.arm { position: absolute; left: calc(var(--u) * 88); top: calc(var(--u) * 12); width: 0; height: 0; z-index: 5; transform: rotate(var(--arm, 6deg)); transform-origin: 0 0; transition: transform .85s cubic-bezier(.4, .1, .2, 1); pointer-events: none; }
.arm > span { position: absolute; display: block; }
.arm-bar { left: calc(var(--u) * -.55); top: 0; width: calc(var(--u) * 1.1); height: calc(var(--u) * 52); border-radius: 999px; background: linear-gradient(90deg, #7a818a, #eef0f2 45%, #7a818a); box-shadow: calc(var(--u) * .6) calc(var(--u) * .6) calc(var(--u) * 1) rgba(0, 0, 0, .45); }
.arm-head { left: calc(var(--u) * -1.8); top: calc(var(--u) * 50.5); width: calc(var(--u) * 3.6); height: calc(var(--u) * 7); border-radius: calc(var(--u) * .6); background: linear-gradient(90deg, #1b1f26, #353b45, #1b1f26); border-bottom: calc(var(--u) * .5) solid var(--gold); box-shadow: calc(var(--u) * .5) calc(var(--u) * .7) calc(var(--u) * 1) rgba(0, 0, 0, .5); }
.arm-weight { left: calc(var(--u) * -2); top: calc(var(--u) * -8.5); width: calc(var(--u) * 4); height: calc(var(--u) * 6.5); border-radius: calc(var(--u) * .9); background: linear-gradient(90deg, #2a2f37, #565d68, #2a2f37); }
.arm-base { left: calc(var(--u) * -3.6); top: calc(var(--u) * -3.6); width: calc(var(--u) * 7.2); height: calc(var(--u) * 7.2); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f0d99a, #a98741 60%, #5e4a20); box-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 1.2) rgba(0, 0, 0, .55), inset 0 0 0 calc(var(--u) * .4) rgba(0, 0, 0, .25); }

.sleeve { position: relative; width: min(100%, 17rem); aspect-ratio: 1; }
.sleeve-back { position: absolute; inset: 0; z-index: 2; border-radius: 3px; background: linear-gradient(160deg, #1a2d45, #0f1c2d); box-shadow: 0 18px 30px -18px rgba(13, 25, 40, .8); }
.sleeve-slot { position: absolute; left: 10%; top: 4%; width: 80%; aspect-ratio: 1; pointer-events: none; }
.sleeve-front { position: absolute; left: 0; right: 0; bottom: 0; height: 56%; z-index: 4; overflow: hidden; border-radius: 0 0 3px 3px; background: linear-gradient(160deg, #1d3350, #12213a); border-top: 1px solid rgba(217, 183, 110, .5); box-shadow: inset 0 0 0 4px rgba(13, 25, 40, .55), inset 0 0 0 5px rgba(217, 183, 110, .22); }
.sleeve-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.sleeve-cover[hidden] { display: none; }
.sleeve-mark { position: absolute; left: 50%; top: 50%; width: 1.6rem; height: 1.6rem; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--gold); background: rgba(217, 183, 110, .18); }
.sleeve-cover:not([hidden]) ~ .sleeve-mark { display: none; }

.record { position: absolute; left: 0; top: 0; z-index: 3; border-radius: 50%; transform-origin: 50% 50%; transition: transform .9s cubic-bezier(.35, .1, .2, 1); cursor: pointer; filter: drop-shadow(0 .5rem .7rem rgba(0, 0, 0, .45)); will-change: transform; touch-action: manipulation; }
.record.is-raised { z-index: 6; }
.record.no-anim { transition: none !important; }
.record:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.record::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 25deg, transparent 0 7%, rgba(255, 255, 255, .2) 11%, transparent 17% 50%, rgba(255, 255, 255, .15) 61%, transparent 69%); mix-blend-mode: screen; }
.record-spin { position: relative; width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, #0b0b0f 0 .7px, #181820 .7px 1.5px); box-shadow: inset 0 0 0 2.5% #1d1d24, inset 0 0 0 3% #08080b; animation: vspin 2.6s linear infinite; animation-play-state: paused; }
.record-spin::before { content: ""; position: absolute; inset: 32.5%; border-radius: 50%; background: radial-gradient(circle, #f0d99a, #a98741); }
.record-label { position: absolute; inset: 32.5%; width: 35%; height: 35%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.record-label[hidden] { display: none; }
.record-hole { position: absolute; left: 50%; top: 50%; width: 4.5%; height: 4.5%; transform: translate(-50%, -50%); border-radius: 50%; background: #e9dfc6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.vinyl.is-playing .record-spin { animation-play-state: running; }
@keyframes vspin { to { transform: rotate(360deg); } }

.np { display: grid; gap: .45rem; justify-items: start; min-width: 0; }
.np-kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.np-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; font-weight: 600; overflow-wrap: anywhere; }
.np-artist { color: var(--fg-soft); overflow-wrap: anywhere; min-height: 1.4em; }
.np-bar { display: block; width: 100%; height: 3px; margin-top: .5rem; border-radius: 2px; background: rgba(22, 36, 58, .15); overflow: hidden; }
.np-bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.np-time { font-family: var(--mono); font-size: .72rem; color: var(--fg-soft); }
.np-ctrl { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
.np .btn { padding: .75rem 1.2rem; }
.np .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.theme-paper .np .btn-ghost { color: var(--ink); border-color: rgba(22, 36, 58, .35); background: rgba(255, 255, 255, .4); }
.theme-paper .np .btn-ghost:hover:not([disabled]) { background: rgba(255, 255, 255, .75); border-color: var(--ink); }
.np-vol { display: flex; align-items: center; gap: .7rem; margin-top: .4rem; font-size: .85rem; color: var(--fg-soft); }
.np-vol input { width: 8.5rem; accent-color: #a98741; }
.np-note { margin: .4rem 0 0; font-size: .8rem; color: var(--fg-soft); }
.np-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .vinyl { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .deck { margin-inline: auto; }
  .vinyl-side { justify-items: center; }
  .np { justify-items: center; text-align: center; }
  .np-ctrl { justify-content: center; }
  .sleeve { width: min(70%, 15rem); }
}
@media (prefers-reduced-motion: reduce) {
  .record-spin { animation: none; }
  .arm, .record { transition: none !important; }
}
