/* ============================================
   Loon Point Capital — Global Stylesheet
   ============================================ */

:root {
  --navy-900: #1e2d41;
  --navy-800: #263850;
  --navy-700: #30425a;
  --navy-600: #3d5268;
  --gold-500: #bca76e;
  --gold-400: #cbb989;
  --gold-100: #f4efe3;
  --cream: #faf8f4;
  --white: #ffffff;
  --ink: #1e2d41;
  --muted: #5c6c7e;
  --muted-light: #8a97a5;
  --border: #e3ddd0;
  --border-dark: rgba(255,255,255,0.14);

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Afacad', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.3rem; }

em, i { font-style: italic; }

p { color: var(--muted); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

.section {
  padding: 100px 0;
}

.section-tight { padding: 64px 0; }

.section-alt {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(188,167,110,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 95%, rgba(30,45,65,0.07) 0%, transparent 50%),
    var(--cream);
}
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(30,45,65,0.03) 0, rgba(30,45,65,0.03) 1px, transparent 1px, transparent 20px);
  pointer-events: none;
}
.section-alt > .container { position: relative; z-index: 1; }

.section-navy {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(188,167,110,0.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.72); }

/* Photo-backed section with dark overlay */
.section-photo {
  position: relative;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  overflow: hidden;
}
.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,44,0.84) 0%, rgba(30,45,65,0.8) 50%, rgba(15,23,35,0.9) 100%);
}
.section-photo > .container { position: relative; z-index: 1; }
.section-photo h2, .section-photo h3 { color: var(--white); }
.section-photo p { color: rgba(255,255,255,0.75); }
.section-photo .eyebrow { color: var(--gold-400); }

.section-photo .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-photo .card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(203,185,137,0.5);
  box-shadow: 0 20px 50px rgba(0,0,0,0.32);
}
.section-photo .card .icon { background: rgba(188,167,110,0.2); color: var(--gold-400); }
.section-photo .card h3 { color: var(--white); }
.section-photo .card p { color: rgba(255,255,255,0.72); }
.section-photo .step h3 { color: var(--white); }
.section-photo .step p { color: rgba(255,255,255,0.72); }
.section-photo .step .step-num { color: var(--gold-400); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 34px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-gold {
  background: transparent;
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.btn-gold:hover { background: var(--gold-100); }

.btn-gold-dark {
  background: transparent;
  border-color: var(--gold-400);
  color: var(--white);
}
.btn-gold-dark:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-outline-dark:hover { background: var(--navy-900); color: var(--white); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  font-family: var(--serif);
  color: var(--navy-900);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  line-height: 1.1;
}
.logo-icon {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  color: inherit;
}
.logo-text { display: inline-block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-family: var(--sans);
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 6px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.25s ease;
}
.nav-links a:hover { color: var(--gold-500); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--gold-500); font-style: normal; }
.nav-links a.active::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 28px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  display: block;
}

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative;
  color: var(--white);
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,44,0.32) 0%, rgba(20,30,44,0.5) 55%, rgba(15,23,35,0.88) 100%);
}
.hero .container, .page-hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; margin: 0 auto; }
.hero { padding: 170px 0 130px; background-attachment: fixed; }
.hero p.lead {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin: 22px auto 36px;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 12px;
}
.scroll-cue::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--gold-400);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move {
  0% { opacity: 1; transform: translate(-50%, 0); }
  60% { opacity: 0; transform: translate(-50%, 12px); }
  61% { opacity: 0; transform: translate(-50%, 0); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 900px) {
  .hero, .page-hero, .section-photo, .cta-band, .contact-hero { background-attachment: scroll; }
  .scroll-cue { display: none; }
}

.page-hero { padding: 150px 0 110px; background-attachment: fixed; }
.page-hero .container { max-width: 800px; }
.page-hero p.lead {
  color: rgba(255,255,255,0.85);
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.1rem;
}
.hero h1, .page-hero h1 { color: var(--white); }
.hero h1 em, .page-hero h1 em, h2 em {
  font-style: italic;
  font-weight: 500;
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(188,167,110,0.16) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-top: 1px solid var(--border-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 44px 0;
}
.stat {
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  padding: 0 16px;
}
.stat:last-child { border-right: none; }
.stat .stat-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto 14px;
  color: var(--gold-400);
  opacity: 0.9;
}
.stat .stat-icon svg { width: 100%; height: 100%; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-400);
  font-weight: 600;
}
.stat .num.small {
  font-size: 1.5rem;
  white-space: nowrap;
}
.stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ---------- Cards / Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 16px 40px rgba(30,45,65,0.08); transform: translateY(-3px); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-weight: 700;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-block {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  position: relative;
  overflow: hidden;
}
.media-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(203,185,137,0.08) 0, rgba(203,185,137,0.08) 2px, transparent 2px, transparent 24px);
}
.media-block .tag {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--gold-100);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  z-index: 2;
}

.media-block.has-photo {
  background-size: cover;
  background-position: center;
}
.media-block.has-photo::before {
  background-image: linear-gradient(180deg, rgba(20,30,44,0.05) 0%, rgba(20,30,44,0.15) 55%, rgba(15,23,35,0.85) 100%);
}

.list-check { margin-top: 24px; }
.list-check li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.98rem;
}
.list-check li .bullet {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--white);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Responsibility list ---------- */
.responsibility-list {
  border-top: 1px solid var(--border);
}
.responsibility-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: default;
  transition: padding-left 0.2s ease, background 0.2s ease;
}
.responsibility-row:hover {
  padding-left: 20px;
  background: rgba(30,45,65,0.04);
}
.responsibility-row .r-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold-500);
  flex-shrink: 0;
  width: 34px;
  transition: color 0.2s ease;
}
.responsibility-row:hover .r-num { color: var(--navy-900); }
.responsibility-row .r-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Dark / photo-backed variant */
.section-photo .responsibility-list { border-top-color: rgba(255,255,255,0.22); }
.section-photo .responsibility-row { border-bottom-color: rgba(255,255,255,0.22); }
.section-photo .responsibility-row:hover { background: rgba(255,255,255,0.08); }
.section-photo .responsibility-row .r-num { color: var(--gold-400); }
.section-photo .responsibility-row:hover .r-num { color: var(--white); }
.section-photo .responsibility-row .r-text { color: rgba(255,255,255,0.85); }
.criteria-list { max-width: 820px; margin: 0 auto; }

/* ---------- Pipeline (expandable rows) ---------- */
.pipeline-list { border-top: 1px solid var(--border); }
.section-photo .pipeline-list { border-top-color: rgba(255,255,255,0.22); }

.pipeline-item { border-bottom: 1px solid var(--border); }
.section-photo .pipeline-item { border-bottom-color: rgba(255,255,255,0.22); }

.pipeline-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  padding: 18px 14px;
  margin: 0;
  background: none;
  border: none;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: padding-left 0.2s ease, background 0.2s ease;
}
.pipeline-row:hover { padding-left: 20px; background: rgba(30,45,65,0.04); }
.section-photo .pipeline-row:hover { background: rgba(255,255,255,0.08); }
.pipeline-row:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.pipeline-row .r-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--gold-500);
  flex-shrink: 0;
  width: 34px;
  transition: color 0.2s ease;
}
.section-photo .pipeline-row .r-num { color: var(--gold-400); }
.pipeline-row:hover .r-num { color: var(--navy-900); }
.section-photo .pipeline-row:hover .r-num { color: var(--white); }

.pipeline-row .r-text {
  flex: 1;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.4;
}
.section-photo .pipeline-row .r-text { color: rgba(255,255,255,0.85); }

.pipeline-title { display: block; }
.pipeline-sponsor {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}
.section-photo .pipeline-sponsor { color: rgba(255,255,255,0.55); }

/* Right-hand indicator */
.pipeline-toggle {
  position: relative;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  align-self: center;
  transition: transform 0.3s ease, border-color 0.2s ease, background 0.2s ease;
}
.section-photo .pipeline-toggle { border-color: rgba(255,255,255,0.35); }
.pipeline-toggle::before,
.pipeline-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--gold-500);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.section-photo .pipeline-toggle::before,
.section-photo .pipeline-toggle::after { background: var(--gold-400); }
.pipeline-toggle::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.pipeline-toggle::after  { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }

.pipeline-row:hover .pipeline-toggle { border-color: var(--gold-500); background: rgba(188,167,110,0.12); }
.section-photo .pipeline-row:hover .pipeline-toggle { border-color: var(--gold-400); background: rgba(255,255,255,0.1); }

.pipeline-row[aria-expanded="true"] .pipeline-toggle { transform: rotate(90deg); }
.pipeline-row[aria-expanded="true"] .pipeline-toggle::after { opacity: 0; }

/* Expanding detail panel */
.pipeline-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.pipeline-item.open .pipeline-detail { grid-template-rows: 1fr; }
.pipeline-detail > div { overflow: hidden; }
.pipeline-detail p {
  margin: 0 14px 22px 72px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}
.section-photo .pipeline-detail p { color: rgba(255,255,255,0.72); }

@media (max-width: 560px) {
  .pipeline-row { gap: 14px; padding: 16px 10px; }
  .pipeline-detail p { margin-left: 48px; }
}

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative;
  padding: 20px 18px 8px;
  margin: -20px -18px 0;
  border-radius: var(--radius);
  cursor: default;
  transition: transform 0.3s ease, background 0.3s ease;
}
.step:hover {
  transform: translateY(-6px);
  background: rgba(30,45,65,0.04);
}
.section-photo .step:hover, .section-navy .step:hover {
  background: rgba(255,255,255,0.07);
}
.step .step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold-400);
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}
.step:hover .step-num {
  transform: scale(1.14);
  color: var(--gold-500);
}
.section-photo .step:hover .step-num, .section-navy .step:hover .step-num {
  color: var(--white);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color 0.3s ease; }
.step:hover h3 { color: var(--gold-500); }
.section-photo .step:hover h3, .section-navy .step:hover h3 { color: var(--gold-400); }
.step p { font-size: 0.92rem; }

/* ---------- Team ---------- */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.team-photo {
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, var(--navy-600), var(--navy-900));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.team-info { padding: 24px 22px; }
.team-info h3 { margin-bottom: 4px; }
.team-role {
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
  display: block;
}
.team-info p { font-size: 0.9rem; }

/* ---------- Portfolio ---------- */
.deal-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.deal-media {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-600));
  position: relative;
}
.deal-media .badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold-500);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}
.deal-info { padding: 24px 22px; }
.deal-info h3 { margin-bottom: 4px; }
.deal-loc { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 16px; display: block; }
.deal-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.deal-meta div { text-align: left; }
.deal-meta .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-light); }
.deal-meta .v { font-family: var(--serif); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; margin-top: 2px; }

/* ---------- Quote break ---------- */
.quote-break {
  position: relative;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 150px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.quote-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,44,0.5) 0%, rgba(15,23,35,0.68) 100%);
}
.quote-break .container { position: relative; z-index: 2; max-width: 820px; }
.quote-text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 24px;
}
.quote-text em { font-style: italic; color: var(--gold-400); }
.quote-attribution {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
}
@media (max-width: 900px) {
  .quote-break { background-attachment: scroll; padding: 110px 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 96px 0;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,30,44,0.86) 0%, rgba(15,23,35,0.92) 100%);
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 18px; }
.cta-band h2 em { font-style: italic; font-weight: 500; }
.cta-band p { max-width: 540px; margin: 0 auto 32px; color: rgba(255,255,255,0.72); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.85rem; font-weight: 600; color: var(--navy-900); font-family: var(--sans); }
input, select, textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(188,167,110,0.16);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--muted-light); margin-top: 10px; }
#form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  display: none;
}
#form-status.show { display: block; }
#form-status.success { background: #eef6ee; color: #2e6b34; border: 1px solid #cfe6cf; }
#form-status.error { background: #fbeaea; color: #9b3232; border: 1px solid #f0c9c9; }

/* ---------- Contact hero (single full-bleed photo behind the whole section) ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-900);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(15,23,35,0.86) 0%, rgba(20,30,44,0.74) 48%, rgba(15,23,35,0.9) 100%);
  z-index: 0;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  min-height: 100vh;
}

.contact-panel {
  padding: 176px 56px 64px;
  color: var(--white);
}
.contact-panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  height: 100%;
}
.contact-panel .eyebrow { color: var(--gold-400); }
.contact-panel h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 2.9rem); margin: 14px 0 18px; }
.contact-panel h1 em { font-style: italic; font-weight: 500; }
.contact-panel p { color: rgba(255,255,255,0.8); max-width: 460px; }

.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list-item { display: flex; gap: 16px; align-items: flex-start; }
.cli-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cli-icon svg { width: 17px; height: 17px; }
.contact-list-item h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.contact-list-item p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin: 0; }
.contact-list-item p a { color: rgba(255,255,255,0.75); transition: color 0.2s ease; }
.contact-list-item p a:hover { color: var(--gold-400); }

/* Form card: frosted glass floating directly over the photo — no solid panel */
.contact-card {
  position: relative;
  padding: 176px 60px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  border-left: 1px solid rgba(255,255,255,0.16);
}
.contact-card form { max-width: 540px; }
.contact-card .eyebrow { color: var(--gold-400); }
.contact-card h2 { color: var(--white); }
.contact-card label { color: rgba(255,255,255,0.88); }
.contact-card input,
.contact-card select,
.contact-card textarea {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--ink);
}
.contact-card input::placeholder,
.contact-card textarea::placeholder { color: var(--muted-light); }
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(203,185,137,0.35);
}
.contact-card .form-note { color: rgba(255,255,255,0.62); }
.contact-card .btn-gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.contact-card .btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; min-height: 0; }
  .contact-panel { padding: 150px 30px 56px; }
  .contact-panel-inner { height: auto; gap: 36px; }
  .contact-card {
    padding: 56px 30px 72px;
    justify-content: flex-start;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.16);
  }
}
@media (max-width: 560px) {
  .contact-panel { padding: 130px 24px 48px; }
  .contact-card { padding: 48px 22px 64px; }
}

/* ---------- Legal documents ---------- */
.legal-doc { max-width: 800px; }
.legal-doc .updated { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 40px; }
.legal-doc h2 { font-size: 1.4rem; margin-top: 48px; margin-bottom: 16px; }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 26px; margin-bottom: 10px; color: var(--navy-900); }
.legal-doc p { margin-bottom: 14px; }
/* The global `ul { list-style: none }` suits the marketing pages, but in a
   legal document unmarked items read as stray sentences. */
.legal-doc ul { list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px 22px; padding-left: 18px; }
.legal-doc li::marker { color: var(--gold-500); }
.legal-doc li { margin-bottom: 8px; color: var(--muted); }
.legal-doc a { color: var(--gold-500); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(188,167,110,0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-900) 0%, #131c2a 100%);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo { margin-bottom: 16px; color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-400); }
.footer-legal {
  padding: 28px 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}
.footer-legal p { color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .stat { border-right: none; padding: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 130px 0 80px; }
  .page-hero { padding: 120px 0 70px; }
  .hero-actions .btn { width: 100%; }
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 88px 0 0 0;
  background: var(--navy-900);
  z-index: 99;
  padding: 32px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 1.3rem;
  font-family: var(--serif);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-nav .btn { margin-top: 24px; }

/* ============================================
   Mobile photo backgrounds
   --------------------------------------------
   The hero photos are wide landscapes (3:2). On a narrow phone a
   photo-backed section is far taller than it is wide, so `cover` has to
   scale the image up enormously and only a narrow centre strip stays
   visible — often empty sky, which washes the section out instead of
   reading as the dark textured panel it is on desktop. Shorten the
   sections and deepen the overlays so the photo sits back as texture.
   Placed at the end of the file so these win over the base rules.
   ============================================ */
@media (max-width: 900px) {
  .section { padding: 76px 0; }

  .section-photo::before {
    background: linear-gradient(180deg, rgba(15,23,35,0.93) 0%, rgba(20,30,44,0.91) 50%, rgba(12,18,28,0.95) 100%);
  }
  .cta-band::before {
    background: linear-gradient(180deg, rgba(15,23,35,0.93) 0%, rgba(12,18,28,0.95) 100%);
  }
  .contact-hero::before {
    /* Top stop stays at the desktop value so the fixed header, which sits
       over it, keeps the same contrast against the logo and menu button. */
    background: linear-gradient(180deg, rgba(15,23,35,0.86) 0%, rgba(20,30,44,0.90) 45%, rgba(15,23,35,0.94) 100%);
  }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
}

/* Second profile on the Team page mirrors the first — photo to the right.
   The DOM keeps photo-first so both profiles stack the same way on mobile. */
@media (min-width: 901px) {
  .split-mirror .team-photo { order: 2; }
}

/* ---------- Team profiles ----------
   A fixed, narrower photo column and slightly larger bio text, so the two
   columns balance instead of leaving a tall empty gap beside the headshot. */
.team-profile .team-bio { font-size: 1.08rem; line-height: 1.65; }

@media (min-width: 901px) {
  .team-profile { padding: 76px 0; }
  .team-profile .split { grid-template-columns: 300px 1fr; gap: 52px; }
  /* Mirrored profile puts the photo in the second column (see .split-mirror). */
  .team-profile .split-mirror { grid-template-columns: 1fr 300px; }
}
