:root {
  color-scheme: dark;
  --bg: #0f1311;
  --bg-soft: #151a17;
  --panel: #1a201c;
  --panel-2: #202720;
  --ink: #f4f1e8;
  --muted: #b3b8ae;
  --muted-2: #858d83;
  --line: #2d352f;
  --line-strong: #444f47;
  --brass: #d5a657;
  --brass-soft: #9c7740;
  --copper: #b96f46;
  --green: #9abd8b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(213, 166, 87, 0.055), transparent 34rem),
    linear-gradient(180deg, #111613 0%, var(--bg) 42rem, #0d100f 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass-soft);
  background: linear-gradient(145deg, #24261f, #171a16);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 4px rgba(213, 166, 87, 0.04);
}

.brand-mark span {
  transform: rotate(-45deg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--brass);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 1.03rem;
  font-weight: 760;
  letter-spacing: -0.015em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 8px 13px;
  border-radius: 999px;
}

.hero {
  min-height: 700px;
  padding: 92px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: 76px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--brass);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(154, 189, 139, 0.08);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.048em;
  line-height: 0.98;
  font-weight: 500;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
}

.hero h1 span {
  color: var(--brass);
}

.hero-lede {
  max-width: 690px;
  margin: 34px 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: #d8d8cf;
}

.hero-support {
  max-width: 625px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 720;
}

.button-primary {
  color: #17140e;
  background: var(--brass);
  border: 1px solid #e2b96d;
}

.button-primary:hover {
  background: #e0b56b;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255,255,255,0.018);
}

.button-secondary:hover {
  border-color: #5b675e;
  background: rgba(255,255,255,0.035);
}

.hero-tags {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span {
  padding: 6px 9px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
}

.blueprint-card {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(rgba(213,166,87,.025), rgba(213,166,87,.025)),
    #121815;
  box-shadow: var(--shadow);
}

.blueprint-header,
.blueprint-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--muted-2);
}

.blueprint-header {
  min-height: 44px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.artifact-window {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.artifact-grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(213,166,87,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213,166,87,.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.artifact-grid::before,
.artifact-grid::after {
  content: "";
  position: absolute;
  background: rgba(213,166,87,.23);
}

.artifact-grid::before {
  width: 1px;
  height: 86%;
  top: 7%;
  left: 50%;
}

.artifact-grid::after {
  height: 1px;
  width: 86%;
  left: 7%;
  top: 50%;
}

.artifact-shape {
  position: absolute;
  width: 240px;
  height: 240px;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) rotate(-10deg);
  border: 1px solid rgba(213,166,87,.55);
  clip-path: polygon(48% 0%, 92% 21%, 100% 66%, 66% 100%, 18% 89%, 0% 43%);
  background: linear-gradient(145deg, rgba(213,166,87,.17), rgba(185,111,70,.04));
  box-shadow: inset 0 0 40px rgba(213,166,87,.04);
}

.artifact-shape::before,
.artifact-shape::after,
.facet {
  content: "";
  position: absolute;
  border: 1px solid rgba(213,166,87,.4);
}

.artifact-shape::before {
  width: 120%;
  left: -10%;
  top: 52%;
  transform: rotate(21deg);
}

.artifact-shape::after {
  height: 120%;
  top: -10%;
  left: 48%;
  transform: rotate(18deg);
}

.facet-a {
  width: 74%;
  height: 74%;
  left: 12%;
  top: 13%;
  transform: rotate(28deg);
}

.facet-b {
  width: 48%;
  height: 48%;
  right: 8%;
  bottom: 12%;
  transform: rotate(-18deg);
}

.facet-c {
  width: 34%;
  height: 34%;
  left: 18%;
  bottom: 18%;
  transform: rotate(45deg);
}

.dimension {
  position: absolute;
  color: var(--brass-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.dimension-x {
  left: 20px;
  bottom: 18px;
}

.dimension-y {
  right: 18px;
  top: 16px;
  writing-mode: vertical-rl;
}

.blueprint-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.blueprint-meta div {
  padding: 14px 15px;
  border-right: 1px solid var(--line);
}

.blueprint-meta div:last-child {
  border-right: none;
}

.blueprint-meta span,
.blueprint-meta strong {
  display: block;
}

.blueprint-meta span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: #697169;
}

.blueprint-meta strong {
  margin-top: 4px;
  color: #bfc3b9;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.maker-stamp {
  position: absolute;
  right: -18px;
  bottom: -22px;
  padding: 10px 15px;
  border: 1px solid rgba(185,111,70,.55);
  color: var(--copper);
  background: #121512;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
}

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 90px;
}

.section-heading h2,
.philosophy h2,
.closing h2 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.04;
}

.section-heading.compact {
  max-width: 760px;
}

.intro-copy {
  padding-top: 38px;
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy p {
  margin: 0 0 18px;
}

.feature-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
}

.feature-card {
  min-height: 275px;
  padding: 24px 20px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}

.feature-card:last-child {
  border-right: none;
}

.feature-card:hover {
  background: rgba(213,166,87,.025);
}

.feature-index {
  display: block;
  margin-bottom: 70px;
  color: var(--brass-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin: 11px 0 0;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.philosophy-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 80px;
  padding: 54px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(140deg, rgba(213,166,87,.04), transparent 42%),
    var(--panel);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.01);
}

.philosophy-panel p:last-child {
  margin: 62px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.closing {
  max-width: 820px;
  padding-bottom: 120px;
}

.closing-rule {
  width: 72px;
  height: 2px;
  margin-bottom: 32px;
  background: var(--copper);
}

.closing p:not(.section-kicker) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.04rem;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(213,166,87,.35);
}

.text-link:hover {
  border-color: var(--brass);
}

.site-footer {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 0.82rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--ink);
  margin-bottom: 2px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 70px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-art {
    max-width: 650px;
  }

  .intro,
  .philosophy-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .intro-copy,
  .philosophy-panel p:last-child {
    padding-top: 0;
    margin-top: 0;
    max-width: 720px;
  }

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

  .feature-card {
    border-bottom: 1px solid var(--line);
  }

  .feature-card:nth-child(2n) {
    border-right: none;
  }

  .feature-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 74px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 68px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.1rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .artifact-window {
    min-height: 340px;
  }

  .artifact-shape {
    width: 190px;
    height: 190px;
  }

  .maker-stamp {
    right: 8px;
  }

  .section {
    padding: 74px 0;
  }

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

  .feature-card,
  .feature-card:nth-child(2n) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  .feature-index {
    margin-bottom: 42px;
  }

  .philosophy-panel {
    padding: 30px 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 30px 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
