:root {
  --ink: #050d1a;
  --navy: #0a1628;
  --navy-2: #0e1d33;
  --ivory: #f3ecdc;
  --ivory-dim: #c8c1b1;
  --gold: #dcae58;
  --gold-hi: #f0c977;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ivory);
  background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-hi); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(180deg, rgba(5, 13, 26, 0.85) 0%, rgba(5, 13, 26, 0) 100%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ivory);
  text-decoration: none;
}
.brand img { width: 52px; height: auto; }
.wordmark {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.15;
}
.wordmark span { display: block; font-size: 0.68em; letter-spacing: 0.34em; color: var(--ivory-dim); }

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero picture, .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-img { object-fit: cover; object-position: 72% 40%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--ink) 0%, rgba(5, 13, 26, 0.88) 30%, rgba(5, 13, 26, 0.2) 62%, rgba(5, 13, 26, 0) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 44rem;
  padding: 0 1.25rem 3rem;
}
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.3rem, 9vw, 4.4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.05;
}
.tagline {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4.6vw, 1.85rem);
  color: var(--gold);
  font-style: italic;
}
.lede { margin: 0; max-width: 36rem; color: var(--ivory); }
/* Hero Navigator / Daily research buttons: flex row; ghost margin reset vs .button-ghost defaults */
.hero-cta { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-cta .button-ghost { margin-left: 0; }

/* Sections */
.band { padding: 3.5rem 1.25rem; }
.band-alt { background: rgba(14, 29, 51, 0.55); border-top: 1px solid rgba(220, 174, 88, 0.14); border-bottom: 1px solid rgba(220, 174, 88, 0.14); }
.wrap { max-width: 44rem; margin: 0 auto; }
h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  letter-spacing: 0.04em;
  color: var(--ivory);
}
h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 2px;
  margin-top: 0.6rem;
  background: var(--gold);
}
p { margin: 0 0 1rem; }
.points { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.points li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--ivory-dim);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 0.5rem; height: 0.5rem;
  border: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.points strong { color: var(--ivory); font-weight: 600; }

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}
.button:hover { background: var(--gold-hi); color: var(--ink); }

.site-footer {
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ivory-dim);
}
.site-footer p { max-width: 44rem; margin: 0 auto; }
.site-footer .contact { margin-bottom: 0.75rem; color: var(--ivory); }
.site-footer .footer-links { margin-top: 0.4rem; }

@media (min-width: 48rem) {
  .site-header { padding: 1.1rem 2.5rem; }
  .brand img { width: 64px; }
  .wordmark { font-size: 1.2rem; }
  .hero-copy { padding: 0 2.5rem 5rem; margin-left: max(0px, calc((100vw - 76rem) / 2)); }
  .hero-img { object-position: center 40%; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(5, 13, 26, 0.75) 0%, rgba(5, 13, 26, 0.35) 45%, rgba(5, 13, 26, 0) 70%),
      linear-gradient(0deg, var(--ink) 0%, rgba(5, 13, 26, 0.55) 22%, rgba(5, 13, 26, 0) 50%);
  }
  .band { padding: 4.5rem 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
}

.button-ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); margin-left: 0.5rem; }
.button-ghost:hover { color: var(--ink); }
.note { font-size: 0.9rem; opacity: 0.75; }

/* QR code to the landing page, top of the hero (Warchief 2026-10-15: "near the top", "go to the main landing page", "move it to the left under the logo") */
.qr-hero { position: absolute; z-index: 2; top: 6rem; left: 2.5rem; margin: 0; display: none;
  flex-direction: column; align-items: center; gap: 0.5rem; }
.qr-hero img { width: 150px; height: 150px; background: #fff; padding: 8px; border-radius: 10px; image-rendering: pixelated; }
.qr-hero figcaption { color: var(--ivory); font-weight: 600; font-size: 0.9rem; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
@media (min-width: 48rem) { .qr-hero { display: flex; } }

/* Plans and pricing (HOD-618 preview): two plans side by side, one column under 720px. */
.page-top { padding-top: 7.5rem; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.plan {
  padding: 1.5rem;
  background: rgba(14, 29, 51, 0.55);
  border: 1px solid rgba(220, 174, 88, 0.3);
  border-radius: 4px;
}
.plan h2 { font-size: clamp(1.3rem, 3.5vw, 1.7rem); }
.plan-price { margin: 0 0 0.35rem; font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.2rem); color: var(--gold); }
.plan p:last-child { margin-bottom: 0; }
.notice {
  margin-top: 1rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  color: var(--ivory-dim);
}
@media (min-width: 48rem) { .page-top { padding-top: 8.5rem; } }
@media (max-width: 45rem) {
  .hero::after {
    background: linear-gradient(to bottom, rgba(5, 13, 26, 0.15) 0%, rgba(5, 13, 26, 0.70) 35%, rgba(5, 13, 26, 0.88) 100%);
  }
  .plans { grid-template-columns: 1fr; }
}

/* Bravendal Labs: shared palette and typography, readable factory and roster layouts. */
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1rem; padding-left: 1rem; font-size: 0.95rem; }
.site-nav a {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.6rem;
  text-decoration-thickness: 1px;
}
.site-nav [aria-current="page"] {
  color: var(--ivory);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.labs-wrap { max-width: 70rem; }
.labs-intro { padding-bottom: 4rem; }
.eyebrow { color: var(--gold); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.labs-lede { max-width: 48rem; font-size: 1.2rem; }
.labs-context { max-width: 48rem; color: var(--ivory-dim); margin-top: 1.2rem; }
.labs-page .notice { max-width: 56rem; }
.factory-pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding: 0; margin: 2rem 0; list-style: none; counter-reset: factory; }
.factory-pipeline li { counter-increment: factory; border-top: 1px solid rgba(220, 174, 88, 0.4); padding-top: 1rem; }
.factory-pipeline li::before { content: counter(factory, decimal-leading-zero); color: var(--gold); font-family: var(--serif); font-size: 1.4rem; }
.factory-pipeline h3 { margin: 0.3rem 0 0.5rem; font-size: 1.1rem; }
.factory-pipeline p { color: var(--ivory-dim); font-size: 0.95rem; margin: 0; }
.labs-capabilities { max-width: 54rem; }
.labs-capabilities li { margin-bottom: 1.2rem; }
.longhouse-viewport {
  position: relative;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  border: 1px solid rgba(220, 174, 88, 0.4);
  border-radius: 4px;
  background: var(--ink);
  container-type: inline-size;
  margin-top: 1.5rem;
}
.longhouse-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--ink);
}
@container (min-width: 0px) {
  .longhouse-frame:not(.longhouse-frame--js-scale) { transform: scale(calc(100cqw / 1440px)); }
}
.longhouse-frame--js-scale { transform: scale(var(--lh-scale, 1)); }
.longhouse-overlay-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  min-height: 2.75rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.longhouse-open-mobile { display: none; }
@media (max-width: 45rem) {
  .longhouse-viewport,
  .longhouse-overlay-link { display: none; }
  .longhouse-open-mobile { display: block; }
}
.warband-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.warband-card { padding: 1.4rem; border: 1px solid rgba(220, 174, 88, 0.22); border-radius: 4px; background: var(--navy-2); }
.warband-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin: 0 0 0.6rem; }
.warband-card .agent-role { color: var(--gold); font-size: 0.8rem; margin-bottom: 0.4rem; }
.warband-card p:last-child { font-size: 0.95rem; color: var(--ivory-dim); margin-bottom: 0; }
@media (max-width: 55rem) {
  .factory-pipeline, .warband-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 35rem) {
  .site-header { flex-wrap: wrap; row-gap: 0.25rem; }
  .site-nav { gap: 0.25rem; }
  .warband-grid { grid-template-columns: 1fr; }
  .factory-pipeline { gap: 1.5rem 1rem; }
}
@media (max-width: 20rem) {
  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: flex-start;
  }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.16em; }
}
