:root {
  --ink:    #0a0a0a;
  --paper:  #f4f1ea;
  --bone:   #e9e4d8;
  --red:    #e81224;
  --red-hot:#c00f1e;
  --orange: #ef5323;
  --yellow: #f8d501;
  --gold:   #c9a24a;
  --steel:  #4a5560;
  --gray:   #6b6b6b;
  --line:   #1a1a1a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'futura-100', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Widow / orphan prevention site-wide.
   `text-wrap: pretty`  → ensures the last line of a paragraph has more than one word.
   `text-wrap: balance` → balances all lines of a heading to roughly equal length. */
p, li, blockquote, .img-caption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.brand img { height: 60px; width: auto; display: block; }
.nav-links {
  display: flex; gap: 30px; align-items: center;
  font-family: 'futura-100', sans-serif;
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
}
.nav-links > a { opacity: 0.85; transition: opacity 0.2s; }
.nav-links > a:hover, .nav-links > a.is-active { opacity: 1; }
.nav-cta {
  background: var(--red); color: #fff !important;
  padding: 11px 20px; border-radius: 4px;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 15px; letter-spacing: 0.10em; text-transform: uppercase;
  transition: background 0.2s; white-space: nowrap;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: inline-flex; align-items: center; gap: 6px;
  opacity: 0.85; transition: opacity 0.2s;
}
.nav-dropdown > a:hover, .nav-dropdown > a.is-active { opacity: 1; }
.nav-arrow { font-size: 11px; opacity: 0.7; transition: transform 0.2s; }
.nav-dropdown:hover .nav-arrow { transform: translateY(2px); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -16px;
  min-width: 280px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
  padding: 12px 0;
  margin-top: 14px;
  display: none;
  flex-direction: column;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu::before {
  content: '';
  position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
.nav-dropdown-menu a {
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 24px;
  color: var(--paper);
  opacity: 0.78;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover {
  opacity: 1; background: rgba(232,18,36,0.15); color: #fff;
}
.nav-cta:hover { background: var(--red-hot); }
@media (max-width: 900px) {
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-links { display: none; }
}

/* ===== CONTAINERS ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 40px; }
.container-hero { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .container, .container-narrow, .container-hero { padding: 0 22px; } }

/* ===== HOME HERO ===== */
.hero {
  position: relative;
  min-height: 40vh;
  padding: 140px 0 70px;
  overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(10,10,10,0.85) 0%,
      rgba(10,10,10,0.60) 35%,
      rgba(10,10,10,0.20) 65%,
      rgba(10,10,10,0.00) 100%),
    linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.65) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black 0%, black 30%, transparent 60%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 30%, transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-family: 'futura-100', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 32px;
  max-width: 1100px;
}
.hero h1 .accent { color: var(--red); }
.hero h1 .hero-row { display: flex; align-items: center; gap: 0.18em; }
.hero h1 .hero-row .stack {
  display: flex; flex-direction: column;
  align-self: center; line-height: 0.95; gap: 0.04em;
}
.hero h1 .hero-row .stack > span {
  font-size: 0.42em; letter-spacing: 0.02em; color: var(--paper);
}
.hero-sub {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  max-width: 720px; font-size: 21px; line-height: 1.55;
  color: rgba(244,241,234,0.86); margin-bottom: 40px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  /* Per-page hero tint — each page can override based on its bg image's average color */
  --hero-tint: 10, 10, 10;
  position: relative; background: var(--ink);
  padding: 180px 0 90px; overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
/* Desktop / tablet: left-weighted gradient using the page's tint color */
.page-hero .hero-bg::after {
  background:
    linear-gradient(90deg,
      rgba(var(--hero-tint), 0.88) 0%,
      rgba(var(--hero-tint), 0.62) 30%,
      rgba(var(--hero-tint), 0.22) 60%,
      rgba(var(--hero-tint), 0.00) 100%),
    linear-gradient(180deg, transparent 70%, rgba(var(--hero-tint), 0.40) 100%);
}
/* Mobile: full-bleed flat overlay so text reads anywhere */
@media (max-width: 700px) {
  .page-hero .hero-bg::after {
    background: rgba(var(--hero-tint), 0.80);
  }
}

/* Tint variants — each set to roughly match the dominant color of its bg image */
.page-hero--blueprint { --hero-tint: 8, 32, 82; }      /* shuttle blueprint cyan/navy */
.page-hero--mars      { --hero-tint: 30, 12, 6; }      /* lunar lander on Mars rust/red */
.page-hero--mission   { --hero-tint: 14, 24, 40; }     /* mission control deep cool blue */
.page-hero-inner { position: relative; z-index: 2; }
.eyebrow-tech {
  font-family: 'futura-100', sans-serif;
  font-size: 22px; font-weight: 400;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--red); margin-bottom: 22px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.eyebrow-tech::before { content: ''; width: 32px; height: 2px; background: var(--red); }
.page-hero h1 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(27px, 4.1vw, 63px);
  line-height: 0.96; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px; max-width: 1000px;
}
.page-hero h1 .accent { color: var(--red); }
.page-hero-sub {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  max-width: 720px; font-size: 21px; line-height: 1.55;
  color: rgba(244,241,234,0.82); margin-bottom: 32px;
}
.hero-tagline {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(20px, 2vw, 28px); letter-spacing: 0.05em;
  text-transform: uppercase; color: #FAC737; margin-bottom: 22px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff;
  padding: 17px 28px; border-radius: 4px;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--red-hot); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; padding: 16px 0;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: #fff; }

/* ===== WHY SPACE BUTTON ===== */
.why-space-btn {
  position: absolute;
  bottom: 28px; right: 28px;
  z-index: 5;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(244,241,234,0.25);
  padding: 10px 16px; border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.why-space-btn:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ===== MODAL ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 0; cursor: pointer; padding: 0;
}
.modal-card {
  position: relative;
  max-width: 560px; width: 100%;
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  padding: 48px 44px 44px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  animation: modal-in 0.2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: transparent; border: 0;
  font-size: 30px; line-height: 1;
  color: var(--ink); cursor: pointer;
  padding: 6px 10px;
  font-family: 'futura-100', sans-serif;
}
.modal-close:hover { color: var(--red); }
.modal-card h2 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px); line-height: 1.0;
  text-transform: uppercase; letter-spacing: -0.005em;
  margin-bottom: 22px;
}
.modal-card h2 .accent { color: var(--red); }
.modal-card p {
  font-size: 17px; line-height: 1.6;
  margin-bottom: 16px; color: var(--ink);
}
.modal-card p:last-child { margin-bottom: 0; }
.modal-card a {
  color: var(--red); border-bottom: 1px solid rgba(232,18,36,0.4); font-weight: 700;
}
.modal-card a:hover { border-bottom-color: var(--red); }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.trust-bar p {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 19px; letter-spacing: 0.14em;
  color: rgba(244,241,234,0.85);
  text-transform: uppercase; text-align: center;
}
.trust-bar .sep { color: var(--red); margin: 0 16px; }

/* ===== SECTIONS ===== */
.section { padding: 120px 0; position: relative; }
.section.light { background: var(--paper); color: var(--ink); }
.section.bone  { background: var(--bone);  color: var(--ink); }
.section.dark  { background: var(--ink);   color: var(--paper); border-top: 1px solid rgba(255,255,255,0.06); }
.section h2 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(25px, 3.5vw, 48px);
  line-height: 1.0; letter-spacing: -0.005em;
  text-transform: uppercase;
  max-width: 900px; margin-bottom: 28px;
}
.section h2 .accent { color: var(--red); }
.section .lede {
  font-size: 19px; line-height: 1.7;
  max-width: 760px; margin-bottom: 22px;
  color: var(--ink); opacity: 0.86;
}
.section.dark .lede { color: var(--paper); opacity: 0.85; }
.section .lede a {
  color: var(--red); font-weight: 700;
  border-bottom: 1px solid rgba(232,18,36,0.4);
}
.section .lede a:hover { border-bottom-color: var(--red); }
.feature p a {
  color: #FAC737;
  border-bottom: 1px solid rgba(250,199,55,0.4);
}
.feature p a:hover { border-bottom-color: #FAC737; }
.section-eyebrow {
  font-family: 'futura-100', sans-serif;
  font-size: 28px; font-weight: 400;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--red); margin-bottom: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.section.dark .section-eyebrow { color: var(--paper); }
.section-eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'futura-100', sans-serif;
  font-size: 17px; font-weight: 400;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--red);
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px; margin-top: 8px;
}
.link-arrow:hover { color: var(--red-hot); border-color: var(--red-hot); }

/* ===== SPLIT GRID ===== */
.split-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 80px; align-items: center;
}
.split-grid.reverse { grid-template-columns: 1fr 1.35fr; }
.split-grid .text { max-width: 720px; }
.split-img {
  aspect-ratio: 1 / 1; width: 100%;
  border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12); background: var(--ink);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-caption {
  font-family: 'futura-100', sans-serif;
  font-weight: 400;
  font-size: 17px; line-height: 1.5;
  text-align: center;
  color: var(--gray);
  max-width: 460px;
  margin: 20px auto 0;
}
.section.dark .img-caption { color: rgba(244,241,234,0.65); }
@media (max-width: 900px) {
  .split-grid, .split-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split-grid.reverse .split-img { order: -1; }
  .split-img { max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ===== FEATURE GRID ===== */
.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0; margin-top: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.feature {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 36px 38px 42px;
}
.feature .num {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 28px; letter-spacing: 0.10em;
  color: #FAC737; text-transform: uppercase;
  margin-bottom: 18px;
}
.feature h3 {
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 28px;
  line-height: 1.05; text-transform: uppercase;
  letter-spacing: 0.005em; margin-bottom: 12px; color: var(--paper);
}
.feature h3 .accent { color: var(--red); }
.feature p { font-size: 21px; line-height: 1.55; color: rgba(244,241,234,0.85); }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } }

/* ===== PROOF / REVIEWS ===== */
.proof-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; margin-top: 50px; }
.proof-video {
  aspect-ratio: 16/9; border-radius: 4px; overflow: hidden;
  background: var(--ink); border: 1px solid rgba(0,0,0,0.12);
}
.proof-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.reviews-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px; padding: 32px;
}
.reviews-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 18px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 18px;
}
.reviews-logo {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 22px; text-transform: uppercase;
  color: var(--ink); margin-bottom: 4px;
}
.reviews-stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.reviews-count { font-family: 'futura-100', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0.10em; color: var(--steel); text-transform: uppercase; }
.reviews-score { font-family: 'futura-100', sans-serif; font-weight: 700; font-size: 56px; line-height: 1; color: var(--red); }
.review-item { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.review-item:last-child { border-bottom: none; }
.review-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.review-name { font-weight: 700; color: var(--ink); font-size: 14px; }
.review-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.review-quote { font-size: 14px; line-height: 1.6; color: var(--gray); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== SERVICES TEASER (home) ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 50px;
}
.services-grid .service-card { grid-column: span 2; }
.services-grid .service-card:nth-child(4),
.services-grid .service-card:nth-child(5) { grid-column: span 3; }
.service-card {
  background: var(--ink); border: 1px solid rgba(255,255,255,0.1);
  padding: 36px; border-radius: 4px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--red); transform: translateY(-4px); }
.service-card .num {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 28px; letter-spacing: 0.10em;
  color: #FAC737; text-transform: uppercase; margin-bottom: 22px;
}
.service-card h3 {
  font-family: 'futura-100', sans-serif; font-weight: 700; font-size: 30px;
  line-height: 1.05; text-transform: uppercase; margin-bottom: 12px; color: var(--paper);
}
.service-card p { font-size: 15px; line-height: 1.6; color: rgba(244,241,234,0.7); margin-bottom: 26px; flex-grow: 1; }
.service-card .more {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; color: #FAC737;
}
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 900px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== WORK FILTER CHIPS ===== */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 8px;
}
.filter-chip {
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--ink);
  padding: 9px 16px; border-radius: 0;
  cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--red); color: var(--red); }
.filter-chip.is-active {
  background: var(--red); color: #fff; border-color: var(--red);
}
.section.dark .filter-chip { color: var(--paper); border-color: rgba(255,255,255,0.18); }
.section.dark .filter-chip:hover { color: var(--red); border-color: var(--red); }

/* ===== WORK ARCHIVE GRID ===== */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 60px;
}
.work-card {
  display: block; background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.work-card:hover { border-color: var(--red); transform: translateY(-4px); }
.work-card-img {
  aspect-ratio: 4 / 3; width: 100%; background: var(--bg-card, #222);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.work-card-img img { width: 100%; height: 100%; object-fit: cover; }
.work-card-body { padding: 24px 28px 28px; }
.work-card .meta {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 14px; letter-spacing: 0.10em; text-transform: uppercase;
  color: #FAC737; margin-bottom: 12px;
}
.work-card h3 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 26px; line-height: 1.1; text-transform: uppercase;
  color: var(--paper); margin-bottom: 8px;
}
.work-card p { font-size: 15px; line-height: 1.55; color: rgba(244,241,234,0.7); }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .work-grid { grid-template-columns: 1fr; } }

/* ===== ARTICLES ARCHIVE GRID — BENTO ===== */
.article-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(360px, auto);
  grid-auto-flow: dense;
  gap: 20px; margin-top: 8px;
}
/* Every 9th card is a 2x2 featured tile */
.article-grid > :nth-child(9n+1) { grid-column: span 2; grid-row: span 2; }
/* Every 9th + 5 is a 2x1 wide tile */
.article-grid > :nth-child(9n+6) { grid-column: span 2; }
.article-grid > :nth-child(9n+1) h2 {
  font-size: clamp(24px, 1.9vw, 30px);
}
.article-grid > :nth-child(9n+1) p { font-size: 17px; }
.article-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  color: var(--paper);
  background: var(--ink);
  min-height: 280px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -18px rgba(0,0,0,0.45);
}
.article-card .article-pattern { position: absolute; inset: 0; overflow: hidden; }
.article-card .article-pattern-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}
.article-card .article-pattern svg {
  position: relative; z-index: 1;
  width: 100%; height: 100%; display: block;
  mix-blend-mode: screen;
}
.article-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 22px 26px 24px;
}
.article-card-cat {
  font-family: 'futura-100', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FAC737;
  margin-bottom: 10px;
}
.article-card .article-card-title {
  font-family: 'futura-100', sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  max-width: none;
}
/* Bento featured tile (2×2) — bigger title */
.article-grid > :nth-child(9n+1) .article-card-title {
  font-size: clamp(24px, 2vw, 32px);
}
.article-grid > :nth-child(9n+1) .article-card-overlay { padding: 28px 32px 32px; }

/* Article single hero pattern background */
.article-hero-pattern { position: relative; overflow: hidden; }
.article-hero-photo {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.article-hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.2;
}
.article-hero-pattern-svg {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen; /* gold pattern reads cleanly over photos and dark bgs */
}
.article-hero-pattern--photo .article-hero-pattern-svg { opacity: 0.55; }
.article-hero-pattern-svg svg { width: 100%; height: 100%; display: block; }
.article-hero-pattern .page-hero-inner { position: relative; z-index: 3; }
.article-hero-pattern::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.0) 0%, rgba(10,10,10,0.55) 80%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
}
.article-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card h2 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 20px; line-height: 1.2;
  text-transform: uppercase; margin: 0 0 10px; color: var(--ink);
}
.article-card p {
  font-size: 15px; line-height: 1.55; color: var(--gray);
  margin: 0 0 16px; flex: 1;
}
.article-card-more {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--red);
}
@media (max-width: 1100px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .article-grid > * { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 700px)  { .article-grid { grid-template-columns: 1fr; } }

/* ===== PROSE (article + work body content) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15;
  text-transform: uppercase; margin: 36px 0 14px;
}
.prose > h2:first-child,
.prose > *:first-child > h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2;
  text-transform: uppercase; margin: 28px 0 10px;
}
.prose p, .prose li { font-size: 18px; line-height: 1.75; color: var(--ink); margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 24px 24px; }
.prose a { color: var(--red); border-bottom: 1px solid rgba(232,18,36,0.35); }
.prose a:hover { border-bottom-color: var(--red); }
.prose blockquote {
  border-left: 4px solid var(--red); padding: 6px 0 6px 24px;
  margin: 28px 0; font-size: 22px; line-height: 1.5; color: var(--ink);
}
.prose img { width: 100%; height: auto; border-radius: 4px; margin: 32px 0; }
.section.dark .prose p, .section.dark .prose li { color: var(--paper); }
.section.dark .prose blockquote { color: var(--paper); }

/* ===== ARTICLE AUTHOR + NAV (single-column, below prose) ===== */
.article-author {
  max-width: 760px; margin: 72px auto 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.article-author-eyebrow {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.article-author-name {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 28px; line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink); margin-bottom: 14px;
}
.article-author p {
  font-size: 17px; line-height: 1.7; color: var(--ink);
  margin-bottom: 14px;
}
.article-nav {
  max-width: 760px; margin: 56px auto 0;
  padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.12);
  display: flex; flex-direction: column; gap: 18px;
}
.article-nav a { display: block; color: var(--ink); }
.article-nav-prev .article-nav-label,
.article-nav-next .article-nav-label {
  display: block;
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 4px;
}
.article-nav-prev .article-nav-title,
.article-nav-next .article-nav-title {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 19px; line-height: 1.25;
  text-transform: uppercase;
}
.article-nav a:hover .article-nav-title { color: var(--red); }
.article-nav-next { text-align: right; }

/* ===== CTA SECTION (red full-width) ===== */
.cta-section {
  background: var(--red); color: #fff;
  padding: 120px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 80px 80px; pointer-events: none;
}
.cta-section .inner { position: relative; }
.cta-section h2 {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: clamp(40px, 6vw, 80px); line-height: 0.98;
  text-transform: uppercase; letter-spacing: -0.005em;
  margin-bottom: 28px; max-width: 900px;
}
.cta-section h2 .accent { color: var(--ink); }
.cta-section p { font-size: 19px; max-width: 680px; margin-bottom: 32px; opacity: 0.95; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  padding: 18px 28px; border-radius: 4px;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.2s;
}
.cta-btn:hover { background: #000; }
.cta-phone {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 36px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}

/* ===== CONTACT FORM ===== */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 32px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-family: 'futura-100', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink);
}
.form-field input, .form-field textarea, .form-field select {
  font-family: 'futura-100', sans-serif; font-size: 17px;
  padding: 14px 16px; border: 1px solid rgba(0,0,0,0.18);
  border-radius: 4px; background: #fff; color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--red); outline: none;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; border: 0;
  padding: 18px 32px; border-radius: 4px;
  font-family: 'futura-100', sans-serif;
  font-weight: 700; font-size: 18px; letter-spacing: 0.10em; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; margin-top: 14px;
}
.form-submit:hover { background: var(--red-hot); }
.form-status {
  padding: 18px; border-radius: 4px; margin-top: 24px;
  font-size: 16px;
}
.form-status.ok    { background: rgba(42,157,143,0.1); border: 1px solid #2A9D8F; color: var(--ink); }
.form-status.err   { background: rgba(232,18,36,0.08); border: 1px solid var(--red); color: var(--ink); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 28px;
  font-size: 14px; color: rgba(244,241,234,0.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; }
.footer h5 {
  font-family: 'futura-100', sans-serif; font-weight: 400;
  font-size: 18px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--paper); margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: 'futura-100', sans-serif; font-size: 13px; color: rgba(244,241,234,0.55);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ===== GLOSSARY HERO VARIANT =====
   Hero content centers in a 760px column to align with the .prose body below. */
.page-hero--glossary .page-hero-narrow-content {
  max-width: 760px;
  margin: 0 auto;
}
.page-hero--glossary h1 {
  font-size: clamp(26px, 3.2vw, 48px);
}

/* Glossary breadcrumb: GLOSSARY (yellow) : Category (paper) on one line */
.glossary-breadcrumb { display: block; }
.glossary-breadcrumb::before { display: none; content: none; }
.glossary-breadcrumb .gb-glossary { color: #FAC737; border: 0; }
.glossary-breadcrumb .gb-glossary:hover { color: #FAC737; }
.glossary-breadcrumb .gb-sep { color: #FAC737; margin-right: 0.4em; }
.glossary-breadcrumb .gb-cat { color: var(--paper); border: 0; }

/* ===== STARFIELD CANVAS =====
   Drop <canvas class="starfield-canvas"></canvas> inside any positioned
   container (e.g. .hero, .page-hero, .cta-section) — it fills behind content. */
.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
/* Invisible 1×1 proxy element planted at the parent's dead center.
   The starfield lib uses this element's bounding rect as the burst origin —
   so the animation always emanates from the visual center, regardless of
   where the .nav-cta trigger button actually lives in the DOM. */
.starfield-proxy-btn {
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 4px; z-index: 1000;
}
.skip-link:focus { top: 16px; }
