:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #68716e;
  --soft: #3f4a47;
  --paper: #f7f3ea;
  --paper-2: #efe8db;
  --surface: #fffaf0;
  --surface-2: #f1eadc;
  --line: rgba(24, 32, 31, 0.14);
  --teal: #386f6b;
  --amber: #9a7132;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 46px);
  background: linear-gradient(180deg, rgba(247, 243, 234, 0.94), rgba(247, 243, 234, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(56, 111, 107, 0.32);
  background: rgba(255, 250, 240, 0.58);
  color: var(--teal);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
}

nav a,
footer a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
footer a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(247, 243, 234, 0.98) 0%, rgba(247, 243, 234, 0.86) 38%, rgba(247, 243, 234, 0.16) 76%),
    linear-gradient(180deg, rgba(247, 243, 234, 0.24) 0%, rgba(247, 243, 234, 0.92) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding: 126px clamp(22px, 6vw, 76px) 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.05rem, 4.25vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.keep-together {
  white-space: nowrap;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2.15vw, 1.8rem);
  line-height: 1.18;
}

.summary {
  max-width: 620px;
  margin-bottom: 26px;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 111, 107, 0.56);
}

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

.button.secondary {
  background: rgba(255, 250, 240, 0.72);
  color: var(--ink);
}

.intro-band {
  padding: clamp(34px, 6vw, 70px) clamp(22px, 6vw, 76px);
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 1080px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.38rem, 2.65vw, 2.55rem);
  line-height: 1.14;
}

.section {
  width: min(var(--max), calc(100vw - 44px));
  margin: 0 auto;
  padding: clamp(68px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.two-column,
.paper-section,
.reference-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.prose p {
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.72;
}

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

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.chain {
  position: relative;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(56, 111, 107, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(154, 113, 50, 0.1), transparent 42%),
    var(--surface);
  border: 1px solid var(--line);
}

.chain-node {
  min-height: 134px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(24, 32, 31, 0.12);
  background: rgba(255, 250, 240, 0.64);
}

.chain-node span {
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chain-node strong {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  line-height: 1.18;
}

.chain-node.is-outcome {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.chain-line {
  width: 1px;
  height: 54px;
  margin: 0 auto;
  background: linear-gradient(var(--teal), var(--amber));
}

.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contribution-list {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.contribution-list article {
  min-height: 286px;
  padding: 24px;
  background: var(--paper);
}

.contribution-list span {
  display: block;
  margin-bottom: 74px;
  color: var(--teal);
  font-weight: 800;
}

.contribution-list p {
  color: var(--muted);
  line-height: 1.58;
}

.model-section {
  display: grid;
  gap: 44px;
}

.model-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.model-list div {
  min-height: 210px;
  padding: 22px;
  background: var(--surface);
}

dt {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 760;
}

dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.record {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.05fr)
    minmax(135px, 0.75fr)
    minmax(190px, 1fr)
    minmax(150px, 0.85fr)
    minmax(140px, 0.8fr)
    minmax(250px, 1.25fr);
  gap: 1px;
  margin-top: clamp(32px, 5vw, 56px);
  background: var(--line);
}

.record div {
  min-width: 0;
  min-height: 154px;
  padding: 22px;
  background: var(--surface-2);
}

.record span {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.88rem;
}

.record strong {
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.domain-name {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

pre {
  min-width: 0;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--soft);
  font: 0.92rem/1.62 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.planned-structure {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 92px);
  margin-top: clamp(34px, 5vw, 58px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line);
}

.planned-structure h3 {
  max-width: 520px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
}

.planned-structure ol {
  columns: 2;
  column-gap: clamp(30px, 5vw, 64px);
  margin: 0;
  padding-left: 1.35rem;
  color: var(--soft);
}

.planned-structure li {
  break-inside: avoid;
  margin-bottom: 0.72rem;
  padding-left: 0.18rem;
  line-height: 1.45;
}

.structure-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.55;
}

footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

footer p {
  margin: 0;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .button,
  .reveal {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .two-column,
  .paper-section,
  .reference-section,
  .planned-structure {
    grid-template-columns: 1fr;
  }

  .chain-grid,
  .contribution-list,
  .model-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  }

  .planned-structure ol {
    columns: 1;
  }

  .contribution-list article,
  .model-list div {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(247, 243, 234, 0.98), rgba(247, 243, 234, 0.8)),
      linear-gradient(180deg, rgba(247, 243, 234, 0.2), rgba(247, 243, 234, 0.94));
  }

  .hero-content {
    padding: 104px 20px 52px;
  }

  h1 {
    font-size: clamp(2.55rem, 12.5vw, 3.6rem);
    line-height: 1;
  }

  .keep-together {
    white-space: normal;
  }

  .summary {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
  }

  .chain-grid,
  .contribution-list,
  .model-list {
    grid-template-columns: 1fr;
  }

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

  .contribution-list article {
    min-height: 210px;
  }

  .contribution-list span {
    margin-bottom: 44px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  nav {
    display: none;
  }

  .button {
    width: 100%;
  }
}
