/* $DOOM — original site
   Original visual system. Placeholders mark where official $DOOM artwork
   (CC-licensed) should be dropped in. */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --fg: #ededed;
  --fg-dim: #8a8a8a;
  --fg-faint: #444;
  --accent: #ff1f1f;
  --accent-dim: #6e0a0a;
  --line: #222;
  --glitch-strength: 1;
  --grain: 0.08;
  --serif: "Newsreader", "Times New Roman", serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
  cursor: none;
}

/* custom cursor */
.cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 24px;
  height: 24px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .15s, height .15s, background .15s;
}
.cursor.hover {
  width: 56px;
  height: 56px;
  background: var(--accent);
}
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* scanlines + grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 255, 255, 0.025) 2px,
    rgba(255, 255, 255, 0.025) 3px
  );
  mix-blend-mode: overlay;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 101;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: var(--grain);
  mix-blend-mode: overlay;
}

/* nav */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), rgba(10,10,10,0));
  pointer-events: none;
}
nav.top > * { pointer-events: auto; }
nav.top .brand { font-weight: 700; color: var(--fg); }
nav.top .brand .blink { color: var(--accent); animation: blink 1.1s steps(2) infinite; }
nav.top ul { display: flex; gap: 28px; list-style: none; }
nav.top a { color: var(--fg-dim); text-decoration: none; transition: color .15s; }
nav.top a:hover { color: var(--accent); }
nav.top .status {
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-dim);
}
nav.top .status .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ticker */
.ticker {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  color: var(--fg-dim);
}
.ticker .track {
  display: inline-block;
  animation: ticker 60s linear infinite;
  padding-left: 100%;
}
.ticker .track span { margin-right: 48px; }
.ticker .track .red { color: var(--accent); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* hero */
section.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 100px 28px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero .lead {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  margin-bottom: 32px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero .lead span::before {
  content: "/ ";
  color: var(--accent);
}
.hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(80px, 20vw, 320px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  position: relative;
  color: #d8d8d8;
}
.hero h1 .glitch {
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.hero h1 .glitch > .doom-text {
  display: inline-block;
  position: relative;
  z-index: 1;
  animation: doomFlicker 2.5s infinite steps(1);
}
.hero h1 .glitch .glitch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
  will-change: transform, clip-path, opacity;
  background: var(--bg);
  mix-blend-mode: normal;
}
.hero h1 .glitch .glitch-layer::before {
  content: attr(data-text);
  display: block;
}

/* scanlines overlay locked to the DOOM box */
.hero h1 .glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.35) 3px,
    rgba(0,0,0,0.35) 4px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 4;
}

/* very subtle base flicker on the main letters */
@keyframes doomFlicker {
  0%, 100%, 30%, 60% { opacity: 1; filter: none; }
  31% { opacity: 0.85; filter: brightness(0.7); }
  31.4% { opacity: 1; filter: none; }
  61% { opacity: 0.92; }
  61.3% { opacity: 1; }
}

/* tear 1 — frequent chunky tear */
@keyframes tear1 {
  0%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  20% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  22% { clip-path: inset(18% 0 50% 0); transform: translate(calc(-28px * var(--glitch-strength)), 0); }
  26% { clip-path: inset(60% 0 18% 0); transform: translate(calc(36px * var(--glitch-strength)), 0); }
  30% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  55% { clip-path: inset(100% 0 0 0); }
  57% { clip-path: inset(8% 0 70% 0); transform: translate(calc(-44px * var(--glitch-strength)), 0); }
  60% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
}

/* tear 2 — big mid-band shift */
@keyframes tear2 {
  0%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  15% { clip-path: inset(100% 0 0 0); }
  17% { clip-path: inset(40% 0 38% 0); transform: translate(calc(-60px * var(--glitch-strength)), 0); }
  21% { clip-path: inset(40% 0 38% 0); transform: translate(calc(70px * var(--glitch-strength)), calc(-2px * var(--glitch-strength))); }
  25% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  68% { clip-path: inset(100% 0 0 0); }
  70% { clip-path: inset(25% 0 55% 0); transform: translate(calc(-50px * var(--glitch-strength)), 0); }
  73% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
}

/* tear 3 — big sweep across full height */
@keyframes tear3 {
  0%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  35% { clip-path: inset(100% 0 0 0); }
  37% { clip-path: inset(0 0 75% 0); transform: translate(calc(-40px * var(--glitch-strength)), 0); }
  40% { clip-path: inset(25% 0 50% 0); transform: translate(calc(80px * var(--glitch-strength)), 0); }
  43% { clip-path: inset(50% 0 25% 0); transform: translate(calc(-90px * var(--glitch-strength)), 0); }
  46% { clip-path: inset(75% 0 0 0); transform: translate(calc(50px * var(--glitch-strength)), 0); }
  49% { clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
}

/* red flash — bigger, hits twice per cycle */
@keyframes tearRed {
  0%, 100% { opacity: 0; clip-path: inset(100% 0 0 0); }
  30% { opacity: 0; clip-path: inset(100% 0 0 0); }
  31% { opacity: 1; clip-path: inset(35% 0 40% 0); transform: translate(calc(-20px * var(--glitch-strength)), 0); }
  33% { opacity: 1; clip-path: inset(35% 0 40% 0); transform: translate(calc(15px * var(--glitch-strength)), 0); }
  34% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translate(0, 0); }
  75% { opacity: 0; clip-path: inset(100% 0 0 0); }
  76% { opacity: 1; clip-path: inset(10% 0 70% 0); transform: translate(0, 0); }
  77% { opacity: 0; clip-path: inset(100% 0 0 0); }
}

.hero .footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero .footer .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  line-height: 1.4;
  max-width: 36ch;
}
.hero .footer .meta dt { color: var(--fg-faint); margin-bottom: 4px; font-size: 10px; }
.hero .footer .meta dd { color: var(--fg); margin-bottom: 14px; }

/* generic section */
section {
  padding: 120px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
section .label {
  position: absolute;
  top: 28px; left: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
section .label::before { content: "§ "; color: var(--accent); }
section .label .num {
  color: var(--fg-dim);
  margin-right: 12px;
}
section h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  max-width: 14ch;
}
section h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* lore section */
.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.lore-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--fg);
  max-width: 56ch;
}
.lore-text p.serif {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
  font-style: italic;
  color: var(--fg);
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
}
.lore-timeline {
  font-family: var(--mono);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.lore-timeline .row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.lore-timeline .row.now {
  background: linear-gradient(90deg, rgba(255,31,31,0.06), transparent);
}
.lore-timeline .yr { color: var(--accent); }
.lore-timeline .ev { color: var(--fg); text-transform: uppercase; letter-spacing: 0.1em; }
.lore-timeline .tag { color: var(--fg-dim); }

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  cursor: none;
  transition: transform .3s;
}
.gallery-item:hover { transform: scale(0.98); }
.gallery-item:hover .gi-overlay { opacity: 1; }
.gallery-item.s1 { grid-column: span 5; aspect-ratio: 1/1; }
.gallery-item.s2 { grid-column: span 7; aspect-ratio: 8/5; }
.gallery-item.s3 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item.s4 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item.s5 { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item.s6 { grid-column: span 8; aspect-ratio: 8/5; }
.gallery-item.s7 { grid-column: span 4; aspect-ratio: 4/5; }

.gi-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0a0a;
  display: block;
  filter: contrast(1.05) saturate(0.95);
}
.gallery-item.fit-cover .gi-img { object-fit: cover; }

.gi-corner {
  position: absolute;
  z-index: 4;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,0,0,0.9), 0 1px 0 rgba(0,0,0,0.6);
  padding: 6px 8px;
  pointer-events: none;
}
.gi-corner.tl { top: 0; left: 0; }
.gi-corner.tr { top: 0; right: 0; }
.gi-corner.bl { bottom: 0; left: 0; }
.gi-corner.br { bottom: 0; right: 0; color: var(--accent); }

.placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    repeating-linear-gradient(45deg,
      #1a1a1a 0, #1a1a1a 8px,
      #141414 8px, #141414 16px);
  color: var(--fg-faint);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 16px;
}
.placeholder .corner {
  position: absolute;
  font-size: 9px;
  color: var(--fg-faint);
}
.placeholder .corner.tl { top: 8px; left: 8px; }
.placeholder .corner.tr { top: 8px; right: 8px; }
.placeholder .corner.bl { bottom: 8px; left: 8px; }
.placeholder .corner.br { bottom: 8px; right: 8px; color: var(--accent); }
.placeholder .frame {
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--fg-faint);
  opacity: 0.4;
}
.placeholder .label-txt {
  position: relative;
  z-index: 2;
  color: var(--fg-dim);
}
.placeholder .label-txt .small { display: block; font-size: 9px; color: var(--fg-faint); margin-top: 6px; }

.gi-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
}
.gi-overlay .title { color: var(--fg); margin-bottom: 4px; }
.gi-overlay .meta { color: var(--accent); }

/* tokenomics */
.tok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.tok-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tok-stat {
  background: var(--bg);
  padding: 28px;
}
.tok-stat .k {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.tok-stat .v {
  font-family: var(--sans);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tok-stat .v.red { color: var(--accent); }
.tok-stat .sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  margin-top: 8px;
}

.tok-bar {
  margin-top: 0;
}
.tok-bar h3 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.bar {
  display: flex;
  height: 64px;
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.bar .seg {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-right: 1px solid var(--line);
}
.bar .seg:last-child { border-right: none; }
.bar .seg.s1 { background: var(--accent); color: #000; }
.bar .seg.s2 { background: #2a2a2a; }
.bar .seg.s3 { background: #1a1a1a; }
.bar .seg.s4 { background: #131313; }

.tok-legend {
  font-family: var(--mono);
  font-size: 12px;
}
.tok-legend .row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tok-legend .row .name { color: var(--fg); text-transform: uppercase; letter-spacing: 0.1em; }
.tok-legend .row .name::before {
  content: "■";
  margin-right: 10px;
  color: var(--c, var(--fg-dim));
}
.tok-legend .row .pct { color: var(--fg-dim); }

.contract {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.contract .k { color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; }
.contract .addr { color: var(--accent); word-break: break-all; }
.contract button {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: none;
  transition: all .15s;
}
.contract button:hover { background: var(--accent); color: #000; }

/* community */
.comm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.comm-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--mono);
  position: relative;
  transition: all .2s;
  display: block;
}
.comm-card:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.comm-card:hover .arrow { transform: translate(4px, -4px); }
.comm-card .name {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.comm-card .desc {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: inherit;
  opacity: 0.6;
  margin-bottom: 32px;
}
.comm-card .arrow {
  display: inline-block;
  font-size: 20px;
  transition: transform .2s;
}

/* faq */
.faq {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  cursor: none;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.2em;
  margin-right: 24px;
  align-self: flex-start;
  margin-top: 8px;
}
.faq-item summary .q-text { flex: 1; padding-right: 24px; }
.faq-item summary .toggle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
}
.faq-item[open] summary .toggle::before { content: "−"; }
.faq-item:not([open]) summary .toggle::before { content: "+"; }
.faq-item .a {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin-top: 20px;
  padding-left: 80px;
  max-width: 65ch;
}

/* footer */
footer.bottom {
  padding: 80px 28px 32px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  border-top: 1px solid var(--line);
}
footer.bottom .links-col {
  text-align: right;
  justify-self: end;
  min-width: 240px;
}
footer.bottom .links-col h4 {
  text-align: right;
}
footer.bottom .ascii {
  white-space: pre;
  line-height: 1.1;
  color: var(--fg-faint);
  font-size: 9px;
}
footer.bottom h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg);
  margin-bottom: 16px;
}
footer.bottom a {
  color: var(--fg-dim);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}
footer.bottom a:hover { color: var(--accent); }
footer.bottom .legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

/* memento mori block */
.memento {
  padding: 80px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at center, rgba(255,31,31,0.04), transparent 60%);
}
.memento .memento-skull {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 40px rgba(255,31,31,0.18));
}
.memento-skull-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: contrast(1.15) brightness(1) grayscale(1);
  animation: mementoFlicker 6s infinite steps(1);
}
.memento-skull-r,
.memento-skull-c {
  display: none;
}
.memento .memento-skull::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0,0,0,0.45) 2px,
    rgba(0,0,0,0.45) 3px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
@keyframes mementoFlicker {
  0%, 100%, 40%, 70% { opacity: 1; filter: contrast(1.15) brightness(1) grayscale(1); }
  41% { opacity: 0.7; filter: contrast(1.15) brightness(0.6) grayscale(1); }
  41.4% { opacity: 1; filter: contrast(1.15) brightness(1) grayscale(1); }
  71% { opacity: 0.85; }
  71.3% { opacity: 1; }
}
.memento blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  max-width: 24ch;
  margin: 0 auto;
  letter-spacing: -0.01em;
}
.memento blockquote::before { content: "“"; color: var(--accent); }
.memento blockquote::after { content: "”"; color: var(--accent); }
.memento .attribution {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 24px;
}

/* responsive */
@media (max-width: 900px) {
  .lore-grid, .tok-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery-item { grid-column: span 12 !important; }
  .comm-grid { grid-template-columns: 1fr; }
  .hero .footer { grid-template-columns: 1fr; gap: 24px; }
  footer.bottom { grid-template-columns: 1fr; }
  nav.top ul { display: none; }
  .faq-item summary { font-size: 18px; }
  .faq-item .a { padding-left: 0; }
}
