/* ==========================================================================
   Triple Eight Advisory - About page
   Ported from src/routes/about.tsx. Loaded only on the About page.
   Depends on the tokens in theme.css.
   ========================================================================== */

/* Scroll reveals (theme.js adds .is-visible). */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--te-ease), transform 0.7s var(--te-ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* .ab-eyebrow and .ab-btn are defined globally in theme.css (shared by inner pages). */

/* ---- Hero ---- */
.ab-hero {
  position: relative; overflow: hidden;
  padding: 9rem 1.5rem 6rem;
  background: linear-gradient(180deg, var(--te-gold-tint) 0%, var(--te-card) 65%, var(--te-canvas) 100%);
  text-align: center;
}
@media (min-width: 768px) { .ab-hero { padding: 9rem 2.5rem 7rem; } }
.ab-hero__motif { position: absolute; top: -6rem; right: -6rem; opacity: 0.1; pointer-events: none; }
.ab-hero__rule { position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(201 162 75 / 0.33), transparent); }
.ab-hero__inner { position: relative; max-width: 1180px; margin-inline: auto; }
.ab-hero__badge {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.375rem 1rem; border-radius: var(--te-radius-pill);
  background: rgb(255 255 255 / 0.7); border: 1px solid var(--te-line);
  font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--te-navy-deep);
}
.ab-hero__badge-line { width: 24px; height: 2px; background: var(--te-gold); }
.ab-hero__title {
  margin: 2rem auto 0; max-width: 980px;
  font-family: var(--te-font-display); font-weight: 500;
  font-size: clamp(2.6rem, 1.7rem + 4vw, 4.25rem); line-height: 1.03; letter-spacing: -0.02em; color: var(--te-navy-deep);
}
.ab-hero__title em { font-style: italic; color: var(--te-gold-deep); }
.ab-hero__lead { margin: 1.75rem auto 0; max-width: 680px; font-size: 1.0625rem; line-height: 1.75; color: var(--te-ink-muted); }
.ab-hero__ctas { margin-top: 2.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.ab-hero__media { position: relative; margin: 4rem auto 0; max-width: 1080px; }
.ab-hero__frame { position: relative; overflow: hidden; border-radius: var(--te-radius-2xl); border: 1px solid var(--te-line); box-shadow: 0 40px 80px -40px rgb(8 20 38 / 0.35); }
.ab-hero__frame img { width: 100%; height: 320px; object-fit: cover; display: block; }
@media (min-width: 768px) { .ab-hero__frame img { height: 440px; } }
.ab-hero__frame-grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgb(8 20 38 / 0.4) 100%); }
.ab-hero__badge-est, .ab-hero__badge-stat { position: absolute; background: #fff; border: 1px solid var(--te-line); box-shadow: 0 20px 50px -20px rgb(8 20 38 / 0.25); }
.ab-hero__badge-est { display: none; top: -1.5rem; left: -1.5rem; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-radius: var(--te-radius-lg); }
.ab-hero__badge-est .icon { width: 22px; height: 22px; color: var(--te-gold-deep); }
.ab-hero__badge-est-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--te-ink-muted); }
.ab-hero__badge-est-v { display: block; font-family: var(--te-font-display); font-size: 1.125rem; line-height: 1; font-weight: 600; color: var(--te-navy-deep); }
.ab-hero__badge-stat { display: none; bottom: -2rem; right: -1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--te-radius-lg); text-align: left; }
.ab-hero__badge-stat-n { font-family: var(--te-font-display); font-size: 1.875rem; line-height: 1; font-weight: 600; color: var(--te-gold-deep); }
.ab-hero__badge-stat-l { margin-top: 0.25rem; font-size: 0.75rem; line-height: 1.4; color: var(--te-ink-muted); max-width: 12rem; }
@media (min-width: 768px) { .ab-hero__badge-est { display: flex; } .ab-hero__badge-stat { display: block; } }

/* ---- Story ---- */
.ab-story { padding: 6rem 0; background: var(--te-canvas); }
@media (min-width: 768px) { .ab-story { padding: 8rem 0; } }
.ab-story__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .ab-story__grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.ab-story__eyebrow { display: block; margin-bottom: 2rem; font-size: 10px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--te-gold-deep); }
.ab-story__title { margin: 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2.75rem, 2rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; color: var(--te-navy-deep); }
.ab-story__title em { font-style: italic; color: var(--te-gold-deep); }
.ab-story__body { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.0625rem; line-height: 1.75; color: var(--te-ink-muted); }
.ab-story__body p { margin: 0; }
.ab-story__media { position: relative; }
.ab-story__frame { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: var(--te-navy); }
.ab-story__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--te-ease); }
.ab-story__frame:hover img { transform: scale(1.03); }
.ab-story__quote { display: none; position: absolute; bottom: -3.5rem; left: -2.5rem; max-width: 360px; padding: 2.5rem; background: var(--te-navy-deep); color: #fff; box-shadow: 0 40px 80px -30px rgb(8 20 38 / 0.55); }
@media (min-width: 1024px) { .ab-story__quote { display: block; } }
.ab-story__quote-text { margin: 0; font-family: var(--te-font-display); font-style: italic; font-size: 1.375rem; line-height: 1.4; }
.ab-story__quote-by { margin: 1.5rem 0 0; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--te-gold-soft); }

/* ---- Mission ---- */
.ab-mission { padding: 5rem 1.5rem 3.5rem; background: var(--te-card); }
@media (min-width: 768px) { .ab-mission { padding: 6rem 2.5rem 4rem; } }
.ab-mission__inner { max-width: 56rem; margin-inline: auto; }
.ab-mission__head { text-align: center; margin-bottom: 3.5rem; }
.ab-mission__title { margin: 1rem 0 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3rem); line-height: 1.1; color: var(--te-navy-deep); }
.ab-mission__title em { font-style: italic; }
.ab-mission__tabs { display: flex; justify-content: center; margin-bottom: 3.5rem; }
.ab-mission__tabs { gap: 0; }
.ab-mission__tab {
  padding: 0.625rem 1.5rem; border: 0; background: transparent; border-radius: var(--te-radius-pill);
  font-size: 0.875rem; color: rgb(13 27 51 / 0.6); transition: all 0.3s var(--te-ease);
}
@media (min-width: 768px) { .ab-mission__tab { padding-inline: 2rem; } }
.ab-mission__tabs { padding: 0.25rem; border-radius: var(--te-radius-pill); background: rgb(13 27 51 / 0.05); border: 1px solid rgb(13 27 51 / 0.1); width: max-content; margin-inline: auto; }
.ab-mission__tab.is-active { background: var(--te-navy-deep); color: #fff; font-weight: 500; }
.ab-mission__panels { position: relative; min-height: 220px; }
.ab-mission__panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--te-ease), transform 0.5s var(--te-ease); pointer-events: none; }
.ab-mission__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ab-mission__panel-rule { width: 3rem; height: 1px; margin-bottom: 2rem; background: var(--te-gold); }
.ab-mission__panel-body { margin: 0; max-width: 48rem; font-family: var(--te-font-display); font-weight: 400; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); line-height: 1.35; color: var(--te-navy-deep); }
.ab-mission__panel-body em { font-style: italic; }
.ab-mission__hairline { display: block; width: 100%; max-width: 20rem; height: 1px; margin: 2.5rem auto 0; background: linear-gradient(to right, transparent, rgb(201 162 75 / 0.4), transparent); }

/* ---- Principles ---- */
.ab-principles { padding: 5rem 0 7rem; background: var(--te-canvas); }
@media (min-width: 768px) { .ab-principles { padding: 6rem 0 9rem; } }
.ab-principles__grid { display: flex; flex-direction: column; gap: 3.5rem; }
@media (min-width: 1024px) { .ab-principles__grid { flex-direction: row; gap: 6rem; } }
.ab-principles__aside { }
@media (min-width: 1024px) { .ab-principles__aside { width: 33.33%; position: sticky; top: 7rem; align-self: flex-start; } }
.ab-principles__title { margin: 1.5rem 0 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 2.75rem); line-height: 1.1; color: var(--te-navy-deep); }
.ab-principles__title em { font-style: italic; border-bottom: 2px solid var(--te-gold); padding-bottom: 4px; }
.ab-principles__lead { margin: 2rem 0 0; max-width: 24rem; font-size: 0.9375rem; line-height: 1.65; color: var(--te-ink-muted); }
.ab-principles__list { display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .ab-principles__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ab-principles__list { width: 66.66%; } }
.ab-principle { position: relative; overflow: hidden; padding: 2rem; border-radius: var(--te-radius-2xl); background: var(--te-navy-deep); border: 1px solid rgb(255 255 255 / 0.06); box-shadow: 0 10px 30px -15px rgb(8 20 38 / 0.3); transition: transform 0.5s var(--te-ease), box-shadow 0.5s var(--te-ease); }
.ab-principle:hover { transform: translateY(-6px); box-shadow: var(--te-shadow-lg); }
.ab-principle__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.ab-principle__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--te-radius-lg); background: rgb(201 162 75 / 0.1); color: var(--te-gold); border: 1px solid rgb(201 162 75 / 0.2); transition: background-color 0.5s var(--te-ease), color 0.5s var(--te-ease); }
.ab-principle:hover .ab-principle__icon { background: var(--te-gold); color: var(--te-navy-deep); }
.ab-principle__icon .icon { width: 18px; height: 18px; }
.ab-principle__num { font-family: var(--te-font-display); font-size: 1.875rem; line-height: 1; font-variant-numeric: tabular-nums; color: rgb(255 255 255 / 0.2); transition: color 0.5s var(--te-ease); }
.ab-principle:hover .ab-principle__num { color: var(--te-gold); }
.ab-principle__title { margin: 0 0 0.5rem; font-family: var(--te-font-display); font-size: 1.25rem; font-weight: 700; color: #fff; }
.ab-principle__desc { margin: 0; font-size: 0.84rem; line-height: 1.65; color: #cbd5e1; }

/* ---- Leadership ---- */
.ab-leaders { position: relative; overflow: hidden; padding: 6rem 1.5rem; background: linear-gradient(180deg, var(--te-navy-deep) 0%, var(--te-navy) 100%); color: #fff; }
@media (min-width: 768px) { .ab-leaders { padding: 8rem 2.5rem; } }
.ab-leaders__glow { position: absolute; top: -10rem; right: 0; width: 720px; max-width: 90%; height: 720px; border-radius: 50%; filter: blur(60px); opacity: 0.3; background: radial-gradient(circle, rgb(201 162 75 / 0.33) 0%, transparent 65%); pointer-events: none; }
.ab-leaders__inner { position: relative; max-width: 1240px; margin-inline: auto; }
.ab-leaders__head { display: grid; gap: 2rem; align-items: end; margin-bottom: 4rem; }
@media (min-width: 1024px) { .ab-leaders__head { grid-template-columns: 2fr 1fr; gap: 4rem; margin-bottom: 6rem; } }
.ab-leaders__title { margin: 1.5rem 0 0; font-family: var(--te-font-display); font-weight: 400; font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4rem); line-height: 1.02; letter-spacing: -0.02em; color: #fff; }
.ab-leaders__title em { font-style: italic; color: var(--te-gold-soft); }
.ab-leaders__lead { margin: 0 0 2rem; font-size: 0.9375rem; line-height: 1.75; color: #B8C1D1; }
.ab-leaders__link { display: inline-flex; align-items: center; gap: 0.75rem; padding-bottom: 0.5rem; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgb(201 162 75 / 0.4); transition: color var(--te-duration) var(--te-ease), border-color var(--te-duration) var(--te-ease); }
.ab-leaders__link:hover { color: var(--te-gold-soft); border-color: var(--te-gold); }
.ab-leaders__link .icon { width: 13px; height: 13px; }
.ab-leaders__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .ab-leaders__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.ab-leader { display: block; text-decoration: none; }
.ab-leader__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 1.75rem; background: var(--te-navy-soft); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.6); }
.ab-leader__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--te-ease); }
.ab-leader:hover .ab-leader__frame img { transform: scale(1.04); }
.ab-leader__grad { position: absolute; inset-inline: 0; bottom: 0; height: 33%; pointer-events: none; opacity: 0.7; background: linear-gradient(180deg, transparent, var(--te-navy-deep)); }
.ab-leader__idx { position: absolute; top: 1.25rem; left: 1.25rem; font-size: 10px; font-weight: 600; letter-spacing: 0.32em; color: var(--te-gold); }
.ab-leader__accent { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--te-gold); transition: width 0.7s var(--te-ease); }
.ab-leader:hover .ab-leader__accent { width: 100%; }
.ab-leader__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.ab-leader__name { margin: 0; font-family: var(--te-font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.15; color: #fff; }
.ab-leader__role { margin: 0.75rem 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--te-gold); }
.ab-leader__arrow { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--te-radius-pill); border: 1px solid rgb(201 162 75 / 0.35); color: var(--te-gold-soft); transition: background-color 0.3s var(--te-ease), color 0.3s var(--te-ease); }
.ab-leader:hover .ab-leader__arrow { background: var(--te-gold); color: var(--te-navy-deep); }
.ab-leader__arrow .icon { width: 14px; height: 14px; }

/* ---- Why ---- */
.ab-why { position: relative; overflow: hidden; padding: 6rem 0; background: var(--te-canvas); }
@media (min-width: 768px) { .ab-why { padding: 8rem 0; } }
.ab-why__glow { position: absolute; top: -10rem; right: -10rem; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); opacity: 0.4; background: radial-gradient(circle, var(--te-gold-tint) 0%, transparent 70%); pointer-events: none; }
.ab-why__grid { position: relative; display: grid; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .ab-why__grid { grid-template-columns: 7fr 5fr; gap: 3.5rem; } }
.ab-why__panel { position: relative; overflow: hidden; padding: 2.5rem; border-radius: var(--te-radius-sm); background: linear-gradient(160deg, var(--te-navy-deep) 0%, var(--te-navy) 60%, var(--te-navy-soft) 100%); box-shadow: 0 30px 80px -40px rgb(8 20 38 / 0.5); }
@media (min-width: 1024px) { .ab-why__panel { padding: 3.5rem; } }
.ab-why__title { margin: 1.5rem 0 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2rem, 1.5rem + 2vw, 2.625rem); line-height: 1.1; color: #fff; }
.ab-why__title em { font-style: italic; color: var(--te-gold-soft); }
.ab-why__body { margin: 1.5rem 0 0; max-width: 36rem; font-size: 1rem; line-height: 1.8; color: #C7CFD8; }
.ab-why__cta { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; border-radius: var(--te-radius-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--te-navy-deep); background: var(--te-gold); box-shadow: 0 10px 30px -10px rgb(201 162 75 / 0.5); text-decoration: none; transition: background-color var(--te-duration) var(--te-ease); }
.ab-why__cta:hover { background: var(--te-gold-soft); color: var(--te-navy-deep); }
.ab-why__cta .icon { width: 13px; height: 13px; }
.ab-why__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ab-why__stat { position: relative; overflow: hidden; padding: 1.75rem; border-radius: var(--te-radius-sm); background: #fff; border: 1px solid var(--te-line); box-shadow: 0 4px 20px -12px rgb(8 20 38 / 0.15); transition: transform 0.5s var(--te-ease); }
.ab-why__stat:hover { transform: translateY(-4px); }
.ab-why__stat-rule { position: absolute; top: 0; left: 0; height: 2px; width: 2rem; background: var(--te-gold); transition: width 0.5s var(--te-ease); }
.ab-why__stat:hover .ab-why__stat-rule { width: 100%; }
.ab-why__stat-num-lbl { display: block; margin-bottom: 0.75rem; font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--te-gold-deep); }
.ab-why__stat-n { display: block; font-family: var(--te-font-display); font-size: clamp(2.5rem, 2rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--te-navy-deep); font-weight: 500; }
.ab-why__stat-l { display: block; margin-top: 1rem; font-size: 0.75rem; line-height: 1.4; color: var(--te-ink-muted); }

/* ---- Milestones ---- */
/* Our journey: numbered story chapters (no dates). A fresh editorial layout. */
.ab-journey { position: relative; overflow: hidden; padding: 6rem 1.5rem; background: var(--te-canvas); }
@media (min-width: 768px) { .ab-journey { padding: 8rem 2.5rem; } }
.ab-journey__watermark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--te-font-display); font-weight: 500; font-size: clamp(18rem, 40vw, 34rem); line-height: 1; color: var(--te-navy); opacity: 0.03; pointer-events: none; user-select: none; letter-spacing: 0.05em; }
.ab-journey__inner { position: relative; max-width: 66rem; margin-inline: auto; }
.ab-journey__head { text-align: center; margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .ab-journey__head { margin-bottom: 4.5rem; } }
.ab-journey__title { margin: 1rem 0 0; font-family: var(--te-font-display); font-weight: 500; font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3rem); line-height: 1.1; color: var(--te-navy-deep); }
.ab-journey__title em { font-style: italic; color: var(--te-gold-deep); }
/* An editorial single column with oversized OUTLINE numerals. No cards, so it
   reads nothing like the filled stat grids elsewhere on the site. */
.ab-journey__list { margin: 0 auto; padding: 0; list-style: none; max-width: 46rem; }
.ab-journey__item { position: relative; display: grid; grid-template-columns: 1fr; gap: 0.5rem; padding: 2.5rem 0; border-top: 1px solid var(--te-line); }
.ab-journey__item:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .ab-journey__item { grid-template-columns: 6.5rem 1fr; gap: 0 2rem; align-items: start; } }
.ab-journey__num { font-family: var(--te-font-display); font-weight: 500; font-size: clamp(3.25rem, 2.4rem + 3vw, 4.75rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 1.5px var(--te-gold-deep); text-stroke: 1.5px var(--te-gold-deep); transition: color 0.4s var(--te-ease), -webkit-text-stroke-color 0.4s var(--te-ease); }
.ab-journey__item:hover .ab-journey__num { color: var(--te-gold-tint); -webkit-text-stroke-color: var(--te-gold); }
.ab-journey__body { padding-top: 0.35rem; }
.ab-journey__card-title { margin: 0; font-family: var(--te-font-display); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 500; line-height: 1.25; color: var(--te-navy-deep); }
.ab-journey__card-desc { margin: 0.75rem 0 0; max-width: 34rem; font-size: 1rem; line-height: 1.75; color: var(--te-ink-muted); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
