/* The kit: the parts every main-menu page shares (Charlie, 12 Oct: redesign only the pages the main menu links to,
   "as creative as you want"). Loaded on those pages only (build.py: html[data-wl-redesign="page"]); the homepage keeps
   its own approved styles. Shell (nav, footer, tokens) is in redesign.css; contact form, FAQ, campaigns and the lime
   band are shared from redesign.css sections 11-14. Each page adds its own redesign/pages/<slug>.css on top.
   Words never change and never move in the HTML: layout is CSS, media is wordless. */

html[data-wl-redesign="page"] {
  --wl-ink-2: #0b1a40;       /* a lifted navy for alternate bands */
  --wl-card-bg: #0e1c48;
  --wl-h-display: clamp(2.2rem, 1.1rem + 3.6vw, 4.6rem);
  --wl-h-section: clamp(1.45rem, 1rem + 1.5vw, 2.4rem);
}

/* ---------- page background: every white/grey Webflow band becomes the navy page ---------- */
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center,
  .section-black-blue, .section-page-hero, .section-navigation-background) {
  background: transparent;
  background-image: none;
  color: var(--wl-muted);
  border: 0;
}
html[data-wl-redesign="page"] .section-navigation-background { height: 0; padding: 0; }
html[data-wl-redesign="page"] .section-page-hero + :is(.section-cloud, .section-white, .section-black, .section-blue) { padding-top: clamp(8px, 2vw, 24px); }
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center)
  + :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) { padding-top: 0; }
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) {
  padding: var(--wl-section) var(--wl-gutter);
  border-radius: 0;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .container {
  width: 100%;
  max-width: var(--wl-max);
  margin: 0 auto;
  padding: 0;
}
html[data-wl-redesign="page"] .container.full-width { max-width: var(--wl-max); }
/* the white "card" corners Webflow put on bands */
html[data-wl-redesign="page"] .section-white.our-services,
html[data-wl-redesign="page"] .section-white.events-grid-list { border-radius: 0; }

/* ---------- type ---------- */
/* 25 Oct (SEO part 2): a hero title promoted to the page's h1 (h1.text-hero-pretitle, or an h1 inside one) keeps the
   hero title's look, so the section-heading rule leaves it alone */
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center, .section-page-hero)
  :is(h1, h2):not(.heading-creator-grid-name, .text-hero-pretitle, .text-hero-pretitle *) {
  margin: 0 0 .6em;
  color: #fff;
  font-family: Bungee, sans-serif;
  font-size: var(--wl-h-section);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) h3:not(.heading-15) {
  margin: 0 0 .55em;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: balance;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) h4 {
  margin: 1.2em 0 .4em;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center)
  :is(p, li, .w-richtext, .text-block-26) {
  color: var(--wl-muted);
  font-family: Poppins, sans-serif;
  font-size: clamp(15px, 14.4px + .2vw, 17px);
  line-height: 1.72;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) p { margin: 0 0 1em; }
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) :is(strong, b) {
  color: #fff;
  font-weight: 600;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .w-richtext a,
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) p a,
html[data-wl-redesign="page"] .text-block-26 a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(210, 248, 1, .6);
  transition: color .15s, border-color .15s;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .w-richtext a:hover,
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) p a:hover { color: var(--wl-lime); }
/* lists: lime ticks instead of black dots */
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .w-richtext ul,
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) ul:not(.list-4):not([class*="w-"]) {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .w-richtext ul > li,
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) ul:not(.list-4):not([class*="w-"]) > li {
  position: relative;
  margin: 0 0 .55em;
  padding-left: 22px;
}
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) .w-richtext ul > li::before,
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) ul:not(.list-4):not([class*="w-"]) > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--wl-lime);
  transform: rotate(45deg);
}

/* the shared Let's Talk block (#contact) keeps its own look from redesign.css section 13: no list markers here */
html[data-wl-redesign="page"] #contact ul > li { padding-left: 0; }
html[data-wl-redesign="page"] #contact ul > li::before { content: none; }

/* ---------- the first screen: the page photo full width, clean, with the title under it ----------
   13 Oct, Charlie: "the overlays on the pictures make them look weird and ai". Photos are shown as they are: no tinted
   wash, no fade into the page, no glow, no brightness filter, and no text on top of a photo. */
html[data-wl-redesign="page"] .section-black-blue.case-study-hero {
  padding: 14px var(--wl-gutter) 0;
  margin-bottom: 0;  /* Webflow's -4em pulled the title 72px back onto the photo */
}
html[data-wl-redesign="page"] .container-case-study-hero-image {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: clamp(300px, 56vh, 620px);
  max-height: none;  /* Webflow caps it at 53svw on phones (~207 px tall) */
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--wl-r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px var(--wl-line);
}
html[data-wl-redesign="page"] .container-case-study-hero-image::after { content: none; }
/* a page's own reel can sit in the hero photo's place (wordless, added by the page's fixes file) */
html[data-wl-redesign="page"] .container-case-study-hero-image > video.wl-ph-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 24 Oct re-sync: live's Webflow republish gave the shared title box (.container-hero-headline.home) a sky photo
   (image5.png) behind the title on Team, Channels, About Us, Magazine, Work, Insights & News and the news articles.
   Our designs for those pages are plain title bands and no words sit on a photo (README rule 8), so the copy leaves
   it off. Raised with Charlie: the photo could come back above the title instead. */
html[data-wl-redesign="page"] .container-hero-headline.home { background-image: none; }
html[data-wl-redesign="page"] .section-page-hero {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: clamp(22px, 3vw, 40px) var(--wl-gutter) clamp(40px, 5vw, 72px);
}
html[data-wl-redesign="page"] .section-page-hero > * {
  width: 100%;
  max-width: calc(var(--wl-max) + 2 * clamp(0px, 3vw, 40px));
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0px, 3vw, 40px);
  align-items: flex-start;
  text-align: left;
}
html[data-wl-redesign="page"] .section-page-hero :is(h1, .h-page-hero, .text-hero-pretitle) {
  max-width: 17ch;
  margin: 0 0 18px;
  padding-top: 0;  /* Webflow pads .text-hero-pretitle 20px top and bottom: an extra gap now that the title sits under the photo */
  padding-bottom: 0;
  color: var(--wl-lime);
  font-family: Bungee, sans-serif;
  font-size: var(--wl-h-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
  text-align: left;
}
/* 25 Oct (SEO part 2): a title line inside the hero title box that became the page's h1 (Social Video Production) looks
   exactly as it did as a div: everything from its box */
html[data-wl-redesign="page"] .section-page-hero .text-hero-pretitle h1 { margin: 0; max-width: none; color: inherit; font: inherit; letter-spacing: inherit; text-wrap: inherit; }
html[data-wl-redesign="page"] .section-page-hero h1 ~ :is(h1, h2, h3, .text-hero-pretitle, .h-page-hero),
html[data-wl-redesign="page"] .section-page-hero .text-hero-pretitle ~ :is(h1, h2, h3, .h-page-hero) {
  max-width: 40ch;
  margin: 0 0 22px;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: clamp(1.05rem, .95rem + .45vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
  text-shadow: none;
}
html[data-wl-redesign="page"] .section-page-hero :is(p, .paragraph, .text-block) {
  max-width: 62ch;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, .95rem + .25vw, 1.15rem);
  line-height: 1.6;
}

/* ---------- buttons ---------- */
html[data-wl-redesign="page"] :is(.button-hero-white, .button-highlight):not(.navigation) {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  min-height: 48px;
  margin: 8px 0 0;
  padding: 12px 24px;
  /* 15 Oct (Charlie: "buttons which feel AI"): a clear 60% white outline with no tint, instead of a 4% white fill
     inside a 20% white line that was hard to see; pages that make a button lime still override this */
  border: 1.5px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
  box-shadow: none;
  outline: 0;  /* Webflow draws a 3px dark outline that read as a smudge on navy */
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--wl-ease);
}
html[data-wl-redesign="page"] :is(.button-hero-white, .button-highlight):not(.navigation):focus-visible { outline: 2px solid var(--wl-lime); outline-offset: 3px; }
html[data-wl-redesign="page"] :is(.button-hero-white, .button-highlight):not(.navigation)::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
html[data-wl-redesign="page"] :is(.button-hero-white, .button-highlight):not(.navigation):hover {
  background: var(--wl-lime);
  border-color: var(--wl-lime);
  color: var(--wl-ink);
  transform: translateY(-1px);
}
/* the first-screen button and form buttons are the filled lime ones */
html[data-wl-redesign="page"] .section-page-hero .button-hero-white,
html[data-wl-redesign="page"] .form .button-highlight {
  background: var(--wl-lime);
  border-color: var(--wl-lime);
  color: var(--wl-ink);
}
html[data-wl-redesign="page"] .section-page-hero .button-hero-white:hover { box-shadow: 0 12px 30px -12px rgba(210, 248, 1, .7); }
html[data-wl-redesign="page"] .form .button-highlight::after { display: none; }
html[data-wl-redesign="page"] .button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

/* ---------- pictures ---------- */
html[data-wl-redesign="page"] :is(.section-cloud, .section-white, .section-black, .section-blue, .hero-heading-center) img:not([class*="logo"]):not([class*="icon"]):not(.image-6) {
  border-radius: var(--wl-r-md);
}
html[data-wl-redesign="page"] .image-rounded-corners { border-radius: var(--wl-r-lg); }

/* ---------- alternating media rows (services, events): text one side, a big picture the other ---------- */
html[data-wl-redesign="page"] .collection-item-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vw, 72px) 0;
  border-top: 1px solid var(--wl-line);
}
html[data-wl-redesign="page"] .collection-item-grid > * { width: 100%; max-width: none; margin: 0; }
html[data-wl-redesign="page"] .collection-item-grid img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }

/* ---------- event case studies ---------- */
html[data-wl-redesign="page"] .event-case-study-sec-headline { max-width: 20ch; margin-bottom: clamp(24px, 4vw, 48px); }
html[data-wl-redesign="page"] .collection-item-grid.vertical.event-case-study {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
}
html[data-wl-redesign="page"] .event-case-study-video { position: relative; overflow: hidden; border-radius: var(--wl-r-lg); }
html[data-wl-redesign="page"] .event-case-study-video img,
html[data-wl-redesign="page"] .event-case-study-video video,
html[data-wl-redesign="page"] .event-case-study-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--wl-r-lg);
  transition: transform .9s var(--wl-ease);
}
html[data-wl-redesign="page"] .event-case-study:hover .event-case-study-video img { transform: scale(1.03); }
html[data-wl-redesign="page"] .event-case-study .heading-36 {
  margin: 0 0 .5em;
  color: #fff;
  font-family: Bungee, sans-serif;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.08;
}
html[data-wl-redesign="page"] .event-title-logo { max-height: 56px; width: auto; margin: 0 0 18px; border-radius: 0; }

/* ---------- creator and athlete cards ---------- */
html[data-wl-redesign="page"] .container-creator-grid-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background-color: var(--wl-card-bg);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px var(--wl-line);
  transition: transform .45s var(--wl-ease), box-shadow .45s;
}
html[data-wl-redesign="page"] .container-creator-grid-item:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(210, 248, 1, .45), 0 24px 50px -24px rgba(0, 0, 0, .8); }
html[data-wl-redesign="page"] .container-creator-grid-item .div-block-34 { background: none; }  /* no shade on the photo: names go below it (page CSS) */
html[data-wl-redesign="page"] .heading-creator-grid-name {
  margin: 0;
  color: #fff;
  font-family: Bungee, sans-serif;
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.1;
}
html[data-wl-redesign="page"] .container-creator-grid-followers { color: var(--wl-lime); font-size: 13px; font-weight: 600; }
html[data-wl-redesign="page"] .label-creator-grid-category {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--wl-ink);  /* solid chip: nothing see-through on a photo (rule 8) */
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
html[data-wl-redesign="page"] .link-block-social-icon img { filter: invert(1); opacity: .85; border-radius: 0; }

html[data-wl-redesign="page"] .collection-list-creator-grid {
  width: 100%;
  max-width: var(--wl-max);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
}
html[data-wl-redesign="page"] .collection-list-creator-grid .container-creator-grid-item { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
@media screen and (max-width: 991px) { html[data-wl-redesign="page"] .collection-list-creator-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (max-width: 767px) { html[data-wl-redesign="page"] .collection-list-creator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-wl-redesign="page"] .section-cloud:has(.collection-list-creator-grid) { overflow-x: clip; }

/* the campaigns title ("Some of our high-impact social campaigns"): Webflow's navy on the navy page */
html[data-wl-redesign="page"] .section-dark-cloud .label-brands {
  margin: 0 0 22px;
  padding: 0;
  color: #fff;
  font-size: var(--wl-h-section);
  line-height: 1.08;
  text-align: left;
}

/* the shared FAQ list on these pages: arrows a size you can see, on the first line of each question, less dead space below */
html[data-wl-redesign="page"] .wl-faq-grid > details > summary { align-items: flex-start; }
html[data-wl-redesign="page"] .wl-faq-grid .wl-faq-arrow-1 { font-size: 15px !important; line-height: 1.4; }
html[data-wl-redesign="page"] .wl-faq-section-1 { padding-bottom: clamp(40px, 5vw, 72px); }

/* ---------- small things ---------- */
html[data-wl-redesign="page"] .divider-gray,
html[data-wl-redesign="page"] hr { height: 1px; border: 0; background: var(--wl-line); }
html[data-wl-redesign="page"] .text-block-26 { max-width: var(--wl-max); margin: 0 auto 24px; font-size: 14px; }

/* ---------- tablets and phones ---------- */
@media screen and (max-width: 991px) {
  html[data-wl-redesign="page"] .collection-item-grid,
  html[data-wl-redesign="page"] .collection-item-grid.vertical.event-case-study { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  html[data-wl-redesign="page"] .container-case-study-hero-image { height: clamp(300px, 46vh, 520px); }
}
@media screen and (max-width: 767px) {
  html[data-wl-redesign="page"] .section-black-blue.case-study-hero { padding: 10px 10px 0; }
  html[data-wl-redesign="page"] .container-case-study-hero-image { height: clamp(220px, 40svh, 380px); border-radius: 22px; }
  html[data-wl-redesign="page"] .section-page-hero { margin-top: 0; padding-top: 20px; }
  html[data-wl-redesign="page"] .section-page-hero > * { padding: 0 8px; }
  html[data-wl-redesign="page"] .section-page-hero :is(h1, .h-page-hero, .text-hero-pretitle) { font-size: clamp(1.9rem, 8.4vw, 2.7rem); }
}

/* the narrowest phones (320 px): a long handle with no spaces (@pierro_freebord) ran 12 px out of its creator card
   (stress test, 14 Oct). A size down here, and the page script's shrink-to-fit, keep every name whole in its card. */
@media screen and (max-width: 374px) {
  html[data-wl-redesign="page"] body #what .heading-creator-grid-name { font-size: 13px; }  /* the page script shrinks any that still don't fit (floor 11 px); no mid-word breaks */
}

/* lite-youtube-embed (14 Oct): the player it adds on "play" fills the thumbnail's box. The card rule above
   (.event-case-study-video iframe: height auto) was meant for pictures and squashed the player to 150 px. */
html[data-wl-redesign="page"] .w-embed-youtubevideo lite-youtube > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  transform: none;
}
/* the thumbnail shows clean with the play button: no title bar and dark gradient drawn over it (Rule 8, no overlays on
   photos). The title is still the player's own label and appears in YouTube's player once it plays. */
html[data-wl-redesign="page"] lite-youtube::before { content: none; display: none; }

/* phones held sideways (about 390 px tall): the hero photo filled the whole first screen and the page title started
   below it (14 Oct Safari stress test, 14 pages). On short landscape screens the photo is a band, so the title shows. */
@media screen and (orientation: landscape) and (max-height: 500px) {
  html[data-wl-redesign="page"] body .container-case-study-hero-image[class] { height: clamp(120px, 36svh, 170px); }
  html[data-wl-redesign="page"] body .wl-wk-wall[class] { height: clamp(130px, 38svh, 180px); }
}
