:root {
  --navy: #0a1e34;
  --ivory: #faf4e7;
  --rust: #cc775e;
  --steel: #6f757c;
  --card-surface: #fdfbf5;

  --rule: rgba(10, 30, 52, .12);
  --rule-strong: rgba(10, 30, 52, .14);
  --shadow: 0 6px 24px rgba(10, 30, 52, .08);

  --serif: "Canela", "Playfair Display", Georgia, serif;
  --shell-max: 1060px;
  --shell-pad: 32px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

.site {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-left: var(--shell-pad);
  padding-right: var(--shell-pad);
}

.site-main {
  flex: 1;
}

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

/* Header */
.header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 244, 231, .88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.logo {
  width: 54px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  color: var(--navy);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: clamp(15px, 4.4vw, 19px);
  line-height: 1.2;
  white-space: nowrap;
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  text-decoration: none;
  border-bottom-color: rgba(204, 119, 94, .45);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--rust);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(10, 30, 52, .18);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(10, 30, 52, .28);
  outline-offset: 2px;
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle .bar + .bar {
  margin-top: 4px;
}

.menu-toggle[aria-expanded="true"] .bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Type */
.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--steel);
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow--section {
  margin-bottom: 18px;
}

.muted {
  color: var(--steel);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 72px;
  align-items: flex-start;
  padding: 70px 0 80px;
}

.hero-copy {
  flex: 1.35 1 340px;
  min-width: 0;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.5vw, 64px);
  line-height: 1.06;
  letter-spacing: .005em;
  margin: 16px 0 22px;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 19px;
  color: var(--steel);
  max-width: 480px;
  margin: 0;
  text-wrap: pretty;
}

.page-header {
  padding: 32px 0 26px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.08;
  margin: 0;
}

.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px;
}

/* Ruled lists */
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15.5px;
}

.hero .feature-list {
  flex: 1 1 300px;
  min-width: 0;
  margin-top: 6px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
}

.feature:last-child {
  border-bottom: 1px solid var(--rule);
}

.feature .dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--rust);
  flex: 0 0 auto;
}

/* Drops the closing rule when a section divider already follows. */
.feature-list--flush .feature:last-child {
  border-bottom: 0;
}

.feature-list--lg {
  font-size: 16px;
}

.feature-list--lg .feature {
  padding: 16px 0;
}

.feature-list--lg .dot {
  margin-top: 9px;
}

/* Content sections */
.section {
  padding-bottom: 56px;
}

.section--ruled {
  border-top: 1px solid var(--rule);
  padding-top: 44px;
}

.measure {
  max-width: 640px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--rule-strong);
  background: var(--card-surface);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.pill {
  display: inline-block;
  background: rgba(204, 119, 94, .12);
  color: var(--navy);
  border: 1px dashed rgba(10, 30, 52, .25);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .02em;
}

/* Holdings */
.holding {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  align-items: flex-start;
  padding: 36px;
}

/* Until a holding image exists, keep the card from stranding whitespace
   where the 260px square would sit. */
.holding--no-media {
  max-width: 760px;
}

/* A logo tile rather than the design's square photo slot: the Merlin's
   mark is a wide wordmark, so it is contained on white, never cropped. */
.holding-media {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 13 / 8;
  height: auto;
  flex: 0 0 auto;
  border-radius: 14px;
  object-fit: contain;
  padding: 22px;
  border: 1px solid var(--rule);
  background: #fff;
  display: block;
}

.holding-body {
  flex: 1 1 320px;
  min-width: 0;
}

.holding-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.1;
  margin: 14px 0 6px;
}

.holding-meta {
  color: var(--steel);
  font-size: 15px;
}

.stat-row {
  display: flex;
  gap: 44px;
  margin: 26px 0 22px;
  flex-wrap: wrap;
}

.stat-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.stat-label {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--steel);
  text-transform: uppercase;
}

.holding-copy {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  text-wrap: pretty;
}

.holding-copy + .holding-copy {
  margin-top: 14px;
}

.holding-link {
  margin-top: 20px;
}

.holdings-cta {
  padding-top: 44px;
  padding-bottom: 72px;
}

.cta-row {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-row p {
  margin: 0;
  color: var(--steel);
  font-size: 15px;
  max-width: 640px;
}

.cta-row .arrow-link {
  white-space: nowrap;
}

.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 15px;
}

.arrow-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.person-avatar {
  width: 92px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
  display: block;
}

.person-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  margin: 18px 0 2px;
}

.person-role {
  color: var(--steel);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.person-bio {
  margin: 16px 0 0;
  font-size: 15.5px;
  text-wrap: pretty;
}

.person-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
  font-size: 14.5px;
}

.person-links a {
  overflow-wrap: anywhere;
}

.external {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  overflow-wrap: anywhere;
}

.external svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
  transform: translateY(1px);
}

/* Ruled columns (contact) */
.col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.col {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.col-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.col p {
  margin: 8px 0 12px;
  color: var(--steel);
  font-size: 15px;
}

.col a {
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* Compact person rows */
.team-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.team-row img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: #fff;
  flex: 0 0 auto;
}

.team-row-body {
  font-size: 14.5px;
  min-width: 0;
}

.team-row-name {
  font-weight: 600;
  font-size: 15.5px;
}

.team-row-name .muted {
  font-weight: 400;
}

.team-row-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.team-row-links a {
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  padding-bottom: 56px;
  font-size: 14px;
}

.footer-inner {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-name {
  font-weight: 600;
  letter-spacing: .01em;
}

.footer-contact {
  color: var(--steel);
}

.footer-contact a {
  color: inherit;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  opacity: .8;
}

.footer-nav a:hover {
  opacity: 1;
}

@media (max-width: 759px) {
  :root {
    --shell-pad: 20px;
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid rgba(10, 30, 52, 0);
    background: rgba(255, 255, 255, 0);
    border-radius: 12px;
    padding: 0 14px;
    transition: max-height .25s ease, opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, padding .2s ease;
  }

  .nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 0;
  }

  .nav a:hover {
    border-bottom-color: transparent;
    text-decoration: underline;
  }

  .nav a + a {
    border-top: 1px solid var(--rule);
  }

  .nav a[aria-current="page"] {
    color: var(--rust);
    font-weight: 600;
  }

  .nav.open {
    max-height: 340px;
    opacity: 1;
    transform: translateY(0);
    background: #fff;
    border-color: var(--rule-strong);
    padding: 8px 14px;
    box-shadow: 0 4px 12px rgba(10, 30, 52, .06);
  }

  .hero {
    padding: 44px 0 56px;
    gap: 32px;
  }

  .page-header {
    padding: 22px 0 18px;
  }

  .section {
    padding-bottom: 44px;
  }

  .section--ruled {
    padding-top: 32px;
  }

  .card {
    padding: 24px;
  }

  .holding {
    padding: 24px;
    gap: 26px;
  }

  .holding-name {
    font-size: 28px;
  }

  .stat-row {
    gap: 22px 28px;
    margin: 22px 0 20px;
  }

  .holdings-cta {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .site-footer {
    padding-bottom: 40px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .footer-nav {
    gap: 14px;
  }
}

/* Between the mobile breakpoint and full width, a side-by-side body column
   is too narrow to hold the three stats on one row, so stack the tile
   above the body and let it use the card's full width. */
@media (min-width: 760px) and (max-width: 1000px) {
  .holding-body {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .menu-toggle .bar {
    transition: none;
  }
}
