/* ============================================================
   Xavier Báez — personal executive site
   Real design tokens carried over from the site's own Claude
   Design source (Jost + Inter, black/blue system) — not reinvented.
   ============================================================ */

:root {
  --black: #0A0A0A;
  --black-soft: #111114;
  --black-card: #14141A;
  --line: #1F2027;
  --line-strong: #2A2C36;
  --white: #FFFFFF;
  --white-cool: #F2F4F8;
  --silver: #9CA3AF;
  --silver-deep: #6B7280;
  --silver-faint: #4B5260;
  --blue: #3B82F6;
  --blue-deep: #2563EB;
  --blue-soft: rgba(59, 130, 246, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--black); color: var(--white-cool); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .container { padding: 0 24px; } }

/* ---- Top nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); transition: color .2s; padding: 6px 4px; }
.nav-links a:hover { color: var(--white); }
.nav-cta { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue); padding: 10px 18px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-cta:hover { background: var(--blue); color: var(--white); }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line-strong); border-radius: 4px; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 72px 0 0 0; background: var(--black); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; border-top: 1px solid var(--line); }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
}

/* ---- Wordmark (reusable) ---- */
.wm { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; font-family: 'Jost', sans-serif; }
.wm .xv { font-weight: 200; color: var(--white); letter-spacing: 0.36em; padding-left: 0.36em; margin-right: 0.55em; }
.wm .bz { font-weight: 800; color: var(--blue); letter-spacing: 0.04em; padding-left: 0.04em; position: relative; display: inline-flex; align-items: baseline; }
.wm .a-glyph { position: relative; display: inline-block; }
.wm .acute { position: absolute; left: 50%; transform: translateX(-50%); top: -0.3em; width: 0.34em; height: 0.18em; }
.wm .acute svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nav-mark { font-size: 16px; }

/* ---- Hero — split-screen executive ---- */
.hero { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; min-height: calc(100vh - 72px); align-items: center; }
.hero-left { padding: 96px 64px 96px 0; max-width: 760px; }
.hero-right { position: relative; height: 100%; min-height: 600px; }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-left { padding: 96px 0 64px; max-width: none; order: 2; }
  .hero-right { min-height: 520px; order: 1; margin: 0 -48px; }
}
@media (max-width: 720px) { .hero-right { margin: 0 -24px; min-height: 420px; } }

.eyebrow { font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.5em; margin-bottom: 40px; display: flex; align-items: center; gap: 16px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--blue); }
.hero .name { font-size: clamp(48px, 6.4vw, 96px); margin: 0 0 24px; }
.hero .title { font-family: 'Inter', sans-serif; font-weight: 400; font-size: clamp(14px, 1.15vw, 17px); color: var(--silver); letter-spacing: 0.08em; line-height: 1.6; max-width: 640px; margin: 0 0 56px; }
.hero .title .pipe { color: var(--silver-faint); margin: 0 0.5em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 48px; max-width: 640px; }
.stat { padding: 24px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 30px; color: var(--white); line-height: 1; margin-bottom: 12px; letter-spacing: -0.01em; white-space: nowrap; }
.stat .num .accent { color: var(--blue); }
.stat .label { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.32em; line-height: 1.5; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: none; } }

/* Headshot — seamless fade */
.headshot { position: absolute; inset: 0; }
.headshot img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: grayscale(15%) contrast(1.05); }
.headshot::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(10,10,10,0.85) 8%, rgba(10,10,10,0.35) 22%, transparent 42%),
    linear-gradient(180deg, var(--black) 0%, transparent 18%, transparent 82%, var(--black) 100%),
    linear-gradient(270deg, transparent 70%, rgba(10,10,10,0.6) 95%, var(--black) 100%);
}
@media (max-width: 1100px) {
  .headshot::before {
    background:
      linear-gradient(180deg, transparent 0%, transparent 60%, rgba(10,10,10,0.85) 90%, var(--black) 100%),
      linear-gradient(0deg, transparent 0%, transparent 60%, rgba(10,10,10,0.5) 95%, rgba(10,10,10,0.6) 100%),
      radial-gradient(ellipse at center, transparent 50%, rgba(10,10,10,0.45) 100%);
  }
  .headshot img { object-position: center 15%; }
}
.headshot .plate { position: absolute; bottom: 32px; right: 32px; z-index: 3; display: flex; align-items: center; gap: 14px; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver); padding-left: 0.4em; }
.headshot .plate::before { content: ""; width: 28px; height: 1px; background: var(--blue); }
.headshot .corner-tag { position: absolute; top: 28px; right: 32px; z-index: 3; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver); padding-left: 0.4em; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; transition: all .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--blue); color: var(--white); border: 1px solid var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ghost { color: var(--white); border: 1px solid var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn .arrow { font-family: 'Jost', sans-serif; font-weight: 300; }

/* ---- Section header ---- */
.section { padding: 120px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 64px; gap: 32px; flex-wrap: wrap; }
.section-head .num { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px; letter-spacing: 0.4em; color: var(--blue); padding-left: 0.4em; }
.section-head h2 { font-family: 'Jost', sans-serif; font-weight: 300; font-size: clamp(32px, 4vw, 52px); color: var(--white); margin: 12px 0 0; letter-spacing: -0.01em; line-height: 1.1; }
.section-head .lead { font-size: 17px; color: var(--silver); max-width: 460px; line-height: 1.7; }

/* ---- Speaking ---- */
.talks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
@media (max-width: 900px) { .talks-grid { grid-template-columns: 1fr; } }
.talk { background: var(--black-card); border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; min-height: 420px; transition: border-color .2s; }
.talk:hover { border-color: var(--line-strong); }
.talk .marker { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px; color: var(--blue); letter-spacing: 0.4em; padding-left: 0.4em; margin-bottom: 28px; }
.talk h3 { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 23px; color: var(--white); line-height: 1.25; margin: 0 0 16px; }
.talk .audience { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-deep); line-height: 1.6; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.talk .audience b { color: var(--silver); font-weight: 500; }
.talk p.desc { font-size: 15px; line-height: 1.7; color: var(--silver); margin: 0 0 auto; }
.talk .takeaway { font-size: 13px; line-height: 1.6; color: var(--silver-deep); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.talk .takeaway strong { color: var(--white-cool); font-weight: 500; }

.venues { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 28px; border: 1px solid var(--line); padding: 28px 32px; margin-bottom: 24px; }
.venues .label { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue); padding-left: 0.4em; flex-shrink: 0; }
.venues .list { font-size: 15px; color: var(--silver); line-height: 1.7; }

.reel-note { border: 1px dashed var(--line-strong); padding: 22px 32px; text-align: center; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver-faint); padding-left: 0.4em; margin-bottom: 56px; }

.speak-cta { text-align: center; }
.speak-cta .caption { font-size: 13px; color: var(--silver-deep); margin-top: 18px; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 96px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 64px; } }
.bio p { font-size: 18px; line-height: 1.75; color: var(--silver); margin: 0 0 24px; }
.bio p strong { color: var(--white); font-weight: 500; }
.bio .founding { font-size: 16px; line-height: 1.7; color: var(--silver-deep); }
.bio .founding strong { color: var(--silver); font-weight: 500; }
.bio .signature { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.bio .signature .role { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.32em; }

.stack { border: 1px solid var(--line); }
.stack-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.stack-head .label { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.4em; }
.stack-head .count { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px; color: var(--blue); }
.stack-lede { padding: 20px 24px; border-bottom: 1px solid var(--line); font-family: 'Jost', sans-serif; font-weight: 300; font-size: 16px; line-height: 1.6; color: var(--silver); margin: 0; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tool { padding: 32px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 140px; transition: background .2s; }
.tool:hover { background: var(--black-soft); }
.tool:nth-child(3n) { border-right: none; }
.tool:nth-last-child(-n+3) { border-bottom: none; }
.tool .glyph { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.tool .name { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-cool); text-align: center; }
.tool .cat { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver-faint); padding-left: 0.28em; }

/* ---- Career cards ---- */
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .career-grid { grid-template-columns: 1fr; } }
.card { background: var(--black-card); border: 1px solid var(--line); padding: 40px 36px; display: flex; flex-direction: column; min-height: 380px; transition: border-color .2s; }
.card:hover { border-color: var(--line-strong); }
.card .marker { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 12px; color: var(--blue); letter-spacing: 0.4em; padding-left: 0.4em; margin-bottom: 32px; }
.card .company { font-family: 'Jost', sans-serif; font-weight: 500; font-size: 26px; color: var(--white); letter-spacing: 0.02em; margin-bottom: 12px; }
.card .scope { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.22em; line-height: 1.6; margin-bottom: 32px; }
.card .achievement { font-size: 16px; line-height: 1.75; color: var(--silver); margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.card .achievement strong { color: var(--white); font-weight: 500; }

/* ---- What I do — single panel ---- */
.panels { display: grid; grid-template-columns: minmax(0, 640px); }
.panel { background: var(--black-card); border: 1px solid var(--line); padding: 56px 48px; display: flex; flex-direction: column; min-height: 380px; cursor: pointer; transition: border-color .25s, background .25s; }
.panel:hover { border-color: var(--blue); background: #14161E; }
.panel .tag { font-size: 10px; letter-spacing: 0.45em; text-transform: uppercase; color: var(--blue); padding-left: 0.45em; margin-bottom: 36px; }
.panel .heading { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 36px; color: var(--white); line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 28px; }
.panel .heading .hl { color: var(--blue); font-weight: 600; }
.panel .desc { font-size: 17px; line-height: 1.75; color: var(--silver); margin-bottom: 32px; }
.panel .meta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; border-top: 1px solid var(--line); }
.panel .meta-row { display: flex; justify-content: space-between; font-size: 13px; }
.panel .meta-row .k { color: var(--silver-deep); letter-spacing: 0.18em; text-transform: uppercase; }
.panel .meta-row .v { color: var(--white); }
.panel .footer-link { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel .footer-link .label { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--silver); padding-left: 0.32em; }
.panel .footer-link .arrow { color: var(--blue); font-family: 'Jost', sans-serif; font-weight: 300; font-size: 24px; transition: transform .2s; }
.panel:hover .footer-link .arrow { transform: translateX(6px); }

/* ---- Certs grid ---- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
@media (max-width: 720px) { .certs { grid-template-columns: 1fr; } }
.cert { padding: 32px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.cert:nth-child(3n) { border-right: none; }
.cert:nth-last-child(-n+3) { border-bottom: none; }
@media (max-width: 720px) { .cert { border-right: none !important; } .cert:last-child { border-bottom: none; } }
.cert .status { font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; padding-left: 0.4em; }
.cert .status.active { color: var(--blue); }
.cert .status.progress { color: var(--silver); }
.cert .status.planned { color: var(--silver-faint); }
.cert .name { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 17px; color: var(--white); line-height: 1.4; }
.cert .institution { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.22em; }

/* ---- Blog / Insights strip ---- */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1200px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .blog-grid { grid-template-columns: 1fr; } }
.article { background: var(--black-card); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; min-height: 320px; transition: border-color .2s; cursor: pointer; }
.article:hover { border-color: var(--blue); }
.article .cat { display: inline-block; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--blue); padding: 6px 12px 6px calc(12px + 0.4em); border: 1px solid var(--blue); align-self: flex-start; margin-bottom: 28px; }
.article .title { font-family: 'Jost', sans-serif; font-weight: 400; font-size: 21px; color: var(--white); line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.005em; }
.article .desc { font-size: 15px; line-height: 1.7; color: var(--silver); margin-bottom: 28px; }
.article .read { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; }
.article .read .label { color: var(--silver); padding-left: 0.28em; }
.article .read .arrow { color: var(--blue); font-family: 'Jost', sans-serif; font-size: 16px; font-weight: 300; transition: transform .2s; }
.article:hover .read .arrow { transform: translateX(6px); }
.article .meta { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--silver-faint); padding-left: 0.32em; margin-bottom: 14px; }

/* ---- Contact ---- */
.contact { padding: 140px 0; text-align: center; border-bottom: 1px solid var(--line); }
.contact .eyebrow { font-size: 11px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--blue); padding-left: 0.5em; margin-bottom: 32px; justify-content: center; }
.contact .eyebrow::before { display: none; }
.contact h2 { font-family: 'Jost', sans-serif; font-weight: 200; font-size: clamp(56px, 9vw, 120px); color: var(--white); margin: 0 0 48px; letter-spacing: -0.02em; line-height: 1; }
.contact .email { font-family: 'Jost', sans-serif; font-weight: 300; font-size: 26px; color: var(--white); margin-bottom: 56px; display: inline-block; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.contact .email:hover { border-color: var(--blue); color: var(--blue); }
.contact .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.contact .location { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--silver-deep); padding-left: 0.4em; }

/* ---- Footer ---- */
footer { padding: 40px 0 48px; }
.foot-legal { font-size: 12.5px; line-height: 1.6; color: var(--silver-faint); max-width: 640px; margin: 0 auto 28px; text-align: center; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-copy { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver-faint); padding-left: 0.28em; }
.foot-link { color: var(--silver); transition: color .2s; }
.foot-link:hover { color: var(--blue); }

/* ---- Mailto fallback toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  z-index: 100;
  background: var(--black-card);
  border: 1px solid var(--line-strong);
  color: var(--white-cool);
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  max-width: calc(100vw - 48px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* SVG glyph helpers */
.glyph svg { width: 100%; height: 100%; display: block; }
