:root {
  --navy: #0b2545;
  --navy-deep: #071a33;
  --blue: #1b6ec2;
  --blue-light: #eaf2fb;
  --ink: #1c2733;
  --muted: #5b6675;
  --line: #e2e7ee;
  --paper: #ffffff;
  --canvas: #f6f8fb;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11, 37, 69, 0.08);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }

.hidden { display: none !important; }

/* Invite gate */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 55%, var(--blue));
}
.gate__panel {
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.gate__panel h1 { color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 10px; }
.gate__copy { color: var(--muted); margin: 0; font-size: 0.98rem; }
.gate__form { display: grid; gap: 10px; margin-top: 22px; }
.gate__form label { color: var(--navy); font-size: 0.82rem; font-weight: 700; }
.gate__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.gate__row input {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
  width: 100%;
}
.gate__row button {
  min-height: 48px;
  border-radius: 10px;
  border: none;
  padding: 0 20px;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.gate__row button:hover { background: var(--navy-deep); }
.gate__error { min-height: 18px; margin: 0; color: #b3261e; font-size: 0.85rem; font-weight: 600; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.brand span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.topbar nav { display: flex; gap: 28px; }
.topbar nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.15s;
}
.topbar nav a:hover { color: var(--navy); }

.navToggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.navToggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero__role { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin: 6px 0 14px; }

.hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); }

.hero__desc { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }

.hero__actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.button--primary { background: var(--navy); color: #fff; }
.button--primary:hover { background: var(--navy-deep); transform: translateY(-1px); }
.button--secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.button--secondary:hover { border-color: var(--blue); color: var(--blue); }

.snapshot {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid var(--line);
}

.snapshot .portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--blue-light);
}
.snapshot .portrait img { width: 100%; height: 100%; object-fit: cover; }

.snapshot dl { margin: 0; display: grid; gap: 12px; }
.snapshot dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.snapshot dl div:first-child { border-top: none; padding-top: 0; }
.snapshot dt { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.snapshot dd { margin: 0; font-weight: 700; text-align: right; color: var(--navy); font-size: 0.88rem; }

/* Metrics band */
.band.metrics {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.band.metrics article {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
}
.band.metrics strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.band.metrics span { color: #c7d4e6; font-size: 0.88rem; line-height: 1.5; }

/* Sections */
.section { max-width: var(--maxw); margin: 0 auto; padding: 64px 32px; }
.section__heading { max-width: 60ch; margin-bottom: 36px; }
.section__heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.about-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.about-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; }
.about-card p { color: var(--muted); margin: 0; }
.about-card--wide p { font-size: 1.05rem; color: var(--ink); }

.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.role-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 12px; }
.role-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 8px; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skills-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.skills-grid span {
  font-weight: 800;
  color: var(--blue);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.skills-grid p { margin: 0; color: var(--ink); font-size: 0.92rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 260px; object-fit: cover; }
.gallery figcaption { padding: 14px 16px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }

/* CTA */
.cta {
  max-width: var(--maxw);
  margin: 24px auto 64px;
  padding: 44px;
  border-radius: 20px;
  background: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta .eyebrow { color: #8fb7e6; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.contact-line { margin: 4px 0; color: #d5e0ef; }
.contact-line a { color: #fff; text-decoration: underline; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .button--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .button--secondary:hover { border-color: #fff; color: #fff; }

.site-footer { text-align: center; padding: 28px; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .band.metrics { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .role-grid, .skills-grid, .gallery { grid-template-columns: 1fr; }
  .topbar nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 32px;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: 16px;
  }
  .topbar nav.open { display: flex; }
  .navToggle { display: flex; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media print {
  .topbar, .navToggle, .cta__actions #printProfile { display: none; }
  body { background: #fff; }
  .section, .hero, .band.metrics, .cta { box-shadow: none; }
}
