:root {
  color-scheme: dark;
  --bg: #0c0806;
  --surface: #160d09;
  --surface-2: #23130c;
  --paper: #ead7ae;
  --paper-2: #c8ae7c;
  --ink: #fff3d7;
  --muted: #c5ad89;
  --accent: #ec741f;
  --accent-hot: #ff9b3f;
  --line: rgba(234, 215, 174, 0.28);
  --focus: #ffd27a;
  --font-display: "Rockwell Extra Bold", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Segoe UI", Tahoma, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.9rem;
  --text-md: 1rem;
  --text-lg: clamp(1.08rem, 1.4vw, 1.35rem);
  --text-xl: clamp(2.2rem, 5vw, 5rem);
  --text-2xl: clamp(3.2rem, 8.7vw, 8.6rem);
  --space: clamp(1.25rem, 4vw, 4.5rem);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 160ms;
  --dur-2: 360ms;
  --dur-3: 760ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: #160d09;
  transform: translateY(-180%);
  transition: transform var(--dur-1) ease;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.25rem;
  padding: 1rem var(--space);
  border-bottom: 1px solid rgba(255, 235, 195, 0.24);
  background: linear-gradient(180deg, rgba(8, 5, 4, 0.78), transparent);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 0.45rem;
  background: #190c07;
  color: var(--paper);
  line-height: 1;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-size: var(--text-sm);
}

.site-header nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header nav a:not(.header-download) {
  color: var(--paper);
  border-bottom: 1px solid transparent;
}

.site-header nav a:not(.header-download):hover {
  border-color: currentColor;
}

.header-download {
  padding: 0 1.15rem;
  border: 1px solid rgba(255, 235, 195, 0.55);
  background: rgba(10, 6, 4, 0.55);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(860px, 100svh);
  flex-direction: column;
  overflow: hidden;
  background: #160b06;
}

.hero-art,
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  object-fit: cover;
  object-position: left 48%;
  animation: settle var(--dur-3) var(--ease-out) both;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 5, 3, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, transparent 42%, rgba(10, 6, 4, 0.74) 69%, #0c0806 100%);
}

.hero-copy {
  width: min(94rem, 100%);
  margin: auto auto 0;
  padding: 23rem var(--space) 2.5rem;
  animation: rise var(--dur-3) 110ms var(--ease-out) both;
}

.eyebrow,
.section-index,
.option-label {
  margin: 0 0 1rem;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.eyebrow span {
  padding: 0.35rem 0.55rem;
  background: var(--accent);
  color: #180b06;
  font-weight: 800;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  color: var(--paper);
  font-size: var(--text-2xl);
  line-height: 0.84;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.5);
}

h1 em {
  color: var(--accent-hot);
  font-style: normal;
}

.lead {
  max-width: 46rem;
  margin-bottom: 1.65rem;
  color: var(--ink);
  font-size: var(--text-lg);
}

.action-rope {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 68rem;
}

.rope {
  position: relative;
  flex: 1;
  min-width: 3rem;
  height: 5px;
  border: 1px solid #3b1807;
  background: repeating-linear-gradient(
    115deg,
    #7b3411 0 5px,
    #e27a27 5px 9px,
    #602508 9px 13px
  );
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.5);
}

.rope::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  transform: translateY(-50%);
}

.button {
  min-height: 3.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    transform var(--dur-1) var(--ease-out),
    background-color var(--dur-1) ease,
    border-color var(--dur-1) ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  min-width: 13.5rem;
  flex-direction: column;
  background: var(--accent);
  color: #160a05;
  font-weight: 800;
  line-height: 1.15;
}

.button-primary small {
  margin-top: 0.18rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-primary:hover {
  background: var(--accent-hot);
}

.button-quiet {
  border-color: rgba(255, 232, 190, 0.55);
  background: rgba(12, 8, 6, 0.62);
  color: var(--paper);
}

.button-quiet:hover {
  border-color: var(--paper);
  background: var(--surface);
}

.build-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #71c96b;
  box-shadow: 0 0 0 4px rgba(113, 201, 107, 0.15);
}

.capability-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 7, 5, 0.82);
  backdrop-filter: blur(4px);
}

.capability-rail span {
  padding: 1rem var(--space);
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.capability-rail span + span {
  border-left: 1px solid var(--line);
}

.field-notes {
  padding: clamp(5rem, 10vw, 9rem) var(--space);
  background:
    linear-gradient(rgba(75, 47, 21, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 2rem;
  color: #1b100a;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(20rem, 1.4fr) minmax(18rem, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  max-width: 94rem;
  margin: 0 auto clamp(4rem, 7vw, 7rem);
}

.field-notes .section-index {
  color: #7d3a12;
}

.section-heading h2,
.download-yard h2 {
  margin-bottom: 0;
  font-size: var(--text-xl);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  max-width: 36rem;
  margin-bottom: 0;
  color: #5d4935;
}

.capability-grid {
  display: grid;
  max-width: 94rem;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  border-top: 3px solid #1b100a;
  border-bottom: 3px solid #1b100a;
}

.capability-grid article {
  min-height: 21rem;
  padding: 1.5rem clamp(1rem, 2.5vw, 2.4rem) 2rem;
}

.capability-grid article + article {
  border-left: 1px solid rgba(27, 16, 10, 0.35);
}

.capability-grid article > span {
  display: inline-block;
  margin-bottom: 4rem;
  color: #9c4a17;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.capability-grid h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1;
}

.capability-grid p {
  margin-bottom: 0;
  color: #5d4935;
}

.download-yard {
  padding: clamp(5rem, 9vw, 8rem) var(--space) 3rem;
  background:
    linear-gradient(125deg, rgba(185, 69, 12, 0.16), transparent 48%),
    var(--surface);
}

.download-intro,
.download-options,
.security-note {
  max-width: 94rem;
  margin-right: auto;
  margin-left: auto;
}

.download-intro {
  display: grid;
  grid-template-columns: 0.75fr 2.4fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.download-intro h2 {
  max-width: 15ch;
  color: var(--paper);
}

.download-options {
  border-top: 1px solid var(--line);
}

.download-options article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.download-options h3 {
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.download-options article p:not(.option-label) {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--muted);
}

.text-download {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  min-height: 3rem;
  color: var(--accent-hot);
  font-family: var(--font-mono);
  text-underline-offset: 0.35rem;
}

.text-download span {
  font-size: 1.5rem;
  transition: transform var(--dur-1) var(--ease-out);
}

.text-download:hover span {
  transform: translateY(4px);
}

.security-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: var(--text-sm);
}

.security-note a {
  margin-left: 0.5rem;
  color: var(--paper);
  text-underline-offset: 0.25rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.2rem var(--space);
  border-top: 1px solid var(--line);
  background: #080504;
  color: #967f61;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

@keyframes settle {
  from {
    opacity: 0.72;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-copy {
    padding-top: 24rem;
  }

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

  .capability-rail span:nth-child(3),
  .capability-rail span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .capability-rail span:nth-child(3) {
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr 2fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .capability-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(27, 16, 10, 0.35);
  }

  .capability-grid article:nth-child(4) {
    border-top: 1px solid rgba(27, 16, 10, 0.35);
  }
}

@media (max-width: 700px) {
  .site-header {
    position: absolute;
    min-height: 4.5rem;
  }

  .site-header nav a:first-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 52svh;
  }

  .hero-art,
  .hero-shade {
    height: 58svh;
    bottom: auto;
  }

  .hero-art {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 4, 3, 0.12) 55%, #0c0806 100%),
      linear-gradient(90deg, rgba(7, 4, 3, 0.24), transparent 70%);
  }

  .hero-copy {
    padding: 1rem var(--space) 2.25rem;
    background: var(--bg);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .action-rope {
    flex-wrap: wrap;
  }

  .rope {
    flex-basis: 100%;
    margin-bottom: 0.35rem;
  }

  .button-primary {
    flex: 1;
  }

  .capability-rail,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-rail span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-heading,
  .download-intro {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .capability-grid article {
    min-height: auto;
  }

  .capability-grid article + article,
  .capability-grid article:nth-child(4) {
    border-top: 1px solid rgba(27, 16, 10, 0.35);
    border-left: 0;
  }

  .capability-grid article > span {
    margin-bottom: 2rem;
  }

  .download-options article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}

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