:root {
  color-scheme: dark;
  --bg: #11100d;
  --bg-deep: #090908;
  --panel: rgba(21, 20, 17, 0.86);
  --panel-strong: #171510;
  --line: rgba(214, 203, 177, 0.22);
  --line-soft: rgba(214, 203, 177, 0.1);
  --text: #f7f4ec;
  --muted: #c9c1b0;
  --quiet: #8f8778;
  --accent: #ecdcae;
  --black: #050504;
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 30% 16%, rgba(236, 220, 174, 0.1), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--black));
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(232, 222, 202, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 222, 202, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero {
  display: grid;
  min-height: 92vh;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) 1.25rem;
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: color-mix(in srgb, var(--accent) 82%, transparent);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.93;
}

h2 {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.7rem;
  color: var(--text);
  font-size: 1.05rem;
}

.tagline {
  margin-bottom: 1.5rem;
  color: #ede8dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.lede,
.intro,
.prose,
.card p,
.contact p,
.method p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.lede {
  font-size: 1.15rem;
}

.intro {
  max-width: 42rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.actions.stacked {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(214, 203, 177, 0.28);
  border-radius: 6px;
  background: rgba(10, 10, 9, 0.48);
  color: #eee7d8;
  padding: 0.72rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(236, 220, 174, 0.58);
  background: rgba(28, 27, 23, 0.9);
}

.button.primary {
  border-color: #eee7d8;
  background: #eee7d8;
  color: #14120f;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #fffaf0;
}

.field-plate {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(214, 203, 177, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 203, 177, 0.06) 1px, transparent 1px),
    rgba(12, 12, 10, 0.72);
  background-size: 28px 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.field-plate::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 36% 24%, rgba(236, 220, 174, 0.12), transparent 34%),
    linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.46));
  content: "";
}

.plate-head,
.plate-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.4rem;
  border-color: var(--line-soft);
  color: var(--quiet);
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plate-head {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1.1rem;
}

.plate-foot {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}

.plate-diagram {
  position: relative;
  z-index: 1;
  width: min(18rem, 68vw);
  aspect-ratio: 1;
  margin: 1.5rem auto;
}

.axis,
.form {
  position: absolute;
  display: block;
}

.axis.vertical {
  left: 50%;
  top: 8%;
  width: 1px;
  height: 84%;
  background: rgba(214, 203, 177, 0.38);
}

.axis.horizontal {
  left: 8%;
  top: 50%;
  width: 84%;
  height: 1px;
  background: rgba(214, 203, 177, 0.38);
}

.form {
  border: 1px solid rgba(232, 222, 202, 0.58);
  background: rgba(20, 19, 16, 0.7);
}

.dome {
  left: 50%;
  top: 16%;
  width: 4.8rem;
  height: 4.8rem;
  transform: translateX(-50%);
  border-radius: 50%;
}

.nave {
  left: 50%;
  top: 30%;
  width: 28%;
  height: 46%;
  transform: translateX(-50%);
}

.arms {
  left: 19%;
  top: 50%;
  width: 62%;
  height: 24%;
  transform: translateY(-50%);
}

.center {
  left: 50%;
  top: 50%;
  width: 5.5rem;
  height: 5.5rem;
  transform: translate(-50%, -50%);
  border-color: rgba(236, 220, 174, 0.64);
  border-radius: 50%;
  background: rgba(236, 220, 174, 0.1);
}

.entry {
  left: 50%;
  bottom: 14%;
  width: 18%;
  height: 11%;
  transform: translateX(-50%);
  border-top: 0;
}

.band {
  border-block: 1px solid rgba(214, 203, 177, 0.1);
  background: rgba(9, 9, 8, 0.48);
}

.section-grid,
.method,
.cards,
.contact,
footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 4rem;
}

.prose {
  max-width: 48rem;
}

.prose p,
.card p,
.contact p {
  margin-bottom: 1.2rem;
}

.cards {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem;
  padding-block: 4rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.artifact-card {
  background: var(--panel-strong);
}

.note {
  margin-top: 1.8rem;
  border-top: 1px solid rgba(214, 203, 177, 0.1);
  padding-top: 1.2rem;
  color: var(--quiet) !important;
  font-size: 0.9rem !important;
}

.method {
  padding-block: 4rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.method-grid article {
  border-left: 1px solid var(--line);
  padding-left: 1.25rem;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 4rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgba(214, 203, 177, 0.1);
  padding-block: 2rem;
  color: var(--quiet);
  font-size: 0.92rem;
}

footer div,
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer strong {
  color: var(--text);
}

footer a:hover,
footer a:focus-visible {
  color: var(--text);
}

@media (max-width: 880px) {
  .hero,
  .section-grid,
  .cards,
  .contact,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    padding-top: 4rem;
  }

  .field-plate {
    min-height: 20rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero,
  .section-grid,
  .method,
  .cards,
  .contact,
  footer {
    padding-inline: 1rem;
  }

  .actions,
  .button {
    width: 100%;
  }

  .plate-head,
  .plate-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .plate-diagram {
    width: min(16rem, 78vw);
  }
}
