:root {
  --bg: #0c0e12;
  --bg-elevated: #14181f;
  --surface: #1a2029;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius: 12px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(12, 14, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.nav-cta:hover {
  background: rgba(201, 162, 39, 0.25);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

.hero {
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 80% 50% at 70% -20%, rgba(201, 162, 39, 0.12), transparent),
    var(--bg);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  line-height: 1.05;
}

.hero-title .name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  margin-bottom: 0.15em;
}

.hero-title .name-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-title .name-line--primary {
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-style: italic;
  color: var(--text);
}

.hero-title .name-line--secondary {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  font-style: normal;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: none;
  font-variant-numeric: lining-nums;
  padding-top: 0.08em;
  border-top: 1px solid var(--border);
  margin-top: 0.08em;
}

.hero-title .role {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.65rem;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0c0e12;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.hero-photo {
  margin: 0;
}

.hero-photo__frame {
  position: relative;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 560px);
  background: var(--surface);
}

.hero-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 80px rgba(201, 162, 39, 0.06) inset;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.01);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section--alt {
  background: var(--bg-elevated);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 720px;
}

.about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about__text .section-title {
  margin-top: 0;
}

.about__visual {
  margin: 0;
}

.about__frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  aspect-ratio: 16 / 10;
}

.about__frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 800px) {
  .about__layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .about__visual {
    order: -1;
  }

  .about__frame {
    aspect-ratio: 16 / 9;
    max-height: 280px;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.prose {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

.timeline li {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.timeline-meta {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.timeline h3 {
  margin: 0.5rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  padding-bottom: 1.25rem;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin: 1rem 1.25rem 0.5rem;
  font-size: 1.05rem;
}

.video-card p {
  margin: 0 1.25rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.external-link {
  margin: 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.work-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.work-note strong {
  color: var(--text);
}

.subsection-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 2.5rem 0 0.5rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.cred-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cred-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.cred-card__eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.cred-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.cred-card__action {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.cert-list li {
  border-bottom: 1px solid var(--border);
}

.cert-list li:last-child {
  border-bottom: 0;
}

.cert-list a {
  display: block;
  padding: 0.85rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.cert-list a:hover {
  background: var(--accent-soft);
  color: var(--text);
  text-decoration: none;
}

.contact-social-heading {
  margin-top: 2rem;
}

.social-pills {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-pills a {
  display: inline-flex;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}

.social-pills a:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.skills .section-title + .skills-sub {
  margin-top: 0.35rem;
}

.skills .skill-chips + .subsection-title {
  margin-top: 2rem;
}

.skill-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-chips li {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.contact-list span {
  min-width: 140px;
  color: var(--text-muted);
  font-weight: 600;
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer strong {
  color: var(--text);
}

