/* ==========================================================================
   About page — custom premium sections
   Reuses global design tokens from main.css (accent, base, t-bright, fonts…).
   Only the About-specific blocks live here; shared components (services cards,
   engine-room aistack, ie-money awards, ie-clients, stats) are reused as-is.
   ========================================================================== */

/* ---- Shared eyebrow used across about sections ------------------------- */
.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 2.4rem;
  font-family: var(--_font-default);
  font-size: 1.3rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.ab-eyebrow i {
  font-size: 1.6rem;
}

/* ==========================================================================
   Hero meta strip — sits under the inner headline
   ========================================================================== */
.ab-herometa {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 5rem);
  margin-top: clamp(3rem, 4vw, 5rem);
  padding-top: 2.8rem;
  border-top: 1px solid var(--st-muted);
}

.ab-herometa__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.ab-herometa__label {
  font-family: var(--_font-default);
  font-size: 1.15rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--t-muted);
}

.ab-herometa__value {
  font-family: var(--_font-accent);
  font-size: clamp(1.7rem, 1.6vw, 2.1rem);
  line-height: 1.15;
  color: var(--t-bright);
}

.ab-herometa__value em {
  font-style: italic;
  color: var(--accent);
}

/* ==========================================================================
   Manifesto — oversized editorial statement
   ========================================================================== */
.ab-manifesto {
  position: relative;
}

.ab-manifesto__inner {
  max-width: 100%;
}

.ab-manifesto__statement {
  margin: 0;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(2.6rem, 4.6vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--t-muted-extra);
}

.ab-manifesto__statement b {
  font-weight: var(--fw-medium);
  color: var(--t-bright);
}

.ab-manifesto__statement em {
  font-style: italic;
  color: var(--accent);
}

.ab-manifesto__sign {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: clamp(3rem, 4vw, 5rem);
  font-family: var(--_font-default);
  font-size: 1.3rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-muted);
}

.ab-manifesto__sign::before {
  content: "";
  width: 4.4rem;
  height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Story — sticky narrative + image collage
   ========================================================================== */
.ab-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(4rem, 6vw, 8rem);
  align-items: start;
}

@media (min-width: 992px) {
  .ab-story__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.ab-story__text,
.ab-story__media {
  min-width: 0;
}

@media (min-width: 992px) {
  .ab-story__text {
    position: sticky;
    top: 12rem;
  }
}

.ab-story__title {
  margin: 0 0 2.6rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(3.2rem, 4.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--t-bright);
}

.ab-story__p {
  margin: 0 0 2rem;
  font-family: var(--_font-default);
  font-size: clamp(1.6rem, 1.3vw, 1.85rem);
  line-height: 1.62;
  color: var(--t-medium);
}

.ab-story__p:last-child {
  margin-bottom: 0;
}

.ab-story__p strong {
  font-weight: var(--fw-medium);
  color: var(--t-bright);
}

/* image collage → three continuous "lanes" (Film / AI / Product) that scroll at
   different speeds & directions. The seamless loop relies on js/app.js cloning each
   track's items once (so translateY(-50%) lands exactly on the duplicate set). The
   per-item margin-bottom — NOT a flex gap — keeps that 50% wrap pixel-exact. */
.ab-story__media.ab-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.4vw, 1.8rem);
  height: clamp(46rem, 64vh, 64rem);
  position: relative;
}

.ab-reel__lane {
  position: relative;
  min-width: 0;
  height: 100%;
}

/* nudge the lanes into a staggered rhythm so the columns never line up */
.ab-reel__lane--b { transform: translateY(clamp(2rem, 4vw, 5rem)); }
.ab-reel__lane--c { transform: translateY(clamp(1rem, 2vw, 2.5rem)); }

/* lane label pill — sits above the top fade, outside the masked viewport */
.ab-reel__label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--_font-default);
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
}

.ab-reel__label i { font-size: 1.3rem; }

/* the cropping window — fades content in/out at the top & bottom edges */
.ab-reel__viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}

.ab-reel__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

/* motion only switches on once app.js has cloned the set (.is-ready). Without JS or
   under reduced-motion the lanes simply rest, showing the first few frames. */
.ab-reel.is-ready .ab-reel__lane--a .ab-reel__track { animation: ab-reel-up 42s linear infinite; }
.ab-reel.is-ready .ab-reel__lane--b .ab-reel__track { animation: ab-reel-down 34s linear infinite; }
.ab-reel.is-ready .ab-reel__lane--c .ab-reel__track { animation: ab-reel-up 50s linear infinite; }

/* hovering a lane pauses just that column so the work can be read */
.no-touch .ab-reel__lane:hover .ab-reel__track { animation-play-state: paused; }

@keyframes ab-reel-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes ab-reel-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.ab-reel__item {
  position: relative;
  flex: 0 0 auto;
  margin: 0 0 clamp(1rem, 1.4vw, 1.8rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid var(--st-muted);
  background: var(--base-tint);
}

.ab-reel__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* default: graded down to near-monochrome so colour "lights up" on hover */
  filter: grayscale(0.9) brightness(0.82) contrast(1.04);
  transform: scale(1.02);
  transition: transform 0.9s var(--_animbezier), filter 0.6s ease;
}

/* Resting scrim — keeps every frame in the same dark, moody register so light
   studio backgrounds (flatlays, white packshots) don't read as bright grey slabs
   as the lane auto-scrolls. Heavier at the top/bottom edges so a frame caught mid
   loop dissolves into the dark instead of showing a hard grey cut. Lifts on hover
   together with the grayscale, and is off on touch where colour shows by default. */
.ab-reel__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(18, 18, 18, 0.62) 0%,
    rgba(18, 18, 18, 0.34) 22%,
    rgba(18, 18, 18, 0.34) 78%,
    rgba(18, 18, 18, 0.62) 100%);
  transition: opacity 0.6s ease;
}

.no-touch .ab-reel__item:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(var(--accent-rgb), 0.25),
              0 0 2.4rem rgba(var(--accent-rgb), 0.22);
}

.no-touch .ab-reel__item:hover img {
  filter: grayscale(0) brightness(1) contrast(1);
  transform: scale(1.07);
}

.no-touch .ab-reel__item:hover::after {
  opacity: 0;
}

.ab-reel__cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.45rem 0.95rem;
  font-family: var(--_font-default);
  font-size: 1.05rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 30px;
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.4s ease, transform 0.4s var(--_animbezier);
}

.no-touch .ab-reel__item:hover .ab-reel__cap {
  opacity: 1;
  transform: none;
}

/* film grain over the whole reel for a luxurious, textured finish */
.ab-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

@media (prefers-reduced-motion: reduce) {
  .ab-reel .ab-reel__track { animation: none !important; }
}

/* touch / coarse pointers: no hover state, so show colour + captions by default */
.touch .ab-reel__item img { filter: none; transform: scale(1.02); }
.touch .ab-reel__item::after { opacity: 0; }
.touch .ab-reel__cap { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .ab-story__media.ab-reel {
    grid-template-columns: 1fr 1fr;
    height: clamp(40rem, 90vw, 52rem);
  }
  .ab-reel__lane--c { display: none; }
}

/* ==========================================================================
   Disciplines — what we do, as a card grid linking to service pages
   ========================================================================== */
.ab-disciplines {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 1.6vw, 2rem);
}

@media (min-width: 600px) {
  .ab-disciplines {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .ab-disciplines {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ab-disc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(2.4rem, 2.6vw, 3.4rem);
  overflow: hidden;
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-m);
  text-decoration: none;
  isolation: isolate;
  transition: transform var(--_animspeed-medium) var(--_animbezier),
    border-color var(--_animspeed-medium) var(--_animbezier),
    box-shadow var(--_animspeed-medium) var(--_animbezier);
}

/* spotlight that follows the cursor (powered by card-spotlight.js) */
.ab-disc::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    32rem 32rem at var(--mx, 50%) var(--my, 0%),
    rgba(var(--accent-rgb), 0.16),
    transparent 60%
  );
  transition: opacity var(--_animspeed-medium) var(--_animbezier);
}

.ab-disc:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.ab-disc:hover::before {
  opacity: 1;
}

.ab-disc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.ab-disc__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  font-size: 2.4rem;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 1.4rem;
}

.ab-disc__index {
  font-family: var(--_font-accent);
  font-size: 1.4rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  color: var(--t-muted);
}

.ab-disc__title {
  margin: 0 0 1.2rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 1.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--t-bright);
}

.ab-disc__desc {
  margin: 0 0 2.4rem;
  font-family: var(--_font-default);
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--t-medium);
}

.ab-disc__more {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  font-family: var(--_font-default);
  font-size: 1.3rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  color: var(--t-bright);
}

.ab-disc__more i {
  transition: transform var(--_animspeed-medium) var(--_animbezier);
}

.ab-disc:hover .ab-disc__more {
  color: var(--accent);
}

.ab-disc:hover .ab-disc__more i {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Process — numbered timeline of how we work
   ========================================================================== */
.ab-process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: ab-step;
}

@media (min-width: 768px) {
  .ab-process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ab-step {
  position: relative;
  padding: clamp(2.6rem, 3vw, 4rem) clamp(2rem, 2vw, 3rem) clamp(2.6rem, 3vw, 4rem) 0;
  border-top: 1px solid var(--st-muted);
}

@media (min-width: 768px) {
  .ab-step {
    padding: 4rem 2.4rem 0 0;
  }
}

.ab-step__num {
  display: block;
  margin-bottom: 2.2rem;
  font-family: var(--_font-accent);
  font-size: clamp(1.3rem, 1.2vw, 1.5rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  color: var(--accent);
}

.ab-step__dot {
  position: absolute;
  top: -0.6rem;
  left: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.5rem rgba(var(--accent-rgb), 0.16);
  transform-origin: center;
}

/* ----------------------------------------------------------------------
   Living timeline — a light travels the line and ignites each stage in
   sequence, looping forever. Quiet and slow, so it reads as "breathing".
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  /* one shared 8s cycle, four stages 2s apart */
  .ab-step:nth-child(1) .ab-step__dot { animation: ab-dot-pulse 8s ease-in-out 0s infinite; }
  .ab-step:nth-child(2) .ab-step__dot { animation: ab-dot-pulse 8s ease-in-out 2s infinite; }
  .ab-step:nth-child(3) .ab-step__dot { animation: ab-dot-pulse 8s ease-in-out 4s infinite; }
  .ab-step:nth-child(4) .ab-step__dot { animation: ab-dot-pulse 8s ease-in-out 6s infinite; }

  .ab-step:nth-child(1) .ab-step__num { animation: ab-num-glow 8s ease-in-out 0s infinite; }
  .ab-step:nth-child(2) .ab-step__num { animation: ab-num-glow 8s ease-in-out 2s infinite; }
  .ab-step:nth-child(3) .ab-step__num { animation: ab-num-glow 8s ease-in-out 4s infinite; }
  .ab-step:nth-child(4) .ab-step__num { animation: ab-num-glow 8s ease-in-out 6s infinite; }
}

@keyframes ab-dot-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0.5rem rgba(var(--accent-rgb), 0.16);
  }
  6% {
    transform: scale(1.45);
    box-shadow: 0 0 0 1rem rgba(var(--accent-rgb), 0.32),
                0 0 24px 3px rgba(var(--accent-rgb), 0.45);
  }
  22% {
    transform: scale(1);
    box-shadow: 0 0 0 0.5rem rgba(var(--accent-rgb), 0.16);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0.5rem rgba(var(--accent-rgb), 0.16);
  }
}

@keyframes ab-num-glow {
  0%, 24%, 100% {
    text-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  }
  6% {
    text-shadow: 0 0 20px rgba(var(--accent-rgb), 0.6);
  }
}

/* Desktop: a comet of light glides along the connector line, arriving at
   each dot exactly as it ignites (synced to the same 8s cycle). */
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .ab-process { position: relative; }
  .ab-process::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
                transparent 0%,
                rgba(var(--accent-rgb), 0.85) 50%,
                transparent 100%);
    background-size: 26% 100%;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    animation: ab-line-travel 8s linear infinite;
  }
}

@keyframes ab-line-travel {
  0% { background-position: -30% 0; }
  75% { background-position: 105% 0; }
  100% { background-position: 105% 0; }
}

.ab-step__title {
  margin: 0 0 1.2rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(2rem, 2vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--t-bright);
}

.ab-step__desc {
  margin: 0;
  font-family: var(--_font-default);
  font-size: 1.5rem;
  line-height: 1.58;
  color: var(--t-medium);
}

/* ==========================================================================
   Principles — values grid
   ========================================================================== */
.ab-principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 1.6vw, 2rem);
}

@media (min-width: 600px) {
  .ab-principles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .ab-principles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ab-principle {
  padding: clamp(2.4rem, 2.6vw, 3.2rem);
  background: var(--base-tint);
  border: 1px solid var(--st-muted);
  border-radius: var(--_radius-m);
  transition: border-color var(--_animspeed-medium) var(--_animbezier),
    transform var(--_animspeed-medium) var(--_animbezier);
}

.ab-principle:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.ab-principle__icon {
  display: inline-flex;
  margin-bottom: 1.8rem;
  font-size: 2.6rem;
  color: var(--accent);
}

.ab-principle__title {
  margin: 0 0 1rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(1.9rem, 1.8vw, 2.3rem);
  line-height: 1.1;
  color: var(--t-bright);
}

.ab-principle__desc {
  margin: 0;
  font-family: var(--_font-default);
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--t-medium);
}

/* ==========================================================================
   Section title helper (left heading + right lead), about flavour
   ========================================================================== */
.ab-sectitle {
  max-width: 62rem;
  margin-bottom: clamp(3rem, 4vw, 5.5rem);
}

.ab-sectitle--wide {
  max-width: 80rem;
}

.ab-sectitle__title {
  margin: 0 0 1.8rem;
  font-family: var(--_font-accent);
  font-weight: var(--fw-medium);
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--t-bright);
}

.ab-sectitle__title em {
  font-style: italic;
  color: var(--accent);
}

.ab-sectitle__lead {
  margin: 0;
  font-family: var(--_font-default);
  font-size: clamp(1.6rem, 1.4vw, 1.85rem);
  line-height: 1.6;
  color: var(--t-medium);
}
