@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #11213a;
  --stone: #68717f;
  --ochre: #c69752;
  --ochre-dark: #a87938;
  --pearl: #fbf9f6;
  --line: #e6e0d7;
  --white: #ffffff;
  --blue: #224ba4;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--pearl);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
}

button, a { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.deck {
  position: relative;
  overflow: hidden;
}

.deck, .slide {
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(34px, 5vw, 76px) clamp(36px, 7vw, 112px) 90px;
  overflow: hidden;
  background: var(--pearl);
  opacity: 0;
  transform: translateX(3%);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms ease, transform 320ms ease, visibility 320ms;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.slide.is-before { transform: translateX(-3%); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }
h1 span, h2 span, h3 span { color: var(--ochre); }

.eyebrow {
  margin-bottom: 18px;
  color: var(--ochre-dark);
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.cover { text-align: center; }
.cover::before {
  content: "";
  position: absolute;
  inset: -30% 58% 48% -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,151,82,.14), rgba(198,151,82,0) 68%);
}
.cover-inner { position: relative; width: min(92vw, 1160px); }
.collective-crest {
  display: block;
  width: min(62vw, 650px);
  max-height: 34vh;
  height: auto;
  margin: 0 auto clamp(12px, 1.8vh, 20px);
  overflow: visible;
}
.collective-crest image { mix-blend-mode: multiply; }

.cover-rule { width: 42px; height: 2px; margin: 0 auto 22px; background: var(--ochre); }
.cover h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cover-note { margin: 0; color: var(--stone); font-size: clamp(.95rem, 1.3vw, 1.2rem); }

.speakers { grid-template-rows: auto minmax(0, 1fr); gap: clamp(22px, 4vh, 44px); }
.slide-heading { width: min(100%, 1100px); text-align: center; }
.slide-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1;
  letter-spacing: -.03em;
}
.speaker-pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  width: min(100%, 1180px);
  height: min(59vh, 600px);
}
.speaker-profile {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(17, 33, 58, .09);
}
.speaker-profile > img {
  align-self: center;
  justify-self: center;
  width: min(70%, 300px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}
.speaker-profile > div { width: 100%; padding: clamp(16px, 2vw, 28px); text-align: center; }
.speaker-profile h3 { margin: 0 0 6px; font-size: clamp(1.35rem, 2vw, 2.2rem); line-height: 1; }
.speaker-profile p { margin: 0; color: var(--stone); font-size: clamp(.9rem, 1.2vw, 1.08rem); }

.collective-overview { background: var(--pearl); }
.collective-overview-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(24px, 4vh, 46px);
  width: min(92vw, 1180px);
}
.collective-overview-crest {
  display: block;
  width: min(40vw, 520px);
  max-height: 28vh;
  margin: 0 auto;
  overflow: visible;
}
.collective-overview-crest image { mix-blend-mode: multiply; }
.collective-buckets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 34px);
  height: min(34vh, 300px);
}
.collective-buckets article {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(17, 33, 58, .07);
  text-align: center;
}
.bucket-number {
  margin-bottom: 18px;
  color: var(--ochre);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .8;
}
.collective-buckets h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  line-height: 1;
  text-wrap: balance;
}

.convert-intro { background: var(--white); }
.convert-mark { width: min(90vw, 1000px); text-align: center; }
.convert-mark > img { width: min(42vw, 330px); height: auto; margin-bottom: clamp(36px, 6vh, 64px); }
.ochre-line { width: 44px; height: 2px; margin: 0 auto 26px; background: var(--ochre); }
.convert-mark h2 { margin: 0 auto 24px; font-size: clamp(2.35rem, 5vw, 5.1rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.convert-mark p { max-width: 770px; margin: 0 auto; color: var(--stone); font-size: clamp(1rem, 1.6vw, 1.35rem); line-height: 1.55; }

.gamma-slide {
  padding: 58px clamp(26px, 4vw, 64px) 86px;
  background: #eaf0f8;
}
.gamma-slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1500px);
  max-height: calc(100vh - 144px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 70px rgba(17, 33, 58, .16);
}


.placeholder { background: var(--white); }
.placeholder-card { width: min(88vw, 1120px); text-align: center; }
.placeholder-card > img { width: min(38vw, 290px); height: auto; margin-bottom: clamp(48px, 7vh, 76px); }
.placeholder-card h2 { margin-bottom: clamp(34px, 5vh, 54px); font-size: clamp(3.6rem, 7vw, 7.2rem); letter-spacing: -.04em; line-height: .95; }
.placeholder-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(80vw, 480px);
  padding: 25px 34px;
  border: 1.5px dashed #cfc6b8;
  border-radius: 14px;
  color: var(--stone);
  background: var(--pearl);
}
.placeholder-copy strong { color: var(--ink); font-size: 1.1rem; }

.connect { grid-template-rows: auto minmax(0, 1fr); gap: clamp(18px, 3vh, 34px); }
.slide-heading.compact h2 { font-size: clamp(2.2rem, 4vw, 4.1rem); }
.slide-heading.compact > p:last-child { margin: 14px 0 0; color: var(--stone); font-size: clamp(.9rem, 1.2vw, 1.08rem); }
.qr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 24px); width: min(100%, 1160px); }
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: inherit;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(17, 33, 58, .07);
  text-align: center;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.qr-card:hover, .qr-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 54px rgba(17, 33, 58, .12); outline: 2px solid var(--ochre); outline-offset: 3px; }
.qr-headshot { width: clamp(58px, 7vw, 92px); height: clamp(58px, 7vw, 92px); margin-bottom: 12px; border-radius: 50%; object-fit: cover; object-position: center 25%; }
.qr-calendar {
  display: grid;
  place-content: center;
  width: clamp(58px, 7vw, 92px);
  height: clamp(58px, 7vw, 92px);
  margin-bottom: 12px;
  border: 2px solid var(--ochre);
  border-radius: 50%;
  color: var(--ink);
  background: var(--pearl);
  line-height: 1;
}
.qr-calendar strong { font-family: "DM Serif Display", Georgia, serif; font-size: clamp(1.5rem, 2.3vw, 2.15rem); font-weight: 400; }
.qr-calendar small { margin-top: 3px; color: var(--ochre-dark); font-size: .6rem; font-weight: 800; letter-spacing: .15em; }
.qr-card h3 { margin: 0 0 4px; font-size: clamp(1.25rem, 2vw, 2rem); line-height: 1; }
.qr-card h3 span { color: var(--ochre); }
.qr-card p { margin: 0 0 clamp(12px, 2vh, 20px); color: var(--stone); font-size: clamp(.76rem, 1vw, .96rem); }
.qr-code { width: min(13vw, 180px); height: min(13vw, 180px); }

.progress { position: fixed; z-index: 20; inset: auto 0 0; height: 4px; background: rgba(17,33,58,.08); }
.progress span { display: block; width: 10%; height: 100%; background: var(--ochre); transition: width 260ms ease; }
.deck-meta { position: fixed; z-index: 20; left: clamp(18px, 3vw, 48px); bottom: 21px; display: flex; gap: 12px; color: rgba(17,33,58,.56); font-size: .75rem; letter-spacing: .04em; }
.deck-meta span + span::before { content: "·"; margin-right: 12px; }
.controls { position: fixed; z-index: 25; right: clamp(18px, 3vw, 48px); bottom: 15px; display: flex; gap: 8px; }
.controls button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(17,33,58,.12); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.88); box-shadow: 0 5px 20px rgba(17,33,58,.08); cursor: pointer; }
.controls button:hover, .controls button:focus-visible { border-color: var(--ochre); color: var(--ochre-dark); outline: none; }
.controls button:disabled { opacity: .28; cursor: default; }
.hint { position: fixed; z-index: 25; right: clamp(18px, 3vw, 48px); top: 18px; padding: 8px 12px; border-radius: 999px; color: rgba(17,33,58,.58); background: rgba(255,255,255,.82); font-size: .72rem; letter-spacing: .05em; transition: opacity 300ms ease; }
.hint.is-hidden { opacity: 0; pointer-events: none; }

@media (max-width: 760px), (max-height: 620px) {
  .slide { padding: 30px 22px 70px; }
  .cover h1 br { display: none; }
  .collective-crest { width: min(70vw, 420px); max-height: 26vh; }
  .speaker-pair { height: min(55vh, 440px); gap: 14px; }
  .speaker-profile { border-radius: 16px; }
  .speaker-profile > div { padding: 13px; }
  .collective-overview-inner { gap: 24px; }
  .collective-overview-crest { width: min(68vw, 440px); max-height: 24vh; }
  .collective-buckets { gap: 10px; height: min(36vh, 290px); }
  .collective-buckets article { padding: 14px 8px; border-radius: 15px; }
  .bucket-number { margin-bottom: 12px; font-size: clamp(2rem, 9vw, 3.2rem); }
  .collective-buckets h2 { font-size: clamp(1rem, 4vw, 1.45rem); }
  .gamma-slide { padding: 38px 16px 70px; }
  .gamma-slide img { max-width: 96vw; max-height: calc(100vh - 112px); }
  .qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: min(100%, 460px); }
  .qr-card { padding: 12px 8px; border-radius: 14px; }
  .qr-code { width: min(22vw, 150px); height: min(22vw, 150px); }
  .deck-meta { max-width: 50vw; overflow: hidden; white-space: nowrap; }
  .hint { display: none; }
}

@media (max-width: 540px) {
  .slide-heading h2 { font-size: 2rem; }
  .speaker-pair { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .speaker-profile > div { padding: 10px 6px; }
  .speaker-profile h3 { font-size: 1rem; }
  .speaker-profile p { font-size: .66rem; }
  .qr-headshot, .qr-calendar { width: 52px; height: 52px; }
  .qr-card h3 { font-size: 1rem; }
  .qr-card p { min-height: 28px; font-size: .68rem; }
  .controls button { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .progress span, .qr-card { transition: none; }
}
