:root {
  color-scheme: light;
  --ink: #15130e;
  --muted: #6f675a;
  --paper: #f7f0e3;
  --paper-strong: #fffaf0;
  --line: rgba(21, 19, 14, 0.14);
  --accent: #d4472f;
  --accent-dark: #973121;
  --signal: #f2b84b;
  --sage: #d9dfc7;
  --shadow: 0 28px 80px rgba(64, 48, 24, 0.18);
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(242, 184, 75, 0.34), transparent 34rem),
    radial-gradient(circle at 82% 10%, rgba(212, 71, 47, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbf4e7 0%, var(--paper) 46%, #eee2cf 100%);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem);
  color: var(--ink);
  background: rgba(247, 240, 227, 0.68);
  border-bottom: 1px solid rgba(21, 19, 14, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.48rem;
  background:
    linear-gradient(135deg, transparent 0 18%, rgba(255,255,255,0.45) 18% 19%, transparent 19%),
    linear-gradient(135deg, #262016, #d4472f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 22px rgba(151, 49, 33, 0.22);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 0 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.4rem);
  font-size: 0.92rem;
  color: var(--muted);
}

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

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7.5rem clamp(1.25rem, 4vw, 3.5rem) 4rem;
  overflow: hidden;
}

.hero-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.8rem, 13vw, 10rem);
  line-height: 0.84;
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.92;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1;
}

.lead {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.58);
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  color: #fffaf0;
  background: var(--ink);
  border-color: var(--ink);
}

.button:hover {
  transform: translateY(-2px);
  background: #fffaf0;
  border-color: rgba(21, 19, 14, 0.28);
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.sim-stage {
  position: relative;
  min-height: 38rem;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.orb {
  position: absolute;
  width: min(40vw, 31rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at 36% 30%, rgba(255,255,255,0.92), rgba(242,184,75,0.52) 38%, rgba(212,71,47,0.12) 67%, transparent 72%);
  filter: blur(2px);
  animation: breathe 7s ease-in-out infinite;
}

.sim-card {
  position: relative;
  width: min(32rem, 88vw);
  min-height: 24rem;
  padding: 2.4rem;
  border: 1px solid rgba(21, 19, 14, 0.18);
  border-radius: 2.2rem;
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(255,255,255,0.42) 10% 10.45%, transparent 10.45%),
    linear-gradient(145deg, #fff7e8, #ded0b8);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 0 100%);
  transform: rotateX(7deg) rotateY(-11deg) rotateZ(2deg);
  animation: enterFloat 900ms cubic-bezier(.2,.8,.2,1) both, cardDrift 8s ease-in-out infinite 1s;
}

.chip {
  width: 7.4rem;
  height: 5.8rem;
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, transparent 31%, rgba(21,19,14,0.22) 31% 33%, transparent 33% 64%, rgba(21,19,14,0.18) 64% 66%, transparent 66%),
    linear-gradient(0deg, transparent 29%, rgba(21,19,14,0.2) 29% 31%, transparent 31% 62%, rgba(21,19,14,0.16) 62% 64%, transparent 64%),
    linear-gradient(135deg, #d6a63a, #f4d788);
  border: 1px solid rgba(87, 60, 18, 0.32);
}

.sim-meta {
  margin-top: 3.8rem;
  display: grid;
  gap: 1.2rem;
}

.number-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(21, 19, 14, 0.13);
}

.number-row strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.number-row span {
  color: var(--accent-dark);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.stamp {
  justify-self: start;
  padding: 0.45rem 0.7rem;
  border: 2px solid var(--accent);
  border-radius: 0.28rem;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.section {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section.split {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.rail {
  display: grid;
  gap: 1.4rem;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.4rem, 4vw, 3rem);
}

.rail-item {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.rail-item time,
.rail-item .label {
  color: var(--accent-dark);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.rail-item p {
  margin: 0.2rem 0 0;
}

.policy-shell {
  width: min(900px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 9rem 0 5rem;
}

.policy-shell h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 10vw, 7.2rem);
}

.policy-shell .lead {
  max-width: 44rem;
}

.content-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.content-block h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.content-block h3 {
  margin-top: 2rem;
}

.content-block ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.75;
}

.contact-strip {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.contact-strip a {
  color: var(--accent-dark);
  font-weight: 850;
}

.footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.reveal {
  animation: reveal 700ms cubic-bezier(.2,.8,.2,1) both;
}

.reveal.delay {
  animation-delay: 120ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes enterFloat {
  from {
    opacity: 0;
    transform: rotateX(12deg) rotateY(-20deg) rotateZ(4deg) translateY(28px) scale(0.96);
  }
}

@keyframes cardDrift {
  0%, 100% {
    transform: rotateX(7deg) rotateY(-11deg) rotateZ(2deg) translateY(0);
  }
  50% {
    transform: rotateX(5deg) rotateY(-8deg) rotateZ(1deg) translateY(-14px);
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.84;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: sticky;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-grid,
  .section.split {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(4.2rem, 22vw, 6.5rem);
  }

  .sim-stage {
    min-height: 28rem;
  }

  .sim-card {
    min-height: 21rem;
    padding: 1.7rem;
  }

  .rail {
    border-left: 0;
    padding-left: 0;
  }

  .rail-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
