/* ==========================================================================
   Incredible Man design system 1.0 (2026-11-13)
   components.css: the components the home page uses, with their states.
   Needs tokens.css and base.css first. Tokens only: no raw colors or sizes
   except geometry that belongs to one component (a percentage, an aspect).
   Breakpoints: tablet 991px, landscape 767px, phone 479px.
   Naming: .block, .block__part, .block--variant, state as .is-* or ARIA.
   ========================================================================== */


/* --------------------------------------------------------------------------
   ICON
   Use when: an arrow, play, close or Instagram glyph sits beside or inside a
   control. Not when: the glyph is the only label (give the control text).
   One set, 24 px grid, filled, colored from the text (currentColor).
   -------------------------------------------------------------------------- */
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }


/* --------------------------------------------------------------------------
   BUTTON (primary)
   Use when: the one main action in a band (Join The Movement, Send Request).
   Not when: a secondary or repeated action; use .text-button.
   States: rest, hover (lighter yellow, arrow slides through), focus (ring),
   active (pressed down 1 px), disabled (40% and no pointer).
   -------------------------------------------------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-24);
  min-height: 2.75rem;
  padding: var(--space-24) 4.5rem var(--space-24) var(--space-24);
  background-color: var(--yellow-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--size-label);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  overflow: clip;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.button .icon {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  translate: 0 -50%;
  transition: transform var(--duration-base) var(--ease-out);
}
.button:hover { background-color: var(--yellow-300); }
.button:hover .icon { animation: arrow-through var(--duration-slow) var(--ease-out); }
.button:active { transform: translateY(1px); }
.button[disabled], .button.is-disabled { opacity: .4; pointer-events: none; }
.button--block { display: flex; width: 100%; }
@keyframes arrow-through {
  0% { transform: translateX(0); }
  49% { transform: translateX(2.5rem); }
  50% { transform: translateX(-3.5rem); }
  100% { transform: translateX(0); }
}


/* --------------------------------------------------------------------------
   TEXT BUTTON (label and arrow, no box)
   Use when: a repeated action in a list (Download Here), a secondary action,
   the subscribe submit. Not when: the band's single main action.
   States: rest, hover (arrow nudges right), focus, active, disabled.
   -------------------------------------------------------------------------- */
.text-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 2.75rem;
  color: inherit;
  font-family: var(--font-display);
  font-size: var(--size-label);
  line-height: var(--leading-normal);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.text-button .icon { transition: transform var(--duration-base) var(--ease-out); }
.text-button:hover .icon { transform: translateX(.375rem); }
.text-button:active { opacity: .7; }
.text-button--large { font-size: var(--size-label-l); line-height: var(--leading-snug); }


/* --------------------------------------------------------------------------
   ARROW BUTTON (square, carousel)
   Use when: previous and next in a carousel. Not when: moving between pages.
   States: rest (1 px frame), hover (frame fills with the text color),
   focus, disabled (24% and inert; measured).
   -------------------------------------------------------------------------- */
.arrow-button {
  display: grid;
  place-items: center;
  width: var(--header-block);
  aspect-ratio: 1;
  border: var(--rule-hair) solid var(--color-text);
  color: var(--color-text);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}
.arrow-button .icon { width: 26.66%; height: 26.66%; }
.arrow-button--prev .icon { transform: rotate(180deg); }
.arrow-button:hover { background-color: var(--color-text); color: var(--color-bg); }
.arrow-button[disabled] { opacity: .24; pointer-events: none; }
@media (max-width: 767px) {
  .arrow-button { width: 4rem; }
  .arrow-button .icon { width: 32.7%; height: 32.7%; }
}


/* --------------------------------------------------------------------------
   PLAY BUTTON (round)
   Use when: a control opens or starts a video. Not when: any other action.
   Variants: small ink (on the white teaser), large yellow (on a video).
   States: rest, hover (grows 6%), focus, active.
   -------------------------------------------------------------------------- */
.play-button {
  display: grid;
  place-items: center;
  width: var(--space-44);
  min-width: 2.75rem;
  aspect-ratio: 1;
  border-radius: var(--radius-round);
  background-color: var(--ink-900);
  color: var(--white);
  transition: transform var(--duration-base) var(--ease-out);
}
.play-button svg { height: .75rem; width: auto; margin-left: 8%; fill: currentColor; }
.play-button--large { width: var(--space-80); background-color: var(--yellow-500); color: var(--black); --color-focus: var(--white); }
.play-button--large svg { height: 1.25rem; }
.play-button:hover { transform: scale(1.06); }
.play-button:active { transform: scale(.98); }


/* --------------------------------------------------------------------------
   MEDIA TOGGLE (pause / play for a looping video)
   Use when: any video plays on its own. Always visible, never hover-only.
   Added for accessibility: the live site's looping videos had no pause.
   -------------------------------------------------------------------------- */
.media-toggle {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: var(--scrim-header);
  color: var(--white);
  --color-focus: var(--white);
}
.media-toggle svg { width: .875rem; height: .875rem; fill: currentColor; }
.media-toggle .media-toggle__play { display: none; }
.media-toggle[aria-pressed="true"] .media-toggle__pause { display: none; }
.media-toggle[aria-pressed="true"] .media-toggle__play { display: block; }
.media-toggle:hover { background-color: var(--ink-900); }


/* --------------------------------------------------------------------------
   WORDMARK (the iMAN block)
   Use when: the header logo. Yellow square block, black glyphs. Only two
   treatments: full (iMAN over INCREDIBLE MAN, 162 x 90) and short (iM in a
   90 x 90 square, after scrolling and on phones). Never recolor, never on a
   photo without its yellow block, never smaller than 44 px square.
   -------------------------------------------------------------------------- */
.wordmark {
  position: relative;
  display: block;
  width: 10.125rem;
  height: var(--header-block);
  background-color: var(--yellow-500);
  color: var(--black);
  pointer-events: auto;
  --color-focus: var(--white);
  transition: width var(--duration-slow) var(--ease-out);
}
.wordmark__part { position: absolute; overflow: clip; transition: all var(--duration-slow) var(--ease-soft); }
.wordmark__part svg { width: 100%; height: 100%; transition: transform var(--duration-slow) var(--ease-out); }
.wordmark__im { aspect-ratio: 1.27; width: 29.24%; top: 23.33%; left: 18.7%; }
.wordmark__an { aspect-ratio: 1.43; width: 32.81%; top: 23.33%; left: 47.2%; }
.wordmark__name { aspect-ratio: 12; width: 62.05%; top: 69.6%; left: 18.52%; }
.wordmark.is-short { width: var(--header-block); }
.wordmark.is-short .wordmark__im { width: 44.14%; top: 32.89%; left: 28%; }
.wordmark.is-short .wordmark__an { width: 49.56%; top: 32.89%; left: 72.14%; }
.wordmark.is-short .wordmark__an svg { transform: translateX(-100%); }
.wordmark.is-short .wordmark__name { width: 44.14%; left: 28%; }
.wordmark.is-short .wordmark__name svg { transform: translateY(100%); }
@media (max-width: 767px) {
  .wordmark, .wordmark.is-short { width: var(--header-block-phone); height: auto; aspect-ratio: 1; }
  .wordmark .wordmark__im { width: 44.14%; top: 32.89%; left: 28%; }
  .wordmark .wordmark__an, .wordmark .wordmark__name { display: none; }
}


/* --------------------------------------------------------------------------
   SITE HEADER
   Use when: every page. Fixed at desktop, scrolls away on phones.
   Desktop: wordmark left; nav, Instagram and (after scrolling) the Join
   The Movement block right. Below 992 px the live site shows the wordmark
   only; kept. Nav uses a plain list, never role=menu.
   States: top (full wordmark, Instagram shown), scrolled (.is-scrolled:
   short wordmark, gradient, Join block slides in), over a light band
   (.is-light: black text, no gradient).
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--layer-header);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  color: var(--white);
  --color-focus: var(--white);
  transition: background-color var(--duration-slow) var(--ease-out);
}
.site-header.is-scrolled { background-image: linear-gradient(var(--scrim-header), transparent); }
.site-header.is-light { color: var(--black); --color-focus: var(--black); background-image: none; }
.site-header__nav { display: flex; align-items: center; align-self: center; pointer-events: auto; }
.site-header__links { display: flex; margin: 0 1rem 0 0; padding: 0; list-style: none; }
.site-header__link {
  display: block;
  padding: 0 1rem;
  font-family: var(--font-display);
  font-size: var(--size-nav);
  line-height: var(--leading-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--duration-base) ease-in;
}
/* measured: hovering one link dims its siblings to 24% */
.site-header__links:has(.site-header__link:hover) .site-header__link:not(:hover) { opacity: .24; }
.site-header__social {
  display: flex;
  align-items: center;
  padding: var(--space-8) var(--space-30);
  border-left: var(--rule-hair) solid var(--white-a32);
  transition: opacity var(--duration-base) var(--ease-out);
}
.site-header.is-light .site-header__social { border-left-color: var(--black-a08); }
.site-header__social a { display: grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; margin: calc(-1 * var(--space-12)); color: inherit; }
.site-header__cta {
  display: none;
  align-items: center;
  height: var(--header-block);
  padding: 0 var(--space-30);
  background-color: var(--yellow-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: var(--size-nav);
  line-height: var(--leading-nav);
  letter-spacing: var(--tracking-nav);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  --color-focus: var(--white);
}
.site-header__cta:hover { background-color: var(--yellow-300); }
.site-header.is-scrolled .site-header__social { display: none; }
.site-header.is-scrolled .site-header__cta { display: flex; }
@media (max-width: 991px) {
  .site-header__nav { display: none; }
}
@media (max-width: 767px) {
  .site-header { position: absolute; padding: var(--gutter) 0 0 var(--gutter); background-image: none; }
  .site-header.is-scrolled { background-image: none; }
}


/* --------------------------------------------------------------------------
   HERO (home)
   Use when: the home page opening only. Not when: an inner page.
   Blurred landscape, the man cut out in front, the two-part yellow
   headline split left and right, one line of copy, the main action and the
   story teaser along the bottom edge.
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100dvh; overflow: clip; }
.hero__backdrop { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center; }
.hero__backdrop img { width: 158vw; max-width: none; min-height: 100%; aspect-ratio: 1.68; object-fit: cover; }
.hero__backdrop::after { content: ""; position: absolute; inset: 0; background-color: var(--scrim-32); }
.hero__inner { position: relative; height: 100dvh; min-height: 45rem; }
.hero__figure {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 2%;
  width: 63%;
  margin: 0 0 0 clamp(-10rem, 12.0482vw - 10.6506rem, 2rem);
  aspect-ratio: 1 / 1.65;
}
.hero__figure img { width: 100%; height: 100%; transform: translateY(5%); }
.hero__fade { display: none; }
.hero__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 var(--gutter);
  padding-top: 30vh;
  color: var(--color-accent);
}
.hero__line { display: block; }
.hero__title-a { position: relative; z-index: 3; width: 45%; }
.hero__title-b { position: relative; z-index: 1; width: 55%; margin-top: 1em; text-align: right; }
.hero__text {
  position: relative;
  z-index: 2;
  width: 45%;
  margin-top: -4em;
  padding: 0 var(--gutter);
  color: var(--white);
}
.hero__actions {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-12);
  height: 20vh;
  min-height: 9rem;
  max-height: 11rem;
  margin: 0 var(--gutter);
  padding-bottom: var(--space-44);
}
@media (max-width: 991px) {
  .hero__figure { width: 100%; margin-left: -10vw; }
  .hero__fade { display: block; position: absolute; inset: 0; z-index: 3; background-image: linear-gradient(transparent 22%, #0000003d 60%, #0000007a); }
  .hero__title { flex-direction: column; margin-bottom: var(--space-30); }
  .hero__title-a { width: 100%; }
  .hero__title-b { z-index: 3; width: 100%; margin-top: 0; text-align: left; }
  .hero__line { display: inline-block; }
  .hero__text { z-index: 5; width: 100%; margin-top: 0; }
  .hero__actions { z-index: 5; }
}
@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero__inner { height: auto; min-height: 0; }
  .hero__figure { width: auto; min-height: 100%; }
  .hero__title { padding-top: 25vh; }
  .hero__text { margin-bottom: var(--space-64); }
  .hero__actions { position: relative; flex-direction: column; align-items: stretch; height: auto; min-height: 0; max-height: none; }
}
@media (max-width: 479px) {
  .hero__figure { height: 100%; left: auto; margin-left: -12vw; transform: translateX(-10%); }
}


/* --------------------------------------------------------------------------
   VIDEO TEASER (white card with a looping clip and a play button)
   Use when: a short invitation to watch the story, inside the hero.
   Not when: the video itself is the content; use .video-feature.
   States: rest (6 px white frame), hover (frame drops), focus (ring on the
   card's button).
   -------------------------------------------------------------------------- */
.video-teaser {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 23rem;
  height: 100%;
  margin: 0 var(--space-6);
  outline: var(--frame-teaser) solid var(--white);
  transition: outline-width var(--duration-fast) var(--ease-out);
}
.video-teaser:hover { outline-width: 0; }
.video-teaser__media { position: relative; aspect-ratio: 1.56; height: 100%; overflow: clip; background-color: var(--ink-800); }
.video-teaser__media video, .video-teaser__media img { width: 100%; height: 100%; object-fit: cover; }
.video-teaser__media .media-toggle { right: 0; bottom: 0; width: 2rem; height: 2rem; min-width: 0; }
.video-teaser__body { display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-12) var(--space-16); }
.video-teaser__title {
  max-width: 9rem;
  font-family: var(--font-body);
  font-size: var(--size-body-l);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
.video-teaser__play-wrap { margin-left: auto; }
/* the whole card is the button's hit area */
.video-teaser__play::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.video-teaser .media-toggle { z-index: 2; }
@media (max-width: 767px) {
  .video-teaser { min-width: 0; min-height: 50px; height: auto; margin: 0; outline-width: 0; }
  .video-teaser__media { order: 1; flex: none; height: calc(2 * var(--space-24) + var(--size-label) * 1.5); }
  .video-teaser__body { flex: 1; padding: 0; }
  .video-teaser__title {
    max-width: none;
    margin-left: 1.5rem;
    padding: var(--space-24) 0;
    font-family: var(--font-display);
    font-size: var(--size-label);
    font-weight: var(--weight-regular);
    line-height: var(--leading-normal);
    text-transform: uppercase;
  }
  .video-teaser__play-wrap { position: absolute; inset: 0 0 0 auto; z-index: 2; display: grid; place-items: center; aspect-ratio: 1.56; }
}


/* --------------------------------------------------------------------------
   INTRO (heading left, copy in the right half, script quote under a rule)
   Use when: a band that explains (What Is Incredible Man, Meet Dustin).
   Not when: a list or a form leads the band.
   Variant --tight: paragraphs without a gap (as the live What Is band).
   -------------------------------------------------------------------------- */
.intro { margin: 0 var(--gutter); }
.intro__eyebrow { margin-bottom: var(--space-30); color: var(--color-text-muted); }
.intro__heading { width: var(--col-heading); }
.intro__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.75rem; /* live: 2em of the 14px body = 28px */
  padding-top: var(--space-80);
  padding-bottom: var(--space-52);
}
.intro__copy p { width: var(--col-copy); color: var(--color-text); text-wrap: auto; }
.intro--tight .intro__copy { gap: 0; padding-bottom: 0; }
@media (min-width: 992px) { .intro--tight .intro__copy { margin-bottom: -6rem; } } /* live: the quote's 9rem top margin is pulled back 6rem */
.intro__quote {
  width: var(--col-side);
  margin-top: 9rem;
  padding: var(--space-30) 0 var(--space-52);
  border-top: var(--rule-accent) solid var(--color-line-accent);
}
.intro__quote p { margin: 0; }
.intro--tight .intro__quote { padding-bottom: var(--space-80); }
@media (max-width: 991px) {
  .intro__heading, .intro__copy p, .intro__quote { width: 100%; }
  .intro__quote { margin-top: 2rem; }
}


/* --------------------------------------------------------------------------
   PHOTO COLLAGE (three overlapping photos stepping down the band)
   Use when: a set of documentary photos of Dustin closes an intro band.
   Not when: one photo will do.
   -------------------------------------------------------------------------- */
.collage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.collage img { position: relative; }
.collage__a { width: 43.75%; transform: translateY(12rem); }
.collage__b { width: 62.5%; margin-top: -28%; margin-left: 37.5%; transform: translateY(4rem); }
.collage__c { width: 31.25%; margin-top: -8%; margin-left: 25%; transform: translateY(7rem); }
@media (max-width: 991px) { .collage { margin-top: -6rem; } }
@media (max-width: 767px) {
  .collage__a { width: 83.47%; transform: translateY(10rem); }
  .collage__b { width: 94.5%; margin-left: 5.5%; transform: translateY(6rem); }
  .collage__c { width: 44.53%; margin-left: 16.53%; transform: translateY(5rem); }
}


/* --------------------------------------------------------------------------
   ROLE HEADING (words that show a photo on hover)
   Use when: a heading lists roles and each has a photo (Father, husband,
   brother, son). The photos are extra; the words read alone.
   States: rest, hover (word turns yellow, photo tilts in).
   -------------------------------------------------------------------------- */
.role-heading { display: flex; flex-wrap: wrap; column-gap: .4ch; width: var(--col-heading); }
.role-heading__item { position: relative; z-index: 1; transition: color var(--duration-base) var(--ease-out); }
.role-heading__item img {
  position: absolute;
  z-index: -1;
  top: -70%;
  left: 55%;
  width: 3em;
  max-width: none;
  opacity: 0;
  pointer-events: none;
  transition: top var(--duration-base) var(--ease-out), left var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.role-heading__item:hover { z-index: 2; color: var(--color-accent); }
.role-heading__item:hover img { opacity: 1; top: -90%; left: 60%; transform: rotate(-5deg); }
@media (max-width: 991px) { .role-heading { width: 100%; } }


/* --------------------------------------------------------------------------
   VIDEO FEATURE (titled clip, play opens the full film, caption on a rule)
   Use when: a band's story has a film. Not when: decoration only.
   The loop has a visible pause (.media-toggle) and does not autoplay under
   reduced motion; the poster shows instead.
   -------------------------------------------------------------------------- */
.video-feature { display: flex; flex-direction: column; align-items: flex-end; }
.video-feature__title { width: 50%; padding-right: var(--gutter); margin-bottom: var(--space-44); color: var(--color-text-soft); }
.video-feature__frame { position: relative; width: 62.5%; aspect-ratio: 1.61; background-color: var(--ink-800); }
.video-feature__frame video { width: 100%; height: 100%; object-fit: cover; }
.video-feature__play { position: absolute; z-index: 2; left: var(--space-44); bottom: var(--space-44); }
.video-feature__frame .media-toggle { right: var(--space-16); bottom: var(--space-16); }
.video-feature__caption {
  width: 50%;
  padding: var(--space-30) var(--gutter) 0 var(--space-20);
  border-left: var(--rule-hair) solid var(--ink-600);
  color: var(--color-text-muted);
}
@media (max-width: 991px) {
  .video-feature { padding-left: var(--gutter); }
  .video-feature__title, .video-feature__frame, .video-feature__caption { width: 100%; }
}


/* --------------------------------------------------------------------------
   PHOTO STRIP (three tall photos stepping down, wide screens only)
   Use when: opening the Seven Pillars band on desktop. Hidden on phones,
   where each pillar shows its own photo.
   -------------------------------------------------------------------------- */
.photo-strip { position: relative; height: 100vh; pointer-events: none; }
.photo-strip__photo { position: absolute; top: 0; width: 33.33%; height: 100vh; overflow: clip; } /* live: one window high, steps of 33% */
.photo-strip__photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip__photo:nth-child(1) { left: 0; z-index: 3; background-color: var(--yellow-500); }
.photo-strip__photo:nth-child(2) { left: 33.33%; z-index: 2; transform: translateY(33%); }
.photo-strip__photo:nth-child(3) { left: 66.66%; z-index: 1; transform: translateY(66%); }
@media (max-width: 767px) { .photo-strip { display: none; } }


/* --------------------------------------------------------------------------
   PILLAR LIST (numbered accordion)
   Use when: the Seven Pillars, or any short numbered set with detail.
   Not when: more than nine items or items without detail.
   Each title is a button with aria-expanded. States: closed (white), hover
   (yellow), open (yellow, scripture, source, text), focus (ring).
   Numbers: grey-500 at 5.01:1 (live ink-500 failed at 2.78:1).
   -------------------------------------------------------------------------- */
.pillars { display: flex; flex-direction: column; gap: var(--space-44); margin: 0; padding: 0; list-style: none; counter-reset: pillar; }
.pillars__item { display: flex; align-items: baseline; gap: var(--space-8); counter-increment: pillar; }
.pillars__item::before {
  content: "0" counter(pillar) ".";
  flex: none;
  width: 2.75ch;
  color: var(--color-text-number);
  font-family: var(--font-display);
  font-size: var(--size-h6);
  line-height: 1.25rem; /* live: inherits the 20px body line box */
  letter-spacing: var(--tracking-tight);
}
.pillars__body { flex: 1; }
.pillars__body h3 { margin: 0; font: inherit; }
.pillars__toggle {
  display: block;
  width: 100%;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--size-h3);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  text-align: left;
  text-wrap: balance;
  transition: color var(--duration-fast) ease;
}
.pillars__toggle:hover, .pillars__toggle[aria-expanded="true"] { color: var(--color-accent); }
.pillars__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration-fast) ease; }
.pillars__item.is-open .pillars__panel { grid-template-rows: 1fr; }
.pillars__panel-inner { overflow: hidden; }
.pillars__item:not(.is-open) .pillars__panel-inner { visibility: hidden; }
.pillars__scripture { margin-top: var(--space-44); margin-bottom: var(--space-20); }
.pillars__source { margin-bottom: var(--space-30); color: var(--color-text-muted); }
.pillars__image { display: none; width: 100%; margin-top: var(--space-80); }
@media (max-width: 767px) {
  .pillars { gap: 0; align-items: center; }
  .pillars__item {
    flex-direction: column;
    width: 100vw;
    padding: var(--space-36) 7.14%;
    border-top: var(--rule-hair) solid var(--ink-800);
    border-bottom: var(--rule-hair) solid var(--ink-800);
  }
  .pillars__body { width: 100%; }
  .pillars__image { display: block; width: 100%; aspect-ratio: 1 / 1.13; object-fit: cover; }
}


/* --------------------------------------------------------------------------
   QUOTE CAROUSEL (one testimonial at a time, arrows and dash dots)
   Use when: three or more testimonials with names. Not when: one quote;
   use .quote on its own.
   Quote: Anton in sentence case with the opening mark hung in the margin.
   Controls: arrows (buttons), dots (buttons, aria-current on the active).
   Dots: grey-450 inactive 3.64:1 on sand, black active and twice as wide.
   -------------------------------------------------------------------------- */
.quotes { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin: 0 var(--gutter); }
.quotes__label { margin-bottom: var(--space-30); color: var(--color-text-muted); }
.quotes__stage { width: 71.42%; }
.quotes__slide { padding-left: 10%; }
.quotes__slide[hidden] { display: none; }
.quote__text { margin-bottom: var(--space-80); }
.quote__text p { position: relative; }
.quote__text p::before { content: "\201C"; position: absolute; transform: translateX(-100%); }
.quote__text p::after { content: "\201D"; }
.quote__author { display: flex; align-items: center; gap: var(--space-16); width: 66.66%; min-height: var(--header-block); }
.quote__photo { width: var(--header-block); aspect-ratio: 1; object-fit: cover; }
.quotes__arrows { position: absolute; left: 0; bottom: 0; display: flex; }
.quotes__arrows .arrow-button + .arrow-button { margin-left: -1px; }
.quotes__dots { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; height: var(--header-block); }
.quotes__dot { display: grid; place-items: center; width: 2.25rem; height: 2.75rem; }
.quotes__dot::before {
  content: "";
  width: 1.5rem;
  height: 5px;
  background-color: var(--grey-450);
  transition: width var(--duration-base) ease-in-out, background-color var(--duration-base) ease-in-out;
}
.quotes__dot[aria-current="true"] { width: 3.75rem; }
.quotes__dot[aria-current="true"]::before { width: 3rem; background-color: var(--black); }
.quotes__dot:hover::before { background-color: var(--ink-600); }
@media (max-width: 767px) {
  .quotes { flex-direction: column; }
  .quotes__stage { display: flex; flex-wrap: wrap; width: 100%; }
  .quotes__slides { width: 100%; margin-bottom: var(--space-64); }
  .quotes__slide { padding-left: 0; }
  .quote__author { width: 100%; min-height: 4rem; }
  .quote__photo { width: 4rem; }
  .quotes__dots { position: static; order: 2; height: 4rem; margin-right: auto; }
  .quotes__arrows { position: static; order: 3; }
  .quotes__dot { width: 1rem; }
  .quotes__dot::before { width: .375rem; }
  .quotes__dot[aria-current="true"] { width: 1.25rem; }
  .quotes__dot[aria-current="true"]::before { width: .75rem; }
}


/* --------------------------------------------------------------------------
   RESOURCE LIST (title, one line, action; ruled rows)
   Use when: downloads and sign-ups (field guides, the Tuesday email).
   Not when: articles with dates; that list is not part of this system yet.
   States: rest, hover (the row turns dark), focus (ring on the action; the
   action's hit area covers the row).
   -------------------------------------------------------------------------- */
.resources { margin: 0 var(--gutter); padding: 0; list-style: none; }
.resources__item {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-30) 0;
  border-bottom: var(--rule-hair) solid var(--color-line);
  color: var(--color-text);
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.resources__title { flex: none; width: 35.72%; padding: 0 var(--space-30); }
.resources__note { width: 42.85%; }
.resources__action { display: flex; flex: none; justify-content: flex-end; min-width: 21.42%; padding: 0 var(--space-30); margin-left: auto; }
.resources__action .text-button::after { content: ""; position: absolute; inset: 0; }
.resources__item:hover { background-color: var(--ink-900); color: var(--white); --color-focus: var(--white); }
@media (max-width: 991px) {
  .resources__item { flex-direction: column; align-items: flex-start; }
  .resources__title { width: 100%; margin-bottom: var(--space-16); padding: 0; }
  .resources__note { width: 100%; margin-bottom: var(--space-20); }
  .resources__action { justify-content: flex-start; padding: 0; margin-left: 0; }
}


/* --------------------------------------------------------------------------
   TABS
   Use when: two to four parallel forms or panels in one band (Speaking,
   Prayer, Coaching). Not when: the content should be read in sequence.
   ARIA tabs: role tablist / tab / tabpanel, arrow keys move between tabs.
   States: rest, hover (grey underline), selected (yellow text and 3 px
   yellow underline), focus (ring).
   -------------------------------------------------------------------------- */
.tabs__list {
  display: flex;
  margin: 0 var(--gutter);
  padding-top: 6px;
  margin-top: -6px;
  overflow-x: auto;
  box-shadow: inset 0 -1px 0 0 var(--ink-600);
}
.tabs__tab {
  flex: 1;
  padding: 0 var(--space-12) var(--space-16);
  border-bottom: var(--rule-tab) solid transparent;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--size-label-l);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  transition: border-color var(--duration-fast);
}
.tabs__tab:hover { border-bottom-color: var(--ink-500); }
.tabs__tab[aria-selected="true"] { border-bottom-color: var(--color-accent); color: var(--color-accent); }
.tabs__tab:focus-visible { outline-offset: var(--focus-offset-inset); }
.tabs__panel { margin-left: var(--gutter); }
.tabs__panel[hidden] { display: none; }
@media (max-width: 767px) {
  .tabs__tab { font-size: var(--size-nav); }
  .tabs__panel { margin-right: var(--gutter); }
}


/* --------------------------------------------------------------------------
   CONTACT SPLIT (info column and form panel inside a tab)
   -------------------------------------------------------------------------- */
.contact { display: flex; justify-content: space-between; }
.contact__info { display: flex; flex-direction: column; width: 40%; margin-top: var(--space-128); padding-bottom: var(--space-64); }
.contact__info h3 { margin-bottom: var(--space-30); }
.contact__info h4 { margin-bottom: var(--space-24); color: var(--color-text-soft); }
.contact__media { width: 80%; }
.contact__media .button { display: flex; width: 100%; margin-top: var(--space-12); }
.contact__panel { width: 53.33%; margin-top: var(--space-64); padding: 6.66%; background-color: var(--color-surface); }
@media (max-width: 767px) {
  .contact { flex-direction: column; }
  .contact__info { width: 100%; }
  .contact__panel { width: 107.14%; max-width: none; margin-top: 0; }
}


/* --------------------------------------------------------------------------
   CHIPS (topic tags, not interactive)
   Use when: a short set of topics. Not when: filters; those need buttons.
   White on ink-600: 8.50:1.
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0 0 var(--space-64); padding: 0; list-style: none; }
.chips li {
  padding: var(--space-8);
  background-color: var(--color-chip-bg);
  color: var(--white);
  font-size: var(--size-small);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
}
@media (max-width: 767px) { .chips li { display: flex; } }


/* --------------------------------------------------------------------------
   FIELD (underlined input with a label that floats up)
   Use when: every form on the site. Labels sit inside the line at rest and
   move above it once the field is focused or filled; the label is a real
   <label>, never a placeholder.
   States: rest (grey-450 line, 3.83:1), focus (yellow line and ring),
   filled (label small, muted at 6.42:1), required (named in the label's
   hint), error (red line, message bound by aria-describedby), disabled
   (40%).
   Variant --large: the subscribe fields on yellow (no line of their own,
   the form draws one 4 px rule; label ink-600 at 5.43:1).
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-44); }
.form__row { display: flex; align-items: flex-start; gap: var(--space-30); }
.field { position: relative; flex: 1; border-bottom: var(--rule-hair) solid var(--color-line-strong); transition: border-color var(--duration-fast); }
.field__label {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: var(--space-4);
  color: var(--color-text);
  font-size: var(--size-field);
  font-weight: var(--weight-regular);
  line-height: var(--leading-snug);
  pointer-events: none;
  transition: top var(--duration-base) var(--ease-out), font-size var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.field__hint { color: var(--color-text-muted); }
.field__input {
  display: block;
  width: 100%;
  padding: 0 0 var(--space-20);
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: var(--size-field);
  line-height: var(--leading-snug);
  outline-offset: var(--focus-offset);
}
.field__input:focus { outline: none; }
.field__input:focus-visible { outline: var(--focus-width) solid var(--color-focus); }
input.field__input, select.field__input { box-sizing: content-box; height: 2.375rem; }
.subscribe input.field__input { height: auto; }
textarea.field__input { min-height: 6rem; padding-top: var(--space-6); resize: vertical; }
select.field__input { appearance: none; cursor: pointer; color: var(--color-text); }
select.field__input option { background-color: var(--ink-800); color: var(--white); }
.field--select::after {
  content: "";
  position: absolute;
  right: 0;
  top: .35rem;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.field:focus-within { border-bottom-color: var(--color-accent); }
.field:has(.field__input:focus) .field__label,
.field:has(.field__input:not(:placeholder-shown)) .field__label,
.field:has(select.field__input option:not([value=""]):checked) .field__label {
  top: -1.25rem;
  color: var(--color-text-muted);
  font-size: var(--size-small);
  font-weight: var(--weight-medium);
}
.field:has(select.field__input option[value=""]:checked) select { color: transparent; }
.field.is-error { border-bottom-color: var(--color-error); }
.field__error { display: block; margin-top: var(--space-8); color: var(--color-error); font-size: var(--size-small); }
.field:has(.field__input:disabled) { opacity: .4; }
.form-message { padding: var(--space-16) 0 0; font-size: var(--size-body); }
.form-message[hidden] { display: none; }
.form-message--error { color: var(--color-error); }
.form-message a { color: inherit; }
@media (max-width: 991px) { .form__row { display: contents; } }


/* --------------------------------------------------------------------------
   SUBSCRIBE (one-line sign-up on yellow)
   Use when: the Tuesday email sign-up. Not when: more than two fields.
   -------------------------------------------------------------------------- */
.subscribe {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding-bottom: var(--space-30);
  border-bottom: var(--rule-heavy) solid var(--color-line);
}
.subscribe .field { border-bottom: 0; }
.subscribe .field__label { color: var(--color-text-muted); font-size: var(--size-field-l); }
.subscribe .field__input { padding: 0; font-size: var(--size-field-l); }
.subscribe__submit { flex: none; margin-left: var(--space-24); }
@media (max-width: 767px) {
  .subscribe { flex-direction: column; align-items: stretch; gap: var(--space-24); }
  .subscribe__submit { width: 100%; margin-left: 0; }
  .subscribe__submit .text-button { display: flex; justify-content: space-between; width: 100%; }
}


/* --------------------------------------------------------------------------
   CLOSING QUOTE (script line under a short yellow rule, centered)
   Use when: one line of the founder's voice closes a page. Once per page.
   -------------------------------------------------------------------------- */
.closing-quote { display: flex; flex-direction: column; align-items: center; padding: var(--space-156) 0 var(--space-128); }
.closing-quote blockquote {
  max-width: 62rem;
  margin: 0 var(--gutter);
  padding-top: var(--space-30);
  border-top: var(--space-2) solid var(--color-line-accent);
  text-align: center;
}


/* --------------------------------------------------------------------------
   INSTAGRAM STRIP (handle, latest six posts, follow button)
   Use when: once per page, above the footer. Posts are a snapshot taken on
   the build date; the live site loads them with a third-party widget.
   States for tiles and button: rest, hover, focus.
   -------------------------------------------------------------------------- */
.ig-strip { padding: 3.5rem 1.5rem; border-top: var(--rule-heavy) solid var(--yellow-500); }
.ig-strip__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; max-width: 75rem; margin: 0 auto; text-align: center; }
.ig-strip__eyebrow {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
  font-size: var(--size-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-eyebrow);
  line-height: var(--leading-normal);
  text-transform: uppercase;
}
.ig-strip__handle {
  font-family: var(--font-display);
  font-size: var(--size-handle);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  text-decoration: none;
}
.ig-strip__handle:hover { color: var(--color-accent); }
.ig-strip__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; width: 100%; margin: 0; padding: 0; list-style: none; }
.ig-strip__grid a { display: block; transition: opacity var(--duration-fast); }
.ig-strip__grid a:hover { opacity: .8; }
.ig-strip__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.ig-strip__follow {
  display: inline-block;
  padding: .875rem 1.75rem;
  background-color: var(--yellow-500);
  color: var(--black);
  font-size: var(--size-small);
  font-weight: var(--weight-heavy);
  letter-spacing: var(--tracking-caps);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  text-decoration: none;
}
.ig-strip__follow:hover { background-color: var(--yellow-300); }
@media (max-width: 767px) { .ig-strip__grid { gap: .625rem; } }


/* --------------------------------------------------------------------------
   SITE FOOTER (on yellow: subscribe, info, nav, the giant wordmark)
   Use when: every page.
   -------------------------------------------------------------------------- */
.site-footer__subscribe-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-30) 7.14%;
  padding: var(--space-128) var(--gutter) var(--space-64);
}
.site-footer__subscribe-head h2 { width: 64%; }
.site-footer__subscribe-head p { flex: 1; }
.site-footer__form { padding: 0 var(--gutter); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 0 var(--gutter); }
.site-footer__info { width: 35.7%; padding: var(--space-80) 0 var(--space-128); }
.site-footer__info p + p { margin-top: var(--space-30); }
.site-footer__nav { display: flex; width: 28.5%; padding: var(--space-80) 0 var(--space-64); }
.site-footer__nav ul { flex: 1; margin: 0; padding: 0 var(--space-12) 0 0; list-style: none; }
.site-footer__nav a {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-4) 0;
  font-family: var(--font-display);
  font-size: var(--size-label-l);
  line-height: var(--leading-snug);
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--duration-base) ease-in;
}
.site-footer__nav:has(a:hover) a:not(:hover) { opacity: .24; }
.site-footer__mark { width: 100%; color: var(--black); }
.site-footer__mark svg { width: 100%; height: auto; fill: currentColor; }
@media (max-width: 991px) {
  .site-footer__subscribe-head h2 { width: 57.14%; }
  .site-footer__nav { width: 35.71%; }
}
@media (max-width: 767px) {
  .site-footer__subscribe-head h2, .site-footer__info, .site-footer__nav { width: 100%; }
  .site-footer__info { order: 1; }
  .site-footer__nav { padding-bottom: 0; }
}


/* --------------------------------------------------------------------------
   VIDEO DIALOG (full-screen player)
   Use when: a play button opens a film. Native <dialog>: Esc closes, focus
   returns to the button that opened it. The close button is the yellow
   square from the header.
   -------------------------------------------------------------------------- */
.video-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  background-color: var(--black);
  color: var(--white);
  --color-focus: var(--white);
}
.video-dialog::backdrop { background-color: var(--black); }
.video-dialog__close { display: grid; place-items: center; width: var(--header-block); aspect-ratio: 1; margin-left: auto; background-color: var(--yellow-500); color: var(--ink-900); }
.video-dialog__close svg { width: 44.44%; height: 44.44%; fill: currentColor; }
.video-dialog__close:hover { background-color: var(--yellow-300); }
.video-dialog__body { display: flex; align-items: center; height: calc(100vh - 11rem); padding: 0 var(--space-36); }
.video-dialog__frame { position: relative; width: 100%; max-height: calc(100vh - 11.25rem); aspect-ratio: 16 / 9; margin: 0 auto; }
.video-dialog__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) {
  .video-dialog__close { width: 4rem; }
  .video-dialog__body { padding: 0; height: calc(100vh - 8rem); }
}
@media (max-width: 479px) { .video-dialog__close { width: 3rem; } }

/* In a ruled list the whole row is the action's hit area, so the label keeps its natural height. */
.resources .text-button { min-height: 0; }
.contact__media img { width: 100%; }
.ig-strip__title { margin: 0; font: inherit; }
.subscribe { flex-wrap: wrap; }
.subscribe .form-message { flex-basis: 100%; }

/* ===== Added for the inner pages (sermons list, sermon pages, Kit test page) ===== */

/* Great Vibes: the script on sermon pull quotes, served from this site (latin subset) */
@font-face {
  font-family: "Great Vibes";
  src: url("/assets/fonts/greatvibes-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Embedded YouTube player, 16:9 */
.embed { position: relative; aspect-ratio: 16 / 9; background-color: var(--black); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Sermons list: three columns of title, date and player */
ul.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-52) var(--space-20);
  max-width: 71.25rem;
  margin: 0 auto;
  padding: var(--space-156) var(--gutter) 0;
  list-style: none;
  box-sizing: content-box;
}
.sermon-card__link { display: block; margin-bottom: var(--space-12); color: inherit; text-decoration: none; }
.sermon-card__title { margin: 0; color: var(--color-accent); font-family: var(--font-display); font-size: var(--size-h6); font-weight: var(--weight-regular); line-height: 1.2; text-transform: uppercase; }
.sermon-card__date { display: block; margin-top: var(--space-4); color: var(--color-text-muted); font-size: 1rem; font-weight: var(--weight-medium); }
.sermon-card__link:hover .sermon-card__title { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 1223px) { ul.sermon-grid { box-sizing: border-box; } }
@media (max-width: 767px) { ul.sermon-grid { grid-template-columns: 1fr; } }

/* One sermon: title, player, notes, pull quote */
.sermon { max-width: 71.25rem; margin: 0 auto; padding: var(--space-52) 0 0; }
.sermon__title { margin: 0 0 var(--space-44); color: var(--color-text); text-transform: none; text-wrap: wrap; }
.sermon__notes { margin-top: var(--space-52); font-size: var(--size-body-l); font-weight: var(--weight-medium); line-height: 1.6; }
.sermon__notes h2 { margin: var(--space-20) 0 0; font-family: var(--font-body); font-size: 2rem; font-weight: 700; line-height: 1.125; }
.sermon__notes p { margin: 0 0 .625rem; }
.sermon__quote { margin: var(--space-80) 0 0; color: var(--color-accent); font-family: "Great Vibes", var(--font-script); font-size: var(--size-quote); line-height: 1.25; }
.sermon__quote p { margin: 0; }
@media (max-width: 1223px) { .sermon { margin-inline: var(--gutter); } }
@media (max-width: 767px) { .sermon__notes, .sermon__quote { text-align: center; } }

/* Closing quote with the light bar at its left, as on the sermon pages */
.closing-quote--barred blockquote { border-left: 5px solid var(--grey-100); padding-left: var(--space-20); padding-right: var(--space-20); }

/* Kit test form (Kit.com test page only): white boxed fields and a yellow button */
.kit-form { display: flex; flex-wrap: wrap; gap: .625rem; padding: var(--space-30) .625rem 0; }
.kit-form input { width: 17rem; max-width: 100%; height: 2.875rem; padding: 0 .75rem; border: 1px solid #e3e3e3; border-radius: 4px; background-color: var(--white); color: var(--black); font: 400 .875rem/1.4 Arial, Helvetica, sans-serif; }
.kit-form input::placeholder { color: #333; opacity: 1; }
.kit-form button { height: 2.875rem; padding: 0 1.75rem; border: 0; border-radius: 4px; background-color: var(--yellow-300); color: var(--black); font: 700 .875rem/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.kit-form button:hover { background-color: var(--white); }
.kit-form .form-message { flex-basis: 100%; }
@media (max-width: 767px) { .kit-form input[name="fields[first_name]"] { width: 100%; } .kit-form input[type="email"] { flex: 1; width: auto; } }
