/* ==========================================================================
   Cellulonova Research Solutions LLP
   Direction A — "Institute"
   assets/css/style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the Cellulonova logo */
  --navy-900: #0e2436;
  --navy-800: #16304a;
  --navy-700: #1d4a5a;
  --navy-600: #256069;
  --teal-700: #26686c;
  --teal-600: #2c7376;
  --teal-500: #358387;
  --teal-300: #8acfc8;
  --teal-200: #7fc4bf;

  /* Neutrals */
  --ink: #14293c;
  --body: #435763;
  --muted: #6c828d;
  --muted-light: #8faebc;
  --line: #dfe9e9;
  --line-strong: #d5e3e3;
  --surface: #f2f7f7;
  --surface-2: #e7efef;
  --white: #ffffff;

  /* On-dark text */
  --on-dark: #ffffff;
  --on-dark-soft: #bfd5de;
  --on-dark-muted: #9fbac6;

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 40px;
  --header-h: 88px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal-700); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--ink); }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--navy-800);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Anchor targets clear the sticky header */
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section { padding: 96px 0; }
.section--surface { background: var(--surface); }
.section--tight { padding: 80px 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 52px;
}

.eyebrow {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.eyebrow--light { color: var(--teal-200); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section__title--light { color: #fff; }

.section__intro {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.7;
  color: #4c606b;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 34px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn--solid { background: var(--teal-700); color: #fff; }
.btn--solid:hover { background: var(--navy-800); color: #fff; }

.btn--outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--ink); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--surface-2); color: var(--ink); }

.btn--sm { min-height: 46px; padding: 0 24px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* --------------------------------------------------------------------------
   5. Top bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  font-size: 12.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
}
.topbar__tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.topbar__contact { display: flex; align-items: center; gap: 18px; }
.topbar__contact a { color: #c7dce4; }
.topbar__contact a:hover { color: #fff; }
.topbar__sep { color: #3c5568; }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(14, 36, 54, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}
.nav__logo { display: block; flex-shrink: 0; }
.nav__logo img { height: 52px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: #48606e;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"],
.nav__links a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--teal-600);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--teal-700);
  color: var(--teal-700);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--teal-700); color: #fff; }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { padding: 8px 0 24px; }
.mobile-nav a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.mobile-nav .btn { width: 100%; margin-top: 20px; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    #12293f 0%,
    rgba(18, 41, 63, 0.92) 46%,
    rgba(18, 41, 63, 0.35) 100%
  );
}
.hero__mark {
  position: absolute;
  top: 96px;
  right: 60px;
  width: 470px;
  opacity: 0.13;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: 132px 0 120px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.hero__eyebrow::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: #5fb0ac;
  flex-shrink: 0;
}
.hero__eyebrow span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-200);
}
.hero__title {
  max-width: 840px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero__title em { font-style: italic; color: var(--teal-300); }
.hero__lede {
  max-width: 640px;
  margin-top: 30px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.66;
  color: var(--on-dark-soft);
}
.hero .btn-row { margin-top: 44px; }
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 64px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.hero__tags .sep { color: #3f5d70; }

/* --------------------------------------------------------------------------
   8. Positioning strip
   -------------------------------------------------------------------------- */
.pillars {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 108px;
  align-items: center;
}
.pillar { padding: 22px 28px; border-right: 1px solid var(--line-strong); }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar__num {
  font-family: var(--font-display);
  font-size: 13px;
  color: #7e9aa5;
  margin-bottom: 7px;
}
.pillar__name { font-size: 15px; font-weight: 600; color: var(--navy-800); }

/* --------------------------------------------------------------------------
   9. About
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}
.about__body p + p { margin-top: 18px; }
.about__body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
}
.about__panels { display: grid; gap: 20px; }

.panel {
  padding: 32px 34px;
  background: var(--surface);
  border-top: 2px solid var(--teal-700);
}
.panel--alt { border-top-color: var(--navy-800); }
.panel__label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.panel p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.6;
  color: var(--navy-800);
}

/* --------------------------------------------------------------------------
   10. Services
   -------------------------------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: 60px minmax(0, 400px) minmax(0, 1fr);
  gap: 48px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-strong);
}
.service:last-child { border-bottom: 1px solid var(--line-strong); }
.service__letter {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #a8bfc7;
}
.service__title {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
  color: var(--navy-800);
}
.service__desc { font-size: 15px; line-height: 1.6; color: #4c606b; }
.service__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 26px;
  font-size: 14px;
  line-height: 1.5;
  color: #465964;
}

/* --------------------------------------------------------------------------
   11. Research areas
   -------------------------------------------------------------------------- */
.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.area__img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}
.area__title {
  margin: 22px 0 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-800);
}
.area p { font-size: 14.5px; line-height: 1.65; color: #4c606b; }

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.chips__label {
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  font-size: 13.5px;
  color: #3f535e;
}

/* --------------------------------------------------------------------------
   12. Why Cellulonova
   -------------------------------------------------------------------------- */
.why {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
  color: #fff;
}
.why__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}
.why__inner { position: relative; padding: 88px 0 96px; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.why__item { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.why__item svg { width: 26px; height: 26px; color: var(--teal-300); }
.why__item h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.why__item p { font-size: 14px; line-height: 1.6; color: #b3cad5; }

/* --------------------------------------------------------------------------
   13. Approach
   -------------------------------------------------------------------------- */
.approach { position: relative; }
.approach::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: var(--line-strong);
}
.approach__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
}
.step:nth-child(2) .step__num { background: var(--navy-700); }
.step:nth-child(3) .step__num { background: var(--navy-600); }
.step:nth-child(4) .step__num { background: var(--teal-600); }
.step:nth-child(5) .step__num { background: var(--teal-500); }
.step h3 {
  margin: 24px 0 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--navy-800);
}
.step p { max-width: 230px; font-size: 14.5px; line-height: 1.65; color: #4c606b; }

/* --------------------------------------------------------------------------
   14. Who we work with
   -------------------------------------------------------------------------- */
.clients {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.client {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
}
.client h3 {
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy-800);
}
.client p { font-size: 14.5px; line-height: 1.6; color: #4c606b; }

/* --------------------------------------------------------------------------
   15. Team
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.member { display: flex; gap: 22px; }
.member__photo {
  flex-shrink: 0;
  width: 118px;
  height: 148px;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}
.member__photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.member__name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}
.member__quals { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.member__role {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-700);
}
.member__meta { font-size: 13.5px; line-height: 1.55; color: #4c606b; }

.team__note {
  max-width: 820px;
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
  color: #4c606b;
}

/* --------------------------------------------------------------------------
   16. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: #1d5a5e;
  color: #fff;
}
.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #143e4a 8%, rgba(20, 62, 74, 0.72) 100%);
}
.cta__inner { position: relative; padding: 84px 0 92px; }
.cta h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.2;
}
.cta p {
  max-width: 640px;
  margin-bottom: 34px;
  font-size: 17px;
  line-height: 1.7;
  color: #c6dce0;
}

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.contact__lede {
  max-width: 660px;
  margin: 14px 0 34px;
  font-size: 16px;
  line-height: 1.7;
  color: #4c606b;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c707b;
}
.field label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #788c96;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cfdede;
  border-radius: 0;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.18s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal-600); outline-offset: 0; }

.field--file { margin-top: 20px; }
.file-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px dashed #bfd2d2;
  background: #f7fafa;
}
.file-drop svg { width: 17px; height: 17px; flex-shrink: 0; color: #5c707b; }
.file-drop input { border: 0; padding: 0; min-height: auto; background: none; font-size: 13.5px; color: #4c606b; }

.form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.form__status {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body);
}
.form__status.is-error { color: #a4372f; }
.form__status.is-ok { color: var(--teal-700); font-weight: 600; }

.contact-panel {
  padding: 44px 40px;
  background: var(--navy-800);
  color: #fff;
}
.contact-panel__label {
  margin-bottom: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-200);
}
.contact-item { display: flex; gap: 14px; margin-bottom: 28px; }
.contact-item svg {
  width: 19px; height: 19px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal-300);
}
.contact-item__label {
  margin-bottom: 7px;
  font-size: 13px;
  color: var(--muted-light);
}
.contact-item address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: #fff;
}
.contact-item a { font-size: 17px; font-weight: 500; color: #fff; }
.contact-item a:hover { color: var(--teal-300); }

.contact-panel__note {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  line-height: 1.7;
  color: #b3cad5;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding: 56px 0 30px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 56px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__brand { max-width: 420px; }
.footer__brand img { height: 58px; width: auto; margin-bottom: 22px; }
.footer__brand p { font-size: 14px; line-height: 1.65; color: var(--on-dark-muted); }

.footer__cols { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.footer__col h3 {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-200);
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14.5px; color: #c7dce4; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 13px;
  color: #7e97a5;
}
.footer__legal { display: flex; gap: 26px; }
.footer__legal a { color: #7e97a5; }
.footer__legal a:hover { color: #c7dce4; }

/* --------------------------------------------------------------------------
   19. Legal & content pages (privacy.html, terms.html)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 72px 0 56px;
  background: var(--navy-900);
  color: var(--on-dark);
}
.page-hero__title {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #fff;
}
.page-hero__meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.crumbs {
  margin-bottom: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}
.crumbs a { color: var(--teal-200); }
.crumbs a:hover { color: #fff; }
.crumbs span { padding: 0 8px; }

.legal {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.legal__toc h2 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.legal__toc ol {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.legal__toc a {
  font-size: 13.5px;
  line-height: 1.45;
  color: #4c606b;
}
.legal__toc a::before {
  counter-increment: toc;
  content: counter(toc) ". ";
  color: var(--muted-light);
}
.legal__toc a:hover { color: var(--teal-700); }

.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.3;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 {
  margin-top: 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
}
.prose p,
.prose li {
  font-size: 15.5px;
  line-height: 1.75;
  color: #4c606b;
}
.prose ul,
.prose ol { padding-left: 22px; }
.prose li + li { margin-top: 9px; }
.prose li::marker { color: var(--teal-500); }
.prose a { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-800); }
.prose strong { color: var(--navy-800); font-weight: 600; }
.prose__lede {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
}
.prose__note {
  margin-top: 40px;
  padding: 24px 26px;
  background: var(--surface);
  border-left: 3px solid var(--teal-500);
  font-size: 14.5px;
  line-height: 1.7;
  color: #4c606b;
}
.prose address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.75;
  color: #4c606b;
}

/* --------------------------------------------------------------------------
   20. Reveal on scroll (progressive enhancement)
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */

/* Laptop */
@media (max-width: 1180px) {
  :root { --gutter: 32px; }
  .nav__links { gap: 22px; }
  .nav__links a { font-size: 14px; }
  .hero__mark { width: 360px; right: 24px; }
  .about { gap: 56px; }
  .service { grid-template-columns: 48px minmax(0, 320px) minmax(0, 1fr); gap: 32px; }
}

/* Tablet landscape — switch to the mobile menu */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .hero__mark { display: none; }
  .why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .area__img { height: 180px; }
  .contact { grid-template-columns: 1fr; gap: 44px; }
  .contact-panel { max-width: 560px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal { grid-template-columns: 1fr; gap: 40px; }
  .legal__toc { position: static; }
  .legal__toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 40px; }
  .section__intro { max-width: none; }

  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }

  .hero__inner { padding: 88px 0 80px; }
  .hero__tags { margin-top: 44px; gap: 10px 18px; font-size: 12px; }

  .pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { padding: 20px 24px; border-bottom: 1px solid var(--line-strong); }
  .pillar:nth-child(odd) { padding-left: 0; }
  .pillar:nth-child(even) { border-right: 0; padding-right: 0; }
  .pillar:nth-last-child(-n + 2) { border-bottom: 0; }

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

  .service { grid-template-columns: 40px minmax(0, 1fr); gap: 20px 24px; }
  .service__body { grid-column: 2; }
  .service__list { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }

  .approach::before { display: none; }
  .approach__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .step p { max-width: none; }

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

  .footer__top { flex-direction: column; gap: 40px; }
}

/* Mobile */
@media (max-width: 680px) {
  :root { --gutter: 20px; --header-h: 72px; }

  .section { padding: 56px 0; }

  .nav__logo img { height: 40px; }

  .hero__inner { padding: 64px 0 60px; }
  .hero__eyebrow { gap: 10px; margin-bottom: 22px; }
  .hero__eyebrow::before { width: 24px; }
  .hero__eyebrow span { font-size: 10.5px; letter-spacing: 0.16em; }
  .hero__lede { margin-top: 22px; }
  .hero .btn-row { margin-top: 32px; }
  .btn { width: 100%; }
  .hero__tags { display: none; }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .pillar:last-child { border-bottom: 0; }
  .pillar__num { display: inline-block; margin: 0 10px 0 0; }
  .pillar__name { display: inline; }

  .panel { padding: 26px 24px; }
  .panel p { font-size: 17px; }

  .service { grid-template-columns: 1fr; gap: 14px; padding: 24px 0 28px; }
  .service__letter { font-size: 26px; }
  .service__body, .service__list { grid-column: 1; }
  .service__list { grid-template-columns: 1fr; gap: 8px; margin-top: 4px; }
  .service__list li { padding-left: 16px; position: relative; }
  .service__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 5px;
    background: var(--teal-500);
  }

  .areas { grid-template-columns: 1fr; gap: 28px; }
  .area__img { height: 200px; }
  .chips { margin-top: 32px; gap: 10px; }

  .why__grid { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .why__inner { padding: 64px 0 68px; }

  .approach__grid { grid-template-columns: 1fr; gap: 28px; }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 18px; }
  .step__num { grid-row: 1 / 3; }
  .step h3 { margin: 10px 0 8px; }

  .clients { grid-template-columns: 1fr; gap: 16px; }
  .team { grid-template-columns: 1fr; gap: 28px; }
  .page-hero { padding: 52px 0 40px; }
  .legal__toc ol { grid-template-columns: 1fr; }
  .team__note { margin-top: 32px; }

  .cta__inner { padding: 60px 0 64px; }
  .cta p { margin-bottom: 28px; }

  .form__grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-panel { padding: 32px 24px; }
  .form__actions .btn { width: 100%; }

  .site-footer { padding: 44px 0 26px; }
  .footer__cols { gap: 32px 40px; }
  .footer__brand img { height: 48px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}

/* --------------------------------------------------------------------------
   21. Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .nav__toggle, .mobile-nav, .cta, .hero__bg,
  .hero__overlay, .why__bg, .cta__bg { display: none !important; }
  body { color: #000; }
  .hero, .why { background: #fff !important; color: #000 !important; }
  .hero__title, .section__title--light, .why__item h3 { color: #000 !important; }
  .section { padding: 24pt 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
