/* Hammond Recovery Solutions
   Tokens, base, layout, components, motion. */

:root {
  /* Colour */
  --ink: #10302a;
  --ink-soft: #2b4a42;
  --muted: #44584f;
  --paper: #f3f6f1;
  --paper-deep: #e6ede4;
  --white: #ffffff;
  --green: #1f6b52;
  --green-dark: #17523f;
  --green-deep: #0c2620;
  --brass: #b8862b;
  --brass-light: #ddbb6c;
  --stamp: #9c3b2e;
  --rule: #c9d4cb;
  --error: #a32a1f;

  /* Type */
  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --font-serif: "Libre Caslon Text", Georgia, serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-sm: 0.9375rem;
  --text-base: 1.125rem;
  --text-lg: clamp(1.2rem, 0.5vw + 1.1rem, 1.375rem);
  --text-h3: clamp(1.3rem, 0.6vw + 1.15rem, 1.5rem);
  --text-h2: clamp(2rem, 2.6vw + 1.2rem, 3.25rem);
  --text-h1: clamp(2.5rem, 4.6vw + 1.2rem, 4.75rem);

  /* Space (8px rhythm) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-6: 3rem;
  --s-8: 4rem;
  --section: clamp(4rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 74rem;
  --measure: 38rem;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.8, 0.2);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;

  --header-h: 4.5rem;
  color-scheme: light;
}

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

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

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.008em;
}

h3 {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--t-fast) ease;
}

a:hover {
  color: var(--ink);
}

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

.on-dark :focus-visible {
  outline-color: var(--brass-light);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 6px;
}

.skip:focus {
  top: 1rem;
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose ul {
  padding-left: 1.2em;
  margin: 1.1em 0 0;
}

.prose li + li {
  margin-top: 0.5em;
}

.legal-title {
  font-size: clamp(2.2rem, 3vw + 1.2rem, 3.25rem);
  max-width: none;
}

.small {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease,
    border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.btn-call {
  background: var(--green);
  color: var(--white);
}

.btn-call:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* Phone numbers and amounts use the serif: its zero has no slash */
.num,
.statement-row dd {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}

.btn .num {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-lg {
  min-height: 4rem;
  padding-inline: 2rem;
  font-size: var(--text-lg);
}

.btn-quiet {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--ink);
  color: var(--white);
}

.btn-brass {
  background: var(--brass-light);
  color: var(--green-deep);
}

.btn-brass:hover {
  background: var(--white);
  color: var(--green-deep);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) ease, box-shadow var(--t-med) ease;
  view-transition-name: site-header;
}

.site-header.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 6px 24px -18px rgba(16, 48, 42, 0.5);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: 3.25rem;
  flex: none;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.brand-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--muted);
}

.nav-list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.45rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-call {
  min-height: 2.875rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.875rem;
  height: 2.875rem;
  padding: 0;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-toggle .bar {
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease;
  transform-origin: 12px 12px;
}

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

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

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

@media (max-width: 61.99rem) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-call .num {
    display: none;
  }

  .header-call {
    width: 2.875rem;
    padding: 0;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -22px rgba(16, 48, 42, 0.55);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-fast) ease, transform var(--t-med) var(--ease-out),
      visibility 0s linear var(--t-med);
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .nav-list a {
    width: 100%;
    min-height: 3.25rem;
    padding: 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.125rem;
  }

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

  .nav-list a[aria-current="page"] {
    font-weight: 700;
    color: var(--green-dark);
  }
}

@media (max-width: 26rem) {
  .brand-sub {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) var(--section);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero-copy .lede {
  margin-top: var(--s-3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-4);
}

.hero-note {
  margin-top: var(--s-2);
}

.hero-figure {
  position: relative;
  justify-self: center;
  width: min(100%, 27rem);
}

.guilloche {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150%;
  max-width: none;
  transform: translate(-50%, -50%);
  color: var(--brass);
  opacity: 0.5;
  pointer-events: none;
}

.guilloche path {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* Animated pattern on pages without a header band */

.section-deco {
  position: relative;
  overflow: hidden;
}

.section-deco > .wrap {
  position: relative;
  z-index: 1;
}

.guilloche-corner {
  left: auto;
  right: -9rem;
  top: -5rem;
  width: 36rem;
  transform: none;
}

@media (max-width: 47.99rem) {
  .guilloche-corner {
    right: -12rem;
    top: -8rem;
    width: 28rem;
    opacity: 0.3;
  }
}

/* Sale statement */

.statement {
  position: relative;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 var(--white) inset, 0 30px 60px -40px rgba(16, 48, 42, 0.55),
    0 2px 6px rgba(16, 48, 42, 0.06);
}

.statement::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--paper-deep);
  border-radius: 3px;
  pointer-events: none;
}

.statement-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--ink);
}

.statement-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
}

.statement-rows {
  margin: 0;
  padding: var(--s-2) 0 0;
}

.statement-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.7rem;
}

.statement-row dt {
  flex: 0 1 auto;
  min-width: 0;
}

.statement-row .leader {
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-0.3em);
}

.statement-row dd {
  margin: 0;
  flex: none;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.statement-total {
  position: relative;
  container-type: inline-size;
  margin-top: var(--s-1);
  padding-top: var(--s-2);
}

.statement-total::before,
.statement-total::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
}

.statement-total::before {
  top: 0;
}

.statement-total::after {
  top: 4px;
}

.statement-total-label {
  display: block;
  color: var(--muted);
}

.statement-amount {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 14cqi, 4rem);
  line-height: 1;
  color: var(--green-dark);
  font-variant-numeric: tabular-nums lining-nums;
}

.statement-stamp {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-7deg);
}

.statement-foot {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section-white {
  background: var(--white);
  border-block: 1px solid var(--rule);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head .lede {
  margin-top: var(--s-2);
}

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.split .lede {
  margin-top: var(--s-3);
}

.defs {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.defs > div {
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--rule);
}

.defs dt {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
}

.defs dd {
  margin: 0.5rem 0 0;
  color: var(--ink-soft);
}

/* Steps: a real sequence, so it is numbered */

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: 50rem;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: calc(1.625rem - 1px);
  top: 1.5rem;
  bottom: 1.5rem;
  width: 2px;
  background: var(--rule);
}

.steps::after {
  background: var(--green);
  transform-origin: top;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  counter-increment: step;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: var(--paper);
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
}

.section-white .step::before {
  background: var(--white);
}

.step h3 {
  padding-top: 0.6rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* Home: who you will work with */

.meet {
  background: var(--paper-deep);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.meet-row {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.meet-photo {
  flex: none;
  width: clamp(5.5rem, 12vw, 8.5rem);
  height: auto;
  aspect-ratio: 1;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px -18px rgba(16, 48, 42, 0.6);
}

.meet-title {
  font-size: clamp(1.45rem, 1.4vw + 1.1rem, 2.1rem);
}

.meet-row p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.meet-row p + p {
  margin-top: 0;
}

/* Checks */

.checks {
  display: grid;
  gap: var(--s-3) clamp(2rem, 5vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.checks li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}

.checks svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.1rem;
  color: var(--green);
}

.checks strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  line-height: 1.25;
}

.checks span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

/* Fee */

.fee {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .fee {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.fee-line {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.aside-note {
  margin-top: var(--s-3);
  padding: var(--s-3);
  background: var(--paper);
  border-left: 4px solid var(--brass);
  border-radius: 0 6px 6px 0;
}

.section-white .aside-note {
  background: var(--paper);
}

.reassure {
  max-width: 52rem;
}

.reassure .lede {
  margin-top: var(--s-3);
  max-width: 44rem;
}

.reassure p + p {
  margin-top: var(--s-3);
}

.faq-group {
  margin: clamp(2.5rem, 6vw, 4rem) 0 var(--s-3);
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
}

.faq-group:first-child {
  margin-top: 0;
}

/* About: founder */

.about-person {
  align-items: start;
}

@media (min-width: 56rem) {
  .about-person {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

.portrait {
  margin: 0;
  max-width: 22rem;
}

.portrait-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--white) url("../assets/seal.svg") center / 150% no-repeat;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 30px 60px -40px rgba(16, 48, 42, 0.55);
  overflow: hidden;
}

.portrait-frame img {
  width: 38%;
  height: auto;
  opacity: 0.85;
}

.portrait > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px -40px rgba(16, 48, 42, 0.55);
}

.portrait figcaption {
  margin-top: var(--s-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-h3);
}

.defs-row {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

@media (min-width: 48rem) {
  .defs-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4rem);
    border-top: 0;
  }

  .defs-row > div {
    border-top: 2px solid var(--ink);
  }
}

/* Question and answer sections */

.qa-lead {
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  max-width: var(--measure);
}

.qa-answer p + p {
  margin-top: 1.1em;
}

.qa-answer p:not(.qa-lead) {
  max-width: var(--measure);
  color: var(--ink-soft);
}

.qa-extra {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.qa-extra-title {
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
  font-weight: 400;
}

.q-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--ink);
}

.q-index a {
  display: flex;
  align-items: center;
  min-height: 4rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.q-index a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* FAQ */

.faq {
  max-width: 50rem;
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 4rem;
  padding-block: 1rem;
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--green);
  transition: transform var(--t-med) var(--ease-out);
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 var(--s-3);
  max-width: var(--measure);
  color: var(--ink-soft);
}

.faq .answer ul {
  margin-bottom: 0;
  padding-left: 1.2em;
}

.faq .answer li + li {
  margin-top: 0.4em;
}

.faq .answer > * + * {
  margin-top: 0.9em;
}

@supports (interpolate-size: allow-keywords) {
  .faq details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }
}

.faq-more {
  margin-top: var(--s-4);
}

/* Call band */

.call-band {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--white);
  padding-block: clamp(1.6rem, 3.4vw, 3rem);
}

.call-band::before {
  content: "";
  position: absolute;
  right: -6rem;
  top: 50%;
  width: 22rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../assets/seal.svg") center / contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.call-band .wrap {
  position: relative;
}

.call-band h2 {
  max-width: 18ch;
  font-size: clamp(1.3rem, 1.2vw + 0.7rem, 1.6rem);
}

.call-band p {
  margin-top: 0.4rem;
  max-width: 34rem;
  color: #cfdcd5;
  font-size: 0.9375rem;
}

.call-number {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--brass-light);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 2.95rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size var(--t-slow) var(--ease-out), color var(--t-fast) ease;
}

.call-number:hover {
  color: var(--white);
  background-size: 100% 2px;
}

.call-band .alt {
  margin-top: 0.7rem;
  font-size: 0.9375rem;
}

.call-band .alt a {
  color: var(--white);
}

/* Page head (inner pages) */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}

.page-head::after {
  content: "";
  position: absolute;
  right: -10rem;
  top: 50%;
  width: 34rem;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("../assets/seal.svg") center / contain no-repeat;
  opacity: 0.4;
  pointer-events: none;
}

.page-head .wrap {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 4vw + 1.1rem, 4rem);
}

.page-head .lede {
  margin-top: var(--s-3);
}

@media (max-width: 47.99rem) {
  .page-head::after {
    opacity: 0.18;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

@media (min-width: 60rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.contact-phone {
  display: inline-block;
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.contact-list {
  margin: var(--s-4) 0 0;
  border-top: 2px solid var(--ink);
}

.contact-list > div {
  padding-block: var(--s-2);
  border-bottom: 1px solid var(--rule);
}

.contact-list dt {
  font-size: var(--text-sm);
  color: var(--muted);
}

.contact-list dd {
  margin: 0.15rem 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.form-card h2 {
  font-size: clamp(1.6rem, 1.4vw + 1.2rem, 2.1rem);
}

.form-card > p {
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.form-grid {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

@media (min-width: 40rem) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-wide {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-weight: 700;
}

.field .hint {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 2px solid #8a9c92;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  transition: border-color var(--t-fast) ease;
}

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

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field .error {
  display: block;
  margin-top: 0.4rem;
  color: var(--error);
  font-size: var(--text-sm);
  font-weight: 700;
}

.field .error:empty {
  display: none;
}

.req {
  color: var(--error);
}

.error-summary {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border: 2px solid var(--error);
  border-radius: 6px;
  background: #fbf1ef;
}

.error-summary ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2em;
}

.error-summary a {
  color: var(--error);
  font-weight: 700;
}

.form-actions {
  margin-top: var(--s-4);
}

.form-status {
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 4px solid var(--green);
  background: var(--paper);
  border-radius: 0 6px 6px 0;
}

[hidden] {
  display: none !important;
}

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

.site-footer {
  background: var(--paper-deep);
  padding-block: var(--s-4) var(--s-3);
  font-size: var(--text-sm);
}

.footer-grid {
  display: grid;
  gap: var(--s-3) var(--s-4);
  align-items: start;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: auto;
  height: 4.5rem;
}

.site-footer h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.footer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-3);
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Addresses use the serif so the zeros have no slash, like the phone number */
.addr,
.footer-address {
  font-family: var(--font-serif);
  font-variant-numeric: lining-nums;
}

.footer-address {
  margin-top: 0.25rem;
  font-style: normal;
  line-height: 1.5;
  color: var(--ink);
}

.footer-legal {
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-legal p + p {
  margin-top: 0.4rem;
}

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
  box-shadow: 0 -10px 30px -20px rgba(16, 48, 42, 0.6);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}

.callbar.is-shown {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.callbar .btn {
  width: 100%;
}

@media (min-width: 48rem) {
  .callbar {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  .site-footer {
    padding-bottom: 6.5rem;
  }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes rule {
  from {
    transform: scaleX(0);
  }
}

@keyframes stamp {
  0% {
    opacity: 0;
    transform: rotate(-7deg) scale(1.7);
  }
  60% {
    opacity: 1;
    transform: rotate(-7deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: rotate(-7deg) scale(1);
  }
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: the statement works out the surplus. */
  .hero-copy > * {
    animation: rise var(--t-slow) var(--ease-out) both;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 90ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 180ms;
  }

  .hero-copy > :nth-child(4) {
    animation-delay: 260ms;
  }

  .statement {
    animation: rise 900ms var(--ease-out) 200ms both;
  }

  .guilloche path {
    animation: draw 2600ms var(--ease-out) 300ms both;
  }

  .guilloche path:nth-child(2) {
    animation-delay: 500ms;
  }

  .guilloche path:nth-child(3) {
    animation-delay: 700ms;
  }

  .statement-row {
    animation: rise 500ms var(--ease-out) both;
  }

  .statement-row:nth-child(1) {
    animation-delay: 650ms;
  }

  .statement-row:nth-child(2) {
    animation-delay: 850ms;
  }

  .statement-total::before {
    animation: rule 500ms var(--ease-out) 1150ms both;
  }

  .statement-total::after {
    animation: rule 500ms var(--ease-out) 1250ms both;
  }

  .statement-total > * {
    animation: fade 500ms ease 1300ms both;
  }

  .statement-stamp {
    animation: stamp 420ms var(--ease-out) 2500ms both;
  }

  .page-head h1,
  .page-head .lede {
    animation: rise var(--t-slow) var(--ease-out) both;
  }

  .page-head .lede {
    animation-delay: 90ms;
  }

  /* Scroll reveals, only once JS has confirmed it is running */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  .js [data-reveal].is-in,
  .js.reveal-all [data-reveal] {
    opacity: 1;
    transform: none;
  }

  /* The line through the steps fills as the list scrolls through view */
  @supports (animation-timeline: view()) {
    .steps::after {
      animation: grow linear both;
      animation-timeline: view();
      animation-range: cover 18% cover 68%;
    }
  }

  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 160ms ease-in both vt-out;
  }

  ::view-transition-new(root) {
    animation: 320ms var(--ease-out) both vt-in;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .callbar,
  .call-band,
  .guilloche {
    display: none;
  }
}
