:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #000000;
  --muted: rgba(0, 0, 0, 0.62);
  --line: rgba(0, 0, 0, 0.16);
  --panel: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.intro-active {
  overflow: hidden;
}

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(18px, 4vw, 64px);
  background: #000;
  color: #fff;
  cursor: none;
  transition:
    opacity 620ms ease,
    visibility 620ms ease;
}

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

.intro::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 18px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 18px 100%;
  opacity: 0.55;
}

.intro::after {
  background: radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.72) 100%);
}

.intro-hidden {
  visibility: hidden;
  opacity: 0;
}

.intro-art {
  position: relative;
  z-index: 1;
  width: min(78vw, 720px);
  max-height: 86vh;
  display: grid;
  place-items: center;
  --mx: 0;
  --my: 0;
  --jx: 0px;
  --jy: 0px;
  --scale: 1;
  transform:
    translate(
      calc(var(--jx) + (var(--mx) * 14px)),
      calc(var(--jy) + (var(--my) * 14px))
    )
    scale(var(--scale));
  transition: transform 120ms steps(2, end);
}

.intro-art::before,
.intro-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/genesis-newspaper-pixel.png") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.intro-art::before {
  opacity: 0.22;
  filter: invert(1);
  mix-blend-mode: difference;
  animation: pixel-slice-a 1500ms steps(3, end) infinite;
}

.intro-art::after {
  opacity: 0.14;
  filter: invert(1);
  mix-blend-mode: difference;
  animation: pixel-slice-b 2100ms steps(4, end) infinite;
}

.intro-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 86vh;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  filter: grayscale(1) contrast(1.16);
  animation: pixel-breathe 1800ms steps(2, end) infinite;
}

.intro-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  pointer-events: none;
  transform: translate(-100px, -100px);
  transition: transform 80ms linear;
}

@media (pointer: coarse) {
  .intro {
    cursor: pointer;
  }

  .intro-cursor {
    top: auto;
    right: 18px;
    bottom: 18px;
    left: auto;
    transform: none;
  }
}

@keyframes pixel-breathe {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
}

@keyframes pixel-slice-a {
  0%,
  100% {
    clip-path: inset(0 0 82% 0);
    transform: translate(0, 0);
  }
  40% {
    clip-path: inset(32% 0 48% 0);
    transform: translate(10px, 0);
  }
  70% {
    clip-path: inset(72% 0 8% 0);
    transform: translate(-8px, 0);
  }
}

@keyframes pixel-slice-b {
  0%,
  100% {
    clip-path: inset(86% 0 0 0);
    transform: translate(0, 0);
  }
  45% {
    clip-path: inset(12% 0 70% 0);
    transform: translate(-12px, 0);
  }
  72% {
    clip-path: inset(52% 0 30% 0);
    transform: translate(8px, 0);
  }
}

a,
h1,
h2,
h3,
.eyebrow,
.proof strong,
.proof span,
.time,
.role,
.brand span {
  cursor: default;
}

a {
  cursor: pointer;
}

.scramble-char {
  display: inline !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

nav a:hover,
.closing-links a:hover {
  opacity: 0.58;
}

main {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 61px);
  display: block;
  padding: clamp(120px, 17vw, 220px) 0 clamp(84px, 12vw, 150px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 30px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 10vw, 142px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  max-width: 650px;
  color: var(--ink);
  font-size: clamp(17px, 1.65vw, 21px);
  line-height: 1.58;
}

.hero-actions,
.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
}

.hero-actions a,
.closing-links a {
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-actions a:hover {
  opacity: 0.58;
}

.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.proof div {
  min-height: 136px;
  padding: clamp(22px, 3.2vw, 36px) clamp(14px, 2.4vw, 28px);
  border-right: 1px solid var(--line);
}

.proof div:last-child {
  border-right: 0;
}

.proof span,
.operator-list span {
  display: block;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
}

.proof p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(92px, 12vw, 168px) 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.operator-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.operator-list article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.operator-list article:last-child {
  border-right: 0;
}

.operator-list p,
.timeline p {
  color: var(--muted);
  line-height: 1.68;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(30px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}

.time {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.portrait-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 560px);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  width: min(900px, 100%);
  margin: clamp(96px, 12vw, 170px) 0 0 auto;
  padding-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.portrait-row img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.portrait-row p:last-child {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.closing {
  width: 100vw;
  margin: clamp(80px, 12vw, 160px) 0 0 50%;
  transform: translateX(-50%);
  border-radius: 0;
  padding: clamp(28px, 5vw, 58px) max(calc((100vw - 1260px) / 2), 20px);
  background: var(--ink);
  color: white;
}

.closing .eyebrow {
  color: white;
}

.closing h2 {
  max-width: 820px;
  font-size: clamp(28px, 4vw, 50px);
}

.closing-links a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .proof,
  .operator-list,
  .section-heading,
  .timeline article,
  .portrait-row {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .timeline article {
    gap: 14px;
  }
  .proof div,
  .operator-list article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof div:last-child,
  .operator-list article:last-child {
    border-bottom: 0;
  }

  .portrait-row {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(44px, 13.7vw, 64px);
    line-height: 0.94;
  }

  .hero-actions,
  .closing-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    gap: 10px;
  }

  .section {
    padding-top: 78px;
  }
}
