:root {
  --color-ink: #1c1c1a;
  --color-text: #4a4a47;
  --color-muted: #888780;
  --color-border: #d3d1c7;
  --color-surface: #fffdf8;
  --color-bg: #f1eadf;
  --color-accent: #c9913a;
  --color-accent-hover: #a87428;
  --color-accent-soft: rgba(201, 145, 58, 0.12);
  --color-panel: rgba(255, 253, 248, 0.88);
  --color-navy: #0a1f44;
  --color-navy-deep: #071733;
  --shadow-soft: 0 18px 48px rgba(28, 28, 26, 0.07);
  --shadow-card: 0 22px 60px rgba(10, 31, 68, 0.1);
  --radius-large: 30px;
  --radius-medium: 22px;
  --radius-small: 16px;
  --site-width: min(1160px, calc(100% - 40px));
  --copy-width: min(760px, calc(100% - 40px));
  --section-space: clamp(72px, 8vw, 112px);
  --ease-premium: cubic-bezier(0.2, 0.68, 0.18, 0.99);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 145, 58, 0.1), transparent 22%),
    radial-gradient(circle at 88% 10%, rgba(10, 31, 68, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f3e8 0%, var(--color-bg) 42%, #ebe4d6 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

p {
  margin: 0;
}

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

.content-shell {
  width: var(--copy-width);
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 220ms var(--ease-premium),
    background-color 220ms var(--ease-premium),
    border-color 220ms var(--ease-premium),
    box-shadow 220ms var(--ease-premium),
    color 220ms var(--ease-premium);
}

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

.button--primary {
  background: var(--color-accent);
  color: #fffaf2;
  box-shadow: 0 14px 30px rgba(201, 145, 58, 0.24);
}

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

.button--small {
  min-height: 46px;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(10, 31, 68, 0.12);
  background: rgba(243, 237, 226, 0.9);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.site-header__brand {
  flex: 0 0 auto;
  width: min(210px, 52vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(10, 31, 68, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 31, 68, 0.98), rgba(13, 38, 80, 0.94));
  box-shadow: 0 16px 34px rgba(10, 31, 68, 0.18);
}

.site-nav__link {
  padding: 11px 14px;
  border-radius: 999px;
  color: rgba(248, 243, 234, 0.82);
  font-size: 0.9rem;
  font-weight: 500;
  transition:
    background-color 220ms var(--ease-premium),
    color 220ms var(--ease-premium);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  background: rgba(201, 145, 58, 0.16);
  color: #fffdf7;
}

.site-menu {
  display: none;
  position: relative;
}

.site-menu__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(10, 31, 68, 0.22);
  border-radius: 14px;
  background: rgba(10, 31, 68, 0.95);
  color: #f8f3ea;
  cursor: pointer;
}

.site-menu__icon {
  display: grid;
  gap: 4px;
}

.site-menu__icon span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu__panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid rgba(10, 31, 68, 0.2);
  border-radius: 20px;
  background: rgba(10, 31, 68, 0.98);
  box-shadow: 0 20px 42px rgba(10, 31, 68, 0.22);
}

.site-menu__panel[hidden] {
  display: none;
}

.site-menu__label {
  padding: 6px 10px 10px;
  color: rgba(226, 197, 142, 0.76);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-menu__link {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(248, 243, 234, 0.84);
}

.site-menu__link:hover,
.site-menu__link[aria-current="page"] {
  background: rgba(201, 145, 58, 0.16);
  color: #fffdf7;
}

.site-menu__cta {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.page {
  overflow: clip;
}

.team-hero {
  padding: clamp(56px, 8vw, 96px) 0 28px;
}

.team-hero__copy {
  width: min(760px, 100%);
}

.team-hero__copy h1 {
  margin-top: 22px;
  font-size: clamp(3.3rem, 6vw, 5.4rem);
  line-height: 0.95;
  text-wrap: balance;
}

.team-hero__copy p {
  margin-top: 18px;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.84;
}

.team-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.team-hero__kicker {
  margin-top: 18px;
  color: var(--color-accent-hover);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-hero__role {
  margin-top: 16px;
  color: var(--color-navy);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
}

.team-hero__location {
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.team-hero__lead {
  width: min(58ch, 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 600;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--color-accent-hover);
}

.team-grid-section {
  padding: 10px 0 var(--section-space);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 30px 26px;
  border: 1px solid rgba(211, 209, 199, 0.9);
  border-radius: var(--radius-medium);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms var(--ease-premium),
    border-color 220ms var(--ease-premium),
    box-shadow 220ms var(--ease-premium);
}

.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 145, 58, 0.3);
  box-shadow: var(--shadow-card);
}

.team-card:focus-visible {
  outline: 3px solid rgba(201, 145, 58, 0.32);
  outline-offset: 4px;
  border-color: rgba(201, 145, 58, 0.34);
}

.team-card:hover .team-avatar__image,
.team-card:focus-visible .team-avatar__image {
  transform: scale(1.02);
}

.team-card__body {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.team-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(248, 243, 234, 0.34), transparent 30%),
    linear-gradient(160deg, rgba(10, 31, 68, 0.96), rgba(27, 60, 110, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.08);
}

.team-avatar--large {
  display: block;
  width: min(320px, 100%);
  aspect-ratio: auto;
  margin: 0 auto;
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(10, 31, 68, 0.96), rgba(27, 60, 110, 0.86));
}

.team-avatar--large .team-avatar__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.team-avatar--large .team-avatar__fallback {
  border-radius: inherit;
}

.team-avatar--large .team-avatar__fallback span {
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  border-radius: 22px;
}

.team-avatar__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 220ms var(--ease-premium);
}

.team-avatar__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  color: rgba(255, 253, 248, 0.92);
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
}

.team-avatar__fallback span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border-radius: 50%;
  border: 1px solid rgba(255, 253, 248, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.team-avatar[data-image-status="missing"] .team-avatar__image {
  display: none;
}

.team-card__text {
  display: grid;
  gap: 8px;
}

.team-card__name {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1;
}

.team-card__role {
  color: var(--color-navy);
  font-size: 0.99rem;
  font-weight: 600;
  line-height: 1.68;
}

.team-card__location {
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.team-card__profile {
  margin-top: auto;
  color: var(--color-accent-hover);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.team-card__note {
  width: min(680px, 100%);
  margin: 18px auto 0;
  color: var(--color-muted);
  line-height: 1.78;
  text-align: center;
}

.team-detail {
  padding: 0 0 84px;
}

.team-detail__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.team-detail__section {
  padding: 30px;
  border: 1px solid rgba(211, 209, 199, 0.9);
  border-radius: var(--radius-medium);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.team-detail__section h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1;
}

.team-detail__section p {
  margin-top: 16px;
  color: var(--color-text);
  line-height: 1.84;
}

.site-footer {
  border-top: 1px solid rgba(201, 145, 58, 0.18);
  background: linear-gradient(180deg, var(--color-navy) 0%, #071733 100%);
}

.site-footer__inner {
  padding: 28px 0 34px;
  text-align: center;
  color: rgba(248, 243, 234, 0.78);
  font-size: 0.92rem;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.site-footer__links a {
  color: rgba(248, 243, 234, 0.84);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] {
  color: #f2c981;
}

.site-footer__note {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(248, 243, 234, 0.78);
  line-height: 1.72;
}

@media (max-width: 980px) {
  .team-grid,
  .team-detail__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-nav__links,
  .site-nav > .button {
    display: none;
  }

  .site-menu {
    display: block;
  }

  .team-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --site-width: min(100% - 24px, 1160px);
    --copy-width: min(100% - 24px, 760px);
  }

  .site-header__brand {
    width: min(190px, 54vw);
  }

  .team-grid,
  .team-detail__grid {
    grid-template-columns: 1fr;
  }

  .team-card,
  .team-detail__section {
    padding: 24px 22px;
  }

  .team-avatar {
    width: 120px;
  }

  .team-avatar--large {
    width: min(260px, 100%);
  }

  .team-detail {
    padding-bottom: 64px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
