/* ==========================================================================
   Irithium Studios — "Ink & Bone"
   A dark editorial gallery. No frameworks, no webfonts, no external requests.
   ========================================================================== */

/* --- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --- tokens --------------------------------------------------------------- */
:root {
  /* surface */
  --ink:        #0a0a0c;
  --ink-raised: #101013;
  --ink-sunken: #060607;

  /* type */
  --bone:       #ece6dc;
  --bone-mid:   rgba(236, 230, 220, 0.66);
  --bone-dim:   rgba(236, 230, 220, 0.40);
  --bone-faint: rgba(236, 230, 220, 0.16);

  /* lines */
  --rule:       rgba(236, 230, 220, 0.11);
  --rule-soft:  rgba(236, 230, 220, 0.06);

  /* accent — overridden per set page */
  --accent:     #c9b896;

  /* families */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:  "SF Mono", "Cascadia Mono", "Consolas", ui-monospace, monospace;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 64px);
  --measure: 1360px;
  --section: clamp(72px, 11vh, 148px);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --slow: 900ms;
}

/* --- base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; }

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

body.is-locked { overflow: hidden; }

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

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

/* film grain — one static SVG, no requests, no animation cost */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.no-grain::after { display: none; }

/* --- typography ----------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.022em;
}

.d-xl { font-size: clamp(3.2rem, 11vw, 9.5rem); }
.d-lg { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.d-md { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.d-sm { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  font-weight: 500;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--bone-mid);
  max-width: 34ch;
}

.body-copy { color: var(--bone-mid); max-width: 62ch; }
.body-copy p + p { margin-top: 1.1em; }

.num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
}

/* --- layout --------------------------------------------------------------- */
.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }

.rule { height: 1px; background: var(--rule); border: 0; }

/* --- header --------------------------------------------------------------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding-block: 20px;
  transition: background var(--slow) var(--ease), backdrop-filter var(--slow) var(--ease), padding 400ms var(--ease);
}
/* Heroes run bright (hazard yellow, blown-out shrines). Without a scrim the
   nav disappears into them at the top of the page. */
.site-head::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto 0;
  height: 150px;
  background: linear-gradient(rgba(10,10,12,0.78), rgba(10,10,12,0.32) 48%, transparent);
  pointer-events: none;
  transition: opacity 600ms var(--ease);
}
.site-head.is-stuck::before { opacity: 0; }
.site-head.is-stuck {
  padding-block: 13px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--rule-soft);
}
.site-head__in {
  position: relative;
  z-index: 1;
  max-width: 1680px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.brand__mark {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-2px);
  transition: transform 500ms var(--ease);
}
.brand:hover .brand__mark { transform: translateY(-2px) scale(1.7); }
.brand__sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-mid);
  position: relative;
  padding-block: 4px;
  transition: color 300ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav .btn-pill { color: var(--ink); }
.nav .btn-pill::after { display: none; }

.btn-pill {
  background: var(--bone);
  color: var(--ink);
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background 300ms var(--ease), transform 300ms var(--ease);
}
.btn-pill:hover { background: var(--accent); transform: translateY(-1px); }

.nav__hide-sm { display: inline-flex; }
@media (max-width: 720px) { .nav__hide-sm { display: none; } }
@media (max-width: 520px) {
  .brand { font-size: 1.02rem; }
  .brand__sub { display: none; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.66rem; letter-spacing: 0.1em; }
  .btn-pill { padding: 7px 13px; font-size: 0.62rem; letter-spacing: 0.1em; }
  .eyebrow { letter-spacing: 0.16em; }
}

/* --- hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bed { position: absolute; inset: 0; z-index: 0; }
.hero__bed img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1400ms var(--ease), transform 2600ms var(--ease);
}
.hero__bed img.is-in { opacity: 0.92; transform: scale(1); }
.hero__bed::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 1%, rgba(10,10,12,0.72) 26%, rgba(10,10,12,0.10) 62%, transparent 88%),
    linear-gradient(to right, rgba(10,10,12,0.86) 4%, rgba(10,10,12,0.30) 40%, transparent 68%);
}
.hero__in {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(48px, 9vh, 104px);
  padding-top: 140px;
}
.hero__title { margin-block: 0.14em 0.3em; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero__meta {
  display: flex;
  gap: clamp(20px, 3vw, 44px);
  align-items: flex-end;
  flex-wrap: wrap;
}
.stat__n {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  display: block;
}
.stat__l {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 7px;
  display: block;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; right: var(--gutter);
  z-index: 2;
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: flex;
  align-items: center;
  gap: 12px;
}
.scroll-hint::after {
  content: "";
  width: 1px; height: 46px;
  background: linear-gradient(var(--bone-faint), transparent);
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (max-width: 720px) { .scroll-hint { display: none; } }

/* --- section head --------------------------------------------------------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(34px, 5vw, 62px);
  flex-wrap: wrap;
}
.sec-head__link {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: color 300ms var(--ease);
}
.sec-head__link:hover { color: var(--accent); }

/* --- featured (editorial alternating) ------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 46px);
  /* end, not center: a 4:5 plate is tall, and centring the text against it
     leaves several hundred pixels of void top and bottom. */
  align-items: end;
  margin-bottom: clamp(72px, 11vw, 150px);
}
.feature:last-child { margin-bottom: 0; }
.feature__art { grid-column: 1 / span 7; }
.feature__txt { grid-column: 9 / span 4; }
.feature--flip .feature__art { grid-column: 6 / span 7; grid-row: 1; }
.feature--flip .feature__txt { grid-column: 1 / span 4; grid-row: 1; }

.feature__art a {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--ink-raised);
}
.feature__art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 1500ms var(--ease), filter 900ms var(--ease);
  filter: saturate(0.9);
}
.feature__art a:hover img { transform: scale(1.035); filter: saturate(1.05); }
.feature__art a::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--rule-soft);
  pointer-events: none;
}

.feature__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.feature__strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  opacity: 0.74;
  transition: opacity 600ms var(--ease);
}
.feature__art a:hover ~ .feature__strip img,
.feature__strip:hover img { opacity: 0.85; }

.feature__idx {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.feature__idx::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

.feature__title { margin-bottom: 0.42em; }
.feature__title a { transition: color 320ms var(--ease); }
.feature__title a:hover { color: var(--accent); }

.feature__blurb { color: var(--bone-mid); font-size: 1rem; line-height: 1.65; margin-bottom: 22px; }
.feature__note { color: var(--bone-dim); font-size: 0.85rem; line-height: 1.6; margin-bottom: 22px; }

.taglist { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.tag {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--rule);
  padding: 4px 10px;
  border-radius: 999px;
  background: none;
  cursor: default;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
a.tag, button.tag { cursor: pointer; }
a.tag:hover, button.tag:hover { color: var(--bone); border-color: var(--bone-faint); }
button.tag.is-on { color: var(--ink); background: var(--bone); border-color: var(--bone); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--bone-faint);
  padding-bottom: 6px;
  transition: color 300ms var(--ease), border-color 300ms var(--ease), gap 300ms var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 16px; }

@media (max-width: 900px) {
  .feature__art, .feature--flip .feature__art { grid-column: 1 / -1; grid-row: auto; }
  .feature__txt, .feature--flip .feature__txt { grid-column: 1 / -1; grid-row: auto; }
  .feature__strip { margin-bottom: 8px; }
}

/* --- index rows (archive / latest) ---------------------------------------- */
.idx { border-top: 1px solid var(--rule); }
.idx__row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(0, 1.15fr) 130px 116px;
  gap: 20px;
  align-items: center;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 400ms var(--ease), padding-inline 400ms var(--ease);
}
.idx__row:hover { background: rgba(236,230,220,0.028); padding-inline: 14px; }
.idx__title { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.15; }
.idx__blurb { color: var(--bone-dim); font-size: 0.83rem; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idx__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.idx__tags span { font-size: 0.58rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--bone-dim); }
.idx__meta { text-align: right; }

/* month divider inside the streaming archive */
.mon-head {
  display: flex; align-items: center; gap: 16px;
  padding: 34px 0 12px;
}
.mon-head::after { content: ""; flex: 1; height: 1px; background: var(--rule-soft); }
.idx .mon-head:first-child { padding-top: 0; }

/* floating hover preview */
.peek {
  position: fixed;
  z-index: 800;
  width: 190px;
  aspect-ratio: 4/5;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.94) rotate(-2deg);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}
.peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px), (pointer: coarse) { .peek { display: none; } }

@media (max-width: 860px) {
  .idx__row { grid-template-columns: 40px 1fr auto; row-gap: 6px; }
  .idx__blurb, .idx__tags { display: none; }
}

/* --- tier ladder ---------------------------------------------------------- */
.ladder { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.ladder__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 1.5fr;
  gap: clamp(14px, 2.4vw, 34px);
  align-items: center;
  background: var(--ink);
  padding: clamp(16px, 2.4vw, 26px) clamp(16px, 2.6vw, 30px);
  transition: background 420ms var(--ease);
}
.ladder__row:hover { background: var(--ink-raised); }
.ladder__row--here { background: var(--ink-raised); box-shadow: inset 3px 0 0 var(--accent); }
.ladder__n { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1; }
.ladder__lab { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.ladder__where { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); margin-top: 6px; }
.ladder__note { color: var(--bone-dim); font-size: 0.86rem; }
.ladder__row--here .ladder__note { color: var(--bone-mid); }
.ladder__bar { height: 2px; background: var(--bone-faint); margin-top: 12px; }
.ladder__bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }
@media (max-width: 760px) {
  .ladder__row { grid-template-columns: 64px 1fr; }
  .ladder__note { grid-column: 1 / -1; }
}

/* --- set page ------------------------------------------------------------- */
.set-hero { position: relative; height: min(88svh, 900px); overflow: hidden; display: flex; align-items: flex-end; }
.set-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0.95; }
.set-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--ink) 1%, rgba(10,10,12,0.78) 30%, rgba(10,10,12,0.14) 66%, transparent 90%),
    linear-gradient(to right, rgba(10,10,12,0.8) 2%, rgba(10,10,12,0.2) 42%, transparent 70%);
}
.set-hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(34px, 6vh, 70px); padding-top: 150px; }

.metabar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.metabar__group { display: flex; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; align-items: center; }
.meta-item__l { font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim); }
.meta-item__v { font-size: 0.86rem; margin-top: 4px; }

/* staggered gallery */
.gal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.6vw, 46px);
}
.gal__fig { position: relative; margin: 0; }
.gal__fig:nth-child(even) { transform: translateY(clamp(24px, 6vw, 86px)); }
.gal__fig button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--ink-raised);
  cursor: zoom-in; position: relative; overflow: hidden;
}
.gal__fig img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 1400ms var(--ease), filter 700ms var(--ease);
  filter: saturate(0.92);
}
.gal__fig button:hover img { transform: scale(1.03); filter: saturate(1.04); }
.gal__fig figcaption {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 11px; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim);
}
@media (max-width: 620px) {
  .gal { grid-template-columns: 1fr; }
  .gal__fig:nth-child(even) { transform: none; }
}

/* --- lightbox ------------------------------------------------------------- */
.lb {
  position: fixed; inset: 0; z-index: 9500;
  background: rgba(6, 6, 7, 0.965);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 380ms var(--ease), visibility 380ms;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: clamp(48px, 7vh, 84px) clamp(16px, 7vw, 110px); }
.lb__img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 520ms var(--ease), opacity 380ms var(--ease);
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.lb.is-open .lb__img { transform: scale(1); opacity: 1; }
.lb__bar {
  position: absolute; inset: auto 0 0 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}
.lb__top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); }
.lb__btn {
  background: none; border: 1px solid var(--rule); color: var(--bone-mid);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  transition: border-color 300ms var(--ease), color 300ms var(--ease), background 300ms var(--ease);
}
.lb__btn:hover { color: var(--ink); background: var(--bone); border-color: var(--bone); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: clamp(8px, 2vw, 26px); }
.lb__nav--next { right: clamp(8px, 2vw, 26px); }

/* --- newsletter ----------------------------------------------------------- */
.signup {
  border: 1px solid var(--rule);
  padding: clamp(30px, 5vw, 66px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 4vw, 62px);
  align-items: center;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(201,184,150,0.07), transparent 58%),
    var(--ink-sunken);
}
.form-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.form-row input {
  flex: 1 1 220px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--bone-faint);
  padding: 12px 2px;
  font-size: 0.95rem;
  transition: border-color 320ms var(--ease);
}
.form-row input::placeholder { color: var(--bone-dim); }
.form-row input:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 0.68rem; color: var(--bone-dim); margin-top: 14px; line-height: 1.6; }
.form-ok { color: var(--accent); font-size: 0.86rem; margin-top: 18px; display: none; }
.signup.is-done .form-row { display: none; }
.signup.is-done .form-ok { display: block; }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; } }

/* --- patreon panel -------------------------------------------------------- */
.gate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  padding: clamp(30px, 5vw, 62px);
  background: var(--ink-sunken);
}
.gate__glow {
  position: absolute; inset: auto -10% -60% -10%; height: 260px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}
.gate__in { position: relative; z-index: 1; }
.btn-solid {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent); color: var(--ink);
  padding: 14px 26px; border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700;
  border: 0; cursor: pointer;
  transition: transform 320ms var(--ease), filter 320ms var(--ease), gap 320ms var(--ease);
}
.btn-solid:hover { transform: translateY(-2px); filter: brightness(1.1); gap: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  background: none; cursor: pointer;
  border: 1px solid var(--rule); color: var(--bone-mid);
  padding: 13px 25px; border-radius: 999px;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  transition: border-color 320ms var(--ease), color 320ms var(--ease);
}
.btn-ghost:hover { border-color: var(--bone-faint); color: var(--bone); }

/* --- footer --------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: clamp(48px, 7vw, 90px) 34px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(38px, 5vw, 62px);
}
.foot-grid h4 { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-dim); font-weight: 500; margin-bottom: 16px; }
.foot-grid li + li { margin-top: 9px; }
.foot-grid a { font-size: 0.86rem; color: var(--bone-mid); transition: color 300ms var(--ease); }
.foot-grid a:hover { color: var(--accent); }
.foot-base {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--rule-soft);
  font-size: 0.68rem; color: var(--bone-dim);
}
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* --- age gate ------------------------------------------------------------- */
.agegate {
  position: fixed; inset: 0; z-index: 9700;
  background: var(--ink-sunken);
  display: grid; place-items: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 500ms var(--ease), visibility 500ms;
}
.agegate.is-open { opacity: 1; visibility: visible; }
.agegate__card { max-width: 480px; text-align: center; }
.agegate__row { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* --- dev panel (localhost only) ------------------------------------------- */
.dev {
  position: fixed; right: 16px; bottom: 16px; z-index: 9900;
  font-family: var(--mono); font-size: 11px;
  background: rgba(16,16,19,0.94);
  border: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  overflow: hidden;
  max-width: 280px;
}
.dev__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; cursor: pointer; user-select: none;
  border-bottom: 1px solid transparent;
}
.dev.is-open .dev__head { border-bottom-color: var(--rule); }
.dev__dot { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 8px #6ee7a8; }
.dev__body { display: none; padding: 12px; }
.dev.is-open .dev__body { display: block; }
.dev__body p { color: var(--bone-dim); margin-bottom: 10px; line-height: 1.5; }
.dev__body label { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; color: var(--bone-mid); }
.dev__body button {
  width: 100%; margin-top: 10px; background: none; border: 1px solid var(--rule);
  color: var(--bone-mid); padding: 7px; border-radius: 5px; cursor: pointer; font-family: var(--mono); font-size: 11px;
}
.dev__body button:hover { color: var(--bone); border-color: var(--bone-faint); }
@media (max-width: 720px) { .dev { display: none; } }

/* --- reveal on scroll ----------------------------------------------------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* --- image fade-in -------------------------------------------------------- */
.ld { opacity: 0; transition: opacity 850ms var(--ease); }
.ld.is-loaded { opacity: 1; }

/* --- misc ----------------------------------------------------------------- */
.center-narrow { max-width: 720px; margin-inline: auto; }
.pagehead { padding-top: 168px; padding-bottom: clamp(30px, 5vw, 56px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--bone); color: var(--ink); padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; padding: 22px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--serif); font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  transition: color 300ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bone-dim); font-family: var(--sans); font-size: 1.2rem; transition: transform 400ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq p { color: var(--bone-mid); font-size: 0.92rem; padding-bottom: 24px; max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
  .gal__fig:nth-child(even) { transform: none; }
}
