/*
 * About Us page — creative layer on top of the core theme.
 * Only enqueued on template-pages/template-about.php (see
 * openpress_about_page_scripts() in functions.php). Scoped under
 * .about-page so it can never leak onto other templates.
 *
 * IMPORTANT: this theme ships a pre-compiled, purged Tailwind build
 * (assets/css/tailwind.css) rather than a live JIT build — only the
 * exact utility classes already used elsewhere in the theme exist in
 * that file. Any new class combination (arbitrary values, unused
 * breakpoint/utility pairs, etc.) silently does nothing. So layout
 * that isn't already proven safe elsewhere in the theme is written
 * here as real, hand-authored CSS instead of guessed-at Tailwind
 * classes — that's why sections below (hero padding, the journey
 * timeline, the ribbon banner, CTA layering) are plain CSS rather
 * than utility soup.
 */

.about-page {
  overflow-x: clip;
}

.about-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */

.about-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 15% 0%, hsl(var(--accent) / 0.14), transparent 60%),
    radial-gradient(50% 70% at 100% 30%, hsl(var(--accent) / 0.10), transparent 60%);
}

.about-hero-inner {
  position: relative;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .about-hero-inner { padding-top: 4.5rem; padding-bottom: 5.5rem; }
}

/* Soft drifting light — the "flex your skill" lighting effect. Purely
   decorative, sits behind all content, blurred so it reads as glow
   rather than a hard shape. */
.about-glow-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  background: radial-gradient(circle, hsl(var(--accent) / 0.35), transparent 70%);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}
.about-glow-orb--1 { width: 420px; height: 420px; top: -140px; left: -100px; }
.about-glow-orb--2 { width: 380px; height: 380px; bottom: -160px; right: -80px; }
.about-glow-orb--3 { width: 260px; height: 260px; top: 30%; right: 18%; opacity: 0.6; }

/* The ribbon: an animated gradient stroke drawn on load with GSAP
   (stroke-dashoffset) that idles once settled. */
.about-hero-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.about-hero-ribbon path {
  fill: none;
  stroke: url(#about-ribbon-gradient);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px hsl(var(--accent) / 0.55)) drop-shadow(0 0 18px hsl(var(--accent) / 0.25));
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

.about-hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about-hero-title {
  max-width: 44rem;
}
.about-hero-sub {
  max-width: 38rem;
  font-size: 1.0625rem;
}
@media (min-width: 768px) {
  .about-hero-sub { font-size: 1.1875rem; }
}

/* ---------------------------------------------------------------------
   Running ribbon banner — bold, angled marquee strip with a classic
   ribbon "flag" feel. Same infinite-scroll technique as the theme's
   breaking-news ticker (duplicated track, translateX loop) so it
   inherits the same battle-tested performance/reduced-motion
   behaviour, just dressed up as a ribbon instead of a plain bar.
   ------------------------------------------------------------------- */

.about-ribbon-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--accent) / 0.82) 50%, hsl(var(--accent)));
  box-shadow: 0 0 30px hsl(var(--accent) / 0.35), inset 0 0 40px hsl(0 0% 0% / 0.08);
  transform: rotate(-1.1deg) scale(1.03);
  margin: -0.9rem 0 1.6rem;
}
.about-ribbon-banner-flat {
  /* second, unrotated copy used right before the CTA — same content,
     calmer presentation so the effect doesn't feel repetitive */
  transform: none;
  margin: 0;
}

.about-ribbon-viewport {
  mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  padding: 0.85rem 0;
}
.about-ribbon-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: about-ribbon-scroll 26s linear infinite;
}
.about-ribbon-viewport:hover .about-ribbon-track { animation-play-state: paused; }
.about-ribbon-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--accent-foreground));
  padding: 0 1.5rem;
}
.about-ribbon-sep {
  color: hsl(var(--accent-foreground) / 0.6);
  font-size: 0.9rem;
}
@keyframes about-ribbon-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Reveal primitives (GSAP toggles these via a tween — the CSS just
   supplies the resting/starting state so content is never invisible
   if JS fails to load).
   ------------------------------------------------------------------- */

.about-reveal {
  opacity: 1;
}
.js-gsap-ready .about-reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* ---------------------------------------------------------------------
   Stat counters
   ------------------------------------------------------------------- */

.about-stat-card {
  position: relative;
  overflow: hidden;
}
.about-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsl(var(--accent) / 0.10), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.about-stat-card:hover::before { opacity: 1; }
.about-stat-number {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------
   Value & service cards
   ------------------------------------------------------------------- */

.about-icon-badge {
  position: relative;
  isolation: isolate;
}
.about-icon-badge::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  background: radial-gradient(circle, hsl(var(--accent) / 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.about-card:hover .about-icon-badge::after { opacity: 1; }

.about-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--accent) / 0.45);
  box-shadow: 0 10px 30px -12px hsl(var(--accent) / 0.35);
}

/* ---------------------------------------------------------------------
   Journey / timeline — a single, reliable column (no fragile
   alternating-side breakpoint math): a hand-drawn ribbon line runs
   down the left edge and "writes itself on" as the section scrolls
   into view, threading through each milestone dot.
   ------------------------------------------------------------------- */

.about-journey-track {
  position: relative;
  padding-left: 3.25rem;
}
.about-journey-line {
  position: absolute;
  left: 21px;
  top: 4px;
  bottom: 4px;
  width: 3px;
}
.about-journey-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.about-journey-line path {
  fill: none;
  stroke: url(#about-ribbon-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px hsl(var(--accent) / 0.6));
}

.about-milestone {
  position: relative;
}
.about-milestone-dot {
  position: absolute;
  left: -39px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: hsl(var(--accent));
  box-shadow: 0 0 0 4px hsl(var(--background)), 0 0 16px 2px hsl(var(--accent) / 0.7);
}
.about-milestone-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid hsl(var(--accent) / 0.5);
  animation: about-pulse-ring 2.4s ease-out infinite;
}

@keyframes about-pulse-ring {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Journey sidebar — founder pull-quote card that fills the empty
   space beside the timeline on wide screens.
   ------------------------------------------------------------------- */

.about-quote-card {
  position: relative;
}
.about-quote-mark {
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 1;
  color: hsl(var(--accent) / 0.18);
  pointer-events: none;
  user-select: none;
}
.about-quote-text {
  font-style: italic;
  color: hsl(var(--foreground) / 0.92);
}

/* ---------------------------------------------------------------------
   CTA banner — neon-lit button, animated gradient ribbon backdrop,
   explicitly layered so the moving background can never drift on top
   of the text (plain z-index, not a Tailwind z- utility).
   ------------------------------------------------------------------- */

.about-cta {
  position: relative;
  overflow: hidden;
  background: hsl(var(--foreground) / 0.02);
  padding: 4rem 0;
}
@media (min-width: 768px) {
  .about-cta { padding: 6rem 0; }
}
.dark .about-cta { background: hsl(0 0% 8%); }

.about-cta-ribbon-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: conic-gradient(from 0deg, hsl(var(--accent) / 0.16), transparent 30%, hsl(var(--accent) / 0.10) 60%, transparent 85%);
  animation: about-rotate 22s linear infinite;
  pointer-events: none;
}
@keyframes about-rotate {
  to { transform: rotate(360deg); }
}

.about-cta-content {
  position: relative;
  z-index: 1;
}

.about-glow-btn {
  position: relative;
  box-shadow: 0 0 0 0 hsl(var(--accent) / 0.6);
  transition: box-shadow 0.35s ease, transform 0.25s ease;
}
.about-glow-btn:hover {
  box-shadow: 0 0 22px 4px hsl(var(--accent) / 0.55), 0 0 60px 10px hsl(var(--accent) / 0.25);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   Reduced motion — keep the theme's site-wide contract: everything
   still looks complete, it just doesn't move.
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .about-glow-orb,
  .about-cta-ribbon-bg,
  .about-milestone-dot::after,
  .about-ribbon-track {
    animation: none !important;
  }
  .about-ribbon-viewport { overflow-x: auto; }
  .js-gsap-ready .about-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
