/* =========================================================
   Beyond the Salute: Thank You for Your Service
   Layout: one dark cinematic column, left-aligned type,
   long vertical rhythm, brass used only as a thin "honor" thread.
   ========================================================= */

:root {
  /* Color */
  --bg:          #0D1117;   /* main dark background */
  --bg-raised:   #121820;   /* panels, media frames */
  --navy:        #0B1F33;   /* primary navy (bands, hero wash) */
  --navy-deep:   #081626;
  --steel:       #5F6B76;   /* lines, decorative only (not body text) */
  --steel-text:  #A3ADB7;   /* muted text: ~8:1 on --bg */
  --text:        #F2F4F6;
  --brass:       #C39A4B;   /* accent: ~7:1 on --bg */
  --brass-soft:  rgba(195, 154, 75, 0.14);
  --line:        rgba(242, 244, 246, 0.10);
  --line-strong: rgba(242, 244, 246, 0.22);

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2:  clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3:  clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem);
  --step-4:  clamp(2.6rem, 1.7rem + 4.4vw, 5.6rem);
  --step-5:  clamp(3rem, 1.8rem + 6vw, 7.75rem);

  /* Layout */
  --wrap: 76rem;
  --gutter: max(20px, 4vw);
  --section-space: clamp(5rem, 3rem + 8vw, 10rem);
  --header-h: 4.25rem;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; max-width: 62ch; text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--brass);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Shared pieces ---------- */
.label,
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}

.label {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.label::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.section { padding-block: var(--section-space); }

.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-title {
  font-size: var(--step-3);
  font-stretch: 88%;
}
.section-title--xl {
  font-size: var(--step-4);
  font-stretch: 82%;
}

.fine {
  font-size: var(--step--1);
  color: var(--steel-text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.1rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-icon { width: .9em; height: .9em; flex: none; }

.btn-primary {
  background: var(--brass);
  color: #12100B;
}
.btn-primary:hover { background: #D3AC5F; }

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-quiet:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(13, 17, 23, .82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.brand-mark { width: 1.75rem; height: auto; color: var(--brass); flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--steel-text);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--text);
  padding: .5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.site-nav .nav-cta:hover { border-color: var(--brass); color: var(--brass); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  padding: .5rem .25rem;
  background: none;
  border: 0;
  color: var(--text);
  font: 500 .85rem/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 1.25rem; height: 1px;
  background: currentColor;
  transition: transform .25s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle-bars { transform: translateY(-3px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 720px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: rgba(13, 17, 23, .97);
    border-bottom: 1px solid var(--line);
    padding: .5rem max(var(--gutter), env(safe-area-inset-right, 0px)) 1.5rem max(var(--gutter), env(safe-area-inset-left, 0px));
  }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--text); }
  .js .site-nav .nav-cta { border: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; color: var(--brass); }
  /* No-JS fallback: links wrap under the wordmark */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: .75rem; }
  html:not(.js) .brand-name { font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(4rem, 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 75% 10%, rgba(11, 31, 51, .95) 0%, rgba(11, 31, 51, 0) 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--bg) 100%);
}

/* Image slot + legibility overlay (only visible once an <img> is added) */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(.35) contrast(1.05);
}
.hero-media:has(img)::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,17,23,.55) 0%, rgba(13,17,23,.35) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13,17,23,.85) 0%, rgba(13,17,23,0) 70%);
}

/* Fine horizontal scan lines: a quiet film-still texture */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.hero-inner { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  color: var(--steel-text);
}
.eyebrow-org { color: var(--brass); }
.eyebrow-sep { width: 1.5rem; height: 1px; background: var(--steel); }

.hero-title {
  font-size: var(--step-5);
  font-stretch: 78%;
  font-weight: 800;
  line-height: .94;
  letter-spacing: -0.025em;
  max-width: 11ch;
}

.hero-lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--steel-text);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  padding-top: .5rem;
}

/* ---------- Three forms strip ---------- */
.forms-strip {
  border-block: 1px solid var(--line);
  background: var(--navy);
}
.forms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 1.5rem 3rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}
.forms-intro {
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: var(--step-1);
}
.forms-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}
.forms-list > div {
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
}
.forms-list dt {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass);
}
.forms-list dd { margin: .25rem 0 0; color: var(--steel-text); font-size: .95rem; }

/* ---------- Media frames (PSA + ad) ---------- */
.media-frame { margin: 0; display: grid; gap: .9rem; min-width: 0; }

.media-frame--video > video,
.media-frame--video > .media-placeholder { aspect-ratio: 16 / 9; width: 100%; }
.media-frame--video > video { object-fit: contain; }
.media-frame--ad    > :first-child { aspect-ratio: 4 / 5;  width: 100%; }

.media-frame video,
.media-frame iframe,
.media-frame img {
  width: 100%;
  height: auto;
  background: #000;
  border: 1px solid var(--line);
}
.media-frame iframe { aspect-ratio: 16 / 9; height: auto; }

.media-caption {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--steel-text);
  letter-spacing: .04em;
}

/* Video placeholder: letterboxed screen */
.media-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(11,31,51,.9) 0%, rgba(8,12,17,1) 100%);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), 0 30px 80px -40px rgba(0,0,0,.8);
  overflow: hidden;
}
.media-placeholder::before,
.media-placeholder::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 9%;
  background: #05070A;
}
.media-placeholder::before { top: 0; }
.media-placeholder::after { bottom: 0; }

.timecode {
  position: absolute;
  top: 12%; right: 4%;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--steel);
  font-variant-numeric: tabular-nums;
}

.play-glyph {
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 7vw, 4.5rem);
  aspect-ratio: 1;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
}
.play-glyph svg { width: 36%; transform: translateX(8%); }

.placeholder-kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-text);
}
.placeholder-title {
  font-family: var(--font-display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.placeholder-rule { width: 2.5rem; height: 1px; background: var(--brass); }
.placeholder-note {
  font-size: var(--step--1);
  letter-spacing: .04em;
  color: var(--steel-text);
}

/* ---------- PSA ---------- */
.psa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.psa-copy { display: grid; gap: 1.25rem; padding-top: .25rem; }
.psa-copy p:first-child {
  font-family: var(--font-display);
  font-stretch: 92%;
  font-weight: 500;
  font-size: var(--step-1);
  line-height: 1.4;
}
.psa-copy p:not(.fine) { color: var(--text); }
.psa-copy p:nth-child(2) { color: var(--steel-text); }

/* ---------- Why it matters ---------- */
.why { border-top: 1px solid var(--line); }

.why-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.why-copy { display: grid; gap: 1.1rem; color: var(--steel-text); }
.why-copy p:last-child { color: var(--text); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.pillar {
  display: grid;
  align-content: start;
  gap: .9rem;
  padding: 2rem clamp(1rem, 2.5vw, 2.25rem) 0 0;
}
.pillar + .pillar {
  padding-left: clamp(1rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--line);
}
.pillar-title {
  position: relative;
  font-size: var(--step-2);
  font-stretch: 85%;
}
.pillar-title::before {
  content: "";
  display: block;
  width: 1.5rem; height: 2px;
  margin-bottom: 1.1rem;
  background: var(--brass);
}
.pillar p { color: var(--steel-text); }

/* ---------- Interstitial ---------- */
.interstitial {
  padding-block: clamp(6rem, 4rem + 10vw, 12rem);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--navy) 50%, var(--bg) 100%);
  text-align: left;
}
.interstitial-line {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: var(--step-4);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--steel-text);
  text-wrap: balance;
}
.interstitial-line + .interstitial-line { margin-top: .4em; }
.interstitial-line--strong { color: var(--text); margin-left: auto; text-align: right; }

/* ---------- Static ad ---------- */
.ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.ad-copy { display: grid; gap: 1.5rem; }
.ad-copy > p:last-child { color: var(--steel-text); }

.media-frame--ad { max-width: 34rem; justify-self: end; width: 100%; }

.ad-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(13,17,23,0) 30%, rgba(13,17,23,.9) 78%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px),
    #10161D;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
  overflow: hidden;
}
.ad-ph-tag {
  align-self: flex-start;
  padding: .3rem .55rem;
  border: 1px dashed var(--steel);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-text);
}
.ad-ph-type { display: grid; gap: .55rem; }
.ad-ph-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  line-height: .92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 9ch;
}
.ad-ph-line {
  margin-top: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 90%;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
  color: var(--brass);
}
.ad-ph-sub { font-size: .9rem; color: var(--steel-text); }
.ad-ph-org {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ---------- Take action ---------- */
.action {
  background: var(--navy);
  border-top: 1px solid var(--line);
}
.action-head { display: grid; gap: 1.5rem; }
.action-lede {
  font-size: var(--step-1);
  color: var(--steel-text);
}

.actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
}
.action-item {
  display: grid;
  align-content: start;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.action-item h3 { font-size: var(--step-1); font-stretch: 90%; font-weight: 700; }
.action-item p { color: var(--steel-text); font-size: .98rem; }

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.action-notes {
  margin-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--steel-text);
}
.crisis {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--brass);
  background: var(--brass-soft);
  font-size: .95rem;
  max-width: 48rem;
}
.crisis strong { font-weight: 600; margin-right: .25rem; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-tag { margin-top: .35rem; color: var(--brass); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a {
  font-size: .9rem;
  color: var(--steel-text);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }
.disclosure {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: none;
  font-size: var(--step--1);
  color: var(--steel-text);
}

/* ---------- Reveal motion (enabled only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .psa-layout,
  .why-intro,
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .why-intro { align-items: start; }
  .media-frame--ad { justify-self: start; }
  .forms-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .forms-list,
  .pillars,
  .actions { grid-template-columns: minmax(0, 1fr); }
  .forms-list { gap: 1rem; }
  .pillar,
  .pillar + .pillar { padding: 1.75rem 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .interstitial-line--strong { text-align: left; margin-left: 0; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero { min-height: 88svh; }
}

@media (max-width: 420px) {
  .btn { width: 100%; justify-content: center; }
  .brand-name { font-size: .85rem; letter-spacing: .12em; }
}

@media (max-width: 340px) {
  .brand-name { font-size: .75rem; letter-spacing: .08em; }
  .nav-toggle-label { display: none; }
}
