/* MightyMoose — cryptoartist site.
   Palette and glitch language are pulled straight from the artist's own
   work: B&W documentary photography as the quiet base, RGB channel-split
   / datamosh bursts (the treatment already used on pieces like "Broken
   Vision" and "It's Great") as the occasional, deliberate interruption.
   Idle state stays calm; glitches are timed events, not ambient noise. */

:root {
  --bg: #050505;
  --bg-raised: #0e0e0e;
  --fg: #f2f0ec;
  --dim: rgba(242, 240, 236, 0.6);
  --dimmer: rgba(242, 240, 236, 0.38);
  --line: rgba(242, 240, 236, 0.14);

  --cyan: #37f2e0;
  --magenta: #ff2f7e;
  --green: #33ff6a;
  --yellow: #e8d94a;

  --font-display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --max-width: 1240px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
blockquote { margin: 0; }

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fg);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- ambient overlays ---------- */

/* a fine halftone dot screen instead of TV static — reads as old
   newsprint/offset-print grain rather than digital noise */
.noise-overlay {
  position: fixed;
  top: -40px; left: -40px; right: -40px; bottom: -40px;
  z-index: 200;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
  background-image:
    radial-gradient(rgba(255, 255, 255, 1) 0.65px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 1) 0.65px, transparent 0.7px);
  background-size: 3px 3px;
  background-position: 0 0, 1.5px 1.5px;
  animation: noiseShift 0.2s steps(1) infinite;
  will-change: transform;
}
/* jumps the dot field around by translating the (oversized) overlay
   itself — a compositor-only transform, not a repaint-triggering
   background-position tween — fast enough to read as live TV static.
   The -40px oversize keeps the moving edges off-screen. */
@keyframes noiseShift {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-33px, 9px); }
  32%  { transform: translate(21px, -18px); }
  48%  { transform: translate(-12px, 27px); }
  64%  { transform: translate(30px, 15px); }
  80%  { transform: translate(-24px, -9px); }
  100% { transform: translate(0, 0); }
}

/* real film-dust/scratch footage, looping — screen blend drops the
   video's black straight out, leaving only the drifting flecks and
   scratches visible over the page */
.grain-video {
  position: fixed;
  inset: 0;
  z-index: 199;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 201;
  pointer-events: none;
  opacity: 0.7;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.07) 0px,
    rgba(255, 255, 255, 0.07) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ---------- glitch utilities ---------- */
/* Reusable RGB-split glitch for any text node: add class="glitch-text"
   plus a data-text attribute that repeats the element's own text. Idle
   the vast majority of the time; fires as a quick misregistered-channel
   burst so it reads as an event, not a loop. Delay modifiers desync
   multiple instances on the same screen so they don't flash in unison. */

.glitch-text { position: relative; }
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.glitch-text::before { color: var(--cyan); animation: glitchA 4s infinite linear; }
.glitch-text::after  { color: var(--magenta); animation: glitchB 4s infinite linear; }

.glitch-text--slow::before,
.glitch-text--slow::after { animation-duration: 6s; }

.glitch-text--d1::before, .glitch-text--d1::after { animation-delay: -1.3s; }
.glitch-text--d2::before, .glitch-text--d2::after { animation-delay: -2.6s; }
.glitch-text--d3::before, .glitch-text--d3::after { animation-delay: -3.4s; }

/* while a .type-on element is still typing itself out (see main.js),
   its ambient glitch stays frozen and invisible — the burst shouldn't
   fire mid-word before the text has even finished arriving */
.glitch-text.typing::before,
.glitch-text.typing::after { animation-play-state: paused; opacity: 0 !important; }

/* typewriter reveal: a trailing cursor while text.js builds up the
   string character by character, styled after the terminal caret */
.type-cursor {
  display: inline-block;
  margin-left: 0.05em;
  color: var(--yellow);
  animation: blink 0.9s steps(1) infinite;
  transition: opacity 0.4s ease;
}
.type-cursor.done { animation: none; opacity: 0; }

@keyframes glitchA {
  0%, 91%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  92% { opacity: 0.85; clip-path: inset(8% 0 62% 0); transform: translate(-6px, -2px); }
  93% { opacity: 0.75; clip-path: inset(48% 0 12% 0); transform: translate(5px, 1px); }
  94% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  95.5% { opacity: 0.8; clip-path: inset(65% 0 4% 0); transform: translate(-4px, 2px); }
  96.5% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
}
@keyframes glitchB {
  0%, 91.3%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  92.3% { opacity: 0.8; clip-path: inset(50% 0 8% 0); transform: translate(6px, 1px); }
  93.3% { opacity: 0.7; clip-path: inset(10% 0 55% 0); transform: translate(-5px, -1px); }
  94.3% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
  95.8% { opacity: 0.75; clip-path: inset(2% 0 70% 0); transform: translate(4px, -2px); }
  96.8% { opacity: 0; clip-path: inset(0 0 100% 0); transform: translate(0, 0); }
}

/* a lighter RGB flicker for small or mono text — cheaper than the
   split-layer effect above and reads better at tag/label sizes, where
   a full misaligned duplicate would be hard to make out anyway. */
.glitch-flicker { animation: flickerText 4s infinite; }
@keyframes flickerText {
  0%, 94%, 100% { text-shadow: none; }
  94.6% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta); }
  95.1% { text-shadow: none; }
  95.6% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta); }
  96.1% { text-shadow: none; }
}
.glitch-flicker--d1 { animation-delay: -1.3s; }
.glitch-flicker--d2 { animation-delay: -2.6s; }

/* a burst of static filling the letterforms instead of a color split —
   the text briefly reads as noise, then clears. Needs a data-text
   attribute like .glitch-text does. */
.glitch-static { position: relative; }
.glitch-static::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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");
  background-size: 140px 140px;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
  animation: staticBurst 11s infinite;
}
@keyframes staticBurst {
  0%, 97%, 100% { opacity: 0; }
  97.4% { opacity: .85; }
  97.8% { opacity: .25; }
  98.2% { opacity: .8; }
  98.6% { opacity: 0; }
}

/* a faint beam that occasionally sweeps a hero, like a CRT refresh */
.scan-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.scan-sweep::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(55, 242, 224, 0.45), transparent);
  animation: scanSweepMove 5s linear infinite;
}
@keyframes scanSweepMove {
  0% { top: -2px; opacity: 0; }
  5% { opacity: .55; }
  45% { opacity: .55; }
  52% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

/* a brief chromatic-aberration flicker around a framed grid's border */
.glitch-frame { position: relative; }
.glitch-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid var(--cyan);
  animation: frameFlicker 7s infinite;
}
@keyframes frameFlicker {
  0%, 96%, 100% { opacity: 0; transform: translate(0, 0); border-color: var(--cyan); }
  96.6% { opacity: .5; transform: translate(2px, 0); border-color: var(--cyan); }
  97.2% { opacity: .5; transform: translate(-2px, 0); border-color: var(--magenta); }
  97.8% { opacity: 0; transform: translate(0, 0); }
}

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.logo-mark::before { animation-duration: 15s; }
.logo-mark::after  { animation-duration: 15s; }
.logo-mark:hover::before {
  opacity: 0.85;
  animation: navGlitchA 0.5s steps(2, jump-none) infinite;
}
.logo-mark:hover::after {
  opacity: 0.85;
  animation: navGlitchB 0.5s steps(2, jump-none) infinite;
}

@keyframes navGlitchA {
  0% { transform: translate(-2px, -1px); clip-path: inset(0 0 55% 0); }
  50% { transform: translate(2px, 1px); clip-path: inset(45% 0 0 0); }
  100% { transform: translate(-2px, -1px); clip-path: inset(0 0 55% 0); }
}
@keyframes navGlitchB {
  0% { transform: translate(2px, 1px); clip-path: inset(50% 0 0 0); }
  50% { transform: translate(-2px, -1px); clip-path: inset(0 0 50% 0); }
  100% { transform: translate(2px, 1px); clip-path: inset(50% 0 0 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.nav-links a { position: relative; color: var(--dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"] .idx { color: var(--cyan); }
.nav-links .idx { color: var(--dimmer); margin-right: 6px; font-size: 0.72em; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dimmer);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.status-dot i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 1px; background: var(--fg); display: block; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) contrast(1.15) brightness(0.75);
  transform: scale(1.02);
}

/* for hero art whose own color is the point — skips the grayscale
   treatment used on the B&W photography heroes elsewhere */
.hero-media--color {
  filter: contrast(1.05) brightness(0.8) saturate(1.05);
  background-position: center 15%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(5, 5, 5, 0.25), rgba(5, 5, 5, 0.75) 65%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.65) 45%, rgba(5, 5, 5, 0.97) 100%);
}

.hero-inner {
  position: relative;
  padding-top: 90px;
  padding-bottom: 60px;
}

.eyebrow {
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin: 0 0 18px;
}

.hero-title {
  position: relative;
  display: block;
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 11vw, 8.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 28px 0 0;
  color: var(--dim);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  max-width: 40ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

.btn {
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 14px 22px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* a light-beam sweep plus an RGB-split flicker on the label — both
   loop continuously for as long as the button stays hovered, rather
   than firing once, so the glitch is impossible to miss */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-160%);
  pointer-events: none;
  mix-blend-mode: screen;
}
.btn:hover::before { animation: btnSweep 0.9s linear infinite; }
@keyframes btnSweep {
  to { transform: translateX(160%); }
}

.btn:hover { animation: btnTextGlitch 0.5s steps(2, jump-none) infinite; }
@keyframes btnTextGlitch {
  0%, 60%, 100% { text-shadow: none; }
  70% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta), 0 1px var(--yellow); }
  85% { text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); }
}

.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--cyan); border-color: var(--cyan); transform: translateY(-1px); }
.btn-ghost { color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); background: rgba(242, 240, 236, 0.06); transform: translateY(-1px); }

.hero--compact {
  min-height: 56svh;
}
.hero--compact .hero-inner { padding-top: 70px; padding-bottom: 40px; }
.hero-title--sm { font-size: clamp(1.9rem, 6.5vw, 4.4rem); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dimmer);
}

.caret {
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
  color: var(--green);
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- brand banner ---------- */

.brand-banner {
  width: 100%;
  aspect-ratio: 2400 / 564;
  background-size: cover;
  background-position: center;
  background-color: var(--bg);
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  padding: 16px 0;
  background: var(--bg-raised);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  animation: tickerScroll 32s linear infinite;
  width: max-content;
}
.ticker-track .sep { color: var(--dimmer); }

.tk-glitch { color: var(--fg); position: relative; }
.tk-glitch::after {
  content: attr(data-glitch);
}
.tk-glitch { animation: tkFlicker 4.2s infinite; }
@keyframes tkFlicker {
  0%, 94%, 100% { text-shadow: none; color: var(--fg); }
  95% { text-shadow: -2px 0 var(--cyan), 2px 0 var(--magenta), 0 2px var(--yellow); color: var(--fg); }
  96% { text-shadow: 2px 0 var(--cyan), -2px 0 var(--magenta), 0 -2px var(--yellow); }
  97% { text-shadow: none; }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .noise-overlay { animation: none !important; }
  .grain-video { display: none !important; }
  .btn:hover { animation: none !important; text-shadow: none !important; }
  .btn::before { animation: none !important; }
  .glitch-text::before,
  .glitch-text::after,
  .glitch-flicker,
  .glitch-static::after,
  .scan-sweep::before,
  .glitch-frame::after,
  .caret,
  .status-dot i,
  .tk-glitch { animation: none !important; opacity: 0 !important; text-shadow: none !important; }
}

/* ---------- section shared ---------- */

section { padding: clamp(70px, 11vw, 140px) 0; }

.section-head { margin-bottom: 56px; }
.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

/* ---------- work grid ---------- */

.work { background: var(--bg); }

/* alternates a section's background so a long page of stacked platform
   sections (see the-art.html) reads with some rhythm instead of one
   unbroken slab of black */
.section-raised { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* for sections with only a couple of pieces, so they don't stretch
   thin across a 3-column grid meant for six */
.work-grid--sparse {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .work-grid--sparse { grid-template-columns: 1fr; max-width: none; }
}

.work-card { position: relative; background: var(--bg); }

.work-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.work-media::before,
.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.work-card:hover .work-media img { transform: scale(1.045); filter: contrast(1.08); }

.work-card:hover .work-media::before {
  opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--cyan) 40%, transparent 60%);
  mix-blend-mode: color-dodge;
  animation: sliceA 0.4s steps(3, jump-none) infinite;
}
.work-card:hover .work-media::after {
  opacity: 0.4;
  background: linear-gradient(90deg, transparent, var(--magenta) 40%, transparent 60%);
  mix-blend-mode: color-dodge;
  animation: sliceB 0.4s steps(3, jump-none) infinite;
}
@keyframes sliceA {
  0% { clip-path: inset(10% 0 70% 0); transform: translateX(-3%); }
  50% { clip-path: inset(55% 0 20% 0); transform: translateX(2%); }
  100% { clip-path: inset(30% 0 45% 0); transform: translateX(-1%); }
}
@keyframes sliceB {
  0% { clip-path: inset(60% 0 5% 0); transform: translateX(3%); }
  50% { clip-path: inset(15% 0 60% 0); transform: translateX(-2%); }
  100% { clip-path: inset(40% 0 30% 0); transform: translateX(1%); }
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 16px;
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
}
.w-title { color: var(--fg); text-transform: lowercase; }
.w-tag { color: var(--dimmer); text-transform: lowercase; letter-spacing: 0.02em; white-space: nowrap; }

.work-card-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  min-height: 100%;
}
.more-inner { padding: 32px; text-align: center; }
.more-inner .eyebrow { margin-bottom: 14px; }
.more-text { color: var(--dim); margin: 0 0 22px; font-size: 0.95rem; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-media { aspect-ratio: 4 / 3; }
}

/* ---------- origin timeline ---------- */

.origin-intro {
  color: var(--dim);
  font-size: 1rem;
  max-width: 62ch;
  margin: 18px 0 0;
}

.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 4px;
}

.timeline-body h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.timeline-body p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
  max-width: 68ch;
}
.timeline-body p a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.timeline-body p a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

@media (max-width: 620px) {
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
}

.timeline-artifact { padding: 32px 0; border-bottom: 1px solid var(--line); }
.artifact-media { aspect-ratio: 16 / 8; overflow: hidden; }
.artifact-media img { width: 100%; height: 100%; object-fit: cover; }
.artifact-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 14px;
  font-size: 0.78rem;
}
.artifact-caption .w-title { color: var(--fg); text-transform: lowercase; white-space: nowrap; }
.artifact-caption .w-tag {
  color: var(--dimmer);
  text-transform: lowercase;
  white-space: normal;
  text-align: right;
  max-width: 60ch;
}

@media (max-width: 620px) {
  .artifact-caption { flex-direction: column; }
  .artifact-caption .w-tag { text-align: left; max-width: none; }
}

@media (max-width: 620px) {
  .artifact-media { aspect-ratio: 4 / 3; }
}

/* ---------- statement ---------- */

.statement { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.statement-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.statement-inner .eyebrow { grid-column: 1 / -1; }

.pull-quote {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.statement-body p {
  color: var(--dim);
  font-size: 1rem;
  max-width: 52ch;
}
.statement-body p + p { margin-top: 18px; }

@media (max-width: 760px) {
  .statement-inner { grid-template-columns: 1fr; }
}

/* for a much longer statement — full-width single column instead of
   squeezing a long read against a short quote in a cramped side rail */
.statement-inner--stacked {
  grid-template-columns: 1fr;
  max-width: 68ch;
  margin: 0 auto;
}
.statement-inner--stacked .pull-quote { margin-bottom: 8px; }
.statement-inner--stacked .statement-body p { max-width: none; }

/* ---------- principles ---------- */

.principles { padding-top: 0; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 24px;
}

.principles-grid li {
  background: var(--bg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.principle-line {
  margin: 0 0 12px;
  font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.principle-sub {
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.55;
}
.principle-sub + .principle-sub { margin-top: 10px; }

@media (max-width: 760px) {
  .principles-grid { grid-template-columns: 1fr; }
}

/* ---------- chain list ---------- */

.chain-list { border-top: 1px solid var(--line); }
.chain-list li { border-bottom: 1px solid var(--line); }
.chain-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.chain-list a:hover { padding-left: 14px; color: var(--cyan); }
.chain-name { font-size: 1.05rem; text-transform: lowercase; color: var(--fg); min-width: 220px; }
.chain-list a:hover .chain-name { color: var(--cyan); }
.chain-name em { font-style: normal; color: var(--dimmer); font-size: 0.85em; }
.chain-desc { color: var(--dimmer); font-size: 0.8rem; flex: 1; text-transform: lowercase; }
.chain-arrow { color: var(--dimmer); transition: transform 0.25s ease; }
.chain-list a:hover .chain-arrow { transform: translate(3px, -3px); color: var(--cyan); }

@media (max-width: 560px) {
  .chain-name { min-width: 0; }
  .chain-desc { display: none; }
}

/* ---------- cta band ---------- */

.cta-band { text-align: center; }
.cta-band-inner .section-title { margin-top: 14px; }
.cta-band-inner .connect-sub { max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 30px; }

/* ---------- connect ---------- */

.connect { text-align: center; }
.connect-inner .eyebrow, .connect-inner .section-title { }
.connect-sub { color: var(--dim); margin: 14px 0 0; }
.connect .hero-cta { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--dimmer);
  text-transform: lowercase;
}
.footer-mid { color: var(--dimmer); }
.footer-inner a:hover { color: var(--fg); }

/* ---------- responsive nav ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    height: 100svh;
    background: rgba(5, 5, 5, 0.98);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px var(--pad);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .status-dot { position: absolute; bottom: 32px; left: var(--pad); }
  .br-mobile { display: none; }
}
