:root {
  --cream: #fff7ec;
  --paper: #fffcf6;
  --ink: #302016;
  --muted: #6e5143;
  --accent: #a43e25;
  --leaf: #414d2a;
  --leaf-dark: #303a20;
  --line: #e6cdb8;
  --peach: #f4c5a6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[aria-disabled="true"] { cursor: default; }
header, .hero, .vision, .portal, footer { width: min(1120px, 88%); margin-inline: auto; }

header, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-block: 20px;
}
header { border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 21px; font-weight: 950; letter-spacing: -.055em; }
.brand::before { content: '✦'; color: var(--accent); margin-right: 9px; font-size: 14px; vertical-align: 2px; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 34px); font-size: 13px; font-weight: 650; }
nav a:not(.nav-pill):hover { color: var(--accent); }
.nav-pill, .eyebrow, .section-kicker, .art-label, .coordinate, .micro, .scroll, .link-state, .ca-box div > span {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .12em;
}
.nav-pill { color: var(--leaf-dark); background: #e8e9d7; padding: 8px 13px; border-radius: 999px; white-space: nowrap; }
.nav-pill:hover { background: #dbe0c5; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  padding-block: clamp(38px, 6vw, 82px) 28px;
}
.eyebrow, .section-kicker, .micro { color: var(--accent); }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; }
.hero .eyebrow::before { content: ''; background: var(--accent); width: 7px; height: 7px; border-radius: 50%; }
.hero h1 {
  font-size: clamp(58px, 10vw, 150px);
  font-weight: 950;
  line-height: .9;
  letter-spacing: -.09em;
  margin: 17px 0 22px;
}
.hero-sub { color: var(--muted); font-size: clamp(21px, 3vw, 37px); line-height: 1.22; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.button, .text-link, .ca-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}
.primary, .ca-box button { color: #fffdf3; background: var(--leaf); border: 1px solid transparent; }
.primary:hover, .ca-box button:not(:disabled):hover { background: var(--leaf-dark); }
.text-link { border: 1px solid #cba68d; color: var(--ink); }
.text-link[href]:hover { background: #f9e1cc; }
.text-link[aria-disabled="true"] { opacity: .65; }
.micro { margin-top: 25px; font-size: 10px; }
.hero-art {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 10px 0;
  border-radius: 28px;
  box-shadow: 0 20px 44px #78441d16;
}
.art-shell {
  aspect-ratio: 1.16;
  position: relative;
  overflow: hidden;
  background: var(--peach);
  border-radius: 20px;
}
.art-shell img {
  position: absolute;
  width: 165%;
  max-width: none;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -51%);
}
.art-label, .coordinate { display: inline-block; padding: 12px 5px; color: var(--muted); }
.art-label { color: var(--ink); }
.coordinate { float: right; font-size: 9px; line-height: 1.95; }
.scroll { grid-column: 1 / -1; justify-self: start; color: var(--muted); }
.scroll span { padding-left: 7px; }
.ticker { padding: 13px 6%; background: #f6dec2; border-block: 1px solid #ebc9a8; color: #743923; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em; }

.vision, .portal { padding-top: clamp(58px, 8vw, 100px); }
.section-kicker { margin-bottom: 15px; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
h2 { font-size: clamp(35px, 6vw, 66px); font-weight: 750; line-height: 1.03; letter-spacing: -.045em; margin: 0; }
h2 em { color: var(--accent); font-weight: 500; }
.vision-grid p, .section-sub, .contract p { color: var(--muted); margin: 0 0 12px; }
.signature { color: var(--accent); font-size: 18px; font-style: italic; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.principles > div { padding: 20px; background: #f8e8d7; border: 1px solid var(--line); border-radius: 17px; }
.principles > div:nth-child(2) { background: #f9dfcf; }
.principles > div:nth-child(3) { background: #ececda; }
h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; }
.principles p, .portal-card p { margin: 0; color: var(--muted); font-size: 13px; }
.section-sub { margin-top: 12px; }
.portal-links { margin-top: 23px; display: grid; gap: 10px; }
.portal-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
}
.portal-card[href]:hover { border-color: #ab694d; background: #fff0e1; }
.portal-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  background: #f6e3d0;
  border-radius: 12px;
  color: var(--ink);
  font-size: 23px;
}
.pump-icon { width: 29px; height: auto; }
.link-state { margin-left: auto; color: var(--leaf-dark); text-align: right; font-size: 9px; }
.arrow { color: var(--accent); font-size: 21px; }

.contract {
  width: min(1120px, 88%);
  margin: clamp(56px, 8vw, 100px) auto 40px;
  padding: clamp(24px, 5vw, 60px);
  border: 1px solid #d5d8ba;
  border-radius: 26px;
  background: #edf0dc;
  text-align: center;
}
.contract h2 { margin: 12px 0; }
.ca-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 690px;
  margin: 23px auto 10px;
  padding: 12px 14px;
  border: 1px solid #d5d8ba;
  border-radius: 17px;
  background: var(--paper);
  text-align: left;
}
.ca-box > div { min-width: 0; }
.ca-box div > span { display: block; color: var(--muted); font-size: 9px; }
.ca-box code { font-family: inherit; font-size: 13px; overflow-wrap: anywhere; }
.ca-box button { cursor: pointer; white-space: nowrap; }
.ca-box button:disabled { color: #525941; background: #e6e8dc; cursor: default; }
.contract .contract-hint, #copy-status, footer p, footer > span { font-size: 12px; }
#copy-status { min-height: 19px; color: var(--leaf-dark); }
footer { border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
.cursor-glow { display: none; }

@media (max-width: 680px) {
  .hero, .vision-grid, .principles { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(58px, 18vw, 105px); }
  .hero-art { width: 100%; max-width: 480px; }
  .vision-grid { gap: 16px; }
  .principles { margin-top: 24px; }
  .ca-box { align-items: stretch; flex-direction: column; }
}
@media (max-width: 380px) {
  header { gap: 8px; }
  nav { font-size: 11px; gap: 9px; }
  .nav-pill { font-size: 9px; padding-inline: 8px; }
  .portal-card { gap: 9px; padding-inline: 9px; }
  .coordinate { letter-spacing: .05em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-art, .scroll {
    animation: monki-arrive 640ms cubic-bezier(.2, .75, .3, 1) backwards;
  }
  .hero-copy h1 { animation-delay: 70ms; }
  .hero-copy .hero-sub { animation-delay: 140ms; }
  .hero-copy .hero-actions { animation-delay: 210ms; }
  .hero-copy .micro, .scroll { animation-delay: 280ms; }
  .hero-art { animation-delay: 120ms; }
  .art-shell img { animation: monki-portrait 1500ms ease-out 120ms backwards; }
  .scroll span { display: inline-block; animation: monki-nudge 900ms ease-in-out 700ms 2; }

  .reveal.is-visible { animation: monki-arrive 560ms cubic-bezier(.2, .75, .3, 1); }
  .reveal:focus-within { animation: none; }

  .nav-pill, .button, .text-link, .ca-box button, .portal-card {
    transition: background-color 180ms ease, border-color 180ms ease,
      box-shadow 180ms ease, translate 180ms ease;
  }
  .button:focus-visible, .text-link[href]:focus-visible,
  .portal-card[href]:focus-visible, .ca-box button:focus-visible {
    translate: 0 -2px;
    box-shadow: 0 6px 14px #78441d1a;
  }
  @media (hover: hover) {
    .nav-pill:hover, .button:hover, .text-link[href]:hover,
    .portal-card[href]:hover, .ca-box button:not(:disabled):hover {
      translate: 0 -2px;
      box-shadow: 0 6px 14px #78441d1a;
    }
    .portal-card .arrow { transition: translate 180ms ease; }
    .portal-card[href]:hover .arrow { translate: 3px -3px; }
  }
}

@keyframes monki-arrive {
  from { opacity: .25; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes monki-portrait {
  from { scale: 1.08; }
  to { scale: 1; }
}

@keyframes monki-nudge {
  50% { transform: translateY(4px); }
}
