:root {
  --ink: #111315;
  --muted: #5d646b;
  --line: #d9d3c7;
  --paper: #f7f3eb;
  --panel: #fffdfa;
  --gold: #9b6f24;
  --dark: #070a0e;
  --cta-navy: #18324a;
  --cta-navy-hover: #22425f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 10, 14, 0.96);
  color: #fff;
  padding: 18px clamp(24px, 5vw, 88px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1610px;
  margin: 0 auto;
}

.brand {
  display: grid;
  min-width: 230px;
  gap: 0.18rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #fff;
}

.brand strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  letter-spacing: 0.12em;
}

.brand small,
.brand em {
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.1rem);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.nav-menu a,
.mega-trigger {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover,
.mega-trigger:hover,
.nav-item.is-open > .mega-trigger {
  color: #d8b96d;
}

.nav-cta {
  border-radius: 4px;
  background: var(--cta-navy);
  color: #fff !important;
  padding: 1rem 1.3rem;
}

.nav-cta:hover {
  background: var(--cta-navy-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.nav-item {
  position: static;
}

.mega-menu {
  position: fixed;
  top: calc(var(--header-height, 86px) - 1px);
  right: 0;
  left: 0;
  z-index: 45;
  visibility: hidden;
  overflow: hidden;
  background: rgba(6, 10, 12, 0.985);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8f5ed;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.mega-inner {
  display: grid;
  min-height: 370px;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  width: min(1610px, 100%);
  margin: 0 auto;
}

.mega-overview,
.mega-links,
.mega-feature {
  padding: clamp(3rem, 5vw, 5rem) clamp(1.6rem, 4vw, 4rem);
}

.mega-links,
.mega-feature {
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.mega-kicker {
  display: block;
  margin: 0 0 1.4rem;
  color: #d8b96d;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.mega-overview h2,
.mega-links a,
.mega-feature strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.mega-overview h2 {
  max-width: 300px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
}

.mega-links {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.mega-links a {
  width: fit-content;
  color: #fff;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.1;
}

.mega-links a:hover,
.mega-feature-title:hover,
.mega-feature-title:focus-visible {
  color: #d8b96d;
}

.mega-feature-panel {
  background: transparent;
  padding-top: clamp(3.55rem, 5vw, 5.35rem);
}

.mega-feature strong {
  display: block;
  margin-bottom: 1.35rem;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.mega-feature p {
  margin: 0 0 2.2rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.65;
  text-transform: none;
}

.mega-view {
  display: inline-flex;
  width: fit-content;
  color: #d8b96d;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
}

.mega-simple {
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.2fr) minmax(260px, 0.8fr);
}

.mega-simple .mega-overview {
  align-self: start;
  padding-top: clamp(3rem, 5vw, 5rem);
}

@media (min-width: 851px) {
  .brand {
    transform: translateY(-4px);
  }

  .has-mega:hover .mega-menu,
  .has-mega:focus-within .mega-menu,
  .has-mega.is-open .mega-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.page-hero,
.content-section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
}

.page-hero.dark {
  position: relative;
  display: grid;
  min-height: calc(100vh - 85px);
  align-content: end;
  width: 100%;
  margin: 0;
  overflow: hidden;
  padding: 0;
  color: #fff;
  background: #070a0e;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-aftermath {
  background-image: url("assets/venezuela-aftermath.jpg");
  background-position: center 52%;
}

.hero-slide-aid {
  background-image: url("assets/venezuela-humanitarian-aid.jpg");
  background-position: center 50%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 10, 14, 0.92), rgba(7, 10, 14, 0.42) 70%),
    linear-gradient(180deg, rgba(7, 10, 14, 0.1), rgba(7, 10, 14, 0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 980px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 7vw, 6.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.25rem);
}

h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lede {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.dark .lede {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.nav-card p {
  color: var(--muted);
}

.read-link {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.content-section {
  padding: 0 0 clamp(4rem, 7vw, 6rem);
}

.content-section article {
  max-width: 890px;
}

.content-section p,
.content-section li {
  color: #252a2f;
  font-size: 1rem;
}

.content-section .eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
}

.content-section h2 {
  margin-top: 3rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.content-section h3 {
  margin-top: 2rem;
}

.content-section ul {
  padding-left: 1.2rem;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 2.4rem 0 3rem;
}

.brief-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.brief-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.brief-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.brief-card .read-link {
  margin-top: auto;
  padding-top: 1.6rem;
}

.section-accent {
  width: 100%;
  height: 3px;
  margin: 0 0 2.4rem;
  border-radius: 999px;
  background: var(--gold);
}

.firm-page .content-section,
.firm-about-page .content-section {
  padding-top: 0;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.faq-item h3::before {
  content: "+";
  margin-right: 0.6rem;
  color: var(--gold);
  font-family: Inter, sans-serif;
}

.cta-band {
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) max(1rem, calc((100vw - 1180px) / 2));
  background: #111315;
  color: #fff;
}

.firm-page .page-hero,
.founder-page .page-hero,
.credentials-page .page-hero,
.legacy-detail-page .page-hero,
.team-page .page-hero,
.reviews-page .page-hero,
.archive-page .page-hero,
.service-detail-page .page-hero {
  padding: clamp(2.6rem, 5vw, 4.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
}

.firm-page .page-hero h1,
.founder-page .page-hero h1,
.credentials-page .page-hero h1,
.legacy-detail-page .page-hero h1,
.team-page .page-hero h1,
.reviews-page .page-hero h1,
.archive-page .page-hero h1,
.service-detail-page .page-hero h1 {
  max-width: 850px;
  margin-bottom: 1.05rem;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

.firm-page .lede,
.founder-page .lede,
.credentials-page .lede,
.legacy-detail-page .lede,
.team-page .lede,
.reviews-page .lede,
.archive-page .lede,
.service-detail-page .lede {
  max-width: 850px;
}

.firm-page .content-section,
.founder-page .content-section,
.credentials-page .content-section,
.legacy-detail-page .content-section,
.team-page .content-section,
.reviews-page .content-section,
.archive-page .content-section,
.service-detail-page .content-section {
  padding-top: 0;
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.founder-page .content-section h2,
.credentials-page .content-section h2,
.legacy-detail-page .content-section h2 {
  margin-top: 2rem;
}

.founder-page .faq-grid,
.credentials-page .faq-grid,
.legacy-detail-page .faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
}

.team-grid,
.review-grid,
.archive-grid,
.photo-gallery {
  display: grid;
  gap: 1.35rem;
}

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card,
.review-card,
.archive-grid article {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.team-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.team-photo {
  overflow: hidden;
  border-radius: 4px;
  background: #111315;
  aspect-ratio: 1 / 1;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h2,
.team-card h3,
.review-card h3 {
  margin-bottom: 0.8rem;
}

.team-card p,
.review-card p,
.archive-grid p,
.photo-gallery figcaption {
  color: var(--muted);
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-grid-long {
  align-items: start;
}

.review-card {
  display: grid;
  align-content: space-between;
  min-height: 260px;
}

.review-card-long {
  min-height: 0;
}

.review-card p {
  margin-top: 0;
  color: #252a2f;
  font-size: 1.05rem;
}

.review-card-long p {
  font-size: 1rem;
  line-height: 1.75;
}

.review-card span,
.archive-grid span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-grid article {
  min-height: 220px;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.archive-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.archive-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #111315;
}

.archive-card figcaption {
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.archive-card span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.timeline-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2.4rem;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.timeline-list p {
  margin: 0;
}

.timeline-list-dense {
  gap: 0.65rem;
}

.record-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.35rem;
  margin: 1.5rem 0 2.4rem;
}

.record-columns p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.founder-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.founder-portrait {
  margin: 0 0 0.7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111315;
}

.founder-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.founder-record article {
  max-width: 980px;
}

.founder-record h2 {
  padding-top: 0.45rem;
}

.photo-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.photo-gallery figure {
  margin: 0;
}

.photo-gallery img,
.gallery-caption-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 1 / 1;
}

.photo-gallery img {
  display: block;
  object-fit: cover;
}

.gallery-caption-card {
  display: grid;
  place-items: end start;
  background: #111315;
  color: #fff;
  padding: 1.2rem;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
}

.photo-gallery figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.founder-photo-gallery img {
  object-position: center top;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #c8a85b;
  color: #17120a;
  padding: 0.9rem 1.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

@media (max-width: 850px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    padding-inline: 18px;
  }

  .nav-shell {
    align-items: center;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.35rem;
  }

  .brand small,
  .brand em {
    font-size: 0.58rem;
  }

  .nav-toggle {
    position: relative;
    z-index: 60;
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    z-index: 55;
    display: grid;
    width: min(88vw, 390px);
    height: var(--mobile-viewport-height, 100vh);
    align-content: start;
    justify-content: stretch;
    gap: 1.15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(6, 10, 12, 0.98);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    padding: calc(6rem + env(safe-area-inset-top, 0px)) 1.4rem 2.5rem;
    transform: translateX(100%);
    transition: transform 220ms ease;
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-menu > a,
  .mega-trigger {
    width: 100%;
  }

  .nav-cta {
    display: inline-flex;
    width: fit-content;
    padding: 0.95rem 1.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
  }

  .mega-menu {
    position: static;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: max-height 220ms ease, opacity 180ms ease, visibility 180ms ease;
  }

  .has-mega.is-open .mega-menu {
    visibility: visible;
    max-height: 850px;
    opacity: 1;
    pointer-events: auto;
  }

  .mega-inner {
    display: block;
    min-height: 0;
    width: 100%;
    padding: 0.6rem 0 0.2rem;
  }

  .mega-overview,
  .mega-links,
  .mega-feature {
    display: block;
    padding: 0;
    border-left: 0;
  }

  .mega-overview {
    display: none;
  }

  .mega-links {
    margin-top: 0.65rem;
  }

  .mega-links a {
    display: block;
    margin: 0.55rem 0;
    color: rgba(255, 255, 255, 0.76);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .mega-feature {
    margin-top: 1rem;
    padding-inline: 1rem;
  }

  .mega-feature .mega-kicker,
  .mega-feature strong,
  .mega-feature p {
    display: none;
  }

  .mega-view {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
  }

  .firm-page .page-hero h1,
  .founder-page .page-hero h1,
  .credentials-page .page-hero h1,
  .legacy-detail-page .page-hero h1,
  .team-page .page-hero h1,
  .reviews-page .page-hero h1,
  .archive-page .page-hero h1,
  .service-detail-page .page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    overflow-wrap: anywhere;
  }

  .founder-portrait {
    margin-bottom: 0;
  }

  .founder-page .page-hero h1 {
    font-size: clamp(2.7rem, 11vw, 3.4rem);
    word-break: normal;
    overflow-wrap: break-word;
  }

  .founder-page .lede {
    font-size: 1rem;
    line-height: 1.65;
  }

  .card-grid,
  .brief-grid,
  .team-grid,
  .team-card-featured,
  .review-grid,
  .archive-grid,
  .archive-gallery,
  .photo-gallery,
  .record-columns,
  .founder-hero-split,
  .founder-page .faq-grid,
  .credentials-page .faq-grid,
  .legacy-detail-page .faq-grid,
  .card-grid.two,
  .site-footer {
    grid-template-columns: 1fr;
  }
}
