/* Home (index.html) — page-only styles. Tokens and components come from cfg.css.
   R-H1 hero video, R-H2 fold-up, R-H3 intro, R-H4 endorsements, R-H5 who we are,
   R-H6 what we do, R-H7 collaborators.
   Round 2: R2-G1 cream/charcoal alternation (intro + endorsements charcoal, Who We Are cream,
   What We Do charcoal, Collaborators cream, footer charcoal), R2-G2 tighter rhythm,
   R2-G3 no orange fills or orange rules against charcoal.
   Round 4 (Tyler 9/25): round 2 is the base. Changes only: R4-C cream grounds are now the neutral light grey
   (.section--light, #F2F1EF) and no tan values remain; R4-1/R4-2 both strips scroll continuously at ~50px/s with no
   buttons (hover, focus or tap pauses); collaborators use the rebuilt colour files at one height, greyscale at rest. */

/* ---------- R-H1 hero: full-bleed video, no text ---------- */
.home-hero {
  position: sticky; top: 80px; z-index: 0;
  height: calc(100vh - 80px); height: calc(100svh - 80px);
  min-height: 420px; overflow: hidden; background: #1C1817;
}
.home-hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform-origin: 50% 40%;
  transform: scale(calc(1 + var(--fold, 0) * .06));
  filter: brightness(calc(1 - var(--fold, 0) * .45));
  will-change: transform;
}
@media (max-width: 760px) {
  .home-hero { height: 56vh; height: 56svh; min-height: 300px; }
}

/* ---------- R-H2 fold-up: content panel rises over the stuck hero ---------- */
.home-fold {
  position: relative; z-index: 1;
  background: var(--bg);
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -28px 60px rgba(0, 0, 0, .45);
  margin-top: -34px;             /* the rounded lip overlaps the video slightly */
}
.home-fold::before {             /* thin light highlight on the lip */
  content: ""; position: absolute; left: 34px; right: 34px; top: 0; height: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, rgba(242, 241, 239, 0), rgba(242, 241, 239, .28), rgba(242, 241, 239, 0));
}
@media (max-width: 760px) {
  .home-fold { border-radius: 24px 24px 0 0; margin-top: -24px; }
}

/* ---------- R-H3 intro ---------- */
.home-intro { padding-top: clamp(64px, 7vw, 108px); padding-bottom: clamp(28px, 3vw, 44px); border-radius: inherit; }
.home-intro.glow::before { border-radius: inherit;
  background: radial-gradient(55% 65% at 50% 45%, rgba(240, 96, 58, .09), rgba(35, 30, 29, 0) 72%); }
.home-intro .eyebrow--ruled { flex-wrap: nowrap; }
.home-intro .display { font-size: clamp(42px, 5.2vw, 80px); margin: 0 auto; }
.home-intro .display .hl { display: block; }
.home-intro__sub { margin: 24px auto 32px; max-width: 58ch; color: var(--text); }
@media (max-width: 640px) {
  .home-intro .eyebrow--ruled { font-size: 11.5px; letter-spacing: .18em; gap: 12px; }
  .home-intro .eyebrow--ruled::before, .home-intro .eyebrow--ruled::after { display: none; }
}

/* ---------- R4-1 / R4-2 strip pause (WCAG 2.2.2), no visible control ----------
   Hover and keyboard focus pause via cfg.css; a tap or click toggles .is-paused (p-home.js);
   .is-waiting holds the strip on its first card until it scrolls into view. */
.marquee.is-paused .marquee__track, .marquee.is-waiting .marquee__track { animation-play-state: paused; }

/* ---------- R-H4 endorsements (charcoal) ---------- */
.home-endorse { padding: clamp(8px, 1.5vw, 20px) 0 clamp(36px, 4vw, 56px); }
.marquee--endorse { padding: 14px 0 18px; }
.marquee--endorse .marquee__track { gap: 0; }
.marquee--endorse .endorse { margin-right: clamp(16px, 1.6vw, 24px); }
.endorse {
  position: relative; flex: none; width: 292px; height: 384px; list-style: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 26px 26px; border-radius: var(--radius);
  background: #2B2321;
  border: 1px solid rgba(242, 241, 239, .09);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .26);
  outline-offset: 4px; cursor: default;
  transition: border-color .25s var(--ease);
}
.endorse:hover { border-color: rgba(242, 241, 239, .22); }
.endorse__photo {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover; flex: none;
  border: 3px solid var(--cream); box-shadow: 0 12px 26px rgba(0, 0, 0, .38);
}
.endorse__name { margin-top: 20px; font: 700 19px/1.2 var(--body); color: var(--cream); }
.endorse__title { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.endorse__teaser {
  margin-top: 14px; font-size: 15px; line-height: 1.55; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.endorse__teaser::before { content: "\201C"; color: var(--accent); font-weight: 700; margin-right: 2px; }
.endorse__full {
  position: absolute; inset: 0; margin: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; justify-content: safe center; gap: 14px;
  padding: 24px; border-radius: inherit; overflow-y: auto; text-align: left;
  background: #332A27;
  border: 1px solid rgba(242, 241, 239, .3);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}
.endorse__full p { font-size: 14px; line-height: 1.6; color: var(--cream); }
/* R7: the two longest quotes are set a touch tighter so they fit the card; enlarged text still scrolls, on a quiet themed bar */
.endorse__full--long { gap: 10px; padding: 20px 22px; }
.endorse__full--long p { font-size: 13px; line-height: 1.5; }
.endorse__full { scrollbar-width: thin; scrollbar-color: rgba(242, 241, 239, .28) transparent; }
.endorse__full::-webkit-scrollbar { width: 6px; }
.endorse__full::-webkit-scrollbar-track { background: transparent; }
.endorse__full::-webkit-scrollbar-thumb { background: rgba(242, 241, 239, .28); border-radius: 3px; }
.endorse__full::-webkit-scrollbar-button { display: none; height: 0; }
.endorse__full p::before { content: "\201C"; display: block; font: 400 44px/.6 var(--display); color: var(--accent); margin-bottom: 4px; height: 18px; }
.endorse__full footer { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.endorse__full footer span { display: block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.endorse:hover .endorse__full, .endorse:focus .endorse__full, .endorse:focus-within .endorse__full {
  opacity: 1; visibility: visible; transform: none;
}
@media (max-width: 640px) {
  .endorse { width: 268px; height: 380px; padding: 28px 22px 24px; }
  .endorse__full { padding: 18px 18px; gap: 10px; }
}

/* ---------- R-H5 who we are (light grey) ---------- */
.home-who { overflow: hidden; }
.home-who__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.home-who .display .hl, .home-what .display .hl { display: block; }
.home-who .lead { margin: 22px 0 30px; max-width: 46ch; }
.home-who__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; justify-self: center; }
.home-who__art::before { content: ""; position: absolute; inset: -8%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(196, 43, 24, .10), rgba(196, 43, 24, .03) 55%, rgba(242, 241, 239, 0)); }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.orbit__ring { fill: none; stroke: rgba(196, 43, 24, .38); stroke-width: 1.2; }
.orbit__ring--outer { stroke: rgba(35, 31, 31, .14); }
.orbit__ring--dash { stroke: rgba(35, 31, 31, .3); stroke-dasharray: 2 7; stroke-linecap: round; }
.orbit__ring--inner { stroke: rgba(196, 43, 24, .26); }
.orbit__spoke { stroke: rgba(196, 43, 24, .5); stroke-width: 1.2; }
.orbit__dot { fill: #C42B18; }
.orbit__dot--sm { fill: #D9582E; }
.orbit__dot--hot { fill: #C42B18; }
.orbit__dot--muted { fill: rgba(35, 31, 31, .3); }
.orbit__spin { transform-origin: 300px 300px; transform-box: view-box; }
.orbit__spin--slow { animation: orbit-spin 90s linear infinite; }
.orbit__spin--rev { animation: orbit-spin 140s linear infinite reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.home-who__heart { position: absolute; z-index: 2; left: 50%; top: 50%; width: 46%; height: auto;
  transform: translate(-50%, -48%); filter: drop-shadow(0 14px 26px rgba(150, 40, 20, .22)); }
@media (max-width: 900px) {
  .home-who__grid { grid-template-columns: 1fr; }
  .home-who__art { max-width: 240px; width: 64%; margin-top: 0; }
}

/* ---------- R-H6 what we do (charcoal) ---------- */
.home-what__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.home-what__intro { margin-top: 18px; max-width: 52ch; text-align: left; color: var(--text); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.55; }
.home-what__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.what-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(26px, 2.6vw, 36px); border-radius: var(--radius);
  background: #2A2321; border: 1px solid rgba(242, 241, 239, .1);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.what-card::before { content: ""; position: absolute; left: clamp(26px, 2.6vw, 36px); top: 0; width: 40px; height: 2px; background: var(--cream); opacity: .7; }
.what-card:hover, .what-card:focus-within { transform: translateY(-3px); border-color: rgba(242, 241, 239, .26); background: #2E2624; }
.what-card__label { font: 700 11.5px/1.4 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.what-card__title { margin: 14px 0 12px; font: 400 clamp(28px, 2.4vw, 36px)/1.02 var(--display); color: var(--cream); text-transform: uppercase; }
.what-card__body { color: var(--text); opacity: .92; }
.what-card__link { margin-top: auto; padding-top: 24px; min-height: 44px; }
.what-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card is the target */
@media (max-width: 900px) {
  .home-what__cards { grid-template-columns: 1fr; }
}

/* ---------- R-H7 / R4-2 collaborators (light grey): one scrolling row ----------
   Round-3 rebuilt colour files at one height (56px), greyscale at rest, brand colour on hover and focus.
   No tile or box behind the logos; they sit on the section ground. */
.home-collab { padding-bottom: clamp(36px, 4vw, 60px); }
.home-collab h2.eyebrow { margin-bottom: clamp(20px, 2.5vw, 32px); }
.marquee--logos { padding: 4px 0; }
.marquee--logos .marquee__track { gap: 0; align-items: center; list-style: none; margin: 0; padding: 0; }
.marquee--logos li { flex: none; list-style: none; height: 96px; display: flex; align-items: center; margin-right: clamp(44px, 4.4vw, 64px); }   /* margin, not gap: keeps the -50% loop seamless */
.logo { display: flex; align-items: center; border-radius: 4px; }
/* R5-1 (Tyler 9/27: "crisp and high resolution and very visible"): full colour at rest, 64px, from the -hd files
   (up to 3x display height). No greyscale, no dimming. */
.logo img { display: block; height: 64px; width: auto; max-width: 220px; object-fit: contain; transition: transform .25s var(--ease); }
.logo:hover img, .logo:focus-visible img { transform: scale(1.04); }
.logo:focus-visible { outline-offset: 8px; }
@media (max-width: 640px) {
  .marquee--logos li { height: 80px; margin-right: 40px; }
  .logo img { height: 56px; max-width: 180px; }
}

.marquee__track { margin: 0; padding: 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-hero__video { transform: none; filter: none; }
  .marquee__track > [aria-hidden="true"] { display: none; }
  .marquee--endorse .marquee__track { gap: 22px; padding: 0 var(--gutter); }
  .marquee--logos .marquee__track { gap: 28px 48px; padding: 0 var(--gutter); }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .orbit__spin { animation: none; }
}

/* ---------- R4-1 touch: a tap leaves :hover stuck on touch screens, so hover-pause applies only where hover exists;
   the tap toggle (.is-paused) and keyboard focus still pause ---------- */
@media (hover: none) {
  .marquee:hover:not(.is-paused):not(.is-waiting):not(:focus-within) .marquee__track { animation-play-state: running; }
}

/* Round 4: the endorsements strip starts at its true beginning. Amanda Jordan's card sits on the content edge,
   in line with the heading, with nothing to her left; the edge fade stays inside that left margin. */
.marquee--endorse {
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  padding-left: var(--edge);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--edge) - 4px), #000 calc(100% - 64px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 calc(var(--edge) - 4px), #000 calc(100% - 64px), transparent 100%);
}
