/* Noctesis — premium hub.
   three.js = the landing world · HUD interface (top bar, ring, panels) · live ASCII = the reveals.
   Colours come from theme.js as CSS variables (rgb triplets for --ink/--hi/--accent/--t*). */
:root {
  --bg: #05040b; --hud: #07060f; --panel: #0b0916; --ring: #0a0814;
  --ink: 232,228,255; --hi: 160,130,255; --accent: 233,187,161;
  --t1: 232,228,255; --t2: 160,130,255; --t3: 110,190,255;
  --display: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --hud-h: 58px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Full-height numbers everywhere: the serif's old-style figures (e.g. the 5 in CrownsDLSS5ER) read like letters.
   !important because every `font:` shorthand in this file would otherwise reset it. */
*, *::before, *::after { font-variant-numeric: lining-nums !important; }
body {
  margin: 0; background: var(--bg); color: rgb(var(--ink));
  font: 15.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .6s;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--hi), .55); color: #fff; }
:focus-visible { outline: 1px solid rgb(var(--hi)); outline-offset: 3px; }

/* film grain + vignette over everything */
#grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay; }
body::after { content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 55%, rgba(0,0,0,.55)); }

.wrap { width: min(1320px, 100%); margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.label { font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--ink), .45); }

/* ---------------- HUD top bar ---------------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 70; height: var(--hud-h);
  display: flex; align-items: stretch; background: color-mix(in srgb, var(--hud) 78%, transparent);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid rgba(var(--ink), .1);
}
.hud .brand { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; min-width: 0; }
.hud .brand b { font: 700 15px var(--mono); letter-spacing: .06em; color: rgba(var(--ink), .95); white-space: nowrap; }
.hud .phases { display: flex; gap: 16px; margin-top: 3px; }
.hud .phases a { font: 500 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .3); transition: color .3s; white-space: nowrap; }
.hud .phases a:hover { color: rgba(var(--ink), .7); }
.hud .phases a.on { color: rgba(var(--ink), .95); font-weight: 700; }
.hud .phases a.on::before { content: "● "; color: rgb(var(--hi)); }
.hud .stats { margin-left: auto; display: flex; }
.hud .stat { display: flex; flex-direction: column; justify-content: center; padding: 0 22px; border-left: 1px solid rgba(var(--ink), .07); min-width: 112px; }
.hud .stat span { font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .4); }
.hud .stat b { font: 500 17px var(--mono); color: rgba(var(--ink), .92); font-variant-numeric: tabular-nums; }
.hud .stat b.hi { color: rgb(var(--hi)); }
.hud .themes { display: flex; align-items: center; gap: 6px; padding: 0 20px; border-left: 1px solid rgba(var(--ink), .07); }
.swatch { width: 13px; height: 13px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid rgba(var(--ink), .25);
  background: radial-gradient(circle at 35% 35%, rgb(var(--sw)), var(--sw2) 85%); transition: transform .25s var(--ease), box-shadow .25s; }
.swatch:hover { transform: scale(1.25); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgb(var(--sw)); }
.hud .progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: rgba(var(--ink), .06); }
.hud .progress i { display: block; height: 100%; width: 0; background: rgba(var(--ink), .85); box-shadow: 0 0 10px rgba(var(--hi), .8); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; white-space: nowrap;
  padding: 14px 26px; border: 1px solid rgba(var(--ink), .22); background: rgba(var(--ink), .02);
  font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(var(--ink), .92);
  transition: border-color .3s, background .3s, color .3s, box-shadow .3s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn:hover { border-color: rgba(var(--hi), .9); background: rgba(var(--hi), .1); }
.btn.primary { background: rgb(var(--ink)); color: var(--bg); border-color: transparent; }
.btn.primary:hover { background: rgb(var(--hi)); color: #fff; box-shadow: 0 0 40px rgba(var(--hi), .5); }
.btn.off { opacity: .4; cursor: default; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------------- Landing (three.js) ---------------- */
.landing { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
.landing canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#gl { z-index: 0; transition: opacity .7s; }
#gl-ascii { z-index: 1; opacity: 0; transition: opacity .7s; pointer-events: none; }
.landing.ascii #gl-ascii { opacity: 1; }
.landing.ascii #gl { opacity: 0; }
.landing .fade { position: absolute; inset: auto 0 0 0; height: 30%; z-index: 2; pointer-events: none; background: linear-gradient(transparent, var(--bg)); }
.landing .title { position: absolute; left: 0; right: 0; bottom: 11vh; z-index: 3; text-align: center; pointer-events: none; }
.landing h1 {
  margin: 0; font: 500 clamp(30px, 4.6vw, 64px)/1 var(--display); letter-spacing: .55em; text-indent: .55em;
  color: rgba(var(--ink), .96); text-shadow: 0 0 40px rgba(var(--hi), .45);
}
.landing .by { margin-top: 14px; font: 500 11px var(--mono); letter-spacing: .5em; text-indent: .5em; text-transform: uppercase; color: rgba(var(--ink), .5); }
.landing .cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; pointer-events: auto; flex-wrap: wrap; }
.readout { position: absolute; z-index: 3; font: 500 10px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink), .42); }
.readout b { color: rgba(var(--ink), .85); font-weight: 500; }
.readout.tl { left: 26px; top: calc(var(--hud-h) + 24px); }
.readout.tr { right: 26px; top: calc(var(--hud-h) + 24px); text-align: right; }
.readout.bl { left: 26px; bottom: 26px; }
.ascii-btn { position: absolute; right: 26px; bottom: 26px; z-index: 4; cursor: pointer; padding: 8px 14px; border: 1px solid rgba(var(--ink), .2);
  background: rgba(0,0,0,.35); font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--ink), .6); transition: .3s; }
.ascii-btn:hover, .ascii-btn[aria-pressed="true"] { color: rgb(var(--hi)); border-color: rgba(var(--hi), .7); }
.callout { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s; }
.callout.show { opacity: 1; }
.callout .box { position: absolute; background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid rgba(var(--ink), .3); border-left: 3px solid rgb(var(--ink)); padding: 7px 12px 8px 11px; white-space: nowrap; }
.callout .box .label { font-size: 9px; color: rgba(var(--ink), .7); }
.callout .box div + div { font: 500 11px var(--mono); color: rgba(var(--ink), .95); }
.callout svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------------- Sections ---------------- */
section { position: relative; padding: 130px 0; }
.sec-head { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: end; gap: 28px; margin-bottom: 56px; }
.sec-head .idx { font: 500 11px var(--mono); color: rgba(var(--hi), .9); letter-spacing: .1em; padding-bottom: 12px; }
.sec-head h2 { margin: 0; font: 500 clamp(44px, 6vw, 84px)/.95 var(--display); letter-spacing: -.01em; color: rgba(var(--ink), .97); }
.sec-head h2 em { font-style: italic; color: rgb(var(--hi)); }
.sec-head .rule { height: 1px; align-self: center; margin-top: 30px; background: linear-gradient(90deg, rgba(var(--ink), .25), transparent); }
.sec-head .side { padding-bottom: 12px; text-align: right; }

/* ---------------- Works: ring + list ---------------- */
.works-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.ring-wrap { position: sticky; top: calc(var(--hud-h) + 24px); aspect-ratio: 1; }
#ring { width: 100%; height: 100%; display: block; cursor: pointer; }
.ring-readout { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; pointer-events: none; width: 46%; }
.ring-readout .label { display: block; margin-bottom: 8px; }
.ring-readout .name { font: 500 clamp(22px, 2.4vw, 34px)/1.05 var(--display); color: rgba(var(--ink), .97); min-height: 2.1em; display: grid; place-items: center; }
.ring-readout .sub { margin-top: 8px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--hi), .9); }

.filters { display: flex; flex-wrap: wrap; border: 1px solid rgba(var(--ink), .12); margin-bottom: 18px; width: fit-content; }
.filters button { padding: 9px 16px; border: 0; border-right: 1px solid rgba(var(--ink), .08); background: transparent; cursor: pointer;
  font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .45); transition: .25s; }
.filters button:last-child { border-right: 0; }
.filters button:hover { color: rgba(var(--ink), .9); }
.filters button[aria-pressed="true"] { color: var(--bg); background: rgb(var(--ink)); }

.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid rgba(var(--ink), .09);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s; }
.card::before, .card::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: rgba(var(--ink), .55); border-style: solid; transition: .4s var(--ease); z-index: 3; pointer-events: none; }
.card::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.card::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.card:hover, .card.lit { border-color: rgba(var(--hi), .45); transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(var(--hi), .45); }
.card:hover::before, .card:hover::after, .card.lit::before, .card.lit::after { width: 22px; height: 22px; border-color: rgb(var(--hi)); }
.card .strip { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-bottom: 1px solid rgba(var(--ink), .07); }
.card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card .media > img, .card .media > video, .card .media > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform 1.2s var(--ease); }
.card .media.contain > img { object-fit: contain; padding: 7%; }
.card .media canvas.ascii { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .35s; pointer-events: none; }
.card:hover .media canvas.ascii { opacity: 1; }
.card:hover .media > img, .card:hover .media > svg { opacity: .18; transform: scale(1.04); }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font: 500 28px/1.05 var(--display); color: rgba(var(--ink), .97); }
.card p { margin: 0; font-size: 14px; color: rgba(var(--ink), .55); }
.card .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; }

.avail { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 7px; }
.avail::before { content: ""; width: 6px; height: 6px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.avail.free, .avail.paid { color: rgb(var(--hi)); }
.avail.soon { color: rgb(var(--accent)); }
.avail.none { color: rgba(var(--ink), .4); }
.avail.none::before { box-shadow: none; }

/* ---------------- Works dial (kinetic) ---------------- */
.dial-sec { padding: 0; }
.dial-stage { position: relative; }
.dial-area { position: relative; height: 100vh; min-height: 680px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.dial-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.dial-area.dragging, .dial-area.dragging * { cursor: grabbing !important; }
.dial-area.grab { cursor: grab; }
.dial-head { position: absolute; left: 32px; top: calc(var(--hud-h) + 26px); z-index: 6; pointer-events: none; }
.dial-head .idx { font: 500 11px var(--mono); color: rgb(var(--hi)); letter-spacing: .1em; }
.dial-head h2 { margin: 4px 0 6px; font: 500 clamp(40px, 4.6vw, 70px)/.95 var(--display); color: rgba(var(--ink), .97); }
.dial-head h2 em { font-style: italic; color: rgb(var(--hi)); }
.dial-read { position: absolute; right: 32px; top: calc(var(--hud-h) + 30px); z-index: 6; text-align: right; font: 500 10px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink), .4); pointer-events: none; }
.dial-read b { color: rgba(var(--ink), .9); font-weight: 500; font-variant-numeric: tabular-nums; }

.dial-center { position: absolute; z-index: 4; translate: -50% -50%; text-align: center; pointer-events: none; }
.dial-center .num { font: 500 clamp(30px, 3.4vw, 52px)/1 var(--mono); color: rgba(var(--ink), .97); font-variant-numeric: tabular-nums; }
.dial-center .num small { font-size: .42em; color: rgba(var(--ink), .4); }
.dial-center .k { margin-top: 8px; font: 600 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgb(var(--hi)); }
.dial-center .hint { margin-top: 14px; font: 500 9px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--ink), .35); }

.tiles { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tile { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; transition: filter .3s; }
.tile .shape { position: absolute; inset: 0; background: rgba(var(--ink), .28); clip-path: var(--clip); transition: background .3s; }
.tile .in { position: absolute; inset: 1px; clip-path: var(--clip); background: var(--panel); overflow: hidden; }
.tile .in > img, .tile .in > svg, .tile .in > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .4s; }
.tile .in.contain > img { object-fit: contain; padding: 10%; }
.tile .in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent 40%, rgba(0,0,0,.75)); }
.tile .t-strip { position: absolute; left: 12%; top: 8px; z-index: 2; font: 600 8.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .7); white-space: nowrap; text-shadow: 0 0 6px rgba(0,0,0,.9); }
.tile .t-title { position: absolute; left: 12%; right: 6%; bottom: 8px; z-index: 2; font: 500 19px/1 var(--display); color: rgba(var(--ink), .95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 10px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.8); }
.tile.sel { filter: drop-shadow(0 0 18px rgba(var(--hi), .55)); }
.tile.sel .shape { background: rgb(var(--hi)); }
.tile.sel .in > img, .tile.sel .in > svg { opacity: .95; }
.tile:hover .shape { background: rgba(var(--hi), .7); }

.detail { position: absolute; z-index: 5; translate: 0 -50%; }
.detail .d-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(var(--ink), .14); }
.detail h3 { margin: 18px 0 8px; font: 500 clamp(40px, 4.4vw, 68px)/.95 var(--display); color: rgba(var(--ink), .98); min-height: 1em; }
.detail .tagline { margin: 0 0 20px; font-size: 16px; color: rgba(var(--ink), .7); max-width: 520px; }
.detail .d-media { position: relative; aspect-ratio: 16 / 8; background: #000; border: 1px solid rgba(var(--ink), .14); overflow: hidden; }
.detail .d-media > img, .detail .d-media > svg, .detail .d-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s; }
.detail .d-media.contain > img { object-fit: contain; padding: 4%; }
.detail .d-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .9s; }
.detail .d-media::before, .detail .d-media::after { content: ""; position: absolute; width: 14px; height: 14px; z-index: 2; border: solid rgb(var(--hi)); }
.detail .d-media::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.detail .d-media::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.detail .d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.detail .d-anim { animation: dIn .6s var(--ease) both; }
@keyframes dIn { from { opacity: 0; transform: translateX(18px); } }

.dial-index { position: absolute; left: 32px; right: 32px; bottom: 18px; z-index: 6; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid rgba(var(--ink), .1); padding-top: 10px; }
.dial-index::-webkit-scrollbar { display: none; }
.dial-index button { flex: none; padding: 4px 10px; border: 0; background: transparent; cursor: pointer; font: 500 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--ink), .32); transition: color .25s; white-space: nowrap; }
.dial-index button:hover { color: rgba(var(--ink), .8); }
.dial-index button.on { color: rgba(var(--ink), .98); }
.dial-index button.on::before { content: "● "; color: rgb(var(--hi)); }

@media (max-width: 819px) {
  .dial-area { height: auto; min-height: 0; }
  .dial-head { left: 16px; top: calc(var(--hud-h) + 16px); }
  .dial-head h2 { font-size: 40px; }
  .dial-read { display: none; }
  .detail { position: relative; translate: none; left: auto !important; top: auto !important; width: auto !important; padding: 0 16px 30px; }
  .detail h3 { font-size: 44px; }
  .dial-index { position: relative; left: auto; right: auto; bottom: auto; margin: 0 16px 10px; }
  .tile .t-title { font-size: 15px; }
}

/* ---------------- Index panels ---------------- */
.panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.panel { background: var(--panel); border: 1px solid rgba(var(--ink), .1); padding: 12px 14px 14px; min-height: 210px; }
.panel .ph { display: flex; justify-content: space-between; margin-bottom: 14px; }
.panel .ph b { font: 700 9.5px var(--mono); letter-spacing: .14em; color: rgba(var(--ink), .65); text-transform: uppercase; }
.panel .ph span { font: 500 9px var(--mono); color: rgba(var(--ink), .35); }
.tail { list-style: none; margin: 0; padding: 0; font: 500 11px/1.9 var(--mono); }
.tail li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; color: rgba(var(--ink), .6); white-space: nowrap; }
.tail li i { font-style: normal; color: rgba(var(--ink), .28); }
.tail li a { overflow: hidden; text-overflow: ellipsis; }
.tail li a:hover { color: rgb(var(--hi)); }
.tail li span { color: rgba(var(--ink), .4); }
.bars { display: grid; gap: 9px; font: 500 11px var(--mono); }
.bars .row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 22px; gap: 10px; align-items: center; color: rgba(var(--ink), .7); }
.bars .row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .bar { height: 6px; background: rgba(var(--ink), .07); }
.bars .bar i { display: block; height: 100%; background: rgba(var(--ink), .8); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.panels.in .bars .bar i { transform: scaleX(var(--v)); }
.bars .row b { font-weight: 500; text-align: right; color: rgba(var(--ink), .95); }
.cells { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.cells i { aspect-ratio: 1; background: rgba(var(--ink), .06); transition: background .4s; }
.cells i.free, .cells i.paid { background: rgba(var(--hi), .9); box-shadow: 0 0 8px rgba(var(--hi), .6); }
.cells i.soon { background: rgba(var(--accent), .75); }
.cells i.none { background: rgba(var(--ink), .22); }
.legend { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.big { font: 500 46px/1 var(--mono); color: rgba(var(--ink), .97); font-variant-numeric: tabular-nums; }
.big + .label { margin-top: 8px; display: block; }

/* ---------------- Shop ---------------- */
.shop { border-top: 1px solid rgba(var(--ink), .1); }
.shop-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 150px auto; gap: 30px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(var(--ink), .1); transition: background .4s; }
.shop-row:hover { background: linear-gradient(90deg, transparent, rgba(var(--hi), .06), transparent); }
.shop-row .n { font: 500 12px var(--mono); color: rgba(var(--ink), .35); }
.shop-row .thumb { display: block; aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(var(--ink), .1); position: relative; background: #000; }
.shop-row .thumb > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-row .thumb.contain > img { object-fit: contain; padding: 6%; }
.shop-row h3 { margin: 0; font: 500 32px/1.05 var(--display); }
.shop-row p { margin: 4px 0 0; color: rgba(var(--ink), .55); font-size: 14px; }
.shop-row .price { font: 500 26px var(--mono); text-align: right; }
.shop-row .price small { display: block; font-size: 9.5px; letter-spacing: .14em; color: rgba(var(--ink), .4); text-transform: uppercase; }

/* ---------------- About ---------------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about .sig { position: relative; aspect-ratio: 1; max-width: 440px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(var(--accent), .16), rgba(var(--accent), .04) 45%, #000 72%);
  box-shadow: 0 0 90px -10px rgba(var(--accent), .35); }
.about .sig img { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.12); object-fit: contain; mix-blend-mode: screen; }
.about p { margin: 0 0 16px; font-size: 18px; color: rgba(var(--ink), .7); max-width: 560px; }
.about .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

footer { border-top: 1px solid rgba(var(--ink), .1); padding: 30px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 500 10px/1.8 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--ink), .35); }
footer a { color: rgba(var(--ink), .6); } footer a:hover { color: rgb(var(--hi)); }

/* ---------------- Product page ---------------- */
.p-hero { position: relative; height: 78vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.p-hero .bgm { position: absolute; inset: 0; }
.p-hero .bgm > img, .p-hero .bgm > svg, .p-hero .bgm > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero .bgm.contain > img { object-fit: contain; padding: 110px 0 220px; }
.p-hero .bgm canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-hero { --hero-z: 0; }
.p-hero .bgm { z-index: 0; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 35%, color-mix(in srgb, var(--bg) 70%, transparent) 72%, var(--bg)); }
.p-hero .wrap { position: relative; z-index: 2; padding-bottom: 46px; }
.p-hero .crumbs { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(var(--ink), .5); margin-bottom: 18px; }
.p-hero .crumbs a:hover { color: rgb(var(--hi)); }
.p-hero h1 { margin: 0; font: 500 clamp(52px, 9vw, 130px)/.92 var(--display); letter-spacing: -.015em; color: rgba(var(--ink), .98); text-shadow: 0 6px 50px rgba(0,0,0,.6); }
.p-hero .tagline { margin: 18px 0 0; max-width: 760px; font-size: 18px; color: rgba(var(--ink), .72); }

.p-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; width: min(1320px, 100%); margin: 0 auto; padding: 40px 32px 120px; }
.p-main > * + * { margin-top: 70px; }
.p-main h2 { margin: 0 0 22px; display: flex; align-items: baseline; gap: 16px; font: 500 40px/1 var(--display); }
.p-main h2 .idx { font: 500 11px var(--mono); color: rgb(var(--hi)); }
.p-main h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--ink), .2), transparent); align-self: center; }
.prose p { margin: 0 0 16px; font-size: 17px; color: rgba(var(--ink), .74); max-width: 760px; }

.video { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid rgba(var(--ink), .12); overflow: hidden; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .facade { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video .facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .4s, transform 1s var(--ease); }
.video .facade:hover img { opacity: 1; transform: scale(1.02); }
.video .facade .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 14px; padding: 16px 26px; background: rgba(0,0,0,.55);
  border: 1px solid rgba(var(--ink), .5); font: 600 11px var(--mono); letter-spacing: .22em; color: #fff; backdrop-filter: blur(6px); transition: .3s; }
.video .facade:hover .play { border-color: rgb(var(--hi)); box-shadow: 0 0 40px rgba(var(--hi), .4); }
.video .facade .play svg { width: 14px; height: 14px; fill: currentColor; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(var(--ink), .1); }
.feats div { padding: 18px 4px 18px 0; border-bottom: 1px solid rgba(var(--ink), .1); display: block; font-size: 15.5px; color: rgba(var(--ink), .82); }
.feats div:nth-child(odd) { padding-right: 24px; }
.feats div i { font: 500 10px/2.2 var(--mono); font-style: normal; color: rgba(var(--hi), .9); }
.reqs { list-style: none; padding: 0; margin: 0; font: 500 13px/2.2 var(--mono); color: rgba(var(--ink), .75); }
.reqs li::before { content: "› "; color: rgb(var(--hi)); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery button { position: relative; padding: 0; border: 1px solid rgba(var(--ink), .1); aspect-ratio: 16/10; overflow: hidden; cursor: zoom-in; background: #000; }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 30px; background: rgba(0,0,0,.92); cursor: zoom-out; animation: fadein .3s; }
.lightbox img { max-height: 90vh; border: 1px solid rgba(var(--ink), .2); }
@keyframes fadein { from { opacity: 0; } }

.p-side .box { position: sticky; top: calc(var(--hud-h) + 24px); background: var(--panel); border: 1px solid rgba(var(--ink), .12); }
.p-side .box::before { content: ""; position: absolute; inset: -1px auto auto -1px; width: 16px; height: 16px; border: solid rgb(var(--hi)); border-width: 1px 0 0 1px; }
.p-side .sect { padding: 22px; border-bottom: 1px solid rgba(var(--ink), .08); }
.p-side .sect:last-child { border-bottom: 0; }
.p-side .price { font: 500 44px/1 var(--mono); margin: 14px 0 20px; }
.p-side .btn { width: 100%; }
.p-side .note { margin: 14px 0 0; font-size: 13px; color: rgba(var(--ink), .5); }
.p-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font: 500 12px var(--mono); }
.p-side dt { color: rgba(var(--ink), .4); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; padding-top: 2px; }
.p-side dd { margin: 0; text-align: right; color: rgba(var(--ink), .9); }
.p-side .links { display: grid; gap: 8px; }

/* comments */
.comments-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid rgba(var(--ink), .1); }
.comment { padding: 18px 0; border-bottom: 1px solid rgba(var(--ink), .08); }
.comment header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.comment .avatar { width: 30px; height: 30px; display: grid; place-items: center; font: 600 12px var(--mono); color: var(--bg); background: rgb(var(--ink)); }
.comment .name { font: 600 13px var(--mono); }
.comment .owner { font: 600 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--hi)); border: 1px solid rgba(var(--hi), .6); padding: 2px 7px; }
.comment time { margin-left: auto; font: 500 10px var(--mono); color: rgba(var(--ink), .35); }
.comment p { margin: 0 0 0 42px; color: rgba(var(--ink), .8); white-space: pre-wrap; overflow-wrap: anywhere; }
.comments-status { font: 500 11px var(--mono); letter-spacing: .08em; color: rgba(var(--ink), .45); margin: 0 0 16px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .45); }
.form input, .form textarea { width: 100%; padding: 13px 14px; background: var(--panel); border: 1px solid rgba(var(--ink), .14); color: rgb(var(--ink)); font: 15px var(--sans); transition: border-color .3s; border-radius: 0; }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: rgb(var(--hi)); }
.form [aria-invalid="true"], .form [aria-invalid="true"]:focus { border-color: rgb(var(--accent)); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form .hint { font: 500 10px var(--mono); color: rgba(var(--ink), .35); letter-spacing: .06em; }
.form .msg { font: 500 11px var(--mono); }
.form .msg.err { color: rgb(var(--accent)); }
.form .msg.ok { color: rgb(var(--hi)); }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.notfound { min-height: 80vh; display: grid; place-items: center; text-align: center; padding-top: var(--hud-h); }
.notfound h1 { font: 500 60px var(--display); margin: 0 0 10px; }

@media (max-width: 1100px) {
  .hud .stat:nth-child(n+3) { display: none; }
  .works-layout { grid-template-columns: 1fr; }
  .ring-wrap { position: relative; top: 0; max-width: 560px; margin: 0 auto; width: 100%; }
  .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-layout { grid-template-columns: 1fr; }
  .p-side .box { position: relative; top: 0; }
  .shop-row { grid-template-columns: 160px minmax(0, 1fr) auto; }
  .shop-row .n, .shop-row .price { display: none; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about .sig { max-width: 260px; }
}
@media (max-width: 680px) {
  .wrap, .p-layout { padding-left: 16px; padding-right: 16px; }
  .hud .stats { display: none; }
  .hud .brand { padding: 0 14px; flex: 1; min-width: 0; }
  .hud .brand b { overflow: hidden; text-overflow: ellipsis; }
  .hud .phases { overflow-x: auto; scrollbar-width: none; }
  .hud .phases::-webkit-scrollbar { display: none; }
  .swatch { width: 11px; height: 11px; }
  .hud .themes { margin-left: 0; padding: 0 12px; gap: 4px; flex: none; }
  .hud .phases { gap: 12px; }
  .list, .panels, .feats, .gallery { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 10px; }
  .sec-head .rule, .sec-head .side { display: none; }
  section { padding: 90px 0; }
  .readout.tr, .readout.tl { display: none; }
  .shop-row { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .shop-row .go { grid-column: 2; }
  .shop-row h3 { font-size: 24px; }
  .landing h1 { letter-spacing: .35em; text-indent: .35em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- loading screen (first page of a visit; see loader.js) ---------- */
.loader { display: none; }
.nx-loading, .nx-loading body { overflow: hidden; }
.nx-loading .loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; align-content: center; gap: 28px;
  background: radial-gradient(ellipse at 50% 46%, rgba(var(--hi), .11), transparent 52%), var(--bg);
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader > * { animation: fadein .5s .3s both; }               /* nothing appears if loading is instant */
.loader .ld-ring { position: relative; width: min(220px, 52vw); aspect-ratio: 1; transition: transform .9s var(--ease); }
.loader svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.loader circle { fill: none; transform-box: fill-box; transform-origin: center; }
.ld-track { stroke: rgba(var(--ink), .08); stroke-width: 1; }
.ld-ticks { stroke: rgba(var(--ink), .2); stroke-width: 5; stroke-dasharray: .7 5; animation: ldspin 18s linear infinite; }
.ld-sweep { stroke: rgba(var(--hi), .55); stroke-width: 1; stroke-dasharray: 46 576; stroke-linecap: round; animation: ldspin 2.6s linear infinite; }
.ld-arc { stroke: rgb(var(--hi)); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 578; stroke-dashoffset: 578; filter: drop-shadow(0 0 5px rgba(var(--hi), .9)); }
.loader img { position: absolute; inset: 21%; width: 58%; height: 58%; border-radius: 50%; object-fit: cover; mix-blend-mode: screen; animation: ldpulse 2.6s ease-in-out infinite; }
.ld-pct { font: 600 12px var(--mono); letter-spacing: .32em; text-indent: .32em; color: rgba(var(--ink), .45); }
.ld-pct b { color: rgb(var(--ink)); font-weight: 600; }
.loader.out { opacity: 0; visibility: hidden; }
.loader.out .ld-ring { transform: scale(1.35); }
@keyframes ldspin { to { transform: rotate(360deg); } }
@keyframes ldpulse { 50% { opacity: .7; filter: brightness(1.3); } }
@media (prefers-reduced-motion: reduce) { .ld-ticks, .ld-sweep, .loader img { animation: none; } .loader.out .ld-ring { transform: none; } }

/* ---------- character call (greeting.js) ---------- */
.call {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 250px;
  background: rgba(11, 9, 22, .94); border: 1px solid rgba(var(--ink), .14); backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.85), 0 0 60px -22px rgba(var(--hi), .5);
  opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease), width .6s var(--ease);
  pointer-events: none;
}
.call.in { opacity: 1; transform: none; pointer-events: auto; }
.call.ringing { animation: callBuzz 1.9s ease-in-out infinite; }
.call.live, .call.opened { width: 290px; }
.call .c-stage { position: relative; aspect-ratio: 480 / 520; max-height: calc(100vh - 190px); width: 100%; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 6px;
  border-top: 1px solid rgba(var(--ink), .1); background: radial-gradient(circle at 50% 45%, rgba(var(--hi), .22), transparent 60%), #0b0916; }
.call .c-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); animation: callScan 6s linear infinite; }
.call .c-stage .w { position: absolute; left: 50%; top: 45%; width: 60%; aspect-ratio: 1; border: 1px solid rgba(var(--hi), .7); border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3); opacity: 0; animation: callWave 2.4s ease-out infinite; }
.call .c-stage .w:nth-child(2) { animation-delay: .8s; } .call .c-stage .w:nth-child(3) { animation-delay: 1.6s; }
.call .c-big { position: relative; font: 600 46px/1 var(--display); letter-spacing: .3em; text-indent: .3em; color: rgb(var(--ink)); text-shadow: 0 0 24px rgba(var(--hi), .9); min-height: 1em; }
.call .c-calling { position: relative; font: 600 10px var(--mono); letter-spacing: .4em; text-indent: .4em; color: rgba(var(--ink), .55); min-height: 1.2em; animation: ldpulse 1.4s ease-in-out infinite; }
.call [hidden] { display: none !important; }
@keyframes callWave { 0% { transform: translate(-50%, -50%) scale(.3); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(1.7); opacity: 0; } }
@keyframes callScan { to { background-position: 0 60px; } }
.call .c-top { display: flex; align-items: center; gap: 9px; padding: 12px 14px 10px; font: 600 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(var(--ink), .5); }
.call .c-name { color: rgb(var(--ink)); font-weight: 700; font-size: 12px; letter-spacing: .28em; min-width: 3ch; }
.call .c-state { flex: 1; white-space: nowrap; overflow: hidden; }
.call .c-time { color: rgb(var(--hi)); }
.call .c-dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--hi)); box-shadow: 0 0 10px rgb(var(--hi)); animation: ldpulse 1.2s ease-in-out infinite; }
.call.ended .c-dot { background: rgba(var(--ink), .3); box-shadow: none; animation: none; }
.call .c-ring { display: flex; justify-content: center; gap: 7px; padding: 4px 0 14px; }
.call .c-ring i { width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--hi), .9); animation: callDots 1.2s ease-in-out infinite; }
.call .c-ring i:nth-child(2) { animation-delay: .15s; } .call .c-ring i:nth-child(3) { animation-delay: .3s; }
.call .c-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 14px 16px; }
.call.opened .c-actions { padding-top: 14px; border-top: 1px solid rgba(var(--ink), .1); }
.call .c-actions button { height: 46px; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .2s, filter .2s; }
.call .c-no { width: 46px; border-radius: 50%; }
.call .c-open, .call .c-yes { flex: 1; display: flex !important; justify-content: center; align-items: center; gap: 8px; border-radius: 23px; font: 700 11px var(--mono); letter-spacing: .26em; text-indent: .26em; color: #fff; }
.call .c-open[hidden], .call .c-yes[hidden] { display: none !important; }
.call .c-open { background: rgba(var(--hi), .16); border: 1px solid rgba(var(--hi), .7) !important; box-shadow: inset 0 0 18px -6px rgba(var(--hi), .9); }
.call .c-yes span { display: grid; }
.call .c-actions button:hover { transform: scale(1.08); filter: brightness(1.15); }
.call .c-actions svg { width: 20px; height: 20px; fill: #fff; }
.call .c-no { background: #b8384a; } .call .c-no svg { transform: rotate(135deg); }
.call .c-yes { background: #2fae7a; box-shadow: 0 0 0 0 rgba(47, 174, 122, .6); animation: callPulse 1.2s ease-out infinite; text-indent: 0; }
.call .c-yes svg { width: 17px; height: 17px; animation: callWiggle .6s ease-in-out infinite; }
.call .c-media { position: relative; aspect-ratio: 480 / 520; max-height: calc(100vh - 190px); width: 100%; background: #0b0916; border-top: 1px solid rgba(var(--ink), .1); }
.call .c-media video, .call .c-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.call .c-media video { object-fit: cover; transition: opacity 1.1s; }
.call .c-media canvas { transition: opacity 1s; pointer-events: none; }
.call .c-sub { min-height: 3.2em; margin: 0; padding: 10px 14px 13px; font: 500 13.5px/1.45 var(--sans); color: rgb(var(--ink)); opacity: .25; transition: opacity .3s; }
.call .c-sub.on { opacity: 1; }
.call.live .c-sub { min-height: 0; height: 77px; box-sizing: border-box; overflow: hidden; }   /* same height as the ringing buttons → no jump on answer */
.call .c-end { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: rgba(var(--ink), .55); font: 400 18px/1 var(--sans); cursor: pointer; }
.call .c-end:hover { color: #fff; }
.call.live .c-top { padding-right: 34px; }
@keyframes callDots { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(47, 174, 122, .6); } 100% { box-shadow: 0 0 0 14px rgba(47, 174, 122, 0); } }
@keyframes callWiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
/* hang-up: the picture glitches out */
.call.ended .c-media video { animation: callGlitch .9s steps(2, end) forwards; }
.call.ended .c-sub { opacity: .25; }
@keyframes callGlitch { 0% { filter: none; transform: none; } 20% { filter: hue-rotate(90deg) saturate(2); transform: translateX(-6px) skewX(4deg); } 40% { filter: contrast(2) brightness(1.6); transform: translateX(5px) scaleY(.96); clip-path: inset(30% 0 40% 0); } 60% { filter: hue-rotate(-60deg) brightness(.6); transform: translateX(-3px); clip-path: inset(0 0 70% 0); } 80% { filter: brightness(2.5); transform: scaleY(.04); clip-path: none; } 100% { opacity: 0; transform: scaleY(0); } }
@keyframes callBuzz { 0%, 18%, 100% { transform: none; } 3%, 9%, 15% { transform: translateX(-2px) rotate(-.4deg); } 6%, 12% { transform: translateX(2px) rotate(.4deg); } }
@media (max-width: 640px) { .call { width: 220px; right: 12px; bottom: 12px; } .call.live, .call.opened { width: 220px; } .call .c-big { font-size: 34px; } .call .c-sub { font-size: 12px; min-height: 3.6em; } }
@media (prefers-reduced-motion: reduce) { .call, .call.ringing { transition: none; animation: none; } .call .c-yes, .call .c-yes svg, .call .c-dot, .call .c-ring i, .call.ended .c-media video, .call .c-stage .w, .call .c-stage::after, .call .c-calling { animation: none; } }

/* Asset Store (coming soon) and the contact form */
.store-soon { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.notify { display: flex; gap: 8px; width: min(440px, 100%); }
.notify input { flex: 1; min-width: 0; padding: 12px 14px; background: var(--panel); border: 1px solid rgba(var(--ink), .14); color: rgb(var(--ink)); font: 14px var(--sans); border-radius: 0; }
.notify input:focus { outline: none; border-color: rgb(var(--hi)); }
.notify .btn { padding: 12px 18px; }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-note { font: 500 10px var(--mono); letter-spacing: .08em; color: rgba(var(--ink), .4); text-align: center; }
.notify-note a { color: rgba(var(--ink), .6); text-decoration: underline; }
.notify-note .msg.err { color: rgb(var(--accent)); }
.notify-note .msg.ok { color: rgb(var(--hi)); }
.store-soon .btn.off { opacity: .75; cursor: not-allowed; border-style: dashed; padding: 16px 30px; font-size: 12px; }
.store-soon .btn small { color: rgb(var(--hi)); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.store-soon .btn.off:hover { border-color: rgba(var(--ink), .2); background: none; }
.contact { max-width: 780px; }
.contact .row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .contact .row.two { grid-template-columns: 1fr; } }

/* Privacy page */
.legal-hero { padding: 170px 0 70px; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at 30% 40%, rgba(var(--hi), .16), transparent 60%); }
.legal-hero .wrap { position: relative; }
.legal-hero h1 { margin: 14px 0 0; font: 500 clamp(54px, 8vw, 112px)/.95 var(--display); letter-spacing: -.01em; }
.legal-hero h1 em { color: rgb(var(--hi)); }
.legal-lead { margin: 22px 0 0; max-width: 560px; font-size: 18px; color: rgba(var(--ink), .62); }
.legal-meta { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 26px; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .4); }
.legal-meta b { color: rgba(var(--ink), .85); font-weight: 600; margin-left: 6px; }
.glance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: rgba(var(--ink), .1); border: 1px solid rgba(var(--ink), .1); }
.glance > div { display: grid; gap: 6px; padding: 22px 20px; background: var(--bg); transition: background .4s; }
.glance > div:hover { background: rgba(var(--hi), .06); }
.glance i { font: 500 10px var(--mono); font-style: normal; color: rgb(var(--hi)); letter-spacing: .1em; }
.glance b { font: 500 24px/1.1 var(--display); }
.glance span { font-size: 13px; color: rgba(var(--ink), .55); }
.legal-body { padding-top: 40px; }
.legal-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 70px; align-items: start; }
.legal-toc { position: sticky; top: 110px; display: grid; gap: 2px; }
.legal-toc .label { margin-bottom: 12px; }
.legal-toc a { display: block; padding: 8px 0 8px 12px; border-left: 1px solid rgba(var(--ink), .12); font-size: 13px; color: rgba(var(--ink), .5); transition: color .3s, border-color .3s; }
.legal-toc a i { font: 500 10px/1.9 var(--mono); font-style: normal; color: rgba(var(--ink), .3); }
.legal-toc a:hover, .legal-toc a.on { color: rgb(var(--ink)); border-left-color: rgb(var(--hi)); }
.legal-toc a.on i { color: rgb(var(--hi)); }
.legal { max-width: 760px; }
.legal article { padding: 0 0 46px; margin-bottom: 46px; border-bottom: 1px solid rgba(var(--ink), .08); scroll-margin-top: 110px; }
.legal article:last-child { border-bottom: 0; }
.legal article header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.legal article header i { font: 500 11px var(--mono); font-style: normal; color: rgb(var(--hi)); }
.legal article h2 { margin: 0; font: 500 34px/1.1 var(--display); }
.legal p, .legal dd { color: rgba(var(--ink), .72); font-size: 16px; line-height: 1.75; margin: 0 0 14px; }
.legal .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.legal .cards > div { padding: 18px; border: 1px solid rgba(var(--ink), .12); background: rgba(var(--ink), .02);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.legal .cards b { display: block; margin-bottom: 8px; font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--hi)); }
.legal .cards p { font-size: 14px; line-height: 1.6; margin: 0; }
.legal .rows { display: grid; grid-template-columns: 190px 1fr; margin: 0; border-top: 1px solid rgba(var(--ink), .08); }
.legal .rows dt, .legal .rows dd { padding: 14px 0; border-bottom: 1px solid rgba(var(--ink), .08); margin: 0; }
.legal .rows dt { font: 600 10px/2.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .5); }
@media (max-width: 900px) {
  .glance { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .legal-toc { position: static; }
  .legal .cards { grid-template-columns: 1fr; }
  .legal .rows { grid-template-columns: 1fr; }
  .legal .rows dt { padding-bottom: 0; border-bottom: 0; }
}

/* Videos (home) */
.vids { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; }
.vid { margin: 0; }
.vid .video { border: 1px solid rgba(var(--ink), .12); }
.vid figcaption { margin-top: 14px; font: 500 20px/1.25 var(--display); color: rgba(var(--ink), .85); }

.shop-row .price .soon-p { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--hi)); }

.about .role { display: block; margin-bottom: 10px; color: rgb(var(--hi)); letter-spacing: .32em; }
.store-soon .notify-label { margin-top: 6px; }
.notify-note:empty, .notify-note .msg:empty { display: none; }

/* Privacy page: compact (27 Nov) */
.legal-hero { padding: 130px 0 26px; }
.legal-hero h1 { font-size: clamp(34px, 4.4vw, 52px); }
.legal-lead { margin-top: 12px; font-size: 14px; }
.legal-meta { margin-top: 14px; }
.legal-body { padding-top: 14px; }
.legal-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
.legal-toc a { padding: 5px 0 5px 12px; font-size: 12px; }
.legal { max-width: 680px; }
.legal article { padding: 0 0 22px; margin-bottom: 22px; }
.legal article header { margin-bottom: 8px; }
.legal article h2 { font-size: 21px; }
.legal p, .legal dd { font-size: 14px; line-height: 1.6; margin-bottom: 8px; }
.legal .cards { grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.legal .cards > div { padding: 12px 14px; }
.legal .cards p { font-size: 13px; line-height: 1.5; }
.legal .rows { grid-template-columns: 150px 1fr; }
.legal .rows dt, .legal .rows dd { padding: 9px 0; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; gap: 18px; } .legal .cards, .legal .rows { grid-template-columns: 1fr; } }

/* Sponsor card at the bottom of the project sidebar (27 Nov; shows only when a sponsor is set; each part optional) */
.p-side .sponsor { display: grid; gap: 12px; background: rgba(var(--ink), .02); }
.p-side .sponsor .sp-banner { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid rgba(var(--ink), .1); }
.p-side .sponsor .sp-mark { display: flex; align-items: center; min-height: 36px; }
.p-side .sponsor .sp-mark img { max-height: 36px; max-width: 70%; object-fit: contain; }
.p-side .sponsor .sp-mark b { font: 500 24px/1.1 var(--display); letter-spacing: .02em; color: rgb(var(--ink)); }
.p-side .sponsor p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(var(--ink), .62); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.p-side .sponsor .sp-code { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px dashed rgba(var(--hi), .55); background: rgba(var(--hi), .06); color: rgb(var(--ink)); cursor: pointer; text-align: left; transition: background .3s; }
.p-side .sponsor .sp-code:hover { background: rgba(var(--hi), .12); }
.p-side .sponsor .sp-code span, .p-side .sponsor .sp-code i { font: 600 9px var(--mono); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--ink), .5); }
.p-side .sponsor .sp-code b { font: 600 14px var(--mono); letter-spacing: .12em; color: rgb(var(--hi)); }
.p-side .sponsor .sp-code i { color: rgb(var(--hi)); }
.p-side .box.tall { position: relative; top: 0; }
.cf-check:not(:empty) { margin-top: 12px; }
