/* ===== OPTECOS — About page CSS (auto-generated from source HTML) ===== */
/* Base64 url()s in source have been replaced with 'none'; logos render via header.php. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.ab-wrap {
  --warm-white: #F8F7F3;
  --ivory-2: #F2F0E9;
  --ink-navy: #17243A;
  --deep-navy: #101522;
  --ivory-logo: #F7F6F2;
  --navy-70: rgba(23,36,58,0.70);
  --navy-50: rgba(23,36,58,0.50);
  --navy-15: rgba(23,36,58,0.15);
  --navy-08: rgba(23,36,58,0.08);
  --sky-blue: #A8C8EC;
  --apricot: #E9B99A;
  --muted-gold: #C6A76A;
  --champagne: #C9A66B;
  background: var(--warm-white);
  color: var(--ink-navy);
  font-family: 'Inter', sans-serif;
}
.ab-wrap em, .ab-wrap .italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }

/* =============== NAV =============== */
.ab-nav {
  position: sticky; top: 0; z-index: 90;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 48px; background: rgba(248,247,243,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--navy-08);
}
.ab-logo { display: inline-flex; align-items: center; line-height: 1; }
.ab-logo svg { display: block; width: auto; height: 32px; }
.ab-nav-links { display: flex; gap: 32px; font-size: 14px; align-items: center; }
.ab-nav-links a { color: var(--ink-navy); opacity: 0.72; transition: opacity 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.ab-nav-links a:hover, .ab-nav-links a.active { opacity: 1; }
.ab-nav-links a.active { font-weight: 500; }
.ab-nav-links .caret { opacity: 0.6; }
.ab-nav-right { display: flex; align-items: center; gap: 16px; }
.ab-nav-cta {
  padding: 10px 20px; border-radius: 100px; background: var(--ink-navy);
  color: var(--warm-white); font-size: 13px; font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.ab-nav-cta:hover { transform: translateY(-1px); background: var(--deep-navy); }
.ab-hamburger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.ab-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--ink-navy); transition: transform 0.3s, opacity 0.2s; }

.ab-mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--warm-white);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.65,0,0.35,1);
  display: flex; flex-direction: column; padding: 24px 28px;
}
.ab-mobile-menu.open { transform: translateX(0); }
.ab-mobile-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--navy-08); }
.ab-mobile-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ink-navy); }
.ab-mobile-links { display: flex; flex-direction: column; padding: 40px 0; gap: 4px; flex: 1; }
.ab-mobile-links a { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; padding: 14px 0; color: var(--ink-navy); }
.ab-mobile-foot { padding-top: 24px; border-top: 1px solid var(--navy-08); }
.ab-mobile-foot .ab-btn-primary { width: 100%; justify-content: center; }
.ab-mobile-foot-contact { display: block; font-size: 14px; opacity: 0.6; margin-top: 20px; text-align: center; }

/* Buttons */
.ab-btn-primary {
  padding: 16px 32px; border-radius: 100px; background: var(--ink-navy);
  color: var(--warm-white); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, background 0.2s;
}
.ab-btn-primary:hover { transform: translateY(-2px); background: var(--deep-navy); }
.ab-btn-primary::after { content: '→'; transition: transform 0.2s; }
.ab-btn-primary:hover::after { transform: translateX(4px); }

/* Shared bits */
.ab-eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-gold); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.ab-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--muted-gold); }

/* =============== HERO ===============
   The pinned stage is 75vh tall (not full viewport) so the next section starts
   peeking at the bottom of the screen as the hero animation runs.
   The hero-outer height is tuned to give enough scroll range for the transformation
   without the hero feeling like a long tunnel. */
.ab-hero-outer {
  position: relative;
  height: 220vh;
}
.ab-hero-sticky {
  position: sticky; top: 0;
  height: 75vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 48px;
  overflow: hidden;
}
.ab-hero-grad {
  position: absolute; top: -220px; right: -220px; width: 650px; height: 650px;
  background: radial-gradient(circle, var(--sky-blue) 0%, var(--apricot) 55%, transparent 72%);
  opacity: 0.22; filter: blur(70px); pointer-events: none;
}

.ab-stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex: 1;
  min-height: 0;
}

/* ---------- The transforming phrase ---------- */
.ab-phrase {
  font-family: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  color: var(--deep-navy);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.19em;
  font-size: clamp(22px, 3.4vw, 54px);
  white-space: nowrap;
  display: inline-block;
  opacity: 1;
  transition: opacity 0.4s ease;
  will-change: opacity;
}
.ab-phrase.hide { opacity: 0; }
.ab-w { display: inline-block; white-space: nowrap; }
.ab-k { display: inline; color: var(--deep-navy); }
.ab-d {
  display: inline;
  color: var(--deep-navy);
  opacity: 1;
  will-change: font-size, opacity;
}
/* More breathing room between the four words at rest */
.ab-sp {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  will-change: width;
}

/* ---------- The final brand mark ---------- */
.ab-final-mark {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
  /* Sized so the OPTECOS wordmark reads as a confident but not oversized logo
     — about the scale of the original cross-fade before it ballooned. */
  width: min(42vw, 440px);
  will-change: opacity, transform;
}
.ab-final-mark.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.ab-final-mark svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- Tagline (restored per brief) ---------- */
.ab-hero-tag {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(32px, 6vh, 70px);
  text-align: center;
  padding: 0 48px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.ab-hero-tag.show {
  opacity: 1;
  transform: translateY(0);
}
.ab-hero-tag .line {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  color: var(--ink-navy);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.3;
  max-width: 580px; margin: 0 auto;
  opacity: 0.85;
}

/* =============== INTRO (single short block) =============== */
.ab-intro { padding: clamp(96px, 14vh, 150px) 48px; background: var(--warm-white); border-top: 1px solid var(--navy-08); }
.ab-intro-inner { max-width: 1000px; margin: 0 auto; }
.ab-intro h1 {
  font-size: clamp(30px, 4.2vw, 56px); font-weight: 500; line-height: 1.1;
  letter-spacing: -0.025em; max-width: 22ch; margin-bottom: 28px;
}
.ab-intro h1 em { font-weight: 400; }
.ab-intro-lead {
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6;
  opacity: 0.75; max-width: 62ch;
}

/* =============== CAPABILITIES — the main information section =============== */
.ab-cap { padding: clamp(96px, 14vh, 150px) 48px; background: var(--ivory-2); border-top: 1px solid var(--navy-08); }
.ab-cap-inner { max-width: 1240px; margin: 0 auto; }
.ab-cap-head { max-width: 760px; margin-bottom: 56px; }
.ab-cap h2 {
  font-size: clamp(30px, 4.2vw, 56px); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.025em; max-width: 18ch;
}
.ab-cap h2 em { font-weight: 400; }

.ab-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--navy-08); }
.ab-cap-col { background: var(--ivory-2); padding: 44px 36px; display: flex; flex-direction: column; transition: background 0.3s; }
.ab-cap-col:hover { background: var(--warm-white); }
.ab-cap-tag {
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-gold); font-weight: 500; margin-bottom: 22px;
}
.ab-cap-col h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.ab-cap-desc { font-size: 15px; line-height: 1.6; opacity: 0.78; margin-bottom: 32px; max-width: 32ch; }
.ab-cap-listlabel {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 13px; color: var(--muted-gold);
  padding-top: 22px; border-top: 1px solid var(--navy-08); margin-bottom: 16px;
}
.ab-cap-list { list-style: none; }
.ab-cap-list li {
  font-size: 14.5px; padding: 7px 0; opacity: 0.88;
  display: flex; align-items: flex-start; gap: 12px; line-height: 1.5;
}
.ab-cap-list li::before {
  content: ''; width: 4px; height: 4px; background: var(--muted-gold);
  border-radius: 50%; margin-top: 8px; flex-shrink: 0;
}

/* =============== FINAL CTA =============== */
.ab-final {
  padding: clamp(120px, 18vh, 200px) 48px;
  background: var(--ink-navy); color: var(--warm-white);
  position: relative; overflow: hidden;
  text-align: center;
}
.ab-final-grad {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--sky-blue) 0%, var(--apricot) 50%, transparent 72%);
  opacity: 0.10; filter: blur(80px);
  pointer-events: none;
}
.ab-final-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.ab-final-label {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-gold); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.ab-final-label::before { content: ''; width: 20px; height: 1px; background: var(--muted-gold); }
.ab-final h2 {
  font-size: clamp(34px, 5vw, 62px); font-weight: 500; line-height: 1.08;
  letter-spacing: -0.025em; margin-bottom: 28px;
}
.ab-final h2 em { color: var(--muted-gold); }
.ab-final p { font-size: 17px; line-height: 1.6; opacity: 0.78; max-width: 560px; margin: 0 auto 44px; }
.ab-final .ab-btn-primary { background: var(--warm-white); color: var(--ink-navy); }
.ab-final .ab-btn-primary:hover { background: var(--muted-gold); }

/* =============== FOOTER =============== */
.ab-footer { background: var(--deep-navy); color: var(--warm-white); padding: 72px 48px 28px; border-top: 1px solid rgba(248,247,243,0.08); }
.ab-footer-inner { max-width: 1240px; margin: 0 auto; }
.ab-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.ab-footer .ab-logo svg { height: 36px; }
.ab-footer-desc { font-size: 13.5px; opacity: 0.6; line-height: 1.65; max-width: 320px; margin-top: 16px; }
.ab-footer-col h4 { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; font-size: 14px; color: var(--muted-gold); margin-bottom: 20px; }
.ab-footer-col ul { list-style: none; }
.ab-footer-col li { padding: 5px 0; }
.ab-footer-col a { font-size: 13.5px; opacity: 0.7; transition: opacity 0.2s; }
.ab-footer-col a:hover { opacity: 1; }
.ab-footer-bottom {
  padding-top: 28px; border-top: 1px solid rgba(248,247,243,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; opacity: 0.55; flex-wrap: wrap; gap: 16px;
}
.ab-footer-bottom a { margin-left: 20px; }

/* =============== Responsive =============== */
@media (max-width: 1024px) {
  .ab-cap-grid { grid-template-columns: 1fr; }
  .ab-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .ab-nav { padding: 16px 20px; }
  .ab-nav-links, .ab-nav-cta { display: none; }
  .ab-hamburger { display: flex; }

  /* Mobile hero: 70vh tall so intro peeks below, phrase wraps naturally,
     final mark cross-fades in as the actual logo centred horizontally. */
  .ab-hero-outer { height: 190vh; }
  .ab-hero-sticky { height: 70vh; padding: 40px 20px; }
  .ab-phrase {
    font-size: clamp(24px, 8.5vw, 40px);
    letter-spacing: 0.15em;
    white-space: normal;
    display: inline-flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    column-gap: 0.7em; row-gap: 0.15em;
    max-width: 92vw;
  }
  .ab-w { display: inline-block; }
  .ab-sp { display: none; }
  .ab-final-mark { width: 60vw; }
  .ab-hero-tag { bottom: 24px; padding: 0 20px; }
  .ab-hero-tag .line { font-size: 13px; }

  .ab-intro, .ab-cap { padding: 80px 20px; }
  .ab-cap-col { padding: 36px 24px; }
  .ab-final { padding: 100px 20px; }
  .ab-footer { padding: 56px 20px 24px; }
  .ab-footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
  .ab-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-hero-outer { height: auto !important; }
  .ab-hero-sticky { position: relative; height: auto; min-height: 60vh; padding: 140px 20px 80px; }
  .ab-phrase { display: none; }
  .ab-final-mark { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 0 auto; }
  .ab-hero-tag { position: relative; bottom: auto; opacity: 1; transform: none; margin-top: 36px; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
.no-js .ab-hero-outer { height: auto; }
.no-js .ab-hero-sticky { position: relative; height: auto; min-height: 60vh; padding: 140px 20px 80px; }
.no-js .ab-final-mark { position: relative; left: auto; top: auto; transform: none; opacity: 1; margin: 20px auto 0; }
.no-js .ab-hero-tag { position: relative; bottom: auto; opacity: 1; transform: none; margin-top: 36px; }

/* The rest of the page loads as normal content — no scroll-triggered reveal animations.
   The OPTECOS transformation is the only animation on this page. */
.fade-up { opacity: 1; transform: none; }
