/* Scrollytelling drone site — style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,700;1,300;1,400&display=swap');

/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --cream:        #FAF6F0;
  --deep-teal:    #1B4F52;
  --seafoam:      #5BA8A0;
  --terracotta:   #D4705A;
  --blush-sand:   #E8DDD4;
  --near-black:   #1A1A18;
  --muted-blood:  #8B2E2E;
}

/* ─── Reset & base ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--cream);
  color: var(--deep-teal);
  zoom: 0.75;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Slide container ────────────────────────────────────── */
#slides {
  position: relative;
  width: 100vw;
  height: 100vh;
}

/* ─── Individual slides ──────────────────────────────────── */
.slide {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-1  { background: var(--near-black);  color: var(--cream); }
.slide-2  { background: var(--near-black); color: var(--cream); }
.slide-3  { background: var(--cream);        color: var(--deep-teal); }
.slide-4  { background: var(--blush-sand);   color: var(--deep-teal); }
.slide-5  { background: var(--cream);        color: var(--deep-teal); }
.slide-6  { background: var(--deep-teal);    color: var(--cream); }
.slide-7          { background: var(--blush-sand);   color: var(--deep-teal); }
.slide-on-the-go  { background: var(--cream);        color: var(--deep-teal); }
.slide-legislation{ background: var(--blush-sand);   color: var(--deep-teal); }
.slide-closing    { background: var(--near-black);   color: var(--cream); }

/* ─── Slide content wrapper ──────────────────────────────── */
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 90%;
  padding: 2rem;
}

.slide-content.wide {
  max-width: 1100px;
}

.slide-content.centered {
  text-align: center;
}

/* ─── Background layers ──────────────────────────────────── */
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

/* ─── Typography ─────────────────────────────────────────── */
.site-title {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.slide-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  opacity: 0.75;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.pull-quote {
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  quotes: none;
}

.pull-quote-sm {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin: 1.5rem 0 0.5rem;
}

.attribution {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  display: block;
}

.attribution a {
  color: var(--seafoam);
}

.subtext {
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 1.5rem;
  opacity: 0.85;
}

.stat {
  font-size: 0.95rem;
  font-weight: 400;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--terracotta);
  text-align: left;
  opacity: 0.9;
}

.pipeline-caption {
  font-size: 0.95rem;
  opacity: 0.6;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.diagram-hint {
  font-size: 0.95rem;
  opacity: 0.6;
  margin-bottom: 1.5rem;
}

.big-thesis {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
}

/* ─── APL stat (slide 2) ─────────────────────────────────── */
.apl-stat {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  line-height: 1.6;
}

/* ─── Drone diagram ──────────────────────────────────────── */
#drone-diagram {
  width: 100%;
  max-width: 500px;
  height: 320px;
  margin: 0 auto;
  position: relative;
}

#drone-diagram svg {
  overflow: visible;
}

.component-dot {
  cursor: pointer;
  transition: r 0.15s ease;
}

.component-dot:hover {
  r: 8;
}

/* ─── Drone tooltip ──────────────────────────────────────── */
.drone-tooltip {
  position: fixed;
  z-index: 1000;
  background: var(--near-black);
  color: var(--cream);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  text-align: left;
}

.drone-tooltip.visible {
  opacity: 1;
}

.tt-label {
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.tt-row {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.tt-military::before {
  content: '⚔ ';
  color: var(--terracotta);
}

.tt-civilian::before {
  content: '🌱 ';
}

/* ─── Pipeline flow ──────────────────────────────────────── */
#pipeline-flow {
  width: 100%;
  max-width: 640px;
  height: 140px;
  margin: 1.5rem auto 0.5rem;
}

/* ─── Use case cards ─────────────────────────────────────── */
.use-cases {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.use-case-card {
  background: var(--deep-teal);
  color: var(--cream);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(27, 79, 82, 0.12);
}

.use-case-card .card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.use-case-card .card-icon svg {
  width: 100%;
  height: 100%;
}

.use-case-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.use-case-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  opacity: 0.88;
  margin: 0;
}

/* ─── CTA verify subheading (slide 7) ───────────────────── */
.cta-verify-heading {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  margin-top: 2rem;
  margin-bottom: 0;
}

/* ─── CTA list (slide 7) ─────────────────────────────────── */
.cta-list {
  list-style: none;
  counter-reset: cta;
  margin: 2rem 0;
  text-align: left;
  display: inline-block;
}

.cta-list li {
  counter-increment: cta;
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 0.6rem 0 0.6rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(27, 79, 82, 0.12);
}

.cta-list li::before {
  content: counter(cta);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}

/* ─── Brand grid (slide 7) ───────────────────────────────── */
.brand-grid {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: flex-end;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.brand-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.brand-item img {
  height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.brand-name {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--near-black);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.brand-item:hover .brand-name {
  opacity: 1;
}

.site-footer {
  font-size: 0.9rem;
  opacity: 0.55;
  line-height: 1.7;
}

.slide-closing .site-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
}

/* ─── Closing slide ──────────────────────────────────────── */
.closing-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 2rem;
}

.closing-statement {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.closing-statement br {
  display: block;
  content: '';
  margin-bottom: 0.5rem;
}

.closing-sub {
  font-size: 1rem;
  font-style: italic;
  opacity: 0.55;
  letter-spacing: 0.02em;
}

/* ─── Scroll hint ────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream);
  opacity: 0.45;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── Progress dots ──────────────────────────────────────── */
#progress-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.3);
}

.dot.active {
  background: var(--terracotta);
  transform: scale(1.3);
}

/* On light slides, use dark dots */
.on-light .dot       { background: rgba(27, 79, 82, 0.25); }
.on-light .dot:hover { background: rgba(27, 79, 82, 0.6); }
.on-light .dot.active { background: var(--terracotta); }


/* ─── Founder cards (slide 3) ────────────────────────────── */
.founders-grid {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.founder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.founder-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--blush-sand);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: block;
}

.founder-card:hover .founder-photo {
  border-color: var(--terracotta);
  transform: scale(1.05);
}

.founder-name {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--deep-teal);
}

.founder-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 240px;
  background: var(--near-black);
  color: var(--cream);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.founder-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--near-black);
}

.founder-card:hover .founder-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.popup-venture {
  font-weight: 700;
  font-size: 1rem;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.popup-background {
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.popup-quote {
  font-size: 0.8rem;
  font-style: italic;
  opacity: 0.65;
  line-height: 1.5;
}

/* ─── Legislation buttons (slide 4) ─────────────────────── */
.leg-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.leg-btn-wrap {
  position: relative;
}

.leg-btn {
  background: var(--deep-teal);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.leg-btn:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}


.leg-popup {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 260px;
  background: var(--near-black);
  color: var(--cream);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.leg-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--near-black);
}

.leg-btn-wrap:hover .leg-popup,
.leg-btn-wrap.locked .leg-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.cert-logo {
  display: block;
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.leg-popup-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--terracotta);
  margin-bottom: 0.45rem;
}

.leg-popup-body {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.88;
}

.leg-popup-cite {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  opacity: 0.5;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.leg-popup-cite:hover {
  opacity: 0.9;
}

/* ─── Health effects slide ──────────────────────────────── */
.slide-health {
  background: var(--near-black);
  color: var(--cream);
}

.slide-health-bg {
  background-image: url('assets/images/hospital.jpg');
  opacity: 0.22;
  filter: grayscale(40%);
}

.health-windows {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
}

.health-window {
  position: relative;
  width: 140px;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  cursor: default;
  transition: background 0.2s ease, border-color 0.2s ease;
  /* frosted-glass window look */
  backdrop-filter: blur(4px);
}

.health-window:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.3);
}

.hw-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.hw-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0.85;
  line-height: 1.3;
}

/* Popup on hover */
.hw-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 230px;
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--cream);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
}

.hw-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--near-black);
}

.health-window:hover .hw-popup,
.health-window.pinned .hw-popup {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}

.hw-popup-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.hw-popup-body {
  font-size: 0.8rem;
  line-height: 1.6;
  opacity: 0.85;
}

.hw-popup-citation {
  font-size: 0.68rem;
  opacity: 0.5;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Globe slide (slide 6) ─────────────────────────────── */
.globe-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.globe-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--cream);
  margin: 0;
}

.globe-stage {
  position: relative;
  width: min(44vh, 400px);
  height: min(44vh, 400px);
  flex-shrink: 0;
}

#globe-canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 36px rgba(20, 13, 79, 0.55));
}

#globe-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Pin = the container dot + floating plate image above it */
.globe-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.globe-pin.back-face {
  opacity: 0;
  pointer-events: none;
}

.globe-pin-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid rgba(255,255,255,0.7);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  position: relative;
  z-index: 2;
}

.globe-pin.active .globe-pin-dot {
  transform: scale(1.7);
  background: #fff;
  box-shadow: 0 0 14px rgba(255,255,255,0.75);
}

/* Floating plate image card above dot */
.globe-pin-plate {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.globe-pin.active .globe-pin-plate {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.globe-pin-img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Placeholder when no real image — colored circle with food label */
.globe-pin-img-ph {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.globe-pin-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cream);
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* Connector line from plate to dot */
.globe-pin-line {
  width: 1px;
  height: 10px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto;
}

/* Info card below globe */
.globe-info {
  text-align: center;
  min-height: 72px;
  max-width: 480px;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.globe-info.visible {
  opacity: 1;
}

.globe-info-region {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--seafoam);
  margin-bottom: 0.2rem;
}

.globe-info-food {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.globe-info-thesis {
  font-size: 0.88rem;
  opacity: 0.78;
  line-height: 1.65;
  font-style: italic;
  color: var(--cream);
  margin: 0;
}

.globe-hint {
  font-size: 0.78rem;
  opacity: 0.38;
  letter-spacing: 0.06em;
  color: var(--cream);
  animation: bounce 2s ease-in-out infinite;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .use-case-card { width: 90%; }
  #progress-dots { display: none; }
  .big-thesis    { font-size: clamp(1.8rem, 8vw, 3rem); }
}
