/* Excel Recovery Group — shared styles */
:root {
  /* bright, sunlit palette: --ink* are the page surfaces, --ivory is the main text color */
  --ink: #fbf8f2;
  --ink-2: #f3ece0;
  --ink-3: #e9dfcd;
  --line: rgba(19, 33, 44, 0.12);
  --line-strong: rgba(19, 33, 44, 0.24);
  --ivory: #13212c;
  --mute: rgba(19, 33, 44, 0.7);
  --faint: rgba(19, 33, 44, 0.46);
  --gold: #a9803f;
  --gold-2: #a2763a;
  --gold-deep: #8a6630;
  --deep: #13212c;
  --on-gold: #fffaf1;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: light;
}

/* Anything sitting on a photo keeps light text. */
.on-photo, .lightbox, body.photo-top:not(.menu-open) .site-header:not(.scrolled) {
  --ivory: #fbf6ec;
  --mute: rgba(251, 246, 236, 0.82);
  --faint: rgba(251, 246, 236, 0.6);
  --line: rgba(251, 246, 236, 0.18);
  --line-strong: rgba(251, 246, 236, 0.4);
  --gold: #e6c88f;
  --gold-2: #f0d9a8;
  color: var(--ivory);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }

/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.7; }
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}
.display em { font-style: italic; color: var(--gold-2); }
.h-xl { font-size: clamp(54px, 10vw, 168px); }
.h-lg { font-size: clamp(42px, 6.4vw, 104px); }
.h-md { font-size: clamp(34px, 4.2vw, 64px); }
.h-sm { font-size: clamp(26px, 2.6vw, 38px); }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--mute); max-width: 60ch; font-weight: 300; }
.gold { color: var(--gold); }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(96px, 14vw, 200px); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 248, 242, 0.86);
  box-shadow: 0 10px 40px -20px rgba(19, 33, 44, 0.25);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding-block: 14px;
  border-color: var(--line);
}
.brand { display: flex; align-items: center; }
.brand .logo { height: 64px; width: auto; display: block; transition: height 0.4s; }
.brand .logo-light,
.on-photo .brand .logo:not(.logo-light),
body.photo-top:not(.menu-open) .site-header:not(.scrolled) .brand .logo:not(.logo-light) { display: none; }
.on-photo .brand .logo-light,
body.photo-top:not(.menu-open) .site-header:not(.scrolled) .brand .logo-light { display: block; }
.site-header.scrolled .brand .logo { height: 50px; }
.site-footer .brand .logo { height: 84px; }
@media (max-width: 760px) {
  .brand .logo, .site-header.scrolled .brand .logo { height: 40px; }
}
.nav { display: flex; gap: 38px; align-items: center; }
.nav a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  color: var(--mute); position: relative; padding-block: 6px; transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(251, 248, 242, 0.98); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
  }
  .nav a { font-size: 15px; }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 26px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: translateY(101%); transition: transform 0.55s var(--ease); border-radius: inherit;
}
.btn:hover { color: var(--on-gold); border-color: var(--gold); }
.btn:hover::before { transform: translateY(0); }
.btn.solid { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: 0 12px 30px -14px rgba(169, 128, 63, 0.7); }
.btn.solid::before { background: var(--deep); }
.on-photo .btn.solid::before { background: #fbf6ec; }
.on-photo .btn.solid:hover { color: var(--deep); }
.btn .arr { transition: transform 0.5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- reveal helpers (JS adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.split.in .w > span { transform: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(56px, 8vw, 120px); padding-top: 140px; overflow: hidden;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 18s var(--ease) forwards; }
.page-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,9,12,0.55) 0%, rgba(7,9,12,0.25) 35%, rgba(7,9,12,0.92) 88%, var(--ink) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.scroll-cue {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 8vw, 120px);
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 16px;
}
.scroll-cue::after { content: ""; width: 1px; height: 70px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 80px 40px; background: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-grid h4 { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid li a { color: var(--mute); transition: color 0.3s; }
.footer-grid li a:hover { color: var(--ivory); }
.footer-grid p { color: var(--mute); max-width: 38ch; font-weight: 300; }
.footer-base { margin-top: 64px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--faint); letter-spacing: 0.06em; }
.footer-huge {
  font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 17vw, 300px); line-height: 0.8;
  letter-spacing: 0.04em; margin: 72px 0 0; white-space: nowrap; text-align: center;
  background: linear-gradient(180deg, rgba(169,128,63,0.28), rgba(169,128,63,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(4, 5, 7, 0.96);
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; transform: scale(0.94); transition: transform 0.6s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; width: 56px; height: 56px; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; transition: background 0.3s, color 0.3s;
}
.lightbox button:hover { background: var(--gold); color: var(--deep); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mute); }

/* ---------- people avatars (monograms until photos arrive) ---------- */
.avatar {
  --hue: 38;
  position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, hsla(var(--hue), 45%, 70%, 0.35), transparent 60%),
    radial-gradient(circle at 70% 80%, hsla(calc(var(--hue) + 160), 30%, 40%, 0.4), transparent 55%),
    var(--ink-3);
  font-family: var(--serif); font-weight: 400; color: var(--ivory); letter-spacing: 0.04em;
  overflow: hidden;
}
.avatar::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), var(--gold), transparent 30%, var(--gold-2) 50%, transparent 75%, var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

@media (max-width: 760px) { body::after { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
}

.avatar.has-photo { background: var(--ink-3); }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 50%; }
.avatar::before { z-index: 1; }
