:root {
  --ink: #12130f;
  --paper: #f4f1e8;
  --paper-deep: #e8e3d5;
  --acid: #c9ff4a;
  --blue: #7180ff;
  --coral: #ff765f;
  --white: #fffef9;
  --muted: #67685f;
  --line: rgba(18, 19, 15, 0.2);
  --max: 1180px;
  --font-display: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}

html[lang="ja"] {
  --font-body: "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="ja"] body {
  line-height: 1.85;
}

html[lang="ja"] p,
html[lang="ja"] li {
  letter-spacing: 0.018em;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 104px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-decoration: none;
}

.wordmark-dot {
  display: none;
}

.wordmark-text {
  position: relative;
  display: inline-block;
}

.wordmark-text::after {
  content: "";
  position: absolute;
  left: 59%;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: var(--blue);
  transform: rotate(-1deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-nav .nav-pill {
  padding: 9px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.language-switch a,
.language-switch span {
  min-width: 30px;
  padding: 5px 6px;
  text-align: center;
  text-decoration: none;
}

.language-switch [aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.language-switch a:hover {
  background: var(--acid);
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  min-height: 690px;
  margin: 0 auto;
  padding: 90px 28px 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 80px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(0);
}

.hero::before {
  width: 420px;
  height: 420px;
  top: 20px;
  right: -160px;
  background: var(--blue);
  opacity: 0.16;
}

.hero::after {
  width: 220px;
  height: 220px;
  left: -110px;
  bottom: 25px;
  background: var(--acid);
  opacity: 0.7;
}

.eyebrow,
.kicker {
  margin: 0 0 22px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 118, 95, 0.14);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.35rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  font-weight: 900;
}

h1 em {
  display: inline-block;
  position: relative;
  z-index: 0;
  font-style: normal;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.05em;
  bottom: 0.03em;
  height: 0.28em;
  background: var(--acid);
  transform: rotate(-1.2deg);
}

.hero-lede {
  max-width: 720px;
  margin: 36px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: #35362f;
}

.english-line {
  margin: 14px 0 0;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-primary {
  gap: 18px;
  background: var(--ink);
  color: var(--white);
}

.button-primary span {
  color: var(--acid);
  font-size: 1.15rem;
}

.button-quiet {
  background: transparent;
}

.lab-card {
  transform: rotate(1.5deg);
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
}

.lab-card-top {
  min-height: 56px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status-chip {
  display: inline-flex;
  padding: 7px 10px 6px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.lab-screen {
  min-height: 250px;
  padding: 30px 20px;
  background:
    linear-gradient(rgba(201, 255, 74, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: 100% 24px;
  color: var(--white);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.terminal-line {
  margin: 0 0 22px;
}

.terminal-line span {
  margin-right: 12px;
  color: var(--acid);
}

.terminal-line.muted {
  color: #aaa99f;
}

.lab-rule {
  padding: 22px 20px 24px;
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--ink);
}

.lab-rule-label {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lab-rule strong {
  font-size: 0.96rem;
}

.ticker {
  overflow: hidden;
  padding: 15px 0 14px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ticker div {
  width: max-content;
  min-width: 100%;
  text-align: center;
}

.ticker span {
  padding: 0 1.6em;
  color: var(--acid);
}

.lucky-draw {
  padding: 88px max(28px, calc((100vw - var(--max)) / 2 + 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  align-items: stretch;
  gap: 54px;
  border-bottom: 1px solid var(--ink);
  background: var(--coral);
}

.lucky-copy {
  padding: 22px 0;
}

.lucky-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.lucky-copy > p:not(.kicker) {
  max-width: 650px;
  margin: 30px 0 0;
  color: #35352f;
}

.draw-button {
  margin-top: 34px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.draw-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--acid);
}

.lucky-result {
  min-height: 360px;
  padding: 34px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.lucky-result > span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lucky-result > strong {
  justify-self: center;
  font-family: Arial, sans-serif;
  font-size: clamp(7rem, 15vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: var(--acid);
}

.lucky-result > p {
  margin: 0;
  color: #d6d5ca;
  font-weight: 750;
}

.lucky-draw.has-result .lucky-result {
  box-shadow: 12px 12px 0 var(--blue);
}

.section {
  padding: 112px max(28px, calc((100vw - var(--max)) / 2 + 28px));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 58px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.empty-log {
  min-height: 280px;
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.log-link-card {
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.log-link-card:hover,
.log-link-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.log-link-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.field-notes .empty-log + .empty-log {
  margin-top: 18px;
}

.log-index,
.log-mark {
  padding: 24px;
  border-right: 1px solid var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.log-index strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.log-content {
  align-self: center;
  max-width: 680px;
  padding: 42px;
}

.status-planned {
  margin-bottom: 18px;
  background: var(--blue);
  color: var(--white);
}

.log-content h3 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.log-content p {
  margin: 0;
  color: var(--muted);
}

.log-mark {
  display: grid;
  place-items: center;
  border-right: 0;
  border-left: 1px solid var(--ink);
  background: var(--acid);
  font-size: 4rem;
  font-weight: 300;
}

.method {
  background: var(--ink);
  color: var(--paper);
}

.method .kicker {
  color: var(--acid);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--paper);
}

.step-card {
  min-height: 330px;
  padding: 32px;
  border-right: 1px solid var(--paper);
  display: flex;
  flex-direction: column;
}

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

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-weight: 800;
}

.step-card h3 {
  margin: 62px 0 16px;
  font-size: 1.35rem;
  line-height: 1.25;
}

.step-card p {
  margin: 0;
  color: #b9b8ae;
  font-size: 0.92rem;
}

.accent-blue {
  background: var(--blue);
  color: var(--ink);
}

.accent-blue p,
.accent-coral p {
  color: var(--ink);
}

.accent-coral {
  background: var(--coral);
  color: var(--ink);
}

.about {
  background: var(--acid);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 100px;
  align-items: start;
}

.about h2 span {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}

.about-copy {
  padding-top: 40px;
  font-size: 1.05rem;
}

.about-copy p {
  margin: 0 0 24px;
}

.site-footer {
  min-height: 230px;
  padding: 58px max(28px, calc((100vw - var(--max)) / 2 + 28px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 28px;
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.wordmark-footer {
  align-self: start;
}

.wordmark-footer .wordmark-text::after {
  background: var(--coral);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.site-footer .copyright {
  grid-column: 2;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-top: 66px;
  }

  .lab-card {
    max-width: 620px;
    transform: none;
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .lucky-draw {
    grid-template-columns: 1fr;
  }

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

  .step-card {
    min-height: 270px;
    border-right: 0;
    border-bottom: 1px solid var(--paper);
  }

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

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

  .site-footer .copyright {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 88px;
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }

  .language-switch {
    padding-left: 14px;
  }

  .site-nav a:not(.nav-pill) {
    display: inline-block;
  }

  .site-nav .nav-pill {
    padding: 6px 11px;
  }

  .hero {
    min-height: auto;
    padding: 58px 20px 82px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .lab-card {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .ticker div {
    padding-left: 20px;
    text-align: left;
  }

  .section {
    padding: 82px 20px;
  }

  .lucky-draw {
    padding: 72px 20px;
    gap: 36px;
  }

  .lucky-result {
    min-height: 300px;
    padding: 28px;
  }

  .section-heading h2,
  .about h2 {
    font-size: clamp(2.65rem, 13vw, 4.1rem);
  }

  .empty-log {
    grid-template-columns: 82px 1fr;
  }

  .log-index {
    padding: 18px 14px;
  }

  .log-content {
    padding: 30px 22px;
  }

  .log-mark {
    display: none;
  }

  .step-card {
    padding: 26px;
  }

  .site-footer {
    padding: 46px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Interior pages */
.page-main { min-height: 65vh; }
.page-hero { max-width: var(--max); margin: 0 auto; padding: 96px 28px 84px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; margin: 0; font-size: clamp(3.25rem, 8vw, 7rem); line-height: 0.98; letter-spacing: -0.07em; }
.page-hero .page-lede { max-width: 760px; margin: 32px 0 0; font-size: clamp(1rem, 1.7vw, 1.2rem); color: var(--muted); }
.page-section { max-width: var(--max); margin: 0 auto; padding: 92px 28px; }
.page-section + .page-section { border-top: 1px solid var(--line); }
.page-section h2 { margin: 0 0 22px; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.055em; }
.page-section > p, .page-section .intro-copy { max-width: 760px; color: var(--muted); }
.manifesto-grid, .role-grid, .route-grid, .status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.manifesto-card, .role-card, .route-card, .status-card { padding: 32px; border: 1px solid var(--ink); background: var(--white); }
.manifesto-card:nth-child(2), .role-card.human, .status-card:nth-child(2) { background: var(--acid); }
.manifesto-card:nth-child(3), .role-card.ai, .status-card:nth-child(3) { background: var(--blue); }
.manifesto-card:nth-child(4), .status-card:nth-child(4) { background: var(--coral); }
.manifesto-card .card-index, .role-card .card-index, .route-card .card-index, .status-card .card-index { display: block; margin-bottom: 52px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; }
.manifesto-card h3, .role-card h3, .route-card h3, .status-card h3 { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.035em; }
.manifesto-card p, .role-card p, .route-card p, .status-card p { margin: 0; color: #484941; }
.role-card.ai p, .status-card:nth-child(3) p { color: var(--ink); }
.policy-list { margin: 46px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.policy-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--ink); }
.policy-list span { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.72rem; font-weight: 900; }
.empty-stage { margin-top: 46px; min-height: 340px; padding: 46px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.empty-stage .status-chip { margin-bottom: 24px; color: var(--ink); }
.empty-stage h2 { margin-bottom: 20px; }
.empty-stage p { max-width: 670px; color: #b9b8ae; }
.experiment-index-link { width: max-content; margin-top: 30px; border-color: var(--paper); background: var(--paper); color: var(--ink); }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-actions .experiment-index-link { margin-top: 30px; }
.project-secondary { background: transparent; color: var(--paper); }
.route-card { display: flex; min-height: 250px; flex-direction: column; }
.route-card .card-index { margin-bottom: auto; }
.route-card a { margin-top: 28px; font-weight: 850; text-underline-offset: 5px; }
.privacy-note { margin-top: 48px; padding: 28px; border: 1px solid var(--ink); background: var(--acid); }
.privacy-note strong { display: block; margin-bottom: 8px; }
.not-found { min-height: calc(100vh - 104px); padding: 80px 28px; display: grid; place-items: center; }
.not-found-card { width: min(800px, 100%); padding: 54px; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--ink); }
.error-code { margin: 0 0 28px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.12em; }
.not-found h1 { font-size: clamp(3rem, 8vw, 6rem); }
.not-found p { max-width: 590px; margin: 28px 0; color: var(--muted); }

@media (max-width: 680px) {
  .page-hero, .page-section { padding-left: 20px; padding-right: 20px; }
  .manifesto-grid, .role-grid, .route-grid, .status-grid { grid-template-columns: 1fr; }
  .empty-stage { padding: 30px 22px; }
  .not-found { padding: 52px 20px; }
  .not-found-card { padding: 34px 24px; box-shadow: 7px 7px 0 var(--ink); }
}

/* Experiment article */
.article-main {
  overflow: hidden;
}

.article-hero {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: 104px 28px 88px;
  border-bottom: 1px solid var(--ink);
}

.article-hero::after {
  content: "01";
  position: absolute;
  z-index: -1;
  right: 12px;
  bottom: -0.22em;
  font-family: Arial, sans-serif;
  font-size: clamp(12rem, 30vw, 27rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.1em;
  color: var(--blue);
  opacity: 0.14;
}

.article-hero h1 {
  max-width: 1050px;
  font-size: clamp(3.6rem, 9vw, 8.4rem);
  line-height: 0.94;
  letter-spacing: -0.078em;
}

.article-deck {
  max-width: 680px;
  margin: 38px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 46px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.article-meta span {
  padding: 8px 11px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.article-body {
  padding: 88px 0 120px;
}

.article-copy {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
}

.article-opening {
  font-size: clamp(1.08rem, 1.7vw, 1.25rem);
}

.article-opening p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.article-copy section {
  margin-top: 104px;
}

.article-copy h2,
.experiment-panel-heading h2 {
  margin: 0 0 34px;
  font-size: clamp(2.35rem, 5.5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.article-copy p {
  margin: 0 0 1.55em;
}

.article-pause {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.article-copy blockquote {
  margin: 46px 0;
  padding: 30px 0 30px 30px;
  border-left: 8px solid var(--acid);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.score-line {
  min-height: 150px;
  margin: 42px 0 !important;
  padding: 24px 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--ink);
  background: var(--blue);
}

.score-line span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.score-line strong {
  font-family: Arial, sans-serif;
  font-size: clamp(4.2rem, 12vw, 7.5rem);
  line-height: 0.75;
  letter-spacing: -0.09em;
}

.experiment-panel {
  width: min(var(--max), calc(100% - 56px));
  margin: 92px auto 116px;
  padding: 34px;
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 var(--ink);
}

.experiment-panel.phase-one {
  background: var(--blue);
}

.experiment-panel.phase-two {
  background: var(--acid);
  box-shadow: 12px 12px 0 var(--coral);
}

.experiment-panel-heading {
  padding: 4px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.experiment-panel-heading span {
  display: block;
  margin-bottom: 18px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.experiment-panel-heading h2 {
  margin-bottom: 0;
}

.experiment-panel-heading p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.experiment-embed {
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.experiment-embed iframe {
  display: block;
  width: 100%;
  height: min(1020px, 92vw);
  min-height: 760px;
  border: 0;
  background: var(--paper);
}

.experiment-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  padding: 15px 18px 4px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
}

.experiment-open:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.stage-number {
  margin: 24px 0 52px !important;
  font-family: Arial, sans-serif;
  font-size: clamp(8rem, 28vw, 15rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.1em;
  color: var(--coral);
  -webkit-text-stroke: 2px var(--ink);
}

.article-conclusion {
  margin-top: 124px !important;
  padding-top: 68px;
  border-top: 12px solid var(--ink);
}

.article-conclusion .kicker,
.experiment-data .kicker {
  margin-bottom: 20px;
}

.conclusion-line {
  margin-top: 42px !important;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--acid);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 850;
}

.experiment-data {
  margin-top: 124px !important;
  padding: 38px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.experiment-data h2 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}

.experiment-data dl {
  margin: 42px 0 0;
  border-top: 1px solid rgba(244, 241, 232, 0.35);
}

.experiment-data dl div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid rgba(244, 241, 232, 0.25);
}

.experiment-data dt {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: var(--acid);
}

.experiment-data dd {
  margin: 0;
}

.experiment-data code {
  color: var(--acid);
}

.prompt-details {
  margin-top: 34px !important;
}

.prompt-details details {
  border: 1px solid var(--ink);
  background: var(--white);
}

.prompt-details summary {
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.prompt-details details[open] summary {
  border-bottom: 1px solid var(--ink);
}

.prompt-details blockquote {
  margin: 0;
  padding: 26px;
  border: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0;
}

.article-back {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.article-back a {
  font-family: var(--font-display);
  font-weight: 900;
  text-underline-offset: 5px;
}

@media (max-width: 760px) {
  .article-hero {
    padding: 72px 20px 64px;
  }

  .article-hero h1 {
    font-size: clamp(3.25rem, 16vw, 5.6rem);
  }

  .article-body {
    padding-top: 64px;
  }

  .article-copy {
    width: min(100% - 40px, 760px);
  }

  .article-copy section {
    margin-top: 80px;
  }

  .experiment-panel {
    width: calc(100% - 40px);
    margin-top: 68px;
    margin-bottom: 90px;
    padding: 18px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .experiment-panel.phase-two {
    box-shadow: 7px 7px 0 var(--coral);
  }

  .experiment-panel-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .experiment-embed {
    padding: 5px;
  }

  .experiment-embed iframe {
    height: 760px;
    min-height: 0;
  }

  .score-line {
    min-height: 128px;
    padding: 22px;
  }

  .experiment-data {
    padding: 28px 22px;
  }

  .experiment-data dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* EXP-002 article */
.article-hero.exp-002::after {
  content: "02";
  color: var(--coral);
}

.exp002-result-strip {
  width: min(var(--max), calc(100% - 56px));
  margin: 86px auto 108px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.exp002-result-strip article {
  min-height: 290px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(244, 241, 232, 0.45);
}

.exp002-result-strip article:last-child {
  border-right: 0;
  background: var(--acid);
  color: var(--ink);
}

.exp002-result-strip span,
.exp002-scenes span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.exp002-result-strip strong {
  margin: auto 0 14px;
  font-family: Arial, sans-serif;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.75;
  letter-spacing: -0.09em;
  color: var(--acid);
}

.exp002-result-strip article:last-child strong {
  color: var(--ink);
}

.exp002-result-strip p {
  margin: 0;
  color: #c7c7bd;
  font-weight: 750;
}

.exp002-result-strip article:last-child p {
  color: var(--ink);
}

.article-list {
  margin: 34px 0 42px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.article-list li {
  padding: 16px 8px 16px 38px;
  position: relative;
  border-bottom: 1px solid var(--ink);
  font-weight: 750;
}

.article-list li::before {
  content: "↳";
  position: absolute;
  left: 4px;
  color: var(--coral);
  font-family: ui-monospace, monospace;
  font-weight: 900;
}

.article-wide-figure {
  width: min(1280px, calc(100% - 56px));
  margin: 108px auto 124px;
}

.article-wide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.article-wide-figure figcaption {
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-top: 0;
  background: var(--white);
  color: var(--muted);
  font-size: 0.84rem;
}

.article-wide-figure figcaption strong {
  color: var(--ink);
}

.timeline-figure {
  max-width: 1180px;
}

.exp002-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.exp002-scenes article {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.exp002-scenes article:nth-child(2),
.exp002-scenes article:nth-child(3) {
  background: var(--blue);
}

.exp002-scenes article:nth-child(4),
.exp002-scenes article:nth-child(5) {
  background: var(--coral);
}

.exp002-scenes article:last-child {
  background: var(--acid);
}

.exp002-scenes h3 {
  margin: 50px 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.exp002-scenes p {
  margin: 0;
  font-size: 0.9rem;
}

.observer-button {
  width: max-content;
  gap: 28px;
  background: var(--blue);
}

.exp002-details details + details {
  border-top: 0;
}

.details-copy {
  padding: 26px;
}

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

.term-list {
  margin: 0;
}

.term-list div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.term-list div:last-child {
  border-bottom: 0;
}

.term-list dt {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.term-list dd {
  margin: 0;
}

.archive-callout {
  margin-top: 48px !important;
  padding: 38px;
  border: 1px solid var(--ink);
  background: var(--acid);
}

.archive-callout h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.archive-placeholder {
  width: max-content;
  margin-top: 12px;
  background: var(--ink);
  color: var(--paper);
}

/* EXP-002 World Observer */
.observer-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 120px;
}

.observer-hero {
  padding: 96px 0 86px;
  border-bottom: 1px solid var(--ink);
}

.observer-hero h1 {
  max-width: 1050px;
  font-size: clamp(3.5rem, 9vw, 8rem);
}

.observer-hero > p:last-child {
  max-width: 760px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.observer-controls {
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 54px;
  border-bottom: 1px solid var(--ink);
}

.observer-controls h2,
.observer-stage h2,
.observer-explainer h2 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.observer-controls > div > p:last-child {
  max-width: 600px;
  color: var(--muted);
}

.observer-input-group label {
  display: block;
  margin-bottom: 10px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.observer-input-group > div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.observer-input-group input,
.observer-input-group button,
.observer-presets button {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
}

.observer-input-group input {
  min-width: 0;
  padding: 10px 14px;
  background: var(--white);
}

.observer-input-group button {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.observer-error {
  min-height: 1.6em;
  margin: 10px 0 0;
  color: #a12a1c;
  font-weight: 750;
}

.observer-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.observer-presets button {
  min-height: 42px;
  padding: 8px 13px;
  background: transparent;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.observer-presets button:hover {
  background: var(--acid);
}

.observer-stage {
  margin-top: 76px;
  padding: 38px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 12px 12px 0 var(--acid);
}

.observer-stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.observer-mark-status {
  max-width: 380px;
  margin: 0;
  padding: 12px 15px;
  border: 1px solid #646a64;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.observer-mark-status[data-active="true"] {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--ink);
}

.observer-global {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.observer-global article,
.observer-register-grid article {
  padding: 24px;
  border: 1px solid #555b55;
  background: #1a1e19;
}

.observer-global span,
.observer-register-grid span {
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--acid);
}

.observer-global strong {
  display: block;
  margin-top: 28px;
  font-family: Arial, sans-serif;
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.observer-global p {
  max-width: 410px;
  margin: 25px 0 0;
  color: #bfc2ba;
  font-size: 0.82rem;
}

.observer-register-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.observer-register-grid p {
  margin: 17px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #bfc2ba;
  font-family: ui-monospace, monospace;
}

.observer-register-grid strong {
  color: var(--paper);
  font-size: 1.35rem;
}

.observer-relation-note {
  margin-top: 14px;
  padding: 24px;
  border: 1px solid #555b55;
  background: #1a1e19;
}

.observer-relation-note strong {
  font-family: ui-monospace, monospace;
  color: var(--acid);
  letter-spacing: 0.08em;
}

.observer-relation-note p {
  max-width: 800px;
  margin: 10px 0 0;
  color: #bfc2ba;
  font-size: 0.86rem;
}

.observer-explainer {
  padding: 100px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 70px;
  border-bottom: 1px solid var(--ink);
}

.observer-explainer p {
  margin-top: 0;
  color: var(--muted);
}

.observer-back {
  padding-top: 32px;
}

.observer-back a {
  font-family: var(--font-display);
  font-weight: 900;
  text-underline-offset: 5px;
}

@media (max-width: 760px) {
  .exp002-result-strip {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
  }

  .exp002-result-strip article {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, 0.45);
  }

  .exp002-result-strip article:last-child {
    border-bottom: 0;
  }

  .article-wide-figure {
    width: calc(100% - 24px);
    margin-top: 76px;
    margin-bottom: 88px;
  }

  .exp002-scenes {
    grid-template-columns: 1fr;
  }

  .observer-button,
  .archive-placeholder {
    width: 100%;
  }

  .term-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .archive-callout {
    padding: 28px 22px;
  }

  .observer-main {
    padding: 0 20px 88px;
  }

  .observer-hero {
    padding: 68px 0 62px;
  }

  .observer-controls,
  .observer-explainer {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .observer-input-group > div {
    grid-template-columns: 1fr;
  }

  .observer-stage {
    padding: 22px;
    box-shadow: 7px 7px 0 var(--acid);
  }

  .observer-stage-head {
    align-items: start;
    flex-direction: column;
  }

  .observer-global,
  .observer-register-grid {
    grid-template-columns: 1fr;
  }
}
