/* Pitch to the Patient · SCOPE Europe 2026
   Built from Figma "SCOPE 2026 – Pitch to the Patient – Microsite + LinkedIn"
   Desktop frame 1440, mobile frame 390. Desktop sizes are in rem with 1rem = 16px at the 1440 frame; the root font-size
   scales with the window so narrower screens see the Figma frame fitted, not cropped.
   Nav collapses to the menu at 1024px; mobile layout kicks in at 860px. */

/* Montserrat, self-hosted (SIL OFL, see assets/fonts/OFL.txt). One variable file covers 500 + 600. */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand */
  --navy: #2b2668;
  --purple: #6b64ad;
  --lilac: #d1c5e2;
  --gold: #e7cb76;
  --mist: #d8d8e1;
  --card: #f3f3f6;
  --white: #fff;

  /* Backgrounds */
  --bg-navy: #272757;
  --bg-ink: #161518;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 2rem;
  --gutter: 5rem;
  --section-y: 8rem;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  /* 16px at 1440 wide and up, scaling down with the window (75% at 1024, floor 12px).
     Text sizes use max(…, Npx) so copy stays readable while the layout scales. */
  font-size: clamp(12px, calc(100vw / 90), 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-ink);
  color: var(--mist);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 0.25rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 62.4375rem;
  background: var(--gold); color: var(--navy); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Type (Figma text styles) ---------- */

.h1, .hero__title {
  font-size: 3.25rem; line-height: 1.3; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--lilac); font-weight: 500;
}
.h2 {
  font-size: max(2.125rem, 26px); line-height: 1.35; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--lilac); font-weight: 500;
}
.h3 {
  font-size: max(1.5rem, 19px); line-height: 1.35; letter-spacing: 0.09em;
  text-transform: uppercase; font-weight: 500;
}
.eyebrow-s {
  font-size: max(0.75rem, 11px); line-height: 1.5; letter-spacing: 0.24em; text-transform: uppercase;
}
.eyebrow-m {
  font-size: max(0.9375rem, 12px); line-height: 1.5; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.body-l { font-size: max(1.375rem, 17px); line-height: 1.5; color: var(--white); }
.body-m { font-size: max(1.125rem, 15px); line-height: 1.55; color: var(--mist); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.1875rem 2rem; border-radius: 62.4375rem;
  font-size: max(0.875rem, 12px); font-weight: 600; line-height: 1; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #f0d88f; }
.btn--outline {
  border: 1.5px solid var(--lilac); color: var(--lilac);
  padding: 1.2188rem 2rem; /* outline button is 55px tall in Figma */
}
.btn--outline:hover { background: var(--lilac); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--purple); }

/* ---------- Shared ---------- */

.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.card {
  background: var(--card);
  border: 3px solid var(--purple);
  border-radius: var(--radius-card);
  color: var(--navy);
}

.swoosh { position: absolute; pointer-events: none; max-width: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; z-index: 1;
  overflow: hidden; /* swoosh is cropped at the hero's edges, as in Figma */
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(90deg, #272757 0%, #212136 55%, #17161f 100%);
}

.site-header {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.75rem var(--gutter);
}
.site-header__logo { flex-shrink: 0; }
.site-header__logo img { width: 19.75rem; height: 8.375rem; object-fit: contain; }

.site-nav { display: flex; align-items: center; gap: 2.5rem; flex-shrink: 0; }
.site-nav__link {
  font-size: max(0.75rem, 11px); line-height: 1.5; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
}
.site-nav__link:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  padding: 0; border: 0; background: none; cursor: pointer;
}

.hero__copy {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4rem 1.5rem;
  max-width: 71.75rem;
}
.hero__event { color: var(--mist); white-space: pre; }
.hero__title { margin-top: 1.75rem; }
.hero__strap {
  margin-top: 1.5rem;
  font-size: max(1.25rem, 15px); line-height: 1.5; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold);
}
.hero__date {
  margin-top: 1rem;
  font-size: max(0.9375rem, 12px); line-height: 1.5; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--mist);
}
.hero__ctas { margin-top: 2.75rem; display: flex; gap: 1.25rem; align-items: flex-start; }

.sponsor-lockup {
  margin-top: 3rem;
  display: flex; align-items: center; gap: 1.25rem;
  color: var(--lilac);
}
.sponsor-lockup img { width: 6.1875rem; height: 3.25rem; object-fit: contain; }

.hero__strip { position: relative; z-index: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
.hero__strip img {
  width: 100%; height: auto; aspect-ratio: 480 / 540;
  object-fit: cover; object-position: center top;
}

.hero__swoosh {
  z-index: 1; /* sits over the photo strip, as in Figma */
  /* scales with the full-width photo strip (1000 x 233 at the 1440 frame) */
  right: -0.625vw; bottom: -5.07vw;
  width: 69.44vw; height: auto; aspect-ratio: 1000 / 233;
  object-fit: cover; opacity: .94;
}

/* ---------- Welcome to the Patient Den ---------- */

.den { background: linear-gradient(90deg, #272757 0%, #212136 60%, #1b1a24 100%); }

.den__intro {
  max-width: 51.25rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.75rem;
}
.den__body { max-width: 47.5rem; }

.value-cards {
  margin-top: 4.5rem;
  width: 100%; max-width: 76rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.value-card {
  display: flex; flex-direction: column; align-items: center; gap: 1.375rem;
  padding: 2.75rem 2.25rem 3rem;
}
.value-card img { width: 7rem; height: 7rem; object-fit: contain; }
.value-card p { font-size: max(1rem, 14px); line-height: 1.55; }

/* ---------- Meet the Patient Dragons ---------- */

.dragons {
  overflow: hidden;
  background: linear-gradient(90deg, #212136 0%, #1b1a24 55%, #161518 100%);
}
.dragons__swoosh {
  /* Tied to the cards, not the window edge: in Figma it starts 100px left of
     centre, about halfway across Maureen's card, at any screen width. */
  right: 0; bottom: 0;
  width: calc(50% + 6.25rem); height: auto; aspect-ratio: 820 / 560;
  object-fit: cover; opacity: .5;
}

.dragon-cards {
  position: relative;
  margin-top: 4.5rem;
  width: 100%; max-width: 80rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  text-align: left;
}
.dragon-card {
  display: flex; flex-direction: column;
  background: var(--bg-navy);
  border: 2px solid var(--purple);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.dragon-card__photo { position: relative; height: 27.5rem; }
.dragon-card__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.dragon-card__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10.625rem;
  background: linear-gradient(180deg, rgba(39, 39, 87, 0) 0%, #272757 100%);
}
.dragon-card__text {
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 14.75rem; padding: 0 2rem 2.25rem;
}
.dragon-card__text p { font-size: max(1rem, 14px); line-height: 1.55; color: var(--mist); }

/* ---------- Your host ---------- */

.host {
  display: grid;
  grid-template-columns: minmax(0, 28.75rem) minmax(0, 33.75rem);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas:
    "photo ."
    "photo intro"
    "photo bio"
    "photo .";
  column-gap: 5.5rem;
  justify-content: center; align-items: start;
  text-align: left;
  background: linear-gradient(90deg, #161518 0%, #1f1e33 50%, #272757 100%);
}
.host__photo {
  grid-area: photo;
  position: relative; height: 32.5rem;
  border: 2px solid var(--purple); border-radius: var(--radius-card);
  background: var(--bg-navy); overflow: hidden;
}
.host__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.host__photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9.375rem;
  background: linear-gradient(180deg, rgba(39, 39, 87, 0) 0%, rgba(39, 39, 87, .9) 100%);
}
.host__intro { grid-area: intro; display: flex; flex-direction: column; gap: 1.125rem; }
.host__bio { grid-area: bio; margin-top: 2.625rem; } /* 18 gap + 6 spacer + 18 gap in Figma */

/* ---------- Taking on the challenge ---------- */

.challenge { background: linear-gradient(90deg, #17161f 0%, #212136 50%, #272757 100%); }
.challenge__intro { margin-top: 1.5rem; max-width: 45rem; }

.org-cards {
  margin-top: 4rem;
  width: 100%; max-width: 80rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.org-card {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  padding: 2.75rem 2.25rem 2.5rem;
}
.org-card img { width: 100%; height: 6.875rem; object-fit: contain; }

/* ---------- The session ---------- */

.session {
  position: relative;
  display: flex; justify-content: center;
  padding: 8.75rem var(--gutter);
  background:
    linear-gradient(180deg, rgba(39, 39, 87, .92) 0%, rgba(27, 26, 36, .45) 45%, rgba(22, 21, 24, .95) 100%),
    linear-gradient(rgba(22, 21, 24, .4), rgba(22, 21, 24, .4)),
    url("assets/img/session-barcelona.jpg") center / cover no-repeat,
    var(--bg-ink);
}

.session__panel {
  width: 100%; max-width: 70rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27.5rem;
  grid-template-areas:
    ".     details"
    "title details"
    "text  details"
    "cta   details"
    ".     details";
  grid-template-rows: 1fr auto auto auto 1fr; /* left copy centred against the details, as in Figma */
  column-gap: 4.5rem;
  align-items: center;
  padding: 4.5rem;
  background: var(--mist);
  border: 3px solid var(--purple);
  border-radius: 3rem;
  color: var(--navy);
}
.session__title { grid-area: title; color: var(--navy); }
.session__text { grid-area: text; margin-top: 1.5rem; color: var(--navy); }
.session__cta { grid-area: cta; justify-self: start; margin-top: 3.5rem; }

.session__details { grid-area: details; }
.session__detail { display: flex; flex-direction: column; gap: 0.375rem; }
.session__detail + .session__detail {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--purple);
}
.session__detail dt { color: var(--purple); }
.session__detail dd { font-size: max(1.125rem, 15px); line-height: 1.55; }

/* ---------- Footer ---------- */

.footer {
  position: relative; overflow: hidden;
  padding: 12.5rem var(--gutter) 3.5rem;
  background: var(--bg-ink);
}
.footer__swoosh-top {
  left: 0; top: 0;
  width: min(66.25rem, 74vw); height: auto; aspect-ratio: 1060 / 171;
  object-fit: cover; opacity: .8;
}
.footer__swoosh-bottom {
  /* starts just left of centre (x=680 in the 1440 frame) at any screen width */
  right: 0; bottom: 0;
  width: calc(50% + 2.5rem); height: auto; aspect-ratio: 760 / 177;
  object-fit: cover; opacity: .9;
}

.footer__sponsor { position: relative; display: flex; align-items: center; gap: 6rem; }
.footer__logo { display: flex; flex-direction: column; gap: 1.25rem; color: var(--lilac); }
.footer__logo img { width: 15.4375rem; height: 8.125rem; object-fit: contain; }
.footer__blurb { max-width: 40rem; }

.footer__legal {
  position: relative;
  margin-top: 7.5rem;
  display: flex; gap: 2.5rem;
  color: var(--mist);
}
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }

/* ---------- Narrow desktop / tablet: nav collapses to the menu ---------- */

@media (max-width: 1024px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: #212136;
    border-bottom: 1px solid var(--purple);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { padding: 16px 0; border-bottom: 1px solid rgba(209, 197, 226, .15); }
  .site-nav .btn { margin-top: 20px; }
}

/* ---------- Mobile (Figma 390 frame) ---------- */

@media (max-width: 860px) {
  html { font-size: 16px; }
  :root { --gutter: 24px; --section-y: 72px; }

  .desktop-only { display: none; }

  .h2 { font-size: 24px; letter-spacing: 0.08em; }

  /* Header + menu */
  .site-header { padding: 18px var(--gutter); }
  .site-header__logo img { width: 233px; height: 112px; }

  /* Hero */
  .hero { background: linear-gradient(90deg, #272757 0%, #212136 60%, #17161f 100%); }
  .hero__copy { padding: 36px var(--gutter) 40px; width: 100%; }
  .hero__event { white-space: pre-wrap; }
  .hero__title { margin-top: 20px; font-size: 28px; letter-spacing: 0.08em; }
  .hero__strap { margin-top: 18px; font-size: 13px; line-height: 1.55; letter-spacing: 0.22em; }
  .hero__date { margin-top: 12px; font-size: 12px; letter-spacing: 0.24em; }
  .hero__ctas { margin-top: 32px; width: 100%; flex-direction: column; gap: 12px; align-items: stretch; }
  .sponsor-lockup { margin-top: 32px; gap: 16px; }
  .sponsor-lockup img { width: 84px; height: 44px; }
  .hero__strip img { aspect-ratio: 130 / 236; }
  .hero__swoosh { width: 300px; right: 0; bottom: -14px; aspect-ratio: 300 / 70; }

  /* Den */
  .den { background: linear-gradient(90deg, #272757 0%, #1b1a24 100%); }
  .den__intro { gap: 0; }
  .den__lead { margin-top: 20px; font-size: 18px; line-height: 1.55; }
  .den__body { margin-top: 20px; font-size: 16px; }
  .den__body + .den__body { margin-top: 16px; }
  .value-cards { margin-top: 40px; grid-template-columns: 1fr; gap: 16px; }

  /* Dragons */
  .dragon-cards { margin-top: 36px; grid-template-columns: 1fr; gap: 20px; }
  .dragons__swoosh { width: 380px; aspect-ratio: 380 / 260; }

  /* Host: name above photo, bio below */
  .host {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "intro" "photo" "bio";
    text-align: center;
    background: linear-gradient(90deg, #161518 0%, #272757 100%);
  }
  .host__intro { gap: 0; }
  .host__eyebrow + .h2 { margin-top: 12px; }
  .host__org { margin-top: 8px; font-size: 18px; line-height: 1.55; }
  .host__photo { margin-top: 32px; height: 380px; }
  .host__bio { margin-top: 28px; font-size: 16px; }

  /* Challenge */
  .challenge__intro { margin-top: 16px; font-size: 16px; }
  .org-cards { margin-top: 36px; grid-template-columns: 1fr; gap: 16px; }

  /* Session */
  .session { padding: 80px var(--gutter); }
  .session__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "title" "text" "details" "cta";
    padding: 40px 28px;
    border-radius: 36px;
  }
  .session__title { font-size: 24px; letter-spacing: 0.08em; }
  .session__text { margin-top: 20px; font-size: 16px; }
  .session__details { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--purple); }
  .session__detail { gap: 4px; }
  .session__detail dd { font-size: 16px; }
  .session__cta { margin-top: 24px; justify-self: stretch; }

  /* Footer */
  .footer { padding: 110px var(--gutter) 96px; }
  .footer__swoosh-top { width: 430px; max-width: none; aspect-ratio: 430 / 69; }
  .footer__swoosh-bottom { width: 300px; aspect-ratio: 300 / 70; }
  .footer__sponsor { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__logo { gap: 16px; }
  .footer__logo img { width: 190px; height: 100px; }
  .footer__blurb { font-size: 16px; }
  .footer__legal { margin-top: 56px; flex-direction: column; gap: 14px; }
  .footer__copyright { order: 1; }
}

/* ---------- Tablet portrait (600–860px): mobile design in a centred column ---------- */

@media (min-width: 600px) and (max-width: 860px) {
  .hero__copy,
  .den__intro,
  .value-cards,
  .dragon-cards,
  .org-cards,
  .session__panel { max-width: 560px; }

  .hero__strip img { aspect-ratio: 480 / 540; } /* desktop proportions; the phone crop gets very tall here */

  .host { grid-template-columns: minmax(0, 520px); justify-content: center; }
  .host__photo { height: auto; aspect-ratio: 342 / 380; }

  .footer__sponsor,
  .footer__legal { max-width: 560px; margin-inline: auto; }

  /* Swooshes: the phone sizes are fixed px and only reach a third of the way across
     a tablet, so use the desktop frame's proportions here instead. */
  .hero__swoosh { width: 69.44vw; right: -0.625vw; bottom: -5.07vw; aspect-ratio: 1000 / 233; }
  .dragons__swoosh { width: calc(50% + 100px); aspect-ratio: 820 / 560; }
  .footer__swoosh-top { width: 74vw; aspect-ratio: 1060 / 171; }
  .footer__swoosh-bottom { width: calc(50% + 40px); aspect-ratio: 760 / 177; }
}
