/* ============================================
   TOKENS
   ============================================ */
:root {
  --ink: #141B33;
  --ink-soft: #2B3358;
  --paper: #F5F6FA;
  --paper-alt: #ECEEF6;
  --paper-deep: #E3E6F1;
  --brass: #B8862E;
  --brass-light: #E4C98A;
  --brass-dim: #C9A55A;
  --slate: #5B6272;
  --slate-light: #868DA0;
  --line: #D8DCE8;
  --white: #FFFFFF;

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 246, 250, 0.82);
  backdrop-filter: blur(10px);
  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 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--slate);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s var(--ease);
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-cta:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(7rem, 14vw, 10rem) var(--gutter) 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--brass-dim);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-role {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.hero-lede {
  max-width: 42ch;
  color: var(--slate);
  font-size: 1.02rem;
  margin-bottom: 2.25rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--ink); color: var(--paper); }

.hero-visual {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 320px;
  justify-self: center;
}
.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 14px 14px 0 var(--paper-deep);
}
.hero-chart {
  position: absolute;
  bottom: -1.5rem;
  left: -2.25rem;
  width: 56%;
  aspect-ratio: 130 / 90;
  overflow: visible;
  background: var(--paper);
  padding: 0.6rem 0.8rem;
  box-shadow: 0 6px 20px rgba(20, 27, 51, 0.12);
}
.hero-chart-line {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.hero-chart-dot {
  fill: var(--brass);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 7rem; }
  .hero-visual { max-width: 220px; margin-top: 1rem; }
}

/* ============================================
   IMPACT STRIP
   ============================================ */
.impact {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0;
}
.impact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem 1.5rem;
}
.impact-stat { display: flex; flex-direction: column; gap: 0.4rem; }
.impact-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  color: var(--brass-light);
  line-height: 1;
}
.impact-label {
  font-size: 0.82rem;
  color: #C7CBDE;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .impact-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .impact-inner { grid-template-columns: 1fr; }
}

/* ============================================
   SECTION LABELS (shared)
   ============================================ */
.section-label {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  border: 1px solid var(--brass-light);
  padding: 0.15rem 0.5rem;
}
.section-label h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--ink);
}
.section-sub {
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: 0.5rem;
  max-width: 46ch;
}

section { padding: clamp(4rem, 8vw, 6rem) 0; }

/* ============================================
   PROFILE
   ============================================ */
.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.profile-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  max-width: 62ch;
}
@media (max-width: 780px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ASCENT (EXPERIENCE)
   ============================================ */
.ascent { background: var(--paper-alt); }
.ascent-list {
  position: relative;
  margin-top: 1rem;
  padding-left: clamp(1.75rem, 4vw, 2.75rem);
  border-left: 2px solid var(--paper-deep);
}
.ascent-item {
  position: relative;
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
}
.ascent-item:last-child { padding-bottom: 0; }
.ascent-marker {
  position: absolute;
  left: clamp(-2.05rem, -4.3vw, -3.05rem);
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper-alt);
  border: 2px solid var(--brass);
}
.ascent-marker--current {
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(184,134,46,0.2);
}
.ascent-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--brass-dim);
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}
.ascent-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.ascent-company {
  font-size: 0.92rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 1rem;
}
.ascent-card--current .ascent-company { margin-bottom: 0; }
.ascent-subhead {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin: 0.9rem 0 0.5rem;
}
.resp-list li, .achieve-list li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.55rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: 68ch;
}
.resp-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 1.5px;
  background: var(--slate-light);
}
.achieve-list { margin-top: 0.5rem; }
.achieve-list li { color: var(--ink); font-weight: 500; }
.achieve-list li::before {
  content: "\2605";
  position: absolute;
  left: 0; top: -0.08em;
  font-size: 0.7rem;
  color: var(--brass);
}

.ascent-card--current {
  background: var(--white);
  border: 1px dashed var(--brass-light);
  padding: 1.1rem 1.3rem;
  display: inline-block;
}

/* reveal-on-scroll */
.ascent-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.ascent-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SKILLS
   ============================================ */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.skills-group-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brass-dim);
  margin-bottom: 1rem;
}
.chip-list { display: flex; flex-direction: column; gap: 0.6rem; }
.chip-list li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.6rem 0.85rem;
  background: var(--paper-alt);
  border-left: 2px solid var(--brass-light);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.chip-list li:hover {
  border-left-color: var(--brass);
  background: var(--paper-deep);
}
@media (max-width: 780px) {
  .skills-groups { grid-template-columns: 1fr; }
}

/* ============================================
   CREDENTIALS
   ============================================ */
.credentials { background: var(--paper-alt); }
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.credential-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.credential-item:last-child { }
.credential-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass-dim);
  margin-bottom: 0.35rem;
}
.credential-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.credential-org { font-size: 0.92rem; color: var(--slate); }
@media (max-width: 780px) {
  .credentials-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================
   CONTACT / FOOTER
   ============================================ */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4.5rem, 9vw, 7rem) 0 3rem;
}
.contact-inner { text-align: left; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.contact-lede {
  color: #C7CBDE;
  max-width: 46ch;
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
}
.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.contact-list li { display: flex; flex-direction: column; gap: 0.35rem; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brass-light);
}
.contact-list a { font-size: 1.05rem; transition: color 0.2s var(--ease); }
.contact-list a:hover { color: var(--brass-light); }
.contact-list span:not(.contact-label) { font-size: 1.05rem; }

.contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact-foot .btn-primary { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.contact-foot .btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); transform: translateY(-2px); }
.copyright { font-size: 0.82rem; color: var(--slate-light); font-family: var(--font-mono); }
