:root {
  --bg: #f8f7f3;
  --paper: #fffefb;
  --ink: #191816;
  --muted: #605e58;
  --line: #d7d2c8;
  --accent: #456c67;
  --accent-strong: #244f49;
  --max: 1120px;
  --header-h: 72px;
  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;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: 0.6rem 0.85rem;
  border-radius: 0.25rem;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  color: white;
}

.site-header.solid {
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1rem, 2vw, 1.18rem);
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.98rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.nav-toggle span:first-child {
  top: 0.95rem;
}

.nav-toggle span:last-child {
  top: 1.45rem;
}

.nav-open .nav-toggle span:first-child {
  top: 1.2rem;
  transform: rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  top: 1.2rem;
  transform: rotate(-45deg);
}

.hero {
  min-height: min(760px, 92svh);
  position: relative;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 28%;
  filter: grayscale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.38)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  width: min(680px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 clamp(4rem, 9vw, 7rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #c9ddd8;
}

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

h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  line-height: 0.96;
  margin-bottom: 1.1rem;
  font-weight: 780;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  margin-bottom: 1.25rem;
  font-weight: 760;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  padding: 0.72rem 1rem;
  text-decoration: none;
  border-radius: 0.2rem;
  font-weight: 700;
}

.button.ghost {
  background: transparent;
  color: white;
}

.intro-section,
.content-section,
.page-main {
  width: min(var(--max), calc(100% - clamp(2rem, 8vw, 6rem)));
  margin-inline: auto;
}

.intro-section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--line);
}

.measure {
  max-width: 760px;
}

.intro-copy p {
  color: #3d3b36;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.35;
  margin-bottom: 1.25rem;
  font-weight: 650;
}

.content-section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.6rem;
}

.details-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.45rem 0;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  font-weight: 720;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  width: 1.5rem;
  flex: 0 0 auto;
  color: var(--muted);
  text-align: center;
}

details[open] summary::after {
  content: "-";
}

.detail-body {
  padding: 0 0 2.2rem;
  color: #403e39;
}

.detail-body p,
.detail-body li {
  font-size: 1rem;
}

.detail-body ul {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
}

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

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.project-list article,
.timeline article {
  padding-top: 0.25rem;
}

.timeline {
  display: grid;
  gap: 1.8rem;
}

.timeline p {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 700;
}

.token-line {
  max-width: 980px;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  line-height: 1.85;
}

.page-main {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.page-intro {
  max-width: 760px;
  margin-bottom: 2.8rem;
}

.page-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.embed-section {
  min-height: 760px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.legal-page {
  display: flex;
  justify-content: center;
}

.legal-copy {
  max-width: 820px;
  color: #36342f;
}

.legal-copy h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  margin-bottom: 0.8rem;
}

.legal-copy h2 {
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  margin: 2.3rem 0 0.7rem;
}

.legal-copy p,
.legal-copy li {
  font-size: 1.02rem;
}

.updated {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  width: min(var(--max), calc(100% - clamp(2rem, 8vw, 6rem)));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  color: #3f3d38;
}

.site-footer.compact {
  display: block;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.3rem;
}

.footer-heading {
  color: var(--ink);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: hero-settle 900ms ease both;
  }

  .hero-content {
    animation: rise-in 650ms ease 120ms both;
  }

  details[open] .detail-body {
    animation: reveal 220ms ease both;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1);
  }
}

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

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

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }

  .site-header {
    min-height: var(--header-h);
  }

  .nav-toggle {
    display: block;
    z-index: 22;
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1.5rem;
    background: rgba(17, 17, 17, 0.96);
    color: white;
    transform: translateY(-100%);
    transition: transform 210ms ease;
    visibility: hidden;
    pointer-events: none;
    font-size: 1.5rem;
  }

  .solid .site-nav {
    background: color-mix(in srgb, var(--paper) 96%, black 4%);
    color: var(--ink);
  }

  .nav-open .site-nav {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    object-position: 52% 16%;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 58%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.08));
  }

  .hero-content {
    padding-bottom: 3.2rem;
  }

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

  .embed-section {
    margin-inline: calc((100vw - 100%) / -2);
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .intro-section,
  .content-section,
  .page-main,
  .site-footer {
    width: min(100% - 2rem, var(--max));
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .hero {
    min-height: 700px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .intro-copy p {
    font-size: 1.38rem;
  }

  summary {
    align-items: center;
  }
}
