:root {
  --bg: #f5f4ef;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: #ffffff;
  --text: #1d2733;
  --text-soft: #536171;
  --heading: #132033;
  --border: rgba(19, 32, 51, 0.11);
  --border-strong: rgba(19, 32, 51, 0.18);
  --accent: #23436f;
  --accent-strong: #183253;
  --accent-soft: rgba(35, 67, 111, 0.08);
  --shadow: 0 20px 60px rgba(19, 32, 51, 0.08);
  --shadow-soft: 0 12px 30px rgba(19, 32, 51, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 999px;
  --container: min(1160px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(162, 187, 216, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(185, 164, 112, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f7f3 0%, var(--bg) 100%);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

.background-orbit {
  position: fixed;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  pointer-events: none;
}

.background-orbit-1 {
  width: 320px;
  height: 320px;
  top: 8rem;
  right: -6rem;
  background: radial-gradient(circle, rgba(92, 123, 165, 0.26), transparent 65%);
}

.background-orbit-2 {
  width: 260px;
  height: 260px;
  left: -5rem;
  bottom: 8rem;
  background: radial-gradient(circle, rgba(170, 143, 95, 0.18), transparent 65%);
}

img,
svg {
  display: block;
}

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

a:hover {
  color: var(--accent-strong);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(245, 244, 239, 0.72);
  border-bottom: 1px solid rgba(19, 32, 51, 0.06);
}

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

.brand {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: 0.04em;
}

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

.site-nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--heading);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 3.6rem 0 2.1rem;
}

.hero-copy,
.hero-panel-inner,
.controls-card,
.info-card,
.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--heading);
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 1rem 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.hero-text,
.section-copy,
.info-card p,
.results-summary {
  color: var(--text-soft);
}

.hero-text {
  margin: 1rem 0 0;
  max-width: 58ch;
  font-size: 1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 28px rgba(35, 67, 111, 0.22);
}

.button-primary:hover {
  background: var(--accent-strong);
  color: white;
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--heading);
  background: rgba(255, 255, 255, 0.7);
}

.hero-meta {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.hero-meta li {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(19, 32, 51, 0.08);
}

.hero-meta span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.hero-panel {
  display: flex;
}

.hero-panel-inner {
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  width: 100%;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.profile-image-wrap {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 32, 51, 0.08);
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-copy {
  display: grid;
  gap: 0.75rem;
}

.profile-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-number {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--heading);
  line-height: 1;
}

.stat-label {
  color: var(--text-soft);
  font-weight: 500;
}

.section {
  padding: 1rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.3rem;
}

.controls-card {
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(19, 32, 51, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.95rem 1rem;
}

.search-wrap svg {
  width: 20px;
  height: 20px;
  fill: var(--text-soft);
  flex: 0 0 auto;
}

.search-wrap input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--text);
}

.filter-row {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-button {
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-button.active,
.filter-button:hover {
  background: var(--accent-soft);
  border-color: rgba(35, 67, 111, 0.2);
  color: var(--accent-strong);
}

.results-summary {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.85rem;
}

.work-card {
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
}

.work-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.work-card h3 {
  font-size: 1.12rem;
  line-height: 1.18;
}

.year-badge {
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.62rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-sm);
  background: rgba(19, 32, 51, 0.05);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.tag-status {
  background: rgba(170, 143, 95, 0.14);
  color: #6a4e17;
}

.work-venue,
.work-description {
  margin: 0;
  color: var(--text-soft);
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.56rem 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(19, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  font-weight: 600;
}

.link-chip:hover {
  border-color: rgba(35, 67, 111, 0.22);
  background: var(--accent-soft);
}

.empty-state {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(19, 32, 51, 0.18);
  color: var(--text-soft);
  text-align: center;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.info-card {
  border-radius: var(--radius-lg);
  padding: 1.45rem;
}

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

.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(19, 32, 51, 0.08);
}

.contact-list span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(19, 32, 51, 0.08);
  background: rgba(255, 255, 255, 0.45);
}

.footer-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .info-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.8rem;
  }
}

@media (max-width: 720px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .hero-copy,
  .hero-panel-inner,
  .controls-card,
  .info-card,
  .work-card {
    padding: 1.1rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions,
  .work-links,
  .filter-row {
    flex-direction: column;
  }

  .button,
  .link-chip,
  .filter-button {
    width: 100%;
  }

  .work-card-header {
    flex-direction: column;
  }

  .profile-image-wrap {
  width: min(100%, 280px);
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(19, 32, 51, 0.08);
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-copy {
  display: grid;
  gap: 0.75rem;
}

.profile-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 981px) {
  .hero-panel-inner.profile-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-panel-inner.profile-panel .profile-image-wrap {
    width: min(100%, 320px);
  }
}

@media (max-width: 768px) {
  .hero-panel-inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }
}