/* ==========================================================================
   ABOUT — extends styles.css (navbar, footer, work cards, testimonials)
   Mobile-first: base rules are the phone layout; the grids split at 768/1024.
   ========================================================================== */
:root { --ab-panel: #EDEBEB; --ab-mute: #464141; --ab-grey: #7C7474; }

.ab-wrap { max-width: 94.5rem; margin: 0 auto; padding-inline: 1.5rem; }
.ab-sec { padding-block: clamp(3rem, min(8vw, 10vh), 8rem); }
.ab-panel { background: var(--ab-panel); }

/* .page-z is already full width, so a block element bleeds on its own. Using
   100vw here would overflow by the scrollbar's width. */
.ab-bleed { width: 100%; }

.ab-eyebrow {
  font-size: 0.875rem; font-weight: 800; letter-spacing: 0.02em;
  text-transform: uppercase; color: #121212; margin-bottom: 1.75rem;
}
.ab-h1, .ab-h2 {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.06;
  text-transform: uppercase; color: #121212; margin: 0;
}
.ab-h1 { font-size: clamp(2.125rem, 7vw, 3.75rem); }
.ab-h2 { font-size: clamp(1.875rem, 5.6vw, 3.75rem); }
/* "The People Behind" and "Featured Works" are title case in the design. */
.ab-h2--tc { text-transform: none; letter-spacing: -0.035em; }
.ab-h2 .red, .ab-h1 .red { color: var(--red); }

/* The drawn rule under each section heading. */
.ab-rule { display: block; width: 100%; height: 0.375rem; margin-top: clamp(1.75rem, min(4.5vw, 5.5vh), 4.5rem); color: #121212; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
/* 4.5rem clears the fixed navbar; the rest is the gap below it, capped by vh
   so the intro copy stays near the fold on short laptop screens. */
.ab-hero { padding-top: calc(4.5rem + clamp(3rem, min(4.5vw, 5.5vh), 4.5rem)); padding-bottom: clamp(2.75rem, min(6.5vw, 8vh), 6.5rem); }
.ab-hero-media {
  margin-top: 2.5rem; aspect-ratio: 656 / 316; border-radius: 14px;
  background: #D9D9D9; overflow: hidden;
}
.ab-hero-media > img, .ab-hero-media > video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glass variant: the tilted frosted card holding the monogram, floating on the
   page instead of sitting in a grey frame. Recovered from the previous About
   build; sized off height here because this slot is landscape, not square. */
.ab-hero-media--glass {
  background: none; border-radius: 0; overflow: visible;
  position: relative; display: grid; place-items: center; isolation: isolate;
  aspect-ratio: 1 / 1; max-width: 22rem; margin-inline: auto;
}
.ab-hero-media--glass::before {
  content: ""; position: absolute; width: 66%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 34, 34, 0.16) 0%, rgba(228, 34, 34, 0) 70%);
  transform: translateY(6%); z-index: -1;
}
.ab-glass {
  position: relative; width: 74%; aspect-ratio: 5 / 4; border-radius: 1.5rem;
  transform: rotate(-8deg);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
  backdrop-filter: blur(12px) saturate(115%);
  box-shadow:
    0 32px 60px -20px rgba(18, 18, 18, 0.28),
    0 6px 18px -6px rgba(228, 34, 34, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: grid; place-items: center;
  animation: ab-glass-float 8s ease-in-out infinite;
}
.ab-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 46%);
}
.ab-glass-mark {
  width: 47%; height: auto; display: block;
  filter: drop-shadow(0 10px 24px rgba(228, 34, 34, 0.28));
}
@keyframes ab-glass-float {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-8deg) translateY(-0.75rem); }
}
@media (prefers-reduced-motion: reduce) { .ab-glass { animation: none; } }
.ab-intro { display: grid; gap: 1.75rem; margin-top: clamp(1.5rem, 2.6vw, 2.5rem); }
.ab-intro p { font-size: 1.0625rem; font-weight: 500; line-height: 1.5; color: #121212; }
.ab-intro p + p { margin-top: 1.25rem; }

/* ── Red service marquee ────────────────────────────────────────────────── */
.ab-marquee { background: var(--red); overflow: hidden; padding-block: clamp(1.125rem, 1.8vw, 1.5rem); }
.ab-marquee-track { display: flex; width: max-content; animation: ab-marq 26s linear infinite; }
.ab-marquee-group { display: flex; align-items: center; flex: 0 0 auto; }
.ab-marquee-group span {
  display: inline-flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-right: clamp(1.25rem, 3vw, 2.5rem);
  font-size: clamp(0.9375rem, 1.5vw, 1.4375rem); font-weight: 700; color: #fff;
  letter-spacing: 0.01em; white-space: nowrap;
}
.ab-marquee-group span::after {
  content: ""; width: 0.9375rem; height: 0.9375rem; border-radius: 50%; background: #fff; flex: 0 0 auto;
}
/* Six copies, shifted by exactly one (-100%/6). Two copies at -50% left a
   bare gap whenever a single copy was narrower than the viewport. */
@keyframes ab-marq { to { transform: translateX(-16.6667%); } }
@media (prefers-reduced-motion: reduce) { .ab-marquee-track { animation: none; } }

/* ── What we think ──────────────────────────────────────────────────────── */
.ab-think-lead {
  font-size: clamp(1.1875rem, 2.3vw, 1.75rem); font-weight: 750; line-height: 1.2;
  letter-spacing: -0.015em; text-transform: uppercase; margin: clamp(2rem, 4vw, 3.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.ab-think { display: grid; gap: 2.5rem; }
.ab-think p { font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.ab-think-left p + p { margin-top: 1.5rem; }
.ab-point { display: flex; align-items: center; gap: 1.25rem; padding-block: 1.125rem; border-bottom: 1px solid rgba(0,0,0,.45); }
.ab-point-ic {
  flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--red);
  display: grid; place-items: center; color: #fff;
}
.ab-outro { margin-top: 1.75rem; }

/* ── What we aren't / what we are ───────────────────────────────────────
   One grid, items interleaved not/are/not/are. Each pair lands in the same
   grid row, so the rows stay level even when the right item wraps to two
   lines. Two separate lists could never stay in step. */
.ab-cmp { display: grid; gap: 0 3rem; }
.ab-cmp-h { margin-bottom: 2.25rem; }
.ab-cmp-item {
  padding-block: 1.25rem; border-bottom: 1px solid rgba(0,0,0,.14);
  font-size: 1.0625rem; line-height: 1.4; margin: 0;
}
.ab-cmp-item--not {
  font-weight: 500; color: var(--ab-mute);
  text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px;
}
.ab-cmp-item--are { font-weight: 800; color: #121212; }

/* Mobile stacks to one column, so reorder into two readable blocks
   (heading + its five items) instead of alternating not/are. */
.ab-cmp-h--not { order: 1; }
.ab-cmp-item--not { order: 2; }
.ab-cmp-h--are { order: 3; margin-top: 3rem; }
.ab-cmp-item--are { order: 4; }

/* ── The Chapter Red way ────────────────────────────────────────────────── */
.ab-way { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.ab-way h3 {
  font-size: clamp(1.625rem, 4.2vw, 3rem); font-weight: 750; line-height: 1.2;
  letter-spacing: -0.02em; margin: 0 0 1.5rem;
}
.ab-way--muted h3 { color: var(--ab-grey); text-transform: uppercase; }
.ab-way--red h3 { color: var(--red); }
.ab-way p { font-size: 1.0625rem; font-weight: 500; line-height: 1.45; }
.ab-pills { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.5rem; }
.ab-pill {
  border: 2px solid var(--red); border-radius: 31.5px; padding: 0.75rem 1.5rem;
  font-size: 1rem; font-weight: 500; color: #121212; white-space: nowrap;
}

/* Physics mode, switched on by main.js: a fixed stage the pills drop into and
   pile up in. Left in flex layout when the drop can't run. */
.ab-pills.is-physics {
  display: block; position: relative; overflow: hidden;
  /* Narrow stages pile taller, so phones get the TALLEST stage. Heights are
     the smallest that never clipped a pill across 50-60 simulated drops. */
  height: 22.5rem; margin-top: 1.5rem;
}
.ab-pills.is-physics .ab-pill {
  position: absolute; left: 0; top: 0; transform-origin: center;
  visibility: hidden; will-change: transform; user-select: none;
  /* Opaque, so a pill resting across another hides it like a real object. */
  background: var(--bg-page);
}
.ab-pills.is-physics .ab-pill.is-in { visibility: visible; }
.ab-pills.is-draggable .ab-pill { cursor: grab; }
.ab-pills.is-grabbing, .ab-pills.is-grabbing .ab-pill { cursor: grabbing; }

/* ── The people behind ──────────────────────────────────────────────────── */
.ab-people-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
/* One full-width slide per person, snapping. The gap keeps the next slide
   from peeking in; bindCarousel() steps by slide width + gap. */
.ab-team {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; column-gap: 4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; margin-top: 2.5rem;
}
.ab-team::-webkit-scrollbar { display: none; }
.ab-person { display: grid; gap: 2rem; scroll-snap-align: start; }
.ab-person-photo { aspect-ratio: 509 / 587; background: #D9D9D9; border-radius: 14px; overflow: hidden; position: relative; }
.ab-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-person-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.1875rem; background: var(--red); }
.ab-person-name { font-size: clamp(1.875rem, 4.2vw, 3rem); font-weight: 850; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.ab-person-role { font-size: clamp(1.25rem, 2.6vw, 2rem); font-weight: 650; line-height: 1.3; color: var(--red); margin: 0.5rem 0 1.5rem; }
.ab-person-bio p { font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.ab-person-bio p + p { margin-top: 1.25rem; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.ab-cta { background: var(--red); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.ab-cta-grid { display: grid; gap: 2rem; }
.ab-cta h2 { font-size: clamp(2.125rem, 6.4vw, 4.375rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin: 0; }
.ab-cta p { font-size: clamp(1.125rem, 2.4vw, 2rem); font-weight: 550; line-height: 1.2; margin: 0 0 2rem; }
.ab-cta-btn {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.5rem;
  padding: 0.875rem 2.25rem; border-radius: 36.5px; background: #fff; color: #121212;
  font-size: clamp(1rem, 1.7vw, 1.5rem); font-weight: 550;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.ab-cta-btn:hover { transform: translateX(0.25rem); }

/* ── Tablet ─────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .ab-wrap { padding-inline: 2.5rem; }
  .ab-intro, .ab-think, .ab-way, .ab-cta-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .ab-cmp { grid-template-columns: 1fr 1fr; }
  .ab-cmp > * { order: 0; }                  /* side by side: DOM order is the pairing */
  .ab-cmp-h--are { margin-top: 0; }
  .ab-person { grid-template-columns: 0.8fr 1fr; gap: 3rem; align-items: start; }
  .ab-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .ab-hero-media { margin-top: 0; }
  .ab-hero-media--glass { aspect-ratio: 656 / 316; max-width: none; margin-inline: 0; }
  .ab-glass { width: auto; height: 88%; }
  .ab-intro p { font-size: 1.25rem; }
  .ab-think p, .ab-way p, .ab-person-bio p { font-size: 1.25rem; }
  .ab-cmp-item { font-size: 1.25rem; padding-block: 1.5rem; }
  .ab-pill { font-size: 1.25rem; }
  /* Scatter the pills the way the design does, without giving up reflow. */
  .ab-pills { gap: 1.25rem 1.75rem; }
  .ab-pill:nth-child(2n) { transform: translateY(1.75rem); }
  .ab-pill:nth-child(3n) { transform: translateY(-0.75rem); }
  .ab-pills.is-physics { height: 20rem; }
}

/* ── Desktop ────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .ab-wrap { padding-inline: 3.5rem; }
  .ab-intro, .ab-think, .ab-way { gap: 5rem; }
  .ab-cmp { column-gap: 6rem; }
  .ab-person { grid-template-columns: 509fr 629fr; gap: 10rem; }
  .ab-pills.is-physics { height: 17.5rem; }
  .ab-cta-grid { grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; }
}

/* ABOUT is the current page here; styles.css has no active-link state yet. */
.navbar-link--active { color: var(--red); }

/* .rv-arrow (shared with the homepage) is 40px — below the 44px tap floor. */
@media (pointer: coarse) { .rv-arrow { width: 44px; height: 44px; } }
