/* Sum Zero Wealth — shared chassis styles */

/* ---- Fonts (Klim trial files; swap for licensed before launch) ---- */

/* ---- Design tokens ---- */
:root {
    --bg-light: #f2f1ef;
    --bg-warm: #ede6d5;
    --ink: #1a1814;
    --ink-soft: #2c2925;
    --ink-muted: #6e6a62;
    --hairline: rgba(26,24,20,0.14);
    --accent: #2F5FAC;
    --accent-secondary: #6b8e7a;
    --bg-dark: #252838;
    --white: #ffffff;
  }

/* ---- Base + chassis components ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg-light); color-scheme: light; }
body {
    background-color: #f2f1ef !important;
    background: var(--bg-light);
    color: var(--ink);
    font-family: "Soehne", sans-serif;
    font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }
body::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
    opacity: 0.22; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
/* ---------- NAV ---------- */
  .nav {
    position: sticky; top: 0; z-index: 300;
    background: #f2f1ef;

    border-bottom: 1px solid var(--hairline);
    padding: 22px 40px;
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; }
.wordmark {
    font-family: "Soehne", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
  }
.nav-right { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500;
    position: relative; padding: 4px 0;
  }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--accent-secondary);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
  }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn {
    font-family: "Soehne", sans-serif; font-size: 13.5px; font-weight: 500;
    padding: 10px 18px; border-radius: 2px;
    border: 1px solid var(--ink); cursor: pointer; text-decoration: none;
    color: var(--ink); background: transparent;
    transition: all 0.2s ease; white-space: nowrap;
  }
.btn:hover { background: var(--bg-dark); color: var(--white); }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: #264e99; border-color: #264e99; color: var(--white); }

.nav-cta-mobile {
    display: none;
    align-items: center;
    gap: 8px;
  }
.nav-cta-mobile .btn-hide-mobile {
    display: none;
  }
.nav-cta-mobile .btn {
    font-size: 12px;
    padding: 8px 14px;
    white-space: nowrap;
  }
/* ── HAMBURGER + MOBILE DRAWER ── */
  .hamburger {
    display: none;
    flex-direction: column;

    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    cursor: pointer;
    background: none; border: none;
    padding: 4px;
    z-index: 201;
  }
.hamburger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--bg-dark);
    transition: all 0.3s ease;
    transform-origin: center;
  }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* Mobile drawer overlay */
  .mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
    background: var(--bg-dark);
    flex-direction: column;

    padding: 24px 40px 60px;
    gap: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
    pointer-events: none;
  }
.mobile-drawer.open {
    display: flex;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
  }
.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;

    gap: 0;
    border-top: 1px solid rgba(245,240,230,0.12);
  }
.mobile-drawer-links li {
    border-bottom: 1px solid rgba(245,240,230,0.12);
  }
.mobile-drawer-links a {
    display: block;
    font-family: "Tiempos Headline", serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--white);
    text-decoration: none;
    padding: 20px 0;
    transition: color 0.2s;
  }
.mobile-drawer-links a:hover { color: var(--accent-secondary); }
.mobile-drawer-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;

    gap: 12px;
  }
.mobile-drawer-cta .btn {
    border-color: rgba(245,240,230,0.4);
    color: var(--white);
    text-align: center;
    font-size: 15px;
    padding: 14px 24px;
  }
.mobile-drawer-cta .btn:hover { background: rgba(245,240,230,0.1); }
.mobile-drawer-cta .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
  }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.btn-inline {
    font-family: "Soehne", sans-serif; font-size: 13.5px; font-weight: 500;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--ink); padding-bottom: 1px;
    white-space: nowrap; transition: color 0.2s, border-color 0.2s;
  }
.btn-inline:hover { color: var(--accent); border-color: var(--accent); }
/* FOOTER */
  .footer {
    background: var(--bg-dark);
    color: var(--bg-light);
    margin-top: 0;
  }
.footer-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 64px 40px 40px;
  }
.footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
  }
.footer-wordmark {
    font-family: "Soehne", sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bg-light);
    margin-bottom: 8px;
  }
.footer-tagline {
    font-family: "Soehne Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245,240,230,0.45);
  }
.footer-custody {
    display: flex;
    flex-direction: column;

    align-items: flex-end;
    gap: 8px;
  }
.footer-custody-label {
    font-family: "Soehne Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245,240,230,0.4);
  }
.schwab-logo-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
  }
.footer-rule {
    border: none;
    border-top: 1px solid rgba(245,240,230,0.1);
    margin: 0 0 48px;
  }
.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
  }
.footer-col-head {
    font-family: "Soehne", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245,240,230,0.45);
    margin-bottom: 16px;
  }
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;

    gap: 10px;
  }
.footer-links a {
    font-family: "Soehne", sans-serif;
    font-size: 14px;
    color: rgba(245,240,230,0.75);
    text-decoration: none;
    transition: color 0.2s ease;
  }
.footer-links a:hover { color: var(--bg-light); }
.footer-bottom { padding-bottom: 8px; }
.footer-legal {
    font-family: "Soehne", sans-serif;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(245,240,230,0.35);
  }
.footer-legal a {
    color: rgba(245,240,230,0.5);
    text-decoration: none;
  }
.footer-legal a:hover { color: rgba(245,240,230,0.8); }

/* ---- Responsive chassis ---- */
/* ---------- RESPONSIVE ---------- */
  @media (max-width: 980px) {
  body::before { display: none; }
  .nav { padding: 14px 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; align-items: center; gap: 8px; }
  .hamburger { display: flex; }
  .footer-inner { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column;
 align-items: flex-start; gap: 32px; }
  .footer-custody { align-items: flex-start; }
  .footer-sitemap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .nav { padding: 14px 16px; }
}
@media (max-width: 1100px) {

}
@media (max-width: 980px) {
  .nav { padding: 14px 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: flex; }
  .hamburger { display: flex; }
  body::before { display: none; }
  .footer-inner { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column;
 align-items: flex-start; gap: 32px; }
  .footer-custody { align-items: flex-start; }
  .footer-sitemap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-sitemap { grid-template-columns: 1fr; }
}

/* ---- @font-face (Klim trial files – replace with licensed woff2 before launch) ---- */
@font-face {
  font-family: "Tiempos Headline";
  src: url("/assets/fonts/tiempos-headline-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("/assets/fonts/tiempos-headline-regular-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Tiempos Headline";
  src: url("/assets/fonts/tiempos-headline-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne";
  src: url("/assets/fonts/soehne-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne";
  src: url("/assets/fonts/soehne-kraftig.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Soehne Mono";
  src: url("/assets/fonts/soehne-mono-buch.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Animations ---- */

/* Base fade-up: single elements */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered group — children animate in sequence */
.fade-up-group > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up-group.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.00s; }
.fade-up-group.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.08s; }
.fade-up-group.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.fade-up-group.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }
.fade-up-group.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.32s; }
.fade-up-group.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }
.fade-up-group.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.48s; }
.fade-up-group.visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.56s; }
.fade-up-group.visible > *:nth-child(9) { opacity: 1; transform: translateY(0); transition-delay: 0.64s; }
.fade-up-group.visible > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 0.72s; }
.fade-up-group.visible > *:nth-child(11) { opacity: 1; transform: translateY(0); transition-delay: 0.80s; }
.fade-up-group.visible > *:nth-child(12) { opacity: 1; transform: translateY(0); transition-delay: 0.88s; }
.fade-up-group.visible > *:nth-child(13) { opacity: 1; transform: translateY(0); transition-delay: 0.96s; }
.fade-up-group.visible > *:nth-child(14) { opacity: 1; transform: translateY(0); transition-delay: 1.04s; }
.fade-up-group.visible > *:nth-child(15) { opacity: 1; transform: translateY(0); transition-delay: 1.12s; }
.fade-up-group.visible > *:nth-child(16) { opacity: 1; transform: translateY(0); transition-delay: 1.20s; }
.fade-up-group.visible > *:nth-child(17) { opacity: 1; transform: translateY(0); transition-delay: 1.28s; }
.fade-up-group.visible > *:nth-child(18) { opacity: 1; transform: translateY(0); transition-delay: 1.36s; }
.fade-up-group.visible > *:nth-child(19) { opacity: 1; transform: translateY(0); transition-delay: 1.44s; }
.fade-up-group.visible > *:nth-child(20) { opacity: 1; transform: translateY(0); transition-delay: 1.52s; }
.fade-up-group.visible > *:nth-child(21) { opacity: 1; transform: translateY(0); transition-delay: 1.60s; }
.fade-up-group.visible > *:nth-child(22) { opacity: 1; transform: translateY(0); transition-delay: 1.68s; }
.fade-up-group.visible > *:nth-child(23) { opacity: 1; transform: translateY(0); transition-delay: 1.76s; }
.fade-up-group.visible > *:nth-child(24) { opacity: 1; transform: translateY(0); transition-delay: 1.84s; }

/* Subtle fade-in only (no movement) — for large hero sections */
.fade-in {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.fade-in.visible { opacity: 1; }

/* Slide in from left */
.slide-right {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

/* ---- Drawer top row with X button ---- */
.drawer-top-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.drawer-x {
  background: none;
  border: none;
  color: var(--bg-light);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 0 4px 16px;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.drawer-x:hover { opacity: 1; }

/* ---- Logo sizing ---- */
@media (max-width: 980px) {
  .nav-logo img { height: 26px !important; }
}

/* ---- Nav always fully visible, no transitions ---- */
.nav, .nav-logo, .nav-logo img, .nav-links, .nav-links a, .nav-cta {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.nav-links a { transition: color 0.2s ease !important; }

/* ---- Bio contact row ---- */
.bio-contact {
  display: flex;
  gap: 20px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

/* ---- Bio contact + LinkedIn updates ---- */
.bio-linkedin {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.bio-linkedin:hover { opacity: 1; }

/* ---- Bio contact email link ---- */
.bio-contact a {
  color: rgba(245,240,230,0.5);
  font-family: "Soehne Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}
.bio-contact a:hover { color: rgba(245,240,230,0.8); }
.approach-cta {
    background: var(--bg-light);
    padding: 80px 40px;
    border-top: 1px solid var(--hairline);
    text-align: center;
}
.approach-cta-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
}
.approach-cta-label {
    font-family: "Tiempos Headline", serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.approach-cta-label {
    font-family: "Tiempos Headline", serif;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

/* ---- Readable measure for body copy ---- */
.measure {
  max-width: 68ch;
}