:root {
  --ink: #14202a;
  --navy: #06131e;
  --paper: #f5f3ee;
  --white: #fcfbf8;
  --muted: #66727a;
  --line: #d9d9d2;
  --gold: #b28d64;
  --gold-light: #d7bd99;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -50px;
  left: 20px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--navy);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: absolute;
  z-index: 5;
  width: 100%;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  font: 500 10px/1 'DM Mono', monospace;
  letter-spacing: -0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
}

.desktop-nav a:not(.nav-contact),
.mobile-menu a:not(.nav-contact) {
  opacity: 0.72;
  transition: opacity 0.2s;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  opacity: 1;
}

.nav-contact {
  padding: 10px 15px;
  border: 1px solid rgba(215, 189, 153, 0.75);
  color: #f5e8d6;
}

.nav-contact span,
.button span,
.text-link span,
.contact-email span,
.service-card a span {
  margin-left: 8px;
}

.mobile-menu {
  display: none;
}

.section {
  padding: 124px 0;
}

.section-dark {
  color: #f7f4ed;
  background: var(--navy);
}

.section-light {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-accent {
  background: #d8c9b5;
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 700px;
  padding: 170px 0 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 50px;
  align-items: center;
  min-height: 470px;
}

.eyebrow,
.section-index,
.section-note,
.detail-label,
.card-number,
.visual-caption,
.hero-meta,
.footer-bottom {
  font: 500 11px/1.2 'DM Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
}

.eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 {
  max-width: 630px;
  margin: 28px 0;
  font-size: clamp(3.6rem, 7vw, 6.7rem);
}

h2 {
  margin: 18px 0 34px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h1 em,
h2 em,
.hero h1 em,
.section-accent em {
  color: var(--gold-light);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
}

.section-light h2 em,
.section-paper h2 em {
  color: var(--gold);
}

.hero-lede {
  max-width: 490px;
  margin-bottom: 34px;
  color: #b4c0c3;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 14px 19px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold-light);
  color: var(--navy);
}

.text-link {
  font-size: 13px;
  font-weight: 600;
}

.light-link {
  color: #e9e4dc;
}

.light-link:hover {
  color: var(--gold-light);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 415px;
  border: 1px solid rgba(215, 189, 153, 0.35);
  background: linear-gradient(135deg, #0e2532, #02090f);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 88%;
  height: auto;
  mix-blend-mode: screen;
  opacity: 0.88;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.33;
  background-image: linear-gradient(rgba(215, 189, 153, 0.15) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 189, 153, 0.15) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent);
}

.visual-caption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--gold-light);
  font-size: 9px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  color: #809099;
}

.hero-rule {
  display: block;
  width: 100px;
  height: 1px;
  background: #2d424c;
}

.split-heading,
.industries-grid,
.engagements-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.section-index {
  margin: 4px 0;
  color: var(--gold);
}

.section-light .section-index,
.section-paper .section-index {
  color: #8f6c48;
}

.intro-copy {
  max-width: 600px;
  color: #4c5961;
  font-size: 20px;
  line-height: 1.5;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-label {
  color: var(--gold);
}

.about-details p {
  margin-top: 12px;
  color: #4c5961;
}

.section-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-note {
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 25px;
  border: 1px solid #dad9d1;
  background: rgba(255, 255, 255, 0.36);
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.card-number {
  color: var(--gold);
}

.service-card h3 {
  margin: 48px 0 18px;
  font-size: 25px;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.service-card p {
  color: #657078;
  font-size: 14px;
}

.service-card a {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
}

.muted-copy {
  max-width: 330px;
  color: #9aa8ad;
  font-size: 18px;
}

.expertise-list {
  border-top: 1px solid #29404a;
}

.expertise-row {
  display: grid;
  grid-template-columns: 34% 66%;
  padding: 23px 0;
  border-bottom: 1px solid #29404a;
}

.expertise-row span {
  color: #90a2a8;
  font: 500 11px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.expertise-row strong {
  color: #f1eee7;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.industry-tags span {
  padding: 11px 14px;
  border: 1px solid #d6d4ca;
  color: #536168;
  font-size: 13px;
}

.engagement-list {
  max-width: 570px;
  font-size: 18px;
}

.engagement-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(6, 19, 30, 0.25);
}

.engagement-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(6, 19, 30, 0.25);
  font-size: 14px;
}

.engagement-list li::before {
  content: '↗';
  display: inline-block;
  margin-right: 10px;
  color: #8f6c48;
}

.contact-section {
  padding: 130px 0 145px;
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section h2 {
  margin-bottom: 20px;
}

.contact-section p:not(.eyebrow) {
  color: #aebbc0;
}

.contact-email {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-light);
  color: var(--gold-light);
  font: 500 clamp(1.2rem, 2vw, 1.7rem) 'DM Mono', monospace;
}

.site-footer {
  padding: 60px 0 26px;
  color: #dce0dd;
  background: #020a11;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-wordmark {
  color: #f3f1eb;
}

.site-footer p {
  margin-top: 20px;
  color: #839199;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #aeb9bc;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid #1b2c34;
  color: #67767c;
  font-size: 9px;
}

@media (max-width: 850px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 0 10px 10px;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    width: 23px;
    height: 1px;
    background: #f5f2ec;
  }

  .mobile-menu nav {
    position: absolute;
    top: 53px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 220px;
    padding: 8px;
    background: var(--navy);
    border: 1px solid #29404a;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }

  .mobile-menu nav a {
    padding: 12px;
  }

  .mobile-menu .nav-contact {
    margin-top: 7px;
    text-align: center;
  }

  .hero-grid,
  .split-heading,
  .industries-grid,
  .engagements-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero {
    padding-top: 135px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 34px), var(--max));
  }

  .hero {
    min-height: auto;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 3.4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-lede,
  .intro-copy {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-meta {
    margin-top: 35px;
    font-size: 9px;
  }

  .hero-rule {
    width: 45px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 280px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .expertise-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .engagement-list ul {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.legal-content {
  min-height: calc(100vh - 210px);
  padding-top: 160px;
}

.legal-content h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  margin-bottom: 45px;
}

.legal-content h2 {
  margin-top: 46px;
  margin-bottom: 15px;
  font-size: 28px;
}

.legal-content p {
  max-width: 720px;
  color: #4c5961;
}

.legal-content a {
  color: #8f6c48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page .site-header {
  position: absolute;
  background: var(--navy);
}

.legal-page .site-footer {
  padding-top: 25px;
}
