:root {
  --petrol: #00403e;
  --petrol-deep: #002f2d;
  --mint: #e3ece9;
  --ink: #102a29;
  --muted: #58716f;
  --paper: #ffffff;
  --line: rgba(0, 64, 62, 0.16);
  --header-height: 84px;
  --max-width: 1840px;
  --content-max-width: 1680px;
  --content-gutter: clamp(176px, 24vw, 440px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: none;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 8px;
  color: white;
  background: var(--petrol);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(0, 64, 62, 0.1);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
}

.header-inner, .footer-inner {
  width: min(calc(100% - 48px), var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; width: 235px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
  position: relative;
  padding: 29px 0 26px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--petrol);
  transition: transform 180ms ease;
}

.site-nav a:hover, .site-nav a.active { color: var(--petrol); }
.site-nav a:hover::after, .site-nav a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--petrol);
  transition: transform 180ms ease, opacity 180ms ease;
}

.section {
  position: relative;
  height: auto;
  min-height: 100vh;
  padding: calc(var(--header-height) + clamp(34px, 5vh, 56px)) 0 clamp(34px, 5vh, 56px);
  scroll-margin-top: 0;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  overflow: visible;
}

.section-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - var(--content-gutter)), var(--content-max-width));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--petrol);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.035em; }

h1 {
  margin-bottom: 28px;
  color: var(--petrol);
  font-size: clamp(4rem, 7.7vw, 7.6rem);
  font-weight: 720;
  line-height: 1.02;
}

h1 span { color: #8aa9a3; font-weight: 430; }

h2 {
  margin-bottom: 0;
  color: var(--petrol);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 680;
  line-height: 0.98;
}

h3 { color: var(--petrol); font-size: 1.35rem; line-height: 1.22; }

.hero-section {
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  background: linear-gradient(90deg, transparent 0 66%, var(--mint) 66% 100%), var(--paper);
}

.hero-section .section-inner {
  width: min(calc(100% - clamp(208px, 28vw, 500px)), 1420px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: clamp(50px, 6vw, 96px);
  align-items: center;
}

.hero-copy { padding: 28px 0; }

.hero-lead {
  max-width: 680px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-weight: 750;
  font-size: 0.9rem;
}

.button.primary {
  padding: 0 25px;
  border: 1px solid var(--petrol);
  color: white;
  background: var(--petrol);
  transition: color 180ms ease, background 180ms ease;
}

.button.primary:hover { color: var(--petrol); background: transparent; }
.text-button { gap: 8px; border-bottom: 1px solid var(--petrol); color: var(--petrol); }

.portrait-visual {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin: 0 14px 0 0;
  isolation: isolate;
}

.portrait-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -22px 24px 20px;
  background: var(--petrol);
}

.portrait-frame {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #29252a;
  box-shadow: 0 30px 70px rgba(0, 47, 45, 0.22);
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.portrait-visual figcaption {
  position: absolute;
  z-index: 3;
  right: -22px;
  bottom: 24px;
  padding: 10px 16px;
  color: var(--mint);
  background: var(--petrol);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: max(24px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(42px, 6vh, 64px);
}

.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: 1.05rem; }
.career-section { display: grid; align-items: center; background: var(--mint); }
.career-section .section-heading {
  grid-template-columns: minmax(0, 1fr) minmax(560px, 0.98fr);
  gap: 48px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(0, 64, 62, 0.28);
}

.timeline-item { position: relative; text-align: left; }

.timeline-marker { width: fit-content; }

.timeline-date {
  height: 32px;
  margin-bottom: 10px;
  color: var(--petrol);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.timeline-dot {
  position: relative;
  z-index: 2;
  width: 13px;
  height: 13px;
  margin: 0 auto 32px;
  border: 3px solid var(--mint);
  border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 0 0 1px var(--petrol);
}

.timeline-item h3 { margin-bottom: 14px; font-size: 1.65rem; }
.timeline-item > p { color: var(--muted); }
.timeline-details {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--petrol);
  font-size: 0.88rem;
  line-height: 1.5;
}

.timeline-details li + li { margin-top: 7px; }
.timeline-details li::marker { color: var(--sea); }
.expertise-summary {
  max-width: 760px;
  margin-top: clamp(34px, 5vh, 50px);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.publications-section { display: grid; align-items: center; background: var(--paper); }
.publications-heading { margin-bottom: clamp(26px, 4vh, 42px); }
.publications-heading h2 { font-size: clamp(2.8rem, 4.8vw, 4.9rem); }

.publications-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(52px, 7vw, 92px);
  align-items: start;
}

.publication-group { min-width: 0; }

.publication-group-label {
  margin-bottom: 10px;
  color: var(--petrol);
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.publication-list { border-bottom: 1px solid var(--line); }

.publication-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.publication-index {
  color: #8aa9a3;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.publication-copy strong {
  display: block;
  color: var(--petrol);
  font-size: .98rem;
  line-height: 1.35;
  transition: color 180ms ease;
}

.publication-meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.publication-arrow {
  color: var(--petrol);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.publication-link:hover .publication-copy strong { color: #4f7d78; }
.publication-link:hover .publication-arrow { transform: translate(3px, -3px); }

.services-section { background: #f9fbfa; }
.services-section .section-inner { width: min(calc(100% - var(--content-gutter)), var(--content-max-width)); }
.section-heading.compact { margin-bottom: clamp(34px, 5vh, 48px); }
.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 116px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--petrol);
  background: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 64, 62, 0.35);
  box-shadow: 0 20px 50px rgba(0, 64, 62, 0.08);
}

.service-card.is-active { border-color: var(--petrol); background: var(--mint); box-shadow: inset 0 -4px 0 var(--petrol); }
.service-card:focus-visible { outline: 3px solid rgba(0, 64, 62, .22); outline-offset: 3px; }

.service-4 { grid-column: auto; }

.service-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--petrol);
  background: var(--mint);
}

.service-card.is-active .service-icon { background: white; }

.service-icon svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-index { position: absolute; top: 12px; right: 14px; color: #92aaa6; font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.service-card h3 {
  max-width: none;
  margin: 12px 0 0;
  font-size: clamp(1.08rem, 1.25vw, 1.25rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.service-5 h3 { letter-spacing: -.015em; }

.service-details { margin-top: 14px; }
.service-detail { min-height: clamp(190px, 24vh, 230px); padding: clamp(24px, 2.5vw, 32px); border: 1px solid var(--line); background: white; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr); align-items: start; gap: clamp(32px, 4vw, 56px); }
.service-detail[hidden] { display: none; }
.service-detail-heading, .service-detail-copy { min-width: 0; }
.service-detail-kicker { margin: 0 0 12px; color: #6f918c; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.service-detail h3 { max-width: 100%; margin: 0; font-size: clamp(2rem, 2.4vw, 2.5rem); line-height: 1.1; overflow-wrap: anywhere; hyphens: auto; }
.service-detail-copy > p { margin: 0; color: var(--muted); }
.service-detail-copy ul { margin: 14px 0 0; padding: 0; list-style: none; }
.service-detail-copy li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--line); color: var(--petrol); font-weight: 650; line-height: 1.5; }
.service-detail-copy li::before { content: ""; position: absolute; top: 18px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #74a09a; }

.support-section { display: grid; align-items: center; color: var(--mint); background: var(--petrol); }
.section-heading.light .eyebrow, .section-heading.light h2, .section-heading.light > p { color: var(--mint); }
.section-heading.light > p { opacity: .75; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.support-card {
  position: relative;
  min-height: clamp(270px, 36vh, 320px);
  padding: 38px;
  border: 1px solid rgba(227, 236, 233, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.support-number { color: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .15em; opacity: .62; }

.support-card h3 {
  max-width: 360px;
  margin: clamp(58px, 8vh, 82px) 0 20px;
  color: inherit;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.support-card p { max-width: 480px; margin-bottom: 0; opacity: .78; }
.legal-section {
  display: grid;
  align-items: center;
  padding-bottom: calc(100px + clamp(18px, 3vh, 32px));
  background: white;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(300px, .64fr) minmax(0, 1.36fr);
  gap: clamp(56px, 7vw, 110px);
  align-items: start;
}

.legal-intro h2 { margin-bottom: 30px; }
.legal-lead { max-width: 420px; margin-bottom: 32px; color: var(--muted); font-size: 1.12rem; }

.contact-link {
  display: block;
  width: fit-content;
  margin: 10px 0;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--petrol);
  color: var(--petrol);
  font-weight: 720;
}

.legal-copy { display: grid; grid-template-columns: repeat(2, 1fr); align-content: center; min-height: clamp(340px, 42vh, 410px); gap: 48px 64px; padding: clamp(48px, 4vw, 68px); background: var(--mint); }
.legal-copy h3 { margin-bottom: 10px; font-size: .79rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.legal-copy p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }

.site-footer {
  height: 100px;
  border-top: 1px solid rgba(227, 236, 233, 0.16);
  color: rgba(227, 236, 233, 0.75);
  background: var(--petrol-deep);
}

.legal-section > .site-footer {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  width: 100%;
}

.site-footer .brand img { width: 190px; filter: brightness(0) invert(1); opacity: .86; }
.site-footer p, .site-footer a { margin: 0; font-size: .77rem; letter-spacing: .05em; }

@media (min-width: 1600px) {
  .portrait-visual { margin-right: 64px; }
}

@media (max-width: 1180px) {
  .service-grid {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  .service-card, .service-4, .service-5 { grid-column: auto; scroll-snap-align: start; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 980px) {
  :root { --header-height: 74px; }
  .brand img { width: 205px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 0 solid var(--line);
    background: rgba(255, 255, 255, .98);
    transition: max-height 220ms ease, border-width 220ms ease;
  }

  .site-nav.is-open { max-height: 410px; border-bottom-width: 1px; }
  .site-nav a { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; padding: 14px 0; border-bottom: 1px solid rgba(0,64,62,.09); }
  .site-nav a::after { display: none; }
  .hero-section { background: white; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .portrait-visual { width: min(420px, 90%); margin: 24px auto 0; justify-self: center; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .career-section .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .service-grid {
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }
  .service-card, .service-4, .service-5 { grid-column: auto; scroll-snap-align: start; }
  .service-detail { grid-template-columns: 1fr; gap: 18px; }
  .legal-grid { grid-template-columns: 1fr; gap: 54px; }
}

@media (min-width: 701px) and (max-height: 700px) {
  .section { padding: calc(var(--header-height) + 22px) 0 24px; }
  .hero-section { padding-top: calc(var(--header-height) + 18px); }
  .eyebrow { margin-bottom: 10px; }
  h2 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
  .section-heading, .section-heading.compact { margin-bottom: 24px; }
  .publications-heading { margin-bottom: 18px; }
  .publication-link { padding: 9px 0; }
  .publication-copy strong { font-size: .9rem; }
  .expertise-summary { margin-top: 22px; line-height: 1.55; }
  .service-card { min-height: 94px; padding: 16px; }
  .service-icon { width: 40px; height: 40px; }
  .service-details { margin-top: 10px; }
  .service-detail { min-height: 160px; padding: 22px; }
  .service-detail h3 { font-size: 1.85rem; }
  .service-detail-copy ul { margin-top: 12px; }
  .support-card { min-height: 230px; padding: 26px; }
  .support-card h3 { margin: 38px 0 14px; }
  .legal-section { padding-bottom: 100px; }
}

@media (max-width: 700px) {
  .header-inner, .footer-inner, .section-inner { width: min(calc(100% - 32px), var(--max-width)); }
  .hero-section .section-inner, .services-section .section-inner { width: min(calc(100% - 32px), var(--max-width)); }
  .brand img { width: 176px; }
  .section {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--header-height) + 40px) 0 52px;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .hero-section { height: auto; min-height: 100svh; padding-top: calc(var(--header-height) + 38px); }
  h1 { font-size: clamp(3.45rem, 16vw, 5.1rem); line-height: 1.05; }
  h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .hero-lead { max-width: none; font-size: 1rem; }
  .portrait-visual { width: calc(100% - 20px); aspect-ratio: 4 / 5; }
  .portrait-visual::before { inset: -12px -12px 18px 14px; }
  .portrait-visual figcaption { right: -12px; bottom: 18px; }
  .scroll-hint { display: none; }

  .timeline { grid-template-columns: 1fr; gap: 10px; padding-left: 28px; }
  .timeline::before { top: 9px; right: auto; bottom: 28px; left: 6px; width: 1px; height: auto; }
  .timeline-item { padding: 0 0 30px 18px; text-align: left; }
  .timeline-marker { width: 100%; }
  .timeline-date { height: auto; margin-bottom: 8px; text-align: left; }
  .timeline-dot { position: absolute; top: 3px; left: -22px; margin: 0; transform: translateX(-50%); }
  .timeline-item h3 { font-size: 1.45rem; }
  .expertise-summary { margin-top: 24px; }
  .publications-grid { grid-template-columns: 1fr; gap: 34px; }
  .publication-link { padding: 16px 0; }
  .service-grid { grid-template-columns: repeat(5, minmax(210px, 1fr)); overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
  .service-card, .service-4, .service-5 { grid-column: auto; min-height: 104px; scroll-snap-align: start; }
  .service-detail { grid-template-columns: 1fr; min-height: 0; gap: 18px; padding: 24px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: 300px; padding: 30px; }
  .legal-section { display: block; height: auto; min-height: 100svh; padding-bottom: 0; overflow: visible; }
  .legal-section .legal-grid { padding-bottom: 52px; }
  .legal-section > .site-footer { position: relative; inset: auto; }
  .legal-copy { grid-template-columns: 1fr; align-content: start; min-height: 0; gap: 30px; padding: 30px; }
  .site-footer { height: auto; padding: 28px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .site-footer .brand img { width: 175px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
