/* ==========================================================================
   TOKENS
   ========================================================================== */
:root {
  --blueprint: #16283b;
  --blueprint-dark: #0e1b25;
  --blueprint-line: rgba(244, 246, 242, 0.12);
  --chalk: #f4f6f2;
  --paper: #e4e6e5;
  --ink: #1c2024;
  --ink-soft: #4a5158;
  --orange: #ff5900;
  --orange-soft: rgba(255, 89, 0, 0.14);

  --font-display: 'Zilla Slab', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1120px;
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

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

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

.kicker,
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.9em;
}
.kicker-light { color: #f2a074; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--orange);
  color: var(--chalk);
}
.btn-primary:hover { transform: translateY(-1px); background: #cc4a00; }
.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; text-align: center; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blueprint-dark);
  border-bottom: 1px solid var(--blueprint-line);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--chalk);
  text-decoration: none;
  line-height: 1.3;
  max-width: 260px;
}
.logo span { color: var(--orange); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--chalk);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-nav a:hover { color: var(--orange); }
.nav-cta {
  border: 1px solid var(--orange);
  padding: 0.5em 1em;
  border-radius: 2px;
  color: var(--orange) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--chalk);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--blueprint-dark);
  color: var(--chalk);
  overflow: hidden;
  padding-bottom: 0;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.crosshair {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}
.crosshair::before, .crosshair::after {
  content: "";
  position: absolute;
  background: rgba(244,246,242,0.35);
}
.crosshair::before { width: 100%; height: 1px; top: 50%; }
.crosshair::after { width: 1px; height: 100%; left: 50%; }
.crosshair-tl { top: 24px; left: 24px; }
.crosshair-tr { top: 24px; right: 24px; }
.crosshair-bl { bottom: 24px; left: 24px; }
.crosshair-br { bottom: 24px; right: 24px; }

/* Engineering drawing frame + zone reference labels */
.drawing-frame {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(244,246,242,0.3);
  pointer-events: none;
}
.zone-row {
  position: absolute;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(244,246,242,0.4);
}
.zone-row-top { top: 8px; }
.zone-row-bottom { bottom: 8px; }
.zone-col {
  position: absolute;
  top: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(244,246,242,0.4);
}
.zone-col-left { left: 8px; }
.zone-col-right { right: 8px; }

.hero-sheet {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: stretch;
}
.hero-copy {
  order: 2;
  display: flex;
  flex-direction: column;
}
.hero-cover { order: 1; }
.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 0.35em;
}
.title-white { color: var(--chalk); }
.title-orange { color: var(--orange); }
.hero-sub {
  font-size: 1.1rem;
  max-width: 46ch;
  color: rgba(244,246,242,0.86);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0;
}

.hero-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cover-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(244,246,242,0.3);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  overflow: hidden;
}
.cover-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stamp {
  position: absolute;
  top: 14px;
  right: -34px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--chalk);
  background: var(--orange);
  padding: 0.35em 2.6em;
  transform: rotate(38deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.title-block-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 1.5rem;
}
.title-block {
  width: 100%;
  max-width: 320px;
  border: 1px solid rgba(244,246,242,0.35);
  background: rgba(14, 27, 37, 0.4);
}
.tb-row {
  display: flex;
  border-top: 1px solid rgba(244,246,242,0.2);
}
.tb-row:first-child { border-top: none; }
.tb-row-pair .tb-field {
  flex: 1 1 50%;
  border-left: 1px solid rgba(244,246,242,0.2);
}
.tb-row-pair .tb-field:first-child { border-left: none; }
.tb-field {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.7rem 0.9rem;
  flex: 1 1 100%;
}
.tb-field span {
  display: block;
  color: rgba(244,246,242,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 0.3em;
  font-size: 0.62rem;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}
.section-light { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--blueprint-dark); color: var(--chalk); }

.section-light h2 { color: var(--ink); }
.section-dark h2 { color: var(--chalk); }

.lede {
  font-size: 1.15rem;
  max-width: 66ch;
  color: var(--ink-soft);
}
#thesis .lede,
#launch .lede {
  max-width: none;
}

/* Thesis "why now" callout */
.moment {
  margin-top: 2.5rem;
  max-width: 68ch;
  border-left: 2px solid var(--orange);
  padding-left: 1.6rem;
}
.moment h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9em;
}
.moment p {
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* Pillars / feature-control-frame cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.pillar {
  border: 1px solid rgba(28,32,36,0.16);
  background: var(--chalk);
  padding: 1.6rem 1.4rem 1.8rem;
}
.fcf {
  display: flex;
  border: 1px solid var(--ink);
  width: fit-content;
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
}
.fcf-symbol, .fcf-value {
  padding: 0.4em 0.7em;
  font-size: 0.95rem;
}
.fcf-symbol {
  border-right: 1px solid var(--ink);
  color: var(--orange);
}
.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.pillar p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Author */
.author-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.author-photo {
  width: 220px;
  height: 220px;
  border: 1px solid rgba(244,246,242,0.25);
  overflow: hidden;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.author-copy p { max-width: none; }
.author-copy a { color: var(--orange); }

/* Excerpt / manuscript */
.manuscript {
  margin-top: 2rem;
  max-width: none;
  border-left: 2px solid var(--orange);
  padding-left: 1.6rem;
}
.manuscript p {
  position: relative;
  font-size: 1.05rem;
  max-width: none;
}
.line-no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  opacity: 0.6;
  margin-right: 0.8em;
}

/* Praise / quotes */
.praise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.quote-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(244,246,242,0.25);
  background: rgba(244,246,242,0.05);
  padding: 1.8rem 1.6rem 1.6rem;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 0.2rem;
}
.quote-text {
  font-size: 1.02rem;
  color: rgba(244,246,242,0.9);
  margin: 0 0 1.2rem;
  flex: 1;
}
.quote-attribution {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(244,246,242,0.6);
  margin: 0;
}
.quote-attribution strong {
  color: var(--chalk);
  font-size: 0.85rem;
}

/* Launch */
.lede-light { color: rgba(244,246,242,0.8); }
.launch-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.launch-card {
  border: 1px solid rgba(244,246,242,0.25);
  background: rgba(244,246,242,0.05);
  padding: 1.6rem 1.4rem 1.8rem;
}
.booth-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6em;
}
.launch-card h3 {
  font-size: 1.1rem;
  color: var(--chalk);
  margin-bottom: 0.4em;
}
.launch-card p:last-child {
  font-size: 0.95rem;
  color: rgba(244,246,242,0.75);
  margin: 0;
}
.launch-note {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(244,246,242,0.75);
}

/* Order (Amazon) */
.order-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.order-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(28,32,36,0.16);
  background: var(--chalk);
  padding: 1.6rem 1.4rem 1.8rem;
}
.order-format {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.6em;
}
.order-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.order-card p:not(.order-format) {
  font-size: 0.95rem;
  color: var(--ink-soft);
  flex: 1;
}
.order-card-soon { opacity: 0.75; }
.order-soon-tag {
  text-align: center;
  cursor: default;
  border-color: rgba(28,32,36,0.3);
}

/* Signup */
.notify-inner { max-width: 640px; text-align: left; }
.notify-sub {
  color: rgba(244,246,242,0.8);
  max-width: 50ch;
  margin-bottom: 2rem;
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 420px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244,246,242,0.7);
}
.form-row input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.8em;
  border: 1px solid rgba(244,246,242,0.35);
  background: rgba(244,246,242,0.06);
  color: var(--chalk);
  border-radius: 2px;
}
.form-row input::placeholder { color: rgba(244,246,242,0.4); }
.hidden-field { position: absolute; left: -9999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blueprint-dark);
  border-top: 1px solid var(--blueprint-line);
  color: rgba(244,246,242,0.7);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--chalk);
  max-width: 260px;
  line-height: 1.4;
}
.footer-logo span { color: var(--orange); }
.footer-links {
  display: flex;
  gap: 1.4rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: rgba(244,246,242,0.75);
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-size: 0.78rem;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blueprint-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--blueprint-line);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-sheet {
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-cover { order: -1; max-width: 240px; margin: 0 auto 1rem; }

  .title-block-wrap { justify-content: center; margin-top: 2rem; }
  .title-block { max-width: 100%; }

  .pillars { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: 1fr 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { width: 140px; height: 140px; margin: 0 auto; }

  .logo { max-width: 190px; font-size: 0.68rem; }

  .zone-row, .zone-col { display: none; }
}

@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .launch-cards { grid-template-columns: 1fr; }
  .praise-grid { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; }
  .section-inner { padding: 3.5rem 1.25rem; }

  .hero-copy h1 { font-size: clamp(1.9rem, 10vw, 3.2rem); }
  .hero-sheet { padding-left: 1.25rem; padding-right: 1.25rem; }
  .header-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
}
