:root {
  --ink: #111018;
  --text: #17151d;
  --muted: #5f5a63;
  --bronze: #7c4a18;
  --amber: #c9822b;
  --hero-amber: #c49a5a;
  --night: #0f1b2d;
  --paper: #f7f6f2;
  --footer-paper: #f6f0e7;
  --line: rgba(17, 16, 24, .16);
  --line-soft: rgba(17, 16, 24, .12);
  --line-dark: rgba(247, 246, 242, .14);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

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

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

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 240, 231, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #312b3b;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-links a {
  opacity: .74;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--text);
  transition: all .2s ease;
}

/* Typography */
h1,
.statement {
  max-width: 980px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
}

h2 {
  max-width: 880px;
  margin-bottom: 30px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  letter-spacing: -.032em;
  line-height: 1.14;
}

h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -.026em;
  line-height: 1.2;
}

p,
li,
.prose p,
.card p,
.rule-item p,
.case-row p,
.outcome {
  font-size: 17px;
  line-height: 1.7;
}

.prose {
  max-width: 790px;
}

.prose p {
  margin-bottom: 22px;
  color: #3e3843;
}

.lead {
  max-width: 790px;
  color: #38323d;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -.012em;
  line-height: 1.45;
}

.kicker,
.section-label,
.case-row small,
.outcome strong,
.num {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .26em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 34px;
  color: var(--amber);
}

.section-label {
  margin-bottom: 28px;
  color: var(--bronze);
}

.num {
  color: var(--bronze);
}

.hero-emphasis {
  color: var(--hero-amber);
  font-style: italic;
  font-weight: inherit;
}

/* Hero sections */
.page-hero,
.home-hero {
  background: var(--night);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}

.page-hero h1,
.home-hero h1 {
  color: var(--paper);
}

.hero-copy {
  max-width: 780px;
  margin-top: 42px;
  color: rgba(247, 246, 242, .82);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -.01em;
  line-height: 1.45;
}

@media (min-width: 901px) {
  .page-hero,
  .home-hero {
    min-height: 560px;
    display: flex;
    overflow: visible;
  }

  /* Keep internal page labels at a consistent vertical position. */
  .page-hero {
    align-items: flex-start;
    padding: 108px 0 80px;
  }

  .home-hero {
    align-items: center;
    padding: 0;
  }
}


/* Material hero image system
   Page content, dimensions, spacing and typography are unchanged. */
.home-main .home-hero,
.about-main .page-hero,
.services-main .page-hero,
.sectors-main .page-hero,
.insights-main .page-hero,
.contact-main .page-hero {
  position: relative;
  isolation: isolate;
  background-color: var(--night);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--amber);
}

.home-main .home-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .91) 0%, rgba(7, 13, 18, .76) 58%, rgba(7, 13, 18, .62) 100%),
    linear-gradient(180deg, rgba(7, 13, 18, .18), rgba(7, 13, 18, .42)),
    url("hero-assets/hero-home.jpg");
}

.about-main .page-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .91) 0%, rgba(7, 13, 18, .74) 60%, rgba(7, 13, 18, .60) 100%),
    url("hero-assets/hero-about.jpg");
}

.services-main .page-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .91) 0%, rgba(7, 13, 18, .74) 60%, rgba(7, 13, 18, .61) 100%),
    url("hero-assets/hero-capabilities.jpg");
}

.sectors-main .page-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .92) 0%, rgba(7, 13, 18, .76) 62%, rgba(7, 13, 18, .63) 100%),
    url("hero-assets/hero-sectors.jpg");
}

.insights-main .page-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .91) 0%, rgba(7, 13, 18, .73) 60%, rgba(7, 13, 18, .59) 100%),
    url("hero-assets/hero-insights.jpg");
}

.contact-main .page-hero {
  background-image:
    linear-gradient(90deg, rgba(7, 13, 18, .90) 0%, rgba(7, 13, 18, .73) 60%, rgba(7, 13, 18, .61) 100%),
    url("hero-assets/hero-contact.jpg");
}

.home-main .home-hero > .container,
.about-main .page-hero > .container,
.services-main .page-hero > .container,
.sectors-main .page-hero > .container,
.insights-main .page-hero > .container,
.contact-main .page-hero > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .home-main .home-hero,
  .about-main .page-hero,
  .services-main .page-hero,
  .sectors-main .page-hero,
  .insights-main .page-hero,
  .contact-main .page-hero {
    background-position: 46% center;
  }
}

/* Sections */
.section {
  padding: 104px 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.split {
  display: block;
  max-width: 880px;
}

.section h2,
.section .lead,
.section .prose,
.section .rule-list,
.section .statement {
  max-width: 820px;
}

.home-block .cards,
.cards,
.rule-list,
.case-list {
  margin-left: 0;
}

/* Cards */
.cards {
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
  border: 1px solid var(--line);
}

.card {
  min-height: 230px;
  padding: 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.card:nth-child(3n) {
  border-right: 0;
}

.card p {
  color: #4a4350;
  font-size: 16px;
}

/* Numbered rule lists */
.rule-list {
  max-width: 820px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.rule-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.rule-item p {
  max-width: 780px;
  color: #4a4350;
}

.rule-item p + p {
  margin-top: 18px;
}

/* Closing statement sections */
.home-closing,
.capabilities-closing {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

/* Insights case studies */
.insights-cases-section {
  padding-top: 0;
}

.insights-cases-section .case-list {
  margin-top: 0;
  border-top: 0;
}

.matter-group {
  padding-top: 72px;
}

.matter-group:first-child,
.insights-cases-section .matter-group:first-child {
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.matter-group + .matter-group {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.matter-group h2 {
  max-width: 860px;
  margin-bottom: 34px;
}

.case-list {
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.case-row {
  display: grid;
  grid-template-columns: 140px 1.6fr 1fr;
  gap: 36px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.case-row small {
  color: var(--muted);
  letter-spacing: .12em;
}

.case-row h3 {
  max-width: 720px;
  margin-bottom: 12px;
}

.case-row p {
  max-width: 720px;
  color: #4f4955;
}

.case-row p + p {
  margin-top: 18px;
}

.outcome {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: #4f4955;
  font-size: 14px;
}

.outcome strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: .12em;
}

/* Policy pages */
.policy-content {
  max-width: 860px;
}

.policy-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -.025em;
  line-height: 1.18;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-top: 0;
  margin-bottom: 18px;
}


/* Footer */
.site-footer {
  padding: 14px 0 12px;
  background: var(--footer-paper);
  border-top: 1px solid var(--line-soft);
}

.site-footer-inner {
  max-width: var(--max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer-meta {
  max-width: 980px;
}

.site-footer-meta span,
.site-footer a {
  color: #66606a;
  font-size: 11px;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  opacity: .82;
}

.site-footer a:hover {
  color: var(--text);
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px) {
  .case-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .outcome {
    padding-top: 8px;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .nav {
    min-height: 0;
    padding: 22px 0;
    align-items: flex-start;
  }

  .section {
    padding: 76px 0;
  }

  .page-hero,
  .home-hero {
    min-height: 0;
    padding: 96px 0;
  }

  .split {
    max-width: 100%;
  }

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

  .card,
  .card:nth-child(3n) {
    border-right: 0;
  }

  .rule-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .matter-group,
  .matter-group:first-child,
  .insights-cases-section .matter-group:first-child {
    padding-top: 54px;
  }

  .matter-group + .matter-group {
    margin-top: 54px;
  }

  .matter-group h2 {
    margin-bottom: 24px;
  }

  .section-label {
    margin-bottom: 18px;
  }

  h1,
  .statement {
    font-size: clamp(38px, 9vw, 58px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(25px, 6vw, 34px);
    line-height: 1.18;
  }

  h3 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .hero-copy,
  .lead {
    font-size: 18px;
    line-height: 1.48;
  }

  p,
  li,
  .prose p,
  .card p,
  .rule-item p,
  .case-row p,
  .outcome {
    font-size: 16px;
    line-height: 1.68;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 16px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 28px;
    background: var(--footer-paper);
    border: 1px solid rgba(17, 16, 24, .08);
  }

  .nav-links.mobile-nav-open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    line-height: 1.4;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 12px 0 10px;
  }

  .site-footer nav {
    gap: 10px;
  }
}

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

  .brand img {
    width: 104px;
  }

  .nav-links {
    font-size: 11px;
  }
}


/* Forms */
.form-block {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.ebis-form {
  max-width: 820px;
}

.form-row {
  margin-bottom: 22px;
}

.form-row label,
.form-consent label {
  display: block;
  margin-bottom: 8px;
  color: #312b3b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
  color: var(--text);
  font: inherit;
  padding: 13px 14px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(17, 16, 24, .42);
  outline: 2px solid rgba(201, 130, 43, .22);
  outline-offset: 2px;
}

.form-row textarea {
  resize: vertical;
}

.form-consent {
  margin: 28px 0;
}

.form-consent label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.form-consent input {
  margin-top: 5px;
}

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 14px 22px;
  text-transform: uppercase;
}

.form-button:hover {
  opacity: .86;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  max-width: 780px;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.35);
}

.form-privacy-note {
  margin: 0.75rem 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-privacy-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}



/* Static form submission states */
.form-status { margin-top: 22px; }
.form-status[hidden] { display: none; }
.form-error { border-color: #8d2f2f; }
.form-button:disabled { cursor: wait; opacity: .65; }
