/* ==========================================================================
   CAPS4CANCER — Core Stylesheet
   Design system: tokens, typography, layout primitives, components.
   ========================================================================== */

:root {
  /* Brand palette — locked, do not extend */
  --c-white: #FFFFFF;
  --c-pink: #E91E63;
  --c-pink-light: #F8D7E6;
  --c-black: #111111;
  --c-gray: #666666;
  --c-bg-gray: #F8F8F8;

  /* Derived tones (same hues, opacity only — not new colors) */
  --c-pink-rgb: 233, 30, 99;
  --c-black-rgb: 17, 17, 17;

  /* Typography */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Type scale */
  --fs-hero: clamp(2.75rem, 7vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing rhythm */
  --space-unit: 8px;
  --section-pad-y: clamp(80px, 10vw, 160px);
  --section-pad-x: clamp(24px, 6vw, 96px);
  --container-max: 1400px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 1s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--c-black);
  background: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
svg { display: block; }

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--c-pink);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  background: var(--c-black);
  color: var(--c-white);
  padding: 12px 20px;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 24px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--c-black);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 20px;
}

p { color: var(--c-gray); font-size: var(--fs-body); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--c-gray);
  font-weight: 400;
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section--gray { background: var(--c-bg-gray); }
.section--black { background: var(--c-black); color: var(--c-white); }
.section--black p { color: #B8B8B8; }
.section--black h2, .section--black h3 { color: var(--c-white); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.section-head p { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-pink);
  color: var(--c-white);
}
.btn--primary:hover {
  background: #d5164f;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(var(--c-pink-rgb), 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--c-black);
  box-shadow: inset 0 0 0 1.5px var(--c-black);
}
.btn--ghost:hover {
  background: var(--c-black);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  color: var(--c-white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.7);
}
.btn--ghost-light:hover {
  background: var(--c-white);
  color: var(--c-black);
  transform: translateY(-2px);
}

.btn-row { display: flex; gap: 20px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--section-pad-x);
  transition: background var(--dur-med) var(--ease-out),
              padding var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 18px;
  box-shadow: 0 1px 0 rgba(17,17,17,0.06);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  z-index: 2;
}
.nav__logo img { height: 34px; width: auto; display: block; }

.nav--transparent .nav__logo,
.nav--transparent .nav__links a,
.nav--transparent .nav__toggle span { color: var(--c-white); }
.nav--solid .nav__logo,
.nav--solid .nav__links a,
.nav--solid .nav__toggle span { color: var(--c-black); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 44px;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--dur-fast) var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta {
  padding: 11px 22px;
  font-size: 0.72rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  width: 28px;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--c-black);
  color: var(--c-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg svg { width: 100%; height: 100%; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.25) 38%, rgba(17,17,17,0.65) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-inline: 24px;
  max-width: 900px;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-pink-light);
  margin-bottom: 28px;
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--c-white);
}
.hero__title span { display: block; }
.hero__title .accent { color: var(--c-pink); }

.hero__subtitle {
  margin: 28px auto 44px;
  max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  color: rgba(255,255,255,0.82);
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.35);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 100%;
  background: var(--c-pink);
  animation: scrollLine 2.2s var(--ease-out) infinite;
}

/* --------------------------------------------------------------------------
   Cards (Research / Awareness / Impact)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: #E9E9E9;
}

.card {
  background: var(--c-white);
  padding: clamp(40px, 4vw, 64px) clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--dur-med) var(--ease-out);
}
.card:hover { background: var(--c-bg-gray); }

.card__icon {
  width: 44px;
  height: 44px;
  color: var(--c-pink);
}

.card__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--c-gray);
}

.card h3 { font-size: var(--fs-h3); }
.card p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Full-bleed image section (Apple effect)
   -------------------------------------------------------------------------- */
.full-bleed {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--c-black);
}
.full-bleed__media { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.full-bleed__media svg { width: 100%; height: 110%; }
.full-bleed__media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: 65% 30%;
}
.full-bleed__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(17,17,17,0.75) 0%, rgba(17,17,17,0.2) 45%, rgba(17,17,17,0.05) 70%);
}
.full-bleed__caption {
  position: relative;
  z-index: 2;
  padding: 0 var(--section-pad-x) 72px;
  color: var(--c-white);
  max-width: 640px;
}
.full-bleed__caption .eyebrow { color: var(--c-pink-light); }
.full-bleed__caption h2 { color: var(--c-white); }
.full-bleed__caption p { color: rgba(255,255,255,0.78); margin-top: 14px; }

/* --------------------------------------------------------------------------
   Counters
   -------------------------------------------------------------------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.counter__value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--c-pink);
  line-height: 1;
}
.counter__label {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--c-gray);
  max-width: 26ch;
  margin-inline: auto;
}
.section--black .counter__label { color: rgba(255,255,255,0.7); }

/* --------------------------------------------------------------------------
   Video section
   -------------------------------------------------------------------------- */
.video-section { padding: 0; }
.video-wrap {
  position: relative;
  height: 100vh;
  min-height: 560px;
  background: var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-wrap svg.ambient { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border: 0;
}
.video-play {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-white);
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.video-play:hover { transform: scale(1.08); background: rgba(255,255,255,0.08); }
.video-play svg { width: 22px; height: 22px; margin-left: 4px; }
.video-caption {
  position: absolute;
  bottom: 56px;
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Partners
   -------------------------------------------------------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: #E9E9E9;
}
.partner-logo {
  background: var(--c-white);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.partner-logo svg {
  width: 100%;
  height: 100%;
  color: #C7C7C7;
  transition: color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.partner-logo:hover svg { color: var(--c-pink); transform: scale(1.04); }

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */
.final-cta {
  position: relative;
  height: 90vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--c-black);
}
.final-cta__media { position: absolute; inset: 0; }
.final-cta__media svg { width: 100%; height: 100%; }
.final-cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.final-cta__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,0.7), rgba(17,17,17,0.4) 50%, rgba(17,17,17,0.75));
}
.final-cta__content { position: relative; z-index: 2; color: var(--c-white); padding-inline: 24px; }
.final-cta__content h2 { color: var(--c-white); font-size: var(--fs-h1); margin-bottom: 28px; }
.final-cta__content p { color: rgba(255,255,255,0.78); max-width: 46ch; margin-inline: auto; margin-bottom: 36px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-black);
  color: rgba(255,255,255,0.65);
  padding: 72px var(--section-pad-x) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--c-white);
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__brand img { height: 30px; width: auto; }
.footer__tagline { font-size: 0.9rem; max-width: 30ch; }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: 18px;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer a { font-size: 0.9rem; transition: color var(--dur-fast) var(--ease-out); }
.footer a:hover { color: var(--c-pink-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8rem;
}
.footer__social { display: flex; gap: 18px; }
.footer__social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Reveal utility (paired with animation.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   Inner page hero (secondary pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 200px var(--section-pad-x) 100px;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.page-hero .eyebrow { display: block; }
.page-hero h1 { font-size: var(--fs-h1); }
.page-hero p { margin-top: 20px; font-size: 1.1rem; }

/* Generic content blocks used across secondary pages */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.two-col__media,
.two-col__text { min-width: 0; }
.two-col--reverse .two-col__media { order: 2; }
.two-col__media svg { width: 100%; height: auto; display: block; }
.two-col__text h2 { margin-bottom: 20px; }
.two-col__text p + p { margin-top: 14px; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-strip__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--c-pink);
}
.stat-strip__label { font-size: 0.85rem; margin-top: 8px; color: var(--c-gray); }

.list-clean { display: flex; flex-direction: column; gap: 0; }
.list-clean li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid #E5E5E5;
}
.list-clean li h4 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.list-clean li p { font-size: 0.88rem; margin: 0; }

/* Shop */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.product-card { display: flex; flex-direction: column; }
.product-card__media {
  background: var(--c-bg-gray);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 2px;
}
.product-card__media svg { width: 62%; height: 62%; transition: transform var(--dur-med) var(--ease-out); }
.product-card:hover .product-card__media svg { transform: scale(1.06) rotate(-2deg); }
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.product-card__meta { display: flex; justify-content: space-between; margin-top: 6px; }
.product-card__price { color: var(--c-black); font-weight: 500; font-size: 0.95rem; }
.product-card__tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-pink); margin-top: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
.form-field { margin-bottom: 26px; }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: 10px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #D9D9D9;
  padding: 12px 2px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--c-pink);
  outline: none;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info__item h4 { font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 6px; }
.contact-info__item p { font-size: 0.95rem; }

.form-note { font-size: 0.78rem; color: var(--c-gray); margin-top: -8px; margin-bottom: 26px; }
.form-status { font-size: 0.9rem; margin-top: 18px; min-height: 1.4em; }
.form-status[data-state="success"] { color: var(--c-pink); }
.form-status[data-state="error"] { color: #b3261e; }
