/* ============================================================================
   BEPCO Studio — About page styles (loaded only on /about/ via pageCss).
   Ported from design/mockups/bepco-about.html; colors/fonts → tokens.
   Page-hero title classes are namespaced `ph-*` to avoid colliding with the
   homepage hero classes in site.css.
   ============================================================================ */

/* ── PAGE HERO (dark) ── */
.page-hero {
  background: var(--color-soot);
  padding: 80px 52px 72px;
  position: relative;
  overflow: hidden;
}
/* Engineering-paper grid on the soot background — same treatment as the
   Experiences hero. Sits behind the text (and behind the right-hand image). */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,134,10,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,134,10,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}
.inner { max-width: 1060px; margin: 0 auto; position: relative; z-index: 1; }
.hero-inner { max-width: 560px; }
/* Right-anchored hero image, bleeding to the edge with a left fade — the same
   treatment as the Archive head (.av-head-media). Sits behind the text. */
.ph-hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: sepia(0.3) saturate(0.8) contrast(0.95) brightness(1.04);
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(to left, black 62%, transparent 100%);
  mask-image: linear-gradient(to left, black 62%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.ph-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.55);
  margin-bottom: 14px;
}
.ph-title {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 400;
  color: rgba(245,240,232,0.92);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.ph-title em { color: var(--color-amber); font-style: normal; display: block; }

.ph-rule { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ph-rule-line { flex: 1; height: 1px; background: rgba(200,134,10,0.2); }
.ph-rule-line.short { flex: 0; width: 20px; }
.ph-rule-diamond { width: 5px; height: 5px; background: var(--color-amber); opacity: 0.4; transform: rotate(45deg); flex-shrink: 0; }

.hero-sub {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.35);
}
/* Responsive line break in the hero sub: hidden on desktop, active on mobile
   so each sentence lands on its own line. */
.br-mobile { display: none; }
/* Animate the mobile contrast bump so crossing the breakpoint isn't jarring. */
.ph-eyebrow, .ph-title, .hero-sub { transition: color 0.35s var(--ease), text-shadow 0.35s var(--ease); }

.real-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(200,134,10,0.3);
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.6);
  margin-bottom: 18px;
}
.hero-mission {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.hero-mission em { color: rgba(245,240,232,0.9); font-style: italic; }
.hero-domain {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  color: var(--color-amber);
  opacity: 0.7;
  margin-top: 20px;
}

/* ── INTRODUCTION (moved from the hero right column; sits on the light body,
   above section 01, and carries the EB watermark the hero used to hold) ── */
.about-introduction { margin-bottom: 80px; }
/* EB watermark now anchors section 01 (The Fictional Universe) in its
   bottom-right. The section has no overflow:hidden, so the glyph is never
   clipped on the bottom or right. */
.about-universe { position: relative; }
.about-universe > * { position: relative; z-index: 1; }
.about-universe::after {
  content: 'EB';
  position: absolute;
  right: 0;
  bottom: 0;
  font-family: var(--font-serif);
  font-size: 260px;
  font-weight: 700;
  color: rgba(26,22,18,0.04);
  line-height: 0.82;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
.about-introduction .real-badge { margin-bottom: 24px; }
.intro-mission {
  font-family: var(--font-serif);
  font-size: var(--fs-17);
  line-height: 1.7;
  color: var(--color-carbon);
  max-width: 760px;
  margin-bottom: 20px;
}
.intro-mission em { font-style: italic; color: var(--color-amber-dk); }
.intro-domain {
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  letter-spacing: 0.08em;
  color: var(--color-amber-dk);
}

/* ── MAIN ── */
.main { max-width: 1060px; margin: 0 auto; padding: 80px 52px; }
.section { margin-bottom: 80px; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26,22,18,0.08);
  margin-bottom: 40px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.8);
}
.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-carbon);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

.body-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(26,22,18,0.65);
  margin-bottom: 18px;
}
.body-text em { color: var(--color-carbon); font-style: italic; }
.body-text strong.amber { color: var(--color-amber); font-weight: 700; }
.body-text a { color: var(--color-amber-dk); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s var(--ease); }
.body-text a:hover { color: var(--color-amber); }
.body-text:last-child { margin-bottom: 0; }

.pull-quote { border-left: 2px solid rgba(200,134,10,0.3); padding: 4px 0 4px 20px; margin: 24px 0; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.25s var(--ease); }
/* Hover brings the quote card to life: the amber spine lights up, a faint amber
   wash fills in, the block nudges right, and the faded text sharpens. */
.pull-quote:hover { border-left-color: var(--color-amber); background: rgba(200,134,10,0.05); padding-left: 26px; }
.pull-quote:hover p { color: rgba(26,22,18,0.82); }
.pull-quote:hover cite { color: var(--color-amber); }
.pull-quote p { font-family: var(--font-serif); font-size: 16px; font-style: italic; line-height: 1.7; color: rgba(26,22,18,0.5); transition: color 0.25s var(--ease); }
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200,134,10,0.45);
  transition: color 0.25s var(--ease);
  margin-top: 8px;
  font-style: normal;
}

/* Light-ground link button (amber-outline, fills on hover). */
.link-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid rgba(200,134,10,0.45);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-soot);
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.link-button:hover { background: var(--color-amber); border-color: var(--color-amber); color: var(--color-carbon); }

/* Era timeline — each era gets its own tinted plate + thin outline. */
.era-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 20px 22px; margin-bottom: 12px; border: 1px solid rgba(26,22,18,0.1); transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease); }
.era-item:last-child { margin-bottom: 0; }
/* Hover: deepen each card's tinted background (raise the alpha, never to full)
   and firm up its border, matching the hover language used elsewhere. */
.era-founding { background: rgba(200,134,10,0.06); border-color: rgba(200,134,10,0.28); }
.era-founding:hover { background: rgba(200,134,10,0.16); border-color: rgba(200,134,10,0.45); }
.era-operational { background: rgba(122,158,138,0.09); border-color: rgba(122,158,138,0.32); }
.era-operational:hover { background: rgba(122,158,138,0.2); border-color: rgba(122,158,138,0.5); }
.era-contemporary { background: rgba(26,22,18,0.045); border-color: rgba(26,22,18,0.16); }
.era-contemporary:hover { background: rgba(26,22,18,0.1); border-color: rgba(26,22,18,0.28); }
.era-dates { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(200,134,10,0.85); padding-top: 2px; line-height: 1.6; }
.era-name { font-family: var(--font-serif); font-size: 16px; color: var(--color-carbon); margin-bottom: 5px; }
.era-desc { font-family: var(--font-serif); font-size: 13px; font-style: italic; line-height: 1.7; color: rgba(26,22,18,0.45); }

/* Data cards */
.data-card { background: var(--color-vellum); border: 1px solid rgba(26,22,18,0.07); border-left: 3px solid var(--color-amber); padding: 20px 24px; margin-bottom: 14px; }
.data-card-label { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(200,134,10,0.5); margin-bottom: 7px; }
.data-card-value { font-family: var(--font-serif); font-size: 14px; color: var(--color-carbon); line-height: 1.6; }
.data-card-value span { font-family: var(--font-mono); font-size: 12px; color: var(--color-amber); display: block; margin-top: 4px; }

/* Code block */
.code-block { background: rgba(26,22,18,0.04); border: 1px solid rgba(26,22,18,0.08); padding: 16px 20px; margin-bottom: 14px; }
.code-row { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--color-amber); line-height: 2; text-decoration: none; display: block; transition: color 0.2s var(--ease); }
.code-row span { color: rgba(26,22,18,0.35); font-family: var(--font-serif); font-size: 11px; font-style: italic; letter-spacing: 0; display: block; line-height: 1.4; margin-bottom: 8px; transition: color 0.2s var(--ease); }
.code-row:hover { color: var(--color-amber-lt); }
.code-row:hover span { color: rgba(26,22,18,0.6); }

/* Offerings — drawn as a collection of individual item tiles rather than one
   box of middot-separated text. Each tile echoes the .data-card amber spine. */
.offerings { margin-bottom: 14px; }
.offerings-label { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(200,134,10,0.6); margin-bottom: 12px; }
.offerings-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.offering-item {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-11);
  letter-spacing: 0.04em;
  color: var(--color-carbon);
  text-decoration: none;
  background: var(--color-vellum);
  border: 1px solid rgba(26,22,18,0.10);
  border-left: 3px solid var(--color-amber);
  padding: 12px 14px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.offering-item:hover { background: rgba(200,134,10,0.08); border-color: var(--color-amber); border-left-color: var(--color-amber); color: var(--color-amber-dk); }

/* Correspondence on light ground */
.fc-plate-light { flex: 0 1 290px; display: flex; flex-direction: column; gap: 5px; text-decoration: none; padding: 16px 0 16px 18px; border-left: 1px solid rgba(200,134,10,0.22); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.fc-plate-light:hover { border-left-color: var(--color-amber); transform: translateX(2px); }
.fc-plate-code-light { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(200,134,10,0.5); }
.fc-plate-handle-light { font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: rgba(26,22,18,0.82); transition: color 0.2s var(--ease); }
.fc-plate-light:hover .fc-plate-handle-light { color: var(--color-amber); }
.fc-plate-note-light { font-family: var(--font-serif); font-size: 12px; font-style: italic; color: rgba(26,22,18,0.42); line-height: 1.5; }
.fc-plate-url-light { font-family: var(--font-mono); font-size: var(--fs-13); letter-spacing: 0.04em; color: rgba(26,22,18,0.55); margin-top: 4px; }
/* Centred flex-wrap so an odd count (5) reads as an intentional 3-over-2 rather
   than a 3-col grid with an empty cell; also wraps gracefully on narrow screens. */
.fc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; }

/* ── SEAM SECTION (dark) ── */
.seam-section { background: var(--color-soot); padding: 72px 52px; position: relative; overflow: hidden; }
.seam-section::before {
  content: 'KDJ';
  position: absolute;
  right: 40px;
  bottom: 40px;
  font-family: var(--font-serif);
  font-size: 320px;
  font-weight: 700;
  color: rgba(200,134,10,0.035);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.seam-inner { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.seam-label { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(200,134,10,0.7); margin-bottom: 12px; }
.seam-rule { width: 24px; height: 1px; background: var(--color-amber); opacity: 0.25; margin-bottom: 16px; }
.seam-title { font-family: var(--font-serif); font-size: 30px; font-weight: 400; color: rgba(245,240,232,0.88); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 20px; }
.seam-body { font-family: var(--font-serif); font-size: 15.5px; line-height: 1.85; color: rgba(255,255,255,0.62); margin-bottom: 14px; }
.seam-ref { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; color: rgba(200,134,10,0.28); margin-top: 24px; }

/* Portfolio button beneath the credentials list — solid amber, matching the
   download buttons on the site it links to (kevin-d-jones.com). */
.seam-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--color-amber);
  border: 1px solid var(--color-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-carbon);
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.seam-button:hover { background: var(--color-amber-lt); border-color: var(--color-amber-lt); }
.cred-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cred-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--color-amber); opacity: 0.4; flex-shrink: 0; }
.cred-text { font-family: var(--font-mono); font-size: var(--fs-11); letter-spacing: 0.08em; color: rgba(255,255,255,0.28); }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .page-hero { padding: 48px 20px 44px; }
  .hero-inner { max-width: none; }
  .br-mobile { display: inline; }
  /* Fade the image further back on small screens so the text stays legible
     over it as they overlap. */
  .ph-hero-media {
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to left, black 22%, transparent 92%);
    mask-image: linear-gradient(to left, black 22%, transparent 92%);
  }
  .ph-title { font-size: 34px; }
  /* Hero text sits over the image once stacked — brighten the secondary text
     and lift all of it off the image with a soft shadow so it never fades. */
  .ph-title { color: #F5F0E8; }
  .ph-eyebrow { color: var(--color-amber-lt); }
  .hero-sub { color: rgba(255,255,255,0.82); }
  .ph-eyebrow, .ph-title, .hero-sub { text-shadow: 0 1px 14px rgba(18,14,10,0.6); }
  .main { padding: 48px 20px; }
  .section { margin-bottom: 56px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .fc-grid { grid-template-columns: 1fr; gap: 4px; }
  .seam-section { padding: 48px 20px; }
  /* Shrink the KDJ watermark on mobile so it fits the narrow column instead of
     being clipped off the left edge. */
  .seam-section::before { font-size: 130px; }
  .seam-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-universe::after { font-size: 150px; }
}
