/* The Disaster After — "the morning after" design system
   Night (deep indigo) → dawn (gold band) → day (light sections). */

:root {
  --night: #0c1330;
  --night-2: #151d45;
  --night-3: #1f2960;
  --day: #f6f6f3;
  --day-2: #ffffff;
  --ink: #111a3a;
  --ink-soft: #4b5478;
  --ink-faint: #8a91ad;
  --line: rgba(17, 26, 58, 0.12);
  --dawn: #f6b42a;        /* sunrise gold */
  --dawn-bright: #ffd166;
  --dawn-deep: #b7791f;   /* gold that passes contrast on white */
  --blush: #ee5d6c;       /* horizon pink, glow only */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, system-ui, sans-serif;
  --max: 1140px;
  --radius: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--day);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--dawn); color: var(--night); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96, "wdth" 96;
}

.display { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }

/* emphasis: gold highlight on light, gold text on night */
h1 em, h2 em, .display em {
  font-style: normal;
  background: linear-gradient(transparent 58%, rgba(246, 180, 42, 0.5) 58%, rgba(246, 180, 42, 0.5) 92%, transparent 92%);
  padding: 0 0.06em;
}
.on-night h1 em, .on-night h2 em, .on-night .display em {
  background: none; padding: 0; color: var(--dawn-bright);
}

.kicker {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.3rem;
}
.kicker::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dawn);
  box-shadow: 0 0 0 4px rgba(246, 180, 42, 0.22);
  flex: none;
}
.on-night .kicker { color: rgba(255, 255, 255, 0.72); }

.lede { font-size: clamp(1.08rem, 1.8vw, 1.32rem); line-height: 1.5; color: var(--ink-soft); max-width: 34em; }
.on-night .lede { color: rgba(255, 255, 255, 0.78); }
.lede strong, p strong { color: var(--ink); font-weight: 600; }
.on-night p strong { color: #fff; }

.muted { color: var(--ink-soft); }

/* ---------- layout ---------- */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(4rem, 8.5vw, 7rem) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 19, 48, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; max-width: 1280px;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.01em; text-decoration: none; color: #fff;
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
}
.brand .mark {
  width: 14px; height: 14px; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, var(--dawn-bright), var(--dawn));
  box-shadow: 0 0 0 3px rgba(246, 180, 42, 0.25);
}
.brand strong { color: var(--dawn-bright); font-weight: 700; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav a {
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  color: rgba(255, 255, 255, 0.74); transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"]:not(.btn) { color: var(--dawn-bright); }
.nav .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem clamp(1.25rem, 4vw, 2.5rem); border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 1rem; }
  .nav .btn { margin: 1rem clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  padding: 0.95rem 1.7rem; border: 2px solid transparent; border-radius: 999px;
  background: var(--night); color: #fff;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); background: var(--night-3); box-shadow: 0 10px 24px rgba(12, 19, 48, 0.18); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: rgba(17, 26, 58, 0.05); border-color: var(--ink-soft); box-shadow: none; }

/* gold buttons anywhere on a night surface */
.on-night .btn, .nav .btn {
  background: var(--dawn); color: var(--night);
}
.on-night .btn:hover, .nav .btn:hover { background: var(--dawn-bright); box-shadow: 0 10px 30px rgba(246, 180, 42, 0.35); }
.on-night .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.on-night .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; box-shadow: none; }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

/* ---------- hero: night sky, sun rising ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 9.5rem 0 6rem;
  color: #fff;
  background:
    radial-gradient(70% 55% at 78% 108%, rgba(238, 93, 108, 0.35), transparent 70%),
    linear-gradient(180deg, #080e28 0%, var(--night) 45%, #1c2258 100%);
}
/* the sun */
.hero::before {
  content: "";
  position: absolute; z-index: 0;
  left: 62%; bottom: -34vw;
  width: 68vw; height: 68vw; max-width: 980px; max-height: 980px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%,
    rgba(255, 224, 140, 0.95) 0%,
    rgba(246, 180, 42, 0.75) 28%,
    rgba(246, 180, 42, 0.25) 52%,
    rgba(246, 180, 42, 0) 70%);
  filter: blur(6px);
  pointer-events: none;
}
/* the horizon */
.hero::after {
  content: "";
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--dawn) 35%, var(--dawn-bright) 62%, transparent);
}
.hero .wrap { position: relative; z-index: 2; }
.hero .display { max-width: 11em; text-shadow: 0 2px 30px rgba(8, 14, 40, 0.5); }
.hero .lede { margin: 1.8rem 0 2.6rem; }
@media (max-width: 800px) {
  .hero::before { left: 40%; bottom: -60vw; width: 120vw; height: 120vw; }
}

/* small caption row over the hero */
.slate {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex; gap: 1.6rem; flex-wrap: wrap;
}
.slate span { display: flex; align-items: center; gap: 0.5rem; }
.slate span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dawn); }
.hero .slate { margin-bottom: clamp(2rem, 5vh, 3.5rem); }

/* dawn band under the hero */
.hero-strip { background: var(--dawn); color: var(--night); }
.hero-strip .wrap {
  display: flex; gap: 2.5rem; overflow-x: auto; padding-top: 1rem; padding-bottom: 1rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; scrollbar-width: none;
}
.hero-strip .wrap::-webkit-scrollbar { display: none; }
.hero-strip b { font-family: var(--font-display); font-weight: 800; margin-right: 0.15rem; }

/* ---------- cards / steps ---------- */

.reel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 3rem; }
@media (max-width: 980px) { .reel-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) { .reel-grid { grid-template-columns: 1fr !important; } }

.reel {
  background: var(--day-2); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 2.1rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  box-shadow: 0 1px 2px rgba(17, 26, 58, 0.05), 0 12px 32px -18px rgba(17, 26, 58, 0.25);
  border-top: 4px solid var(--dawn);
  transition: transform 0.25s, box-shadow 0.25s;
}
.reel:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(17, 26, 58, 0.05), 0 22px 40px -18px rgba(17, 26, 58, 0.3); }
.reel .num {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dawn-deep);
}
.reel h3 { font-size: 1.45rem; }
.reel p { font-size: 0.97rem; color: var(--ink-soft); }

/* ---------- status board (Now / Next / Then) ---------- */

.status-board {
  background: var(--day-2); border-radius: var(--radius); margin-top: 3rem;
  box-shadow: 0 1px 2px rgba(17, 26, 58, 0.05), 0 12px 32px -18px rgba(17, 26, 58, 0.25);
  overflow: hidden;
}
.status-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 1.5rem;
  padding: 1.7rem clamp(1.25rem, 3vw, 2.2rem);
}
.status-row + .status-row { border-top: 1px solid var(--line); }
.status-row .tag {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 0.4rem; display: flex; align-items: flex-start; gap: 0.5rem;
}
.status-row .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-top: 0.2rem; flex: none; background: currentColor; }
.tag-now { color: var(--dawn-deep); }
.tag-now::before { background: var(--dawn) !important; box-shadow: 0 0 0 4px rgba(246, 180, 42, 0.25); }
.tag-next { color: var(--ink-soft); }
.tag-then { color: var(--ink-faint); }
.status-row h3 { font-size: 1.28rem; margin-bottom: 0.4rem; }
.status-row p { color: var(--ink-soft); font-size: 0.98rem; max-width: 46em; }
@media (max-width: 560px) { .status-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ---------- pull quote ---------- */

.pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 5px solid var(--dawn); padding-left: clamp(1.2rem, 3vw, 2.2rem);
  max-width: 26em;
}
.pull small {
  display: block; margin-top: 1.2rem; font-family: var(--font-body); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- CTA band: dawn breaking ---------- */

.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background:
    radial-gradient(60% 70% at 50% 120%, rgba(246, 180, 42, 0.55), rgba(238, 93, 108, 0.2) 45%, transparent 75%),
    linear-gradient(180deg, var(--night) 0%, #1c2258 100%);
}
.cta-band .wrap { max-width: 800px; position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 1.2rem; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2.2rem; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .kicker { justify-content: center; }

/* ---------- interior page heads ---------- */

.page-head {
  position: relative; overflow: hidden;
  padding: 10rem 0 4.5rem; color: #fff;
  background:
    radial-gradient(50% 60% at 88% 110%, rgba(246, 180, 42, 0.5), rgba(238, 93, 108, 0.15) 50%, transparent 75%),
    linear-gradient(180deg, #080e28 0%, var(--night) 55%, #1c2258 100%);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--dawn) 40%, var(--dawn-bright) 70%, transparent);
}
.page-head h1 { font-size: clamp(2.5rem, 5.8vw, 4.3rem); max-width: 12em; }
.page-head .lede { margin-top: 1.4rem; }

/* ---------- prose ---------- */

.prose { max-width: 42em; }
.prose p + p { margin-top: 1.15em; }
.prose p { color: var(--ink-soft); }
.prose h3 { margin: 2.2em 0 0.7em; color: var(--ink); }
.prose ul { margin: 1.2em 0 1.2em 1.2em; color: var(--ink-soft); }
.prose li + li { margin-top: 0.5em; }
.prose a, .form-note a {
  color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--dawn); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose a:hover, .form-note a:hover { text-decoration-color: var(--ink); }

/* ---------- forms ---------- */

.form-card {
  background: var(--day-2); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 1px 2px rgba(17, 26, 58, 0.05), 0 16px 40px -20px rgba(17, 26, 58, 0.3);
  border-top: 4px solid var(--dawn);
}
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem;
}
.field input, .field textarea, .field select {
  width: 100%; background: var(--day); border: 1.5px solid var(--line); border-radius: 10px;
  color: var(--ink); font-family: var(--font-body); font-size: 1rem;
  padding: 0.85rem 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--dawn); box-shadow: 0 0 0 4px rgba(246, 180, 42, 0.25); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--dawn-deep); }

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 3.5rem 0 2.5rem; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dawn-bright); margin-bottom: 1rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; display: block; padding: 0.25rem 0; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 1rem; display: inline-flex; }
.site-footer .foot-mission { font-size: 0.95rem; max-width: 30em; }
.foot-legal-wrap { max-width: var(--max); margin: 3rem auto 0; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reel, .btn { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- photography (v3) ---------- */

/* full-bleed photo layers inside .hero / .page-head */
.hero, .page-head { isolation: isolate; }
.bg-photo {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center 40%);
  filter: grayscale(0.4) contrast(1.08) brightness(0.92);
  opacity: 0.6;
}
.bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 19, 48, 0.92) 0%, rgba(12, 19, 48, 0.72) 45%, rgba(12, 19, 48, 0.35) 100%),
    linear-gradient(180deg, rgba(12, 19, 48, 0.55) 0%, rgba(12, 19, 48, 0.1) 40%, rgba(12, 19, 48, 0.75) 100%);
}
.hero::before { z-index: 1; }
.hero::after, .page-head::after { z-index: 2; }
.hero .wrap, .page-head .wrap { position: relative; z-index: 3; }
.page-head .bg-photo img { opacity: 0.42; }
.page-head .bg-photo::after {
  background:
    linear-gradient(90deg, rgba(12, 19, 48, 0.9) 0%, rgba(12, 19, 48, 0.6) 55%, rgba(12, 19, 48, 0.3) 100%),
    linear-gradient(180deg, rgba(12, 19, 48, 0.5) 0%, rgba(12, 19, 48, 0.15) 50%, rgba(12, 19, 48, 0.7) 100%);
}
@media (max-width: 800px) {
  .bg-photo img { opacity: 0.38; }
}

/* photo credit chip, bottom-right of hero / page-head */
.photo-credit {
  position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: 0.9rem; z-index: 3;
  font-size: 0.68rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.55);
  text-decoration: none; max-width: 60%; text-align: right;
}
.photo-credit:hover { color: rgba(255, 255, 255, 0.85); }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* in-flow figure on light sections */
.photo {
  margin: 3rem 0 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 26, 58, 0.06), 0 24px 48px -24px rgba(17, 26, 58, 0.4);
  background: var(--night);
}
.photo img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.photo figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.2rem; background: var(--day-2);
  font-size: 0.82rem; color: var(--ink-soft);
}
.photo figcaption strong { color: var(--ink); font-weight: 600; }
.photo figcaption a { color: inherit; }
.photo figcaption .cr { font-size: 0.72rem; color: var(--ink-faint); white-space: nowrap; }

/* full-bleed cinematic band with quote (top) and caption (bottom) */
.photo-band {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 64vh, 720px); display: flex; align-items: stretch;
  color: #fff; padding: 0;
}
.photo-band img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%;
  z-index: 0; filter: grayscale(0.3) contrast(1.05);
}
.photo-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(12, 19, 48, 0.86) 0%, rgba(12, 19, 48, 0.55) 38%, rgba(12, 19, 48, 0.05) 62%, rgba(12, 19, 48, 0.75) 100%);
}
.photo-band .wrap {
  position: relative; z-index: 2; width: 100%; min-height: inherit;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 4.5rem; padding-bottom: 1.6rem;
}
.photo-band .pull { color: #fff; border-left-color: var(--dawn); max-width: 24em; text-shadow: 0 2px 24px rgba(8, 14, 40, 0.6); }
.photo-band .pull small { color: rgba(255, 255, 255, 0.75); }
.photo-band .band-caption {
  margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.7);
}
.photo-band .band-caption strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }
.photo-band .band-caption a { color: inherit; }
