/* ==========================================================================
   Ales & Co. shared stylesheet
   One file for every page. Colors and sizes are set once in :root below.
   ========================================================================== */

:root {
  /* Brand colors */
  --navy: #16324A;
  --navy-deep: #0F2438;
  --copper: #B8865A;        /* buttons and small accents only */
  --copper-light: #D4A878;  /* accents on navy */
  --copper-text: #7F5631;   /* darker copper for small text on cream (passes WCAG AA) */
  --cream: #FAF6F0;
  --cream-warm: #F5EDE0;

  /* Supporting tones built from the brand colors */
  --rule: rgba(22, 50, 74, 0.18);
  --rule-strong: rgba(22, 50, 74, 0.35);
  --text-muted: #3E5568;    /* navy, softened; 7.3:1 on cream */
  --focus: var(--navy);

  /* Type */
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --text-body: 1.125rem;    /* 18px */
  --text-small: 1rem;
  --text-h3: 1.375rem;
  --text-h2: clamp(1.75rem, 1.35rem + 1.4vw, 2.25rem);
  --text-h1: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  --text-hero: clamp(2.6rem, 1.4rem + 4.2vw, 4.75rem);

  /* Layout */
  --measure: 38rem;         /* about 65 characters of body text */
  --container: 75rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-space: clamp(4rem, 2.5rem + 6vw, 7rem);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); line-height: 1.25; }

p {
  margin: 0 0 1rem;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--navy);
}

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

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

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--cream);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

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

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

.section-warm {
  background: var(--cream-warm);
}

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

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

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--copper-text);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 2.5rem;
}

/* Two columns: heading on the left, text on the right */
.split {
  display: grid;
  gap: 1.5rem 4rem;
}

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

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

.button {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--copper);
  color: var(--navy-deep);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--copper-light);
  color: var(--navy-deep);
}

.button-small {
  padding: 0.65rem 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.text-link {
  font-weight: 600;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 2.125rem;
}

.menu-toggle {
  display: none;
  padding: 0.6rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.site-nav ul a {
  display: inline-block;
  padding-block: 0.4rem;
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration-color: transparent;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  text-decoration-color: var(--copper);
}

/* Mobile menu */
@media (max-width: 1079px) {
  .js .menu-toggle {
    display: inline-block;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--gutter) 2rem;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
  }

  .js .site-nav ul a {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--rule);
    font-size: var(--text-body);
  }

  .js .site-nav .button {
    display: block;
  }

  /* Without JavaScript the links simply wrap under the logo */
  .no-js .header-inner {
    flex-wrap: wrap;
    padding-block: 1rem;
  }

  .no-js .site-nav,
  .no-js .site-nav ul {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 400px) {
  .brand img {
    height: 1.6rem;
  }
}

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

.site-footer {
  --focus: var(--copper-light);
  background: var(--navy-deep);
  color: rgba(250, 246, 240, 0.85);
  font-size: var(--text-small);
  padding-top: var(--section-space);
}

.site-footer a {
  color: var(--cream);
  text-decoration-color: transparent;
}

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

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

.footer-brand img {
  width: 9.5rem;
  margin-bottom: 1.25rem;
}

.footer-tagline {
  margin-bottom: 0.75rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.footer-brand p:last-child {
  max-width: 22rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--copper-light);
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.6rem;
}

.site-footer address {
  font-style: normal;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 4rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  font-size: 0.9375rem;
}

.footer-legal p {
  margin: 0;
}

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

.page-intro {
  padding-block: clamp(3.5rem, 2rem + 5vw, 6rem) clamp(3rem, 2rem + 3vw, 4.5rem);
}

.page-intro h1 {
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(4rem, 2rem + 7vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem);
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 1.75rem;
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero .lead {
  max-width: 34rem;
}

/* Trust strip */
.trust-strip {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.trust-strip li {
  padding: 1.5rem 0;
  font-size: var(--text-small);
  color: var(--text-muted);
}

.trust-strip li + li {
  border-top: 1px solid var(--rule);
}

@media (min-width: 800px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-strip li {
    padding: 1.75rem 2rem;
  }

  .trust-strip li:first-child {
    padding-left: 0;
  }

  .trust-strip li + li {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Ruled grids (no boxes, no shadows) ---------- */

.ruled-grid {
  display: grid;
  gap: 0 3.5rem;
  list-style: none;
}

.ruled-grid > * {
  padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--rule-strong);
}

@media (min-width: 760px) {
  .ruled-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .ruled-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.ruled-grid h3 a {
  text-decoration-color: transparent;
}

.ruled-grid h3 a:hover {
  text-decoration-color: var(--copper);
}

.ruled-grid p {
  color: var(--text-muted);
}

/* Short copper rule above each item */
.accent-grid {
  display: grid;
  gap: 2.5rem 3.5rem;
  list-style: none;
}

@media (min-width: 760px) {
  .accent-grid { grid-template-columns: repeat(3, 1fr); }
}

.accent-grid > *::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1.25rem;
  background: var(--copper);
}

.accent-grid p {
  color: var(--text-muted);
}

/* ---------- Navy band (Home Systems band) ---------- */

.section-navy {
  --focus: var(--copper-light);
  background: var(--navy);
  color: var(--cream);
}

.section-navy .eyebrow {
  color: var(--copper-light);
}

.section-navy p {
  color: rgba(250, 246, 240, 0.88);
}

.section-navy a:not(.button) {
  color: var(--cream);
  text-decoration-color: var(--copper-light);
}

/* ---------- Statement (Zero judgment) ---------- */

.statement h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  line-height: 1.1;
}

.statement p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

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

.faq {
  max-width: 48rem;
  border-bottom: 1px solid var(--rule-strong);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.35rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--copper-text);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  max-width: var(--measure);
  padding-bottom: 1.5rem;
  color: var(--text-muted);
}

/* ---------- Closing call to action ---------- */

.closing h2 {
  max-width: 28ch;
}

.closing .prose {
  margin-top: 1rem;
}

.close-lead {
  max-width: 30ch;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.25;
}

/* ---------- Numbered steps (real sequences only) ---------- */

.steps {
  list-style: none;
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1.25rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule-strong);
  counter-increment: step;
}

.steps > li:last-child {
  border-bottom: 1px solid var(--rule-strong);
}

.steps > li::before {
  content: counter(step);
  color: var(--copper-text);
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
}

.steps h2,
.steps h3 {
  margin-bottom: 0.5rem;
  font-size: var(--text-h3);
}

.steps p {
  max-width: var(--measure);
  color: var(--text-muted);
}

@media (min-width: 760px) {
  .steps > li {
    grid-template-columns: 5rem 1fr;
  }

  .steps > li::before {
    font-size: 3rem;
  }
}

/* ---------- Lists ---------- */

.checklist,
.plain-list {
  list-style: none;
  max-width: var(--measure);
}

.checklist li,
.plain-list li {
  position: relative;
  padding-left: 1.6rem;
}

.checklist li + li,
.plain-list li + li {
  margin-top: 0.85rem;
}

.checklist li::before,
.plain-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--copper-text);
  font-weight: 600;
}

/* ---------- Services ---------- */

.service-rows {
  border-bottom: 1px solid var(--rule-strong);
}

.service-row {
  display: grid;
  gap: 0.5rem 3rem;
  padding-block: 2rem;
  border-top: 1px solid var(--rule-strong);
}

.service-row h3 {
  margin: 0;
}

.service-row p {
  max-width: var(--measure);
  margin: 0;
  color: var(--text-muted);
}

.service-row .fee {
  color: var(--navy);
  font-size: var(--text-small);
}

.service-row .fee span {
  color: var(--copper-text);
  font-weight: 600;
}

@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 16rem 1fr 11rem;
  }
}

.packages {
  display: grid;
  list-style: none;
  border-top: 2px solid var(--navy);
}

.package {
  padding: 2rem 0;
}

.package + .package {
  border-top: 1px solid var(--rule-strong);
}

@media (min-width: 860px) {
  .packages {
    grid-template-columns: repeat(3, 1fr);
  }

  .package {
    padding: 2rem 2rem 2.25rem;
  }

  .package:first-child {
    padding-left: 0;
  }

  .package + .package {
    border-top: 0;
    border-left: 1px solid var(--rule-strong);
  }
}

.package dl {
  margin: 1.25rem 0 0;
}

.package dt {
  color: var(--copper-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.package dd {
  margin: 0.15rem 0 1.1rem;
}

.package .price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  line-height: 1.2;
}

.package .price small {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--text-muted);
}

.pricing-note {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--text-muted);
}

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

.about-intro {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: start;
}

@media (min-width: 860px) {
  .about-intro {
    grid-template-columns: 7fr 4fr;
  }
}

.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 22rem;
  padding: 1.5rem;
  background: var(--cream-warm);
  border: 1px dashed var(--copper-text);
  color: var(--copper-text);
  font-size: var(--text-small);
  text-align: center;
}

/* ---------- Start ---------- */

.booking {
  padding: clamp(2rem, 1rem + 3vw, 3rem);
  background: var(--cream);
  border: 1px solid var(--rule-strong);
}

.contact-list {
  list-style: none;
}

.contact-list li + li {
  margin-top: 0.75rem;
}

.contact-list span {
  display: inline-block;
  min-width: 8.5rem;
  color: var(--copper-text);
  font-weight: 600;
}

/* ---------- Placeholders (owner to fill in) ---------- */

.placeholder {
  padding: 1rem 1.25rem;
  border: 1px dashed var(--copper-text);
  background: var(--cream-warm);
  color: var(--copper-text);
  font-size: var(--text-small);
}

/* ---------- Small spacing utilities ---------- */

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

.h3-size {
  font-size: var(--text-h3);
}

.closing .actions:first-child {
  margin-top: 0;
}

/* ==========================================================================
   Round 2: visuals and layout variety
   ========================================================================== */

/* ---------- Home hero with working paper illustration ---------- */

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

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

.workpaper {
  position: relative;
  max-width: 28rem;
  margin: 0 0.75rem 0.75rem 0;
  padding: 1.75rem 1.75rem 1.5rem;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  font-size: 0.9375rem;
}

/* a second sheet peeking out behind, like a stack of working papers */
.workpaper::before {
  content: "";
  position: absolute;
  inset: 0.75rem -0.75rem -0.75rem 0.75rem;
  z-index: -1;
  background: var(--cream-warm);
  border: 1px solid var(--rule);
}

.wp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 3px double var(--navy);
}

.wp-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

.wp-meta {
  color: var(--copper-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.wp-rows {
  list-style: none;
  padding-block: 0.5rem;
}

.wp-rows li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.wp-item {
  flex: 1;
}

.wp-status {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.wp-status::before {
  content: "\2713";
  margin-right: 0.4rem;
  color: var(--copper-text);
  font-size: 1.05rem;
  font-weight: 600;
}

.wp-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.wp-sign {
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
}

/* ---------- Trust strip with tick marks ---------- */

.trust-strip li {
  position: relative;
  padding-left: 1.75rem;
}

.trust-strip li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--copper-text);
  font-weight: 600;
}

@media (min-width: 800px) {
  .trust-strip li {
    padding-left: 3.75rem;
  }

  .trust-strip li:first-child {
    padding-left: 1.75rem;
  }

  .trust-strip li::before {
    left: 2rem;
  }

  .trust-strip li:first-child::before {
    left: 0;
  }
}

/* ---------- Editorial service list ---------- */

@media (min-width: 900px) {
  .split-aside {
    position: sticky;
    top: 7rem;
  }
}

.service-list {
  list-style: none;
  border-bottom: 1px solid var(--rule-strong);
}

.service-list li {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule-strong);
}

.service-list h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
}

.service-list h3 a {
  text-decoration-color: transparent;
}

.service-list h3 a:hover {
  text-decoration-color: var(--copper);
}

.service-list p {
  max-width: var(--measure);
  color: var(--text-muted);
}

/* ---------- Systems band with tool diagram ---------- */

.systems-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .systems-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }
}

.systems-grid p {
  max-width: var(--measure);
}

.flow {
  --wire: var(--copper-light);
  --reach: 1.5rem;
  display: flex;
  align-items: center;
  margin: 0;
}

@media (min-width: 480px) {
  .flow {
    --reach: 2.75rem;
  }
}

.flow-tools {
  position: relative;
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

/* vertical line joining every tool */
.flow-tools::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  right: 0;
  border-right: 1px solid var(--wire);
}

.flow-tools li {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.5rem;
  margin-right: var(--reach);
  padding-inline: 1rem;
  border: 1px solid rgba(212, 168, 120, 0.55);
  border-radius: 2px;
  color: var(--cream);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.flow-tools li::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--reach);
  border-top: 1px solid var(--wire);
}

.flow-link {
  width: var(--reach);
  border-top: 1px solid var(--wire);
}

.flow-books {
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--wire);
  background: var(--navy-deep);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.2;
}

.flow-books::before {
  content: "\2713";
  display: block;
  margin-bottom: 0.35rem;
  color: var(--copper-light);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ---------- Zero judgment statement ---------- */

.statement h2 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.statement h2 span {
  color: var(--copper-text);
}

.statement-body {
  max-width: 36rem;
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* ---------- Scorecard panel ---------- */

.panel {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: clamp(2rem, 1rem + 4vw, 3.5rem);
  border: 1px solid var(--rule-strong);
  border-top: 4px double var(--navy);
  background: #FFFDF9;
}

@media (min-width: 860px) {
  .panel {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }
}

/* ---------- Person block and credentials ---------- */

.person {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 760px) {
  .person {
    grid-template-columns: 13rem 1fr;
    gap: 4rem;
  }
}

.person-photo,
.about-photo {
  width: 13rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  outline: 1px solid var(--copper);
  outline-offset: 6px;
}

.person .prose {
  margin-bottom: 0;
}

.facts {
  display: grid;
  gap: 1.5rem 3rem;
  margin: 2rem 0;
  max-width: 40rem;
}

@media (min-width: 560px) {
  .facts {
    grid-template-columns: auto 1fr;
  }
}

.facts > div {
  padding-top: 1rem;
  border-top: 3px double var(--navy);
}

.facts dt {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  line-height: 1;
}

.facts dd {
  max-width: 17rem;
  margin: 0.6rem 0 0;
  color: var(--text-muted);
  font-size: var(--text-small);
}

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

.about-photo {
  width: min(15rem, 60vw);
  justify-self: start;
}

@media (min-width: 860px) {
  .about-intro {
    grid-template-columns: 1fr auto;
  }

  .about-photo {
    margin-top: 1rem;
  }
}

.systems-grid h2 {
  margin-bottom: 1.5rem;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Home "What we do": file folders ---------- */

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 2rem;
  margin-bottom: 3.5rem;
}

.section-head-row h2 {
  margin: 0;
}

.folders {
  display: grid;
  gap: 3.25rem 1.5rem;
}

@media (min-width: 900px) {
  .folders {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: repeat(3, auto);
    row-gap: 3.25rem;
  }

  .folder-lead {
    grid-row: 1 / span 3;
  }
}

.folder {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
  transition: border-color 0.15s ease;
}

.folder-lead {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2.25rem 2.5rem;
}

.folder-lead .folder-note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 3px double var(--navy);
}

/* the folder tab, sitting on top edge */
.folder-tab {
  position: absolute;
  top: calc(-2.1rem - 3px);
  left: -1px;
  margin: 0;
  padding: 0.3rem 1rem calc(0.35rem + 3px);
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  color: var(--copper-text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.6;
}

.folder h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
}

.folder-lead h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
}

/* the whole folder is clickable through its title link */
.folder h3 a {
  text-decoration-color: transparent;
}

.folder h3 a::after {
  content: "";
  position: absolute;
  inset: -2.1rem 0 0 0;
}

.folder:hover,
.folder:hover .folder-tab {
  border-color: var(--navy);
}

.folder:hover h3 a {
  text-decoration-color: var(--copper);
}

.folder:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.folder h3 a:focus-visible {
  outline: none;
}

.folder p {
  max-width: var(--measure);
  color: var(--text-muted);
}

.folder-list {
  list-style: none;
  margin: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.folder-list li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.folder-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--copper-text);
  font-weight: 600;
}

.folder-note {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--navy) !important;
}

/* ==========================================================================
   Round 3: shared pieces for inner pages
   ========================================================================== */

/* Paper sheet: the basic container */
.paper {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
}

.paper p {
  color: var(--text-muted);
}

/* Folders: even grid and pair variants */
.folder {
  display: flex;
  flex-direction: column;
}

.folder .folder-note,
.folder .folder-foot {
  margin-top: auto;
}

.folder-foot {
  padding-top: 1.25rem;
  font-size: var(--text-small);
}

.folder-list:last-child {
  margin-bottom: 0;
}

.folder-kicker {
  margin: 1.75rem 0 0;
  color: var(--navy) !important;
  font-weight: 600;
}

.folder-kicker + .folder-list {
  margin-top: 0.75rem;
}

.folder > h2:not(.folder-tab) {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
}

h2.folder-tab {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

@media (min-width: 900px) {
  .folders-even {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .folders-even .folder,
  .folders-pair .folder-lead {
    grid-row: auto;
  }

  .folders-pair {
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: auto;
    align-items: start;
  }
}

/* Chips: plain text labels, outlined */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.9375rem;
}

/* Page intro on navy (Systems) */
.page-intro.section-navy .lead {
  max-width: var(--measure);
}

.page-intro.section-navy h1 {
  margin-bottom: 1.5rem;
}

/* ---------- Services: ledgers (packages) ---------- */

.ledgers {
  display: grid;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 900px) {
  .ledgers {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ledger {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
}

.ledger h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
}

.ledger dl {
  margin: 1.5rem 0 0;
}

.ledger dt {
  color: var(--copper-text);
  font-size: 0.875rem;
  font-weight: 600;
}

.ledger dd {
  margin: 0.15rem 0 1rem;
  color: var(--text-muted);
}

/* what each package includes, stacked like layers */
.stack {
  display: grid;
  gap: 0.3rem;
  margin: 0.75rem 0 0;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.stack li {
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
}

.stack .on.layer-1 { background: var(--navy); color: var(--cream); }
.stack .on.layer-2 { background: #3E5568; color: var(--cream); }
.stack .on.layer-3 { background: var(--copper-light); color: var(--navy-deep); }

.stack .off {
  border: 1px dashed var(--rule-strong);
  color: rgba(22, 50, 74, 0.45);
}

/* ledger total with an accountant's double underline */
.ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--navy);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.amount {
  position: relative;
  display: inline-block;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.1;
}

/* accountant's double underline under a total */
.amount::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 4px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.amount small {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-notes {
  max-width: 48rem;
  margin-top: 2.5rem;
  color: var(--text-muted);
}

.ledger-line {
  display: grid;
  gap: 0.25rem 2rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.ledger-line span:first-child {
  color: var(--navy);
  font-weight: 600;
}

@media (min-width: 640px) {
  .ledger-line {
    grid-template-columns: 11rem 1fr;
  }
}

.pricing-grid {
  display: grid;
  gap: 2.5rem 5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.pricing-grid h2 {
  margin-bottom: 1.5rem;
}

/* ---------- Systems ---------- */

.selfcheck {
  list-style: none;
}

.selfcheck li {
  position: relative;
  padding: 1rem 0 1rem 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.selfcheck li:first-child {
  padding-top: 0.25rem;
}

.selfcheck li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.selfcheck li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
}

.selfcheck li:first-child::before {
  top: 0.5rem;
}

.process {
  display: grid;
  gap: 2rem;
  list-style: none;
  counter-reset: step;
}

.process li {
  position: relative;
  padding-left: 4rem;
  counter-increment: step;
}

.process li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.35rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: #FFFDF9;
  color: var(--copper-text);
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

.process h3 {
  margin-bottom: 0.5rem;
}

.process p {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .process li {
    padding: 4.25rem 0 0;
  }

  .process li::before {
    top: 0;
  }

  /* line connecting each step to the next */
  .process li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.375rem;
    left: 3.5rem;
    right: -1.75rem;
    border-top: 1px solid var(--copper);
  }
}

.systems-facts {
  display: grid;
  gap: 3rem 4rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .systems-facts {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.systems-facts p {
  color: var(--text-muted);
}

.figure-line {
  color: var(--navy) !important;
}

.figure-line .amount {
  display: inline-block;
  margin-left: 0.25rem;
}

/* ---------- Who We Serve: size marks ---------- */

.sizes {
  display: grid;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 760px) {
  .sizes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sizes li {
  padding: 1.75rem;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
}

.sizes p {
  color: var(--text-muted);
}

.size-mark {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
}

.cluster {
  display: grid;
  grid-auto-flow: column;
  gap: 0.3rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--copper);
}

.cluster i {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--navy);
}

/* ---------- How We Work: timeline rail ---------- */

.how-grid {
  display: grid;
  gap: 3rem 4rem;
  align-items: start;
}

@media (min-width: 1000px) {
  .how-grid {
    grid-template-columns: 1fr 22rem;
  }

  .how-aside {
    position: sticky;
    top: 8rem;
    margin-top: 2.1rem;
  }
}

.rail {
  list-style: none;
  counter-reset: step;
}

.rail > li {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  counter-increment: step;
}

@media (min-width: 760px) {
  .rail > li {
    grid-template-columns: 3.5rem 1fr;
    gap: 2rem;
  }
}

.rail > li:last-child {
  padding-bottom: 0;
}

.rail > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: #FFFDF9;
  color: var(--copper-text);
  font-family: var(--font-serif);
  font-size: 1.375rem;
}

@media (min-width: 760px) {
  .rail > li::before {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.75rem;
  }
}

/* the line running down between numbers */
.rail > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.375rem;
  top: 2.75rem;
  bottom: 0;
  border-left: 1px solid var(--copper);
}

@media (min-width: 760px) {
  .rail > li:not(:last-child)::after {
    left: 1.75rem;
    top: 3.5rem;
  }
}

.rail h2 {
  margin-bottom: 0.6rem;
  font-size: var(--text-h3);
}

.rail p {
  max-width: var(--measure);
  color: var(--text-muted);
}

.rail-compact > li {
  padding-bottom: 2rem;
}

.rail-compact h2 {
  margin-top: 0.6rem;
}

/* ---------- Start ---------- */

.start-grid {
  display: grid;
  gap: 4rem 5rem;
  align-items: start;
}

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

.booking {
  align-items: flex-start;
  justify-content: center;
  min-height: 14rem;
  margin-top: 2.1rem;
  padding: 2.5rem;
}

.contact-card {
  position: relative;
  max-width: 34rem;
  padding: 2rem 2rem 1.5rem;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
}

.contact-card img {
  width: 3.5rem;
  margin-bottom: 1.25rem;
}

.contact-card dl {
  margin: 0;
}

.contact-card dl > div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 480px) {
  .contact-card dl > div {
    grid-template-columns: 8.5rem 1fr;
  }
}

.contact-card dt {
  color: var(--copper-text);
  font-weight: 600;
}

.contact-card dd {
  margin: 0;
}

/* scorecard panel headline */
.panel .close-lead {
  margin: 0;
}

@media (max-width: 599px) {
  .rail > li {
    gap: 0.85rem;
  }

  .rail .paper,
  .folder,
  .folder-lead,
  .ledger,
  .sizes li,
  .contact-card {
    padding-inline: 1.25rem;
  }
}

/* ==========================================================================
   Scroll-in drawings (only when html has .motion; see js/main.js)
   Each illustration plays once. Reduced-motion visitors see the finished state.
   ========================================================================== */

/* Home working paper: ticks land one by one, then the signature writes in */
.motion .wp-status {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.motion .wp-status::before {
  display: inline-block;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.motion .wp-rows li:nth-child(1) .wp-status,
.motion .wp-rows li:nth-child(1) .wp-status::before { transition-delay: 0.4s; }
.motion .wp-rows li:nth-child(2) .wp-status,
.motion .wp-rows li:nth-child(2) .wp-status::before { transition-delay: 0.65s; }
.motion .wp-rows li:nth-child(3) .wp-status,
.motion .wp-rows li:nth-child(3) .wp-status::before { transition-delay: 0.9s; }
.motion .wp-rows li:nth-child(4) .wp-status,
.motion .wp-rows li:nth-child(4) .wp-status::before { transition-delay: 1.15s; }
.motion .wp-rows li:nth-child(5) .wp-status,
.motion .wp-rows li:nth-child(5) .wp-status::before { transition-delay: 1.4s; }

.motion .wp-sign {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s ease-in-out 1.85s;
}

.motion .workpaper.is-in .wp-status { opacity: 1; }
.motion .workpaper.is-in .wp-status::before { transform: none; }
.motion .workpaper.is-in .wp-sign { clip-path: inset(0 0 0 0); }

/* Systems diagram: wires draw from each tool into the books, then the tick lands */
.motion .flow-tools li::after,
.motion .flow-link {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease-out;
}

.motion .flow-tools li:nth-child(1)::after { transition-delay: 0.1s; }
.motion .flow-tools li:nth-child(2)::after { transition-delay: 0.2s; }
.motion .flow-tools li:nth-child(3)::after { transition-delay: 0.3s; }
.motion .flow-tools li:nth-child(4)::after { transition-delay: 0.4s; }
.motion .flow-tools li:nth-child(5)::after { transition-delay: 0.5s; }
.motion .flow-tools li:nth-child(6)::after { transition-delay: 0.6s; }

.motion .flow-tools::after {
  transform: scaleY(0);
  transition: transform 0.5s ease-out 0.75s;
}

.motion .flow-link { transition-delay: 1.2s; }

.motion .flow-books::before {
  transform: scale(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) 1.55s;
}

.motion .flow.is-in .flow-tools li::after,
.motion .flow.is-in .flow-link,
.motion .flow.is-in .flow-tools::after,
.motion .flow.is-in .flow-books::before {
  transform: none;
}

/* Systems 1-2-3-4: the connecting line draws from step to step */
.motion .process li::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-out;
}

.motion .process li:nth-child(1)::after { transition-delay: 0.2s; }
.motion .process li:nth-child(2)::after { transition-delay: 0.8s; }
.motion .process li:nth-child(3)::after { transition-delay: 1.4s; }

.motion .process.is-in li::after { transform: none; }

/* Timelines: each step's line draws down to the next */
.motion .rail > li::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s ease-out 0.2s;
}

.motion .rail > li.is-in::after { transform: none; }

/* Package ledgers: layers stack up, then the total is double underlined */
.motion .stack .on {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease-out;
}

.motion .stack .layer-1 { transition-delay: 0.15s; }
.motion .stack .layer-2 { transition-delay: 0.45s; }
.motion .stack .layer-3 { transition-delay: 0.75s; }

.motion .amount::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-out 1.1s;
}

.motion .ledger.is-in .stack .on,
.motion .is-in .amount::after {
  transform: none;
}

/* Who We Serve: the size dots appear in turn */
.motion .cluster i {
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.motion .cluster i:nth-child(2) { transition-delay: 0.08s; }
.motion .cluster i:nth-child(3) { transition-delay: 0.16s; }
.motion .cluster i:nth-child(4) { transition-delay: 0.24s; }
.motion .cluster i:nth-child(5) { transition-delay: 0.32s; }
.motion .cluster:nth-child(2) i { transition-delay: 0.3s; }
.motion .cluster:nth-child(3) i { transition-delay: 0.6s; }

.motion .sizes.is-in .cluster i { transform: none; }

/* ==========================================================================
   Sourced figures
   ========================================================================== */

.source {
  display: block;
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.source a {
  color: var(--text-muted);
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
}

.source a:hover {
  color: var(--navy);
  text-decoration-color: var(--copper);
}

/* "By the numbers" sheet */
.numbers {
  margin-top: 3.5rem;
}

.section-head-row + .numbers {
  margin-top: 0;
}

.numbers-title {
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--rule-strong);
  font-size: var(--text-h3);
}

.numbers-grid {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
}

@media (min-width: 860px) {
  .numbers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .numbers-grid.numbers-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.numbers-grid dt {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 2rem + 2.6vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* double underline under each figure, like a ledger total */
.numbers-grid dt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 4px;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--navy);
}

.numbers-grid dd {
  max-width: 30rem;
  margin: 0;
  color: var(--text-muted);
}

.facts .source {
  margin-top: 0.5rem;
}

/* Services: rules ledger table */
.rules {
  width: 100%;
  border-collapse: collapse;
  background: #FFFDF9;
  border: 1px solid var(--rule-strong);
  border-top: 3px double var(--navy);
}

.rules th,
.rules td {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.rules thead th {
  color: var(--copper-text);
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule-strong);
}

.rules tbody th {
  width: 12rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
}

.rules td {
  color: var(--text-muted);
}

.rules td:last-child {
  width: 15rem;
  font-size: 0.875rem;
}

.rules td:last-child a {
  color: var(--text-muted);
}

.rules-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* On phones each row becomes its own small block */
@media (max-width: 759px) {
  .rules thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rules,
  .rules tbody,
  .rules tr,
  .rules th,
  .rules td {
    display: block;
    width: auto !important;
  }

  .rules tr {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--rule);
  }

  .rules th,
  .rules td {
    padding: 0;
    border: 0;
  }

  .rules td {
    margin-top: 0.4rem;
  }
}

/* Systems: note under the Signs heading */
.aside-note {
  max-width: 22rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 3px double var(--navy);
  color: var(--text-muted);
  font-size: var(--text-small);
}

.aside-note strong {
  color: var(--navy);
}

/* Figures: double underline draws in when the sheet scrolls into view */
.motion .numbers-grid dt::after {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease-out 1s;
}

.motion .numbers.is-in .numbers-grid dt::after {
  transform: none;
}

/* small label marking an add-on service */
.addon {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--copper-text);
  border-radius: 2px;
  color: var(--copper-text);
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: 0.1em;
}

/* ---------- Footer social links ---------- */

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.25rem;
}

.site-footer .social li + li {
  margin-top: 0;
}

/* ---------- Start: embedded booking calendar ---------- */

@media (min-width: 1000px) {
  .start-grid {
    grid-template-columns: 1fr 1.7fr;
    gap: 4rem;
  }
}

.booking {
  min-height: 0;
  padding: 1rem;
}

.booking-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #fff;
}

.booking-fallback {
  margin: 0.75rem 0.25rem 0;
  font-size: 0.9375rem;
}

/* ---------- Privacy policy ---------- */

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

.policy {
  max-width: 48rem;
}

.policy h2 {
  margin-top: 2.5rem;
  font-size: var(--text-h3);
}

.policy h2:first-child {
  margin-top: 0;
}

.policy .plain-list {
  margin-bottom: 1rem;
}
