/**
 * @file about.css
 * @purpose Dark full-height FERQ presentation and ordered responsive navigation.
 * @dependencies about.html, about.js, shared IBM Plex font and original local artwork.
 * @public Scoped .about-* classes; never changes the interactive map's styles.
 * @sideEffects Local background requests, menu layout and reduced-motion-aware transitions.
 */

/* Page frame and shared editorial rhythm. */
body.about-page { height: auto; min-height: 100%; overflow: auto; background: #050607; }
.about-page #site-content { color: #f5f5f5; background: #050607; }
.about-page.is-locked, .about-page.has-about-menu { overflow: hidden; }
.about-page a { -webkit-tap-highlight-color: transparent; }
.about-page a:focus-visible, .about-page button:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.about-page .skip-link { z-index: 110; }

/* Logo and MAPS dimensions are exactly doubled at both existing breakpoints. */
/* Stable header: append future destinations to the single HTML navigation list. */
.about-header { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 3.5rem; min-height: 128px; padding: 20px 4vw; background: linear-gradient(#050607f5, #050607c7 70%, #05060700); }
.about-brand { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.about-logo { position: relative; display: block; width: 86px; aspect-ratio: 1037 / 982; overflow: hidden; }
/* Fit FERQ2 artwork bounds (111,123)-(1145,1130) inside the established
 * logo box without stretching the image or changing responsive dimensions. */
.about-logo img { position: absolute; width: 117.923619%; max-width: none; height: auto; left: -9.055844%; top: -12.214499%; }
.about-wordmark { font-size: 3.2rem; letter-spacing: .06em; line-height: 1; }
.about-wordmark > span { display: inline-block; mask-image: linear-gradient(to right, #000 46%, transparent 46%, transparent 51%, #000 51%); }
.about-wordmark > span:nth-child(3) { mask-image: linear-gradient(to right, #000 34%, transparent 34%, transparent 39%, #000 39%); }
.about-wordmark > span:nth-child(4) { mask-image: linear-gradient(to bottom, #000 48%, transparent 48%, transparent 53%, #000 53%); }
.about-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.about-navigation a { position: relative; padding: .7rem 0; color: #fff; font-size: .76rem; text-transform: uppercase; text-decoration: none; letter-spacing: .04em; }
.about-navigation a::after { position: absolute; inset: auto 0 4px; height: 1px; background: #fff; content: ""; transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.about-navigation a:hover::after, .about-navigation a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.about-menu-toggle { display: none; }

/* Full-height chapters leave the artwork uninterrupted behind a readable copy column. */
.about-panel { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 780px; min-height: max(740px, 100svh); padding: 150px 8vw 120px; overflow: hidden; scroll-margin-top: 128px; }
.about-copy { position: relative; z-index: 2; width: min(100%, 690px); }
.about-eyebrow { margin: 0 0 1.1rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #b6babd; }
.about-copy h1, .about-copy h2 { margin: 0; font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: 1.01; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.about-copy > p:not(.about-eyebrow) { max-width: 380px; margin: 1.5rem 0 1.9rem; color: #c8cccf; font-size: .97rem; line-height: 1.65; }
.about-action { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 56px; padding: 0 23px; border: 1px solid #787b80; color: #fff; background: transparent; font-size: .72rem; text-transform: uppercase; letter-spacing: .055em; text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.about-action span { font-size: 1.3rem; }
.about-action:hover, .about-action:focus-visible { background: #fff; color: #050607; }
.about-next { position: absolute; bottom: 30px; left: calc(50% - 24px); width: 48px; height: 48px; text-align: center; color: #fff; font-size: 2rem; text-decoration: none; }

/* Original cartographic artwork and the existing FERQ Projects illustration. */
.about-art { position: absolute; z-index: -2; inset: 0; background-position: center; background-size: cover; pointer-events: none; }
.about-panel::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #050607 4%, #050607e0 27%, #05060755 60%, #05060700 83%), linear-gradient(0deg, #050607, transparent 18%, transparent 80%, #050607); pointer-events: none; }
.about-terrain { background-image: url("assets/about-terrain.svg"); background-position: 60% center; }
.about-city { background-image: url("assets/projects-mode.png"); filter: brightness(.47) saturate(.5); background-position: 64% center; }
.about-projects::after { background: linear-gradient(90deg, #050607f5, #050607bd 38%, #05060711 85%), linear-gradient(0deg, #050607, transparent 20%, transparent 80%, #050607); }
.about-instruments { background-image: url("assets/about-instruments.svg"); }
.about-places .about-terrain { transform: scale(1.15) rotate(180deg); opacity: .7; }
.about-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem 3rem; padding: 3rem 1.5rem; border-top: 1px solid #ffffff12; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.about-footer > span { color: #858a90; }
.about-footer a { color: #fff; text-decoration: none; }

/* One navigation surface, readable at narrow widths and with keyboard-only input. */
@media (max-width: 760px) {
  .about-header { min-height: 112px; padding: 18px 24px; justify-content: space-between; gap: 1rem; }
  .about-logo { width: 72px; }
  .about-wordmark { font-size: 2.6rem; }
  .about-menu-toggle:not([hidden]) { position: relative; z-index: 2; display: grid; align-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
  .about-menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 180ms ease; }
  .about-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .about-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .about-navigation { position: fixed; inset: 112px 0 0; display: none; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 28px 24px; overflow-y: auto; background: #050607; }
  .about-navigation.is-open { display: flex; }
  .about-navigation a { padding: 1.4rem 0; border-bottom: 1px solid #ffffff25; font-size: 1.3rem; }
  .about-navigation a::after { content: none; }
  .about-panel { align-items: flex-end; min-height: max(700px, 100svh); padding: 145px 24px 110px; }
  .about-copy h1, .about-copy h2 { font-size: clamp(2.35rem, 8.5vw, 3.7rem); }
  .about-copy > p:not(.about-eyebrow) { max-width: 330px; font-size: .9rem; }
  .about-panel::after { background: linear-gradient(0deg, #050607 1%, #050607ed 25%, #05060780 65%, #05060733), linear-gradient(180deg, #050607, transparent 20%); }
  .about-terrain, .about-instruments { background-position: 67% top; }
}
@media (prefers-reduced-motion: reduce) {
  .about-page *, .about-page *::after { transition: none !important; }
}
