:root {
  --ink: #102b33;
  --ink-soft: #1e424b;
  --parchment: #f1e9d4;
  --paper: #f8f4e9;
  --brass: #c49e51;
  --muted: #5d706e;
  --line: rgba(16, 43, 51, 0.18);
  --shadow: 0 16px 40px rgba(16, 43, 51, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--ink) 0 17.5rem, var(--paper) 17.5rem 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

.shell {
  width: min(1200px, calc(100% - 3rem));
  min-height: 100vh;
  margin: 0 auto;
}

.masthead {
  min-height: 17.5rem;
  padding: 3rem 0 3.5rem;
  color: var(--parchment);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.brand { display: flex; align-items: center; gap: 1.1rem; }

.brand__mark {
  width: 4rem;
  height: 4rem;
  flex: 0 0 auto;
  display: block;
  object-fit: cover;
  background: var(--ink-soft);
  border: 1px solid rgba(241, 233, 212, 0.32);
}

.eyebrow,
.team-card__number,
.team-card__role,
.team-card__action {
  font-size: 0.69rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow { color: var(--brass); margin-bottom: 0.45rem; }

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 0.97; letter-spacing: -0.035em; }

.masthead__note {
  max-width: 17rem;
  margin-top: 0.85rem;
  color: rgba(241, 233, 212, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: right;
}

.team {
  position: relative;
  margin-top: -2rem;
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.team::before {
  position: absolute;
  top: 0;
  left: clamp(2rem, 6vw, 5rem);
  right: clamp(2rem, 6vw, 5rem);
  height: 3px;
  background: var(--brass);
  content: "";
}

.section-heading { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }

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

.team-card {
  min-height: 18rem;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(9.6rem, 38%) 1fr;
  color: inherit;
  text-decoration: none;
  background: #fffdf7;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 158, 81, 0.85);
  box-shadow: 0 12px 28px rgba(16, 43, 51, 0.12);
}

.team-card:focus-visible {
  outline: 4px solid var(--brass);
  outline-offset: 4px;
}

.team-card__portrait {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.88) contrast(1.03);
}

.team-card__content {
  min-width: 0;
  padding: 1.55rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-card__number { color: var(--brass); margin-bottom: 1.15rem; }

h3 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1; letter-spacing: -0.03em; }

.team-card__role { margin-top: 0.6rem; color: var(--ink-soft); }

.team-card__description {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.team-card__action {
  margin-top: auto;
  padding-top: 1.45rem;
  color: var(--ink);
}

.team-card__action span { color: var(--brass); font-size: 1.1rem; }

footer { padding: 1.3rem 0 2rem; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 760px) {
  body { background: linear-gradient(180deg, var(--ink) 0 15.5rem, var(--paper) 15.5rem 100%); }
  .shell { width: min(100% - 2rem, 1200px); }
  .masthead { min-height: 15.5rem; padding: 2rem 0 2.5rem; display: block; }
  .masthead__note { margin-top: 1.5rem; text-align: left; }
  .team { margin-top: -1.25rem; padding: 2rem 1.25rem; }
  .team::before { left: 1.25rem; right: 1.25rem; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .brand { align-items: flex-start; }
  .brand__mark { width: 3.35rem; height: 3.35rem; }
  .team-card { grid-template-columns: 7.4rem 1fr; min-height: 15rem; }
  .team-card__portrait { min-height: 15rem; }
  .team-card__content { padding: 1.2rem 1rem 1rem; }
  .team-card__description { font-size: 0.84rem; }
}

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