:root {
  /* Executive monochrome: pure black, white type, champagne-gold detail */
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --surface: #111111;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --border: rgba(255, 255, 255, 0.1);
  --glow-border: rgba(255, 255, 255, 0.22);
  --ink: #ffffff;
  --muted: #a3a3a3;
  --accent: #f2f2f2;
  --accent-2: #c9a96e;
  --accent-3: #dcc49a;
  --gold: #c9a96e;
  --accent-ink: #000000;
  --accent-soft: rgba(201, 169, 110, 0.12);
  --radius: 16px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px var(--glow-border), 0 10px 30px rgba(0, 0, 0, 0.5);
  --max-width: 1240px;
  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-theme="light"] {
  --bg: #fafafa;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.78);
  --border: #e4e4e4;
  --glow-border: rgba(0, 0, 0, 0.18);
  --ink: #0a0a0a;
  --muted: #555555;
  --accent: #0a0a0a;
  --accent-2: #8f6f35;
  --accent-ink: #ffffff;
  --accent-soft: rgba(143, 111, 53, 0.1);
  --shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  --glow: 0 0 0 1px var(--glow-border), 0 8px 24px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }
/* Eye-friendly nav: no smooth-scroll roll — we fade + jump instantly via nav-fade.js */
html { scroll-behavior: auto; }
main.nav-fade { transition: opacity 0.18s ease; will-change: opacity; }
main.nav-fade-out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { main.nav-fade { transition: none; } }

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

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo-variable.woff2") format("woff2-variations"), url("fonts/archivo-variable.woff2") format("woff2");
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  transition: background 0.2s ease, color 0.2s ease;
}

img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 10px; }
.section-hint { color: var(--muted); margin: 0 0 26px; font-size: 0.94rem; }
.section h2 { margin-bottom: 28px; }
.section h2 + .section-hint { margin-top: -18px; }

a { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* Glass / glow surfaces */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.05s; }
.reveal.delay-2 { transition-delay: 0.1s; }
.reveal.delay-3 { transition-delay: 0.15s; }
.reveal.delay-4 { transition-delay: 0.2s; }
.reveal.delay-5 { transition-delay: 0.25s; }
.reveal.delay-6 { transition-delay: 0.3s; }

/* 3D tilt interaction (cards + hero photo) */
.tilt {
  --tilt-rx: 0deg;
  --tilt-ry: 0deg;
  position: relative;
  transform: perspective(900px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry)) translateZ(0);
  transition: transform 0.15s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.tilt:hover, .tilt:focus-within {
  transform: perspective(900px) rotateX(var(--tilt-rx)) rotateY(var(--tilt-ry)) translateZ(16px);
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%), rgba(255, 255, 255, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.tilt:hover::after { opacity: 1; }
html[data-theme="light"] .tilt::after {
  background: radial-gradient(circle at var(--tilt-gx, 50%) var(--tilt-gy, 50%), rgba(0, 0, 0, 0.06), transparent 62%);
}
@media (prefers-reduced-motion: reduce) {
  .tilt, .tilt:hover, .tilt:focus-within { transform: none; }
  .tilt::after { display: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-left: auto;
}
.main-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 2px;
  opacity: 0.85;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 2px; right: 2px; bottom: 6px; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:not(.nav-cta):hover { opacity: 1; color: var(--accent); }
.main-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.main-nav a:not(.nav-cta)[aria-current="page"] {
  opacity: 1;
  color: var(--accent-2);
}
.main-nav a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent-2);
}
.mobile-nav a[aria-current="page"] { color: var(--accent-2); }
.nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  padding: 10px 16px !important;
  border-radius: 999px;
  opacity: 1 !important;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 16px; }

.theme-toggle, .nav-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: 10px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav:not([hidden]) { display: flex; }
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 14px; font-size: 0.85rem; min-height: 38px; }

/* Background particle canvas */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
}
html[data-theme="light"] .bg-canvas { opacity: 0.25; }

/* ===== Hero: executive split-screen inside a framed panel ===== */
.hero {
  position: relative;
  padding: 40px 0 28px;
  background: var(--bg);
}
.hero-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(900px 520px at 78% 30%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--bg);
  overflow: hidden;
}
html[data-theme="light"] .hero-frame {
  background: radial-gradient(900px 520px at 78% 30%, rgba(0, 0, 0, 0.035), transparent 70%), var(--bg-alt);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: stretch;
  min-height: min(680px, calc(100svh - 220px));
}
.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 52px 0 44px 60px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7.4vw, 6.8rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 22px;
}
.name-line { display: block; }

.hero-headline {
  max-width: 560px;
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.32rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.hero-title {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.hero-pipe { margin: 0 12px; color: var(--muted); font-weight: 300; }
.hero-pillars {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  max-width: 600px;
}
.pillar-typing {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 1.5em;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.pillar-prompt { color: var(--muted); font-weight: 500; }
.pillar-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: -10px;
  background: var(--accent-2);
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pillar-caret { animation: none; opacity: 0.6; } }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Portrait: anchored to the bottom, melting into the black frame */
.hero-portrait {
  position: relative;
  margin: 0;
  min-height: 100%;
}
.hero-portrait picture,
.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-portrait img {
  display: block;
  object-fit: cover;
  object-position: 50% 12%;
  -webkit-mask-image:
    radial-gradient(ellipse 62% 78% at 54% 36%, #000 42%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 26%),
    linear-gradient(to bottom, #000 68%, transparent 98%);
  -webkit-mask-composite: source-in, source-in;
  mask-image:
    radial-gradient(ellipse 62% 78% at 54% 36%, #000 42%, transparent 96%),
    linear-gradient(to right, transparent 0%, #000 26%),
    linear-gradient(to bottom, #000 68%, transparent 98%);
  mask-composite: intersect, intersect;
  animation: portrait-in 1.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: scale(1); }
}

/* Credentials ticker along the bottom of the frame: real credentials only, drifting left to right */
.hero-creds {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 0 22px 60px;
  border-top: 1px solid var(--border);
}
.hero-creds-label {
  flex: none;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.creds-marquee {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.creds-track {
  flex: none;
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: creds-ltr 110s linear infinite;
}
.creds-marquee:hover .creds-track { animation-play-state: paused; }
.creds-track li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 0 34px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.creds-track strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
}
.creds-track span { font-size: 0.72rem; color: var(--muted); }
@keyframes creds-ltr {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .creds-track { animation: none; }
  .creds-marquee { overflow-x: auto; }
}

/* Stats band under the frame: big numbers, hairline dividers */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}
.stat-item {
  padding: 6px 28px;
  border-left: 1px solid var(--border);
}
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-num::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--accent-2); vertical-align: top; margin-top: 0.2em; }
.stat-value { display: block; font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.stat-label { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero-portrait img { animation: none; }
}

/* Hero — tablet */
@media (max-width: 1100px) {
  .hero-copy { padding: 44px 0 40px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .hero-creds { padding-left: 40px; }
}

/* Hero — stacked (portrait on top) */
@media (max-width: 860px) {
  .hero { padding: 16px 0 20px; }
  .hero-frame { border-radius: 22px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-portrait { order: -1; height: min(64vh, 520px); min-height: 0; }
  .hero-portrait img {
    object-position: 50% 10%;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  }
  .hero-copy { padding: 0 24px 30px; margin-top: -64px; }
  .hero-creds { flex-direction: column; align-items: stretch; gap: 14px; padding: 20px 0 22px; }
  .hero-creds-label { padding: 0 24px; }
  .hero-creds-label br { display: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stat-item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 480px) {
  .hero-copy { padding: 0 20px 28px; }
  .hero-creds-label { padding: 0 20px; }
  .hero-pipe { display: block; height: 0; margin: 0; visibility: hidden; }
  .hero-title { display: block; margin-bottom: 4px; }
  .stat-item { padding: 4px 16px; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 8px 26px rgba(201, 169, 110, 0.28); background: var(--accent-3); }
html[data-theme="light"] .btn-primary:hover { background: #262626; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-tertiary { background: transparent; color: var(--muted); border: none; padding: 13px 4px; text-decoration: underline; text-underline-offset: 4px; }
.btn-tertiary:hover { color: var(--accent-2); }
.access-form .btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.social-row { display: flex; gap: 12px; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow-label { color: var(--accent-2); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.accent-gold .eyebrow-label { color: var(--gold); }
.accent-gold .chip-list li:hover { border-color: rgba(212, 175, 106, 0.5); }
.accent-gold .chip-list strong { color: var(--gold); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-bio {
  margin: 0;
  white-space: pre-line;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  color: var(--muted);
}
.about-bio::first-line { color: var(--ink); font-weight: 600; }
.about-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.about-facts li {
  border-top: 1px solid var(--border);
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-facts strong { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent-2); }
.about-facts span { color: var(--ink); word-break: break-word; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.skill-card:hover { border-color: var(--glow-border); box-shadow: var(--glow); }
.skill-card h3 { font-size: 1rem; margin: 0 0 12px; color: var(--accent-2); }
.skill-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.skill-card li { margin-bottom: 6px; }

/* Card lists (certifications, education) */
.card-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.credential-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.credential-grid li.credential-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.credential-grid li.credential-card:hover,
.credential-grid li.credential-card:focus-visible {
  border-color: var(--glow-border);
  box-shadow: var(--glow);
}
.card-title { font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.card-meta { color: var(--muted); font-size: 0.9rem; white-space: pre-line; }
.card-meta a { word-break: break-word; }
.card-framework {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}
.card-expand-hint { margin-top: 10px; font-size: 0.78rem; color: var(--accent); font-weight: 600; }

/* Approvals chips */
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.chip-list li:hover { border-color: var(--glow-border); }
.chip-list strong { color: var(--accent-2); }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.project-card:hover { border-color: var(--glow-border); box-shadow: var(--glow); }
.project-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.project-card .card-meta { margin-bottom: 10px; }
.project-card p { margin: 6px 0; font-size: 0.92rem; color: var(--ink); }
.project-card .project-label { font-weight: 700; color: var(--accent-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }

.empty-state { color: var(--muted); font-style: italic; }


/* Timeline (education, experience) */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  opacity: 0.35;
}
.timeline-item { position: relative; padding: 0 0 28px 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-node {
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-2);
  box-shadow: 0 0 10px var(--accent-soft);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.timeline-card:hover { border-color: var(--glow-border); box-shadow: var(--glow); }
.timeline-role { font-weight: 700; color: var(--ink); }
.timeline-meta { color: var(--accent-2); font-size: 0.85rem; font-weight: 600; margin-top: 2px; }
.timeline-period { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.timeline-duration {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}
.pre-line { white-space: pre-line; }
.timeline-desc { list-style: disc; margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; display: flex; flex-direction: column; gap: 4px; }

/* QHSE Focus Areas */

/* Project badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.project-card .btn-tertiary { padding: 4px 0; margin-top: 10px; display: inline-block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-left .about-facts { margin: 20px 0; }
.privacy-note { color: var(--muted); font-size: 0.86rem; font-style: italic; }
.contact-intro { color: var(--muted); max-width: 480px; margin: 0 0 20px; }
.access-form { max-width: 560px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); padding: 26px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.form-row input, .form-row textarea {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  min-height: 44px;
  width: 100%;
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--accent-2);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.access-form .btn { align-self: flex-start; }
.form-status { font-size: 0.92rem; min-height: 1.2em; margin: 0; }
.form-status.success { color: #35c26a; font-weight: 600; }
.form-status.error { color: #ff6b6b; font-weight: 600; }

/* Page entrance: a short fade so moving between the 4 pages feels deliberate */
.page-main { animation: page-in 0.5s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page-main { animation: none; } }

/* Inner page header (About, Credentials, Contact) */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.page-lead { max-width: 640px; margin: 18px 0 0; font-size: 1.05rem; line-height: 1.7; color: var(--muted); }

/* Home: numbered links to the other three pages */
.explore { padding-top: 44px; }
.explore-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.explore-list li + li { border-left: 1px solid var(--border); }
.explore-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 32px 32px 36px;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease;
}
.explore-card:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.explore-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; color: var(--accent-2); }
.explore-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.explore-text { max-width: 320px; font-size: 0.9rem; line-height: 1.6; color: var(--muted); }
.explore-go {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.explore-card:hover .explore-go { transform: translateX(4px); border-color: var(--accent-2); color: var(--accent-2); }
@media (max-width: 860px) {
  .explore-list { grid-template-columns: 1fr; }
  .explore-list li + li { border-left: none; border-top: 1px solid var(--border); }
  .explore-card { padding: 26px 0 28px; }
  .explore-go { top: 24px; right: 0; }
  .page-hero { padding: 48px 0 30px; }
}

/* Header resume request: full label on wide screens, short on phones */
.resume-label-short { display: none; }
@media (max-width: 480px) {
  .resume-label-full { display: none; }
  .resume-label-short { display: inline; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 36px; background: var(--bg); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 44px;
  align-items: center;
  gap: 24px 48px;
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-copy { margin: 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.15s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 12px; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* Certification modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 6, 14, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal-panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius);
  padding: 30px;
  background: var(--surface);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal-close svg { width: 18px; height: 18px; }
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-eyebrow { color: var(--accent-2); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
#cert-modal-title { font-size: 1.3rem; margin-bottom: 16px; padding-right: 30px; }
.modal-body { color: var(--muted); font-size: 0.96rem; display: flex; flex-direction: column; gap: 10px; }
.modal-body strong { color: var(--ink); }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .btn-ghost.btn-small span, #resume-request { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  #resume-request { padding: 9px 10px; }
}
