/* Tropulence design system. Light mode only. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0F766E;
  --teal-deep: #134E4A;
  --teal-tint: #EAF4F2;
  --navy: #1E293B;
  --ink: #242A33;
  --paper: #FBFAF7;
  --copper: #B16A3C;
  --copper-light: #D9925F; /* copper variant for dark surfaces, keeps AA contrast */
  --gray: #6B7280;
  --gray-deep: #59616E; /* gray variant for tinted surfaces, keeps AA contrast */
  --line: #E3E6E9;
  --light-text: #C7D0DC;
  --font-display: "Plus Jakarta Sans", "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 3.9rem);
  line-height: 1.06;
  max-width: 18em;
}

h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.1vw, 2.85rem);
  line-height: 1.1;
  max-width: 20em;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

ul, ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

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

strong {
  font-weight: 600;
}

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

.on-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: #7FD1C7;
}

::selection {
  background: var(--teal);
  color: #fff;
}

/* ---------- Layout primitives ---------- */

.container {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
}

.section-tint {
  background: var(--teal-tint);
}

.section-tint .ledger-source,
.section-tint .meta {
  color: var(--gray-deep);
}

.rule-top {
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1.3rem;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

.on-dark .eyebrow {
  color: #7FD1C7;
}

.lede {
  font-size: 1.16rem;
  max-width: 38em;
}

.service-icon {
  display: block;
  width: 48px;
  height: 48px;
  color: var(--teal);
  margin: 0 0 1.2rem;
}

.meta {
  color: var(--gray);
  font-size: 0.92rem;
}

.prose {
  max-width: 46em;
}

/* Asymmetric editorial split: narrow heading column, wider body column */
.split {
  display: grid;
  gap: 1.5rem 4rem;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -200vw;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1.2rem;
  z-index: 200;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.2rem;
  transition: padding-block 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(30, 41, 59, 0.35);
}

.site-header.scrolled .header-inner {
  padding-block: 0.7rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: 0.025em;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--teal-deep);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
}

.nav-list > li > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.3rem;
}

.nav-list > li > a:not(.btn):hover {
  color: var(--teal);
}

.nav-list > li > a[aria-current="page"]:not(.btn) {
  color: var(--teal);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 879px) {
  /* backdrop-filter would make the header a containing block for the
     fixed slide-in panel, trapping it at header height. Drop it on mobile. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 110;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(87vw, 380px);
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -30px rgba(15, 23, 42, 0.6);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 5.75rem 0 1.5rem;
    z-index: 105;
    visibility: hidden;
  }

  .site-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 100;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .site-nav li {
    width: 100%;
  }

  .nav-list > li > a:not(.btn),
  .mega-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem clamp(1.5rem, 6vw, 2rem);
    border-bottom: 1px solid var(--line);
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--ink);
    text-align: left;
  }

  .nav-list > li > a[aria-current="page"]:not(.btn),
  .mega-trigger[aria-current="page"] {
    box-shadow: none;
    color: var(--teal);
  }

  .has-mega .mega-panel {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: var(--teal-tint);
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }

  .has-mega.mega-open .mega-panel {
    max-height: 32rem;
    visibility: visible;
    transition: max-height 0.3s ease, visibility 0s;
  }

  .mega-panel .mega-inner {
    display: block;
    max-width: none;
    padding: 0.4rem 0 0.8rem;
  }

  .mega-eyebrow,
  .mega-feature,
  .mega-desc {
    display: none;
  }

  .mega-panel .mega-list {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mega-panel .mega-list a {
    display: block;
    padding: 0.7rem clamp(1.5rem, 6vw, 2rem) 0.7rem 2.7rem;
    border-bottom: 1px solid rgba(15, 118, 110, 0.14);
    text-decoration: none;
  }

  .mega-name {
    font-size: 0.98rem;
    color: var(--navy);
    font-weight: 600;
  }

  .mega-all {
    display: inline-block;
    margin: 0;
    padding: 0.75rem clamp(1.5rem, 6vw, 2rem) 0.5rem 2.7rem;
  }

  .nav-cta {
    margin-top: auto;
    padding: 1.25rem clamp(1.5rem, 6vw, 2rem) 0;
  }

  .nav-cta a.btn {
    display: block;
    text-align: center;
    width: 100%;
    padding-block: 0.95rem;
  }

  .has-mega.mega-open .mega-trigger .chev {
    transform: rotate(180deg);
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-nav {
  padding: 0.7rem 1.15rem;
  font-size: 0.92rem;
}

.arrow-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--teal);
  text-decoration: none;
}

.arrow-link::after {
  content: "\2192";
  display: inline-block;
  margin-left: 0.4em;
  transition: transform 0.18s ease;
}

.arrow-link:hover {
  color: var(--teal-deep);
}

.arrow-link:hover::after {
  transform: translateX(0.25em);
}

.on-dark .arrow-link {
  color: #7FD1C7;
}

.on-dark .arrow-link:hover {
  color: #fff;
}

/* ---------- Dark bands (hero, CTA, footer) ---------- */

.on-dark {
  background: var(--navy);
  color: var(--light-text);
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: #fff;
}

.on-dark a:not(.btn) {
  color: #7FD1C7;
}

.on-dark a:not(.btn):hover {
  color: #fff;
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

@media (min-width: 880px) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(88vh, 940px);
    padding-block: 5rem 6.5rem;
  }

  .hero .container {
    width: 100%;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 5rem;
  }
}

.hero h1 {
  font-size: clamp(2.7rem, 1.1rem + 6vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 15em;
}

.hero .lede {
  font-size: clamp(1.12rem, 1rem + 0.4vw, 1.3rem);
  color: var(--light-text);
  margin-top: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}

/* Scroll cue at the foot of the hero */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue:hover {
  color: #fff;
}

.scroll-cue svg {
  width: 20px;
  height: 20px;
  animation: cue-bob 1.8s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 879px) {
  .scroll-cue {
    display: none;
  }
}

/* ---------- Gap motif: AI purchased vs value realised ---------- */

.gap-motif {
  margin: 0;
  width: 100%;
}

.gap-row {
  margin-bottom: 2.25rem;
}

.gap-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-text);
  margin-bottom: 0.7rem;
}

.gap-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.gap-bar {
  display: block;
  height: 2.85rem;
  background: var(--teal);
  border-radius: 4px;
  transform-origin: left center;
}

.gap-bar-full {
  width: 100%;
}

.gap-bar-short {
  width: 11%;
}

/* Bars stay visible by default; JS adds .go to play the one-time animation */
.js .gap-motif:not(.go) .gap-bar {
  transform: scaleX(0);
}

.gap-motif.go .gap-bar-full {
  animation: gap-grow 1.5s cubic-bezier(0.22, 0.7, 0.25, 1) 0.15s both;
}

.gap-motif.go .gap-bar-short {
  animation: gap-grow 1.5s cubic-bezier(0.22, 0.7, 0.25, 1) 0.6s both;
}

/* Hard stop after the one-time animation, so bars can never stay hidden */
.gap-motif.settled .gap-bar {
  animation: none;
  transform: none;
}

@keyframes gap-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.gap-caption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------- Evidence ledger ---------- */

.ledger-grid {
  display: grid;
  gap: 3.75rem 5rem;
  margin-top: 3.75rem;
}

@media (min-width: 720px) {
  .ledger-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ledger-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.8rem, 2.2rem + 4.6vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--teal-deep);
  margin: 0 0 1.1rem;
}

.ledger-claim {
  max-width: 30em;
  margin-bottom: 0;
}

.ledger-source {
  position: relative;
  margin: 1.4rem 0 0;
  padding-top: 1.1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.ledger-source::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 3px;
  background: var(--teal);
}

/* Smaller ledger scale for numbers inside other pages */
.ledger-small .ledger-figure {
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.4rem);
}

.closer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--navy);
  max-width: 30em;
  margin: 3.5rem 0 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--teal);
}

/* ---------- Service cards ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2.75rem;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .card-grid > .card {
    grid-column: span 3;
  }
}

@media (min-width: 1024px) {
  .card-grid > .card {
    grid-column: span 2;
  }

  .card-grid > .card:nth-child(4),
  .card-grid > .card:nth-child(5) {
    grid-column: span 3;
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.1rem 2rem 1.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 22px 45px -22px rgba(30, 41, 59, 0.35);
}

.card:hover .arrow-link::after {
  transform: translateX(0.25em);
}

.card h3 {
  margin-bottom: 0.6rem;
}

.card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--teal-deep);
}

.card p {
  font-size: 0.99rem;
  margin-bottom: 1.4rem;
}

.card .arrow-link {
  margin-top: auto;
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.8rem;
}

/* ---------- Proof strip ---------- */

.proof-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 880px) {
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
  }
}

.proof-panel {
  position: relative;
  border-top: 2px solid var(--teal);
  padding-top: 1.6rem;
  transition: border-color 0.2s ease;
}

.proof-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-deep);
  transition: width 0.3s ease;
}

.proof-panel:hover::before {
  width: 3.5rem;
}

.proof-panel:hover .arrow-link::after {
  transform: translateX(0.25em);
}

.proof-panel .outcome {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  line-height: 1.32;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

/* ---------- Callouts ---------- */

.callout {
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
}

.callout p {
  max-width: 42em;
}

/* ---------- Inner page head ---------- */

.page-head {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head .capsule {
  font-size: 1.16rem;
  max-width: 40em;
  margin-top: 1.3rem;
}

.breadcrumb {
  margin-bottom: 1.75rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--gray);
}

.breadcrumb li {
  margin: 0;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* ---------- Content lists (deliverables, what we do) ---------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 44em;
}

.feature-list li {
  position: relative;
  padding: 0 0 1.05rem 1.75rem;
  margin: 0 0 1.05rem;
  border-bottom: 1px solid var(--line);
}

.feature-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 2px;
  background: var(--teal);
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 44em;
}

.faq h3 {
  font-size: 1.18rem;
  margin: 2.1rem 0 0.5rem;
}

.faq h3:first-of-type {
  margin-top: 1.5rem;
}

.faq p {
  max-width: 42em;
}

/* ---------- Case studies ---------- */

.case {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.case:last-of-type {
  border-bottom: none;
}

@media (min-width: 880px) {
  .case {
    grid-template-columns: 4fr 8fr;
  }
}

.case-meta .eyebrow {
  margin-bottom: 0.6rem;
}

.case h2 {
  margin-bottom: 0.4rem;
}

.case-body p {
  max-width: 46em;
}

.case-body h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 1.9rem 0 0.5rem;
}

.case-body h3:first-child {
  margin-top: 0;
}

/* ---------- About page ---------- */

.cred-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: 46em;
}

.cred-list li {
  position: relative;
  padding: 0 0 0.85rem 1.75rem;
  margin: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
}

.cred-list li:last-child {
  border-bottom: none;
}

.cred-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 2px;
  background: var(--teal);
}

.headshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  background: var(--teal-tint);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  gap: 3.5rem;
}

@media (min-width: 880px) {
  .contact-grid {
    grid-template-columns: 7fr 5fr;
    gap: 5rem;
  }
}

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.95rem;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

.form-field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.form-note {
  font-size: 0.92rem;
  color: var(--gray);
  margin-top: 1rem;
}

.contact-aside h2 {
  font-size: 1.32rem;
}

.contact-aside .block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

/* ---------- CTA band ---------- */

.cta-band {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-inner h2 {
  margin: 0;
  max-width: 18em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: var(--light-text);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--light-text);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 880px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
    gap: 4rem;
  }
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.025em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-heading {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B97A8;
  margin: 0 0 1rem;
}

.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer nav li {
  margin-bottom: 0.55rem;
}

.footer-sources {
  margin-top: 2rem;
}

.footer-sources summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--light-text);
}

.footer-sources summary:hover {
  color: #fff;
}

.footer-sources ol {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
}

.footer-sources li {
  margin-bottom: 0.8rem;
}

.footer-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: #8B97A8;
}

/* ---------- Placeholders awaiting confirmed content ---------- */

.placeholder {
  display: inline-block;
  border: 1.5px dashed var(--copper);
  border-radius: 4px;
  padding: 0.05em 0.45em;
  color: var(--copper);
  font-size: 0.88em;
  font-style: normal;
}

.on-dark .placeholder,
.site-footer .placeholder {
  border-color: var(--copper-light);
  color: var(--copper-light);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Brand and mega menu ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}

.mega-trigger {
  font-family: var(--font-body);
  cursor: pointer;
  background: none;
  border: none;
  color: var(--ink);
}

.chev {
  width: 0.7em;
  height: 0.7em;
  flex: none;
}

@media (min-width: 880px) {
  .mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    padding-block: 0.3rem;
  }

  .mega-trigger:hover {
    color: var(--teal);
  }

  .mega-trigger[aria-current="page"] {
    color: var(--teal);
    box-shadow: inset 0 -2px 0 var(--teal);
  }

  .mega-trigger .chev {
    transition: transform 0.2s ease;
  }

  .has-mega:hover .mega-trigger .chev,
  .has-mega:focus-within .mega-trigger .chev,
  .has-mega.mega-open .mega-trigger .chev {
    transform: rotate(180deg);
  }

  .has-mega.mega-suppress .mega-trigger .chev {
    transform: none;
  }

  .mega-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    color: var(--light-text);
    border-top: 1px solid rgba(127, 209, 199, 0.22);
    box-shadow: 0 30px 60px -28px rgba(15, 23, 42, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
    z-index: 90;
  }

  .has-mega:hover .mega-panel,
  .has-mega:focus-within .mega-panel,
  .has-mega.mega-open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }

  .has-mega.mega-suppress .mega-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }

  .mega-inner {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 3.5rem;
    padding-block: 2.75rem 3rem;
  }

  .mega-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7FD1C7;
    margin: 0 0 1.4rem;
  }

  .mega-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    background: currentColor;
  }

  .mega-panel .mega-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 1.5rem;
  }

  .mega-panel .mega-list li {
    margin: 0;
  }

  .mega-panel .mega-list a {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.16s ease;
  }

  .mega-panel .mega-list a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .mega-name {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
  }

  .mega-desc {
    display: block;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #AEBAC9;
    margin-top: 0.25rem;
  }

  .mega-panel .mega-list a:hover .mega-desc {
    color: var(--light-text);
  }

  .mega-all {
    color: #7FD1C7;
  }

  .mega-feature {
    border-left: 2px solid var(--teal);
    padding-left: 3rem;
  }

  .mega-feature-outcome {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
    margin: 0 0 1.3rem;
    max-width: 15em;
  }

  .mega-panel .arrow-link {
    color: #7FD1C7;
  }

  .mega-panel .arrow-link:hover {
    color: #fff;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gap-motif .gap-bar {
    animation: none !important;
    transform: none !important;
  }

  .scroll-cue svg {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
