/* ===== DESIGN TOKENS - shared with the rest of dealion.net ===== */
:root {
  --navy:        #2c1c62;
  --navy-mid:    #1f1448;
  --navy-deep:   #161033;
  --gold:        #ba9823;
  --gold-bright: #d4ae37;
  --violet:      #6B5CDB;
  --violet-dim:  rgba(107,92,219,0.15);
  --cream:       #F5F2EA;
  --cream-dark:  #EDE8DC;
  --warm-grey:   #6B645A;
  --rule:        #D8D3C8;
  --rule-dark:   rgba(245,242,234,0.1);
  --serif: 'Cormorant Infant', Georgia, 'Times New Roman', serif;
  --sans:  'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max:    1180px;
  --text:   720px;
  --lion-mask: url("/lion-mark.svg");
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-style: normal; }

/* ===== SCROLL PROGRESS ===== */
.progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  background: var(--gold);
  z-index: 250;
  transition: width 0.1s linear;
}

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1),
              transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.10s; }
.reveal[data-delay="2"] { transition-delay: 0.20s; }
.reveal[data-delay="3"] { transition-delay: 0.32s; }

/* ===== MASTHEAD ===== */
.masthead {
  position: fixed; inset: 0 0 auto 0;
  z-index: 200;
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  border-bottom: 1px solid transparent;
  will-change: transform;
}
.masthead.is-scrolled { background: var(--cream); border-bottom-color: var(--rule); padding: 14px 56px; }
.masthead.is-hidden { transform: translateY(-100%); }
.masthead__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; overflow: hidden; }
.masthead__lion-mark {
  width: 64px; height: 64px; flex-shrink: 0;
  background-color: var(--navy);
  -webkit-mask: var(--lion-mask) no-repeat center / contain;
          mask: var(--lion-mask) no-repeat center / contain;
}
.masthead__wordmark { display: block; height: 22px; width: auto; background: transparent; }
@media (hover: hover) {
  .masthead__wordmark {
    max-width: 0; opacity: 0; transform: translateX(-10px);
    clip-path: inset(0 100% 0 0);
    transition: max-width 0.55s cubic-bezier(0.65,0,0.2,1),
                opacity 0.35s ease 0.08s,
                clip-path 0.6s cubic-bezier(0.65,0,0.2,1) 0.05s,
                transform 0.55s cubic-bezier(0.65,0,0.2,1) 0.05s;
  }
  .masthead__logo:hover .masthead__wordmark,
  .masthead__logo:focus-visible .masthead__wordmark {
    max-width: 220px; opacity: 1; transform: translateX(0); clip-path: inset(0 0 0 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .masthead__lion-mark, .masthead__wordmark { transition: none !important; }
}
.masthead__cta {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); padding: 10px 22px; border: 1px solid var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
}
.masthead__cta:hover { background: var(--navy); color: var(--cream); }

/* ===== SHARED PRIMITIVES ===== */
.eyebrow {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--violet);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--violet); opacity: 0.5;
}
.eyebrow--solo::before { display: none; }
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--navy); margin-bottom: 24px; max-width: var(--text);
}
.section-lead {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.65;
  color: var(--navy-mid); max-width: var(--text);
}

/* ===== INTRO ===== */
.intro { padding: 200px 0 90px; }
.intro__inner { max-width: var(--max); margin: 0 auto; padding: 0 56px; }
.intro .eyebrow { margin-bottom: 26px; }

/* ===== MEMBER GROUPS ===== */
.member-group { padding: 70px 0; }
.member-group--alt { background: var(--cream-dark); }
.member-group__inner { max-width: var(--max); margin: 0 auto; padding: 0 56px; }
.group-header { margin-bottom: 48px; }
.group-header .eyebrow { margin-bottom: 16px; }
.group-header__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1;
  letter-spacing: -0.01em; color: var(--navy);
}

/* ===== MEMBERS GRID + CARD (Karadža-style box) ===== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.member-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  background: var(--cream);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.member-group--alt .member-card { background: var(--cream); }
.member-card:hover {
  border-color: var(--violet);
  transform: translateY(-2px);
  background: #fff;
}
.member-card__portrait {
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.member-card__portrait::after {
  content: ""; position: absolute; inset: 0;
  background-color: var(--navy); opacity: 0.06;
  -webkit-mask: var(--lion-mask) no-repeat center / 72%;
          mask: var(--lion-mask) no-repeat center / 72%;
}
.member-card__portrait img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top; filter: grayscale(0.1);
}
/* graceful fallback when a member has no portrait yet */
.member-card__portrait.is-empty { background: var(--cream-dark); }
.member-card__portrait.is-empty::after { opacity: 0.22; }
.member-card__copy { padding-top: 4px; min-width: 0; }
.member-card__name {
  font-family: var(--serif); font-weight: 700;
  font-size: 1.5rem; line-height: 1.1; color: var(--navy); margin-bottom: 8px;
}
.member-card__role {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm-grey); margin-bottom: 18px; line-height: 1.5;
}
.member-card__pull {
  font-family: var(--serif); font-size: 1.02rem; line-height: 1.55;
  color: var(--navy-mid); margin-bottom: 22px;
}
.member-card__cta {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy);
  display: inline-flex; gap: 12px; align-items: center;
  transition: gap 0.2s ease, color 0.2s ease;
}
.member-card:hover .member-card__cta { gap: 20px; color: var(--violet); }

/* ===== FOOTER ===== */
.page-footer {
  background: var(--navy);
  border-top: 1px solid rgba(247,244,236,0.08);
  padding: 36px 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.page-footer__copy {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.12em; color: rgba(247,244,236,0.25);
}
.page-footer__nav { display: flex; gap: 32px; }
.page-footer__nav a {
  font-family: var(--sans); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  color: rgba(247,244,236,0.35); transition: color 0.2s;
}
.page-footer__nav a:hover { color: var(--gold-bright); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .masthead { padding: 18px 28px; }
  .masthead.is-scrolled { padding: 12px 28px; }
  .intro { padding: 150px 0 60px; }
  .intro__inner, .member-group__inner { padding-left: 28px; padding-right: 28px; }
  .members-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-footer { flex-direction: column; gap: 18px; padding: 28px; text-align: center; }
  .page-footer__nav { flex-wrap: wrap; justify-content: center; gap: 18px; }
}
@media (max-width: 560px) {
  .member-card { grid-template-columns: 1fr; gap: 22px; padding: 28px; justify-items: start; }
  .member-card__portrait { width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .masthead { transition: none; }
}
