/* =====================================================================
 * about.css — Polyphase About page styles
 *
 * Reference: site-spec v0.4 §4.2 / §4.6 / §13.8, about-source-jp.md v1.0,
 * editorial-methodology-jp.md v0.1.
 *
 * Scope rule: every selector is namespaced under `.page--about` so it
 * cannot collide with top-page selectors (.brand, .hero in base.css mean
 * different things on the top page). tokens.css + base.css load FIRST;
 * this file is loaded only on /about/.
 *
 * What lives here:
 *   - Hero (portrait inset + name, NOT full-bleed per editorial tone)
 *   - Body two-column (main narrative + sidebar with expertise / media)
 *   - Methodology of the editorial (independent visible section, 7 principles)
 *   - Nikola Power Consultancy Inc. legal footer (quiet <dl>)
 *   - Mobile breakpoint at 900px
 *   - prefers-reduced-motion safety net
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * Page shell
 * ------------------------------------------------------------------- */
.page--about {
  background: var(--bg);
  color: var(--text);
}
.page--about .about-shell {
  display: block;
}
.page--about section {
  padding: 96px 7vw;
  position: relative;
}
.page--about .section-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.page--about .section-label .num {
  color: var(--signal);
  font-weight: 600;
}
.page--about .visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------
 * Hero — portrait inset + name (M-1 editorial tone, no full-bleed)
 * ------------------------------------------------------------------- */
.page--about .about-hero {
  padding: 12vh 7vw 80px;
  border-bottom: 1px solid var(--rule);
}
.page--about .about-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: end;
}
.page--about .about-hero__portrait {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  background: var(--bg-elev);
  overflow: hidden;
  position: relative;
}
.page--about .about-hero__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: contrast(1.02);
}
.page--about .about-hero__name h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.page--about .about-hero__name h1 small {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.04em;
  color: var(--text-mute);
  margin-top: 18px;
}

/* ---------------------------------------------------------------------
 * Body — three-person narrative + sidebar
 * ------------------------------------------------------------------- */
.page--about .about-body {
  padding: 96px 7vw 96px;
  background: var(--bg);
}
.page--about .about-body__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.page--about .about-body__main {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
  color: var(--text);
  max-width: 64ch;
}
.page--about .about-body__epigraph {
  margin: 0 0 40px;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--signal);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page--about .about-body__main p {
  margin: 0 0 22px;
}
.page--about .about-body__main p strong {
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--text);
  /* Editorial restraint: no background, no colour — only weight + tracking */
}
.page--about .about-body__close {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.7;
  color: var(--text);
}

/* Sidebar */
.page--about .about-body__sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page--about .about-side-block {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.page--about .about-side-block__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.page--about .about-side-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-mute);
}
.page--about .about-side-block__list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.page--about .about-side-block__list li:last-child {
  border-bottom: none;
}
.page--about .about-side-block__list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.page--about .about-side-block__list--inline li {
  border-bottom: none;
  padding: 0;
}
.page--about .about-side-block__list--inline li::after {
  content: "·";
  margin-left: 14px;
  color: var(--text-soft);
}
.page--about .about-side-block__list--inline li:last-child::after {
  content: "";
}

/* ---------------------------------------------------------------------
 * Methodology of the editorial — independent always-visible section
 * (site-spec v0.4 #20, §13.8). Surrounded by elevated background +
 * hairline so it reads as a distinct block.
 * ------------------------------------------------------------------- */
.page--about .about-methodology {
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 120px 7vw;
}
.page--about .about-methodology__inner {
  max-width: 880px;
  margin: 0 auto;
}
.page--about .about-methodology h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--text);
}
.page--about .about-methodology__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text-mute);
  margin: 0 0 56px;
  max-width: 56ch;
}
.page--about .methodology-principles {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle-counter;
}
.page--about .methodology-principles > li.principle {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
}
.page--about .methodology-principles > li.principle:last-child {
  border-bottom: 1px solid var(--rule);
}
.page--about .principle h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.page--about .principle__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--signal);
  flex-shrink: 0;
  min-width: 24px;
}
.page--about .principle p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  margin: 0;
  max-width: 60ch;
}
.page--about .principle p strong {
  font-weight: 600;
}
.page--about .principle code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--text);
}
.page--about .principle__donts {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page--about .principle__donts li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
  max-width: 60ch;
}
.page--about .principle__donts li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-soft);
}

/* ---------------------------------------------------------------------
 * Nikola Power Consultancy Inc. — quiet legal footer block
 * ------------------------------------------------------------------- */
.page--about .about-org {
  background: var(--bg);
  padding: 96px 7vw 120px;
}
.page--about .about-org__inner {
  max-width: 880px;
  margin: 0 auto;
}
.page--about .about-org h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--text);
}
.page--about .about-org__lead {
  font-size: 14px;
  color: var(--text-mute);
  margin: 0 0 40px;
}
.page--about .about-org__facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.page--about .about-org__facts > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.page--about .about-org__facts dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}
.page--about .about-org__facts dd {
  font-size: 14px;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}
.page--about .about-org__facts a {
  color: var(--signal);
  border-bottom: 1px solid var(--signal);
  padding-bottom: 1px;
  transition: opacity 160ms var(--ease);
}
.page--about .about-org__facts a:hover { opacity: 0.7; }

/* ---------------------------------------------------------------------
 * Mobile
 * ------------------------------------------------------------------- */
@media (max-width: 900px) {
  .page--about section { padding: 72px 6vw; }
  .page--about .about-hero { padding: 80px 6vw 48px; }
  .page--about .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page--about .about-hero__portrait {
    max-width: 100%;
  }
  .page--about .about-body__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .page--about .about-body__sidebar {
    position: static;
  }
  .page--about .about-methodology { padding: 80px 6vw; }
  .page--about .methodology-principles > li.principle { padding: 28px 0; }
  .page--about .about-org__facts > div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
}

/* ---------------------------------------------------------------------
 * prefers-reduced-motion safety net
 * ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page--about *,
  .page--about *::before,
  .page--about *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
}
