/* ===== About page — reference-inspired ===== */

:root{
  --bg:#ffffff;                 /* clean white background */
  --ink:#0d0d0f;                /* deep ink text */
  --muted:#60646b;              /* soft grey secondary text */
  --line:#e7e7e9;               /* neutral divider lines */
  --pill:#c8c8f8;               /* light neutral pills */
  --blue:#ffffff;               /* main accent blue */
  --blue2:#000000;              /* darker gradient blue */
  --deep:#ffffff;               /* dark section background */
  --radius:18px;
  --shadow:0 12px 40px rgba(0,0,0,.06);
}


/* base */
body{ background:#fff; color:var(--ink) }

.elena-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #ffffff;                   /* pure white base */
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s ease, border-color .3s ease;
}

.elena-header.is-solid {
  background: #ffffff;                   /* stays white on scroll */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: transparent;
}


/* Layout */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  font: 900 20px/1 "Outfit", Inter, sans-serif;
  color: #111;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color .3s ease;
}
.brand:hover { color: var(--blue2, #473003); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  transition: opacity .3s ease;
}
.nav-links a {
  font: 600 13px/1 Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #222;
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--blue2, #473003);
  transform: scaleX(0);
  transition: transform .25s ease;
  transform-origin: right;
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Right-side buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.btn-cv {
  padding: 6px 12px;
  border: 2px solid var(--blue2, #473003);
  border-radius: 10px;
  font: 700 12px/1 Inter, sans-serif;
  color: var(--blue2, #473003);
  text-decoration: none;
  transition: all .3s ease;
}
.btn-cv:hover {
  background: var(--blue2, #52402f);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: all .3s ease;
}

/* Mobile menu open animation */
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Responsive */
@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70vw;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right .4s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
  }
  .nav-links.open { right: 0; }

  .burger { display: flex; }
}


/* ---------- HERO ---------- */
.ab-hero{ padding:64px 24px 32px }
.ab-hero__grid{
  max-width:1200px; margin:0 auto;
  display:grid; gap:32px; grid-template-columns:1.1fr .9fr; align-items:center;
}
@media(max-width:980px){ .ab-hero__grid{ grid-template-columns:1fr } }

.ab-title{
  margin:0 0 10px;
  font:800 clamp(36px,6.2vw,56px)/1.02 "Outfit", Inter, system-ui, sans-serif;
  letter-spacing:-.01em;
}
.ab-title .accent{ color:var(--blue2) }

.ab-lede{
  margin:0 0 16px; max-width:62ch;
  color:var(--muted);
  font:400 clamp(15px,1.6vw,18px)/1.75 Inter, system-ui, sans-serif;
}
.accent-link{ color:var(--blue2); text-decoration:none }
.accent-link:hover{ text-decoration:underline }

.ab-chips{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px }
.chip{
  background:var(--pill); border:1px solid var(--line); color:#1e1e22;
  padding:8px 12px; border-radius:999px; font:600 12px/1 Inter, system-ui, sans-serif;
}

.btn-primary{
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,var(--blue2),var(--blue));
  color:#fff; text-decoration:none; font-weight:800; letter-spacing:.02em;
  padding:12px 16px; border-radius:12px; box-shadow:var(--shadow);
}
.btn-primary .chev{ transform: translateY(1px) }

.ab-portrait{
  justify-self:center; width:min(520px,84vw); border-radius:24px; overflow:hidden;
  box-shadow:var(--shadow); border:1px solid var(--line);
}
.ab-portrait img{ display:block; width:100%; height:auto }

/* === Minimalist Black Down Arrow (no circle, cinematic reveal) === */
.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  margin-left: 25px;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-arrow.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-arrow .arrow-down {
  width: 16px;
  height: 16px;
  border-left: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-45deg);
  animation: arrowBounce 1.6s infinite ease-in-out;
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0) rotate(-45deg);
    opacity: 1;
  }
  50% {
    transform: translateY(8px) rotate(-45deg);
    opacity: 0.6;
  }
}

.scroll-arrow:hover .arrow-down {
  opacity: 0.8;
  transform: translateY(3px) rotate(-45deg);
  transition: all 0.3s ease;
}


/* ---------- STATS PILL ROW ---------- */
.ab-stats{ padding:24px 24px 8px }
.ab-stats__row{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
}
@media(max-width:980px){ .ab-stats__row{ grid-template-columns:repeat(2,1fr) } }

.statPill{
  background:#fff; border:1px solid var(--line);
  border-radius:24px; padding:24px; text-align:center;
  box-shadow:0 8px 20px rgba(0,0,0,.06);
}
.statPill .num{ font:800 clamp(22px,3.2vw,28px)/1 Inter; letter-spacing:-.01em }
.statPill .lab{ color:#707076; font:700 11px/1 Inter; letter-spacing:.22em; text-transform:uppercase; margin-top:6px }

/* ---------- MAIN GRID: approach left / timeline right ---------- */
.ab-main{ padding:28px 24px 40px }
.ab-main__grid{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1.1fr .9fr; gap:40px;
}
@media(max-width:980px){ .ab-main__grid{ grid-template-columns:1fr } }

.ab-h2{
  margin:0 0 10px; font:800 clamp(22px,4.2vw,34px)/1.12 Inter, system-ui, sans-serif; letter-spacing:-.01em
}
.ab-body{ color:var(--muted); line-height:1.75; margin:0 0 18px }

.ab-sub{ margin:18px 0 8px; font:700 14px/1 Inter; letter-spacing:.12em; text-transform:uppercase; color:#606068 }

.ab-tools{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px }
.ab-values{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px }
@media(max-width:980px){ .ab-values{ grid-template-columns:1fr } }
.valCard{
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.valCard h4{ margin:0 0 6px; font-weight:700 }
.valCard p{ margin:0; color:var(--muted) }

/* timeline cards (right column) */
.tl{ list-style:none; padding:0; margin:6px 0 0; display:grid; gap:12px }
.tl-card{
  background:#fff; border:1px solid var(--line); border-radius:16px; padding:16px 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}
.tl-meta span{
  color:#6b6b71; font:700 11px/1 Inter; letter-spacing:.18em; text-transform:uppercase
}
.tl-card h4{ margin:6px 0 6px; font-weight:700 }
.tl-card p{ margin:0; color:var(--muted) }

/* === MINI CTA — clean, minimal, elegant with animated arrow === */
.ab-mini-cta {
  padding: 60px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.ab-mini-cta.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

.ab-mini-cta p {
  font: 400 16px/1.7 Inter, system-ui, sans-serif;
  color: var(--muted);
  margin: 0;
}

.cta-link {
  color: var(--blue2);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  position: relative;
}

.cta-link .arrow {
  display: inline-block;
  animation: pulseArrow 3s ease-in-out infinite;
  transition: transform 0.3s ease, color 0.3s ease;
}

.cta-link:hover {
  color: #0a3e82; /* darker blue */
}

.cta-link:hover .arrow {
  transform: translateX(4px);
  color: #0a3e82;
}

/* Subtle continuous pulse animation */
@keyframes pulseArrow {
  0%, 100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(3px);
    opacity: 0.7;
  }
}


/* ---------- DARK “NOT WORKING” SECTION ---------- */
.ab-life{
  background:var(--deep); color:#000000; padding:56px 24px 70px; margin-top:18px;
}
.ab-life__head{ max-width:1200px; margin:0 auto 18px }
.ab-life__head h2{
  margin:0; font:800 clamp(26px,5.2vw,42px)/1.12 Inter, system-ui, sans-serif
}
.ab-life__row{
  max-width:1200px; margin:0 auto; display:grid; gap:18px;
  grid-template-columns: repeat(5,1fr);
}
@media(max-width:1200px){ .ab-life__row{ grid-template-columns: repeat(3,1fr) } }
@media(max-width:720px){ .ab-life__row{ grid-template-columns: repeat(2,1fr) } }

.lifeTile{
  background:#0d0e10; border:1px solid rgba(255,255,255,.12);
  border-radius:18px; overflow:hidden; box-shadow: 0 10px 24px rgba(0,0,0,.2);
}
.lifeTile img{ display:block; width:100%; height:220px; object-fit:cover }
.lifeTile figcaption{
  text-align:center; padding:10px 8px; font-weight:600; color:#e8f2ff
}

/* ---------- Reveal (tiny) ---------- */
.reveal{ opacity:0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease }
.reveal.in{ opacity:1; transform:none }

/* === Cinematic scroll & stagger animations === */
.reveal-init {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.9s cubic-bezier(.19,1,.22,1);
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

header{
  opacity: 0;
  transform: translateY(-20px);
  transition: all 1s cubic-bezier(.19,1,.22,1);
}
body.loaded header{
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   UNIFIED FOOTER STYLE — same across all pages
   with cinematic fade-in on scroll
   ========================================================= */

.site-footer {
  border-top: 1px solid #00000012;
  background: #f7f7f7;
  padding: 40px 24px;
  color: #555;
  font-family: Inter, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(.19,1,.22,1),
              transform 1s cubic-bezier(.19,1,.22,1);
  will-change: opacity, transform;
}

/* When the footer becomes visible */
.site-footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  text-align: left;
}

.footer-brand {
  font: 600 14px/1 Inter, system-ui, sans-serif;
  letter-spacing: .02em;
  margin: 0 0 6px;
}

.footer-name {
  font-weight: 800;
  color: #000;
}

.footer-tagline {
  margin: 0;
  font: 400 13px/1.5 Inter, system-ui, sans-serif;
  color: #555;
}

.footer-nav a {
  font: 500 13px/1.2 Inter, system-ui, sans-serif;
  color: #333;
  text-decoration: none;
  transition: color .25s ease, transform .25s ease;
}

.footer-nav a:hover {
  color: #000;
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-social a {
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid #333;
  border-radius: 50%;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  transition: all .3s ease;
}

.footer-social a:hover {
  color: #fff;
  background: #333;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social a.cv-circle {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 600;
  width: auto;
  height: auto;
  transition: all .25s ease;
}

.footer-social a.cv-circle:hover {
  background: #333;
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile layout */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-nav {
    margin-top: 10px;
  }
}


/* Scroll progress bar (same as projects) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: #000;
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Smooth text reveal spacing --- */
.ab-lede span,
.ab-body span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: all 0.6s cubic-bezier(.19,1,.22,1);
}
.ab-lede span.reveal-in,
.ab-body span.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Portrait & chips cinematic reveal */
.ab-portrait.reveal-init,
.ab-chips .chip.reveal-init {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: all 0.8s cubic-bezier(.19,1,.22,1);
}
.ab-portrait.reveal-in,
.ab-chips .chip.reveal-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Portrait parallax setup */
.ab-portrait {
  perspective: 1000px;
  overflow: hidden;
  position: relative;
  will-change: transform;
}
.ab-portrait img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: center;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

/* Life tile subtle parallax */
.lifeTile img {
  transition: transform 0.6s ease-out;
  will-change: transform;
}

