/**
 * about.css — About page specific styles
 * Elevated to the Home design language: dark editorial hero with blueprint
 * texture + warm copper glow, split-text headline, sticky photo with copper
 * hairline, diagonal light/dark seams, discipline counter-band, pre-footer CTA.
 * Reuses global tokens, .hero__eyebrow / .hero__headline word-reveal,
 * .section-divider--diagonal*, data-animate reveals.
 * Depends on: tokens.css, layout.css, base.css, components/*.css
 */

/* ============================================================
 * ABOUT HERO — dark editorial band (echoes Home hero language)
 * ============================================================ */

.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 78svh;
  padding: calc(var(--sp-9) + var(--sp-8)) 0 var(--sp-9);
  background:
    radial-gradient(120% 90% at 78% 18%, var(--hero-warm-glow) 0%, transparent 55%),
    linear-gradient(168deg, var(--c-navy) 0%, var(--c-navy-deep) 100%);
}

/* Whisper-quiet blueprint grid wash, radially masked from top */
.about-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 248, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 248, 250, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(110% 80% at 30% 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(110% 80% at 30% 0%, #000 35%, transparent 100%);
}

/* Hero editorial visual — anchored right, copper-edged, masked into the band */
.about-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.about-hero__visual {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(38%, 44vw, 52%);
  height: 100%;
}

.about-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 42%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 0%, #000 42%, #000 100%);
}

/* Bottom-weighted navy scrim so the headline stays AA over any frame */
.about-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 20, 41, 0.2) 0%, transparent 30%, rgba(6, 20, 41, 0.7) 100%),
    linear-gradient(90deg, var(--c-navy-deep) 18%, transparent 70%);
}

.about-hero__inner {
  position: relative;
  width: 100%;
}

.about-hero__content {
  max-width: 34rem;
}

/* Eyebrow — self-contained scrim chip + leading copper hairline (AA on dark).
 * Mirrors the Home .hero__eyebrow; redeclared locally so about.css is
 * self-sufficient (home.css is not loaded here). data-animate drives the
 * reveal, so reduced-motion is inherited from layout.css. */
.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-copper-bright);
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid rgba(184, 115, 51, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(6, 20, 41, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  margin-bottom: var(--sp-5);
}

.about-hero__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-copper);
  flex: 0 0 auto;
}

.about-hero__headline {
  font-family: var(--font-serif);
  /* Tuned down from --fs-h1 so the first sentence fits one line in the 34rem
   * content column → clean two-line treatment ("A discrete facilitator." /
   * "A reliable partner."). Do NOT restore var(--fs-h1) — it forces a mid-
   * sentence wrap. Verified EN+ES in browser. */
  font-size: clamp(2.25rem, 4vw, 2.85rem);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--c-white);
  font-weight: 300;
  max-width: 24ch;
  margin: 0;
}

/* --- Reuse the Home cinematic word-reveal (splittext targets .hero__headline) --- */
.about-hero__headline .word {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.about-hero__headline .word-inner {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: aboutWordReveal var(--dur-cinematic) var(--ease-out) forwards;
  animation-delay: calc(0.15s + var(--word-index, 0) * 0.09s);
}

@keyframes aboutWordReveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 0;
    padding: calc(var(--sp-9) + var(--sp-6)) 0 var(--sp-7);
  }
  .about-hero__visual { width: 100%; opacity: 0.32; }
  .about-hero__visual img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
  }
  .about-hero__headline { font-size: clamp(2.25rem, 9vw, 2.75rem); max-width: 18ch; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__headline .word-inner {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
 * EDITORIAL TWO-COLUMN  (light band hosting a raised photo)
 * ============================================================ */

.about-editorial {
  position: relative;
  isolation: isolate;
  background: var(--c-bone-deep);
}

/* Whisper-quiet blueprint wash on the light ground */
.about-editorial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11, 30, 63, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 30, 63, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000 40%, transparent 100%);
}

.about-editorial__grid {
  display: grid;
  grid-template-columns: 1fr clamp(340px, 34vw, 440px);
  gap: var(--sp-8);
  align-items: start;
}

@media (max-width: 1024px) {
  .about-editorial__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-7);
  }
}

/* Left column */
.about-editorial__header {
  margin-bottom: var(--sp-6);
}

.about-editorial__section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--c-navy);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  margin: 0;
}

.about-editorial__paragraph {
  font-size: var(--fs-body);
  line-height: var(--leading-relaxed);
  color: var(--c-ink);
  max-width: 62ch;
  margin-bottom: var(--sp-5);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--c-fog-2);
  transition: border-color var(--dur-medium) var(--ease-out);
}

.about-editorial__paragraph:last-child { margin-bottom: 0; }

.about-editorial__paragraph[data-animate].is-visible {
  border-left-color: var(--c-copper);
}

.about-editorial__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

/* Right column — sticky raised photo */
.about-editorial__visual {
  position: sticky;
  top: calc(var(--sp-9) + var(--sp-2));
}

@media (max-width: 1024px) {
  .about-editorial__visual { position: static; max-width: 440px; }
}

.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
  background: var(--c-navy);
  box-shadow:
    0 1px 1px rgb(11 30 63 / 0.10),
    0 24px 72px rgb(11 30 63 / 0.18);
}

/* Resting copper top-hairline that grows on hover (echoes the pillar card) */
.about-photo__hairline {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--c-copper);
  z-index: 2;
  transition: width var(--dur-medium) var(--ease-out);
}

.about-photo:hover .about-photo__hairline { width: 96px; }

/* Blueprint pattern overlay (PNG fallback + image-set for webp) */
.about-photo__pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../../assets/patterns/A2-pattern.png');
  background-image: image-set(
    url('../../assets/patterns/A2-pattern.avif') type('image/avif'),
    url('../../assets/patterns/A2-pattern.webp') type('image/webp'),
    url('../../assets/patterns/A2-pattern.png') type('image/png')
  );
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
}

.about-photo img,
.about-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
  transition: transform var(--dur-cinematic) var(--ease-out);
}

.about-photo.is-visible img,
.about-photo.is-visible .about-photo__img {
  transform: scale(1);
}

.about-photo:hover img,
.about-photo:hover .about-photo__img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .about-photo img,
  .about-photo__img,
  .about-photo__hairline {
    transition: none;
    transform: none;
  }
  .about-photo:hover img,
  .about-photo:hover .about-photo__img { transform: none; }
}

/* ============================================================
 * DISCIPLINE COUNTER-BAND  (dark, centered statement)
 * ============================================================ */

.about-discipline {
  background: var(--c-navy);
  padding: var(--sp-9) 0;
  text-align: center;
  position: relative;
}

.about-discipline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--c-copper);
}

.about-discipline__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--c-copper-bright);
  margin-bottom: var(--sp-4);
}

.about-discipline__statement {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-white);
  line-height: var(--leading-snug);
  max-width: 36ch;
  margin: 0 auto;
  position: relative;
  padding-bottom: var(--sp-4);
}

.about-discipline__statement::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--c-copper);
  transition: width var(--dur-long) var(--ease-out);
}

.about-discipline__statement.is-visible::after {
  width: 48px;
}

@media (prefers-reduced-motion: reduce) {
  .about-discipline__statement::after { transition: none; }
}

/* ============================================================
 * PRE-FOOTER CTA — mirrors the shared .cta-band pattern
 * ============================================================ */

.about-cta {
  background: var(--c-navy);
  padding-block: var(--sp-10);
  border-top: 1px solid rgba(184, 115, 51, 0.25);
}

.about-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
}

@media (max-width: 768px) {
  .about-cta__inner {
    flex-direction: column;
    text-align: center;
  }
}

.about-cta__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  color: var(--c-white);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-snug);
  max-width: 32ch;
  margin-bottom: var(--sp-3);
}

.about-cta__title em {
  font-style: italic;
  color: var(--c-copper-bright);
}

.about-cta__sub {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: rgba(247, 248, 250, 0.7);
  line-height: var(--leading-relaxed);
  max-width: 40ch;
}

@media (max-width: 768px) {
  .about-cta__sub { text-align: center; }
}

/* ============================================================
 * DIAGONAL SECTION SEAMS (replicated from the home language with
 * tokens — home.css is not loaded on this page, so redeclare locally).
 * ============================================================ */
.section-divider--diagonal {
  position: relative;
  height: 80px;
  background: var(--c-bone-deep);
  clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
}

.section-divider--diagonal-dark {
  height: 80px;
  background: var(--c-navy);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 100%);
  margin-top: -2px;
}
