@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/InstrumentSans-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6eedf;
  --surface: rgba(255, 250, 244, 0.9);
  --surface-strong: #fffaf4;
  --border: rgba(111, 88, 65, 0.18);
  --border-strong: rgba(111, 88, 65, 0.28);
  --text: #1d1815;
  --muted: #625748;
  --soft: #887b6a;
  --accent: #b35c34;
  --moss: #4d5b50;
  --line: rgba(185, 163, 136, 0.34);
  --max-width: 1240px;
  --shadow: 0 22px 65px rgba(98, 74, 49, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 12%, rgba(179, 92, 52, 0.14), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(77, 91, 80, 0.14), transparent 24%),
    linear-gradient(180deg, #fbf5eb 0%, #f6eedf 44%, #f1e7d6 100%);
  color: var(--text);
  font-family: "Instrument Sans", sans-serif;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    linear-gradient(rgba(98, 74, 49, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 100% 36px, 64px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 90%);
}

body::after {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(179, 92, 52, 0.12) 0 1.5px, transparent 1.5px),
    radial-gradient(circle at 56% 40%, rgba(77, 91, 80, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 66%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px),
    radial-gradient(circle at 12% 74%, rgba(179, 92, 52, 0.1) 0 1px, transparent 1px);
  opacity: 0.72;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
a {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.skip-link:focus {
  top: 1rem;
}

.site-frame {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.section {
  margin-top: 4.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0 0.9rem;
  background: rgba(249, 243, 235, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
}

.topbar.is-scrolled {
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  max-width: min(29rem, 54vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.nav a {
  padding: 0.72rem 1rem;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.56);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
  border-color: rgba(179, 92, 52, 0.42);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy,
.specimen-card,
.info-card,
.model-card,
.capability-card,
.resource-link,
.faq-list details,
.legal-panel {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.92), rgba(249, 240, 227, 0.95));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  border-radius: 2rem;
  padding: 2.7rem;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 92, 52, 0.22), transparent 72%);
}

.hero-visual {
  display: flex;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
summary {
  margin: 0;
  font-family: "Instrument Serif", serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.hero-dek {
  max-width: 60ch;
  margin-top: 1.2rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-note {
  max-width: 52ch;
  margin-top: 1.35rem;
  color: var(--soft);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.28rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(92, 72, 48, 0.08);
}

.button:hover,
.inline-link:hover,
.resource-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff7f0;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
}

.tag {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(111, 88, 65, 0.12);
}

.stat-card dt {
  margin: 0;
  color: var(--soft);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-card dd {
  margin: 0.45rem 0 0;
  color: var(--text);
  font-family: "Instrument Serif", serif;
  font-size: 1.08rem;
}

.specimen-card {
  position: relative;
  display: grid;
  gap: 1rem;
  border-radius: 2rem;
  padding: 1.8rem;
  overflow: hidden;
}

.specimen-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 1.55rem;
  border: 1px solid rgba(179, 92, 52, 0.12);
  pointer-events: none;
}

.specimen-label,
.card-eyebrow,
.resource-kicker,
.capability-index,
.section-meta {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.specimen-mark {
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(179, 92, 52, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(244, 234, 220, 0.82));
  border: 1px solid var(--border);
  padding: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.specimen-mark img {
  width: 100%;
  height: auto;
  max-width: 17rem;
  margin: 0 auto;
}

.specimen-title {
  color: var(--text);
  font-family: "Instrument Serif", serif;
  font-size: 1.28rem;
  line-height: 1.26;
}

.specimen-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.specimen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.35rem;
}

.section-heading {
  max-width: 72ch;
}

.section-heading p {
  margin-top: 1rem;
}

.overview-grid,
.models-grid,
.capability-grid,
.faq-list,
.legal-stack {
  display: grid;
  gap: 1.5rem;
}

.overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.model-card,
.capability-card {
  border-radius: 1.55rem;
  padding: 1.6rem;
}

.info-card {
  min-height: 17.5rem;
  position: relative;
}

.info-card::after,
.model-card::after,
.capability-card::after,
.legal-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.model-card,
.capability-card,
.legal-panel {
  position: relative;
}

.inline-link {
  width: fit-content;
  margin-top: 1.3rem;
  background: rgba(255, 255, 255, 0.52);
  padding-inline: 1rem;
  box-shadow: none;
}

.models-grid {
  grid-template-columns: 1.18fr repeat(2, minmax(0, 0.91fr));
  align-items: stretch;
}

.model-card-featured {
  background:
    radial-gradient(circle at 86% 18%, rgba(179, 92, 52, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(245, 233, 215, 0.96));
}

.card-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section-meta {
  margin-top: 1rem;
  color: var(--soft);
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.capability-card {
  min-height: 14.2rem;
}

.capability-index {
  margin-bottom: 1rem;
}

.resource-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.resource-link {
  display: grid;
  gap: 0.55rem;
  min-height: 10.5rem;
  padding: 1.35rem;
  border-radius: 1.4rem;
  text-decoration: none;
}

.resource-link strong {
  font-family: "Instrument Serif", serif;
  font-size: 1.32rem;
  font-weight: 400;
}

.resource-link span:last-child {
  color: var(--muted);
}

.faq {
  margin-bottom: 4rem;
}

.faq-block {
  max-width: 72rem;
}

.faq-list {
  margin-top: 1.4rem;
}

.faq-list details {
  border-radius: 1.5rem;
  padding: 1.25rem 1.35rem;
}

.faq-list summary {
  cursor: pointer;
  color: var(--text);
  font-size: 1.18rem;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin-top: 0.9rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}

.footer p {
  color: var(--soft);
}

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

.legal-hero {
  margin-top: 2.5rem;
}

.legal-panel {
  padding: 1.7rem;
  border-radius: 1.45rem;
}

.legal-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.6rem;
}

@media (max-width: 960px) {
  .hero,
  .overview-grid,
  .models-grid,
  .capability-grid,
  .resource-strip,
  .legal-stack {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card,
  .capability-card {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

  .brand {
    max-width: 100%;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy,
  .specimen-card,
  .info-card,
  .model-card,
  .capability-card,
  .resource-link,
  .legal-panel,
  .faq-list details {
    border-radius: 1.45rem;
  }

  .hero-copy {
    padding: 1.7rem;
  }

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

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }
}
