/* ============================================================
   Vincent Clyde Burgos — CV Landing Page
   Design System: "Authoritative Restraint"
   Depth System: High-Contrast Negative Space
   Type: Outfit (display) · DM Sans (body) · JetBrains Mono (data)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Dark (default) */
  --bg:        #0b0c0e;
  --bg-2:      #0e1012;
  --surface:   #131619;
  --surface-2: #171a1e;
  --ink:       #f5f6f7;
  --ink-2:     rgba(245, 246, 247, 0.66);
  --ink-3:     rgba(245, 246, 247, 0.40);
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.15);
  --accent:    #e8a44c;
  --accent-2:  #f2bd76;
  --accent-ink:#150f06;
  --accent-soft: rgba(232, 164, 76, 0.12);
  --nav-bg:    rgba(11, 12, 14, 0.72);
  --shadow-lift: 0 18px 40px -24px rgba(0, 0, 0, 0.8);

  --font-display: "DotGothic16", system-ui, sans-serif;       /* titles / headers */
  --font-body:    "Space Mono", ui-monospace, monospace;      /* content + labels */
  --font-mono:    "Space Mono", ui-monospace, monospace;      /* small mono labels */
  --font-num:     "DotGothic16", system-ui, sans-serif;       /* numbers / metrics */

  --maxw: 1120px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --bg:        #f6f5f2;
  --bg-2:      #efece6;
  --surface:   #ffffff;
  --surface-2: #faf9f6;
  --ink:       #15171c;
  --ink-2:     rgba(21, 23, 28, 0.66);
  --ink-3:     rgba(21, 23, 28, 0.46);
  --line:      rgba(21, 23, 28, 0.12);
  --line-2:    rgba(21, 23, 28, 0.20);
  --accent:    #b06f17;
  --accent-2:  #97600f;
  --accent-ink:#ffffff;
  --accent-soft: rgba(176, 111, 23, 0.10);
  --nav-bg:    rgba(246, 245, 242, 0.78);
  --shadow-lift: 0 18px 40px -26px rgba(40, 30, 10, 0.4);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-family: var(--font-display); letter-spacing: 0; }
strong { color: var(--ink); font-weight: 600; }

.container { width: min(var(--maxw), 100% - 2 * var(--pad)); margin-inline: auto; }
section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Ambient depth (restraint: one faint glow + fine grain) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 78% -8%, var(--accent-soft) 0%, transparent 52%),
    radial-gradient(90% 60% at 0% 0%, rgba(120, 150, 200, 0.05) 0%, transparent 45%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.nav__brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; }
.nav__monogram {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--accent);
}
.nav__brandtext { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 0.35rem; margin-left: auto; }
.nav__links a {
  font-size: 0.85rem;
  color: var(--ink-2);
  padding: 0.4rem 0.7rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.15rem;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 0.6rem; }
.nav__links + .nav__actions { margin-left: 0; }
.nav__links { /* keep links pushed right, actions after */ }

.theme-toggle {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.site-header { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 30%, 340px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.4rem;
}
.ping {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(232,164,76,0.5); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(232,164,76,0); }
}
.hero__name {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 1.4rem;
}
.hero__positioning {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0 0 1.6rem;
}
.hero__tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}
.hero__tags li {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }

/* Portrait */
.hero__aside { display: flex; justify-content: center; }
.hero__portrait { position: relative; margin: 0; width: 100%; max-width: 340px; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--r-lg);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
}
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -10px -10px 14px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  opacity: 0.45;
  z-index: -1;
  transition: inset 0.5s var(--ease);
}
.hero__portrait:hover .hero__photo { filter: grayscale(0) contrast(1); transform: translateY(-3px); }
.hero__portrait:hover::before { inset: -6px -6px 18px 18px; }
.hero__badge {
  position: absolute;
  left: 12px; bottom: -14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-lift);
}
.hero__badge span { color: var(--accent); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -12px var(--accent);
}
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--accent); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- Contact links ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.contact-links a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s var(--ease);
}
.contact-links .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.contact-links a span { position: relative; }
.contact-links a span::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.contact-links a:hover { color: var(--ink); }
.contact-links a:hover .ic { color: var(--accent); }
.contact-links a:hover span::after { transform: scaleX(1); }

/* ---------- Impact band ---------- */
.impact { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.impact__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 1.5rem 1.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.stat:hover { background: var(--accent-soft); }
.stat__value {
  font-family: var(--font-num);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.stat__value .unit { color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--ink-3); line-height: 1.4; }

/* ---------- Section heads / eyebrows ---------- */
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 0.7rem;
}
.eyebrow__num { color: var(--accent); }
.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- About ---------- */
.about__body { max-width: 62ch; }
.about__body .lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink); line-height: 1.55; }
.about__body p { margin: 0 0 1.1rem; color: var(--ink-2); }
.about__body p:last-child { margin-bottom: 0; }

/* ---------- Domain cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 1.6rem 1.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
}
.card:hover { background: var(--surface); transform: translateY(-2px); }
.card__icon {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  color: var(--accent);
  margin-bottom: 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover .card__icon { background: var(--accent-soft); border-color: var(--accent); }
.card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.05rem; font-weight: 400; margin-bottom: 0.6rem; letter-spacing: 0; }
.card p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }

/* ---------- Experience timeline ---------- */
.timeline { position: relative; }
.job {
  padding: 1.9rem 0 1.9rem 1.6rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job::before {
  content: "";
  position: absolute;
  left: 0; top: 2.35rem;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.job:hover::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.job__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.3rem 1.5rem;
  margin-bottom: 0.9rem;
}
.job__title { font-size: 1.2rem; font-weight: 400; letter-spacing: 0; }
.job__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.job ul { display: grid; gap: 0.5rem; }
.job li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.job li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 14px; height: 1.5px;
  background: var(--line-2);
}
.job li strong { color: var(--ink); }

/* ---------- Skills / certs groups ---------- */
.groups { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.group { background: var(--bg); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: 1.2rem; align-items: start; }
.group__name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.35rem;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.86rem;
  color: var(--ink-2);
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.tag:hover { border-color: var(--accent); color: var(--ink); }
.tag--pursuing {
  border-style: dashed;
  color: var(--ink-3);
}
.tag--pursuing:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Speaking ---------- */
.speaking__quote {
  margin: 0;
  border-left: 2px solid var(--accent);
  padding: 0.2rem 0 0.2rem 1.6rem;
  max-width: 70ch;
}
.speaking__quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0;
}
.speaking__quote a {
  color: var(--accent);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.speaking__quote a:hover { border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer__lead p { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 1.6rem; max-width: 36ch; }
.contact-links--footer { flex-direction: column; gap: 0.9rem; }
.contact-links--footer a { font-size: 1rem; }
.footer__copy {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

/* ---------- Scroll reveal (only hidden when JS is present) ---------- */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .impact__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .group { grid-template-columns: 1fr; gap: 0.7rem; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__aside { order: -1; justify-content: flex-start; }
  .hero__portrait { max-width: 220px; }
  .hero__photo { aspect-ratio: 1 / 1; }
  .job__meta { white-space: normal; }
  .job__head { gap: 0.2rem; }
}
@media (max-width: 480px) {
  .impact__grid { grid-template-columns: 1fr; }
  .nav__brandtext { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .ambient, .hero__cta, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; }
}
