:root {
  --ink: #050505;
  --text: #111111;
  --muted: #6d6d6d;
  --subtle: #9b9b9b;
  --line: rgba(5, 5, 5, 0.1);
  --soft-line: rgba(5, 5, 5, 0.06);
  --bg: #fbfbfa;
  --panel: #ffffff;
  --wash: #f4f4f2;
  --dark: #0b0b0b;
  --dark-2: #171717;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.1);
  color: var(--text);
  background: var(--bg);
  font-family: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 0, 0, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34%, #f1f1ef 100%);
}

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

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(calc(100% - 36px), 1120px);
  min-height: 58px;
  margin: 14px auto 0;
  padding: 8px 9px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(22px) saturate(160%);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0 9%, transparent 10%),
    linear-gradient(145deg, #050505, #6b6b6b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

nav {
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

nav a:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
}

.hero {
  display: grid;
  justify-items: center;
  gap: 30px;
  padding: 96px max(20px, calc((100vw - 1180px) / 2)) 82px;
  text-align: center;
}

.hero-head {
  width: min(100%, 1080px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 20px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
}

h1,
h2 {
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  margin: 0 auto 10px;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.02;
}

.typewriter span {
  display: inline;
}

.type-caret {
  display: inline-block;
  width: 0.07em;
  height: 0.78em;
  margin-left: 0.05em;
  border-radius: 999px;
  background: var(--ink);
  transform: translateY(0.08em);
  animation: caret-blink 0.8s step-end infinite;
}

.typewriter.done .type-caret {
  display: none;
}

.hero-copy {
  width: min(100%, 840px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-quote {
  margin: 0;
  padding: 26px 28px 4px;
}

.hero-quote span {
  display: block;
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: clamp(20px, 2.15vw, 30px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.16;
}

.hero-quote cite {
  display: block;
  margin-top: 12px;
  color: var(--subtle);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
}

.hero-quote cite::before {
  content: "";
}

.lede {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100%, 760px);
  min-height: 62px;
  margin: 28px auto 0;
  padding: 7px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #f4f4f2;
}

.button {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.button.primary,
.button.small {
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.button.primary:hover,
.button.small:hover {
  background: #2a2a2a;
}

.button.ghost {
  color: var(--muted);
  background: transparent;
}

.button.ghost:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.06);
}

.button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.method,
.arena,
.architecture,
.gallery {
  padding: 104px max(20px, calc((100vw - 1180px) / 2));
}

.method {
  background: rgba(255, 255, 255, 0.5);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading.centered {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 46px;
  align-items: end;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1;
}

.section-heading p:not(.eyebrow) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

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

.principle-grid article,
.demo-card {
  border: 1px solid var(--soft-line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.06);
}

.principle-grid article {
  padding: 28px;
}

.principle-grid span {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
}

.principle-grid h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.principle-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}

.arena-line {
  max-width: 1040px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.arena-line p {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.arena-line strong {
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.arena-line span {
  display: block;
}

.architecture-panel {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.08);
}

.architecture-panel svg {
  display: block;
  width: 100%;
  height: auto;
}

.arch-node {
  cursor: pointer;
  outline: none;
}

.arch-hitbox {
  fill: transparent;
  pointer-events: all;
}

.arch-node rect,
.arch-node.svg-arrow {
  transition: opacity 180ms ease, stroke-width 180ms ease, filter 180ms ease;
}

.arch-node:hover rect:not(.arch-hitbox),
.arch-node:focus-visible rect:not(.arch-hitbox),
.arch-node.is-active rect:not(.arch-hitbox) {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.11));
}

.arch-node.svg-arrow:hover,
.arch-node.svg-arrow:focus-visible,
.arch-node.svg-arrow.is-active {
  opacity: 1;
  stroke-width: 3.2;
}

.arch-detail {
  position: absolute;
  left: 24px;
  top: 24px;
  width: min(360px, calc(100% - 48px));
  min-height: 164px;
  padding: 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--tip-x, 0), var(--tip-y, 0), 0) translateY(10px) scale(0.98);
  transition: opacity 160ms ease, transform 180ms ease;
  z-index: 3;
}

.arch-detail.is-visible {
  opacity: 1;
  transform: translate3d(var(--tip-x, 0), var(--tip-y, 0), 0) translateY(0) scale(1);
}

.arch-detail-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
}

.arch-detail h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
}

.arch-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.44;
}

.svg-overline {
  fill: #9a9a9a;
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
}

.svg-label {
  fill: #777777;
  font-size: 18px;
  font-weight: 500;
}

.svg-label.light,
.svg-title.light,
.svg-copy.light {
  fill: #f5f5f2;
}

.svg-title {
  fill: #0b0b0b;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  letter-spacing: 0;
}

.svg-copy,
.svg-step {
  fill: #737373;
  font-size: 17px;
}

.svg-step.middle,
.svg-chip.middle {
  text-anchor: middle;
}

.svg-arrow {
  fill: none;
  stroke: #111111;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.svg-arrow.return {
  stroke-width: 2.2;
  opacity: 0.78;
}

.svg-chip {
  fill: #111111;
  font-size: 19px;
  font-weight: 500;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.demo-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
}

.demo-card-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

.demo-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.demo-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.demo-card p {
  min-height: 44px;
  margin: 14px 20px 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.demo-card small {
  margin: 0 20px 16px;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}

iframe {
  width: 100%;
  height: 560px;
  min-height: 560px;
  border: 0;
  background: #000;
}

@media (max-width: 980px) {
  .section-heading.split,
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: relative;
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    width: calc(100% - 28px);
    margin-top: 10px;
    border-radius: 28px;
  }

  .brand {
    white-space: normal;
  }

  nav {
    flex-wrap: wrap;
    gap: 4px;
  }

  .hero {
    padding-top: 62px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  h2 {
    font-size: 34px;
    line-height: 1;
  }

  .hero-copy {
    border-radius: 26px;
    padding: 12px;
  }

  .hero-quote {
    padding: 20px 16px 0;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
  }

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

  .arena-line p {
    display: block;
    font-size: 16px;
  }

  .arena-line strong {
    display: block;
    margin-bottom: 6px;
  }

  .arch-detail {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    width: auto;
    margin: 0 14px 14px;
    opacity: 1;
    transform: none;
  }

  .demo-card-topbar {
    flex-direction: column;
  }

  iframe {
    height: 520px;
    min-height: 520px;
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .type-caret {
    display: none;
  }
}
