/* ============================================================
   Meridian Holdings — corporate site styles
   Palette: deep navy + warm gold, on warm off-white.
   Fonts: Fraunces (display serif) + Inter (UI/body).
   ============================================================ */

:root {
  --navy: #0f2a3f;
  --navy-700: #163850;
  --navy-900: #0a1f2f;
  --gold: #c9a24b;
  --gold-soft: #e3c987;
  --ink: #1c2630;
  --muted: #5d6b78;
  --paper: #fbf9f5;
  --paper-2: #f3efe7;
  --line: #e4ddd0;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(15, 42, 63, 0.45);
  --shadow-sm: 0 8px 24px -14px rgba(15, 42, 63, 0.35);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0;
}

p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.eyebrow.dark { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 48px; width: auto; margin-right: 0.6rem; display: block; }
.brand-mark { display: inline-flex; }
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.005em;
}
.brand-light { color: #a8842f; font-weight: 400; }
.footer-wordmark { font-size: 1.6rem; display: inline-block; margin-bottom: 0.9rem; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

/* About dropdown */
.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropbtn {
  font-family: inherit; font-size: 0.92rem; font-weight: 500; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; gap: 5px; position: relative;
  transition: color 0.2s;
}
.nav-dropbtn .caret { font-size: 0.62em; transition: transform 0.25s var(--ease); }
.nav-dropbtn::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--gold); transition: width 0.25s var(--ease);
}
.nav-dropdown:hover .nav-dropbtn, .nav-dropdown:focus-within .nav-dropbtn { color: var(--navy); }
.nav-dropdown:hover .nav-dropbtn::after, .nav-dropdown:focus-within .nav-dropbtn::after { width: calc(100% - 15px); }
.nav-dropdown:hover .caret, .nav-dropdown.open .caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.5rem; min-width: 172px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s var(--ease); z-index: 60;
}
.nav-menu::before { /* invisible bridge over the gap so hover doesn't drop */
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu, .nav-dropdown.open .nav-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px);
}
.nav-menu a { padding: 0.55rem 0.8rem; border-radius: 7px; font-size: 0.92rem; white-space: nowrap; color: var(--ink); }
.nav-menu a::after { display: none; }
.nav-menu a:hover { background: var(--paper-2); color: var(--navy); }

/* Leadership tiers */
.tier-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.6rem;
}
.tier + .tier { margin-top: 3.5rem; }
.team-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.team-flex .member { flex: 0 1 248px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(201, 162, 75, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(201, 162, 75, 0.12), transparent 55%);
  opacity: 0.9;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 40%, black 70%, transparent);
}
.hero-inner {
  position: relative;
  padding: 4rem 24px 4.5rem;
  max-width: 880px;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  color: var(--white);
  margin: 0 0 1.4rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 60%, var(--navy-700) 100%);
}
.page-hero-inner { position: relative; padding: 5.5rem 24px 4.5rem; max-width: 860px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); margin: 0 0 1rem; }
.page-hero .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: rgba(255,255,255,0.82); max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.84rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 1.1rem; }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
  color: var(--white);
  text-align: center;
}
.cta-band .container { max-width: 680px; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 1.9rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page intro / prose ---------- */
.lead-text { max-width: 740px; margin: 0 auto 3rem; text-align: center; color: var(--muted); font-size: 1.12rem; }
.prose { max-width: 760px; margin: 0 auto; }
.prose p { color: var(--muted); font-size: 1.05rem; }
.card-link.as-block { margin-top: 1.2rem; }

/* ---------- Stats ---------- */
.stats {
  background: var(--navy-900);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.8rem 24px;
}
.stat { text-align: center; padding: 0.5rem 1rem; position: relative; }
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.stat-num {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin: 0 auto 3.2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.section-lede { color: var(--muted); font-size: 1.08rem; }
.section-lede em { color: var(--gold); font-style: normal; font-size: 0.92em; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold-soft);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-700));
  color: var(--gold-soft);
  margin-bottom: 1.2rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Linked service card (e.g. GateCo) */
a.card { display: block; color: inherit; text-decoration: none; }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: #a8842f;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.card--link:hover .card-link { color: var(--navy); transform: translateX(3px); }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.property {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.property:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.property-img {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, var(--navy-700), var(--navy));
}
.property-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 75%);
}
.property-img[data-shade="1"] { background: linear-gradient(135deg, #2c4a3a, #16382f); }
.property-img[data-shade="2"] { background: linear-gradient(135deg, #5a4632, #3a2c1e); }
.property-img[data-shade="3"] { background: linear-gradient(135deg, #2f3b4a, #1c2630); }
.property-img[data-shade="4"] { background: linear-gradient(135deg, #6a4a4a, #402c2c); }
.property-img[data-shade="5"] { background: linear-gradient(135deg, #4a4256, #2c2636); }
.property--soon .property-img { display: flex; align-items: flex-start; justify-content: flex-end; }
.property-img-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.property-soon-badge {
  position: relative;
  z-index: 1;
  margin: 14px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--gold);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.property-body { padding: 1.4rem 1.5rem 1.7rem; }
.property-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 162, 75, 0.12);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.property h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.property-body p { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* Linked community cards */
a.property { display: block; color: inherit; text-decoration: none; }
img.property-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.property-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: #a8842f;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.property:hover .property-link { color: var(--navy); transform: translateX(3px); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-media { position: relative; }
.about-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: block;
}
.about-photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,75,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,75,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(160deg, black, transparent 80%);
}
.about-badge {
  position: absolute;
  right: -22px; bottom: 38px;
  background: var(--gold);
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}
.about-badge-num { font-family: "Fraunces", serif; font-size: 2.4rem; font-weight: 600; line-height: 1; }
.about-badge-label { font-size: 0.78rem; font-weight: 600; line-height: 1.25; }
.about-copy h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); }
.about-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.5rem;
}
.about-list li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,162,75,0.18);
}

/* ---------- History / timeline (horizontal slider) ---------- */
.timeline-h { position: relative; margin: 0 auto 1.5rem; padding: 0 3.25rem; }
.timeline-h::after { /* right-edge fade hints there's more to scroll */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: 3.25rem;
  width: 56px;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.25s ease;
  background: linear-gradient(to left, var(--paper-2) 30%, transparent);
}
.timeline-h.at-end::after { opacity: 0; }
.timeline {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 2.5rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.timeline::-webkit-scrollbar { height: 8px; }
.timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.timeline-item {
  position: relative;
  flex: 0 0 238px;
  scroll-snap-align: start;
  padding: 0.2rem 1.6rem 0.4rem 0;
}
.timeline.in .timeline-item { animation: tlReveal 0.6s var(--ease) both; }
.timeline.in .timeline-item:nth-child(1) { animation-delay: 0.04s; }
.timeline.in .timeline-item:nth-child(2) { animation-delay: 0.12s; }
.timeline.in .timeline-item:nth-child(3) { animation-delay: 0.20s; }
.timeline.in .timeline-item:nth-child(4) { animation-delay: 0.28s; }
.timeline.in .timeline-item:nth-child(5) { animation-delay: 0.36s; }
.timeline.in .timeline-item:nth-child(6) { animation-delay: 0.44s; }
.timeline.in .timeline-item:nth-child(n+7) { animation-delay: 0.5s; }
@keyframes tlReveal {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.timeline-item::before { /* connecting line above each card */
  content: "";
  position: absolute;
  top: -1.1rem;
  left: 0;
  width: calc(100% + 1.25rem);
  height: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { width: 100%; }
.timeline-item::after { /* dot on the line */
  content: "";
  position: absolute;
  top: calc(-1.1rem - 6px);
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper-2);
}
.timeline-year {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.timeline-content h3 { font-size: 1.14rem; margin-bottom: 0.35rem; }
.timeline-content p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.tl-arrow {
  position: absolute;
  top: calc(50% + 0.6rem);
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.tl-arrow:hover { background: var(--paper-2); }
.tl-arrow:active { transform: translateY(-50%) scale(0.94); }
.tl-prev { left: 0; }
.tl-next { right: 0; }
@media (max-width: 760px) {
  .tl-arrow { display: none; }
  .timeline-item { flex-basis: 80vw; max-width: 300px; }
  .timeline-h { padding: 0; }
  .timeline-h::after { right: 0; }
}

/* ---------- What drives us (EOS / YES) ---------- */
.yes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto 2.8rem;
}
.yes-item { text-align: center; padding: 0.5rem 1rem; }
.yes-letter {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.yes-item h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.yes-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.corevalues {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  align-items: center;
}
.cv-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 0.4rem;
}
.cv-chip {
  background: rgba(201, 162, 75, 0.15);
  color: #8a6a2c;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
}
@media (max-width: 700px) {
  .yes-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* Founders / advisory board */
.advisory { max-width: 940px; margin: 0 auto; }
.advisory + .section-head { margin-top: 4.5rem; }
.advisory-title {
  text-align: center;
  font-size: 1.55rem;
  margin-bottom: 2rem;
}
.advisory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.member-photo.founder img { object-position: center 18%; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member-photo {
  width: 92px; height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-700));
  color: var(--gold-soft);
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.member-photo { position: relative; overflow: hidden; }
.member-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member-photo[data-i="1"] { background: linear-gradient(140deg, #2c4a3a, #16382f); }
.member-photo[data-i="2"] { background: linear-gradient(140deg, #5a4632, #3a2c1e); }
.member-photo[data-i="3"] { background: linear-gradient(140deg, #4a4256, #2c2636); }
.member h3 { font-size: 1.18rem; margin-bottom: 0.2rem; }
.member-role { color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6rem; }
.member-org { display: block; color: var(--muted); font-weight: 500; font-size: 0.8rem; margin-top: 3px; }
.member-bio { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 60%, var(--navy-700));
  color: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-copy h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.contact-copy > p { color: rgba(255,255,255,0.78); margin-bottom: 2rem; }
.contact-details { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-details li { display: flex; align-items: center; gap: 0.9rem; color: rgba(255,255,255,0.9); }
.contact-details a:hover { color: var(--gold-soft); }
.contact-ico {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(201,162,75,0.16);
  color: var(--gold-soft);
  font-size: 1.05rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.18);
  background: var(--white);
}
.field textarea { resize: vertical; }
.form-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.8rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 490px; display: flex; align-items: center; gap: 1.2rem; }
.footer-logo { height: 60px; width: auto; display: block; margin-bottom: 1rem; }
.footer-logo-full { height: 92px; width: auto; display: block; flex-shrink: 0; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-light { color: var(--gold-soft); }
.footer-brand p { margin: 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 340px; }
.footer-brand .brand-mark { display: inline-flex; vertical-align: middle; margin-right: 0.5rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { right: 20px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1.2rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-dropdown { display: block; width: 100%; }
  .nav-dropbtn { width: 100%; justify-content: space-between; padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-dropbtn::after { display: none; }
  .nav-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 1rem; min-width: 0; }
  .nav-menu::before { display: none; }
  .nav-menu a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .stat:nth-child(2)::after { display: none; }
  .section { padding: 4rem 0; }
  .brand-logo { height: 36px; }
  .advisory-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

@media (max-width: 520px) {
  .cards, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .hero-inner { padding: 5rem 24px 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .timeline.in .timeline-item { animation: none; }
}
