/* The Body Project Dancers. Built by davidrees.uk. */

/* ---- Fonts: self-hosted (no requests to Google), OFL — see assets/fonts/OFL-*.txt.
   Variable fonts, so one file per subset covers every weight. ---- */

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/nunito-sans-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;
}

@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/nunito-sans-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: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-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;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/quicksand-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;
}

/* The Body Project Dancers — shared styles
   Ported from the prototype's inline styles + <style> block. No build step. */

:root {
  /* Brand */
  --c-blue: #3954c9;
  --c-purple: #7159b9;
  --c-blue-on-dark: #97aaf0;
  --c-purple-on-dark: #b6a9e6;
  --c-quote-cite: #a59fd6;

  /* Ink & text */
  --c-ink: #232338;
  --c-ink-line: #36364e;
  --c-text-nav: #3a3a52;
  --c-text: #46465c;
  --c-text-lead: #51516a;
  --c-text-muted: #5b5b72;
  --c-text-soft: #6b6b80;

  /* Page & white */
  --c-white: #fff;
  --c-bg: #fbfaff;

  /* Surfaces (pale tints) */
  --c-surface-blue: #eef0fc;
  --c-surface-purple: #efeafc;
  --c-surface-lilac: #f3edfc;
  --c-band-top: #f5f2fd;
  --c-band-bottom: #f1edfb;
  --c-card-icon: #f1ecfb;
  --c-hero-tint-a: #ede9fb;
  --c-hero-tint-b: #e4ecfb;
  --c-selection: #d9d2f4;

  /* Borders */
  --c-border: #ece9f7;
  --c-border-lilac: #e7e1f6;
  --c-border-lilac-2: #e3def3;
  --c-border-ghost: #d8d3ef;
  --c-border-relock: #ddd7ef;
  --c-border-strong: #c9bff0;
  --c-border-input: #968abf;

  /* Footer text */
  --c-footer-text: #cfcce0;
  --c-footer-muted: #9c99b8;
  --c-footer-blurb: #9b98b4;

  /* Status / feedback */
  --c-error: #c0392b;
  --c-success: #157a4a;
  --c-success-bg: #e4f5ec;

  /* Channels (for rgba) */
  --c-blue-rgb: 57,84,201;
  --c-bg-rgb: 251,250,255;
  --c-shadow-rgb: 40,30,80;
  --c-shadow-strong-rgb: 45,33,92;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito Sans',sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* sticky footer: main grows to fill short pages so the footer sits at the bottom */

main {
  flex: 1 0 auto;
}

@keyframes tbpfade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: var(--c-selection);
}

/* visible focus — prototype lacked this */

a:focus-visible,button:focus-visible,input:focus-visible {
  outline: 2px solid var(--c-purple);
  outline-offset: 2px;
}

img {
  display: block;
}

/* ---- Layout primitives ---- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.page-anim {
  animation: tbpfade .5s ease both;
}

/* ---- Typography ---- */

.eyebrow {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.h1 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--c-ink);
}

.h2 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.12;
  margin: 0;
  color: var(--c-ink);
}

.h3 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 21px;
  margin: 0 0 10px;
  color: var(--c-ink);
}

.gradient-text {
  background: linear-gradient(120deg,var(--c-blue),var(--c-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--c-text-lead);
}

.muted {
  color: var(--c-text-muted);
}

/* ---- Header / nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--c-bg-rgb),0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  transition: transform 0.75s ease;
}

@media (prefers-reduced-motion: reduce) {
  .brand__text {
    transition: none;
  }
}

.brand__name {
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-ink);
  letter-spacing: 0.08em;
}

.brand__sub {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-purple);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text-nav);
  padding: 8px 12px;
}

.nav-link:hover {
  color: var(--c-blue);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,var(--c-blue),var(--c-purple));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
}

.nav-toggle:hover {
  background: var(--c-surface-purple);
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--c-text-nav);
  transition: transform .2s ease,opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons / links styled as buttons ---- */

.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  color: var(--c-white);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(var(--c-blue-rgb),0.26);
}

.btn--primary:hover {
  opacity: 0.93;
}

.btn--ghost {
  background: var(--c-white);
  border: 1.5px solid var(--c-border-ghost);
  color: var(--c-blue);
  border-radius: 999px;
}

.btn--ghost:hover {
  border-color: var(--c-purple);
}

.btn--lg {
  font-size: 16px;
  padding: 15px 28px;
}

.btn--nav {
  margin-left: 6px;
  font-size: 15px;
  color: var(--c-white);
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(var(--c-blue-rgb),0.22);
}

.btn--nav:hover {
  opacity: 0.92;
}

.link-inline {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-purple);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1100px 520px at 12% -10%, var(--c-hero-tint-a) 0%, rgba(237,233,251,0) 60%), radial-gradient(900px 500px at 100% 0%, var(--c-hero-tint-b) 0%, rgba(228,236,251,0) 55%), var(--c-bg);
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 84px 24px 92px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-h1 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--c-ink);
}

.hero-sub {
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 22px;
  max-width: 520px;
}

/* Accent words in the brand purple, echoing the end of the h1's gradient.
   #7159b9 holds 4.6:1 on the hero's lightest-to-darkest tint. */
.hero-sub__accent {
  font-weight: 700;
  color: var(--c-purple);
}

.hero-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--c-text-lead);
  margin: 0 0 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
}

.hero-media__blob {
  position: absolute;
  inset: -14px -14px auto auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  opacity: 0.14;
  filter: blur(6px);
}

.hero-media__frame {
  position: relative;
  height: 420px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(var(--c-shadow-strong-rgb),0.16);
}

/* Inactive slides are also visibility:hidden so a credit link on a hidden
   slide can't take keyboard focus; the delay lets the fade-out finish. */
.hero-media__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}

.hero-media__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .9s ease;
}

.hero-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom-right plain text, no background, in the quietest grey that still
   reads against each slide's corner (WCAG 1.4.3, 4.5:1). hero-4's corner is
   flat near-white: #646464 gives 4.7:1. hero-2's is lit floor, so it takes
   near-black (--dark): 5.1:1 at desktop, 6.2:1 on the floor at phone width,
   dipping to 4.0:1 where the text crosses her foot's shadow. Re-check if the
   photos change. */
/* Credits sit on a faint white backing so their contrast doesn't lean entirely
   on the photo underneath. Kept quiet but measured: 0.6 is the faintest that
   keeps 4.5:1+ over every pixel of the credited photos (0.55 is 4.6:1). */
.hero-media__credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  line-height: 1.4;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
}

.hero-media__credit a {
  color: var(--c-text);
  text-decoration: none;
}

.hero-media__credit a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Section heading block ---- */

.section-head {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head .h2 {
  margin-top: 12px;
}

/* ---- Cards (what-it-is) ---- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(var(--c-shadow-rgb),0.04);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg,var(--c-surface-blue),var(--c-card-icon));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}

.card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text-muted);
  margin: 0;
}

/* ---- Who it's for ---- */

.band-soft {
  background: linear-gradient(180deg,var(--c-band-top),var(--c-band-bottom));
}

.who-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 78px 24px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.who-grid .h2 {
  margin: 12px 0 16px;
  font-size: 36px;
}

.who-grid p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-text-lead);
  margin: 0;
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pill {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 22px;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--c-text-nav);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill__dot {
  color: var(--c-purple);
}

/* ---- Evidence stats ---- */

.evidence-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.evidence-head .h2 {
  margin: 12px 0 12px;
  font-size: 36px;
}

.evidence-head p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text-muted);
  margin: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 18px;
}

.stat {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 30px 24px;
}

.stat--accent {
  background: linear-gradient(160deg,var(--c-blue),var(--c-purple));
  color: var(--c-white);
  border: none;
}

.stat__num {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
}

.stat__label {
  font-size: 15px;
  line-height: 1.45;
  margin-top: 10px;
  color: var(--c-text-muted);
}

.stat--accent .stat__label {
  color: var(--c-white);
  opacity: 0.92;
}

.footnote {
  font-size: 13px;
  color: var(--c-text-soft);
  text-align: center;
  margin: 22px 0 0;
}

/* ---- Quote band ---- */

.quote-band {
  background: var(--c-ink);
}

.quote-band__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.quote-mark {
  font-family: 'Quicksand',sans-serif;
  font-size: 64px;
  line-height: 1;
  color: var(--c-purple);
  margin-bottom: 10px;
}

.quote {
  font-family: 'Quicksand',sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.4;
  color: var(--c-white);
  margin: 0 0 22px;
}

.quote-cite {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-quote-cite);
  margin: 0;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
}

/* Rotating testimonials. Slides stack; the leaving one slides off to the
   right while the next enters from the left. Reserve height to avoid jump. */

.quote-slides {
  position: relative;
  min-height: 150px;
}

.quote-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.quote-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.quote-slide.is-leaving {
  opacity: 0;
  transform: translateX(40px);
}

@media (prefers-reduced-motion: reduce) {
  .quote-slide {
    transition: none;
  }
}

/* ---- CTA band ---- */

.cta {
  background: linear-gradient(135deg,var(--c-surface-blue),var(--c-surface-lilac));
  border: 1px solid var(--c-border-lilac);
  border-radius: 26px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* Home CTA sits on .band-soft: same vertical rhythm as the who-grid band, and a
   white card so it doesn't dissolve into the lilac. */
.cta-band {
  padding-top: 78px;
  padding-bottom: 78px;
}

.band-soft .cta {
  background: var(--c-white);
}

.cta .h2 {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 10px;
}

.cta p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text-lead);
  margin: 0;
}

.cta__body {
  max-width: 560px;
}

.cta .btn--lg {
  font-size: 17px;
  padding: 16px 34px;
  white-space: nowrap;
}

/* ---- Generic prose sections (about / privacy) ---- */

.narrow {
  max-width: 880px;
}

/* Let long words such as email addresses wrap rather than overflow (1.4.12). */
.prose {
  overflow-wrap: break-word;
}

.prose h2 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--c-ink);
}

.prose p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--c-text);
  margin: 0 0 16px;
}

/* privacy notice + accessibility statement: tighter prose than the default
   (kept out of inline styles) */

.prose-legal h2 {
  font-size: 23px;
}

.prose-legal h3 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--c-ink);
}

.prose-legal p {
  font-size: 17px;
  margin: 0 0 26px;
}

.prose-legal ul {
  margin: 0 0 26px;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-text);
}

.prose-legal li {
  margin-bottom: 6px;
}

/* resource-*.html: web versions of the resource PDFs (noindex, see .htaccess) */

.res-doc__back {
  margin: 0 0 22px;
  font-size: 16px;
}

.res-doc__meta {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text-soft);
  margin: 0 0 36px;
  padding: 14px 18px;
  background: var(--c-surface-blue);
  border-radius: 14px;
}

.res-doc .prose-legal h2 {
  margin-top: 40px;
}

.res-doc__stat {
  padding: 18px 22px;
  border-left: 4px solid var(--c-purple);
  background: var(--c-surface-lilac);
  border-radius: 0 14px 14px 0;
}

.res-doc__stat strong {
  font-family: 'Quicksand',sans-serif;
  font-size: 24px;
  color: var(--c-ink);
}

.res-doc .prose-legal .res-doc__refs {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-soft);
}

.res-doc__source {
  font-size: 15px;
  color: var(--c-text-soft);
  margin: 40px 0 0;
}

.panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 2px 16px rgba(var(--c-shadow-rgb),0.04);
}

/* ---- About bio band + portrait ---- */

.bio-band {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 32px;
  align-items: start;
  background: linear-gradient(135deg,var(--c-surface-blue),var(--c-surface-lilac));
  border: 1px solid var(--c-border-lilac);
  border-radius: 22px;
  padding: 36px;
}

.portrait {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-border-lilac);
  border: 1.5px solid var(--c-border-strong);
}

.bio-role {
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin: 0 0 16px;
}

/* ---- Contact ---- */

.contact-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 22px;
  padding: 44px;
  box-shadow: 0 6px 26px rgba(var(--c-shadow-rgb),0.06);
  max-width: 480px;
  margin: 0 auto;
}

.contact-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
}

.contact-label {
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin: 0 0 8px;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--c-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--c-purple);
}

.social-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 30px;
}

.social-link {
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text-soft);
  text-decoration: none;
  border: 1.5px solid var(--c-border-lilac-2);
  border-radius: 999px;
  padding: 10px 20px;
}

.social-link:hover {
  border-color: var(--c-purple);
  color: var(--c-purple);
}

/* ---- Resources gate ---- */

.gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 90px 24px 110px;
  text-align: center;
}

.gate__lock {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  box-shadow: 0 12px 28px rgba(var(--c-blue-rgb),0.26);
}

.gate__card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(var(--c-shadow-rgb),0.06);
  text-align: left;
}

.gate__label {
  display: block;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-nav);
  margin-bottom: 8px;
}

.gate__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border-input);
  border-radius: 12px;
  font-family: 'Nunito Sans',sans-serif;
  font-size: 16px;
  color: var(--c-ink);
  outline: none;
  margin-bottom: 14px;
}

.gate__input[aria-invalid="true"] {
  border-color: var(--c-error);
}

.gate__input:focus {
  border-color: var(--c-purple);
}

.gate__error {
  color: var(--c-error);
  font-size: 14px;
  margin: 0 0 14px;
}

.gate__submit {
  width: 100%;
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  border: none;
  cursor: pointer;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--c-white);
  padding: 14px;
  border-radius: 12px;
}

.gate__submit:hover {
  opacity: 0.93;
}

/* ---- Resources unlocked ---- */

.res-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 74px 24px 90px;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.chip-ok {
  font-size: 12px;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  color: var(--c-success);
  background: var(--c-success-bg);
  padding: 4px 10px;
  border-radius: 999px;
}

.grid-cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.res-card {
  text-decoration: none;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 2px 14px rgba(var(--c-shadow-rgb),0.04);
}

.res-card:hover {
  border-color: var(--c-border-strong);
}

.res-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--c-surface-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
}

.res-card__title {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.res-card__desc {
  font-size: 15px;
  color: var(--c-text-soft);
  line-height: 1.5;
}

.support-box {
  background: linear-gradient(135deg,var(--c-surface-blue),var(--c-surface-lilac));
  border: 1px solid var(--c-border-lilac);
  border-radius: 18px;
  padding: 28px;
}

.support-box h2 {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--c-ink);
}

.support-box p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-lead);
  margin: 0;
}

.btn--relock {
  background: none;
  border: 1.5px solid var(--c-border-relock);
  cursor: pointer;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--c-text-soft);
  padding: 10px 18px;
  border-radius: 999px;
}

.btn--relock:hover {
  border-color: var(--c-purple);
  color: var(--c-purple);
}

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

.site-footer {
  background: var(--c-ink);
  color: var(--c-footer-text);
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer-brand span {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--c-white);
}

.footer-brand .accent {
  color: var(--c-quote-cite);
}

.footer-tagline {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--c-quote-cite);
  margin: 0 0 10px;
}

.footer-blurb {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-footer-blurb);
  margin: 0;
  max-width: 320px;
}

/* white chip so the dark single-colour wordmark stays legible on the dark footer */

.footer-uni img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* the uni logo wears the same button styling as the social icons (its SVG fill matches --c-footer-text); only its width differs from the square icon buttons */

.footer-social .footer-uni {
  width: auto;
  padding: 0 12px;
  margin-right: 4px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-ink-line);
  color: var(--c-footer-text);
}

.footer-social a:hover {
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  color: var(--c-white);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col-title {
  font-family: 'Quicksand',sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-footer-muted);
  margin: 0 0 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-items: flex-start;
}

.footer-links a {
  font-family: 'Nunito Sans',sans-serif;
  font-size: 15px;
  color: var(--c-footer-text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-white);
}

/* The standard purple focus ring is only 2.8:1 on the dark footer; use the
   on-dark purple (7.2:1) so focus stays visible (WCAG 1.4.11). */
.site-footer a:focus-visible {
  outline-color: var(--c-purple-on-dark);
}

.footer-bar {
  border-top: 1px solid var(--c-ink-line);
}

.footer-bar__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
  font-size: 13px;
  color: var(--c-footer-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-footer-muted);
  text-decoration: none;
}

.footer-credit:hover {
  color: var(--c-white);
}

/* white chip so the colourful wordmark (incl. its dark purple letter) stays legible on the dark bar */

.footer-credit img {
  height: 22px;
  width: auto;
  display: block;
  background: var(--c-white);
  border-radius: 6px;
  padding: 4px 7px;
}

/* site version (VERSION, stamped by `make bump`) and maker credit, above the
   social icons: deliberately quiet */
.footer-meta {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--c-footer-muted);
}

.footer-meta a {
  color: inherit;
}

.footer-meta a:hover {
  color: var(--c-white);
}

/* ---- Responsive (prototype breakpoints) ---- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 56px;
    padding-bottom: 60px;
  }
  .hero-h1 {
    font-size: 40px;
  }
  .hero-sub {
    font-size: 24px;
  }
  .hero-media {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .who-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-cards-2 {
    grid-template-columns: 1fr;
  }
  /* brand spans the row; Explore + Legal sit side by side beneath it */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid>:first-child {
    grid-column: 1 / -1;
  }
  .h2 {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 10px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav-link {
    padding: 12px;
    border-radius: 10px;
  }
  .nav-link.is-active::after {
    display: none;
  }
  .nav-link.is-active {
    color: var(--c-blue);
    background: var(--c-surface-purple);
  }
  .btn--nav {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero-h1 {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 21px;
  }
  .hero-media__frame {
    height: 300px;
  }
  .pills {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    gap: 28px;
  }
  /* tighter gap on phones; columns inherited from the 900 rule */
  .bio-band {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 28px;
  }
  .portrait {
    margin: 0 auto;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
  .quote {
    font-size: 24px;
  }
  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .h1 {
    font-size: 34px;
  }
  .h2 {
    font-size: 26px;
  }
  .contact-card {
    padding: 36px 20px;
  }
  /* Scale with the screen so the address stays on one line down to ~360px;
     narrower than that it breaks at the <wbr> after the @. */
  .contact-email {
    font-size: clamp(16px, 6vw - 5.6px, 19px);
  }
}

/* ---- Per-word brand colours (match logo) ---- */

.wc-b {
  color: var(--c-blue);
}

.wc-p {
  color: var(--c-purple);
}

/* lighter tints for the dark footer — keeps contrast readable */

.site-footer .wc-b {
  color: var(--c-blue-on-dark);
}

.site-footer .wc-p {
  color: var(--c-purple-on-dark);
}

/* ---- Skip link (keyboard accessibility) ---- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--c-blue);
  color: var(--c-white);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-family: 'Quicksand',sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ---- Hero slideshow pause/play (WCAG 2.2.2) ---- */

.hero-media__pause {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  /* Faintest backing that keeps the icon 3:1+ over every slide (1.4.11). */
  background: rgba(255,255,255,0.65);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media__pause:hover,
.hero-media__pause:focus-visible {
  background: var(--c-white);
}

/* White inner ring keeps the purple focus ring visible over any photo. */
.hero-media__pause:focus-visible {
  box-shadow: 0 0 0 2px var(--c-white);
}

.hero-media__pause svg {
  width: 12px;
  height: 12px;
}

/* ---- Forced colours (Windows high contrast): gradient fills are dropped, so
   give filled buttons a real border to keep their shape. ---- */

@media (forced-colors: active) {
  .btn--primary,
  .btn--nav,
  .gate__submit,
  .to-top,
  .hero-media__pause {
    border: 2px solid ButtonText;
  }
}

/* ---- Go-to-top button (all screen sizes) ---- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg,var(--c-blue),var(--c-purple));
  color: var(--c-white);
  box-shadow: 0 8px 22px rgba(var(--c-blue-rgb),0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease,transform .25s ease;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ---- Respect reduced-motion preference ---- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .page-anim {
    animation: none;
  }
  .to-top {
    transition: none;
  }
  .hero-media__slide,
  .hero-media__slide.is-active {
    transition: none;
  }
}
