@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-normal-400-600.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
/* Metric-compatible fallbacks keep layout shift low while the webfonts load. */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 104.8%;
  ascent-override: 93.3%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Sans Fallback";
  src: local("Arial");
  size-adjust: 100.2%;
  ascent-override: 100.9%;
  descent-override: 35.2%;
  line-gap-override: 0%;
}

:root {
  --paper: #ffffff;
  --paper-deep: #f3f5f7;
  --white: #ffffff;
  --mint: #e2f3f1;
  --ink: #0f1720;
  --ink-soft: #334155;
  --muted: #5b6b7b;
  --line: #e2e7eb;
  --teal: #0f6e7a;
  --teal-deep: #0b5560;
  --teal-ink: #0b2b31;
  --on-dark: #f4f8f8;
  --on-dark-soft: #c3d5d8;
  --amber: #f28c28;
  --amber-soft: #ffb35c;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-body: "Nunito Sans", "Nunito Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-base: 1.0625rem;
  --text-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  --text-h1: clamp(2.5rem, 1.2rem + 4.4vw, 4.75rem);
  --text-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --text-h3: 1.375rem;

  --section: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.5rem, 5vw, 2.5rem);
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1.1em;
}
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);
}

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

ul, ol, dl, dd, figure {
  margin: 0;
  padding: 0;
}

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

::selection {
  background: var(--mint);
  color: var(--ink);
}

.container {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}
.container--narrow {
  max-width: 46rem;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: var(--on-dark);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 1rem;
}

.eyebrow,
.section__index,
.contact__label,
.figure dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.button--primary {
  background: var(--teal);
  color: var(--on-dark);
}
.button--primary:hover {
  background: var(--teal-deep);
  color: var(--on-dark);
}
.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 33, 39, 0.25);
}
.button--ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--ink);
}
.section--dark .button--ghost {
  color: var(--on-dark);
  border-color: rgba(247, 243, 236, 0.4);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}
.brand__logo {
  display: block;
  height: 2.75rem;
  width: auto;
}
.brand--footer .brand__logo {
  height: 2.5rem;
}
.brand__icon {
  display: none;
}
@media (max-width: 59.99em) {
  :root {
    --header-h: 3.75rem;
  }
  .brand__logo {
    display: none;
  }
  .brand__icon {
    display: block;
    height: 2.125rem;
    width: auto;
  }
  .nav-toggle {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin-right: -0.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.nav-open .nav-toggle {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.nav-toggle__bars {
  position: relative;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: background-color 0.15s ease 0.15s;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  /* Closing: un-rotate first, then move back out */
  transition: transform 0.22s ease, top 0.22s ease 0.2s;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars {
  background-color: transparent;
  transition-delay: 0s;
}
.nav-open .nav-toggle__bars::before,
.nav-open .nav-toggle__bars::after {
  top: 0;
  /* Opening: move to the middle first, then rotate into an X */
  transition: top 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.nav-open .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -28px rgba(15, 23, 32, 0.35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.2s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.nav-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.site-nav__list li,
.site-nav__cta {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-open .site-nav__list li,
.nav-open .site-nav__cta {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-open .site-nav__list li:nth-child(1) { transition-delay: 0.05s; }
.nav-open .site-nav__list li:nth-child(2) { transition-delay: 0.1s; }
.nav-open .site-nav__list li:nth-child(3) { transition-delay: 0.15s; }
.nav-open .site-nav__list li:nth-child(4) { transition-delay: 0.2s; }
.nav-open .site-nav__list li:nth-child(5) { transition-delay: 0.25s; }
.nav-open .site-nav__list li:nth-child(6) { transition-delay: 0.3s; }
.nav-open .site-nav__cta { transition-delay: 0.36s; }
.site-nav__list a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav__list a:hover,
.site-nav__list a[aria-current="true"] {
  color: var(--teal);
}
.site-nav__cta {
  margin-top: 1.25rem;
  width: 100%;
}

@media (min-width: 60em) {
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list li,
  .site-nav__cta {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .site-nav__list a {
    font-weight: 500;
  }
  .site-nav__list {
    flex-direction: row;
    gap: 1.75rem;
  }
  .site-nav__list a {
    padding: 0.5rem 0;
    border: 0;
    font-size: 0.9375rem;
    position: relative;
  }
  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.1rem;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .site-nav__list a:hover::after,
  .site-nav__list a[aria-current="true"]::after {
    transform: scaleX(1);
  }
  .site-nav__cta {
    margin: 0;
    width: auto;
    min-height: 2.75rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.hero__title {
  font-size: var(--text-h1);
  line-height: 1.02;
  margin-bottom: 0.45em;
}
.hero__name {
  display: block;
  max-width: 14ch;
}
.hero__role {
  display: block;
  margin-top: 0.45em;
  font-size: clamp(1.25rem, 0.95rem + 1.1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--teal-deep);
  max-width: 32ch;
}
.hero__lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}
.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__facts li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.hero__figure {
  position: relative;
  max-width: 28rem;
  margin-inline: auto;
  width: 100%;
}
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  margin-top: 30%;
  background: var(--mint);
  border-radius: var(--radius-lg);
}
.hero__stage img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 88%;
  height: auto;
  transform: translateX(-50%);
}
.hero__figure figcaption {
  position: absolute;
  left: -0.75rem;
  bottom: 10%;
  max-width: 78%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -20px rgba(15, 23, 32, 0.4);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.hero__figure figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 47.99em) {
  /* Phones: the mint stage starts at the very top behind the transparent header; once the
     stage has scrolled away the header fades to white (class is-past-hero from script.js). */
  .page-home .site-header {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom-color: transparent;
    transition: background-color 0.45s ease, border-color 0.45s ease;
  }
  .page-home .site-header.nav-open {
    transition: none;
  }
  .page-home .site-header.is-past-hero,
  .page-home .site-header.nav-open {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--line);
  }
  .hero {
    margin-top: calc(-1 * var(--header-h));
    padding-top: 0;
  }
  .hero__inner {
    gap: 0.75rem;
  }
  .hero__figure {
    order: -1;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .hero__stage {
    aspect-ratio: 1 / 1.08;
    margin-top: 0;
    border-radius: 0;
  }
  /* The white page "sheet" overlaps the stage with rounded top corners (inverted rounding) */
  .hero__stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--radius-lg);
    background: var(--paper);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .hero__stage img {
    width: 62%;
    left: 61%;
    bottom: var(--radius-lg);
    transform: translate(-50%, var(--parallax, 0px));
    clip-path: inset(0 0 var(--parallax, 0px) 0);
    will-change: transform;
  }
  .hero__figure figcaption {
    display: none;
  }
  /* Name, qualifications, call to action, then the longer text */
  .hero__copy {
    display: flex;
    flex-direction: column;
  }
  .hero__title { order: 1; margin-bottom: 0.5em; }
  .hero__facts { order: 2; margin-bottom: 1.5rem; }
  .hero__actions { order: 3; margin-bottom: 1.75rem; }
  .hero__lead { order: 4; margin-bottom: 0; }
}

@media (min-width: 64em) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero__figure {
    max-width: none;
    width: min(100%, 31rem);
    justify-self: end;
  }
}

/* Statement band */
.statement {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--mint);
}
.statement__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.3;
  text-align: center;
  color: var(--teal-deep);
  text-wrap: balance;
}

/* Sections */
.section {
  padding-block: var(--section);
}
.section--alt {
  background: var(--paper-deep);
}
.section--dark {
  background: var(--teal-ink);
  color: var(--on-dark-soft);
}
.section--dark .section__title {
  color: var(--on-dark);
}
.section--dark .section__index {
  color: var(--amber-soft);
}
.section--dark .section__intro {
  color: var(--on-dark-soft);
}

.section__head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section__index {
  margin-bottom: 1rem;
}
.section__title {
  font-size: var(--text-h2);
  max-width: 20ch;
  text-wrap: balance;
}
.section__intro {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44rem;
}

/* Services */
.services {
  list-style: none;
  display: grid;
  border-bottom: 1px solid var(--line);
}
.service {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  row-gap: 0.75rem;
}
.service__index {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--teal);
}
@media (min-width: 48em) {
  .service {
    grid-template-columns: 3rem 1fr;
    column-gap: 1rem;
    row-gap: 0;
  }
  .service__index {
    padding-top: 0.45rem;
  }
}
.service__title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.service p {
  color: var(--ink-soft);
}
@media (min-width: 48em) {
  .service p {
    grid-column: 2;
  }
}

@media (min-width: 48em) {
  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
  }
  .service {
    padding: 2.5rem 0;
  }
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  border-bottom: 1px solid var(--line);
}
.step {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .step {
    grid-template-columns: 4rem 1fr;
  }
}
.step__number {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
}
.step__title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: 0.5em;
}
.step p {
  color: var(--ink-soft);
}

@media (min-width: 64em) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 2.5rem;
    border-bottom: 0;
  }
  .step {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 2rem 0 0;
  }
  .step__number {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
  }
}

/* Funding figures */
.figures {
  display: grid;
  gap: 2rem;
}
.figure {
  border-left: 1px solid rgba(247, 243, 236, 0.3);
  padding-left: 1.25rem;
}
.figure dt {
  color: var(--amber-soft);
  margin-bottom: 0.75rem;
}
.figure dd strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  margin-bottom: 0.75rem;
}
.figures__note {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
  opacity: 0.85;
}

@media (min-width: 40em) {
  .figures {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64em) {
  .figures {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* About */
.about {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about__figure {
  position: relative;
  max-width: 26rem;
  width: 100%;
}
.about__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  margin-top: 20%;
  background: var(--mint);
  border-radius: var(--radius-lg);
}
.about__stage img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 96%;
  height: auto;
  transform: translateX(-50%);
}
.about__copy p {
  color: var(--ink-soft);
}
.about__subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--teal);
}
.timeline {
  border-bottom: 1px solid var(--line);
}
.timeline__item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.timeline__item dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
}
.timeline__item dd {
  color: var(--ink-soft);
}

@media (min-width: 64em) {
  .about {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .about__figure {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* FAQ */
.faq {
  border-bottom: 1px solid var(--line);
}
.faq__item {
  border-top: 1px solid var(--line);
}
.faq__item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
  transition: transform 0.25s ease;
}
.faq__item summary::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(0);
}
.faq__item summary:hover {
  color: var(--teal);
}
.faq__answer {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

/* Contact */
.contact {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__details {
  font-style: normal;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.contact__details p {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.contact__label {
  padding-top: 0.2rem;
}

.form {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48em) {
  .form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: 0 24px 60px -36px rgba(15, 23, 32, 0.35);
  }
}
.form__row {
  display: grid;
  gap: 1.25rem;
}
.form__field {
  display: grid;
  gap: 0.4rem;
}
.form__field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.form__optional {
  font-weight: 400;
  color: var(--muted);
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper-deep);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form__field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230f1720' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}
.form__field textarea {
  resize: vertical;
  min-height: 8rem;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  outline: 2px solid var(--teal);
  outline-offset: 0;
}
.form__field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
}
.form__field--check input {
  width: 1.25rem;
  height: 1.25rem;
  min-height: 0;
  margin: 0.2rem 0 0;
  padding: 0;
  accent-color: var(--teal);
}
.form__field--check label {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__actions {
  display: grid;
  gap: 1rem;
}
.form__status {
  font-size: 0.9rem;
  color: var(--teal-deep);
  min-height: 1.5em;
}

@media (min-width: 40em) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64em) {
  .contact {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  background: var(--paper-deep);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.brand--footer {
  margin-bottom: 1rem;
}
.site-footer__meta {
  font-size: 0.9rem;
  color: var(--muted);
}
.site-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-self: end;
}
.site-footer__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__links a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Legal pages */
.legal {
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal h1 {
  font-size: var(--text-h2);
}
.legal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
}
.legal p,
.legal li {
  color: var(--ink-soft);
}
.legal ul {
  padding-left: 1.25rem;
}

/* Scroll reveal: only when JS is present, never for above-the-fold content. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 40em) {
  p {
    hyphens: auto;
  }
}

@media print {
  .site-header, .skip-link, .form, .site-footer__links {
    display: none;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
