:root {
  --ink: #0C0B09;
  --crude: #141210;
  --maroon: #722F37;
  --maroon-bright: #A85C6B;
  --sand: #A89E88;
  --bone: #D8CFBA;
  --cream: #F0EBE1;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Libre Franklin', sans-serif;
  background: var(--ink);
  color: var(--bone);
  overflow-x: hidden;
}

::selection { background: var(--maroon); color: var(--cream); }

body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
}

/* NAV — logo left, Home / Team centered in the bar */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 0 2.75rem; min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(12, 11, 9, 0.8);
  border-bottom: 1px solid rgba(114, 47, 55, 0.06);
}

.logo {
  grid-column: 1;
  justify-self: start;
  font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 1.05rem;
  color: var(--cream); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.65rem;
}

.logo-dot {
  width: 10px; height: 10px; background: var(--maroon); border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.55);
  text-decoration: none;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--cream); }

.nav-links a[aria-current="page"] {
  color: var(--maroon-bright);
}

/* HERO */
.hero {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  text-align: center;
  padding: 1.25rem 2rem 2.5rem;
  position: relative;
}

.hero::before {
  content: ''; position: absolute; top: 30%; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(114, 47, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--maroon);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 1rem;
  animation: fadeUp 0.8s ease both 0.1s;
}

.eyebrow-line { width: 32px; height: 1px; background: var(--maroon); }

.hero h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1;
  letter-spacing: -0.025em; color: var(--cream);
  max-width: 700px;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.2s;
}

.hero h1 em { font-style: italic; color: var(--maroon-bright); }

.hero-sub {
  font-size: clamp(0.95rem, 1.7vw, 1.08rem); line-height: 1.65;
  color: var(--sand); max-width: 520px; margin-top: 1.1rem; font-weight: 300;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both 0.35s;
}

/* SPOTLIGHT PHOTO — top of page, under nav */
.spotlight-photo {
  display: flex;
  justify-content: center;
  padding: 5.35rem 1.5rem 1rem;
}

.spotlight-photo figure {
  margin: 0;
  max-width: min(800px, 92vw);
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(114, 47, 55, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.spotlight-photo .slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--crude);
}

.spotlight-photo .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  filter: brightness(0.9) contrast(1.02) saturate(0.95);
}

.spotlight-photo .slide.is-active {
  opacity: 1;
  z-index: 1;
}

.spotlight-photo .slide-dots {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.45rem;
}

.spotlight-photo .slide-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(240, 235, 225, 0.35);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.spotlight-photo .slide-dots button[aria-current="true"] {
  background: var(--maroon-bright);
  transform: scale(1.15);
}

/* DIVIDER */
.divider {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(114, 47, 55, 0.2), transparent);
  margin: 0 auto;
}

/* CONTENT SECTIONS */
.section {
  padding: clamp(2rem, 4vh, 3.25rem) 2rem;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  position: relative;
}

.section-eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase; color: var(--maroon);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: ''; width: 20px; height: 1px; background: rgba(114, 47, 55, 0.3);
}

.section h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.35;
  color: var(--cream); letter-spacing: -0.015em;
  max-width: 600px; margin-bottom: 0.75rem;
}

.section h2 em { font-style: italic; color: var(--maroon-bright); }

.section p {
  font-size: 0.98rem; line-height: 1.7; color: var(--sand);
  font-weight: 300; max-width: 540px;
}

.serve-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem; margin-top: 1.1rem; max-width: 560px;
}

.serve-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(114, 47, 55, 0.12);
  color: var(--bone); transition: all 0.3s;
}

.serve-tag:hover {
  border-color: rgba(114, 47, 55, 0.4);
  color: var(--cream);
  background: rgba(114, 47, 55, 0.05);
}

/* TEAM PAGE */
body.page-team main {
  padding-top: 5.35rem;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  margin-top: 1.75rem;
  max-width: 920px;
  width: 100%;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(114, 47, 55, 0.2);
  background: linear-gradient(160deg, rgba(114, 47, 55, 0.14), rgba(20, 18, 16, 0.85));
  margin-bottom: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.team-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(168, 158, 136, 0.85);
  line-height: 1.4;
}

/* FOOTER */
footer {
  border-top: 1px solid rgba(114, 47, 55, 0.06);
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}

footer p {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  color: rgba(168, 158, 136, 0.3); letter-spacing: 0.04em;
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  color: rgba(168, 158, 136, 0.3); text-decoration: none; transition: color 0.3s;
}

.footer-links a:hover { color: var(--maroon); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  nav { padding: 0 1.25rem; min-height: 72px; }
  .logo { font-size: 0.98rem; }
  .nav-links { gap: 1.15rem; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.1em; }
  .hero { padding: 1rem 1.5rem 2rem; }
  .spotlight-photo { padding: 5rem 1.25rem 0.75rem; }
  body.page-team main { padding-top: 5rem; }
  .spotlight-photo .slides { aspect-ratio: 4 / 3; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem 0.9rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
