:root {
  --bg: #0b1220;
  --surface: #121a2a;
  --surface-2: #162136;
  --text: #edf2ff;
  --muted: #b4c0d8;
  --primary: #4f8cff;
  --primary-strong: #2d6be6;
  --primary-soft: #8bb0ff;
  --border: #253452;
  --ring: #9db7ff;
  --signature-a: #7aa9ff;
  --signature-b: #7ce7dc;
  --signature-c: #b6c7ff;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgb(64 100 170 / 30%) 0%, rgb(11 18 32 / 0%) 42%),
    radial-gradient(circle at 0% 20%, rgb(58 89 153 / 18%) 0%, rgb(11 18 32 / 0%) 34%),
    linear-gradient(180deg, #0b1220 0%, #0a111e 100%);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

a {
  color: #b9ceff;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:visited {
  color: #b9ceff;
}

a:hover {
  color: #d4e0ff;
}

a:not(.btn):not(.logo) {
  text-decoration-color: rgb(124 231 220 / 60%);
}

a:focus-visible {
  outline: 2px solid #9db7ff;
  outline-offset: 2px;
  border-radius: 3px;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgb(10 16 30 / 84%) 0%, rgb(10 16 30 / 72%) 100%);
  border-bottom: 1px solid rgb(186 206 255 / 16%);
  box-shadow: 0 8px 28px rgb(2 8 20 / 30%);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-shadow: 0 0 18px rgb(129 165 255 / 22%);
  position: relative;
}

.logo::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--signature-a) 0%, var(--signature-b) 100%);
  box-shadow: 0 0 0 3px rgb(124 231 220 / 12%), 0 0 16px rgb(122 169 255 / 44%);
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgb(157 183 255 / 10%);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, #5c95ff 0%, #3f7df3 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(45 107 230 / 34%);
  transition: transform 160ms ease, box-shadow 160ms ease, background 180ms ease;
}

.btn:hover {
  background: linear-gradient(180deg, #6aa0ff 0%, #457ff0 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(45 107 230 / 40%);
}

.btn-sm {
  padding: 0.5rem 0.8rem;
}

.btn-outline {
  background: rgb(157 183 255 / 6%);
  border-color: rgb(157 183 255 / 26%);
  color: #d7e4ff;
  box-shadow: none;
}

.hero-actions .btn:first-child {
  border-color: transparent;
  background: linear-gradient(120deg, #4b84f8 0%, #4180fa 55%, #57bde9 100%);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: #afd2ff;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0.6rem 0 1rem;
}

.lead {
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-row a {
  color: #a8c4ff;
  text-decoration: none;
  font-weight: 600;
}

.hero-card {
  padding: 1.4rem;
  border: 1px solid rgb(157 183 255 / 20%);
  border-radius: 14px;
  background: linear-gradient(180deg, rgb(21 31 52 / 88%) 0%, rgb(17 27 44 / 92%) 100%);
  box-shadow: inset 0 1px 0 rgb(201 217 255 / 10%), 0 14px 34px rgb(2 8 20 / 34%);
}

.hero-card .card-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #9db7ff;
  font-weight: 700;
}

.hero-card ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.hero-card li {
  margin-bottom: 0.4rem;
}

.hero-card a {
  color: #a8c4ff;
  text-decoration: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.headshot {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--surface);
}

.section {
  padding: 3.4rem 0;
}

.section-intro {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.section-alt {
  background: linear-gradient(180deg, rgb(255 255 255 / 3%) 0%, rgb(255 255 255 / 1%) 100%);
  border-top: 1px solid rgb(186 206 255 / 12%);
  border-bottom: 1px solid rgb(186 206 255 / 10%);
}

h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: 0.01em;
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--signature-c) 0%, #e5eeff 46%, var(--signature-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--signature-a) 0%, var(--signature-b) 100%);
  box-shadow: 0 0 16px rgb(124 231 220 / 30%);
}

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

.card {
  border: 1px solid rgb(157 183 255 / 16%);
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(20 30 50 / 90%) 0%, rgb(17 26 43 / 92%) 100%);
  padding: 1.1rem;
  box-shadow: inset 0 1px 0 rgb(194 212 255 / 7%), 0 8px 22px rgb(2 8 20 / 24%);
  transition: transform 160ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgb(157 183 255 / 34%);
  box-shadow: inset 0 1px 0 rgb(194 212 255 / 10%), 0 14px 28px rgb(2 8 20 / 36%);
}

.card h3 {
  margin-top: 0;
  color: #dce9ff;
}

.card p {
  margin: 0;
  color: var(--muted);
}

#credentials .credential-links {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

#credentials .credential-links li {
  margin-bottom: 0.55rem;
  color: var(--muted);
}

#credentials .credential-links strong {
  color: var(--text);
}

.link-separator {
  color: #84d7d5;
  margin: 0 0.35rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: start;
}

.contact-form {
  background: linear-gradient(180deg, rgb(20 30 50 / 90%) 0%, rgb(16 25 42 / 92%) 100%);
  border: 1px solid rgb(157 183 255 / 16%);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgb(194 212 255 / 8%), 0 12px 28px rgb(2 8 20 / 28%);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid rgb(157 183 255 / 22%);
  background: #0e1728;
  color: var(--text);
  border-radius: 8px;
  padding: 0.7rem;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgb(157 183 255 / 20%);
  background: #111c31;
}

.contact-form button {
  width: 100%;
  margin-top: 0.4rem;
}

.footer {
  padding: 1.2rem 0;
  border-top: 1px solid rgb(186 206 255 / 12%);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.footer a {
  color: #a8c4ff;
  text-decoration: none;
}

.footer a:hover {
  color: #c8edff;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
}

.theme-toggle {
  border: 1px solid rgb(157 183 255 / 30%);
  background: rgb(157 183 255 / 8%);
  color: #dbe8ff;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 140ms ease;
}

.theme-toggle:hover {
  background: rgb(157 183 255 / 14%);
  border-color: rgb(157 183 255 / 45%);
}

.theme-toggle:active {
  transform: translateY(1px);
}

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

body.theme-b {
  --primary: #b08a4f;
  --primary-strong: #936f39;
  --primary-soft: #d2b27a;
  --ring: #d3b06f;
  --signature-a: #d7b16b;
  --signature-b: #f0d89a;
  --signature-c: #f5e8c8;
  --muted: #c8c0b0;
}

body.theme-b {
  background:
    radial-gradient(circle at 85% 0%, rgb(162 128 66 / 26%) 0%, rgb(11 18 32 / 0%) 43%),
    radial-gradient(circle at 0% 20%, rgb(138 104 51 / 20%) 0%, rgb(11 18 32 / 0%) 35%),
    linear-gradient(180deg, #11131a 0%, #0f1117 100%);
}

body.theme-b .header {
  background: linear-gradient(180deg, rgb(17 15 13 / 88%) 0%, rgb(17 15 13 / 76%) 100%);
  border-bottom: 1px solid rgb(240 216 154 / 18%);
}

body.theme-b .nav a:hover {
  background: rgb(232 206 142 / 12%);
}

body.theme-b .btn {
  background: linear-gradient(180deg, #be995a 0%, #a77f42 100%);
  border-color: #c5a46b;
  box-shadow: 0 8px 18px rgb(134 100 45 / 36%);
}

body.theme-b .btn:hover {
  background: linear-gradient(180deg, #caa568 0%, #b3894a 100%);
  box-shadow: 0 10px 24px rgb(134 100 45 / 40%);
}

body.theme-b .hero-actions .btn:first-child {
  background: linear-gradient(120deg, #b78d4b 0%, #c9a15f 56%, #e0c27e 100%);
}

body.theme-b .btn-outline {
  background: rgb(222 196 134 / 8%);
  border-color: rgb(232 206 142 / 34%);
  color: #f3e7cc;
}

body.theme-b .hero-card,
body.theme-b .card,
body.theme-b .contact-form {
  border-color: rgb(226 198 134 / 22%);
  background: linear-gradient(180deg, rgb(31 26 21 / 92%) 0%, rgb(24 20 17 / 94%) 100%);
}

body.theme-b .section-alt {
  background: linear-gradient(180deg, rgb(255 245 219 / 4%) 0%, rgb(255 245 219 / 1%) 100%);
  border-top: 1px solid rgb(232 206 142 / 14%);
  border-bottom: 1px solid rgb(232 206 142 / 12%);
}

body.theme-b .contact-form input,
body.theme-b .contact-form textarea {
  border-color: rgb(232 206 142 / 25%);
  background: #161412;
}

body.theme-b .contact-form input:focus,
body.theme-b .contact-form textarea:focus {
  border-color: #d3b06f;
  box-shadow: 0 0 0 3px rgb(232 206 142 / 22%);
  background: #1b1713;
}

body.theme-b .theme-toggle {
  border-color: rgb(232 206 142 / 36%);
  background: rgb(232 206 142 / 9%);
  color: #f5e9cf;
}

body.theme-b .theme-toggle:hover {
  background: rgb(232 206 142 / 15%);
  border-color: rgb(232 206 142 / 56%);
}

body.theme-hybrid {
  --primary: #6a90d6;
  --primary-strong: #5378bd;
  --primary-soft: #d7b678;
  --ring: #d7b678;
  --signature-a: #8db2f0;
  --signature-b: #e4c98e;
  --signature-c: #e5e8f7;
  --muted: #c3c7d4;
}

body.theme-hybrid {
  background:
    radial-gradient(circle at 85% 0%, rgb(99 133 201 / 28%) 0%, rgb(11 18 32 / 0%) 44%),
    radial-gradient(circle at 0% 20%, rgb(168 135 76 / 15%) 0%, rgb(11 18 32 / 0%) 36%),
    linear-gradient(180deg, #0e1523 0%, #0c131f 100%);
}

body.theme-hybrid .header {
  background: linear-gradient(180deg, rgb(12 20 35 / 86%) 0%, rgb(12 20 35 / 74%) 100%);
  border-bottom: 1px solid rgb(223 196 140 / 16%);
}

body.theme-hybrid .nav a:hover {
  background: rgb(223 196 140 / 10%);
}

body.theme-hybrid .btn {
  background: linear-gradient(180deg, #6f95dd 0%, #567ec8 100%);
  border-color: #9ab3e6;
  box-shadow: 0 8px 18px rgb(65 90 150 / 36%);
}

body.theme-hybrid .btn:hover {
  background: linear-gradient(180deg, #7ca0e5 0%, #6086cd 100%);
  box-shadow: 0 10px 24px rgb(65 90 150 / 40%);
}

body.theme-hybrid .hero-actions .btn:first-child {
  background: linear-gradient(120deg, #688bd0 0%, #7ca0e3 56%, #cfb174 100%);
}

body.theme-hybrid .btn-outline {
  background: rgb(223 196 140 / 8%);
  border-color: rgb(223 196 140 / 30%);
  color: #ece3d1;
}

body.theme-hybrid .hero-card,
body.theme-hybrid .card,
body.theme-hybrid .contact-form {
  border-color: rgb(203 184 142 / 20%);
  background: linear-gradient(180deg, rgb(22 31 49 / 92%) 0%, rgb(18 24 37 / 94%) 100%);
}

body.theme-hybrid .section-alt {
  background: linear-gradient(180deg, rgb(238 227 199 / 4%) 0%, rgb(238 227 199 / 1%) 100%);
  border-top: 1px solid rgb(223 196 140 / 13%);
  border-bottom: 1px solid rgb(223 196 140 / 11%);
}

body.theme-hybrid .contact-form input,
body.theme-hybrid .contact-form textarea {
  border-color: rgb(223 196 140 / 24%);
  background: #121927;
}

body.theme-hybrid .contact-form input:focus,
body.theme-hybrid .contact-form textarea:focus {
  border-color: #d7b678;
  box-shadow: 0 0 0 3px rgb(223 196 140 / 20%);
  background: #172033;
}

body.theme-hybrid .theme-toggle {
  border-color: rgb(223 196 140 / 34%);
  background: rgb(223 196 140 / 10%);
  color: #efe8db;
}

body.theme-hybrid .theme-toggle:hover {
  background: rgb(223 196 140 / 15%);
  border-color: rgb(223 196 140 / 54%);
}

@media (max-width: 920px) {
  .hero-grid,
  .contact,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .headshot {
    max-width: 420px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .theme-toggle {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: inline-block;
  }

  .theme-toggle {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
  }

  .nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem;
  }

  .nav.open {
    display: flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
