/* OpenDeath — open.death.cl
   Oxblood editorial, rebuilt with depth: technical grid, slow ambient light,
   a floating command deck, spotlight cards, and restrained scroll motion. */

:root {
  color-scheme: dark;
  --bg: #080506;
  --bg-deep: #050304;
  --panel: #120c0e;
  --panel-2: #180f12;
  --paper: #f6ece7;
  --text: #f2e8e2;
  --text-soft: #d8c8c2;
  --muted: #ab948f;
  --faint: #7d6661;
  --red: #b51f30;
  --red-bright: #e34859;
  --red-hot: #ff7d8a;
  --red-deep: #6e0f1a;
  --line: rgba(255, 235, 229, 0.09);
  --line-strong: rgba(255, 235, 229, 0.17);
  --glow: rgba(214, 43, 64, 0.28);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 16px;
  --radius-sm: 8px;
  --width: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 239, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 239, 234, 0.04) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 12%, transparent 82%);
  mask-image: radial-gradient(ellipse 82% 58% at 50% 0%, #000 12%, transparent 82%);
  animation: grid-drift 30s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.032;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 68px 68px, 68px 68px;
  }
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2em;
}

li + li {
  margin-top: 0.45em;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 0.14em 0.4em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
}

pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #060304;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

pre code {
  border: 0;
  padding: 0;
  background: none;
  font-size: 1em;
}

hr {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- backdrop */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1300px 800px at 50% -12%, rgba(155, 21, 38, 0.22), transparent 62%),
    radial-gradient(900px 700px at 100% 18%, rgba(110, 15, 26, 0.13), transparent 66%),
    linear-gradient(180deg, #0a0607 0%, #080506 42%, #060304 100%);
}

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 239, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 239, 234, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2) 62%, transparent 92%);
  opacity: 0.55;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: overlay;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  will-change: transform;
  animation: orb-drift 24s ease-in-out infinite alternate;
}

.orb-a {
  top: -22vw;
  left: -12vw;
  width: 52vw;
  height: 52vw;
  background: #8e1222;
}

.orb-b {
  top: 24vh;
  right: -16vw;
  width: 42vw;
  height: 42vw;
  background: #4e0a15;
  opacity: 0.22;
  animation-delay: -8s;
}

.orb-c {
  bottom: -24vw;
  left: 28vw;
  width: 38vw;
  height: 38vw;
  background: #b51f30;
  opacity: 0.12;
  animation-delay: -15s;
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 3vh, 0) scale(1.12);
  }
}

/* ------------------------------------------------------------ scroll meter */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(227, 72, 89, 0.15), var(--red-bright));
  box-shadow: 0 0 18px rgba(227, 72, 89, 0.55);
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: scroll-meter linear both;
    animation-timeline: scroll(root block);
  }

  @keyframes scroll-meter {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
}

/* ---------------------------------------------------------------- layout */

.container {
  width: min(var(--width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 18px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(8, 5, 6, 0.42);
  backdrop-filter: blur(18px) saturate(150%);
  transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 5, 6, 0.86);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 16px rgba(227, 72, 89, 0.34));
}

.brand-word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-word b {
  color: var(--red-bright);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease, background-color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(227, 72, 89, 0.1), 0 0 12px rgba(227, 72, 89, 0.75);
}

/* --------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 240ms var(--ease), border-color 240ms ease, background-color 240ms ease,
    box-shadow 240ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 72, 89, 0.52);
  background: rgba(181, 31, 48, 0.08);
}

.btn:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.btn-primary {
  border-color: #e24b5d;
  background: linear-gradient(180deg, #d62b40 0%, #a41426 100%);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(214, 43, 64, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ee4b5a 0%, #b51c30 100%);
  box-shadow: 0 22px 50px -16px rgba(238, 75, 90, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -70%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 620ms ease;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  color: var(--text-soft);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 9.5px;
}

.btn-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
  color: var(--red-bright);
  border-color: var(--red);
}

/* ------------------------------------------------------------ typography */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 0 4px rgba(227, 72, 89, 0.1), 0 0 16px rgba(227, 72, 89, 0.8);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.lede {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.muted {
  color: var(--muted);
}

.faint {
  color: var(--faint);
}

.small {
  font-size: 13px;
}

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

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

.center {
  text-align: center;
}

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

.hero {
  position: relative;
  padding: clamp(78px, 11vw, 142px) 0 clamp(46px, 6vw, 76px);
  overflow: hidden;
}

.hero::before {
  content: "OPENDEATH";
  position: absolute;
  top: 2.5%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(112px, 16vw, 240px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(255, 239, 234, 0.024);
  white-space: nowrap;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(980px, 80vw);
  height: min(520px, 40vw);
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(181, 31, 48, 0.18), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(46px, 7vw, 78px);
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(58px, 9.4vw, 128px);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
  animation: hero-rise 900ms var(--ease) both;
}

.hero h1 em {
  display: inline-block;
  font-style: italic;
  color: var(--red-bright);
  background: linear-gradient(100deg, #ff9aa3 0%, #e34859 36%, #b51f30 68%, #8c1121 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 42px rgba(214, 43, 64, 0.18));
}

.hero .lede {
  max-width: 720px;
  margin-top: 30px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  text-wrap: pretty;
  animation: hero-rise 900ms 120ms var(--ease) both;
}

.hero .btn-row {
  margin-top: 36px;
  justify-content: center;
  animation: hero-rise 900ms 220ms var(--ease) both;
}

.hero-note {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  animation: hero-rise 900ms 300ms var(--ease) both;
}

.hero-note strong {
  color: var(--text-soft);
  font-weight: 600;
}

.hero .kicker {
  animation: hero-rise 800ms 40ms var(--ease) both;
}

.hero-stage {
  position: relative;
  width: min(1080px, 100%);
  perspective: 1500px;
  animation: hero-rise 1100ms 380ms var(--ease) both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------ app window */

.plate {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 235, 229, 0.13);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012));
  box-shadow:
    0 70px 130px -44px rgba(0, 0, 0, 0.92),
    0 26px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.plate::before {
  content: "";
  position: absolute;
  inset: -26% -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(181, 31, 48, 0.28), transparent 66%);
  filter: blur(46px);
  pointer-events: none;
}

.hero-stage .plate {
  transform: perspective(1400px) rotateX(calc(4deg + var(--tilt-x, 0deg)))
    rotateY(calc(-1.4deg + var(--tilt-y, 0deg)));
  transition: transform 420ms var(--ease);
  animation: plate-float 9s ease-in-out infinite;
}

@keyframes plate-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

.plate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 7px 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.plate-head b {
  color: var(--muted);
  font-weight: 500;
}

.plate img {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: #0a0708;
}

.plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 7px 3px;
  font-size: 10.5px;
  color: var(--faint);
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 128px;
  padding: 14px 18px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(14, 9, 10, 0.82);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  text-align: left;
  pointer-events: none;
  animation: card-float 7.5s ease-in-out infinite;
}

.floating-card b {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.15;
}

.floating-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

.floating-card > span:last-child {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.floating-card-a {
  left: -22px;
  bottom: 12%;
}

.floating-card-b {
  right: -18px;
  top: 13%;
  animation-delay: -3.6s;
}

.floating-live {
  color: var(--red-bright);
  text-shadow: 0 0 20px rgba(227, 72, 89, 0.35);
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.hero .ticker {
  margin-top: clamp(40px, 5vw, 64px);
}

.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 110px;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-move 44s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-group {
  display: flex;
  align-items: center;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.ticker-item b {
  color: var(--text-soft);
  font-weight: 650;
}

.ticker-item::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(227, 72, 89, 0.85);
}

@keyframes ticker-move {
  to {
    transform: translateX(-50%);
  }
}

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.stat {
  padding: 24px 30px;
  border-right: 1px solid var(--line);
  transition: background-color 220ms ease;
}

.stat:last-child {
  border-right: 0;
}

.stat:hover {
  background: rgba(181, 31, 48, 0.06);
}

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  color: var(--text);
  transition: color 220ms ease;
}

.stat:hover .stat-value {
  color: var(--red-bright);
}

.stat-label {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------- sections */

.section {
  position: relative;
  padding: clamp(76px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(900px, 72vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(227, 72, 89, 0.35), transparent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.62fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2 {
  font-size: clamp(40px, 5.8vw, 74px);
  line-height: 0.97;
  letter-spacing: -0.045em;
}

.section-head .lede {
  max-width: 540px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
}

.section-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.section-number::before {
  content: "";
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}

/* ---------------------------------------------------------- feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  position: relative;
  overflow: hidden;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease,
    background-color 320ms ease;
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px 240px at var(--mx, 50%) var(--my, 0%),
    rgba(214, 43, 64, 0.15),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 380ms ease;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 72, 89, 0.34);
  background-color: rgba(181, 31, 48, 0.045);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.86), 0 0 0 1px rgba(227, 72, 89, 0.07);
}

.feature:hover::before {
  opacity: 1;
}

.feature-index {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 241, 236, 0.07);
  transition: color 300ms ease;
}

.feature:hover .feature-index {
  color: rgba(227, 72, 89, 0.3);
}

.feature h3 {
  position: relative;
  margin-bottom: 10px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.feature p {
  position: relative;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.feature code {
  font-size: 0.82em;
}

/* ----------------------------------------------------------------- modes */

.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.mode {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  transition: transform 260ms var(--ease), border-color 260ms ease, background-color 260ms ease;
}

.mode::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(227, 72, 89, 0.8);
  transition: box-shadow 260ms ease, background-color 260ms ease;
}

.mode b {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}

.mode span {
  font-size: 10.5px;
  color: var(--faint);
  text-align: right;
}

.mode:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 72, 89, 0.38);
  background: rgba(181, 31, 48, 0.065);
}

.mode:hover::before {
  background: var(--red-hot);
  box-shadow: 0 0 0 4px rgba(227, 72, 89, 0.1), 0 0 18px rgba(227, 72, 89, 0.9);
}

/* ------------------------------------------------------------- manifesto */

.manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(78px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 18% 55%, rgba(181, 31, 48, 0.17), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 40%);
}

.manifesto::before {
  content: "“";
  position: absolute;
  top: -70px;
  right: 4%;
  font-family: var(--serif);
  font-size: 320px;
  line-height: 1;
  color: rgba(255, 241, 236, 0.03);
  pointer-events: none;
}

.manifesto blockquote {
  position: relative;
  max-width: 1020px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.manifesto blockquote em {
  color: var(--red-bright);
  font-style: italic;
}

.manifesto cite {
  display: block;
  margin-top: 28px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------- panels */

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}

.panel h3 {
  margin-bottom: 10px;
  font-size: 26px;
}

.panel p {
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------- downloads */

.download-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.download-card {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 320ms var(--ease), border-color 320ms ease, box-shadow 320ms ease;
}

.download-card::after {
  content: "01";
  position: absolute;
  top: 16px;
  right: 26px;
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  color: rgba(255, 241, 236, 0.04);
  pointer-events: none;
}

.download-card:last-child::after {
  content: "02";
}

.download-card.featured {
  border-color: rgba(227, 72, 89, 0.3);
  background:
    radial-gradient(680px 260px at 0% 0%, rgba(181, 31, 48, 0.24), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(227, 72, 89, 0.38);
  box-shadow: 0 40px 90px -38px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(227, 72, 89, 0.08);
}

.download-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 3.4vw, 40px);
}

.download-card .muted {
  font-size: 14px;
  line-height: 1.75;
}

.download-card .btn {
  margin-top: 26px;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* ----------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
}

.step {
  counter-increment: step;
  position: relative;
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  transition: background-color 240ms ease;
}

.step:last-child {
  border-right: 0;
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
  color: rgba(255, 241, 236, 0.08);
  transition: color 240ms ease;
}

.step:hover {
  background: rgba(181, 31, 48, 0.055);
}

.step:hover::before {
  color: rgba(227, 72, 89, 0.34);
}

.step h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.72;
}

/* ---------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
}

th {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

td {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

tr:first-child td {
  border-top: 0;
}

td b {
  color: var(--text);
  font-weight: 600;
}

tbody tr {
  transition: background-color 180ms ease;
}

tbody tr:hover {
  background: rgba(181, 31, 48, 0.045);
}

/* ----------------------------------------------------------------- prose */

.prose {
  max-width: 820px;
}

.prose h2 {
  margin: 56px 0 18px;
  font-size: clamp(34px, 4vw, 46px);
  letter-spacing: -0.035em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 24px;
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.8;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--text-soft);
  border-bottom: 1px solid var(--line-strong);
  transition: color 160ms ease, border-color 160ms ease;
}

.prose a:hover {
  color: var(--red-bright);
  border-color: var(--red);
}

.prose blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.32;
  color: var(--text);
}

.callout {
  position: relative;
  margin: 30px 0;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--red);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(181, 31, 48, 0.09), rgba(255, 255, 255, 0.012));
}

.callout b {
  color: var(--red-bright);
}

/* ------------------------------------------------------------------- FAQ */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  transition: background-color 240ms ease;
}

.faq details[open] {
  background: rgba(181, 31, 48, 0.035);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--text);
  transition: color 200ms ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--red-bright);
  transition: transform 260ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--red-bright);
}

.faq details p {
  max-width: 820px;
  padding: 0 4px 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 112px) 0 clamp(46px, 6vw, 74px);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 31, 48, 0.18), transparent 66%);
  filter: blur(30px);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 5, 6, 0.35));
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 1000px;
  margin-top: 18px;
  font-size: clamp(48px, 7vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.page-hero h1 em {
  color: var(--red-bright);
  font-style: italic;
}

.page-hero .lede {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.breadcrumb a {
  transition: color 160ms ease;
}

.breadcrumb a:hover {
  color: var(--red-bright);
}

/* ------------------------------------------------------------------ count */

.count {
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}

.count-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.count-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(227, 72, 89, 0.8);
  animation: pulse-dot 2.8s ease-in-out infinite;
}

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

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #060304;
  padding: clamp(52px, 7vw, 76px) 0 28px;
}

.site-footer::before {
  content: "OPENDEATH";
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(130px, 21vw, 300px);
  line-height: 1;
  letter-spacing: -0.07em;
  color: rgba(255, 241, 236, 0.022);
  white-space: nowrap;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 370px;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.78;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-col a:hover {
  color: var(--red-bright);
  transform: translateX(2px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

.footer-bottom .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* --------------------------------------------------------------- utilities */

.mt-0 { margin-top: 0; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }

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

/* --------------------------------------------------------------- reveals */

.reveal {
  animation: reveal-up 760ms var(--ease) both;
  animation-play-state: paused;
}

.reveal.is-visible {
  animation-play-state: running;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 26px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

/* ------------------------------------------------------------ final call */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vw, 150px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 380px at 50% 115%, rgba(181, 31, 48, 0.22), transparent 68%),
    radial-gradient(600px 300px at 50% -20%, rgba(181, 31, 48, 0.1), transparent 70%);
  text-align: center;
}

.final-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -46%;
  width: min(900px, 90vw);
  height: 520px;
  transform: translateX(-50%);
  border: 1px solid rgba(227, 72, 89, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(227, 72, 89, 0.02), 0 0 0 180px rgba(227, 72, 89, 0.012);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(46px, 7.2vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.final-cta h2 em {
  color: var(--red-bright);
  font-style: italic;
}

.final-cta .lede {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  text-wrap: pretty;
}

.final-cta .btn-row {
  justify-content: center;
  margin-top: 36px;
}

.final-cta .hero-note {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .hero-stage .plate {
    transform: none;
    animation: none;
  }
}

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

@media (max-width: 1080px) {
  .header-inner {
    gap: 22px;
  }

  .nav {
    gap: 0;
  }

  .nav a {
    padding-inline: 10px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 0.7fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .header-meta .chip {
    display: none;
  }

  .hero {
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(52px, 13vw, 88px);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .section-head .lede {
    max-width: 620px;
  }

  .modes {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-card {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 14px 0;
    min-height: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
  }

  .header-meta {
    margin-left: auto;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(46px, 15vw, 66px);
  }

  .hero .lede {
    margin-top: 22px;
  }

  .hero .btn-row {
    margin-top: 28px;
  }

  .btn {
    min-height: 48px;
    padding-inline: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-grid,
  .modes,
  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .manifesto {
    padding: 62px 0;
  }

  .download-card {
    padding: 26px;
  }

  .download-card::after {
    font-size: 58px;
    right: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .plate {
    padding: 6px;
    border-radius: 14px;
  }

  .plate-head,
  .plate-caption {
    padding-inline: 5px;
  }

  .ticker::before,
  .ticker::after {
    width: 54px;
  }

  .page-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .orb {
    filter: blur(70px);
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: clamp(42px, 15.5vw, 56px);
  }

  .btn-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .header-meta .btn {
    width: auto;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .stat:last-child {
    border-bottom: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .orb,
  .plate,
  .floating-card,
  .ticker-track {
    animation: none !important;
  }
}
