@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Havelock Titling';
  src: url('assets/fonts/Havelock-Light.otf') format('opentype');
  font-weight: 300;
}
@font-face {
  font-family: 'Havelock Titling';
  src: url('assets/fonts/Havelock-Regular.otf') format('opentype');
  font-weight: 400;
}
@font-face {
  font-family: 'Havelock Titling';
  src: url('assets/fonts/Havelock-Medium.otf') format('opentype');
  font-weight: 500;
}
@font-face {
  font-family: 'Havelock Titling';
  src: url('assets/fonts/Havelock-Bold.otf') format('opentype');
  font-weight: 700;
}
@font-face {
  font-family: 'Havelock Titling';
  src: url('assets/fonts/Havelock-Black.otf') format('opentype');
  font-weight: 900;
}

:root {
  --navy: #061d33;
  --navy-deep: #040f1c;
  --navy-mid: #0a2740;
  --slate: #8a99ad;
  --fog: #e8edf2;
  --red: #a8201f;
  --red-bright: #c0392b;
  --display-font: 'Havelock Titling', 'Arial Narrow', sans-serif;
  --body-font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--fog);
  font-family: var(--body-font);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.wrap-mid { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 15, 28, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display-font);
  font-size: 18px;
  letter-spacing: 0.18em;
  color: var(--fog);
}
.brand img { height: 44px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--slate);
}
.nav-links a:hover { color: var(--fog); }
.btn-cta {
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--red-bright); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fog);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 24px;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--slate);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu a:hover { color: var(--fog); }
.mobile-menu a.btn-cta {
  margin: 16px 24px;
  width: calc(100% - 48px);
  text-align: center;
  border-bottom: none;
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .site-nav .wrap > .btn-cta { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 480px) {
  .site-nav .wrap { padding: 14px 16px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { height: 28px; flex-shrink: 0; }
  .brand-text {
    font-size: 13px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

/* ---------- Sections ---------- */
section {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 96px 24px;
  position: relative;
  overflow: hidden;
}
section.cover {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(1px 1px at 8% 22%, rgba(232,237,242,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 18% 68%, rgba(232,237,242,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 32% 12%, rgba(232,237,242,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 44% 80%, rgba(232,237,242,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, rgba(232,237,242,0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 67% 58%, rgba(232,237,242,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 18%, rgba(232,237,242,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 70%, rgba(232,237,242,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 38%, rgba(232,237,242,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 90%, rgba(232,237,242,0.4) 50%, transparent 51%),
    radial-gradient(900px 900px at 80% -10%, rgba(168,32,31,0.18), transparent 60%),
    radial-gradient(700px 700px at -10% 110%, rgba(168,32,31,0.12), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy));
}
section.cover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1100px;
  height: 380px;
  border: 1.5px solid rgba(168,32,31,0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}
section.cover::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1400px;
  height: 480px;
  border: 1px solid rgba(232,237,242,0.08);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}

.orbit-rail {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(168,32,31,0.5), transparent);
}
@media (max-width: 760px) {
  .orbit-rail { display: none; }
}

.eyebrow {
  font-family: var(--display-font);
  font-size: 22px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}

h1, h2, h3 { font-family: var(--display-font); color: var(--fog); margin: 0; }
h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 24px; }
p { color: var(--slate); margin: 0; font-size: 17px; }
.text-fog { color: var(--fog); }

.center { text-align: center; }

.callout-box { padding: 56px; }
.callout-heading { font-size: 30px; }

/* ---------- Mobile scaling ---------- */
@media (max-width: 700px) {
  section { padding: 64px 20px; }
  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .eyebrow { font-size: 16px; letter-spacing: 0.2em; }
  .callout-box { padding: 28px; }
  .callout-heading { font-size: 22px; }
  .wrap, .wrap-narrow, .wrap-mid { padding: 0 20px; }
}
@media (max-width: 400px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .wrap, .wrap-narrow, .wrap-mid { padding: 0 16px; }
}


/* ---------- Placeholder media ---------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.1);
  background-color: var(--navy-mid);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 2px, transparent 2px, transparent 10px);
  color: var(--slate);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 24px;
  min-height: 200px;
}
.placeholder.square { aspect-ratio: 1 / 1; }
.placeholder.wide { aspect-ratio: 16 / 9; }
.placeholder.globe { aspect-ratio: 16 / 10; }

/* ---------- Quote blocks ---------- */
.quote {
  border-left: 2px solid rgba(168,32,31,0.6);
  background: rgba(10,39,64,0.6);
  padding: 24px;
  font-size: 20px;
  font-style: italic;
  color: var(--fog);
}
.quote .attribution {
  margin-top: 12px;
  font-style: normal;
  font-size: 16px;
  color: var(--slate);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- One-time shimmer highlight ---------- */
.shimmer-text {
  display: inline-block;
  color: var(--fog);
}
.reveal.in-view .shimmer-text {
  animation: shimmer-pop 1.6s ease-out 0.6s 1;
}
@keyframes shimmer-pop {
  0%   { color: var(--fog); text-shadow: none; }
  45%  { color: #ffffff; text-shadow: 0 0 10px rgba(255,255,255,0.95), 0 0 26px rgba(255,255,255,0.75), 0 0 46px rgba(168,32,31,0.5); }
  100% { color: var(--fog); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in-view .shimmer-text { animation: none; }
}

/* ---------- Generic spacing helpers ---------- */
.stack { display: flex; flex-direction: column; gap: 40px; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 56px; }

/* ---------- Same budget comparison ---------- */
.time-question {
  font-family: var(--display-font);
  font-size: 46px;
  line-height: 1.15;
  color: #ffffff;
  margin-top: 14px;
  letter-spacing: 0.3px;
}
.comparison {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(10,39,64,0.5);
  padding: 40px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
@media (max-width: 700px) {
  .time-question { font-size: 32px; }
  .comparison-grid { grid-template-columns: 1fr; text-align: center; }
  .comparison { padding: 24px; }
  .comparison-box { padding: 20px 16px; font-size: 13px; }
  .flag { font-size: 17px; }
  .clock-img { width: 128px; height: auto; }
  .arrow-img { width: 44px; height: auto; }
  .comparison-arrow { transform: rotate(90deg); margin: 4px auto; }
}
@media (max-width: 400px) {
  .comparison { padding: 16px; }
  .comparison-box { padding: 16px 12px; }
}
.comparison-box {
  background: rgba(4,15,28,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.comparison-box--future {
  border-color: rgba(168,32,31,0.35);
  background: rgba(10,39,64,0.6);
}
.clock-img {
  width: 184px;
  height: auto;
  margin-bottom: 4px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
}
.arrow-img {
  width: 56px;
  height: auto;
}
.comparison-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}
.equals-bars {
  display: block;
  width: 30px;
  margin: 0 auto 16px;
}
.equals-bars::before,
.equals-bars::after {
  content: "";
  display: block;
  height: 5px;
  background: var(--red);
  border-radius: 3px;
  margin: 5px 0;
}
.budget-line h2 {
  font-size: 30px;
}
.flag {
  color: var(--red);
  font-size: 22px;
  font-weight: 600;
}

/* ---------- Demo / form section ---------- */
.trio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .trio-grid { grid-template-columns: 1fr; gap: 20px; }
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
  margin-top: 40px;
}
@media (max-width: 600px) {
  .demo-stats { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
}
.demo-stats .num { font-family: var(--display-font); font-size: 36px; color: var(--fog); }
.demo-stats .label { font-size: 15px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--slate); margin-top: 4px; }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
@media (max-width: 800px) {
  .demo-grid { grid-template-columns: 1fr; }
}
.demo-grid h3 {
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.value-list li { display: flex; gap: 16px; font-size: 17px; }
.value-list .num { font-family: var(--display-font); color: var(--red); flex-shrink: 0; }
.value-list strong { color: var(--fog); display: block; margin-bottom: 4px; }

form { display: flex; flex-direction: column; gap: 20px; }
fieldset { border: none; padding: 0; margin: 0; }
legend { font-size: 14px; color: var(--slate); padding: 0; margin-bottom: 8px; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) {
  .checkbox-grid { grid-template-columns: 1fr; }
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--fog);
}
.other-text {
  margin-top: 8px;
  width: 100%;
  background: rgba(10,39,64,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fog);
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 2px;
  font-family: var(--body-font);
}
.other-text:focus { outline: none; border-color: var(--red); }
fieldset legend { font-size: 16px; color: var(--slate); padding: 0; margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
}
.field-grid label { display: block; font-size: 15px; color: var(--slate); }
.field-grid input, textarea {
  margin-top: 6px;
  width: 100%;
  background: rgba(10,39,64,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--fog);
  padding: 12px 14px;
  font-size: 16px;
  border-radius: 2px;
  font-family: var(--body-font);
}
input:focus, textarea:focus { outline: none; border-color: var(--red); }

.submit-btn {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}
.submit-btn:hover { background: var(--red-bright); }

/* ---------- Form feedback ---------- */
.form-error {
  color: var(--red-bright);
  font-size: 14px;
  margin: 0;
}
.form-error[hidden] { display: none; }

/* ---------- Success modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4,15,28,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid rgba(168,32,31,0.4);
  border-radius: 4px;
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--slate);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.modal-close:hover { color: var(--fog); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--navy-deep);
  padding: 56px 24px;
  text-align: center;
}
footer .wrap-narrow { display: flex; flex-direction: column; align-items: center; gap: 16px; }
footer img { height: 56px; width: auto; }
.footer-title { font-family: var(--display-font); font-size: 18px; letter-spacing: 0.2em; color: var(--fog); }
.footer-sub { font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--slate); }
.footer-copy { font-size: 11px; color: var(--slate); opacity: 0.7; margin-top: 16px; }
.linkedin-btn {
  border: 1px solid rgba(138,153,173,0.4);
  padding: 8px 16px;
  font-size: 12px;
  color: var(--fog);
}
.linkedin-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- Revisit cadence image cycle ---------- */
.revisit-cycle {
  position: relative;
  width: 100%;
  aspect-ratio: 1350 / 783;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  background: var(--navy-mid);
}
.revisit-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: revisit-cut 6s infinite;
  animation-fill-mode: backwards;
}
.revisit-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.revisit-slide:nth-child(1) { animation-delay: 0s; }
.revisit-slide:nth-child(2) { animation-delay: 1s; }
.revisit-slide:nth-child(3) { animation-delay: 2s; }
.revisit-slide:nth-child(4) { animation-delay: 3s; }
.revisit-slide:nth-child(5) { animation-delay: 4s; }
.revisit-slide:nth-child(6) { animation-delay: 5s; }
.revisit-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(4,15,28,0.75);
  border: 1px solid rgba(168,32,31,0.5);
  color: var(--fog);
  font-family: var(--display-font);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
}
/* Hard cut: each slide snaps to fully visible, holds for its 1s slot,
   then snaps off with no cross-fade. */
@keyframes revisit-cut {
  0%       { opacity: 0; }
  0.01%    { opacity: 1; }
  16.6667% { opacity: 1; }
  16.6767% { opacity: 0; }
  100%     { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .revisit-slide { animation: none; opacity: 0; }
  .revisit-slide:nth-child(1) { opacity: 1; }
}

/* ---------- Events page ---------- */
.event-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  border: 1px solid rgba(168,32,31,0.5);
  padding: 24px;
  align-items: stretch;
}
@media (max-width: 600px) {
  .event-card { grid-template-columns: 1fr; }
}
.event-card a {
  color: var(--red);
  text-decoration: underline;
  font-size: 17px;
  font-weight: 600;
}

/* ---------- About page ---------- */
.about-hero {
  background: var(--navy-deep);
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.about-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-hero-copy h1 {
  margin: 0 0 24px;
}
.about-hero-copy .lead {
  font-size: 22px;
  line-height: 1.55;
  color: var(--fog);
}
.about-hero-copy p:not(.lead) {
  margin-top: 16px;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.6;
}
.about-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}
@media (max-width: 800px) {
  .about-hero { padding: 64px 0; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-hero-media { order: -1; }
}
.about-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 56px;
  margin-top: 64px;
}
.about-row h2 {
  font-size: 26px;
  line-height: 1.3;
  overflow-wrap: break-word;
}
@media (max-width: 700px) {
  .about-row { grid-template-columns: 1fr; }
}
.about-row p + p { margin-top: 16px; }
.btn-outline {
  display: inline-block;
  margin-top: 16px;
  background: var(--red);
  color: #fff;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-outline:hover { background: var(--red-bright); }

.day-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
}
