/* Anime Bitcoin — styles
   Chrome is black and white. Orange lives only inside the work. */

:root {
  --void: #000000;
  --bone: #ffffff;
  --soot: #050505;
  --ash: #8a8a8a;
  --btc: #f7931a;

  --sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --serif: "Times New Roman", Times, "GT Super", Georgia, serif;
  --mono: "Courier New", Courier, "JetBrains Mono", monospace;

  --gutter: 60px;
  --gap: 20px;
  --section: 180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
  :root { --gutter: 24px; --section: 100px; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); color: var(--bone); scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 400;
  background: var(--void);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 400; }
ol, dl { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }

/* Type registers */
.serif {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 18ch;
}
.mono {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: 0.10em;
}
.heading {
  font-size: 23px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.body {
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 44ch;
}

/* Ghost link: underline appears, nothing else changes */
.ghost, .nav a, .footer__links a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.ghost::after, .nav a::after, .footer__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--bone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.ghost:hover::after, .nav a:hover::after, .footer__links a:hover::after,
.ghost:focus-visible::after, .nav a:focus-visible::after { transform: scaleX(1); }

/* Strobe (page load) */
.strobe {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--void);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.strobe img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.strobe[data-step="white"]  { background: #fff; }
.strobe[data-step="white"] img { opacity: 0; }
.strobe[data-step="sketch"] img { opacity: 1; filter: grayscale(1) contrast(1.6) brightness(1.3); }
.strobe[data-step="red"]    img { opacity: 1; filter: grayscale(1) sepia(1) saturate(8) hue-rotate(-20deg) contrast(1.4); }
.strobe[data-step="invert"] img { opacity: 1; filter: invert(1) grayscale(1); }
.strobe[data-step="clean"]  img { opacity: 1; }
.strobe[data-step="black"]  { background: #000; }
.strobe[data-step="black"] img { opacity: 0; }
.strobe[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wordmark {
  position: absolute;
  top: 28px; left: var(--gutter);
  font-size: clamp(44px, 6vw, 84px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--bone);
}
.hero__note {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  max-width: 34ch;
  font-size: 16px;
  color: var(--bone);
}
@media (max-width: 720px) {
  .hero__note { bottom: 96px; max-width: 26ch; }
}

/* Nav in the hero: a static row bottom-right, like the reference */
.hero__nav {
  position: absolute;
  right: 32px; bottom: 32px;
  display: flex;
  gap: var(--gap);
  font-size: 16px;
}
.hero__nav a { position: relative; display: inline-block; padding-bottom: 2px; }
.hero__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--bone); transform: scaleX(0); transform-origin: left;
  transition: transform 200ms var(--ease);
}
.hero__nav a:hover::after, .hero__nav a:focus-visible::after { transform: scaleX(1); }

/* Fixed header: appears once the hero is gone, hides while scrolling down */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px var(--gutter);
  font-size: 16px;
  background: var(--void);
  transform: translateY(-100%);
  transition: transform 200ms linear;
  visibility: hidden;
}
.nav.is-shown { transform: none; visibility: visible; }
.nav__links { display: flex; gap: var(--gap); }
.nav__ca { color: var(--ash); transition: color 200ms var(--ease); }
.nav__ca:hover, .nav__ca.is-copied { color: var(--bone); }
@media (max-width: 720px) { .nav__ca { display: none; } }
.nav__mark { letter-spacing: -0.02em; }
.nav__mark::after { display: none; }
.nav:hover a, .nav:hover button { opacity: 0.4; transition: opacity 400ms var(--ease); }
.nav:hover a:hover, .nav:hover button:hover { opacity: 1; }
@media (max-width: 720px) {
  .hero__nav {
    right: var(--gutter); bottom: 24px;
    flex-direction: column; align-items: flex-end; gap: 8px;
  }
  .hero__note { bottom: 24px; max-width: 22ch; }
}

/* Glitch on demand (hover), never idle */
[data-glitch] { will-change: transform; }
.is-glitching {
  animation: glitch 180ms steps(1) both;
}
@keyframes glitch {
  0%   { text-shadow: -3px 0 #f0f, 3px 0 #0ff; transform: translateX(1px); }
  33%  { text-shadow: 3px 0 #f0f, -3px 0 #0ff; transform: translateX(-2px) skewX(2deg); }
  66%  { text-shadow: none; filter: invert(1); }
  100% { text-shadow: none; transform: none; filter: none; }
}

/* Manifesto */
.manifesto {
  padding: var(--section) var(--gutter) 0;
}
.quote { margin: 0; }
.quote footer { margin-top: 24px; color: var(--ash); }
.serif--answer { margin-top: 120px; max-width: 30ch; }

/* Lineage: dated list on the left, one sticky frame on the right that swaps with the active entry */
.lineage {
  padding: 120px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 62ch) 1fr;
  gap: 80px;
  align-items: start;
}
.lineage__list {
  display: grid;
  gap: 40px;
}
.lineage__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--gap);
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--soot);
  transition: opacity 400ms var(--ease);
}
.lineage__list li.is-dim { opacity: 0.45; }
.lineage__list time { color: var(--ash); }
.lineage__list p { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.lineage__list figure { display: none; }

.lineage__frame {
  position: sticky;
  top: 10vh;
  height: 80vh;
  justify-self: end;
  width: min(100%, calc(80vh * 0.72));
  background: var(--void);
}
.lineage__frame > * {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: right top;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.lineage__frame > .is-active { opacity: 1; }

@media (max-width: 720px) {
  .lineage { grid-template-columns: 1fr; gap: 0; }
  .lineage__frame { display: none; }
  .lineage__list li { grid-template-columns: 1fr; gap: 8px; }
  .lineage__list li.is-dim { opacity: 1; }
  .lineage__list figure { display: block; margin: 16px 0 0; }
  .lineage__list figure img, .lineage__list figure video { width: 100%; height: auto; }
}

/* Transmission reel */
.transmission {
  position: relative;
  margin-top: var(--section);
  background: var(--void);
}
.transmission__video {
  width: 100vw;
  height: min(100svh, 66.6vw);
  object-fit: cover;
  background: var(--void);
}
.transmission__replay {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  font-size: 16px;
}

/* Work grid */
.work { padding: var(--section) 0 0; }
.work .heading { padding: 0 var(--gutter); }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soot);
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 300ms var(--ease);
}
.js .tile img, .js .lineage__frame > * { filter: saturate(5); }
.tile:hover img { opacity: 0.7; }
.tile__meta {
  position: absolute;
  left: 24px; bottom: 20px;
  display: grid;
  gap: 4px;
  color: var(--bone);
}
.tile__title { font-size: 19px; letter-spacing: -0.02em; }

/* Tokenomics */
.tokenomics { padding: var(--section) var(--gutter) 0; }
.tokenomics .body { margin-top: 40px; }

.address { margin-top: 100px; }
.address__label { color: var(--ash); display: block; }
.address__value {
  display: block;
  margin-top: 12px;
  font-size: clamp(15px, 3.05vw, 44px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: left;
  word-break: break-all;
  position: relative;
}
.address__hint {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ash);
  transition: color 200ms var(--ease);
}
.address__value:hover .address__hint { color: var(--bone); }
.address__value.is-copied .address__hint { color: var(--bone); }

.facts {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px var(--gap);
  max-width: 1100px;
}
.facts dt { color: var(--ash); font-size: 16px; }
.facts dd { margin: 8px 0 0; }

.tokenomics .heading { margin-top: 140px; }
.steps { display: grid; gap: 32px; max-width: 56ch; }
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--gap);
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--soot);
}
.steps p { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
/* Links inside running copy need a resting cue: a hairline at reduced opacity, full on hover */
.steps .ghost, .body .ghost, .footer__disclaimer .ghost { padding-bottom: 0; }
.steps .ghost::after, .body .ghost::after { transform: none; opacity: 0.4; transition: opacity 200ms var(--ease); }
.steps .ghost:hover::after, .body .ghost:hover::after { opacity: 1; }
.links { margin-top: 60px; display: flex; gap: 32px; flex-wrap: wrap; font-size: 19px; }

/* Footer */
.footer {
  padding: var(--section) var(--gutter) 120px;
  display: grid;
  gap: 60px;
}
.footer__links { display: flex; gap: var(--gap); font-size: 16px; }
.footer__disclaimer { color: var(--ash); max-width: 62ch; font-size: 14px; line-height: 1.43; }


/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: var(--void);
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 28px; right: 32px; font-size: 16px; z-index: 1; }
.lightbox__media { width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__media img, .lightbox__media video { max-width: 100vw; max-height: 100vh; object-fit: contain; }

/* Reveals: hard cuts, run once */
.js .reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }
.js .words .w { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .words .w { opacity: 1; }
  .js .tile img, .js .lineage__frame > * { filter: none; }
  .is-glitching { animation: none; }
  .strobe { display: none; }
  * { transition-duration: 0ms !important; }
}
