@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,500;0,6..72,600;1,6..72,400&family=Public+Sans:wght@400;600;700&display=swap");

/* === STITCH TOKENS === */
:root {
  --bg: #0b1326;
  --surf-low: #131b2e;
  --surf: #171f33;
  --surf-high: #222a3d;
  --surf-highest: #2d3449;
  --surf-bright: #31394d;
  --surf-lowest: #060e20;
  --on-surf: #dae2fd;
  --on-surf-var: #e6bdb8;
  --secondary: #bcc7de;
  --crimson: #dc2626;
  --on-crimson: #fff6f5;
  --primary: #ffb4ab;
  --outline: #ac8884;
  --outline-var: #5c403c;
  --gutter: 24px;
  --page-px: 48px;
  --stack-sm: 12px;
  --stack-md: 24px;
  --stack-lg: 48px;
  --stack-xl: 80px;
  --max-w: 1280px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
}

/* === RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--on-surf);
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--crimson);
  color: var(--on-crimson);
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* === TYPE === */
.display-xl {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--on-surf);
}
.headline-lg {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--on-surf);
  margin-bottom: var(--stack-md);
}
.headline-md {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--on-surf);
}
.body-lg {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surf-var);
}
.body-md {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--secondary);
}
.caption {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.4;
  color: var(--secondary);
}
.technical-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === UTILS === */
.italic {
  font-style: italic;
}
.text-crimson {
  color: var(--crimson);
}
.text-muted {
  color: var(--surf-bright);
}
.mt-sm {
  margin-top: var(--stack-sm);
}
.mt-md {
  margin-top: var(--stack-md);
}
.mt-lg {
  margin-top: var(--stack-lg);
}
.mt-xl {
  margin-top: var(--stack-xl);
}
.mb-md {
  margin-bottom: var(--stack-md);
}
.mb-lg {
  margin-bottom: var(--stack-lg);
}
.mb-xl {
  margin-bottom: var(--stack-xl);
}

/* === TOP BAR === */
.top-bar {
  background: var(--crimson);
  color: var(--on-crimson);
  text-align: center;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === HEADER === */
.header {
  background: var(--surf-lowest);
  border-bottom: 2px solid var(--crimson);
  padding: 16px 0;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-logo {
  max-width: 140px;
  filter: brightness(0) invert(1);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: #ffffff;
  color: var(--crimson);
  padding: 10px 24px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.18s;
}
.btn-primary:hover {
  opacity: 0.9;
}
.btn-dark {
  display: inline-block;
  background: var(--surf-lowest);
  color: var(--on-surf);
  padding: 14px 40px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--on-surf);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
}
.btn-dark:hover {
  background: var(--surf-low);
}

/* === HERO === */
.hero-section {
  position: relative;
  padding: var(--stack-xl) var(--page-px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-bottom: 1px solid var(--surf-high);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(50%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
}
.hero-content .display-xl {
  color: #f1f5f9;
  margin-top: var(--stack-sm);
}
.badge-chip {
  display: inline-block;
  background: var(--crimson);
  color: var(--on-crimson);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 0;
}
.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--stack-md);
  margin-top: var(--stack-lg);
}
.hero-meta-item {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surf-bright);
}
.hero-meta-divider {
  width: 1px;
  height: 16px;
  background: var(--surf-bright);
}

/* === EDITORIAL === */
.main-content {
  min-height: 100vh;
}
.editorial-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--stack-xl) var(--page-px);
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
.col-12 {
  grid-column: span 12;
}
.col-8 {
  grid-column: span 8;
}
.col-7 {
  grid-column: span 7;
}
.col-5 {
  grid-column: span 5;
}
.col-4 {
  grid-column: span 4;
}

/* narrative: left 2px crimson border */
.narrative-col {
  border-left: 2px solid var(--crimson);
  padding-left: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--stack-md);
}
.narrative-col .body-lg {
  color: #e2e8f0;
}
.narrative-col .body-md {
  color: #94a3b8;
}

/* callout card */
.callout-card {
  background: var(--surf);
  border: 1px solid var(--surf-high);
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin: var(--stack-md) 0;
}
.callout-card-num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 48px;
  font-weight: 700;
  color: var(--surf-high);
  opacity: 0.3;
  line-height: 1;
  letter-spacing: 0.1em;
}
.callout-card-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: var(--stack-sm);
}
.callout-bar-track {
  height: 2px;
  background: var(--surf-high);
  width: 100%;
  margin-top: var(--stack-md);
  position: relative;
}
.callout-bar-fill {
  position: absolute;
  inset: 0;
  width: 33%;
  background: var(--crimson);
}

/* checklist */
.checklist-card {
  border: 1px solid var(--surf-high);
  padding: 32px;
  margin-top: var(--stack-md);
}
.checklist-title {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surf);
  margin-bottom: var(--stack-md);
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: var(--stack-md);
}
.checklist-marker {
  width: 18px;
  height: 18px;
  border: 1px solid var(--crimson);
  flex-shrink: 0;
  margin-top: 3px;
}
.checklist-item-title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  display: block;
  margin-bottom: 4px;
}
.checklist-item-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
}

/* sidebar image frame with crimson offset */
.image-frame {
  position: relative;
  margin-top: 16px;
  margin-left: 16px;
}
.image-frame-border {
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: calc(100% - 28px);
  border: 1px solid var(--crimson);
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.image-frame:hover .image-frame-border {
  transform: translate(4px, 4px);
}
.image-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 256px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}
.image-frame:hover > img {
  filter: grayscale(0%);
}
.image-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surf-bright);
  margin-top: var(--stack-sm);
  position: relative;
  z-index: 1;
}

/* quote card */
.quote-card {
  background: var(--surf-low);
  border-top: 1px solid var(--crimson);
  padding: 24px;
}
.quote-card .headline-md {
  color: #f1f5f9;
  font-style: italic;
}

/* full-width crimson CTA */
.cta-block {
  background: var(--crimson);
  color: var(--on-crimson);
  padding: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-block-text {
  max-width: 640px;
}
.cta-block .headline-lg {
  color: var(--on-crimson);
  margin-bottom: 12px;
}
.cta-block .body-md {
  color: var(--on-crimson);
  opacity: 0.9;
  margin-bottom: 0;
}

/* phase grid */
.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-top: var(--stack-md);
}
.phase-item {
  border-left: 1px solid var(--surf-high);
  padding-left: var(--stack-sm);
}
.phase-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surf-var);
  display: block;
  margin-bottom: 8px;
}
.phase-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surf);
  margin-bottom: 6px;
}
.phase-desc {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--surf-bright);
  line-height: 1.4;
}

/* logo CTA section */
.cta-logo-section {
  width: 100%;
  padding: var(--stack-xl) 0;
  background: var(--surf);
  border-top: 2px solid var(--crimson);
  border-bottom: 2px solid var(--crimson);
  text-align: center;
}
.cta-logo-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--page-px);
}
.cta-logo-inner .display-xl {
  margin-bottom: var(--stack-lg);
}
.cta-logo-link {
  display: inline-block;
  margin-bottom: var(--stack-md);
  outline: 2px solid var(--crimson);
  outline-offset: 6px;
  transition: outline-offset 0.2s;
}
.cta-logo-link:hover {
  outline-offset: 10px;
}
.cta-logo {
  max-height: 60px;
  filter: brightness(0) invert(1);
}

/* disclaimer */
.disclaimer-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--stack-lg) var(--page-px);
  text-align: center;
  border-top: 1px solid var(--surf-high);
}
.disclaimer-text {
  font-family: var(--sans);
  font-size: 12px;
  color: #ffffff;
  line-height: 1.6;
  opacity: 0.8;
}

/* footer */
.footer {
  background: var(--surf-low);
  border-top: 1px solid var(--surf-high);
  padding: var(--stack-lg) 0;
}
.footer-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--stack-md);
}
.footer-brand {
  flex: 1 1 220px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 8px;
}
.footer-copy {
  font-family: var(--sans);
  font-size: 12px;
  color: #ffffff;
  opacity: 0.7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter);
  align-items: center;
}
.footer-nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.8;
  transition:
    color 0.2s,
    opacity 0.2s;
}
.footer-nav a:hover {
  color: var(--crimson);
  opacity: 1;
}
.footer-contact {
  width: 100%;
  margin-top: var(--stack-md);
  padding-top: var(--stack-md);
  border-top: 1px solid var(--surf-high);
  font-family: var(--sans);
  font-size: 12px;
  color: #ffffff;
  opacity: 0.7;
}
.footer-contact p {
  margin-bottom: 6px;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  :root {
    --page-px: 24px;
    --stack-xl: 56px;
  }
  .editorial-grid {
    display: flex;
    flex-direction: column;
  }
  .col-7,
  .col-5,
  .col-8,
  .col-4,
  .col-12 {
    width: 100%;
  }
  .cta-block {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }
  .phase-grid {
    grid-template-columns: 1fr;
  }
  .hero-section {
    min-height: 280px;
  }
  .image-frame {
    margin-top: 20px;
    margin-left: 20px;
  }
}
@media (max-width: 600px) {
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }
}
