/* ==========================================================================
   Planes × Bayer Consumer Health — microsite styles
   ========================================================================== */

@font-face {
  font-family: 'Mint Grotesk';
  src: url('../fonts/MintGrotesk-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mint Grotesk';
  src: url('../fonts/MintGrotesk-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Hatton';
  src: url('../fonts/PPHatton-UltralightItalic.otf') format('opentype');
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1E1E1E;
  --white: #FFFFFF;
  --paper: #F4F3F1;
  --card: #FBFBFA;
  --dark: #161616;
  --butter: #FFE787;
  --mint: #A7FFD0;
  --sky: #AFEDFF;
  --font-sans: 'Mint Grotesk', 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-serif: 'PP Hatton', 'DM Serif Display', Georgia, serif;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --max-w: 1240px;
  --pad-x: clamp(20px, 5vw, 56px);
  --section-pad: clamp(76px, 9vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper) url('../assets/grey-paper.jpg') center / cover fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ---- Keyframes --------------------------------------------------------- */
@keyframes bm-drift { 0% { transform: scale(1.03) translateY(0); } 100% { transform: scale(1.09) translateY(-2.4%); } }
@keyframes bm-marquee { to { transform: translateX(-50%); } }
@keyframes bm-rise { from { transform: translateY(18px); } to { transform: none; } }

/* ---- Shared link / interaction styles ---------------------------------- */
.bm-link { position: relative; text-decoration: none; }
.bm-link:hover { text-decoration: none; }
.bm-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.bm-link:hover::after { transform: scaleX(1); }

.bm-cta { transition: filter .16s ease, transform .16s ease; }
.bm-cta:hover { filter: brightness(.94); }
.bm-cta:active { transform: translateY(1px); }

.bm-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}
.bm-social:hover { background: var(--butter); color: var(--ink); border-color: var(--butter); text-decoration: none; }

.reveal { animation: bm-rise .8s var(--ease) both; }
.reveal--1 { animation-delay: .06s; }
.reveal--2 { animation-delay: .12s; }
.reveal--3 { animation-delay: .18s; }

/* ---- Nav ---------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(22, 22, 22, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.site-nav__logo-link { display: inline-flex; align-items: center; }
.site-nav__brand img { height: 34px; filter: invert(1); display: block; }
.site-nav__brand span { color: rgba(255, 255, 255, .6); font-weight: 500; font-size: 15px; letter-spacing: -.01em; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}
@media (max-width: 840px) {
  .site-nav__links { display: none !important; }
}

.btn-cta {
  background: var(--butter);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 700;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  height: 50vh;
  color: var(--white);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, .4);
  z-index: 1;
}
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 56px);
}
.hero__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin: 0 0 2px;
  margin-left: 8px;
  font-size: clamp(26px, 7vw, 60px);
}
.hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(58px, 17vw, 150px);
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--butter);
  margin: 0;
}
@media (max-width: 840px) {
  .hero { height: 300px !important; }
}

/* ---- Who we work with ----------------------------------------------------- */
.section-who {
  background: var(--card) url('../assets/paper.jpg') center / cover fixed;
  padding: var(--section-pad) 0;
  scroll-margin-top: 72px;
}
.section-who h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  letter-spacing: -.03em;
  line-height: 1;
  max-width: 24ch;
  margin: 0;
}
.section-who h2 em { white-space: nowrap; }
.section-who__lede {
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  max-width: 54ch;
  line-height: 1.5;
}

.logo-marquee {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 34px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee__track {
  display: flex;
  gap: clamp(48px, 5vw, 72px);
  width: max-content;
  align-items: center;
  animation: bm-marquee 46s linear infinite;
}
.logo-marquee__track img { width: auto; display: block; flex: 0 0 auto; }

/* ---- Case studies ("where") ------------------------------------------------ */
.section-where {
  background: var(--dark);
  color: var(--white);
  padding: var(--section-pad) 0;
  scroll-margin-top: 72px;
}
.section-where__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(36px, 8vw, 65px);
  letter-spacing: -.035em;
  line-height: 1;
  max-width: 18ch;
  margin: 0;
  color: var(--white);
}
.section-where__lede {
  margin: 30px 0 0;
  font-size: clamp(18px, 2vw, 23px);
  color: rgba(255, 255, 255, .92);
  max-width: 54ch;
  line-height: 1.5;
}
.case-studies { margin-top: clamp(40px, 5vw, 64px); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tag-pill {
  padding: 6px 14px;
  border: 1px solid rgba(30, 30, 30, .28);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.case-feature {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: clamp(34px, 4vw, 52px);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card) url('../assets/paper.jpg') center / cover fixed;
  scroll-margin-top: 92px;
}
.case-feature__image {
  min-height: clamp(400px, 46vw, 600px);
  height: 100%;
  overflow: hidden;
  background: #2C1A48;
}
.case-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: bm-drift 11s ease-in-out infinite alternate;
}
.case-feature__body {
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-feature__body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 20ch;
  color: var(--ink);
}
.case-feature__body p {
  font-size: 16.5px;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.case-card {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card) url('../assets/paper.jpg') center / cover fixed;
  scroll-margin-top: 92px;
}
.case-card__image {
  height: clamp(250px, 25vw, 330px);
  overflow: hidden;
  background: #EEE;
}
.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  animation: bm-drift 12s ease-in-out infinite alternate;
}
.case-card__image--quote {
  display: flex;
  align-items: flex-end;
  padding: 30px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
}
.case-card__image--quote span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 30px);
  color: var(--ink);
  line-height: 1.1;
}
.case-card__body {
  padding: clamp(26px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.case-card__body h4 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  max-width: 24ch;
  color: var(--ink);
}
.case-card__body p {
  font-size: 15.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 0 0 10px;
}
.case-card__body p:last-of-type { margin-bottom: 0; }
.case-card__quote {
  font-family: var(--font-sans);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  margin: 18px 0 0 !important;
  line-height: 1.4;
}
.case-card__quote cite {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-top: 8px;
}
.case-card--order-4 { order: 4; }
.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

/* ---- Capabilities ---------------------------------------------------------- */
.section-capabilities {
  background: var(--card) url('../assets/paper.jpg') center / cover fixed;
  padding: var(--section-pad) 0;
  scroll-margin-top: 72px;
}
.section-capabilities h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 65px);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
}
.section-capabilities h2 em { white-space: nowrap; }
.section-capabilities__lede {
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink);
  max-width: 66ch;
  line-height: 1.55;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: clamp(34px, 4vw, 52px);
}
.capability-box {
  border: 1.5px dashed rgba(30, 30, 30, .42);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capability-box h4 {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.capability-box p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  margin: 0;
}

/* ---- Approach ("how we work") ---------------------------------------------- */
.section-approach {
  background: var(--mint);
  color: var(--ink);
  padding: var(--section-pad) 0;
  scroll-margin-top: 72px;
}
.section-approach h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 65px);
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0;
}
.section-approach__lede {
  margin: 22px 0 0;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink);
  max-width: 62ch;
  line-height: 1.55;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px 56px;
  margin-top: clamp(36px, 4vw, 54px);
}
.approach-item {
  display: flex;
  gap: 18px;
  border-top: 1px solid rgba(30, 30, 30, .22);
  padding-top: 20px;
}
.approach-item__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  flex: 0 0 auto;
  width: 42px;
}
.approach-item h4 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 5px;
}
.approach-item p {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
  margin: 0;
}

/* ---- Team band --------------------------------------------------------- */
.team-band { line-height: 0; }
.team-band img { display: block; width: 100%; height: auto; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: clamp(96px, 12vw, 150px) 0 48px;
  scroll-margin-top: 72px;
}
.site-footer__inner { text-align: center; }
.site-footer h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(48px, 12vw, 100px);
  letter-spacing: -.04em;
  line-height: .92;
  margin: 0 0 28px;
  color: var(--white);
}
.site-footer__lede {
  font-size: clamp(18px, 2.1vw, 22px);
  color: rgba(255, 255, 255, .92);
  max-width: 44ch;
  margin: 0 auto 34px;
  line-height: 1.5;
}
.site-footer__contact {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  align-items: center;
}
.site-footer__email { color: var(--butter); font-weight: 600; font-size: clamp(17px, 2vw, 21px); }
.site-footer__divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .22); }
.site-footer__socials { display: flex; gap: 14px; align-items: center; }

.site-footer__base {
  margin-top: clamp(64px, 9vw, 110px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
.site-footer__base-brand { display: flex; align-items: center; gap: 22px; }
.site-footer__base-brand img { filter: invert(1); opacity: .85; display: block; }
.site-footer__base-brand img.logo { height: 20px; }
.site-footer__base-brand img.bcorp { height: 46px; width: auto; }
.site-footer__base-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
}

/* ---- Mobile ---------------------------------------------------------------- */
@media (max-width: 840px) {
  .case-grid,
  .capability-grid,
  .approach-grid {
    grid-template-columns: 1fr !important;
  }
  .case-feature { grid-template-columns: 1fr !important; }
  h1 em, h2 em, p em { white-space: normal !important; }
  .section-who h2 em,
  .section-capabilities h2 em { white-space: normal !important; }
  .section-who h2 { max-width: 11ch !important; }
}
