:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f7f7fb;
  --muted: #aeb4c4;
  --accent: #b8a6ff;
  --accent-strong: #7c3aed;
  --teal: #46d5bd;
  --gold: #f4c66a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(70, 213, 189, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(124, 58, 237, 0.2), transparent 32rem),
    linear-gradient(135deg, #0e1014 0%, #181525 52%, #111827 100%);
  color: var(--text);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 10;
  width: min(100% - 2rem, 56rem);
  margin: 1rem auto 0;
}

.topbar,
.content-section {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--panel-strong);
  color: var(--text);
}

.nav-link:active {
  transform: translateY(1px);
}

.icon,
.nav-link svg {
  width: 1rem;
  height: 1rem;
}

.page-shell {
  width: min(100% - 2rem, 56rem);
  margin: 0 auto;
  padding: 3rem 0 1rem;
}

.page-view[hidden] {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2.5rem;
  min-height: 17rem;
  margin-bottom: 2rem;
}

.portrait {
  width: clamp(10rem, 20vw, 12rem);
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  max-width: 37rem;
  margin: 1rem 0 0;
  color: #d7cdfd;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-links a:hover {
  background: var(--panel-strong);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-links svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-links a:nth-child(4) svg {
  fill: currentColor;
  stroke: none;
}

.content-section {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 8px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.section-heading svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--accent);
}

.section-heading h2,
.blog-post h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}

.text-entry h3,
.media-entry h3 {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.35;
}

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

.text-entry a:hover {
  color: #d6ccff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-entry p,
.media-entry p,
.blog-post p {
  margin: 0.35rem 0 0;
  color: #d9deea;
  line-height: 1.6;
}

.muted {
  color: var(--muted) !important;
  font-size: 0.92rem;
}

.media-entry {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-top: 1.25rem;
}

.media-entry:first-of-type {
  padding-top: 0;
}

.media-entry + .media-entry {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.25rem;
}

.media-entry img {
  width: 4rem;
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  object-fit: contain;
  padding: 0.35rem;
}

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

.award-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.award-list span:first-child {
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.award-list span:last-child {
  color: var(--gold);
  font-size: 0.92rem;
  white-space: nowrap;
}

.blog-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.blog-post {
  transition: border-color 160ms ease, transform 160ms ease;
}

.blog-post:hover {
  border-color: rgba(184, 166, 255, 0.32);
  transform: translateY(-1px);
}

.blog-post h2 {
  color: var(--accent);
}

.site-footer {
  width: min(100% - 2rem, 56rem);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  color: #858da0;
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 720px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 1rem, 56rem);
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .nav-link {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  .contact-links {
    justify-content: center;
  }

  .media-entry {
    grid-template-columns: 3.25rem 1fr;
  }

  .media-entry img {
    width: 3.25rem;
  }

  .award-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
