/* About (/about/), ported from the site concept v3 (parts/pages/about.css). The page's one signature is the hero
   statement, "Secure. Build. Empower." rising line by line once on page load. Then the services ticker (pausable), who
   we are beside the real team photo, a proof strip of three real facts, the three values wiping in, the distributor band
   and the navy group band (template-parts/home/subsidiaries.php). Static under reduced motion. Prefix ab-.
   Port notes: the rise is a CSS animation on load (no router "view enter" any more), so it never waits for the deferred
   script; the ticker's moving layout keys off prefers-reduced-motion rather than the script's .motion class, so the
   row does not change shape when core.js arrives. */

/* Page-local token. "Empower." is large orange text on white: --accent (#F58220) fails 3:1 there and --accent-ink reads
   brown at display size, so the word uses the live theme's accent-deep (#D96A0B, 3.5:1 on #FFFFFF, passes WCAG large text). */
.page-about { --ab-accent-deep: #D96A0B; }

/* ---------- Hero: the statement, three lines rising one after another ---------- */
.ab-head { padding-bottom: clamp(48px, 6vw, 88px); }
.ab-head .ph-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; }
.ab-head .ab-title { margin-top: 24px; max-width: none; font-size: clamp(3.5rem, 8.2vw, 8rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.035em; }
/* Each line clips its own word; the padding widens the clip box so caps and the "p" descender are never cut */
.ab-line { display: block; overflow: hidden; padding: 0.08em 0 0.14em; margin: -0.08em 0 -0.14em; }
.ab-w { display: inline-block; }
.ab-accent { color: var(--ab-accent-deep); }
.ab-intro { margin-top: 0; max-width: 30em; padding-bottom: 0.35em; }
@media (prefers-reduced-motion: no-preference) {
  .ab-w { animation: ab-rise var(--t-slow) var(--ease) both; animation-delay: calc(120ms + var(--i, 0) * 140ms); }
  .ab-intro { animation: ab-fade var(--t-slow) var(--ease) 540ms both; }
}
@keyframes ab-rise { from { transform: translateY(125%); } to { transform: none; } }
@keyframes ab-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Services ticker: a slow seamless loop (two identical sets, -50%), paused by hover, focus or the button ---------- */
.ab-ticker { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-block: 1px solid var(--line); padding-right: max(var(--gutter), calc((100% - var(--frame)) / 2)); }
.ab-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 96px, #000 calc(100% - 96px), transparent 100%); }
.ab-track { display: flex; width: max-content; }
.ab-set { display: flex; flex: none; }
.ab-set li { display: inline-flex; align-items: center; gap: 28px; padding: 21px 28px 21px 0; font: 500 14px/1.2 var(--font-sub); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ab-set li::after { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .ab-track { animation: ab-tick 56s linear infinite; } }
.ab-marquee:hover .ab-track, .ab-ticker.is-focus .ab-track, .ab-ticker.is-paused .ab-track { animation-play-state: paused; }
@keyframes ab-tick { to { transform: translateX(-50%); } }
.ab-tk-ctl { padding: 8px 0 8px 12px; }
.ab-tk-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--brand); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.ab-tk-btn:hover { border-color: var(--brand); background: var(--brand); color: var(--on-brand); transform: translateY(-1px); }
.ab-tk-btn .i-play, .ab-ticker.is-paused .ab-tk-btn .i-pause { display: none; }
.ab-ticker.is-paused .ab-tk-btn .i-play { display: block; }
/* The button works once the script runs; until then it keeps its place without showing */
html:not(.motion) .ab-tk-btn { visibility: hidden; }
/* Reduced motion: one static wrapping row aligned to the frame, no duplicate, no control */
@media (prefers-reduced-motion: reduce) {
  html .ab-ticker { display: block; padding-inline: max(var(--gutter), calc((100% - var(--frame)) / 2)); }
  html .ab-marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  html .ab-track { display: block; width: auto; }
  html .ab-set { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; padding-block: 8px; }
  html .ab-set li { padding-block: 10px; }
  html .ab-set li:last-child::after { display: none; }
  html .ab-set[aria-hidden="true"], html .ab-tk-ctl { display: none; }
}

/* ---------- Who we are: the real team photo beside the three paragraphs ---------- */
.ab-who-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px clamp(40px, 6vw, 104px); align-items: center; }
.ab-photo .frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow-card); }
.ab-photo .frame img { object-position: 50% 30%; }
.motion .ab-photo .frame.rv.in:hover img, .ab-photo a.zoomable:hover img { transform: scale(1.04); transition-duration: 600ms; }
.ab-zoom { position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--brand); box-shadow: var(--shadow-card); transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.ab-zoom svg { width: 18px; height: 18px; }
.ab-photo a:hover .ab-zoom { transform: scale(1.08); background: var(--accent); color: var(--brand-deep); }
.ab-photo figcaption { margin-top: 14px; }
.ab-who-copy .eyebrow { margin-bottom: 26px; }
.ab-lead { max-width: 23em; font: 600 clamp(1.45rem, 2.3vw, 2.05rem)/1.24 var(--font-display); letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.ab-who-copy p:not(.ab-lead) { max-width: 36em; font-size: 17.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.ab-who-copy .ab-lead + p { margin-top: 28px; }
.ab-who-copy p + p { margin-top: 18px; }

/* ---------- Proof strip: three real facts, the two with evidence open it ---------- */
.ab-proof { border-block: 1px solid var(--line); }
.ab-proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ab-proof-grid > li { display: flex; }
.ab-proof-grid > li + li { border-left: 1px solid var(--line); }
.ab-fact { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 18px; align-content: start; width: 100%; padding: 34px 28px; transition: background-color var(--t-fast) var(--ease); }
.ab-proof-grid > li:first-child .ab-fact { padding-left: 0; }
.ab-fact .ico { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--tint); color: var(--brand); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.ab-fact .ico svg { width: 22px; height: 22px; }
.ab-fact-t { display: block; padding-top: 2px; font: 600 18px/1.3 var(--font-display); letter-spacing: -0.005em; color: var(--ink); }
.ab-fact .pcta { grid-column: 2; margin-top: 4px; font-size: 14.5px; }
a.ab-fact:hover { background: var(--tint); }
a.ab-fact:hover .ico { background: var(--brand); color: var(--on-brand); }

/* ---------- Values: each word wipes in (transform only: the window slides one way, the word the other), then its rule grows ---------- */
.ab-values .eyebrow { margin-bottom: clamp(36px, 4vw, 56px); }
.ab-val-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(28px, 3.5vw, 56px); }
.ab-val { display: flex; flex-direction: column; align-items: flex-start; padding-top: 24px; border-top: 1px solid rgba(11, 31, 58, 0.12); }
.ab-val-no { font: 500 13px/1 var(--font-sub); letter-spacing: 0.12em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ab-val h3 { display: inline-flex; flex-direction: column; margin-top: 20px; font-size: clamp(2.3rem, 4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1; }
.ab-wipe { display: inline-block; overflow: hidden; padding: 0.04em 0.02em 0.1em 0; margin-bottom: -0.1em; }
.ab-wipe > span { display: inline-block; }
.ab-rule { display: block; height: 3px; margin-top: 14px; border-radius: 2px; background: var(--accent); transform-origin: left center; }
.ab-val p { margin-top: 22px; max-width: 26em; font-size: 16.5px; line-height: 1.6; color: var(--muted); }
.motion .ab-wipe, .motion .ab-wipe > span { transition: transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 70ms + 140ms); }
.motion .ab-wipe { transform: translateX(-101%); }
.motion .ab-wipe > span { transform: translateX(101%); }
.motion .ab-rule { transform: scaleX(0); transition: transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 70ms + 440ms); }
.motion .ab-val.in .ab-wipe, .motion .ab-val.in .ab-wipe > span, .motion .ab-val.in .ab-rule { transform: none; }

/* ---------- Distributor band ---------- */
.ab-dist-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 28px clamp(40px, 6vw, 96px); align-items: end; }
.ab-dist h2 { max-width: 15ch; font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.04; }
.ab-dist-act p { max-width: 30em; font-size: 18px; line-height: 1.55; color: var(--muted); }
.ab-dist-act .cta-actions { margin-top: 24px; }

/* ---------- The group: navy band, one subsidiary card, the closing line ---------- */
.ab-group { padding-block: var(--sec); color: var(--on-brand); background: radial-gradient(80% 120% at 88% 0%, var(--brand-glow) 0%, var(--brand) 62%); }
.ab-group-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 6vw, 104px); align-items: start; }
.ab-group h2 { margin-top: 16px; font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.025em; color: #FFFFFF; }
.ab-gcard { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-lg); border: 1px solid rgba(238, 242, 248, 0.14); background: rgba(255, 255, 255, 0.04); transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background-color var(--t-med) var(--ease); }
.ab-gcard:hover { transform: translateY(-3px); border-color: rgba(245, 130, 32, 0.6); background: rgba(255, 255, 255, 0.07); }
.ab-gcard-label { font: 500 12px/1 var(--font-sub); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.ab-gcard h3 { margin-top: 14px; font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; color: #FFFFFF; }
.ab-gcard p { margin-top: 10px; max-width: 34em; font-size: 16.5px; line-height: 1.55; color: var(--on-brand-muted); }
.ab-gcard .pcta { margin-top: 18px; color: var(--on-brand); }
.ab-gcard .pcta .arr { color: var(--accent); }
.ab-close { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: clamp(48px, 5vw, 72px); padding-top: 22px; border-top: 1px solid rgba(238, 242, 248, 0.14); font: 500 15px/1.5 var(--font-sub); color: var(--on-brand-muted); }
.ab-close b { font-weight: 500; color: var(--on-brand); }
.ab-close .sep { color: var(--accent); }
.ab-close a { display: inline-block; padding-block: 10px; color: var(--on-brand); text-decoration: underline; text-decoration-color: rgba(238, 242, 248, 0.28); text-underline-offset: 5px; transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
.ab-close a:hover { color: #FFFFFF; text-decoration-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ab-head .ph-grid, .ab-who-grid, .ab-dist-grid, .ab-group-grid { grid-template-columns: 1fr; }
  .ab-intro { max-width: 34em; }
  .ab-photo { max-width: 520px; }
  .ab-proof-grid { grid-template-columns: 1fr; }
  .ab-proof-grid > li + li { border-left: 0; border-top: 1px solid var(--line); }
  .ab-fact, .ab-proof-grid > li:first-child .ab-fact { padding: 24px 0; }
  a.ab-fact:hover { background: transparent; }
  .ab-val-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .ab-head .ab-title { font-size: clamp(3.2rem, 17vw, 4.6rem); }
  .ab-marquee { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
  .ab-set li { gap: 22px; padding: 18px 22px 18px 0; font-size: 13px; }
  .ab-close { flex-direction: column; align-items: flex-start; }
  .ab-close .sep { display: none; }
  .ab-close > span:first-child, .ab-close b { padding-block: 2px; }
}
