/**
 * Content Wall.
 *
 * Inherits the theme's tokens from theme.css (--ink, --accent-dark, --radius,
 * --container and so on). Nothing is redefined here that already exists there.
 */

/* ---------------------------------------------------------------
 * Page hero
 * ------------------------------------------------------------ */
.cw-page-hero {
  padding: clamp(120px, 13vw, 190px) 0 clamp(44px, 5vw, 70px);
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--white) 100%);
}
/* Banner hero.
   The channel artwork carries its own headline, so it is shown rather than
   written over. Padding-top only clears the fixed header; the banner then runs
   edge to edge and the page title sits below it. */
.cw-page-hero--banner {
  padding: 72px 0 clamp(34px, 4.5vw, 56px);
  background: linear-gradient(180deg, var(--paper-alt) 0%, var(--white) 100%);
}
@media (min-width: 861px) {
  .cw-page-hero--banner { padding-top: 88px; }
}
/* Held to the container width and rounded, so it reads as a channel header
   rather than a black slab bleeding off both edges of the page. */
/* Full bleed. The strip is drawn edge to edge, so corners and a container
   width fought the artwork rather than framing it. */
.cw-page-hero__banner {
  width: 100%;
  margin: 0 0 clamp(26px, 3.5vw, 42px);
  overflow: hidden;
  background: var(--night);
}
/* position: static matters. The photo variant above sets position: absolute on
   this same class name, and inheriting it is what broke the layout. */
.cw-page-hero__banner .cw-page-hero__img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
}
/* No crop at any width. The artwork is already trimmed to a 2048x360 strip,
   so it is shown exactly as drawn: forcing a height here would make the
   browser zoom in and cut the wordmark off at the sides. */
/* Top aligned, not bottom. The right column runs two paragraphs and a pair of
   buttons, so bottom alignment dropped the heading to the floor and opened a
   hole above it. Only visible on desktop: the grid is one column under 860px,
   which is why it read fine on a phone. */
.cw-page-hero--banner .cw-page-hero__inner { align-items: start; }
.cw-page-hero--banner h1 { margin-top: -0.12em; }

/* Retained: the scrimmed photo variant, in case the banner is swapped out. */
.cw-page-hero--image {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 58vh;
  overflow: hidden;
  padding: clamp(150px, 16vw, 210px) 0 clamp(40px, 5vw, 66px);
  color: var(--white);
  background: var(--night);
}
/* Scoped to the photo variant. Unscoped, this matched the banner image too and
   pulled it out of flow, which collapsed its container and left the heading
   rendering underneath the artwork. */
.cw-page-hero--image .cw-page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.cw-page-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.32) 54%, rgba(0, 0, 0, 0.12)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0.58));
}
.cw-page-hero--image .cw-page-hero__inner { position: relative; z-index: 1; }
.cw-page-hero--image .eyebrow { color: var(--accent); }
.cw-page-hero--image h1 { color: var(--white); }
.cw-page-hero--image .cw-page-hero__copy p { color: rgba(255, 255, 255, 0.86); }

.cw-page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}
.cw-page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem) !important;
}
.cw-page-hero__copy p {
  margin: 0 0 22px;
  color: #2f3742;
  font-size: clamp(1.02rem, 1.2vw, 1.13rem);
  line-height: 1.68;
}
.cw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: center;
}
.cw-actions .button--ig {
  color: var(--white);
  background: linear-gradient(100deg, #7a3ec4 0%, #d43a7a 52%, #f2a03d 100%);
}
/* YouTube red. Nudged off pure #FF0000, which only reaches 4.0:1 against white
   button text; this label is 0.94rem so it does not qualify for the relaxed
   large-text threshold. #e60000 reads as the same red and clears AA at 4.8:1. */
.cw-actions .button--yt {
  color: var(--white);
  background: #e60000;
}
.cw-actions .button--yt:hover { background: #cc0000; }

/* The teal on this page is the theme's own --accent (#81d8d0), used on the play
   button hover state, and --accent-dark (#1d7a72) wherever teal has to carry
   text and needs the contrast. Neither is redefined here. */
@media (max-width: 860px) {
  .cw-page-hero__inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------------------------------------------------------------
 * Sections
 * ------------------------------------------------------------ */
.cw-section { padding: clamp(48px, 6vw, 84px) 0; background: var(--white); }
.cw-section--ig { background: var(--paper); }
.cw-section .section-heading { margin-bottom: clamp(24px, 3vw, 40px); }
.cw-section h2 { font-size: clamp(1.9rem, 3vw, 2.8rem) !important; }

/* ---------------------------------------------------------------
 * Video grid
 * ------------------------------------------------------------ */
.cw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.cw-grid--strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .cw-grid--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

.cw-card { display: flex; flex-direction: column; gap: 12px; }

.cw-card__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 14px;
  background: #0d1013;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.cw-card__media:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cw-card__media:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 3px; }

.cw-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease, opacity 220ms ease;
}
.cw-card__media:hover .cw-card__poster { transform: scale(1.035); }
/* hqdefault comes back 16:9 with pillar bars, so crop harder to hide them. */
.cw-card__poster.is-fallback { object-fit: cover; transform: scale(1.42); }
.cw-card__media:hover .cw-card__poster.is-fallback { transform: scale(1.46); }

.cw-card__play {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 74px;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 12px 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  color: var(--white);
  pointer-events: none;
}
.cw-card__play svg {
  display: block;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: background 200ms ease, transform 200ms ease;
}
.cw-card__media:hover .cw-card__play svg { background: var(--accent); color: var(--night); transform: scale(1.06); }

.cw-card__media--playing { cursor: default; box-shadow: var(--shadow); }
.cw-card__media--playing iframe { display: block; width: 100%; height: 100%; border: 0; }

.cw-card__body { display: grid; gap: 8px; }
.cw-card__title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 0.97rem !important;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.01em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
/* Instagram gradient, trimmed to the half of it that is actually legible.
   Their full sweep ends in amber and yellow, which measure 1.85:1 and 1.33:1
   as text on white. Blue through purple to magenta all clear AA:
   #405DE6 5.35, #833AB4 6.50, #C13584 5.11. The plain colour below is the
   fallback for browsers without background-clip, where transparent text
   would otherwise render as nothing at all. */
.cw-card__ig {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #833ab4;
  font-size: 0.8rem;
  font-weight: 700;
}
.cw-card__ig svg { flex: 0 0 auto; color: #c13584; }
.cw-card__ig:hover { text-decoration: underline; text-decoration-color: #c13584; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cw-card__ig span {
    background-image: linear-gradient(95deg, #405de6 0%, #833ab4 55%, #c13584 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ---------------------------------------------------------------
 * Instagram embed strip
 * ------------------------------------------------------------ */
.cw-ig-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
  align-items: start;
}
.cw-ig { position: relative; min-height: 520px; border-radius: 14px; background: var(--white); box-shadow: var(--soft-shadow); }
.cw-ig .instagram-media {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}
.cw-ig iframe { border-radius: 14px !important; }

.cw-ig__placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}
.cw-ig.is-loaded .cw-ig__placeholder { display: none; }
.cw-ig__spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(16, 20, 24, 0.12);
  border-top-color: var(--accent-dark);
  border-radius: 999px;
  animation: cw-spin 900ms linear infinite;
}
@keyframes cw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cw-ig__spinner { animation: none; }
  .cw-card__media, .cw-card__poster { transition: none; }
}
@media (max-width: 700px) {
  .cw-ig-strip { grid-template-columns: 1fr; }
  .cw-ig { min-height: 480px; }
}

/* ---------------------------------------------------------------
 * Homepage band
 * ------------------------------------------------------------ */
/* White, not paper. The band now sits directly above .post-grid-section, which
   is already var(--paper); two paper sections touching read as one long grey
   slab with no edge between them. White keeps the alternation going:
   explore-feature, band, guides, trust band. */
.meet-band { padding: clamp(60px, 7vw, 104px) 0; background: var(--white); }
.meet-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.92fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 52px);
}
.meet-band__lead h2 { font-size: clamp(2rem, 3.1vw, 3.05rem) !important; }
.meet-band__body > p { margin: 0 0 18px; color: #2f3742; font-size: clamp(1.04rem, 1.25vw, 1.15rem); line-height: 1.7; }
.meet-band__actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 24px; }
@media (max-width: 860px) {
  .meet-band__inner { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
 * Guide capture
 *
 * A white card on the grey band so the conversion point is the one
 * object on the page that looks liftable. Deliberately not dark: the
 * footer CTA directly below is already near-black, and two dark blocks
 * in a row flatten each other.
 * ------------------------------------------------------------ */
.cw-section--capture { padding: clamp(48px, 6vw, 84px) 0; background: var(--paper); }
/* Brand teal, used the way it can actually be used.
   #81D8D0 as text on white is 1.66:1, which is unreadable and well under the
   4.5 minimum, so it can never carry small type here. As a FILL with the ink
   colour on top it is 11.16:1, so that is where the real brand colour lives:
   the buttons, the labels and the top edge of the card. Link text stays on
   --accent-dark (#1d7a72, 5.15:1), which is the theme's own text-safe teal. */
.button--teal { color: var(--ink); background: var(--accent); }
.button--teal:hover { background: #6ccec5; }
.button--teal:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.capture .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.capture {
  border-top: 5px solid var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(26px, 3.5vw, 52px);
  /* Centred, not top aligned. With the paragraph gone the two columns are
     close in height, and top alignment left the form hanging in whitespace. */
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
/* Heading only now, so nothing below it needs clearing. */
.capture__copy h2 { margin-bottom: 0; font-size: clamp(1.55rem, 2.2vw, 2.05rem) !important; }
.capture__copy p { margin: 0; color: #2f3742; }

/* These two are toggled with the hidden attribute, and a class rule that sets
   display beats the browser default of [hidden] { display: none }. Without
   this, the success panel renders on page load underneath the empty form.
   Any element here that is hidden in JS needs a matching [hidden] rule. */
.capture__form[hidden],
.capture__done[hidden],
.capture__error[hidden] { display: none !important; }

.capture__cover {
  margin: 0 0 clamp(16px, 2.2vw, 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
}
.capture__cover img { width: 100%; height: auto; }

.capture__form { display: grid; gap: 14px; }
.capture__field { display: grid; gap: 6px; }
.capture__field label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.01em;
}
.capture__field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(16, 20, 24, 0.18);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px minimum, or iOS zooms the page on focus. */
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.capture__field input:focus {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(129, 216, 208, 0.45);
  outline: none;
}

/* Honeypot. Off-screen rather than display:none, which some bots skip. */
.capture__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.capture__submit { width: 100%; margin-top: 4px; }
.capture__submit[disabled] { opacity: 0.65; cursor: progress; }
.capture__error { margin: 0; color: #b3261e; font-size: 0.85rem; font-weight: 650; }
.capture__consent { margin: 2px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }

.capture__done { display: grid; gap: 12px; justify-items: start; }
.capture__done h3 { margin: 0; }
.capture__done p { margin: 0; }
.capture__download { width: 100%; margin-top: 4px; }
.capture__reply { font-size: 0.85rem; }

/* Required disclosure, so it stays. Kept deliberately quiet: small, grey, and
   below a hairline, so it reads as a footnote rather than as copy. */
.capture__legal {
  grid-column: 1 / -1;
  margin: clamp(16px, 2vw, 24px) 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #8b939c;
  font-size: 0.64rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .capture { grid-template-columns: 1fr; }
}
