/* ============================================================
   PECULIEX — ABOUT
   Page styles for about.html. The shared design layer
   (tokens, hero, sections, stats, process rows, CTA) is in
   site.css; behaviour is in site.js and about.js.
   ============================================================ */

/* sentence-length headings run a size down from the display h2 */
.ab-h2 {
  font-size: clamp(34px, 5.2vw, 98px);
  line-height: 0.95;
}

/* ---------- Hero ---------- */
/* three short lines: keep the headline and the call to action in one view */
.ab-hero .px-hero-title { font-size: clamp(46px, 7.7vw, 150px); }

/* ---------- Our philosophy ---------- */
.ab-phil-grid { display: grid; gap: clamp(32px, 5vw, 72px); }
.ab-phil .tag-acid { margin-bottom: clamp(20px, 2.2vw, 30px); }
.ab-phil-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, 2.05vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.022em;
  color: var(--color-on-background);
  max-width: 22em;
}
.ab-phil-text em {
  font-family: var(--hx-serif);
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
@media (min-width: 1024px) {
  .ab-phil-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
}

/* ---------- By the numbers (dark band) ---------- */
.ab-numbers { overflow: hidden; }
.ab-numbers::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: 90vmax; height: 60vmax;
  transform: translate(-50%, -62%);
  background: radial-gradient(ellipse, rgba(139, 44, 245, 0.2), transparent 62%);
  pointer-events: none;
}
.ab-numbers .container { position: relative; }
.ab-numbers-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(44px, 6.5vw, 104px);
}
.ab-numbers-head .tag-acid { margin-bottom: clamp(20px, 2.2vw, 30px); }
.ab-numbers-head .hx-h2 { max-width: 13em; }
.ab-spark {
  flex: none;
  width: clamp(48px, 8vw, 132px);
  height: clamp(48px, 8vw, 132px);
  margin-bottom: 0.4vw;
  color: var(--hx-lime);
}
.ab-spark svg { display: block; width: 100%; height: 100%; }
/* stats here carry a supporting line of varying length: hang everything
   from the top so the numbers stay on one baseline across the row */
.ab-numbers .hx-stat {
  justify-content: flex-start;
  gap: clamp(36px, 5.6vw, 92px);
  min-height: 0;
  padding-bottom: clamp(30px, 3.4vw, 56px);
}
.ab-numbers .hx-stat-label { color: #fff; }
.ab-stat-text {
  margin-top: 12px;
  max-width: 32ch;
  font-size: clamp(13.5px, 1.02vw, 15.5px);
  line-height: 1.6;
  color: var(--hx-mute);
  transition: color 0.45s ease;
}
@media (hover: hover) {
  .ab-numbers .hx-stat:hover .hx-stat-label,
  .ab-numbers .hx-stat:hover .ab-stat-text { color: currentColor; }
}
/* phones: one stat per row so the supporting line has room */
@media (max-width: 599px) {
  .ab-numbers .hx-impact-grid { grid-template-columns: 1fr; }
  .ab-numbers .hx-stat { gap: 26px; padding-left: 0; padding-right: 0; border-left: 0; }
  .ab-numbers .hx-stat-num { font-size: clamp(64px, 21vw, 110px); }
  .ab-stat-text { max-width: 38ch; font-size: 14.5px; }
  .ab-spark { display: none; }
}

/* ---------- Quote ---------- */
.ab-quote-fig { display: grid; gap: clamp(10px, 2vw, 32px); }
.ab-quote-mark {
  display: block;
  height: 0.42em;
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(110px, 15vw, 280px);
  line-height: 0.82;
  color: var(--color-primary);
  user-select: none;
}
.ab-quote .px-statement {
  font-size: clamp(28px, 4.5vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 17em;
}
@media (min-width: 1024px) {
  .ab-quote-fig { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); align-items: start; }
}

/* ---------- The Prismatic Process ---------- */
.ab-method-grid { display: grid; gap: clamp(36px, 6vw, 72px); }
.ab-method-head .tag-acid { margin-bottom: clamp(20px, 2.2vw, 30px); }
.ab-method-head .hx-h2 { font-size: clamp(38px, 4.3vw, 80px); }
@media (min-width: 1024px) {
  .ab-method-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
  .ab-method-head { position: sticky; top: calc(var(--nav-top) + var(--nav-height) + 48px); }
  /* "Development" has to clear the round icon at the end of its row */
  .ab-method .hx-step-title { font-size: clamp(40px, 4.9vw, 100px); }
}

/* ---------- Testimonials: ruled columns, no cards ---------- */
.ab-voices-section .hx-h2 { font-size: clamp(40px, 6.4vw, 118px); }
.ab-voices { display: grid; border-bottom: 1px solid var(--hx-line); }
.ab-voice {
  --c: var(--hx-purple);
  --on-c: #fff;
  position: relative;
  padding: 22px 0 30px;
  border-top: 1px solid var(--hx-line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s ease;
}
.ab-voice:nth-child(2) { --c: var(--hx-orange); --on-c: #0b0b0f; }
.ab-voice:nth-child(3) { --c: var(--hx-lime); --on-c: #0b0b0f; }
/* colour flood from the top rule */
.ab-voice::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--c);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 0.75s var(--hx-ease);
  z-index: -1;
}
.ab-voice figure {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 44px);
  height: 100%;
}
.ab-voice-idx {
  font-family: var(--hx-serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1;
  opacity: 0.6;
}
.ab-voice-quote {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 31px);
  line-height: 1.26;
  letter-spacing: -0.022em;
  max-width: 24em;
}
.ab-voice-quote::before { content: '\201C'; }
.ab-voice-quote::after { content: '\201D'; }
.ab-voice-by {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.ab-voice-photo {
  flex: none;
  width: clamp(52px, 4.6vw, 72px);
  height: clamp(52px, 4.6vw, 72px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--color-surface-container);
}
.ab-voice-name {
  font-family: var(--font-label);
  font-size: clamp(11.5px, 0.95vw, 13px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .ab-voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-voice {
    min-height: clamp(360px, 31vw, 500px);
    padding: 26px clamp(18px, 2.2vw, 36px) 32px;
    border-left: 1px solid var(--hx-line);
  }
  .ab-voice:first-child { border-left: 0; }
}
@media (hover: hover) and (min-width: 1024px) {
  .ab-voice:hover { color: var(--on-c); }
  .ab-voice:hover::before { transform: scaleY(1); }
}

/* ---------- Stand Out: dark band, letters light up on scroll ---------- */
/* main.js fades the page background to --band-bg while this band is in view */
.stand-out-section {
  position: relative;
  height: 200vh;
  background: var(--band-bg);
  color: #fff;
}
.ab-standout-sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  padding: 0 5vw;
  overflow: hidden;
}
.stand-out-text-reveal {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(48px, 16vw, 300px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.stand-out-text-reveal em {
  font-family: var(--hx-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--hx-lime);
}

/* ---------- Closing call to action ---------- */
.ab-closing { padding-top: clamp(40px, 5vw, 80px); }

@media (prefers-reduced-motion: reduce) {
  .ab-voice, .ab-voice::before { transition: none; }
  /* no scrubbed reveal, so no need for the long scroll */
  .stand-out-section { height: auto; }
  .ab-standout-sticky { position: static; height: auto; padding-top: clamp(96px, 16vw, 220px); padding-bottom: clamp(96px, 16vw, 220px); }
}
