/* ── ABOUT PAGE ──
   Intro → hero → ons proces (reel) → filosofie → designer → werk → Solid Collective.
   The closing Contact block is the shared .project-next from project.css. Everything
   is prefixed ab- so it never collides with the shared styles. Motion lives in
   js/about-page.js. */

.ab { position: relative; z-index: 1; }
/* The shared `section` rule adds 12vh / 5vw padding, so every section below
   sets its full padding shorthand (side padding comes from .ab-wrap). */

.ab-wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: 5vw; }

/* ── Type ── */
.ab-display {
  font-family: var(--font-title); font-weight: 800;
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance;
  text-transform: uppercase;
}
.ab-accent { color: var(--accent); }
.ab-lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text); text-wrap: balance;
  text-transform: uppercase;
}

/* ── Reveal helpers (js adds the motion) ── */
.ab-reveal { opacity: 0; transform: translateY(40px); }
[data-split] { visibility: hidden; }
/* Each word is its own mask, so letters rise out from behind its baseline */
.ab-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.06em 0.14em 0; margin: -0.08em -0.06em -0.14em 0; }
.ab-c, .ab-wi { display: inline-block; will-change: transform; }

/* ── 0. Intro ── */
/* Fills the first screen; the canvas lays itself out for any shape of screen (js/about-intro.js) */
.ab-reel {
  position: relative;
  height: 100vh; height: 100svh;
  background: var(--bg);
  overflow: hidden;
}
.ab-reel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-reel-cue { position: absolute; left: 50%; bottom: clamp(1.25rem, 3.5vh, 2.5rem); transform: translateX(-50%); }

/* ── 1. Hero ── */
.ab-hero { position: relative; isolation: isolate; padding: clamp(5rem, 13vh, 9rem) 0 clamp(2rem, 6vh, 4rem); }
.ab-hero > .ab-wrap { position: relative; }
/* Covers the whole section, pin spacing included; the sticky canvas fills the screen meanwhile */
.ab-story-bg { position: absolute; inset: 0; pointer-events: none; }
.ab-waves { position: sticky; top: 0; display: block; width: 100%; height: 100vh; height: 100svh; }
.ab-hero .section-label, .ab-block .section-label { margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.ab-hero-title { font-size: 2rem; max-width: 11ch; }

/* Pins 96px from the top (js/about-page.js), just below the nav. The type follows the screen's
   height as well as its width, so the whole story always fits beneath the heading */
.ab-story { overflow-x: clip; }
.ab-story-text {
  margin-top: clamp(1rem, 4vh, 2.5rem); max-width: 60ch;
  font-size: clamp(0.8125rem, min(3svh, 4.2vw), 1.5rem); line-height: 1.35;
  color: var(--text);
}
.ab-story-text p + p { margin-top: 1em; }
.ab-story-w { display: inline-block; }

/* Highlights. Without the scroll animation they simply stand purple with a soft glow */
.ab-hl {
  background: none; color: var(--accent);
  text-shadow: 0 0 0.6em rgba(139, 95, 163, 0.7);
}
/* Two layers clipped to the letters: a light that passes by, over a front that burns from cream to purple */
.ab-hl .ab-story-w {
  color: transparent; text-shadow: none;
  background-image:
    linear-gradient(100deg, transparent 42%, var(--text) 50%, transparent 58%),
    linear-gradient(100deg, var(--accent) 45%, var(--text) 55%);
  background-size: 300% 100%;
  background-position: 100% 0, 100% 0;
  -webkit-background-clip: text; background-clip: text;
  transition: background-position 0.8s ease-out calc(var(--i) * 0.14s);
}
/* Lit: the flare runs once, then the glow breathes and the light passes by now and then.
   The letters keep their place and only ever get brighter, so reading goes on undisturbed */
.ab-hl.is-lit .ab-story-w {
  background-position: 100% 0, 0 0;
  animation:
    ab-hl-flare 1.4s ease-out calc(var(--i) * 0.14s) both,
    ab-hl-breathe 3.6s ease-in-out calc(1.4s + var(--i) * 0.14s) infinite alternate,
    ab-hl-sheen 9s ease-in-out calc(2.5s + var(--g) * 1.7s + var(--i) * 0.14s) infinite;
}
@keyframes ab-hl-flare {
  0% { filter: drop-shadow(0 0 0 rgba(139, 95, 163, 0)) drop-shadow(0 0 0 rgba(139, 95, 163, 0)); }
  30% { filter: drop-shadow(0 0 0.2em rgba(139, 95, 163, 1)) drop-shadow(0 0 1em rgba(139, 95, 163, 1)); }
  100% { filter: drop-shadow(0 0 0.1em rgba(139, 95, 163, 0.8)) drop-shadow(0 0 0.4em rgba(139, 95, 163, 0.7)); }
}
@keyframes ab-hl-breathe {
  from { filter: drop-shadow(0 0 0.1em rgba(139, 95, 163, 0.8)) drop-shadow(0 0 0.4em rgba(139, 95, 163, 0.7)); }
  to { filter: drop-shadow(0 0 0.15em rgba(139, 95, 163, 1)) drop-shadow(0 0 0.7em rgba(139, 95, 163, 1)); }
}
@keyframes ab-hl-sheen {
  0% { background-position: 100% 0, 0 0; }
  14%, 100% { background-position: 0 0, 0 0; }
}

/* ── 2. Ons proces ── */
/* Fills the screen like the intro; the canvas lays the steps out around the heading (js/about-process.js) */
.ab-proc { position: relative; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
.ab-proc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-proc-head { position: relative; padding-top: 96px; pointer-events: none; }
.ab-proc-head .section-label { margin-bottom: 0.5rem; }
/* The steps as text, read by screen readers; only reduced motion shows them (below) */
.ab-proc-list {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* ── Plain sections: eyebrow + title (filosofie, designer, werk, Solid Collective) ── */
.ab-block { padding: clamp(3rem, 12vh, 7rem) 0; }
.ab-block-title { font-size: 2rem; line-height: 1.05; }

/* Onze filosofie: set like the story under Over ons (.ab-story-text); each word is lit by the scroll (js/about-page.js) */
.ab-philo-text {
  margin-top: clamp(1rem, 4vh, 2.5rem); max-width: 60ch;
  font-size: clamp(0.8125rem, min(3svh, 4.2vw), 1.5rem); line-height: 1.35;
  color: var(--text);
}
.ab-philo-text p + p { margin-top: 1em; }
/* Fills the screen like the sections above it, the text in the middle */
.ab-philo { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.ab-philo { position: relative; }
/* The stamp, bottom right. It simply stands there unless the script holds it back to press it */
.ab-stamp {
  position: absolute; right: 5vw; bottom: clamp(1.5rem, 7vh, 4.5rem);
  width: clamp(110px, 13vw, 200px); height: auto; overflow: visible;
  color: var(--accent); transform: rotate(-12deg);
}
.ab-stamp-text { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; }
.ab-stamp-hit { opacity: 0; transform-origin: 100px 100px; transform-box: view-box; }
.ab-stamp.is-waiting { opacity: 0; }
/* Pressed: drops in from above the page, squashes onto it, a ring of ink spreads from the impact */
.ab-stamp.is-stamped { animation: ab-stamp-press 0.55s cubic-bezier(0.3, 0, 0.2, 1) both; }
.ab-stamp.is-stamped .ab-stamp-hit { animation: ab-stamp-hit 0.6s ease-out 0.28s both; }
.ab-philo.is-stamped > .ab-wrap { animation: ab-stamp-jolt 0.3s ease-out 0.28s; }
@keyframes ab-stamp-press {
  0% { opacity: 0; transform: rotate(-26deg) scale(2.2); filter: blur(6px); }
  50% { opacity: 1; transform: rotate(-12deg) scale(0.92); filter: blur(0); }
  68% { transform: rotate(-12deg) scale(1.04); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}
@keyframes ab-stamp-hit {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(1.45); }
}
@keyframes ab-stamp-jolt {
  30% { transform: translate(1px, 2px); }
  60% { transform: translate(-1px, -1px); }
}
.ab-lit-w { display: inline-block; will-change: opacity, filter, transform; }

/* Wat wij creëren: the phone mockup, edge to edge across the page; js/about-werk.js places the photo and its screen */
.ab-werk {
  position: relative; margin-top: clamp(2rem, 6vh, 4rem);
  aspect-ratio: 3 / 2; max-height: 88vh; max-height: 88svh; width: 100%;
  overflow: hidden; background: #6f4a8a;
}
.ab-werk-mockup, .ab-werk-screen { position: absolute; left: 0; top: 0; display: block; max-width: none; }
.ab-werk-mockup { width: 100%; height: 100%; object-fit: cover; }   /* until the script has placed it */

/* De designer: portrait beside quote and text, placeholders until the content arrives */
.ab-founder {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5vw;
  margin-top: clamp(2rem, 6vh, 4rem);
}
/* Rounded like the portrait on the home page (.about-visual) */
.ab-founder-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 12px; background: rgba(236, 235, 225, 0.06);
}
.ab-founder-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A purple panel that sweeps off the photo; hidden unless the script plays it */
.ab-founder-wipe { position: absolute; inset: 0; background: var(--accent); visibility: hidden; }
.ab-founder-socials { margin-top: 1.25rem; }
/* Set like the text under Over ons and Onze filosofie */
/* The text runs longer than the photo: the photo stays beside it while you read */
.ab-founder-media { position: sticky; top: 110px; align-self: start; }
.ab-founder-text {
  max-width: 60ch;
  font-size: clamp(0.8125rem, min(3svh, 4.2vw), 1.5rem); line-height: 1.5;
  color: var(--text);
}
.ab-founder-text p + p { margin-top: 1em; }
.ab-founder-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
/* once the words are split for the scroll light-up they are inline-blocks, which the link's underline
   skips: it would only show under the spaces, as a stray "_". Draw the line as a background on the
   link instead, so it runs unbroken under its words and the spaces between them */
.ab-founder-text a:has(.ab-lit-w) {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 0.06em) / 100% 1px no-repeat;
}

/* Solid Collective: text as under the founder, then the quote, then a landscape photo */
.ab-solid-text { margin-top: clamp(1.5rem, 5vh, 3rem); }
.ab-solid-quote {
  margin: clamp(3rem, 10vh, 6rem) 0 clamp(2rem, 6vh, 4rem);
  font-size: clamp(2rem, 6vw, 5rem); line-height: 1.05;
}
.ab-solid-photo {
  margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  border-radius: 12px; background: rgba(236, 235, 225, 0.06);
}
.ab-solid-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* the photos under it: the project pages' grid (.project-gallery--grid, css/project.css) */
.ab-solid-gallery { margin-top: 16px; padding-bottom: 0; }
/* photo credit under the grid, small and grey (.project-info-note) */
.ab-solid-credit { margin-top: 0.25rem; }
.ab-solid-credit a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; transition: color 0.3s ease; }
.ab-solid-credit a:hover { color: var(--accent); }


/* A phone on its side has no room for the heading beside the steps */
@media (max-height: 480px) and (orientation: landscape) {
  .ab-proc-head { display: none; }
}

/* ── Smaller screens ── */
@media (max-width: 900px) {
  .ab-hero { padding-bottom: 1rem; }
  .ab-story-text, .ab-philo-text, .ab-founder-text { font-size: clamp(0.8125rem, min(2.2svh, 4.2vw), 1.5rem); }
  .ab-stamp { width: 96px; bottom: 1rem; }   /* clear of the last line on a phone */
  .ab-founder { grid-template-columns: 1fr; }
  .ab-werk { aspect-ratio: 3 / 4; }
  .ab-founder-media { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-waves { opacity: 0.15; }
  .ab-proc { height: auto; padding: 0 0 clamp(3rem, 12vh, 7rem); }
  .ab-proc-canvas { display: none; }
  .ab-proc-list {
    position: static; width: 100%; height: auto; margin: clamp(2rem, 6vh, 4rem) auto 0; padding: 0 5vw;
    overflow: visible; clip-path: none; white-space: normal;
    list-style: none; display: grid; gap: 2rem;
  }
  .ab-proc-list h3 { font-family: var(--font-title); font-weight: 800; font-size: 2rem; line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text); }
  .ab-proc-list p { margin-top: 0.5rem; color: var(--text-muted); font-size: 1.25rem; line-height: 1.35; max-width: 44ch; }
  .ab-reveal { opacity: 1; transform: none; }
  [data-split] { visibility: visible; }
}
