:root {
  --bg: #0b0b0b;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.14);
  --btn-bg: rgba(255, 255, 255, 0.92);
  --btn-text: #111111;
  --radius: 14px;
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* Prevent background scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* Background image + overlay */
body.has-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("me.jpg") center / cover no-repeat;
  filter: brightness(0.8) contrast(1.1) saturate(0.6);
  z-index: -2;
}

body.has-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.7)
  );
  z-index: -1;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #111;
  border-radius: 10px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 1000; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

/* Header full width */
.site-header .container {
  width: calc(100% - 2.5rem);
  max-width: none;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

/* Drawer opener button (top-left) */
.menu-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.menu-btn:hover {
  filter: brightness(0.96); /* subtle darkening, no color flip */
}


.menu-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

.menu-icon {
  width: 18px;
  height: 18px;
  color: var(--btn-text); 
}

/* Drawer overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
}

/* Drawer panel */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: min(360px, 88vw);
  background: #000;
  border-right: 1px solid rgba(255,255,255,0.14);
  z-index: 100;
  transform: translateX(-105%);
  transition: transform 220ms ease;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.2rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.drawer-title {
  font-weight: 750;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
}

.drawer-close {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.drawer-close:hover {
  background: rgba(255,255,255,0.10);
}

.drawer-close:focus-visible {
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

.drawer-close-icon {
  width: 18px;
  height: 18px;
}

.drawer-nav {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.2rem;
  overflow: auto;
}

.drawer-nav a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 650;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: rgba(255,255,255,0.08);
  outline: none;
}

/* Nav */
.nav {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.icon {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.btn {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
}

.btn:hover { filter: brightness(0.96); }
.btn:focus-visible { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 2px; }

/* Main content */
.hero {
  padding: 5.2rem 0 2.2rem;
}

h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  margin: 0 0 0.9rem;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
  max-width: 75ch;
}

.quick {
  margin-top: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

/* Prevent anchor targets from being hidden behind the sticky header */
:target {
  scroll-margin-top: 90px;
}

.section {
  scroll-margin-top: 80px;
}


h2 {
  font-size: 1.35rem;        /* bigger than text, smaller than h1 */
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.015em;
}


h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.chair-label {
  margin: 0.75rem 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.item {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.item:last-child {
  border-bottom: none;
}

.item-head {
  display: grid;
  gap: 0.25rem;
}

.item-title {
  font-weight: 650;
}

.item-meta {
  color: rgba(255,255,255,0.70);
  font-size: 0.95rem;
}

.item-text {
  margin: 0.5rem 0 0;
  color: rgba(255,255,255,0.82);
  max-width: 80ch;
}

.experience-timeline {
  display: grid;
  gap: 1.25rem;
}

.experience-entry {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.experience-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.experience-period {
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.experience-content h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.45;
}

.experience-points {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: rgba(255,255,255,0.82);
}

.experience-points li + li {
  margin-top: 0.28rem;
}

/* Skills grid cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,0.18);
  padding: 1rem;
}

.card p {
  margin: 0.35rem 0 0;
  color: rgba(255,255,255,0.80);
}

.strengths-panel {
  margin-top: 1.15rem;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.22);
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
}

.strengths-intro {
  max-width: 52rem;
}

.strengths-intro h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.strengths-intro p {
  margin: 0;
  color: rgba(255,255,255,0.78);
}

.strengths-grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.strength-card {
  position: relative;
  min-height: 100%;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.strength-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0.18));
}

.strength-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.strength-card h4 {
  margin: 0.85rem 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.strength-card p {
  margin: 0;
  color: rgba(255,255,255,0.84);
}

.strength-proof {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.66);
  font-size: 0.92rem;
}

/* Footer */
.footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* Minimal footer links */
.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }

  .experience-entry {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 520px) {
  .site-header .container { width: calc(100% - 1.5rem); }
  .btn { padding: 0.5rem 0.7rem; font-size: 0.9rem; }

  .menu-btn {
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
  }
}

/* Mobile: prevent "background zoom" when the browser bar collapses */
@media (max-width: 900px) {
  body.has-bg::before,
  body.has-bg::after {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    /* Key part: lock to stable viewport height */
    height: 100svh;

    /* Don't use inset: 0 here on mobile */
    bottom: auto;
  }
}
