/* ============================================================
   BRICK × BRICK — landing page
   Built to the official brand guidelines (MAN_BRAND-BOOK):
   black-dominant · brown liberally · brick-red sparingly ·
   type always black/white · Chivo Mono Black ALL-CAPS heads ·
   Chivo Light body · chamfered "brick" panels.
   ============================================================ */

/* BXB Regular — the custom display font for the BRICK BY BRICK lockup */
@font-face {
  font-family: "BXBRegular";
  src: url("assets/fonts/Brickbybrick-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* brand palette */
  --brown:   #a07251;
  --brown-d: #835a3e;
  --red:     #b8574e;
  --red-d:   #9e453d;
  --black:   #000000;
  --white:   #ffffff;

  /* near-black surfaces for depth on black sections */
  --ink:    #000000;
  --ink-1:  #0c0b0a;
  --ink-2:  #141210;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --notch: 16px;           /* chamfer size on panels */
  --notch-sm: 9px;

  --mono: "Chivo Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Chivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* BXB Regular display face for large headlines; Chivo Mono Black is the fallback */
  --display: "BXBRegular", "Chivo Mono", ui-monospace, monospace;

  /* per-section theming (set by .sec-* classes) */
  --fg: #fff;
  --muted: rgba(255,255,255,.66);
  --card: var(--brown);
  --card-fg: #000;
  --card-muted: rgba(0,0,0,.7);
  --line: rgba(255,255,255,.16);
  --accent: var(--red);
}

/* ------------------ reset / base ------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;                /* Chivo Light body */
  color: var(--white);
  background: var(--black);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }

/* headlines — Chivo Mono Black, ALL CAPS, tight */
h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hide-mobile { display: none; }
@media (min-width: 760px) { .hide-mobile { display: inline; } }

/* ------------------ chamfered brick panel ------------------ */
.notch {
  clip-path: polygon(
    var(--notch) 0, 100% 0,
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%,
    0 100%, 0 var(--notch)
  );
}
.notch-sm {
  clip-path: polygon(
    var(--notch-sm) 0, 100% 0,
    100% calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) 100%,
    0 100%, 0 var(--notch-sm)
  );
}

/* ------------------ section theming ------------------ */
.sec-black {
  background: var(--black);
  --fg: #fff; --muted: rgba(255,255,255,.9);
  --card: var(--brown); --card-fg: #000; --card-muted: rgba(0,0,0,.72);
  --line: rgba(255,255,255,.15); --accent: var(--red);
}
.sec-brown {
  background: var(--brown);
  --fg: #000; --muted: rgba(0,0,0,.72);
  --card: #000; --card-fg: #fff; --card-muted: rgba(255,255,255,.7);
  --line: rgba(0,0,0,.28); --accent: #000;
}
.sec-red {
  background: var(--red);
  --fg: #fff; --muted: rgba(255,255,255,.86);
  --card: #000; --card-fg: #fff; --card-muted: rgba(255,255,255,.7);
  --line: rgba(255,255,255,.3); --accent: #fff;
}
/* immersive photo-background section (dark theme, like sec-black) */
.sec-photo {
  background: #000;
  isolation: isolate;   /* establish a stacking context so the -2 bg layer shows above the black */
  --fg: #fff; --muted: rgba(255,255,255,.92);
  --card: var(--brown); --card-fg: #000; --card-muted: rgba(0,0,0,.72);
  --line: rgba(255,255,255,.22); --accent: var(--red);
}
.sec-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.sec-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,var(--tint, .6)); }  /* flat tint, no gradient */
#programming { --tint: .78; }  /* heavier tint behind the program list */
#insight { --card: #000; --card-fg: #fff; --card-muted: rgba(255,255,255,.85); }  /* black stat cards, white text */

.section { padding-block: clamp(4rem, 9vw, 8.5rem); color: var(--fg); position: relative; overflow: hidden; }

/* ------------------ mascot accents ------------------ */
.sec-accent {
  position: absolute; z-index: 0; pointer-events: none;
  width: clamp(70px, 11vw, 150px); height: auto; opacity: .92;
  animation: bob 5.5s ease-in-out infinite;
}
/* staggered per section — varied durations/delays so none move in unison */
#problem .sec-accent     { animation-duration: 4.8s; animation-delay: -0.6s; }
#gap .sec-accent         { animation-duration: 6.1s; animation-delay: -2.2s; }
#inside .sec-accent      { animation-duration: 5.3s; animation-delay: -3.5s; }
#programming .sec-accent { animation-duration: 4.5s; animation-delay: -1.4s; }
#support .sec-accent     { animation-duration: 6.4s; animation-delay: -2.9s; }
#cycle .sec-accent       { animation-duration: 5.8s; animation-delay: -0.9s; }
#cities .sec-accent      { animation-duration: 4.9s; animation-delay: -3.1s; }
#numbers .sec-accent     { animation-duration: 5.6s; animation-delay: -1.7s; }
.sec-accent--tr { top: clamp(1.2rem, 4vw, 3rem); right: clamp(1rem, 4vw, 4rem); }
.sec-accent--br { bottom: 0; right: clamp(1rem, 4vw, 4rem); }
.sec-accent--bl { bottom: 0; left: clamp(1rem, 4vw, 4rem); }
.sec-accent--tl { top: clamp(1.2rem, 4vw, 3rem); left: clamp(1rem, 4vw, 4rem); }
.section .wrap, .band .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .sec-accent { width: 60px; opacity: .9; }
  .sec-accent--tr, .sec-accent--tl { top: .75rem; }   /* keep visible, tucked into the top corner */
}

/* hairline rule between two stacked black sections */
.section + .section.sec-black { border-top: 1px solid rgba(255,255,255,.08); }

/* ------------------ eyebrow / lead / titles ------------------ */
.eyebrow {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1;
  margin: 0 0 1.4rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
/* small BXB icon as the eyebrow marker (replaces the old dash) */
.eyebrow__mark { width: 1.15em; height: auto; display: inline-block; transform: translateY(1px); }
/* eyebrow must contrast with the headline below it:
   on black sections the headline is white, so the eyebrow stays red (--accent);
   on brown sections the headline is black, so the eyebrow goes white. */
.sec-brown .eyebrow { color: #fff; }

.section__title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.6vw, 3.8rem);
  letter-spacing: 0.005em;
  max-width: 20ch;
  margin-bottom: 1.3rem;
}
.section__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 300;
  max-width: 58ch;
  color: var(--muted);
  margin-bottom: 3rem;
}

/* ------------------ buttons ------------------ */
.btn {
  --notch: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.86rem;
  padding: 1em 1.7em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease;
  clip-path: polygon(
    var(--notch) 0, 100% 0,
    100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%,
    0 100%, 0 var(--notch)
  );
}
.btn--lg { padding: 1.15em 2em; font-size: 0.95rem; }
.btn--solid { background: var(--brown); color: #000; }
.btn--solid:hover { background: var(--white); transform: translate(-1px,-1px); }
.btn--red { background: var(--red); color: #000; }   /* black on red */
.btn--red:hover { background: var(--white); color: #000; transform: translate(-1px,-1px); }
/* ghost keeps a square outline (no clip) so the border is visible */
.btn--ghost {
  background: transparent; color: var(--fg);
  border-color: currentColor; clip-path: none;
  opacity: .85;
}
.btn--ghost:hover { background: var(--fg); color: var(--black); opacity: 1; }
.sec-brown .btn--ghost:hover, .hero .btn--ghost:hover { color: var(--black); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-color: rgba(160,114,81,.45); background: rgba(0,0,0,.9); }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0.4rem var(--pad);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 50px; width: auto; display: block; }
.nav__links {
  display: none; margin-left: auto; gap: 1.7rem;
  font-family: var(--mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: .08em; font-size: 0.74rem;
}
.nav__links a { color: #fff; transition: color .15s; }
.nav__links a:hover { color: var(--brown); }
.nav__cta { display: none; }
.nav__links-cta { color: var(--brown); }   /* CTA accent inside the mobile menu */

.nav__burger {
  margin-left: auto; display: inline-flex; flex-direction: column;
  justify-content: center; gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 10px;
}
.nav__burger span { height: 2.5px; width: 100%; background: #fff; transition: transform .25s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__links.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #000; padding: 1.4rem var(--pad) 1.8rem; gap: 1.2rem;
  border-bottom: 1px solid rgba(160,114,81,.45); font-size: 1rem;
}
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .nav__links-cta { display: none; }   /* desktop uses the separate button */
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; background: #000; color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #000 url("assets/renders/floor.jpg") center/cover no-repeat;
}
/* flat dark tint for legibility (a solid layer, not a gradient) */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,.66);
}
/* large BXB icon watermark — flat, single color */
.hero__mark {
  position: absolute; right: clamp(-30px, -2vw, 0px); top: 12%;
  width: clamp(180px, 32vw, 460px); height: auto; z-index: -1;
  opacity: 0.10; pointer-events: none;
}
.hero__inner {
  max-width: var(--maxw); margin-inline: auto; position: relative;
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) clamp(8rem, 16vw, 13rem);
}
.hero .eyebrow { color: var(--red); }
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.7rem, 8.8vw, 6.6rem);
  letter-spacing: 0.005em;
  line-height: 0.92;
  max-width: 15ch;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--brown); }
.hero__sub {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  font-weight: 300;
  max-width: 48ch;
  color: rgba(255,255,255,.92);
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero__mascots {
  position: absolute; left: 0; right: 0; bottom: -2px;
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(1rem, 6vw, 5rem); pointer-events: none; padding-inline: var(--pad);
}
.hero__mascots .mascot {
  width: clamp(50px, 9vw, 112px); height: auto; opacity: .92;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.5));
  animation: bob 5s ease-in-out infinite; transform-origin: bottom center;
}
/* staggered: different durations + delays so they never sync up
   (selector must match .hero__mascots .mascot specificity to win over its shorthand) */
.hero__mascots .mascot--frog  { animation-duration: 4.6s; animation-delay: -0.4s; }
.hero__mascots .mascot--bird  { animation-duration: 5.7s; animation-delay: -1.9s; }
.hero__mascots .mascot--crab  { animation-duration: 5.1s; animation-delay: -3.2s; }
.hero__mascots .mascot--alien { animation-duration: 6.3s; animation-delay: -2.3s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@media (max-width: 620px) {
  /* keep all four — just shrink them so the row fits the phone */
  .hero__mascots { gap: clamp(.4rem, 2.5vw, 1rem); }
  .hero__mascots .mascot { width: clamp(46px, 16vw, 70px); }
}

/* ============================================================
   TAGLINE BANDS (poster voice — brick-red, used sparingly)
   ============================================================ */
.tagband {
  background: var(--red); color: #000;   /* black on red — per brand color-usage rules */
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
  overflow: hidden;
}
.tagband__inner {
  display: flex; gap: 2.5rem; width: max-content;
  animation: marquee 26s linear infinite;
}
.tagband:hover .tagband__inner { animation-play-state: paused; }
.tagband span {
  font-family: var(--mono); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 2.5rem;
}
.tagband span::after { content: "✦"; color: rgba(0,0,0,.5); font-size: .7em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tagband__inner { animation: none; width: 100%; justify-content: center; flex-wrap: wrap; gap: 1rem 2.5rem; }
}

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; gap: 1.1rem; }
.stats--3 { grid-template-columns: 1fr; }
.stats--4 { grid-template-columns: 1fr; }   /* single column on phones so big $ values don't overflow */
@media (min-width: 560px) { .stats--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px) {
  .stats--3 { grid-template-columns: repeat(3, 1fr); }
  .stats--4 { grid-template-columns: repeat(4, 1fr); }
}
/* keep the big stat numbers from ever spilling out of their card */
.stat__num, .bigstat__num, .vstat__num { max-width: 100%; overflow-wrap: break-word; }
.stat {
  background: var(--card); color: var(--card-fg);
  padding: 2.1rem 1.8rem;
}
.stat__num {
  display: block; font-family: var(--mono); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 3.9rem); letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 0.7rem;
}
.stat__label { font-size: 0.95rem; font-weight: 400; color: var(--card-muted); }

/* ============================================================
   INSIGHT (split)
   ============================================================ */
.wrap--split { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
@media (min-width: 900px) { .wrap--split { grid-template-columns: 1.05fr 0.95fr; } }
.split__text .section__lead { margin-bottom: 0; }
.split__stats { display: grid; gap: 1rem; }
.bigstat {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1.3rem;
  background: var(--card); color: var(--card-fg); padding: 1.5rem 1.7rem;
}
.bigstat__num { font-family: var(--mono); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3rem); letter-spacing: -0.04em; line-height: 1; }
.bigstat__label { font-size: 0.95rem; font-weight: 400; color: var(--card-muted); }

/* ============================================================
   GAP
   ============================================================ */
.gap-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-bottom: 2.75rem; }
@media (min-width: 760px) { .gap-grid { grid-template-columns: repeat(3, 1fr); } }
.gap-card { background: var(--card); color: var(--card-fg); padding: 1.9rem 1.7rem; }
.gap-card h3 { font-size: 1.25rem; margin-bottom: .7rem; }
.gap-card p { color: var(--card-muted); font-weight: 400; }
.gap-punch {
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.15;
  font-size: clamp(1.35rem, 3vw, 2.1rem); max-width: 26ch;
}
.gap-punch strong { color: var(--accent); font-weight: 900; }

/* ============================================================
   BANDS (thesis / vision)
   ============================================================ */
.band { padding-block: clamp(4.5rem, 10vw, 8rem); text-align: center; position: relative; overflow: hidden; }
.band.sec-brown { color: #000; }
.band.sec-black { color: #fff; }
.band .wrap { position: relative; }
.band .eyebrow { justify-content: center; color: currentColor; opacity: .75; }
/* bands: keep eyebrow distinct from the quote color */
.band.sec-brown .eyebrow { color: #fff; opacity: 1; }   /* white vs black quote */
.band.sec-black .eyebrow { color: var(--brown); opacity: 1; }   /* brown vs white quote */
.band .eyebrow::before { display: none; }
.band__quote { font-family: var(--display); font-size: clamp(2.2rem, 6.8vw, 4.6rem); letter-spacing: 0.005em; line-height: 0.95; max-width: 18ch; margin: 0 auto 1.6rem; }
.band__quote--sm { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 22ch; }
.band__sub { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 300; max-width: 56ch; margin: 0 auto; opacity: .9; }

.band--vision { isolation: isolate; }
.band--vision .band__bg { position: absolute; inset: 0; z-index: -2; background: #000 url("assets/renders/cafe.jpg") center/cover no-repeat; }
.band--vision .band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.76); }  /* flat tint */
.vision-stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 3rem auto; max-width: 860px; }
@media (min-width: 700px) { .vision-stats { grid-template-columns: repeat(3, 1fr); } }
.vstat__num { display: block; font-family: var(--mono); font-weight: 900; font-size: clamp(2.8rem, 8vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.vstat__label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,.82); margin-top: .7rem; display: block; }

/* ============================================================
   FEATURE GRID (what's inside)
   ============================================================ */
.feature-hint { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); margin: -1.5rem 0 1.5rem; }
.feature-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

/* flip cards: brown front, photo back. Auto-height — front & back share one grid
   cell so the card hugs its content (no empty space on mobile; rows stay even on desktop). */
.feature { background: transparent; perspective: 1100px; cursor: pointer; display: grid; }
.feature__inner { display: grid; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.feature:hover .feature__inner, .feature.is-flipped .feature__inner { transform: rotateY(180deg); }
.feature__front, .feature__back {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  overflow: hidden; min-height: 210px;
}
.feature__front {
  background: var(--card); color: var(--card-fg);
  padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.feature__ic { width: 42px; height: 42px; display: block; margin-bottom: 1.1rem; color: inherit; }
.feature h3 { font-size: 1.2rem; margin: 0 0 .6rem; }
.feature__front p { color: var(--card-muted); font-size: 0.95rem; font-weight: 400; }
.feature--accent .feature__front { background: var(--red); color: #000; }
.feature--accent .feature__front p { color: rgba(0,0,0,.72); }
.feature__back {
  transform: rotateY(180deg);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.feature__back::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.feature__back-cap {
  position: relative; z-index: 1; padding: 1.6rem 1.8rem;
  font-family: var(--display); text-transform: uppercase; color: #fff;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; letter-spacing: .01em;
}
@media (prefers-reduced-motion: reduce) { .feature__inner { transition: none; } }

/* ============================================================
   PROGRAMMING
   ============================================================ */
.prog-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.prog { display: flex; gap: 1.3rem; align-items: flex-start; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.prog:first-child { padding-top: 0; border-top: none; }
.prog__ic { width: 34px; height: 34px; flex: none; display: block; margin-top: .2rem; color: inherit; }
.prog__text h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-bottom: .4rem; }
.prog__text p { color: var(--muted); font-size: 1rem; font-weight: 400; }

/* ============================================================
   SUPPORT
   ============================================================ */
.support-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 860px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }
.support { background: var(--card); color: var(--card-fg); padding: 2.2rem 1.9rem; }
.support__ic { width: 44px; height: 44px; display: block; margin-bottom: 1.1rem; color: inherit; }
.support h3 { font-size: 1.25rem; margin-bottom: .9rem; }
.support p { color: var(--card-muted); font-weight: 400; }

/* ============================================================
   CYCLE
   ============================================================ */
/* ---- flywheel: a clean wheel graphic + a numbered list of steps ---- */
.flywheel {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin: 2.75rem 0 3.25rem;
}
@media (min-width: 920px) { .flywheel { grid-template-columns: minmax(300px, 400px) 1fr; } }
.flywheel__wheel { width: 100%; max-width: 400px; height: auto; margin: 0 auto; display: block; }
.fw-spin { transform-box: view-box; transform-origin: 100px 100px; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fw-spin { animation: none; } }

.cycle { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cycle li {
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--card); color: var(--card-fg); padding: 1.05rem 1.4rem;
  font-weight: 400; font-size: 1.02rem; line-height: 1.35;
}
.cycle li span {
  font-family: var(--display); font-weight: 400; font-size: 2.1rem; line-height: 1;
  color: var(--brown); flex: none; width: 1.3em; text-align: center;
}

/* ============================================================
   CITIES
   ============================================================ */
.cities { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .cities { grid-template-columns: repeat(3, 1fr); } }
.city {
  background: var(--card); color: var(--card-fg); padding: 2rem 1.8rem;
  transition: transform .18s ease;
}
.city:hover { transform: translate(-2px,-2px); }
.city h3 { font-size: 1.7rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.city h3 span { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: .14em; opacity: .6; }
.city__pop { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #000; opacity: .65; margin: .7rem 0 1rem; font-size: .82rem; }
.city p { color: var(--card-muted); font-weight: 400; }
.cities__note { margin-top: 2.5rem; font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.25; font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
.cities__note strong { color: var(--brown); }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; background: #000; color: #fff; text-align: center; padding-block: clamp(5rem, 11vw, 9rem); overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -2; background: #000 url("assets/photos/connect.jpg") center/cover no-repeat; }
.cta__bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.78); }
.cta__mark { width: 92px; margin: 0 auto 1.9rem; }
.cta__title { font-family: var(--display); font-size: clamp(2.3rem, 6.2vw, 4.2rem); letter-spacing: 0.005em; margin-bottom: 1.2rem; }
.cta__sub { font-size: clamp(1.05rem, 1.9vw, 1.3rem); font-weight: 300; max-width: 52ch; margin: 0 auto 2.6rem; color: rgba(255,255,255,.92); }
.cta__form { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; max-width: 540px; margin: 0 auto; }
.cta__form input {
  flex: 1 1 240px; padding: 1.05em 1.4em; font: inherit; font-weight: 400; font-size: 1rem;
  border: 2px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); color: #fff;
  clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
}
.cta__form input::placeholder { color: rgba(255,255,255,.45); }
.cta__form input:focus { outline: none; border-color: var(--brown); background: rgba(255,255,255,.09); }
.cta__note { min-height: 1.4em; margin-top: 1rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brown); }
.cta__closing { margin-top: 3.5rem; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3.8vw, 2.5rem); letter-spacing: 0.01em; line-height: 1.08; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #000; color: rgba(255,255,255,.6); padding-block: 3rem; border-top: 1px solid rgba(160,114,81,.4); }
.footer__inner { display: grid; gap: 1.75rem; justify-items: center; text-align: center; }
.footer__logo { height: 26px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; justify-content: center; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.footer__links a { color: rgba(255,255,255,.62); }
.footer__links a:hover { color: var(--brown); }
.footer__legal { font-size: .8rem; font-weight: 400; color: rgba(255,255,255,.38); }

/* ============================================================
   GALLERY (gym renderings)
   ============================================================ */
.gallery { background: #000; padding-block: clamp(4rem, 9vw, 8rem); position: relative; overflow: hidden; }
.gallery__grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery__grid { grid-template-columns: repeat(2, 1fr); } }
.shot { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.05); }
.shot__cap {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem 1.5rem 1.2rem;
  background: rgba(0,0,0,.55);
  font-family: var(--mono); font-weight: 900; text-transform: uppercase;
  letter-spacing: -0.01em; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: #fff;
}
.shot__cap span { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; color: var(--brown-lt, #c79a78); margin-bottom: .25rem; }
@media (min-width: 760px) { .shot--wide { grid-column: span 2; aspect-ratio: 21/8; } }

/* ============================================================
   BRANDMARK STAMP (prominent logo moment)
   ============================================================ */
/* tiled wall of brown wordmark "bricks" on black */
.brandmark {
  --tile: clamp(104px, 15vw, 220px);   /* smaller on phones so 3–4 columns fit (was 150 min → only 2) */
  background-color: #000;
  /* padded tile = wordmark with built-in transparent margin, so repeating it
     leaves a thin even "mortar" gap between bricks (viewBox 1105.52×624.61). */
  background-image: url("assets/logos/BXB_WORDMARK_BROWN_TILE.svg");
  /* explicit width AND height (ratio 624.61/1105.52 ≈ 0.565) — avoids iOS Safari's
     unreliable auto-sizing of SVG backgrounds, so it tiles correctly on mobile */
  background-size: var(--tile) calc(var(--tile) * 0.565);
  background-repeat: repeat;      /* tiles butt; the gap is the tile's own padding */
  background-position: center;
  min-height: 100vh;              /* fills the viewport during scroll */
  min-height: 100svh;             /* …without the mobile address-bar jump */
  overflow: hidden;
}

/* ============================================================
   COMMUNITY BAND (full-bleed lifestyle photo)
   ============================================================ */
.community {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 64vh, 660px);
  display: grid; place-items: center; text-align: center; color: #fff;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
}
.community__bg { position: absolute; inset: 0; z-index: -2; background: #000 url("assets/photos/community.jpg") center/cover no-repeat; }
.community__bg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.52); }  /* flat tint */
.community .eyebrow { justify-content: center; color: var(--brown-lt, #c79a78); }
.community__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.2rem, 6.2vw, 4.6rem); letter-spacing: .005em; line-height: .95; max-width: 16ch;
}
.community__sub { font-weight: 300; max-width: 50ch; margin: 1.4rem auto 0; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.8vw, 1.3rem); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   DYNAMIC: slow Ken Burns zoom on every photo background so the
   site feels alive as you scroll. (placed last to win the cascade)
   ============================================================ */
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.sec-bg, .hero__bg, .community__bg, .cta__bg, .band--vision .band__bg {
  animation: kenburns 30s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform;
}
.sec-bg { animation-duration: 26s; }
#programming .sec-bg { animation-delay: -8s; }
@media (prefers-reduced-motion: reduce) {
  .sec-bg, .hero__bg, .community__bg, .cta__bg, .band--vision .band__bg { animation: none; }
}

/* ============================================================
   POLISH LAYER — editorial details, motion, and craft
   (kept last so it wins the cascade)
   ============================================================ */

/* ---- global craft ---- */
::selection { background: var(--brown); color: #000; }
html { scrollbar-color: var(--brown) #000; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---- scroll progress bar (brick red, used sparingly) ---- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  z-index: 60; pointer-events: none;
}

/* ---- red terminal period on headlines (poster punctuation) ---- */
.tdot { color: var(--red); }
.sec-brown .tdot { color: #fff; }   /* on brown grounds the black headline gets a white period */

/* ---- numbered chapter chips in eyebrows ---- */
.eyebrow__idx {
  font-family: var(--mono); font-weight: 700;
  font-size: .58em; letter-spacing: .1em; line-height: 1;
  padding: .34em .55em .26em;
  border: 1.5px solid currentColor;
  transform: translateY(-.1em);
}

/* ---- nav: underline sweep + scrollspy active state ---- */
.nav__links a { position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--brown);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--brown); }
.nav__links.is-open a::after { content: none; }   /* no underlines inside the mobile sheet */

/* ---- hero entrance: content rises in on load ---- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
.hero .eyebrow, .hero__title, .hero__sub, .hero__actions, .hero__proof {
  animation: rise .8s cubic-bezier(.2, .7, .2, 1) backwards;
}
.hero .eyebrow   { animation-delay: .05s; }
.hero__title     { animation-delay: .15s; }
.hero__sub       { animation-delay: .28s; }
.hero__actions   { animation-delay: .4s; }
.hero__proof     { animation-delay: .52s; }

/* ---- hero proof strip: the pitch at a glance ---- */
.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem 1.1rem; margin-top: 2.6rem;
  font-family: var(--mono); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.78);
}
.hero__proof span { display: inline-flex; align-items: center; gap: 1.1rem; white-space: nowrap; }
.hero__proof span + span::before { content: "✦"; color: var(--brown); font-size: .85em; }

/* ---- cards: lift on hover (reveal transition preserved) ---- */
.stat, .gap-card, .support, .city, .bigstat {
  transition: opacity .55s ease, transform .3s ease;
}
.stat:hover, .gap-card:hover, .support:hover, .city:hover, .bigstat:hover {
  transform: translate(-3px, -3px);
}

/* ---- the ask, highlighted: $13.1M card in brick red ---- */
.stat--key { background: var(--red); color: #000; }
.stat--key .stat__label { color: rgba(0,0,0,.74); }

/* ---- flip-card affordance: corner glyph on every front face ---- */
.feature__front { position: relative; }
.feature__front::after {
  content: "↻"; position: absolute; top: .85rem; right: 1.05rem;
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  opacity: .45;
}

/* ---- cities: ghost index numerals ---- */
.city { position: relative; }
.city__idx {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--display); font-size: 2.7rem; line-height: 1;
  color: #000; opacity: .18; pointer-events: none;
}

/* ---- vision stats: hairline dividers on desktop ---- */
@media (min-width: 700px) {
  .vision-stats { gap: 0; }
  .vstat { padding-inline: 1.4rem; }
  .vstat + .vstat { border-left: 1px solid rgba(255,255,255,.24); }
}

/* ---- second tagband: brown wordmarks' voice on black ---- */
.tagband--dark {
  background: #000; color: var(--brown);
  border-top: 1px solid rgba(160,114,81,.45);
  border-bottom: 1px solid rgba(160,114,81,.45);
}
.tagband--dark span::after { color: rgba(160,114,81,.55); }
.tagband__inner--rev { animation-direction: reverse; animation-duration: 32s; }

/* ---- community: the fully-built pack, bobbing ---- */
.community__pack {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(1rem, 4vw, 2.6rem); margin-top: 2.6rem;
}
.community__pack .mascot {
  width: clamp(54px, 7vw, 88px); height: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
  animation: bob 5s ease-in-out infinite; transform-origin: bottom center;
}
.community__pack .mascot:nth-child(1) { animation-duration: 4.7s; animation-delay: -1.1s; }
.community__pack .mascot:nth-child(2) { animation-duration: 5.9s; animation-delay: -2.6s; }
.community__pack .mascot:nth-child(3) { animation-duration: 5.2s; animation-delay: -0.5s; }
.community__pack .mascot:nth-child(4) { animation-duration: 6.4s; animation-delay: -3.4s; }

/* ---- brandmark wall: slow drift so the wall feels alive ---- */
@keyframes wallpan { from { background-position: 0 0; } to { background-position: var(--tile) 0; } }
.brandmark { background-position: 0 0; animation: wallpan 36s linear infinite; }
@media (prefers-reduced-motion: reduce) { .brandmark { animation: none; } }

/* ---- footer: a proper sign-off ---- */
.footer { padding-block: 4.25rem 2.4rem; }
.footer__top { display: grid; gap: 2.6rem; margin-bottom: 3rem; }
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.3fr 1fr auto; align-items: start; }
}
.footer__logo { height: 34px; width: auto; }
.footer__tag {
  margin-top: 1.2rem;
  font-family: var(--mono); font-weight: 400; text-transform: uppercase;
  letter-spacing: .1em; font-size: .72rem; line-height: 1.9;
  color: rgba(255,255,255,.55);
}
.footer__links {
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem;
}
.footer__links a { color: rgba(255,255,255,.62); transition: color .15s; }
.footer__links a:hover { color: var(--brown); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.5rem;
}
.footer__legal { font-size: .78rem; font-weight: 400; color: rgba(255,255,255,.38); }
.footer__mascot {
  width: 46px; height: auto;
  animation: bob 5.4s ease-in-out infinite; transform-origin: bottom center;
}
