:root {
  /* OPILLC corporate brand system: restrained, investigative, professional. */
  color-scheme: light;
  --ink: #101828;
  --muted: #5f6b7a;
  --paper: #f3f5f8;
  --white: #ffffff;
  --navy: #0b1f35;
  --navy-2: #132d49;
  --steel: #40566f;
  --blue: #1f4e79;
  --gold: #b99045;
  --line: rgba(16, 24, 40, 0.13);
  --shadow: 0 14px 34px rgba(16, 24, 40, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(330px, 62vw);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.site-nav a {
  padding: 9px 10px;
  color: #2f3f52;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.92rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue);
  background: rgba(31, 78, 121, 0.08);
  outline: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 74px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.72) contrast(1.05);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 31, 53, 0.98), rgba(11, 31, 53, 0.76) 56%, rgba(11, 31, 53, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(185, 144, 69, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0 46px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d4b26a;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.7vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 9px;
  font-size: 1.04rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--navy-2);
  border-color: var(--navy-2);
  outline: 0;
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.license-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin: 44px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.license-strip div {
  padding: 18px;
  background: rgba(7, 17, 31, 0.5);
}

.license-strip dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.license-strip dd {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
}

.section,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-band {
  padding: clamp(58px, 7vw, 92px) 0;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.intro-grid,
.split,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro p,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.intro-copy {
  display: grid;
  gap: 16px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.feature-card,
.service-grid article,
.people-list article,
.process-grid article,
.audience-grid article,
.proof-list article,
.faq-grid article,
.credential-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.large-card {
  overflow: hidden;
}

.large-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.02);
}

.large-card div {
  padding: 22px;
}

.large-card p,
.service-grid p,
.people-list p,
.credential-card p,
.form-note {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  min-height: 210px;
  border-top: 3px solid var(--gold);
  overflow: hidden;
}

.service-grid article:nth-child(3n + 2) {
  border-top-color: var(--steel);
}

.service-grid article:nth-child(3n) {
  border-top-color: var(--blue);
}

.process-grid,
.audience-grid,
.proof-list,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

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

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

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

.process-grid article,
.audience-grid article,
.proof-list article,
.faq-grid article {
  min-height: 100%;
  overflow: hidden;
}

.process-grid article {
  background: var(--white);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #dce4ee;
  filter: saturate(0.72) contrast(1.04);
}

.card-body {
  padding: 22px;
}

.feature-card,
.service-grid article,
.people-list article,
.process-grid article,
.audience-grid article,
.faq-grid article {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feature-card:hover,
.service-grid article:hover,
.process-grid article:hover,
.audience-grid article:hover,
.faq-grid article:hover {
  border-color: rgba(31, 78, 121, 0.32);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.12);
  transform: translateY(-2px);
}

.process-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--gold);
  font-weight: 800;
}

.process-grid p,
.audience-grid p,
.proof-list p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
}

.proof-section {
  background:
    linear-gradient(135deg, rgba(11, 31, 53, 0.98), rgba(19, 45, 73, 0.95)),
    var(--navy);
  color: var(--white);
  border: 0;
}

.proof-section .eyebrow {
  color: #d4b26a;
}

.proof-section h2,
.proof-section h3 {
  color: var(--white);
}

.proof-list article {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.proof-list .card-image {
  opacity: 0.82;
}

.proof-list p {
  color: rgba(255, 255, 255, 0.78);
}

.faq-section {
  padding-top: 40px;
}

.leadership-layout {
  display: grid;
  gap: 30px;
}

.leadership-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
}

.leadership-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.people-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.people-list article {
  display: grid;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.people-list .card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100%;
  padding: 24px;
}

.role {
  margin: -4px 0 10px;
  color: var(--blue);
  font-weight: 800;
}

.profile-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.profile-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.profile-highlights li {
  padding: 6px 8px;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 4px;
  color: var(--steel);
  background: rgba(31, 78, 121, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

.profile-focus {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-focus strong {
  color: var(--gold);
}

.credentials {
  padding-top: 72px;
}

.credential-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(135deg, rgba(31, 78, 121, 0.08), rgba(185, 144, 69, 0.1)),
    var(--white);
}

.credential-card img {
  width: min(220px, 100%);
  justify-self: end;
  border-radius: 4px;
}

.contact-section {
  padding-top: 40px;
}

address {
  margin-top: 22px;
  font-style: normal;
}

address a,
.social-links a {
  color: var(--blue);
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 20px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #2d3850;
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 61, 0.22);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(31, 78, 121, 0.14);
}

.form-note {
  grid-column: 1 / -1;
  font-size: 0.92rem;
}

.form-note.is-success {
  color: #116b45;
  font-weight: 800;
}

.form-note.is-error {
  color: #b42318;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.8);
  background: var(--navy);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #d4b26a;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .intro-grid,
  .split,
  .leadership-heading,
  .contact-layout,
  .feature-grid,
  .credential-card,
  .proof-grid,
  .people-list {
    grid-template-columns: 1fr;
  }

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

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

  .credential-card img {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero-content,
  .section,
  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .license-strip,
  .service-grid,
  .contact-form,
  .process-grid,
  .audience-grid,
  .proof-list,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .full {
    grid-column: auto;
  }

  .license-strip div {
    padding: 15px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .feature-card,
  .service-grid article,
  .people-list article,
  .process-grid article,
  .audience-grid article,
  .faq-grid article {
    transition: none;
  }

  .feature-card:hover,
  .service-grid article:hover,
  .process-grid article:hover,
  .audience-grid article:hover,
  .faq-grid article:hover {
    transform: none;
  }
}
