@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #07091a;
  --night-raised: #0e1228;
  --ink: #f7faff;
  --muted: #b8c2d8;
  --faint: #7f8ba7;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.3);
  --glass: rgba(17, 22, 55, 0.62);
  --glass-solid: #11162f;
  --paper: #eff8ff;
  --paper-ink: #111426;
  --vermilion: #f03918;
  --cobalt: #1a4bed;
  --cyan: #05adb8;
  --saffron: #ffd10a;
  --magenta: #e8218a;
  --violet: #6430d9;
  --mint: #43d4a2;
  --display: "Newsreader", Georgia, serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --page: min(1440px, calc(100vw - 64px));
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --night: #eaf3ff;
  --night-raised: #f6faff;
  --ink: #10162c;
  --muted: #42506d;
  --faint: #66738d;
  --line: rgba(12, 24, 58, 0.14);
  --line-strong: rgba(12, 24, 58, 0.24);
  --glass: rgba(239, 247, 255, 0.76);
  --glass-solid: #eef6ff;
  --paper: #f9fcff;
  --paper-ink: #10162c;
  --cyan: #007780;
  --shadow: 0 24px 80px rgba(27, 50, 103, 0.18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 9%, rgba(5, 173, 184, 0.18), transparent 27rem),
    radial-gradient(circle at 88% 17%, rgba(232, 33, 138, 0.14), transparent 30rem),
    radial-gradient(circle at 45% 52%, rgba(26, 75, 237, 0.13), transparent 42rem),
    var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  transform: translateY(-180%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.glass-nav,
.glass-caption,
.button,
.origin-mark {
  border: 1px solid var(--line-strong);
  background: var(--glass-solid);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.16);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-nav,
  .glass-caption,
  .button,
  .origin-mark {
    background: var(--glass);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    backdrop-filter: blur(24px) saturate(1.35);
  }
}

.glass-nav {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 20px;
  padding: 8px 10px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(4, 7, 29, 0.35);
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.theme-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-links a {
  padding: 0 13px;
}

.nav-links a:hover,
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.theme-toggle {
  flex: 0 0 44px;
  border: 1px solid var(--line);
  font-family: var(--body);
  font-size: 21px;
}

.hero {
  display: grid;
  width: var(--page);
  min-height: 890px;
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin: 0 auto;
  padding: 150px 0 90px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.score-label,
.build-status,
.step-number,
.capability-rail,
.footer-small {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--cyan);
  font-weight: 600;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 0 0 5px rgba(240, 57, 24, 0.13);
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(58px, 6.5vw, 104px);
}

h1 em {
  color: var(--vermilion);
  font-weight: 680;
}

h2 {
  font-size: clamp(45px, 5vw, 76px);
}

h3 {
  font-size: clamp(29px, 3vw, 44px);
}

.hero-intro {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  border-radius: 15px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.48);
}

.button-primary {
  border-color: rgba(255, 113, 82, 0.6);
  background: rgba(240, 57, 24, 0.88);
  color: #fff;
}

.button-quiet {
  color: var(--ink);
}

.build-status {
  margin: 26px 0 0;
  color: var(--faint);
  line-height: 1.5;
}

.build-status span {
  color: var(--mint);
}

.hero-art {
  position: relative;
  z-index: 1;
  width: min(780px, 57vw);
  margin: 0 0 0 -7%;
  transform: rotate(1.1deg);
}

.photo-mount,
.art-mount {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #090b13;
  box-shadow: var(--shadow);
}

.hero-mount {
  padding: clamp(12px, 1.6vw, 24px);
  clip-path: polygon(1% 2%, 100% 0, 98.5% 98%, 0 100%);
}

.hero-mount img {
  width: 100%;
}

.glass-caption {
  position: absolute;
  right: clamp(12px, 4vw, 48px);
  bottom: -45px;
  display: grid;
  min-width: min(360px, 74%);
  gap: 3px;
  padding: 18px 20px;
  transform: rotate(-1.1deg);
  border-radius: 16px;
}

.glass-caption span,
.glass-caption small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.glass-caption strong {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 550;
}

.capability-scroll {
  width: 100%;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  color: var(--muted);
  scrollbar-width: thin;
}

.capability-rail {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.capability-rail li {
  padding: 18px clamp(18px, 4vw, 72px);
  border-right: 1px solid var(--line);
}

.capability-rail li:first-child {
  border-left: 1px solid var(--line);
}

.section-shell {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(100px, 11vw, 176px) 0;
}

.manifesto-grid,
.section-heading,
.technology,
.origin,
.closing {
  display: grid;
  gap: clamp(32px, 6vw, 96px);
  grid-template-columns: minmax(0, 7fr) minmax(260px, 5fr);
}

.manifesto h2,
.technology-intro h2,
.closing h2 {
  margin-bottom: 0;
}

.manifesto-copy {
  align-self: end;
  padding-left: clamp(0px, 3vw, 48px);
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 20px;
}

.manifesto-copy p:last-child {
  margin-bottom: 0;
}

.scores {
  padding-top: 70px;
}

.section-heading {
  align-items: end;
  margin-bottom: 72px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 530px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 19px;
}

.scores-grid {
  display: grid;
  align-items: start;
  gap: clamp(58px, 7vw, 112px) clamp(24px, 4vw, 60px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.score-card {
  --accent: var(--vermilion);
  min-width: 0;
}

.score-card figure {
  margin: 0;
}

.score-1 { --accent: var(--saffron); grid-column: span 5; }
.score-2 { --accent: var(--cobalt); grid-column: span 7; padding-top: 70px; }
.score-3 { --accent: var(--magenta); grid-column: span 6; }
.score-4 { --accent: var(--cyan); grid-column: span 6; padding-top: 100px; }
.score-5 { --accent: var(--violet); grid-column: span 4; }
.score-6 { --accent: var(--saffron); grid-column: span 8; padding-top: 40px; }
.score-7 { --accent: var(--vermilion); grid-column: span 12; }

.art-mount {
  position: relative;
  overflow: hidden;
  padding: clamp(8px, 1vw, 15px);
}

.art-mount::after {
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--accent);
  content: "";
  pointer-events: none;
}

.art-mount img {
  width: 100%;
  transition: filter 220ms ease;
}

.score-card:hover .art-mount img {
  filter: saturate(1.05) contrast(1.02);
}

.score-card figcaption {
  padding: 24px 4px 0;
}

.score-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 600;
}

.score-label span {
  display: inline-flex;
  width: 36px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
}

.score-card h3 {
  margin-bottom: 15px;
}

.score-card figcaption > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.score-contract {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 14px;
}

.score-contract span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.score-contract b {
  color: var(--accent);
  font-weight: 600;
}

.score-card figcaption small,
.swipe-note {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.swipe-note {
  display: none;
}

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

.method-steps {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.method-steps li {
  position: relative;
  min-height: 390px;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  background: rgba(10, 14, 34, 0.28);
}

:root[data-theme="light"] .method-steps li {
  background: rgba(255, 255, 255, 0.3);
}

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

.step-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  margin: 54px 0 44px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
}

.method-steps li:nth-child(1) .step-icon { color: var(--saffron); }
.method-steps li:nth-child(2) .step-icon { color: var(--vermilion); }
.method-steps li:nth-child(3) .step-icon { color: var(--cyan); }
.method-steps li:nth-child(4) .step-icon { color: var(--magenta); }

.step-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.method-steps h3 {
  margin-bottom: 16px;
  font-size: 30px;
}

.method-steps p {
  margin: 0;
  color: var(--muted);
}

.technology {
  align-items: start;
  border-top: 1px solid var(--line);
}

.technology-intro > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.technology-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.technology-list div {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(110px, 1fr) 2fr;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.technology-list dt {
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.technology-list dd {
  margin: 0;
  color: var(--muted);
}

.origin {
  padding-top: 50px;
}

.origin-card,
.homage {
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
}

.origin-card {
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-column: span 2;
  grid-template-columns: auto 1fr;
  background: var(--night-raised);
}

.origin-card h2,
.homage h2 {
  margin-bottom: 24px;
}

.origin-card p:last-child,
.homage p {
  color: var(--muted);
  font-size: 19px;
}

.origin-mark {
  width: fit-content;
  height: fit-content;
  padding: 12px;
  border-radius: 28px;
}

.origin-mark img {
  border-radius: 22px;
}

.homage {
  grid-column: 2;
  border-left: 4px solid var(--vermilion);
}

.legal-note {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
}

.closing {
  align-items: start;
  padding-top: 90px;
  border-top: 1px solid var(--line);
}

.closing-copy {
  color: var(--muted);
  font-size: 19px;
}

.closing-copy .button {
  margin-top: 24px;
}

footer {
  display: grid;
  width: var(--page);
  align-items: center;
  gap: 24px;
  grid-template-columns: auto 1fr;
  margin: 0 auto;
  padding: 38px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 22px;
}

.footer-brand img {
  border-radius: 11px;
}

footer p {
  margin: 0;
}

.footer-small {
  grid-column: 2;
  color: var(--faint);
  font-size: 9px;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  :root {
    --page: min(100% - 48px, 1000px);
  }

  .hero {
    min-height: 780px;
    grid-template-columns: minmax(0, 4fr) minmax(0, 5fr);
  }

  .hero-art {
    width: 55vw;
    margin-left: -10%;
  }

  .score-1,
  .score-2,
  .score-3,
  .score-4,
  .score-5,
  .score-6 {
    grid-column: span 6;
  }

  .score-2,
  .score-4,
  .score-6 {
    padding-top: 70px;
  }

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

  .method-steps li {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  :root {
    --page: calc(100% - 32px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    top: 10px;
  }

  .glass-nav {
    min-height: 58px;
    padding: 6px 8px;
    border-radius: 20px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span,
  .nav-links a:not(:first-child) {
    display: none;
  }

  .nav-links {
    justify-content: flex-end;
  }

  .nav-links a {
    padding: 0 10px;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 128px 0 90px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .hero-art {
    width: 100%;
    margin: 16px 0 0;
    transform: rotate(0.5deg);
  }

  .glass-caption {
    right: 8px;
    bottom: -58px;
    min-width: 78%;
  }

  .capability-rail {
    justify-content: flex-start;
  }

  .manifesto-grid,
  .section-heading,
  .technology,
  .origin,
  .closing {
    grid-template-columns: 1fr;
  }

  .manifesto-copy {
    padding-top: 26px;
    padding-left: 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .section-heading {
    align-items: start;
    margin-bottom: 54px;
  }

  .scores-grid {
    gap: 72px;
    grid-template-columns: 1fr;
  }

  .score-1,
  .score-2,
  .score-3,
  .score-4,
  .score-5,
  .score-6,
  .score-7 {
    grid-column: 1;
    padding-top: 0;
  }

  .score-6 .image-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--saffron) rgba(255, 255, 255, 0.08);
  }

  .score-6 .image-scroll img {
    width: 760px;
    max-width: none;
  }

  .swipe-note {
    display: block;
    margin: 9px 0 0;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-steps li {
    min-height: 0;
  }

  .step-icon {
    margin: 36px 0 30px;
  }

  .technology-list div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .origin-card {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .origin-mark img {
    width: 76px;
    height: 76px;
  }

  .homage {
    grid-column: 1;
  }

  footer {
    grid-template-columns: 1fr;
  }

  .footer-small {
    grid-column: 1;
  }
}

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

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-nav,
  .glass-caption,
  .button,
  .origin-mark {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .live-dot,
  .art-mount::after {
    forced-color-adjust: none;
  }
}
