:root {
  --bg: #121216;
  --bg2: #1a1c22;
  --ink: #f1eee8;
  --muted: #b2aba0;
  --line: rgba(237, 225, 203, 0.25);
  --accent: #b2915e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Manrope, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 70% 20%, rgba(56,94,135,.22), transparent 34%),
    radial-gradient(circle at 30% 80%, rgba(178,145,94,.18), transparent 30%),
    linear-gradient(180deg, #111317, #0c0d11 70%);
}
header, main { width: min(1180px, 92vw); margin: 0 auto; }
header { display: flex; justify-content: space-between; padding: 22px 0; font-size: .9rem; color: var(--muted); }
header a { color: inherit; text-decoration: none; }
.hero { padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--accent); }
.hero h1 { font-family: "Instrument Serif", serif; font-size: clamp(2.2rem, 6vw, 5.2rem); font-weight: 400; margin: 10px 0 4px; }
.subtitle { margin: 0; color: var(--muted); }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 14px;
  border-top: 0;
  padding-top: 14px;
}
.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28,31,38,.88), rgba(18,20,25,.96));
  overflow: hidden;
}
.metric strong { display: block; font-family: "Instrument Serif", serif; font-size: 2rem; font-weight: 400; }
.metric span { color: var(--muted); font-size: .8rem; }
.metric-applies {
  display: block;
  margin-top: 8px;
  color: #a89d8f;
  font-size: .72rem;
  line-height: 1.35;
}
.roles, .deals { padding: 64px 0 18px; }
.roles, .deals { position: relative; z-index: 1; }
.section-head h2 { font-family: "Instrument Serif", serif; font-size: clamp(1.4rem, 3vw, 2.5rem); font-weight: 400; margin: 10px 0; }
.section-head input {
  width: min(380px, 100%);
  height: 38px;
  background: rgba(20,22,28,.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}
.rail-shell {
  position: relative;
  margin-top: 20px;
}
.rail-shell::before,
.rail-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 88px;
  pointer-events: none;
  z-index: 2;
}
.rail-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12,13,17,.96), rgba(12,13,17,0));
}
.rail-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12,13,17,.96), rgba(12,13,17,0));
}
.role-swiper,
.deal-swiper {
  overflow-x: auto;
  overflow-y: visible;
  padding: 6px 52px 14px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-padding-inline: 52px;
}
.role-swiper::-webkit-scrollbar,
.deal-swiper::-webkit-scrollbar { height: 8px; }
.role-swiper::-webkit-scrollbar-thumb,
.deal-swiper::-webkit-scrollbar-thumb { background: rgba(210,170,110,.65); }
.role-swiper .swiper-wrapper,
.deal-swiper .swiper-wrapper {
  display: flex;
  gap: 18px;
  width: max-content;
}
.rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 66px;
  border: 1px solid rgba(237, 225, 203, 0.25);
  border-radius: 999px;
  background: rgba(19, 21, 27, 0.92);
  color: var(--ink);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease, opacity .18s ease;
}
.rail-arrow:hover {
  border-color: var(--accent);
  color: #fff6e7;
  background: rgba(24, 27, 35, 0.98);
}
.rail-arrow[disabled] {
  opacity: .35;
  cursor: default;
}
.rail-arrow-left { left: 4px; }
.rail-arrow-right { right: 4px; }
.swiper-slide {
  height: auto;
  width: min(372px, calc(100vw - 156px));
  flex: 0 0 min(372px, calc(100vw - 156px));
  scroll-snap-align: start;
}
.role-card, .deal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28,31,38,.92), rgba(18,20,25,.95));
  padding: 16px;
  min-height: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.card-base {
  display: block;
}
.role-card.expanded .card-base,
.deal-card.expanded .card-base {
  display: none;
}
.role-card h3, .deal-card h3 { margin: 0; font-size: 1.02rem; }
.meta { margin: 6px 0; color: var(--muted); font-size: .8rem; }
.summary { color: #d4ccc0; line-height: 1.55; font-size: .92rem; }
.open { margin-top: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); height: 34px; padding: 0 12px; cursor: pointer; }
.open,
.inline-close {
  border-radius: 999px;
}
.open:hover { border-color: var(--accent); }
.inline-detail {
  display: none;
  background: linear-gradient(180deg, rgba(23,26,33,.97), rgba(17,20,27,.97));
  border: 1px solid rgba(237,225,203,.18);
  border-radius: 18px;
  padding: 14px;
  overflow: auto;
  flex: 1 1 auto;
}
.role-card.expanded .inline-detail.open,
.deal-card.expanded .inline-detail.open {
  display: block;
}
.inline-close {
  border: 1px solid var(--line);
  background: rgba(29,33,41,.85);
  color: var(--ink);
  height: 30px;
  padding: 0 10px;
  cursor: pointer;
  margin-bottom: 8px;
}
.inline-close:hover { border-color: var(--accent); }
.inline-detail h4 { margin: 10px 0 5px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.inline-detail p, .inline-detail li { color: #d6d0c6; line-height: 1.55; font-size: .88rem; }
.inline-detail ul { margin: 0; padding-left: 18px; }
.inline-detail a { color: #d8be8a; }
.inline-detail::-webkit-scrollbar { width: 6px; }
.inline-detail::-webkit-scrollbar-thumb { background: rgba(210,170,110,.5); }
.swiper { padding-bottom: 0; }
@media (max-width: 760px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2n) { border-right: 0; }
  .rail-shell::before,
  .rail-shell::after { width: 44px; }
  .role-swiper,
  .deal-swiper {
    padding-inline: 36px;
    scroll-padding-inline: 36px;
  }
  .swiper-slide {
    width: min(320px, calc(100vw - 96px));
    flex-basis: min(320px, calc(100vw - 96px));
  }
  .rail-arrow {
    width: 30px;
    height: 54px;
    font-size: 1.5rem;
  }
  .rail-arrow-left { left: 0; }
  .rail-arrow-right { right: 0; }
}
