/* ═══════════════════════════════════════════════════════════════════════════
   PRESENTATION PAGES — deck styling
   Dark navy stage, one accent blue, photographic openers.
   Matches the slide decks Adrian speaks from.
   ═══════════════════════════════════════════════════════════════════════════ */

.deck {
  --deck-bg:      #0a1420;
  --deck-bg-2:    #0f1c2b;
  --deck-line:    #1f3447;
  --deck-blue:    #3ba9f5;
  --deck-teal:    #159e8c;
  --deck-purple:  #7b5bd6;
  --deck-orange:  #f5921e;
  --deck-red:     #e53935;
  --deck-grey:    #8fa2b7;
  --deck-white:   #ffffff;
  --deck-dim:     #b9c7d6;
  --deck-font:    'Inter', system-ui, -apple-system, sans-serif;

  background: var(--deck-bg);
  color: var(--deck-white);
  font-family: var(--deck-font);
}

.deck .container { width: min(1120px, 100%); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }

/* ─── SECTION RHYTHM ─────────────────────────────────────────────────────── */
.deck section { padding: clamp(56px, 8vw, 104px) 0; }
.deck section + section { border-top: 1px solid rgba(255,255,255,0.06); }

.deck h2 {
  font-family: var(--deck-font);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.deck h3 {
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.deck p { font-size: clamp(15px, 1.7vw, 18px); line-height: 1.65; color: var(--deck-dim); }
.deck p + p { margin-top: 14px; }
.deck strong { color: var(--deck-white); font-weight: 600; }

.deck__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deck-blue);
  margin-bottom: 16px;
}
.deck__source {
  font-size: 12.5px;
  color: var(--deck-grey);
  margin-top: 18px;
  line-height: 1.5;
}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.deck-hero {
  position: relative;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(96px, 14vw, 150px) 0 clamp(56px, 8vw, 90px);
  border-top: none;
}
.deck-hero__bg {
  position: absolute;
  inset: 0;
  background: url('../images/presentations/northstar-hero.jpg') center 60% / cover no-repeat;
  transform: scale(1.06);
  animation: deckDrift 26s ease-in-out infinite alternate;
}
@keyframes deckDrift { from { transform: scale(1.06) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.deck-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0.62) 0%, rgba(10,20,32,0.70) 45%, rgba(10,20,32,0.96) 100%);
}
.deck-hero .container { position: relative; z-index: 2; }
.deck-hero__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,0.78); margin-bottom: 20px;
}
.deck-hero__title {
  font-size: clamp(46px, 11vw, 112px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
}
.deck-hero__title span {
  display: block;
  color: var(--deck-blue);
  border-bottom: 6px solid var(--deck-blue);
  width: max-content;
  padding-bottom: 4px;
  margin-top: 6px;
}
.deck-hero__sub {
  font-size: clamp(20px, 3vw, 31px);
  font-weight: 600;
  color: var(--deck-white);
  line-height: 1.25;
  max-width: 17ch;
  margin-top: 30px;
}
.deck-hero__meta {
  font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 24px; letter-spacing: 0.02em;
}
.deck-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.deck-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px; border: 2px solid var(--deck-blue);
  background: var(--deck-blue); color: #05101b;
  cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease;
}
.deck-btn:hover { transform: translateY(-2px); background: #5cbcff; border-color: #5cbcff; }
.deck-btn--ghost { background: transparent; color: var(--deck-white); border-color: rgba(255,255,255,0.45); }
.deck-btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--deck-white); color: var(--deck-white); }

/* ─── BIG STAT ───────────────────────────────────────────────────────────── */
.deck-stat { text-align: center; }
.deck-stat__figure {
  font-size: clamp(76px, 17vw, 190px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--deck-white);
}
.deck-stat__figure em { font-style: normal; color: var(--deck-blue); }
.deck-stat__body {
  font-size: clamp(19px, 2.7vw, 28px);
  font-weight: 600;
  color: var(--deck-white);
  line-height: 1.35;
  max-width: 22ch;
  margin: 22px auto 0;
}
.deck-stat--photo { position: relative; overflow: hidden; }
.deck-stat--photo > .deck-photo {
  position: absolute; inset: 0;
  background: url('../images/presentations/northstar-aerial.jpg') center / cover no-repeat;
}
.deck-stat--photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,32,0.72), rgba(10,20,32,0.82));
}
.deck-stat--photo .container { position: relative; z-index: 2; }

/* ─── STAT GRID ──────────────────────────────────────────────────────────── */
.deck-grid { display: grid; gap: 18px; margin-top: 34px; }
.deck-grid--2 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.deck-grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.deck-card {
  background: var(--deck-bg-2);
  border: 1px solid var(--deck-line);
  border-radius: 8px;
  padding: 26px 24px;
}
.deck-card__figure {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--deck-blue);
  margin-bottom: 12px;
}
.deck-card__figure--white { color: var(--deck-white); }
.deck-card p { font-size: 16px; color: var(--deck-dim); }
.deck-card h3 { color: var(--deck-white); }

/* ─── PULL QUOTE ─────────────────────────────────────────────────────────── */
.deck-quote { border-left: 4px solid var(--deck-blue); padding-left: clamp(20px, 4vw, 36px); }
.deck-quote blockquote {
  font-size: clamp(21px, 3.2vw, 33px);
  font-weight: 600;
  line-height: 1.32;
  color: var(--deck-white);
  letter-spacing: -0.015em;
}
.deck-quote cite { display: block; margin-top: 22px; font-style: normal; font-size: 14px; color: var(--deck-grey); line-height: 1.6; }

/* ─── CHART FRAME ────────────────────────────────────────────────────────── */
.chart {
  background: var(--deck-bg-2);
  border: 1px solid var(--deck-line);
  border-radius: 10px;
  padding: clamp(18px, 3vw, 30px);
  margin-top: 30px;
}
.chart__title { font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; color: var(--deck-white); margin-bottom: 4px; }
.chart__note { font-size: 13px; color: var(--deck-grey); margin-bottom: 18px; }
.chart__canvas { width: 100%; overflow-x: auto; }
.chart__canvas svg { display: block; width: 100%; height: auto; min-width: 520px; }
.chart__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 12.5px; color: var(--deck-dim); }
.chart__legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart__legend i { width: 11px; height: 11px; border-radius: 2px; display: inline-block; }
.chart__swipe { display: none; font-size: 12.5px; color: var(--deck-grey); margin-top: 10px; }
@media (max-width: 680px) { .chart__swipe { display: block; } }
.chart__replay {
  margin-top: 14px; background: none; border: 1px solid var(--deck-line); color: var(--deck-grey);
  font: inherit; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 3px; cursor: pointer; transition: color .2s, border-color .2s;
}
.chart__replay:hover { color: var(--deck-blue); border-color: var(--deck-blue); }

.chart text { font-family: var(--deck-font); fill: var(--deck-dim); }
.chart .ax-label { font-size: 12px; fill: var(--deck-grey); }
.chart .ax-tick  { font-size: 11px; fill: var(--deck-grey); }
.chart .ax-line  { stroke: #2c4257; stroke-width: 1; }
.chart .ax-grid  { stroke: #1a2c3d; stroke-width: 1; }
.chart .series-label { font-size: 12.5px; fill: var(--deck-dim); }
.chart .value-label  { font-size: 12px; fill: var(--deck-white); font-weight: 600; }
.chart .zone-label   { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; }

/* ─── LADDER ─────────────────────────────────────────────────────────────── */
.ladder { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 30px; }
.ladder__rung {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; border-radius: 6px;
  background: #16273a; color: var(--deck-grey);
  opacity: 0; transform: translateX(-16px);
  transition: opacity .5s ease, transform .5s ease;
}
.ladder.in-view .ladder__rung { opacity: 1; transform: none; }
.ladder__rung b { font-size: 20px; font-weight: 800; min-width: 18px; }
.ladder__rung span { font-size: clamp(15px, 1.9vw, 18px); font-weight: 500; }
.ladder__rung--live { background: var(--deck-blue); color: #06121f; }
.ladder__rung--live span, .ladder__rung--live b { color: #06121f; }
.ladder__rung:nth-child(1) { transition-delay: .00s; }
.ladder__rung:nth-child(2) { transition-delay: .09s; }
.ladder__rung:nth-child(3) { transition-delay: .18s; }
.ladder__rung:nth-child(4) { transition-delay: .27s; }
.ladder__rung:nth-child(5) { transition-delay: .36s; }

/* ─── 30 DAY PLAN ────────────────────────────────────────────────────────── */
.weeks { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 30px; }
.week {
  background: var(--deck-bg-2); border: 1px solid var(--deck-line);
  border-top: 3px solid var(--deck-blue); border-radius: 6px; padding: 24px 22px;
  opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease;
}
.weeks.in-view .week { opacity: 1; transform: none; }
.weeks.in-view .week:nth-child(2) { transition-delay: .1s; }
.weeks.in-view .week:nth-child(3) { transition-delay: .2s; }
.weeks.in-view .week:nth-child(4) { transition-delay: .3s; }
.week__n { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--deck-blue); margin-bottom: 10px; }
.week p { font-size: 16px; color: var(--deck-white); font-weight: 500; }

/* ─── TWO STORIES / COMPARISON ───────────────────────────────────────────── */
.deck-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 30px; }

/* ─── NORTHSTAR DIAGRAM ──────────────────────────────────────────────────── */
.northstar { margin-top: 30px; }
.northstar svg { display: block; width: 100%; height: auto; max-width: 780px; margin-inline: auto; }
.northstar .ns-box { fill: none; stroke: var(--deck-white); stroke-width: 2; rx: 4; }
.northstar .ns-label { fill: var(--deck-white); font-size: 15px; font-weight: 700; font-family: var(--deck-font); }
.northstar .ns-core { fill: var(--deck-blue); }
.northstar .ns-core-label { fill: #06121f; font-size: 15px; font-weight: 700; font-family: var(--deck-font); }
.northstar .ns-arrow { stroke: var(--deck-white); stroke-width: 2; fill: none; }

/* the diagram assembles once it scrolls in: boxes, then the core, then the arrows */
.northstar .ns-box, .northstar .ns-label { opacity: 0; transition: opacity .5s ease; }
.northstar .ns-core { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(0.16,1,0.3,1) .2s; }
.northstar .ns-core-label { opacity: 0; transition: opacity .45s ease .55s; }
.northstar .ns-arrow { opacity: 0; stroke-dasharray: 80; stroke-dashoffset: 80; transition: opacity .3s ease .7s, stroke-dashoffset .6s ease .7s; }
.northstar.in-view .ns-box, .northstar.in-view .ns-label, .northstar.in-view .ns-core-label { opacity: 1; }
.northstar.in-view .ns-core { transform: none; }
.northstar.in-view .ns-arrow { opacity: 1; stroke-dashoffset: 0; }

/* ─── NEWSLETTER CTA ─────────────────────────────────────────────────────── */
.optin {
  position: relative; overflow: hidden;
  border-radius: 12px; margin-top: 30px;
  border: 1px solid var(--deck-line);
}
.optin__bg {
  position: absolute; inset: 0;
  background: url('../images/presentations/northstar-island.jpg') center 58% / cover no-repeat;
  transition: transform .8s var(--ease, cubic-bezier(0.16,1,0.3,1));
}
.optin:hover .optin__bg { transform: scale(1.05); }
.optin::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,20,32,0.94) 0%, rgba(10,20,32,0.86) 46%, rgba(10,20,32,0.52) 100%);
}
.optin__inner { position: relative; z-index: 2; padding: clamp(30px, 5vw, 56px); max-width: 640px; }
.optin__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--deck-blue); margin-bottom: 14px; }
.optin h2 { font-size: clamp(25px, 4vw, 38px); }
.optin p { color: var(--deck-dim); max-width: 46ch; }
.optin .deck-btn { margin-top: 26px; }
.optin__reassure { font-size: 13px; color: var(--deck-grey); margin-top: 14px; }

/* ─── OPT-IN MODAL ───────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(4, 10, 17, 0.84);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh; overflow-y: auto;
  background: var(--deck-bg-2);
  border: 1px solid var(--deck-line);
  border-radius: 12px;
  transform: translateY(14px) scale(.98);
  transition: transform .25s ease;
}
.modal.open .modal__panel { transform: none; }
.modal__image {
  height: 130px;
  background: url('../images/presentations/northstar-island.jpg') center 60% / cover no-repeat;
  border-radius: 11px 11px 0 0;
}
.modal__body { padding: clamp(24px, 4vw, 34px); }
.modal__body h3 { font-size: 24px; }
.modal__body p { font-size: 15px; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(6,18,31,0.72); border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 19px; line-height: 1; cursor: pointer;
}
.modal__close:hover { background: rgba(6,18,31,0.95); }

.optin-form { margin-top: 22px; display: grid; gap: 12px; }
.optin-form input[type="text"],
.optin-form input[type="email"] {
  width: 100%; padding: 13px 15px;
  background: #0a1420; color: var(--deck-white);
  border: 1px solid var(--deck-line); border-radius: 4px;
  font: inherit; font-size: 15px;
}
.optin-form input::placeholder { color: #6d8093; }
.optin-form input:focus { outline: none; border-color: var(--deck-blue); }
.optin-form label.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--deck-dim); line-height: 1.5; cursor: pointer;
}
.optin-form label.consent input { margin-top: 3px; accent-color: var(--deck-blue); width: 16px; height: 16px; flex: none; }
.optin-form button { width: 100%; justify-content: center; }
.optin-form__msg { font-size: 13.5px; min-height: 20px; color: var(--deck-blue); }
.optin-form__msg.error { color: #ff8a80; }

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
.deck-contact { background: #07101a; }
.deck-contact a { color: var(--deck-blue); border-bottom: 1px solid rgba(59,169,245,0.4); }
.deck-contact a:hover { border-bottom-color: var(--deck-blue); }
.deck-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.deck-link {
  display: block; padding: 24px; border-radius: 8px;
  background: var(--deck-bg-2); border: 1px solid var(--deck-line);
  transition: border-color .2s ease, transform .2s ease;
}
.deck-link:hover { border-color: var(--deck-blue); transform: translateY(-3px); }
.deck-link b { display: block; font-size: 17px; color: var(--deck-white); margin-bottom: 6px; }
.deck-link span { font-size: 14px; color: var(--deck-grey); }

/* ─── SECTION REVEAL ─────────────────────────────────────────────────────── */
.deck .r { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
.deck .r.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .deck *, .deck *::before, .deck *::after { animation: none !important; transition: none !important; }
  .deck .r, .ladder__rung, .week { opacity: 1 !important; transform: none !important; }
}

/* ─── PRESENTATION INDEX CARDS (light site style) ────────────────────────── */
.pres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.pres-card {
  display: flex; flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--mid-grey, #e0e0e0);
  border-radius: 6px; overflow: hidden;
  transition: transform .3s cubic-bezier(0.16,1,0.3,1), box-shadow .3s ease;
}
.pres-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,0.12); }
.pres-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: #0a1420; }
.pres-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.16,1,0.3,1); }
.pres-card:hover .pres-card__image img { transform: scale(1.04); }
.pres-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.pres-card__meta {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue, #1565c0); margin-bottom: 12px;
}
.pres-card__title {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 25px; font-weight: 600; line-height: 1.2; text-transform: uppercase;
  color: var(--text, #1a1a1a); margin-bottom: 12px;
}
.pres-card__excerpt { font-size: 15.5px; line-height: 1.6; color: var(--text-dim, #555); flex: 1; }
.pres-card__read {
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue, #1565c0); margin-top: 20px;
}
.pres-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pres-tags span {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
  background: var(--grey, #f5f5f5); color: var(--text-dim, #555);
}
.pres-note {
  margin-top: 44px; padding: 28px; border-radius: 6px;
  background: var(--grey, #f5f5f5); font-size: 16px; line-height: 1.7; color: var(--text-dim, #555);
}
.pres-note a { color: var(--blue, #1565c0); border-bottom: 1px solid rgba(21,101,192,0.35); }
