/* ============================================================
   TOMBLINE — public hub
   Dark. Underground. Gritty. Powerful.
   ============================================================ */

:root {
  --ink:      #0a0908;   /* warm near-black */
  --ink-2:    #100f0d;
  --ink-3:    #161412;
  --bone:     #e8e4d8;   /* aged bone white */
  --bone-dim: #a39d8f;
  --bone-mute:#6e695f;
  --blood:    #9d2222;   /* used sparingly */
  --line:     rgba(232,228,216,0.10);
  --line-2:   rgba(232,228,216,0.22);
  --font-slab: 'Bevan', 'Georgia', serif;
  --font-caps: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --t-fast: 160ms ease;
  --t-slow: 420ms cubic-bezier(.22,.9,.34,1);
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { background: var(--ink); }
body {
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--bone); color: var(--ink); }

/* scrollbar — keep it underground */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2a2722; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--bone-mute); }

/* ---------- overlays: grain + vignette ---------- */
.grain {
  position: fixed; inset: -100px;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0,0); } 25% { transform: translate(-26px,14px); }
  50% { transform: translate(18px,-22px); } 75% { transform: translate(-12px,-8px); }
  100% { transform: translate(0,0); }
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9989;
  background: radial-gradient(ellipse at 50% 42%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- intro stamp ---------- */
.intro {
  position: fixed; inset: 0;
  background: #050404;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: intro-out 0.45s ease 1.05s forwards;
}
.intro__stone {
  width: clamp(110px, 18vw, 200px);
  opacity: 0;
  animation: stamp 0.55s cubic-bezier(.18,1.4,.4,1) 0.15s forwards;
  filter: drop-shadow(0 0 40px rgba(232,228,216,0.12));
}
@keyframes stamp {
  0%   { opacity: 0; transform: scale(2.4); }
  60%  { opacity: 1; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro.is-skipped { display: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0;
  z-index: 100;
}
.annc {
  background: var(--bone);
  color: var(--ink);
  overflow: hidden;
  font-family: var(--font-caps);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.annc__track {
  display: flex; gap: 0;
  white-space: nowrap;
  padding: 7px 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.annc__track span { padding: 0 28px; }
.annc__track span::after { content: "✕"; margin-left: 56px; opacity: .45; font-size: 9px; vertical-align: 2px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  position: relative;
  border-bottom: 1px solid var(--line);
}
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would make
   it the containing block for the fixed mobile menu overlay */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10,9,8,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__stone { height: 34px; width: auto; transition: transform var(--t-fast); }
.nav__brand:hover .nav__stone { transform: translateY(-2px) rotate(-2deg); }
.nav__word { height: 22px; width: auto; opacity: 0.95; }
.nav__links {
  display: flex; align-items: center; gap: clamp(18px, 3vw, 38px);
  font-family: var(--font-caps);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding: 4px 0; color: var(--bone-dim); transition: color var(--t-fast); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px; background: var(--bone);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.28s ease;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__socials { display: inline-flex; gap: 14px; margin-left: 8px; }
.nav__socials a { opacity: 0.6; transition: opacity var(--t-fast), transform var(--t-fast); }
.nav__socials a:hover { opacity: 1; transform: translateY(-2px); }
.nav__socials svg { width: 17px; height: 17px; fill: var(--bone); display: block; }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__dust { position: absolute; inset: 0; z-index: 1; }
.hero__fog {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 90% 55% at 50% 110%, rgba(232,228,216,0.06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(232,228,216,0.04), transparent 65%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 3;
  text-align: center;
  padding: 48px var(--pad) 96px;
}
.hero__kicker {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  color: var(--bone-mute);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__logo {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(16px, 2.4vw, 26px);
  margin: 0 auto; will-change: transform;
}
.hero__logo img { filter: drop-shadow(0 26px 60px rgba(0,0,0,0.8)); }
.hero__logo-stone { width: clamp(110px, 14vw, 170px); }
.hero__logo-word { width: clamp(260px, 38vw, 480px); }
.hero__line {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(26px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  margin-top: 42px;
  color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.11' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f2eee2 0%, #cfcaba 55%, #8d877a 100%);
  background-blend-mode: multiply;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 24px rgba(0,0,0,0.4);
}
.hero__tag {
  margin-top: 22px;
  font-family: var(--font-caps);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--bone-dim);
  text-transform: uppercase;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; z-index: 3;
  transform: translateX(-50%);
}
.hero__scroll-line {
  display: block; width: 1px; height: 64px;
  background: linear-gradient(var(--bone-mute), transparent);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -30%;
  width: 100%; height: 30%;
  background: var(--bone);
  animation: drip 2.2s ease-in infinite;
}
@keyframes drip { 0% { top: -30%; } 70%, 100% { top: 110%; } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-2);
}
.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-slab);
  font-size: clamp(15px, 2vw, 21px);
  color: var(--bone-mute);
  padding: 14px 0;
  animation: marquee 40s linear infinite;
}
.marquee__track span { padding: 0 34px; }
.marquee__track span i { font-style: normal; opacity: 0.4; padding-left: 68px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- blocks ---------- */
.block { padding: clamp(72px, 11vw, 140px) var(--pad); position: relative; }
.block__head { margin-bottom: clamp(40px, 6vw, 72px); }
.block__kicker {
  font-family: var(--font-caps);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--bone-mute);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.block__kicker::before {
  content: ""; display: inline-block;
  width: 34px; height: 1px; background: var(--blood);
  vertical-align: middle; margin-right: 16px;
}
.block__title {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(40px, 7.5vw, 96px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ---------- project rows (the ledger) ---------- */
.rows { border-top: 1px solid var(--line); }
.srow {
  position: relative;
  display: grid;
  grid-template-columns: 52px 88px minmax(0, 1fr) auto;
  grid-template-areas: "idx media main side";
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(20px, 3vw, 30px) clamp(6px, 1.2vw, 16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast);
}
.srow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--blood);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.28s ease;
}
.srow:hover { background: var(--ink-2); }
.srow:hover::before { transform: scaleY(1); transform-origin: top; }
a.srow { cursor: pointer; }

.srow__idx {
  grid-area: idx;
  font-family: var(--font-caps);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--bone-mute);
}
.srow__media {
  grid-area: media;
  width: 88px; aspect-ratio: 1/1;
  background: var(--ink-3);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.srow__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.4s ease, transform 0.5s cubic-bezier(.22,.9,.34,1);
}
.srow:hover .srow__media img { filter: grayscale(0); transform: scale(1.06); }
.srow__media--mono::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/img/tombstone.png') center / 62% no-repeat;
  opacity: 0.06;
  transition: opacity var(--t-fast);
}
.srow:hover .srow__media--mono::before { opacity: 0.12; }
.srow__initial {
  font-family: var(--font-slab);
  font-size: 34px;
  color: var(--bone);
  opacity: 0.2;
  transition: opacity var(--t-fast);
}
.srow:hover .srow__initial { opacity: 0.4; }

.srow__main { grid-area: main; min-width: 0; }
.srow__tag {
  display: block;
  font-family: var(--font-caps);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--bone-mute);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.srow__title {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.02;
  color: var(--bone);
  transition: transform 0.28s ease;
}
.srow:hover .srow__title { transform: translateX(6px); }
.srow__desc {
  font-size: 13.5px;
  color: var(--bone-dim);
  line-height: 1.6;
  margin-top: 9px;
  max-width: 62ch;
}

.srow__side {
  grid-area: side;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  justify-self: end;
}
.srow__status {
  font-family: var(--font-caps);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 11px;
  white-space: nowrap;
}
.srow__status--live { background: var(--bone); color: var(--ink); }
.srow__status--soon {
  color: var(--bone-dim);
  border: 1px solid var(--line-2);
  animation: soon-pulse 2.6s ease-in-out infinite;
}
@keyframes soon-pulse {
  0%, 100% { border-color: var(--line-2); color: var(--bone-dim); }
  50% { border-color: rgba(232,228,216,0.5); color: var(--bone); }
}
.srow__go {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
  flex: 0 0 auto;
}
.srow__go svg { width: 16px; height: 16px; stroke: var(--bone); fill: none; stroke-width: 2; transition: stroke var(--t-fast), transform var(--t-fast); }
.srow:hover .srow__go { background: var(--bone); border-color: var(--bone); }
.srow:hover .srow__go svg { stroke: var(--ink); transform: translate(2px, -2px); }
.srow__dead {
  font-family: var(--font-caps);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--bone-mute);
  white-space: nowrap;
}
.srow__dead .dots::after {
  content: ""; display: inline-block;
  animation: ellipsis 1.8s steps(4) infinite;
}
@keyframes ellipsis { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ---------- the [REDACTED] row — a corrupted, classified file ----------
   Calm by default (faint chromatic edge, like a degraded signal). JS adds
   `.is-corrupting` in short random bursts for the violent glitch. Cleaner
   and more deliberate than a constantly-jittering CSS loop. */
.srow--glitch { isolation: isolate; }
.srow--glitch .srow__tag { color: var(--blood); }
.srow--glitch .srow__title {
  position: relative;
  color: var(--bone);
}
/* faint, constant chromatic ghosting — barely there until it corrupts */
.srow--glitch .srow__title::before,
.srow--glitch .srow__title::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%;
  pointer-events: none;
  opacity: 0.32;
  clip-path: inset(0 0 0 0);
}
.srow--glitch .srow__title::before { color: var(--blood); transform: translate(-1px, 0); z-index: -1; }
.srow--glitch .srow__title::after  { color: #4fd6c6; transform: translate(1px, 0);  z-index: -2; }

/* the corruption burst */
.srow--glitch.is-corrupting .srow__title { animation: glitch-jolt 0.18s steps(2) 1; }
.srow--glitch.is-corrupting .srow__title::before { animation: glitch-slice-a 0.18s steps(3) 1; opacity: 0.9; }
.srow--glitch.is-corrupting .srow__title::after  { animation: glitch-slice-b 0.18s steps(3) 1; opacity: 0.9; }
.srow--glitch.is-corrupting .srow__media img { animation: glitch-img 0.18s steps(2) 1; }
.srow--glitch.is-corrupting .srow__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(157,34,34,0.4), transparent 40%, rgba(79,214,198,0.4));
  mix-blend-mode: screen;
}
@keyframes glitch-jolt {
  0% { transform: translate(0,0); } 50% { transform: translate(-4px,1px) skewX(-3deg); }
  100% { transform: translate(3px,-1px); }
}
@keyframes glitch-slice-a {
  0% { transform: translate(-7px,-2px); clip-path: inset(8% 0 66% 0); }
  50% { transform: translate(6px,1px); clip-path: inset(46% 0 28% 0); }
  100% { transform: translate(-4px,2px); clip-path: inset(72% 0 4% 0); }
}
@keyframes glitch-slice-b {
  0% { transform: translate(7px,2px); clip-path: inset(62% 0 10% 0); }
  50% { transform: translate(-6px,-1px); clip-path: inset(20% 0 58% 0); }
  100% { transform: translate(4px,-2px); clip-path: inset(84% 0 2% 0); }
}
@keyframes glitch-img {
  0% { transform: translate(-4px,1px) scale(1.05); filter: grayscale(0) contrast(1.7) hue-rotate(-30deg); }
  100% { transform: translate(4px,-1px) scale(1.05); filter: grayscale(0.3) contrast(1.5) hue-rotate(25deg); }
}

/* static-noise media box */
.srow--glitch .srow__media { position: relative; overflow: hidden; }
.srow--glitch .srow__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)' opacity='0.5'/%3E%3C/svg%3E");
}
.srow--glitch .srow__media img { filter: grayscale(0.7) contrast(1.3) saturate(0.6); }

/* command fragment in the description reads like evidence */
.srow__cmd {
  font-family: 'Courier New', monospace;
  font-size: 12.5px;
  color: #79e6a3;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(121,230,163,0.25);
  padding: 2px 7px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* hover: it destabilizes — cracks creep in, the row wobbles faintly */
.srow--glitch::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='160' viewBox='0 0 420 160'%3E%3Cg stroke='%23e8e4d8' stroke-width='1' fill='none' opacity='0.5'%3E%3Cpath d='M30 160 L44 118 L36 96 L58 64 L50 38 L66 8'/%3E%3Cpath d='M44 118 L72 108 M58 64 L88 58'/%3E%3Cpath d='M390 0 L376 36 L388 60 L362 92 L372 124 L350 160'/%3E%3Cpath d='M376 36 L348 44 M362 92 L330 86'/%3E%3Cpath d='M180 160 L196 132 L188 112 L210 96'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.srow--glitch:hover::after { opacity: 0.45; }
.srow--glitch:hover { animation: glitch-wobble 0.5s linear infinite; }
@keyframes glitch-wobble {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-1.5px,0.5px); }
  50% { transform: translate(1.5px,-0.5px); }
  75% { transform: translate(-0.5px,1px); }
}

/* LOCKED state — tomb not installed yet. A dead end that resists. */
.srow--locked { cursor: not-allowed; }
.srow__lock {
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: border-color var(--t-fast);
}
.srow__lock svg { width: 17px; height: 17px; stroke: var(--bone-mute); fill: none; stroke-width: 1.6; transition: stroke var(--t-fast); }
.srow--locked:hover .srow__lock { border-color: var(--blood); }
.srow--locked:hover .srow__lock svg { stroke: var(--blood); }
.srow--locked.is-denied { animation: deny-shudder 0.5s steps(2) 1; }
@keyframes deny-shudder {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-6px,0); } 40% { transform: translate(5px,0); }
  60% { transform: translate(-4px,0); } 80% { transform: translate(3px,0); }
}
.srow__status--err {
  background: rgba(157,34,34,0.18);
  color: #e07a72;
  border: 1px solid rgba(157,34,34,0.5);
}

/* ---------- roster ---------- */
.block--roster { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}
.artist {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.artist:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,0.5); }
.artist__media {
  aspect-ratio: 4/4.6;
  background: var(--ink-3);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.artist__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: filter 0.5s ease, transform 0.7s cubic-bezier(.22,.9,.34,1);
}
.artist:hover .artist__media img { filter: grayscale(0.1) contrast(1.04); transform: scale(1.04); }
.artist__mono {
  font-family: var(--font-slab);
  font-size: 84px;
  color: var(--bone);
  opacity: 0.14;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.artist:hover .artist__mono { opacity: 0.3; transform: scale(1.05); }
.artist__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,4,4,0.92) 100%);
}
.artist__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  z-index: 2;
}
.artist__name {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  color: var(--bone);
}
.artist__tagline {
  font-size: 12.5px;
  color: var(--bone-dim);
  margin-top: 6px;
}
.artist__links { display: flex; gap: 12px; margin-top: 12px; }
.artist__links a { opacity: 0.55; transition: opacity var(--t-fast), transform var(--t-fast); }
.artist__links a:hover { opacity: 1; transform: translateY(-2px); }
.artist__links svg { width: 16px; height: 16px; fill: var(--bone); display: block; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(160px, 320px) 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: 1200px;
}
.about__mark img {
  width: 100%; max-width: 300px;
  opacity: 0.92;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.7));
}
.about__text {
  font-family: var(--font-caps);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 32px);
  line-height: 1.5;
  color: var(--bone);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  max-width: 26ch;
}
.about__sign {
  margin-top: 26px;
  font-family: var(--font-slab);
  color: var(--bone-mute);
  font-size: 15px;
  letter-spacing: 0.1em;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(72px, 10vw, 130px) var(--pad) 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(232,228,216,0.05), transparent 60%),
    var(--ink);
}
.foot__inner { text-align: center; padding-bottom: clamp(56px, 8vw, 100px); }
.foot__title {
  font-family: var(--font-slab);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 110px);
  line-height: 0.98;
  color: var(--bone);
}
.foot__mail {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--font-caps);
  font-size: clamp(14px, 2vw, 19px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.foot__mail:hover { color: var(--bone); border-color: var(--blood); }
.foot__socials { display: flex; justify-content: center; gap: 26px; margin-top: 38px; }
.foot__socials a { opacity: 0.55; transition: opacity var(--t-fast), transform var(--t-fast); }
.foot__socials a:hover { opacity: 1; transform: translateY(-3px); }
.foot__socials svg { width: 22px; height: 22px; fill: var(--bone); display: block; }
.foot__base {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 20px 0 26px;
}
.foot__stone {
  height: 30px; width: auto; cursor: pointer;
  transition: transform var(--t-fast);
  user-select: none;
  -webkit-user-drag: none;
  touch-action: manipulation;   /* rapid taps must not become double-tap zoom */
}
.foot__stone:hover { transform: translateY(-2px); }
.foot__stone:active { transform: scale(0.92); }
.foot__stone.is-knocked { animation: stone-knock 0.22s ease; }
@keyframes stone-knock {
  0% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-4px) rotate(-4deg) scale(1.06); }
  70% { transform: translateY(1px) rotate(2deg); }
  100% { transform: translateY(0) rotate(0); }
}
.foot__legal {
  font-family: var(--font-caps);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--bone-mute);
  text-transform: uppercase;
}
.foot__admin {
  font-family: var(--font-caps);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--bone-mute);
  opacity: 0.5;
  transition: opacity var(--t-fast), color var(--t-fast);
}
.foot__admin:hover { opacity: 1; color: var(--bone); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(5px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.9,.34,1), filter 0.7s ease;
  transition-delay: var(--rd, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; filter: none; }
/* once revealed, drop the transition so the scroll layer can drive transforms directly */
.reveal.reveal-done { transition: none; }

/* ---------- depth gauge ---------- */
.gauge {
  position: fixed;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; align-items: center;
  gap: 14px;
  pointer-events: none;
}
.gauge__track {
  display: block;
  width: 1px; height: 32vh;
  background: rgba(232,228,216,0.13);
  position: relative;
}
.gauge__fill {
  position: absolute; top: 0; left: -0.5px;
  width: 2px; height: 0%;
  background: var(--bone);
  opacity: 0.75;
}
.gauge__label {
  font-family: var(--font-caps);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-mute);
  writing-mode: vertical-rl;
  min-height: 76px;
  transition: color var(--t-fast);
}
.gauge__label.is-under { color: var(--blood); }
@media (max-width: 880px) { .gauge { display: none; } }

/* ---------- maintenance shroud ---------- */
.shroud {
  position: fixed; inset: 0; z-index: 9995;
  background: #050404;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; text-align: center; padding: 24px;
}
.shroud img { width: min(380px, 70vw); }
.shroud p {
  font-family: var(--font-caps);
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--bone-dim);
  text-transform: uppercase;
  font-size: clamp(12px, 2vw, 16px);
}

/* ---------- crypt easter egg: the descent ---------- */
.crypt {
  position: fixed; inset: 0; z-index: 9996;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
/* shaft walls close in while falling */
.crypt::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,2,2,0.9), transparent 16% 84%, rgba(3,2,2,0.9)),
    radial-gradient(ellipse 130% 90% at 50% 50%, transparent 28%, rgba(3,2,2,0.88) 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.crypt.is-shaft::after { opacity: 1; }
.crypt.is-landed { background: #050404; transition: background 0.45s ease; }
.crypt.is-closing { background: transparent; transition: background 0.9s ease; }
.crypt.is-closing::after { opacity: 0; }
.crypt.is-thudding { animation: quake 0.5s ease; }

.crypt__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

/* a thin shaft of light from the world above */
.crypt__beam {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(46vw, 540px); height: 80vh;
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(232,228,216,0.10), rgba(232,228,216,0.025) 55%, transparent 82%);
  filter: blur(9px);
  opacity: 0;
  transition: opacity 1.4s ease 0.45s;
  pointer-events: none;
  z-index: 1;
  animation: beam-breathe 8s ease-in-out infinite;
}
.crypt.is-landed .crypt__beam { opacity: 1; }
@keyframes beam-breathe {
  0%, 100% { filter: blur(9px); } 50% { filter: blur(12px) brightness(1.18); }
}

/* depth ticker while falling */
.crypt__depth {
  position: absolute; bottom: 7vh; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-caps);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.4em; text-indent: 0.4em;
  color: var(--bone-dim);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.crypt.is-shaft .crypt__depth { opacity: 0.85; }
.crypt.is-landed .crypt__depth { opacity: 0; }

/* the room you land in */
.crypt__room {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; text-align: center; padding: 24px;
}
.crypt__room > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.22,.9,.34,1);
}
.crypt.is-landed .crypt__room > * { opacity: 1; transform: none; }
.crypt.is-landed .crypt__room > :nth-child(1) { transition-delay: 0.30s; }
.crypt.is-landed .crypt__room > :nth-child(2) { transition-delay: 0.55s; }
.crypt.is-landed .crypt__room > :nth-child(3) { transition-delay: 0.85s; }
.crypt.is-landed .crypt__room > :nth-child(4) { transition-delay: 1.9s; }
.crypt.is-landed .crypt__room > .crypt__hint { opacity: 0.7; }
.crypt.is-closing .crypt__room > * { opacity: 0; transform: translateY(-26px); transition-delay: 0s; transition-duration: 0.35s; }

.crypt__stone {
  width: clamp(80px, 12vw, 120px);
  filter: drop-shadow(0 0 36px rgba(232,228,216,0.12));
}
.crypt__msg {
  font-family: var(--font-slab);
  font-size: clamp(24px, 5vw, 52px);
  color: var(--bone);
}
/* flicker only once we've landed — running it earlier overrides the
   hidden state's opacity and the line shows mid-fall */
.crypt.is-landed .crypt__msg { animation: crypt-flicker 3s linear infinite 1.4s; }
.crypt.is-closing .crypt__msg { animation: none; }
.crypt__sig {
  font-family: var(--font-caps);
  font-weight: 500;
  letter-spacing: 0.5em; text-indent: 0.5em;
  color: var(--blood);
  font-size: clamp(13px, 1.6vw, 16px);
  text-transform: uppercase;
}
.crypt__hint {
  margin-top: 26px;
  font-family: var(--font-caps);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.34em; text-indent: 0.34em;
  text-transform: uppercase;
  color: var(--bone-mute);
}
@keyframes crypt-flicker {
  0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0.4; }
  94% { opacity: 1; } 96% { opacity: 0.6; } 97% { opacity: 1; }
}

/* ---------- the old computer in the crypt ---------- */
.crypt__pc {
  position: absolute;
  right: clamp(20px, 9vw, 130px); bottom: clamp(28px, 7vh, 64px);
  z-index: 4;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  -webkit-tap-highlight-color: transparent;
}
.crypt.is-landed .crypt__pc.is-on { opacity: 1; transform: none; }
.crypt__pc-screen {
  width: 74px; height: 56px;
  background: #0c1f10;
  border: 6px solid #2a2722;
  border-radius: 4px;
  box-shadow: 0 0 26px rgba(85,255,140,0.25), inset 0 0 14px rgba(85,255,140,0.3);
  position: relative;
  overflow: hidden;
  animation: pc-flicker 4s linear infinite;
}
.crypt__pc-screen::before {
  content: ">_";
  position: absolute; left: 7px; top: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px; font-weight: 700;
  color: #6dff9e;
  text-shadow: 0 0 6px rgba(109,255,158,0.8);
  animation: pc-blink 1.1s steps(1) infinite;
}
.crypt__pc-screen::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.35) 0 1px, transparent 1px 3px);
}
.crypt__pc-base {
  width: 86px; height: 10px;
  background: #211e19;
  margin: 3px auto 0;
  border-radius: 2px;
}
.crypt__pc-label {
  margin-top: 8px;
  text-align: center;
  font-family: var(--font-caps);
  font-size: 8px; font-weight: 300;
  letter-spacing: 0.3em; text-indent: 0.3em;
  color: var(--bone-mute);
  text-transform: uppercase;
  opacity: 0.7;
}
.crypt__pc:hover .crypt__pc-screen { box-shadow: 0 0 38px rgba(85,255,140,0.45), inset 0 0 14px rgba(85,255,140,0.4); }
@keyframes pc-flicker {
  0%, 100% { filter: brightness(1); } 88% { filter: brightness(1); }
  89% { filter: brightness(0.55); } 90% { filter: brightness(1.15); }
  93% { filter: brightness(0.8); } 94% { filter: brightness(1); }
}
@keyframes pc-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ---------- the undercroft terminal ---------- */
.term {
  position: fixed; inset: 0; z-index: 9998;
  background: #020503;
  display: flex; align-items: center; justify-content: center;
  cursor: default;
}
.term__crt {
  position: relative;
  width: min(860px, 94vw); height: min(560px, 84vh);
  background: radial-gradient(ellipse 120% 110% at 50% 45%, #06180b 0%, #03100a 60%, #010803 100%);
  border: 1px solid rgba(109,255,158,0.18);
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(85,255,140,0.12), inset 0 0 80px rgba(0,0,0,0.7);
  overflow: hidden;
  padding: 26px 30px;
  animation: crt-on 0.5s cubic-bezier(.2,.9,.3,1);
}
@keyframes crt-on {
  0% { transform: scaleY(0.004) scaleX(0.6); filter: brightness(8); }
  55% { transform: scaleY(1.02) scaleX(1); filter: brightness(2); }
  100% { transform: none; filter: none; }
}
.term__crt::before {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.28) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.term__crt::after {
  content: ""; position: absolute; inset: 0; z-index: 6;
  background: radial-gradient(ellipse 95% 90% at 50% 50%, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.term__scan {
  position: absolute; left: 0; right: 0; height: 90px; z-index: 4;
  background: linear-gradient(180deg, transparent, rgba(109,255,158,0.05), transparent);
  animation: term-scan 5.5s linear infinite;
  pointer-events: none;
}
@keyframes term-scan { 0% { top: -90px; } 100% { top: 100%; } }
.term__out, .term__line {
  position: relative; z-index: 3;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: clamp(12px, 1.7vw, 15px);
  line-height: 1.5;
  color: #6dff9e;
  text-shadow: 0 0 7px rgba(109,255,158,0.55);
  word-break: break-word;
}
.term__out { white-space: pre-wrap; margin: 0; max-height: calc(100% - 40px); overflow-y: auto; scrollbar-width: none; }
.term__out::-webkit-scrollbar { display: none; }
.term__out .dim { color: #2f7c4b; text-shadow: none; }
.term__out .loud { color: #c8ffd9; text-shadow: 0 0 10px rgba(160,255,190,0.8); }
.term__out .err { color: #ff7a6d; text-shadow: 0 0 8px rgba(255,110,100,0.5); }
.term__line { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.term__prompt { color: #2f7c4b; white-space: nowrap; }
.term__caret {
  display: inline-block; width: 9px; height: 16px;
  background: #6dff9e;
  box-shadow: 0 0 8px rgba(109,255,158,0.8);
  animation: pc-blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}
.term__hidden-input {
  position: absolute; opacity: 0; left: -9999px; top: 0;
  width: 10px; height: 10px;
}
.term__off {
  position: absolute; top: 10px; right: 14px; z-index: 7;
  background: none; border: 1px solid rgba(109,255,158,0.25);
  color: #2f7c4b;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 3px 9px;
  cursor: pointer;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.term__off:hover { color: #6dff9e; border-color: #6dff9e; }

/* page motion during the sequence */
body.crypt-lock { overflow: hidden; }
body.is-rumbling .top, body.is-rumbling #main { animation: rumble 0.09s linear infinite; }
@keyframes rumble {
  0% { transform: translate(0,0); } 25% { transform: translate(-4px,3px); }
  50% { transform: translate(3px,-2px); } 75% { transform: translate(-3px,-3px); }
  100% { transform: translate(4px,2px); }
}
/* the world above tears upward AND recedes (scales down) as you fall away
   from it — hard gravity ease-in so it accelerates into the drop */
body.is-falling .top, body.is-falling #main {
  transform: translateY(-152vh) scale(0.9);
  transform-origin: 50% 0;
  transition: transform 1.9s cubic-bezier(.5,0,.82,.35);
}
body.is-rising .top, body.is-rising #main {
  transform: translateY(0) scale(1);
  transform-origin: 50% 0;
  transition: transform 1.25s cubic-bezier(.16,.7,.3,1);
}
@keyframes quake {
  0%, 100% { transform: translate(0,0); }
  20% { transform: translate(-9px, 5px); } 40% { transform: translate(8px, -6px); }
  60% { transform: translate(-5px, -4px); } 80% { transform: translate(4px, 6px); }
}

/* ---------- the whisper (type the month above ground) ---------- */
.whisper {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9994;
  background: rgba(5,4,4,0.94);
  border-bottom: 1px solid rgba(157,34,34,0.5);
  color: var(--blood);
  font-family: var(--font-caps);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.6em; text-indent: 0.6em;
  text-align: center;
  text-transform: uppercase;
  padding: 13px 16px;
  animation: whisper-in 0.5s ease, crypt-flicker 2.4s linear infinite;
  pointer-events: none;
}
.whisper.is-fading { opacity: 0; transition: opacity 0.9s ease; }
@keyframes whisper-in { from { transform: translateY(-100%); } }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
  .nav { padding: 12px 18px; }
  .nav__word { height: 17px; }
  .nav__stone { height: 28px; }
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
    z-index: 102;
  }
  .nav__burger span {
    width: 24px; height: 2px; background: var(--bone);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.is-open span:nth-child(2) { opacity: 0; }
  .nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0;
    background: #070605;
    flex-direction: column; justify-content: center;
    gap: 34px;
    font-size: 19px;
    letter-spacing: 0.4em;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 101;
  }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }
  .nav__socials { margin: 8px 0 0; gap: 26px; }
  .nav__socials svg { width: 22px; height: 22px; }
  .srow {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "media main" "side side";
    gap: 14px 16px;
    align-items: start;
  }
  .srow__idx { display: none; }
  .srow__media { width: 64px; }
  .srow__initial { font-size: 24px; }
  .srow__side { justify-self: start; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about__mark { display: flex; justify-content: center; }
  .about__text { margin: 0 auto; }
  .foot__base { flex-direction: column; gap: 14px; padding-bottom: 34px; }
  .hero { min-height: calc(100svh - 56px); }
  .hero__line { margin-top: 30px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .annc__track, .marquee__track, .srow__status--soon,
  .hero__scroll-line::after, .crypt__msg, .crypt__beam,
  .crypt__pc-screen, .crypt__pc-screen::before, .term__crt, .term__scan, .term__caret,
  .crypt.is-thudding, .srow__dead .dots::after, .whisper,
  .srow--glitch:hover, .srow--glitch.is-corrupting .srow__title,
  .srow--glitch.is-corrupting .srow__title::before,
  .srow--glitch.is-corrupting .srow__title::after,
  .srow--glitch.is-corrupting .srow__media img,
  .srow--locked.is-denied, .foot__stone.is-knocked,
  body.is-rumbling .top, body.is-rumbling #main { animation: none !important; }
  .term__caret { opacity: 1; }
  .crypt__pc-screen::before { opacity: 1; }
  .srow__dead .dots::after { content: '...'; }
  body.is-falling .top, body.is-falling #main,
  body.is-rising .top, body.is-rising #main { transform: none; transition: none; }
  .crypt__room > * { transition: opacity 0.3s ease; transform: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .intro { animation-delay: 0.1s; animation-duration: 0.2s; }
  .srow, .artist, .hero__logo { transition: none; }
}
