/* ============================================================
   Kai × Harbinger Lane — Roundtable Invitation
   Unified palette anchored on Kai's brand system
   ============================================================ */

:root {
  /* Brand — Blue */
  --blue-100: #EDF6FD;
  --blue-200: #CBE4F6;
  --blue-300: #A8CBE6;
  --blue-400: #7EABCE;
  --blue-500: #558BB5;
  --blue-600: #38709F;
  --blue-700: #235785;
  --blue-800: #113F69;
  --blue-900: #05294D;

  /* Brand — Teal */
  --teal-300: #ABD7DE;
  --teal-500: #5098A3;
  --teal-700: #206A79;

  /* Brand — Coral */
  --coral-200: #FED9CE;
  --coral-400: #F6A48E;
  --coral-500: #F18B71;
  --coral-600: #C16753;

  /* Neutral (cool grey) */
  --n-50:  #FCFDFD;
  --n-100: #F7F9FA;
  --n-200: #EEF0F3;
  --n-300: #DFE3E8;
  --n-400: #C7CDD4;
  --n-500: #A1A7AD;
  --n-600: #707880;
  --n-700: #4C555E;
  --n-800: #28323B;
  --n-900: #161D26;

  /* Surfaces */
  --cream: #F4ECDF;
  --cream-deep: #EBE0CE;
  --navy: #111E2A;

  /* Semantic */
  --ink: var(--blue-900);
  --ink-soft: var(--n-700);
  --accent: var(--coral-500);
  --accent-deep: var(--coral-600);

  --serif: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1240px;
  --maxw-narrow: 980px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

::selection { background: var(--coral-200); color: var(--blue-900); }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.wrap--narrow { max-width: var(--maxw-narrow); }

.section { padding: clamp(52px, 7vw, 90px) 0; }
.section--cream { background: var(--cream); }
.section { background: var(--n-50); }
.section--cream.section { background: var(--cream); }

/* ---------- Masthead / co-brand lockup ---------- */
.masthead {
  background: var(--navy);
  padding: clamp(26px, 4vw, 38px) 28px;
}
.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.4vw, 38px);
  flex-wrap: wrap;
}
.logo-link {
  display: inline-flex;
  line-height: 0;
  transition: opacity 0.2s var(--ease);
}
.logo-link:hover { opacity: 0.72; }
.lockup__logo { width: auto; max-width: none; flex-shrink: 0; }
.lockup__logo--kai { height: clamp(48px, 6vw, 64px); }
.lockup__logo--hl { height: clamp(40px, 5vw, 52px); }
.lockup__conj {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-300);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(85,139,181,0.10), transparent 60%),
    var(--cream);
  padding: clamp(36px, 5vw, 60px) 28px clamp(18px, 2.5vw, 30px);
  overflow: hidden;
  text-align: center;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal-700);
  margin: 0 0 28px;
}
.eyebrow__rule {
  display: inline-block;
  width: clamp(18px, 6vw, 46px);
  height: 1px;
  background: var(--teal-500);
  opacity: 0.6;
}

.hero__forline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--coral-600);
  margin: 0 0 18px;
}

/* Personalized invitee chip */
.invitee {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 20px;
  padding: 7px 20px 7px 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
}
.invitee__avatar {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px -3px rgba(17, 30, 42, 0.4);
}
.invitee__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--coral-600);
}
#inviteeName { font-style: normal; font-weight: 700; color: var(--blue-800); }
#inviteeInst { font-style: normal; font-weight: 600; color: var(--n-700); }

.hero__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(38px, 6.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--blue-900);
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero__subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 26px);
  line-height: 1.4;
  color: var(--blue-700);
  max-width: 660px;
  margin: 0 auto 30px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto 30px;
  padding: 15px 0;
  border-top: 1px solid var(--cream-deep);
  border-bottom: 1px solid var(--cream-deep);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-800);
}
.hero__meta-dot { color: var(--coral-500); font-weight: 400; }

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 13px;
  --btn-pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--lg { --btn-pad-y: 16px; --btn-pad-x: 34px; font-size: 16px; }

.btn--primary {
  background: var(--coral-500);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(193,103,83,0.8);
}
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(193,103,83,0.9);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-300);
}
.btn--ghost:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244,236,223,0.4);
}
.btn--outline:hover {
  background: rgba(244,236,223,0.08);
  border-color: var(--cream);
  transform: translateY(-2px);
}

/* ---------- Details strip ---------- */
.details {
  background: var(--navy);
  padding: clamp(28px, 4vw, 44px) 28px;
}
.details__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  overflow: hidden;
}
.detail {
  background: var(--navy);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.detail__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--blue-300);
}
.detail__value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.1;
}
.detail__sub {
  font-size: 13px;
  color: var(--n-400);
}

/* ---------- Generic section type ---------- */
.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-600);
  margin: 0 0 16px;
}
.kicker--light { color: var(--coral-400); }

.section__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--blue-900);
  margin: 0 0 18px;
  max-width: 18ch;
}
.section__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--blue-700);
  margin: 0 0 36px;
  max-width: 46ch;
}

.prose p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--n-800);
  margin: 0 0 20px;
  max-width: 62ch;
}
.prose p:last-child { margin-bottom: 0; }

/* Hero flows straight into the agenda (both cream) — keep the gap tight */
#agenda { padding-top: clamp(32px, 4vw, 52px); }

/* Two-column: topic description beside the agenda rail */
.agenda-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 5vw, 84px);
  align-items: start;
}
.topic { position: sticky; top: 36px; }
.prose--lead p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--n-800);
  max-width: 52ch;
}
/* Agenda timeline rail */
.rail {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  counter-reset: step;
}
.rail__step {
  position: relative;
  counter-increment: step;
  padding: 0 0 34px 54px;
}
.rail__step:last-child { padding-bottom: 0; }
/* connector line */
.rail__step::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -2px;
  width: 2px;
  background: var(--n-300);
}
.rail__step:last-child::before { display: none; }
/* numbered node */
.rail__step::after {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--coral-400);
  color: var(--coral-600);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--cream);
}
.rail__title {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.15;
  color: var(--blue-900);
}
.rail__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--n-700);
  max-width: 50ch;
}

/* ---------- The Particulars (spread across the width) ---------- */
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(40px, 6vw, 96px);
  row-gap: 0;
  border-top: 1px solid var(--n-200);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 0;
  border-bottom: 1px solid var(--n-200);
}
.fact__key {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--coral-600);
}
.fact__val {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.35;
  color: var(--blue-900);
}
.fact__sub {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--n-600);
}

/* ---------- The Table ---------- */
.table__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.table__card {
  background: var(--n-50);
  border: 1px solid var(--n-200);
  border-radius: 18px;
  padding: 36px 32px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.section--cream .table__card { background: #fff; border-color: var(--cream-deep); }
.table__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(17,30,42,0.4);
}
.table__num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal-500);
  display: block;
  margin-bottom: 12px;
}
.table__role {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue-800);
  margin: 0 0 12px;
}
.table__desc {
  font-size: 16px;
  color: var(--n-700);
  margin: 0;
}

/* ---------- Outcomes ---------- */
.outcomes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.outcome {
  background: linear-gradient(180deg, var(--blue-900), var(--blue-800));
  color: var(--cream);
  border-radius: 20px;
  padding: 40px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.outcome:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(5,41,77,0.7);
}
.outcome__index {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--coral-400);
  display: block;
  margin-bottom: 18px;
}
.outcome__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
}
.outcome__desc {
  font-size: 16px;
  color: var(--blue-200);
  margin: 0;
}

/* ---------- RSVP ---------- */
.rsvp {
  position: relative;
  background:
    radial-gradient(100% 120% at 50% 0%, #16283a, var(--navy) 70%);
  color: var(--cream);
  padding: clamp(72px, 10vw, 130px) 28px;
  overflow: hidden;
  text-align: center;
}
.rsvp__motif {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(125,187,197,0.5) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(55% 60% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(55% 60% at 50% 40%, #000, transparent 75%);
  opacity: 0.25;
  pointer-events: none;
}
.rsvp__inner { position: relative; z-index: 2; }
.rsvp__title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: #fff;
  text-wrap: balance;
}
.rsvp__lede {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--blue-200);
  max-width: 48ch;
  margin: 0 auto 38px;
}
.rsvp__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.rsvp__cal {
  font-size: 14px;
  color: var(--n-400);
  margin-bottom: 28px;
}
.rsvp__cal-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-300);
  margin-right: 10px;
}
.rsvp__cal a {
  color: var(--teal-300);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.rsvp__cal a:hover { border-color: var(--teal-300); }
.rsvp__cal-sep { margin: 0 10px; color: var(--n-600); }
.rsvp__note {
  font-size: 14px;
  color: var(--n-500);
  margin: 0;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 44px 28px 52px;
  text-align: center;
}
.footer__lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 18px;
}
.footer__logo { width: auto; max-width: none; flex-shrink: 0; }
.footer__logo--kai { height: 42px; }
.footer__logo--hl { height: 32px; }
.footer__conj { color: var(--n-600); font-size: 18px; }
.footer__note {
  font-size: 13px;
  color: var(--n-500);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .details__grid { grid-template-columns: repeat(2, 1fr); }
  .agenda-grid { grid-template-columns: 1fr; gap: 40px; }
  .topic { position: static; }
  .prose--lead p,
  .topic__quote { max-width: none; }
  .facts { grid-template-columns: 1fr; column-gap: 0; }
}
@media (max-width: 680px) {
  .table__grid,
  .outcomes__grid { grid-template-columns: 1fr; }
  .lockup__conj { width: 100%; text-align: center; order: 2; }
  .lockup { gap: 12px; }
  .hero__cta .btn,
  .rsvp__actions .btn { width: 100%; }
  .section__title { max-width: none; }
}
@media (max-width: 460px) {
  .details__grid { grid-template-columns: 1fr; }
}
