:root {
  --ink: #24424c;
  --muted: #60777e;
  --paper: #ffffff;
  --surface: #ffffff;
  --line: #d9e1e3;
  --accent: #24424c;
  --accent-dark: #182e35;
  --deep-blue: #24424c;
  --ocean-blue: #24424c;
  --gold: #ffffff;
  --shadow: 0 24px 70px rgba(36, 66, 76, 0.14);
  --nav-font: "Harvey Sans", "ABC Diatype", "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

p {
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px clamp(20px, 4vw, 64px);
  color: var(--surface);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active,
.inner-page .site-header {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: auto;
  height: 46px;
  object-fit: contain;
}

.brand-logo-scrolled {
  display: none;
}

.site-header.is-scrolled .brand-logo-default {
  display: none;
}

.site-header.is-scrolled .brand-logo-scrolled,
.site-header.nav-active .brand-logo-scrolled {
  display: block;
}

.site-header.nav-active .brand-logo-default {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  font-family: var(--nav-font);
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.site-nav a {
  position: relative;
  padding-block: 10px;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 128px clamp(20px, 6vw, 88px) 56px;
  overflow: hidden;
  color: var(--surface);
  background: var(--deep-blue);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(36, 66, 76, 0.92), rgba(36, 66, 76, 0.68) 48%, rgba(36, 66, 76, 0.28)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=80") center/cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 900px;
}

.eyebrow,
.section-kicker,
.section-number,
.insight-card span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  line-height: 0.95;
}

h2 {
  max-width: 850px;
  font-size: clamp(2.3rem, 4.8vw, 5.8rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  color: var(--surface);
  background: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
}

.text-link {
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.hero-panel {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  margin-left: auto;
  border: 1px solid rgba(255, 253, 248, 0.35);
  background: rgba(36, 66, 76, 0.58);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid rgba(255, 253, 248, 0.25);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 253, 248, 0.72);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}

.page-hero {
  padding: 150px clamp(20px, 6vw, 88px) clamp(54px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero .eyebrow {
  color: var(--accent);
}

.page-hero h1 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 6.8rem);
}

.page-hero p {
  max-width: 720px;
  margin-top: 28px;
}

.sectors-page .page-hero,
.team-page .page-hero {
  box-sizing: border-box;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(76px + clamp(28px, 5vw, 72px));
  padding-bottom: clamp(40px, 6vw, 72px);
}

.section {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 92px);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 88px);
}

.intro {
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.about-intro {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: clamp(84px, 10vw, 150px);
  padding-bottom: clamp(84px, 10vw, 150px);
  background: var(--surface);
}

.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(48px, 10vw, 170px);
  align-items: start;
}

.about-intro-title h2 {
  max-width: 430px;
  font-family: var(--nav-font);
  font-size: clamp(3.2rem, 5vw, 6rem);
  font-weight: 400;
  line-height: 1.06;
}

.about-intro-title::after {
  display: block;
  width: 104px;
  height: 5px;
  margin-top: 38px;
  content: "";
  background: var(--accent);
}

.about-intro-copy {
  max-width: 940px;
}

.about-intro-copy p {
  margin: 0 0 28px;
  color: #000000;
  font-family: var(--nav-font);
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  line-height: 1.65;
}

.about-intro-copy p:last-child {
  margin-bottom: 0;
}

.about-intro-copy strong {
  font-weight: 700;
}

.section-number {
  color: var(--accent);
}

.lead {
  max-width: 1050px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 1.05;
}

.section-kicker {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

.section-body > p {
  max-width: 720px;
  margin: 28px 0 0;
}

.section-body,
.contact-section > *,
.admin-static > *,
.site-footer > * {
  min-width: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.service-card,
.insight-card {
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding-inline: 22px;
}

.service-card h3 {
  margin-top: 22px;
}

.service-card p {
  margin: 12px 0 24px;
}

.industries {
  background: var(--surface);
}

.industry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.industry-list a {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 2rem);
  transition: color 180ms ease, padding-left 180ms ease;
}

.industry-list a:hover {
  color: var(--accent);
  padding-left: 10px;
}

.team-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  min-height: 680px;
  background: var(--deep-blue);
  color: var(--surface);
}

.team-image {
  min-height: 420px;
  background:
    linear-gradient(0deg, rgba(36, 66, 76, 0.34), rgba(36, 66, 76, 0.22)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.team-copy {
  align-self: center;
  padding: clamp(48px, 8vw, 110px);
}

.team-copy p {
  max-width: 680px;
  margin: 28px 0 34px;
  color: rgba(255, 253, 248, 0.76);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.insight-card {
  min-height: 250px;
  padding: 26px;
}

.insight-card span {
  color: var(--accent);
}

.insight-card h3 {
  margin-top: 38px;
}

.insight-card p {
  margin: 28px 0 0;
}

.publication-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 280px);
  gap: 18px;
  margin-top: 42px;
}

.publication-card {
  display: flex;
  flex-direction: column;
}

.publication-card h3 {
  margin-top: 30px;
}

.publication-card .publication-summary {
  margin-top: 20px;
}

.publication-card .publication-meta {
  margin-top: auto;
  padding-top: 24px;
  font-weight: 700;
}

.publication-empty,
.publication-error {
  margin-top: 32px;
}

.admin-static {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 88px);
  background: #f3f6f7;
}

.admin-static h2 {
  font-family: var(--nav-font);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.admin-static-panel {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.admin-static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.json-output {
  min-height: 420px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(36px, 7vw, 100px);
  padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 88px);
  background: #f3f6f7;
}

.contact-section h2 {
  margin-top: 22px;
}

.contact-section p {
  max-width: 620px;
}

.contact-map {
  width: 100%;
  max-width: 620px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  font: 1rem Arial, Helvetica, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(36, 66, 76, 0.24);
  outline-offset: 4px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px clamp(20px, 6vw, 88px);
  color: var(--surface);
  background: var(--ink);
}

.site-footer p,
.site-footer address {
  color: rgba(255, 253, 248, 0.7);
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .service-grid,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    z-index: 50;
    min-height: 68px;
    padding: 12px 18px;
  }

  .site-header.nav-active {
    align-items: flex-start;
    height: 100dvh;
    color: var(--ink);
    background: var(--paper);
    box-shadow: none;
    backdrop-filter: none;
  }

  .brand-logo {
    height: 40px;
    max-width: min(58vw, 220px);
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    color: inherit;
    background: transparent;
    transition: background 180ms ease, color 180ms ease;
  }

  .site-header.nav-active .nav-toggle {
    color: var(--surface);
    background: var(--ink);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 21;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    padding: 28px 18px 40px;
    color: var(--ink);
    background: var(--paper);
    font-size: clamp(1.55rem, 7vw, 2.25rem);
    font-weight: 450;
    line-height: 1.05;
  }

  .site-nav a {
    width: 100%;
    padding: 20px 2px;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
  }

  .site-nav a:first-child {
    border-top: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

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

  .hero {
    min-height: 86vh;
    padding: 112px 20px 38px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(36, 66, 76, 0.94), rgba(36, 66, 76, 0.74) 58%, rgba(36, 66, 76, 0.5)),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1400&q=80") center/cover;
  }

  .page-hero {
    padding: 112px 20px 52px;
  }

  .sectors-page .page-hero,
  .team-page .page-hero {
    padding-top: calc(68px + 36px);
    padding-bottom: 44px;
  }

  .hero-panel,
  .ma-hero,
  .section,
  .contact-section,
  .team-band,
  .number-band,
  .admin-static {
    grid-template-columns: 1fr;
  }

  .section,
  .contact-section,
  .admin-static {
    padding: 64px 20px;
  }

  .about-intro {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .about-intro-title h2 {
    max-width: 720px;
  }

  .hero-panel {
    width: 100%;
    margin-top: 44px;
    margin-left: 0;
  }

  .hero-actions {
    gap: 14px;
  }

  .section-kicker {
    align-items: center;
  }

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

  .team-copy {
    padding: 56px 24px;
  }

  .contact-form,
  .admin-static-panel {
    padding: 24px;
  }

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

@media (max-width: 560px) {
  h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.06;
  }

  h3 {
    font-size: 1.3rem;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .about-intro-title h2 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .lead {
    font-size: clamp(1.85rem, 9vw, 2.5rem);
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding-inline: 18px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel,
  .service-grid,
  .insight-grid,
  .industry-list,
  .number-grid,
  .publication-tools {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 248, 0.25);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .service-grid,
  .insight-grid {
    gap: 14px;
    margin-top: 34px;
  }

  .service-card h3,
  .service-card p {
    padding-inline: 18px;
  }

  .industry-list {
    margin-top: 34px;
  }

  .industry-list a {
    padding: 18px 0;
  }

  .team-band {
    min-height: 0;
  }

  .team-image {
    min-height: 300px;
  }

  .team-copy {
    padding: 44px 20px;
  }

  .contact-map iframe {
    height: 300px;
  }

  .json-output {
    min-height: 300px;
  }

  .site-footer {
    padding-block: 30px;
  }
}

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

  .brand-logo {
    height: 36px;
    max-width: 62vw;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .page-hero,
  .section,
  .contact-section,
  .admin-static {
    padding-inline: 16px;
  }

  .hero {
    padding-inline: 16px;
  }

  .contact-form,
  .admin-static-panel,
  .insight-card {
    padding: 20px;
  }
}
