/* ==========================================================================
   Count On Me Pvt. Ltd.
   Hand-written stylesheet. No build step, no framework.
   Palette: bone ground, clay accent, ink text.
   Type:    Fraunces (display) + Inter (text).
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  --bone:         #e9efef;  /* page ground */
  --sand:         #dae4e4;  /* alternate bands */
  --shell:        #c2d3d4;  /* image placeholders, wells */
  --ink:          #0f1c1c;  /* headings, dark bands */
  --muted:        #4c5c5d;  /* body text on light */
  --faint:        #566869;  /* captions on light; 4.53:1 on sand */
  --faint-dark:   #94a7a8;  /* the same role on the ink footer; 6.9:1 */
  --rule:         #cad8d8;  /* decorative hairlines */
  --field:        #768d8f;  /* control borders; 3:1 on both white and bone */
  --accent:       #2b6d71;  /* brand teal, taken from the logo ring */
  --accent-deep:  #23595d;  /* pressed / hover */
  --accent-on-dark: #3c8e93;  /* accent on ink bands; 4.56:1 */
  --accent-wash:  #d3e5e6;  /* accent tint */
  --on-dark:      #c0cbcb;  /* body text on ink */

  /* Channel triples for rgba(). Keep in step with --bone and --ink above:
     hard-coded rgba() copies were missed when the palette was recoloured. */
  --bone-rgb: 233, 239, 239;
  --ink-rgb:   15,  28,  28;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);

  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.85vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.75vw, 2.85rem);
  --step-4: clamp(2.35rem, 1.55rem + 3.5vw, 4.25rem);
}

/* --- Reset -------------------------------------------------------------- */

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

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

body {
  margin: 0;
  /* Sticky footer: on short pages (contact, thank you) the footer would
     otherwise float up and leave the bone background showing beneath it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bone);
  color: var(--muted);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  text-wrap: balance;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0;
  font-variation-settings: "opsz" 40;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1.15em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

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

/* The accent is too dark to show on ink; use the light sibling. The footer is
   ink too but carries no band class, so it needs naming explicitly — without
   it, footer focus rings sit at 2.93:1 and fail WCAG 1.4.11. */
.site-foot :focus-visible { outline-color: var(--accent-on-dark); }

/* The tinted band is light, so the standard accent ring applies (3.84:1). */

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band--sand { background: var(--sand); }
/* Same tone as the software and credentials strips, so the three read as one
   family rather than three different greys. */
.band--tint { background: var(--shell); }
.band--tight { padding-block: clamp(2.5rem, 4vw, 3.5rem); }

/* Dark type now the band is light: ink 11.27:1, muted 4.53:1 on --shell. */
.band--tint h2 { color: var(--ink); }
.band--tint p  { color: var(--muted); }




.lede { font-size: var(--step-1); line-height: 1.62; }


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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease;
}
.btn:hover { background: var(--accent-deep); }

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

/* Named for the dark bands it was built for; those are light now, so it is the
   solid accent fill - 3.84:1 against the band, 5.95:1 for the label. Keeping the
   old bone fill as the base would render bone-on-bone at 1.33:1 anywhere this
   class was used outside a tinted band. */
.btn--light { background: var(--accent); color: #fff; }
.btn--light:hover { background: var(--accent-deep); }


/* A text link that reads as a link without an appended arrow. */
.tlink {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}
.tlink:hover { color: var(--accent-deep); }

/* A text link that stays legible on the ink band. */
/* --accent is only 3.84:1 on the tint and fails body text; the deeper step is
   5.10:1. */
.tlink--light { color: var(--accent-deep); }
.tlink--light:hover { color: var(--ink); }

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(var(--bone-rgb), 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.nav-desk {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-desk a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
}
.nav-desk a:hover { color: var(--ink); background: var(--sand); }
.nav-desk a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.55rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle svg[hidden] { display: none; }

.nav-mobile { border-top: 1px solid var(--rule); padding-block: 0.6rem 1.1rem; }
.nav-mobile a {
  display: block;
  padding: 0.7rem 0.25rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile a:last-of-type { border-bottom: 0; }

@media (max-width: 860px) {
  .nav-desk { display: none; }
  .nav-toggle { display: block; }
}

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

.hero { padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero .lede { color: var(--muted); margin-bottom: 1.9rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.hero-figure img.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  background: var(--shell);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
}

/* --- Credentials strip -------------------------------------------------- */

.creds {
  background: var(--sand);
  border-block: 1px solid var(--rule);
  padding-block: 1rem;
}
.creds-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  flex-wrap: wrap;
}
.creds-badge { display: flex; align-items: center; gap: 0.6rem; }
.creds-badge img { height: 38px; width: auto; }

.creds span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}
.creds .creds-badge span { font-weight: 600; color: var(--ink); }
.creds b { font-weight: 600; color: var(--ink); }
.creds .sep { width: 1px; height: 1.6rem; background: var(--field); }
@media (max-width: 560px) { .creds .sep { display: none; } }

/* --- Software row ------------------------------------------------------- */
/* Wordmarks are text today; swapping in <img> logos needs no layout change. */

/* Sits between the sand team band and the bone contact section, so neither of
   those two tones will separate it from both neighbours. --shell is the third
   step of the same palette and gives it a clean edge top and bottom.
   The contact band below brings its own generous top padding, so the strip's
   own is kept modest - stacking both left ~170px of dead space. */
.software {
  background: var(--shell);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
}
.software + .band { padding-top: clamp(2.5rem, 5vw, 4rem); }

.software-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.software-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}
/* Sized individually rather than to a shared height: these run from a 1:1
   circular badge to a 4.1:1 wordmark, so equal pixel height would leave the
   circle looking tiny next to the long marks. Values are optical, by eye. */
.software-list img { width: auto; display: block; }
.software-list .sw-xero       { height: 44px; }
.software-list .sw-quickbooks { height: 37px; }
.software-list .sw-sage       { height: 34px; }
.software-list .sw-freeagent  { height: 32px; }
.software-list .sw-dext       { height: 34px; }

/* Once the row wraps, space-between strands the last row; centre instead. */
@media (max-width: 860px) {
  .software-list { justify-content: center; }
  .software-list .sw-xero       { height: 46px; }
  .software-list .sw-quickbooks { height: 38px; }
  .software-list .sw-sage       { height: 36px; }
  .software-list .sw-freeagent  { height: 33px; }
  .software-list .sw-dext       { height: 36px; }
}

/* --- Two-column prose --------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* --- Service rows ------------------------------------------------------- */

.services { margin-top: clamp(1.75rem, 4vw, 2.75rem); }

.srow {
  display: grid;
  /* Number, name, description. The description sits in its own column so the
     row fills the full width without pushing lines past a readable measure. */
  grid-template-columns: 3.25rem minmax(9rem, 1fr) 1.65fr;
  gap: 0.5rem 2rem;
  align-items: start;
  padding-block: clamp(1.35rem, 3vw, 2rem);
  border-bottom: 1px solid var(--rule);
}
.srow:first-child { border-top: 1px solid var(--rule); }

.srow-n {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 0.45rem;
}
/* Service headings are h3 on the homepage (nested under "What we do") and h2
   on the services page, where the h1 already carries that line. Same look. */
.srow h2,
.srow h3 { font-size: var(--step-2); margin-bottom: 0; }
.srow p { color: var(--muted); max-width: none; }

@media (max-width: 820px) {
  .srow { grid-template-columns: 3.25rem 1fr; gap: 0.5rem 0.5rem; }
  .srow p { grid-column: 2; margin-top: 0.55rem; }
}

/* --- Testimonials ------------------------------------------------------- */

/* --- Testimonial slider ------------------------------------------------- */
/* Two cards in view at a time, scroll-snapped. The scroller itself does the
   work; the buttons only nudge it, so the section still functions with
   JavaScript off — it stays a swipeable, keyboard-scrollable row. */

.quotes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.quotes-nav { display: flex; gap: 0.5rem; flex-shrink: 0; }
/* Author `display` beats the user-agent [hidden] rule, so without this the
   controls render before JS removes the attribute — the dead-button state the
   attribute exists to prevent. Same guard as .nav-toggle svg[hidden]. */
.quotes-nav[hidden] { display: none; }

.q-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--field);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.q-btn svg { width: 20px; height: 20px; display: block; }
.q-btn:hover { background: #fff; border-color: var(--ink); }
.q-btn[disabled] { opacity: 0.3; cursor: default; background: transparent; border-color: var(--field); }

.quotes {
  --q-gap: clamp(1rem, 2vw, 1.5rem);
  display: flex;
  gap: var(--q-gap);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Room for the focus ring on the first and last card, which a plain
     overflow container would clip. */
  padding: 4px;
  margin-inline: -4px;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quotes::-webkit-scrollbar { display: none; }

.quote {
  /* Two in view, sharing one gap between them. */
  flex: 0 0 calc((100% - var(--q-gap)) / 2);
  scroll-snap-align: start;
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  /* Cards in view stretch to the tallest. Without the column the attributions
     would sit wherever each quote happens to end; this pushes them to a common
     line at the foot of each card. */
  display: flex;
  flex-direction: column;
}
.quote blockquote { margin: 0; flex: 1 0 auto; }
.quote blockquote p {
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.quote figcaption {
  margin-top: 1.35rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--faint);
}

@media (max-width: 760px) {
  .quotes-head { display: block; }
  .quotes-nav { margin-top: 1.25rem; }
  .quote { flex-basis: 100%; }
}

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

/* --- Why us ------------------------------------------------------------- */
/* Ten parallel points, not a sequence, so no numbering. */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2vw, 1.25rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
@media (max-width: 800px) { .reasons { grid-template-columns: 1fr; } }

/* Same card language as the quotes and the credential card. */
.reason {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
}
.reason h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.reason p {
  margin: 0;
  max-width: none;
  font-size: 0.9375rem;
  line-height: 1.62;
}

/* --- Process steps ------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.step-n {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0.85rem;
}
.step h3 { font-size: var(--step-1); line-height: 1.25; margin-bottom: 0.4rem; }
.step p { font-size: 0.9375rem; line-height: 1.6; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* --- Scope split -------------------------------------------------------- */

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
.scope-col { border-radius: 10px; padding: 1.4rem 1.5rem; }
.scope-col--ours { background: #fff; border: 1px solid var(--rule); }
.scope-col--yours { background: var(--shell); }
.scope-col h3 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.85rem; }
.scope-col ul { margin: 0; padding: 0; list-style: none; }
.scope-col li {
  padding-block: 0.42rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(var(--ink-rgb), 0.07);
}
.scope-col li:last-child { border-bottom: 0; }
@media (max-width: 640px) { .scope { grid-template-columns: 1fr; } }

/* --- Deadline table ----------------------------------------------------- */

.deadlines { margin-top: clamp(1.5rem, 3vw, 2.25rem); overflow-x: auto; }
.deadlines table { width: 100%; border-collapse: collapse; min-width: 26rem; }
.deadlines th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--faint);
  padding: 0 0 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.deadlines td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  vertical-align: top;
}
.deadlines td:first-child {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  width: 8.5rem;
}
/* The caption is the table's accessible name, so it stays short - a screen
   reader announces it before every cell. The disclaimer sits after the table
   instead, where it is also outside the horizontal scroller that was clipping
   it on narrow screens. */
.deadlines caption {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--faint);
  padding-bottom: 0.9rem;
}
.deadlines-note {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--faint);
  max-width: 68ch;
}

/* --- Team --------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.member { text-align: center; }
.member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--shell);
  margin-bottom: 0.8rem;
}
.member h3 { font-family: var(--sans); font-size: 0.9375rem; font-weight: 600; line-height: 1.25; margin-bottom: 0.15rem; }
.member p { font-size: 0.8125rem; color: var(--faint); margin: 0; }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); } }


/* --- Callout band ------------------------------------------------------- */

.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.callout div { flex: 1 1 22rem; }
.callout p { max-width: none; }
.callout h2 { margin-bottom: 0.7rem; }

/* --- Credential card ---------------------------------------------------- */

.cred-card {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  flex-wrap: wrap;
}
.cred-card img { height: 62px; width: auto; flex-shrink: 0; }
.cred-card > div { flex: 1 1 16rem; }
.cred-card h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.25; margin-bottom: 0.3rem; }
.cred-card p { font-size: 0.9375rem; margin: 0; max-width: none; }

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding-block: 0.6rem; border-bottom: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: var(--accent); text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus,
.field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.field-error {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9c2d22;
  margin-top: 0.3rem;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b4574a; }

.map-embed {
  width: 100%;
  height: 300px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  margin-top: 1.5rem;
}

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

/* When a page is shorter than the viewport, main grows to fill the slack. That
   slack used to sit inside main as bare body background — a bone strip between
   a trailing ink band and the ink footer. Handing the growth to the last
   section instead means the filler always takes that section's own colour. */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
/* .wrap sets `margin-inline: auto`, and an auto margin on a flex item's cross
   axis suppresses the default stretch — so sections sized to fit-content
   instead of filling main. Pages with wide content clamped to full width
   anyway and looked fine; contact.html collapsed to 432px, inset, under its
   own full-width heading. */
main > * { width: 100%; }
main > :last-child { flex-grow: 1; }

.site-foot {
  margin-top: auto;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.75rem;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(1.75rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--bone-rgb), 0.14);
}

.foot-brand .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bone);
  display: block;
  margin-bottom: 0.15rem;
}
.foot-brand .addr { display: block; font-size: 0.8125rem; color: var(--faint-dark); }

.foot-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.foot-nav a { font-size: 0.9375rem; color: var(--on-dark); text-decoration: none; }
.foot-nav a:hover { color: var(--bone); text-decoration: underline; }

.foot-legal { padding-top: 1.5rem; font-size: 0.8125rem; color: var(--faint-dark); max-width: none; }

.foot-social {
  display: flex;
  gap: 0.25rem;
  /* The negative left margin pulls the first icon's padding back to the text
     edge above it; the negative bottom does the same against the rule below.
     A bare margin-top left the list's default 1em bottom margin in place,
     which is what opened the gap over the divider. */
  margin: 0.7rem 0 -0.5rem -0.55rem;
  list-style: none;
  padding: 0;
}
.foot-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  color: var(--on-dark);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.foot-social a:hover { background: rgba(var(--bone-rgb), 0.12); color: var(--bone); }
.foot-social svg { display: block; width: 18px; height: 18px; fill: currentColor; }

/* --- Page intro (inner pages) ------------------------------------------- */

.page-intro { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 2.75rem); }
.page-intro h1 { margin-bottom: 0.9rem; }
.page-intro p { font-size: var(--step-1); line-height: 1.6; max-width: none; }

/* --- Motion ------------------------------------------------------------- */
/* One orchestrated reveal on page load. No scroll-triggered animation. */

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

.reveal > * { animation: rise 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.reveal > *:nth-child(2) { animation-delay: 0.07s; }
.reveal > *:nth-child(3) { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .reveal > * { animation: none !important; }
  html { scroll-behavior: auto !important; }
  * { transition-duration: 0.01ms !important; }
}

html { scroll-behavior: smooth; }

/* --- Spam trap ---------------------------------------------------------- */
/* Positioned off-screen rather than display:none — some bots skip hidden
   fields but still fill ones they can "see" in the DOM. aria-hidden and
   tabindex="-1" keep it away from screen readers and keyboard users. */

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Utility ------------------------------------------------------------ */

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bone);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* --- Spacing helpers ---------------------------------------------------- */

.pushed { margin-top: clamp(1.25rem, 3vw, 1.75rem); max-width: none; }
.pb-band { padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
