/* ==========================================================================
   Senior Reach Marketing: one shared stylesheet. No framework, no build step.

   Identity: an independent print publication.
   - Display: Newsreader (variable, real optical sizes 16-72), roman + italic.
   - Text/UI: Schibsted Grotesk (variable 400-700).
   - Palette: warm ink, ivory paper, one accent (oxblood). Square corners.
   - Devices: hairline rules, CSS-counter numerals, pull-quotes. No icons.

   1. Fonts        2. Tokens       3. Reset/base    4. Type
   5. Layout       6. Masthead     7. Buttons/links 8. Home hero (film)
   9. Home sections 10. Interior pages 11. Contact   12. Colophon
   13. Utilities   14. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted, Latin subset, SIL OFL; licenses in /fonts/)
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-roman.woff2") format("woff2");
  font-weight: 340 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 340 420;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens
   ========================================================================== */

:root {
  /* Palette */
  --ink: #14110f;          /* warm near-black */
  --ink-2: #2a2521;        /* body text on paper */
  --muted: #5a5047;        /* secondary text on paper (6.6:1) */
  --paper: #f4efe6;        /* ivory */
  --paper-deep: #e8e0d1;   /* second paper tone for rhythm */
  --rule: #c9bead;         /* hairlines on paper (decorative) */
  --accent: #7a2420;       /* oxblood: links, numerals, rules, nav CTA */
  --accent-deep: #5a1714;
  --accent-on-dark: #c8604a; /* the same oxblood, lifted for rules on ink */
  --on-dark: #f4efe6;
  --on-dark-2: #d9d1c4;    /* secondary text on ink (12:1) */
  --rule-dark: rgba(244, 239, 230, 0.26);

  --focus: var(--accent);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;

  /* Modular scale, ratio 1.25 on an 18px body */
  --step--1: 0.9375rem;                                   /* 15 */
  --step-0: 1.125rem;                                     /* 18 */
  --step-1: 1.375rem;                                     /* 22 */
  --step-2: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);      /* 28 */
  --step-3: clamp(1.75rem, 1.45rem + 1.2vw, 2.2rem);      /* 35 */
  --step-4: clamp(2rem, 1.5rem + 2.1vw, 2.75rem);         /* 44 */
  --step-5: clamp(2.3rem, 1.55rem + 3.2vw, 3.45rem);      /* 55 */
  --step-6: clamp(2.55rem, 1.45rem + 4.6vw, 4.3rem);      /* 69 */
  --step-7: clamp(2.7rem, 1.2rem + 6.2vw, 5.4rem);        /* 86 */

  --measure: 38rem;        /* ~65 characters of body text */

  /* Space */
  --gutter: clamp(1.25rem, 4.2vw, 3.5rem);
  --col-gap: clamp(1rem, 2.4vw, 2.25rem);
  --s-1: 0.5rem;
  --s0: 1rem;
  --s1: 1.5rem;
  --s2: 2.25rem;
  --s3: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --s4: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --s5: clamp(4.5rem, 3rem + 7vw, 9.5rem);

  --hair: 1px solid var(--rule);
}

/* 3. Reset & base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.62;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

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

input,
button,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

/* Any dark ground switches the focus ring and selection to light. */
.on-dark {
  --focus: var(--on-dark);
  color: var(--on-dark-2);
}

/* 4. Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: -0.014em;
}

h3 {
  font-size: var(--step-2);
  line-height: 1.18;
  letter-spacing: -0.006em;
}

.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--on-dark);
}

p,
li,
dd {
  text-wrap: pretty;
}

/* Running heads: small, tracked, never smaller than 15px. */
.eyebrow,
.label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.on-dark .eyebrow {
  color: var(--on-dark);
}

.lead {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36rem;
}

.muted {
  color: var(--muted);
}

.ital {
  font-style: italic;
}

strong {
  font-weight: 650;
  color: var(--ink);
}

/* 5. Layout
   ========================================================================== */

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

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

.section--deep {
  background: var(--paper-deep);
}

/* A 12-column editorial grid that collapses to one column. */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--col-gap);
}

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

/* 6. Masthead (header) & navigation
   ========================================================================== */

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: underline;
  transform: translateY(-250%);
}

.skip-link:focus {
  transform: none;
  outline-color: var(--accent-on-dark);
}

.masthead {
  position: relative;
  z-index: 40;
  border-bottom: 1px solid var(--ink);
}

/* Home: the masthead sits on the film, transparent, light type. */
.masthead--over {
  position: absolute;
  inset: 0 0 auto 0;
  border-bottom-color: var(--rule-dark);
  color: var(--on-dark);
  --focus: var(--on-dark);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}

.wordmark__name {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.6rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.wordmark__sub {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-left: 0.7rem;
  border-left: 1px solid currentColor;
}

.masthead--over .wordmark {
  color: var(--on-dark);
}

/* Small screens: the masthead is a solid ink bar above the photo band,
   so it never depends on how bright the top of the picture is. */
@media (max-width: 43.75rem) {
  .masthead--over {
    background: var(--ink);
  }
}

/* Keep the wordmark on one line at 375px: slightly tighter type, no stack. */
@media (max-width: 52rem) {
  .masthead__inner {
    flex-wrap: nowrap;
    gap: 0.75rem 1rem;
    padding-block: 0.25rem;
  }

  .wordmark {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 0.45rem;
    min-width: 0;
  }

  .wordmark__name {
    font-size: 1.3rem;
  }

  .wordmark__sub {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    padding-left: 0.5rem;
  }
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.6rem;
}

.site-nav__list a {
  display: inline-block;
  padding: 0.55rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav__list a:hover {
  border-bottom-color: currentColor;
}

.site-nav__list a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.masthead--over .site-nav__list a[aria-current="page"] {
  border-bottom-color: var(--accent-on-dark);
}

.site-nav__list .site-nav__cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.site-nav__list .site-nav__cta:hover,
.site-nav__list .site-nav__cta[aria-current="page"] {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: inset 0 -3px 0 var(--paper);
}

.nav-toggle {
  display: none;
}

/* Without JS the full list stays visible and wraps under the wordmark.
   With JS on small screens it folds behind a real button. */
@media (max-width: 52rem) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    margin-right: -0.4rem;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
  }

  .nav-toggle:focus-visible {
    outline-offset: 2px;
  }

  .nav-toggle__icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .nav-toggle__close,
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    display: none;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__close {
    display: block;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    color: var(--on-dark);
    border-top: 3px solid var(--accent);
    padding: 0.5rem var(--gutter) 2rem;
    min-height: calc(100vh - 3.5rem);
    min-height: calc(100svh - 3.5rem);
    --focus: var(--on-dark);
  }

  .js .site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .js .site-nav.is-open .site-nav__list a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    border-bottom: 1px solid var(--rule-dark);
  }

  .js .site-nav.is-open .site-nav__list a[aria-current="page"] {
    border-bottom: 1px solid var(--rule-dark);
    box-shadow: inset 4px 0 0 var(--accent-on-dark);
    padding-left: 1rem;
  }

  .js .site-nav.is-open .site-nav__list .site-nav__cta {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    text-align: center;
    font-family: var(--sans);
    font-size: 1.125rem;
    font-weight: 600;
    border: 0;
  }
}

/* 7. Links & buttons
   ========================================================================== */

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

a:hover {
  color: var(--accent-deep);
  text-decoration-thickness: 2px;
}

.on-dark a:not(.button) {
  color: var(--on-dark);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Ink on paper (default) */
.button--ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button--ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

/* Primary: oxblood on paper, ivory on ink */
.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.button--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--paper);
}

.on-dark .button--primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.on-dark .button--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.button--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.on-dark .button--ghost {
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.on-dark .button--ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

/* 8. Home: film hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark-2);
}

.hero__media {
  position: relative;
  inset: auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 16rem;
  z-index: 0;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.hero__picture {
  position: absolute;
  inset: 0;
}

/* The poster is the first paint. The film sits on top and fades in once
   it is actually playing. It stays display:block (not none) so iOS can
   autoplay a muted, playsinline source without waiting for JS. */
.hero__picture {
  z-index: 0;
}

.hero__video {
  display: block;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video--desktop {
  display: none;
}

.hero--film.is-playing .hero__video--mobile {
  opacity: 1;
}

.hero__shade {
  z-index: 2;
}

@media (min-width: 43.8125rem) {
  .hero__video--mobile {
    display: none;
  }

  .hero__video--desktop {
    display: block;
  }

  .hero--film.is-playing .hero__video--desktop {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none !important;
  }
}

/* Small screens: the picture is a band at the top that falls into ink. */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(20, 17, 15, 0.16) 0%,
      rgba(20, 17, 15, 0) 24%,
      rgba(20, 17, 15, 0.12) 60%,
      rgba(20, 17, 15, 0.78) 86%,
      #14110f 100%);
}

.hero__body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 1.15rem;
  padding-bottom: var(--s3);
}

.hero__eyebrow {
  max-width: 30rem;
  margin-bottom: 1.1rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--accent-on-dark);
  width: fit-content;
}

.hero__title {
  font-size: clamp(2.05rem, 1.55rem + 2.6vw, 4.85rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  max-width: 18ch;
}

.hero__actions {
  margin-top: 1rem;
}

.hero__title .ital {
  font-weight: 380;
  letter-spacing: -0.02em;
}

.hero__deck {
  margin-top: var(--s2);
}

.hero .lead {
  color: var(--on-dark);
  max-width: 34rem;
}

.hero .button-row {
  margin-top: var(--s1);
}

@media (max-width: 43.75rem) {
  /* In-flow ink bar, then a 55–65svh photo, then the headline and CTA.
     This keeps the first screen from becoming a full-bleed picture. */
  .masthead--over {
    position: relative;
    inset: auto;
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    padding-top: 0.65rem;
  }

  .hero__eyebrow {
    max-width: none;
    margin-bottom: 0.4rem;
    padding-top: 0.35rem;
    order: 1;
  }

  .hero__title {
    font-size: clamp(1.95rem, 1.6rem + 1.9vw, 2.35rem);
    line-height: 1.08;
    max-width: none;
    order: 2;
  }

  .hero__actions {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 0.5rem;
  }

  .hero__includes { order: 4; margin-top: 0.7rem; }
  .hero__deck { order: 5; margin-top: var(--s2); }

  .hero__actions .button {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 1.25rem;
  }

  .hero__pause {
    top: calc(75vw - 3.35rem);
    bottom: auto;
  }
}

.hero__pause {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s1);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule-dark);
  background: rgba(20, 17, 15, 0.55);
  color: var(--on-dark);
  cursor: pointer;
}

.hero__pause:hover {
  border-color: var(--on-dark);
}

/* Pause glyph: two bars. Play glyph: a triangle. Drawn in CSS, no icon set. */
.hero__pause::before {
  content: "";
  width: 0.75rem;
  height: 0.9rem;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.hero__pause[data-state="paused"]::before {
  width: 0;
  height: 0;
  border-top: 0.5rem solid transparent;
  border-bottom: 0.5rem solid transparent;
  border-left: 0.8rem solid currentColor;
  border-right: 0;
  margin-left: 0.2rem;
}

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

/* When autoplay is blocked (e.g. iOS Low Power Mode), show a clear play control. */
.hero--needs-play .hero__pause {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto;
  min-width: 2.75rem;
  padding: 0 0.9rem 0 0.7rem;
  background: rgba(20, 17, 15, 0.82);
  border-color: var(--on-dark);
}

.hero--needs-play .hero__pause-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

@media (min-width: 43.8125rem) {
  /* > 700px: the film fills the hero; copy sits low-left on an ink fall-off
     that leaves the couple (right of frame) clear. */
  .hero {
    min-height: min(100svh, 64rem);
    display: flex;
    align-items: flex-end;
  }

  .hero__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    z-index: -1;
  }

  .hero__shade {
    background:
      linear-gradient(90deg,
        rgba(20, 17, 15, 0.78) 0%,
        rgba(20, 17, 15, 0.62) 34%,
        rgba(20, 17, 15, 0.36) 56%,
        rgba(20, 17, 15, 0.08) 78%,
        rgba(20, 17, 15, 0) 100%),
      linear-gradient(180deg,
        rgba(20, 17, 15, 0.78) 0%,
        rgba(20, 17, 15, 0.42) 8%,
        rgba(20, 17, 15, 0) 20%,
        rgba(20, 17, 15, 0) 42%,
        rgba(20, 17, 15, 0.74) 70%,
        rgba(20, 17, 15, 0.92) 100%);
  }

  .hero__body {
    width: min(100% - 2 * var(--gutter), 84rem);
    padding-top: 9rem;
    padding-bottom: var(--s1);
  }

  .hero__eyebrow {
    margin-bottom: 0.85rem;
    padding-top: 0.7rem;
  }

  .hero__title {
    font-size: clamp(2.4rem, 1.15rem + 4.1vw, 4.15rem);
    line-height: 1.03;
    max-width: 17ch;
  }

  .hero__deck {
    margin-top: 1.25rem;
  }

  .hero__actions {
    margin-top: 1.25rem;
  }

  .hero__poster,
  .hero__video {
    object-position: 50% 24%;
  }
}

/* 701-1023px: the copy runs nearly full width, so the shade stays deep
   across the frame and only eases off at the far right. */
@media (min-width: 43.8125rem) and (max-width: 63.99rem) {
  .hero__shade {
    background:
      linear-gradient(90deg,
        rgba(20, 17, 15, 0.9) 0%,
        rgba(20, 17, 15, 0.86) 50%,
        rgba(20, 17, 15, 0.78) 80%,
        rgba(20, 17, 15, 0.62) 100%),
      linear-gradient(180deg,
        rgba(20, 17, 15, 0.8) 0%,
        rgba(20, 17, 15, 0.55) 9%,
        rgba(20, 17, 15, 0) 24%,
        rgba(20, 17, 15, 0) 62%,
        rgba(20, 17, 15, 0.72) 100%);
  }
}

@media (min-width: 64rem) {
  .hero__body {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }

  .hero__eyebrow,
  .hero__title {
    grid-column: 1 / span 7;
  }

  .hero__deck {
    grid-column: 1 / span 6;
  }

  .hero__actions {
    grid-column: 1 / span 6;
  }

  .hero__includes {
    grid-column: 1 / span 6;
  }
}

/* 9. Home sections
   ========================================================================== */

/* 9a. Services index: a dense, numbered table of contents. */
.index {
  padding-block: var(--s4);
}

.index__head h2 {
  margin-top: 0.9rem;
  font-size: var(--step-5);
}

.index__head .muted {
  margin-top: var(--s1);
  max-width: 30rem;
}

.index__list {
  counter-reset: svc;
  margin-top: var(--s3);
  border-top: 1px solid var(--ink);
}

.index__item {
  counter-increment: svc;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.35rem 1.5rem;
  border-bottom: var(--hair);
}

.index__item::before {
  content: counter(svc, decimal-leading-zero);
  content: counter(svc, decimal-leading-zero) / "";
  grid-row: 1 / span 3;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--accent);
}

.index__item h3 {
  font-size: var(--step-2);
}

.index__item p {
  margin-top: 0.4rem;
  max-width: 34rem;
}

.index__link {
  justify-self: start;
  margin-top: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
}

.index__item--feature h3 {
  font-style: italic;
}

@media (min-width: 48rem) {
  .index__item {
    grid-template-columns: 4rem minmax(0, 0.9fr) minmax(0, 1.25fr);
    align-items: baseline;
  }

  .index__item::before {
    grid-row: 1 / span 2;
  }

  .index__item h3 {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding-right: 1.5rem;
  }

  .index__item p {
    grid-column: 3;
    margin-top: 0;
  }

  .index__link {
    grid-column: 3;
  }
}

@media (min-width: 64rem) {
  .index__head {
    grid-column: 1 / span 4;
    align-self: start;
  }

  .index__list {
    grid-column: 6 / -1;
    margin-top: 0.4rem;
  }
}

/* 9b. Process: a wide band with oversized numerals and a staggered stair. */
.process {
  padding-block: var(--s4);
}

.process__head {
  display: grid;
  gap: 0.9rem var(--col-gap);
  align-items: end;
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--ink);
}

.process__head h2 {
  font-size: var(--step-5);
}

.process__head .muted {
  max-width: 24rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-2);
}

.process__steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.process__step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding-block: 1.75rem;
  border-bottom: var(--hair);
}

.process__step::before {
  content: counter(step);
  content: counter(step) / "";
  grid-row: 1 / span 2;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: 4.5rem;
  line-height: 0.8;
  font-variant-numeric: oldstyle-nums;
  color: var(--accent);
}

.process__step h3 {
  font-size: var(--step-2);
}

.process__step p {
  margin-top: 0.55rem;
}

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

  .process__head .eyebrow {
    grid-column: 1 / -1;
  }

  .process__head .muted {
    justify-self: end;
  }

  .process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
}

@media (min-width: 64rem) {
  .process__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 0;
  }

  .process__step {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    padding: var(--s3) var(--col-gap) 0;
    border-bottom: 0;
    border-left: var(--hair);
  }

  .process__step:first-child {
    border-left: 0;
    padding-left: 0;
  }

  /* A slow stair: each step drops a little lower than the last. */
  .process__step:nth-child(2) { margin-top: 3rem; }
  .process__step:nth-child(3) { margin-top: 6rem; }
  .process__step:nth-child(4) { margin-top: 9rem; }

  .process__step::before {
    grid-row: auto;
    font-size: clamp(7rem, 4rem + 5vw, 10rem);
    margin-bottom: 1.25rem;
  }

  .process__step h3 {
    font-size: var(--step-3);
  }
}

/* 9c. Why this practice: roomy, irregular, with a pull-quote. */
.why {
  padding-block: var(--s5) var(--s4);
}

.why__head h2 {
  margin-top: 0.9rem;
  font-size: var(--step-6);
  max-width: 15ch;
}

.nowrap {
  white-space: nowrap;
}

.why__reasons {
  display: grid;
  gap: var(--s3) var(--col-gap);
  margin-top: var(--s3);
}

.reason {
  max-width: 34rem;
}

.reason h3 {
  padding-top: 1.1rem;
  border-top: 2px solid var(--accent);
  width: fit-content;
  min-width: 3rem;
  font-size: var(--step-3);
}

.reason p {
  margin-top: 0.85rem;
}

.why .pullquote {
  border-bottom: 0;
  padding-bottom: 0;
}

.why__wide {
  margin-top: var(--s4);
  padding-top: var(--s2);
  border-top: 1px solid var(--ink);
  display: grid;
  gap: var(--s1) var(--col-gap);
}

.why__wide h3 {
  font-size: var(--step-4);
  max-width: 14ch;
}

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

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

  .why__reasons .reason:nth-child(even) {
    margin-top: var(--s3);
  }
}

@media (min-width: 64rem) {
  .why__head {
    grid-column: 1 / span 8;
  }

  .why__reasons {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .why__reasons .reason:nth-child(1) { grid-column: 1 / span 5; }
  .why__reasons .reason:nth-child(2) { grid-column: 7 / span 5; }
  .why__reasons .reason:nth-child(3) { grid-column: 2 / span 5; }
  .why__reasons .reason:nth-child(4) { grid-column: 8 / span 5; }

  .why .pullquote {
    grid-column: 1 / span 11;
  }

  .why .pullquote p {
    margin-left: calc((100% + var(--col-gap)) / 11);
  }

  .why__wide {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .why__wide h3 {
    grid-column: 1 / span 4;
  }

  /* Editorial spread: one paragraph set in two columns. */
  .why__wide p {
    grid-column: 5 / -1;
    max-width: none;
    columns: 2;
    column-gap: var(--col-gap);
    hyphens: auto;
  }
}

/* Pull-quote (repeats an exact phrase from the page; hidden from AT). */
.pullquote {
  margin-block: var(--s4) 0;
  padding-block: var(--s2);
  border-block: 1px solid var(--ink);
}

.pullquote p {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-weight: 360;
  font-size: var(--step-6);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}

.pullquote p::before {
  content: "\201C";
  content: "\201C" / "";
  color: var(--accent);
  margin-left: -0.42em;
  padding-right: 0.04em;
}

.pullquote p::after {
  content: "\201D";
  content: "\201D" / "";
  color: var(--accent);
}

@media (max-width: 40rem) {
  .pullquote p::before {
    margin-left: 0;
  }
}

/* 9d. CTA: sharp, ink, big type. */
.cta {
  background: var(--ink);
  border-top: 6px solid var(--accent);
  padding-block: var(--s4);
}

.cta__grid {
  display: grid;
  gap: var(--s2) var(--col-gap);
  align-items: end;
}

.cta h2 {
  font-size: var(--step-6);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.review-includes {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34rem;
}

.on-dark .review-includes,
.hero .review-includes {
  color: var(--on-dark-2);
}

.cta__body p {
  max-width: 30rem;
  color: var(--on-dark-2);
}

.cta__body .review-includes {
  margin-top: 0.85rem;
}

.cta__body .button-row {
  margin-top: var(--s1);
}

@media (min-width: 64rem) {
  .cta__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .cta h2 {
    grid-column: 1 / span 7;
  }

  .cta__body {
    grid-column: 9 / -1;
  }
}

/* 10. Interior pages
   ========================================================================== */

.page-head {
  padding-block: var(--s4) var(--s3);
}

.page-head h1 {
  margin-top: 1rem;
  font-size: var(--step-7);
  line-height: 1;
  letter-spacing: -0.026em;
  max-width: 17ch;
}

.page-head .lead {
  margin-top: var(--s2);
}

.page-head .review-includes {
  margin-top: 0.85rem;
}

.page-head .review-needed {
  margin-top: 0.5rem;
  max-width: 34rem;
}

.page-head__lower {
  display: grid;
  gap: var(--s3) var(--col-gap);
  align-items: start;
}

@media (min-width: 64rem) {
  .page-head__top {
    grid-column: 1 / span 11;
  }

  .page-head__lower {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-head__lower .lead {
    grid-column: 1 / span 6;
  }

  .page-head__lower .contents {
    grid-column: 8 / -1;
    margin-top: var(--s2);
  }
}

/* "Jump to" navigation, set as a numbered contents list. */
.contents__label {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ink);
}

.contents ol {
  counter-reset: toc;
}

.contents li {
  counter-increment: toc;
  border-bottom: var(--hair);
}

.contents a {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  padding-block: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--step-1);
  line-height: 1.3;
}

.contents a::before {
  content: counter(toc, decimal-leading-zero);
  content: counter(toc, decimal-leading-zero) / "";
  font-family: var(--sans);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  padding-top: 0.25rem;
  color: var(--accent);
}

.contents a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Chapters: services and industries. */
.chapters {
  counter-reset: chapter;
  padding-bottom: var(--s4);
}

.chapter {
  counter-increment: chapter;
  display: grid;
  gap: var(--s1) var(--col-gap);
  padding-block: var(--s3);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 1rem;
}

.chapter__head::before {
  content: counter(chapter, decimal-leading-zero);
  content: counter(chapter, decimal-leading-zero) / "";
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 340;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 0.85;
  font-variant-numeric: lining-nums;
  color: var(--accent);
}

.chapter__head h2 {
  font-size: var(--step-5);
}

.chapter__dek {
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 24rem;
}

.chapter__tag {
  display: inline-block;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 2px solid var(--accent);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.chapter__body > p + p {
  margin-top: 1em;
}

.chapter__body > p:first-child::first-line {
  font-weight: 600;
  color: var(--ink);
}

.chapter__body h3 {
  margin-top: var(--s2);
}

/* "What this can include": a tracked running head over a ruled list. */
.chapter__body h3.label,
.prose h3.label,
.contact-panel h3.label {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
}

.ruled {
  margin-top: 0;
}

.ruled li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: var(--hair);
}

.ruled li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.85rem;
  height: 2px;
  background: var(--accent);
}

.note {
  margin-top: var(--s2);
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--ink);
}

/* Sub-entries inside a chapter (Senior living and care). */
.subs {
  display: grid;
  gap: var(--s1) var(--col-gap);
  margin-top: var(--s2);
  border-top: var(--hair);
  padding-top: var(--s1);
}

.subs h3 {
  margin-top: 0;
  font-size: var(--step-2);
}

.subs p {
  margin-top: 0.5rem;
}

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

@media (min-width: 64rem) {
  .chapter {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .chapter__head {
    grid-column: 1 / span 4;
  }

  .chapter__body {
    grid-column: 6 / span 7;
    padding-top: 0.5rem;
  }

  .chapter--wide .chapter__body {
    max-width: 48rem;
  }
}

/* A pull-quote that breaks the run of chapters. */
.chapters .pullquote {
  margin-block: 0 var(--s1);
  border-bottom: 0;
}

@media (min-width: 64rem) {
  .chapters .pullquote p {
    margin-left: calc((100% + var(--col-gap)) / 12 * 2);
  }
}

/* Closing band on interior pages reuses .cta. */

/* About */
.about {
  padding-bottom: var(--s4);
}

.about__grid {
  border-top: 1px solid var(--ink);
  padding-top: var(--s3);
  row-gap: var(--s3);
}

.glance h2 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.glance dl {
  margin-top: 0.75rem;
  border-top: 1px solid var(--ink);
}

.glance dt {
  padding-top: 0.9rem;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.glance dd {
  padding: 0.2rem 0 0.9rem;
  border-bottom: var(--hair);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: var(--step-1);
  line-height: 1.35;
  color: var(--ink);
}

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

.prose h2 {
  font-size: var(--step-3);
  margin-top: var(--s3);
}

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

.prose p,
.prose ul {
  margin-top: 1rem;
}

.prose ul:not([role]) {
  padding: 0;
  list-style: none;
}

.prose ul:not([role]) li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-bottom: var(--hair);
}

.prose ul:not([role]) li:first-child {
  border-top: var(--hair);
}

.prose ul:not([role]) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.4rem;
  width: 0.85rem;
  height: 2px;
  background: var(--accent);
}

.prose .review-includes {
  margin-top: var(--s2);
}

.prose .review-includes + .button-row,
.prose .button-row {
  margin-top: var(--s3);
}

.about .pullquote {
  margin-top: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.about .pullquote p {
  font-size: var(--step-4);
  max-width: 16ch;
}

.about .pullquote p::before {
  margin-left: 0;
}

/* The margin quote belongs beside the fact sheet; on one column it would
   land after the closing buttons, so it is left out there. */
@media (max-width: 63.99rem) {
  .about .pullquote {
    display: none;
  }
}

@media (min-width: 64rem) {
  .glance {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .about .prose {
    grid-column: 6 / span 7;
    grid-row: 1 / span 2;
  }

  .about .pullquote {
    grid-column: 1 / span 4;
    grid-row: 2;
    align-self: start;
  }
}

/* 404 */
.not-found {
  padding-block: var(--s4) var(--s5);
}

.not-found h1 {
  margin-top: 1rem;
  font-size: var(--step-7);
  line-height: 1;
  letter-spacing: -0.026em;
}

.not-found .lead {
  margin-top: var(--s2);
}

.not-found .button-row {
  margin-top: var(--s2);
}

/* 11. Contact
   ========================================================================== */

.contact {
  padding-bottom: var(--s4);
}

.contact__grid {
  border-top: 1px solid var(--ink);
  padding-top: var(--s3);
  row-gap: var(--s3);
}

.contact .prose h2 {
  font-size: var(--step-3);
}

.contact .prose .ruled {
  margin-top: var(--s1);
  border-top: 1px solid var(--ink);
}

.contact .prose > .muted {
  margin-top: var(--s1);
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.45;
}

.contact-panel {
  border-top: 6px solid var(--ink);
  padding-top: var(--s1);
}

.contact-panel h2 {
  font-size: var(--step-3);
}

.contact-panel > p {
  margin-top: 0.5rem;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: clamp(1.4rem, 0.9rem + 2.2vw, 2.4rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.contact-panel .button-row {
  margin-top: var(--s1);
}

.compose {
  margin-top: var(--s3);
  padding-top: var(--s1);
  border-top: 1px solid var(--ink);
}

.compose h3 {
  font-size: var(--step-2);
}

.compose > .muted {
  margin-top: 0.5rem;
  font-size: 1rem;
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.field label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  font-size: var(--step-0);
  background: #fbf8f2;
  border: 1px solid var(--ink);
  border-radius: 0;
}

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

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--accent);
}

.compose .button-row {
  margin-top: var(--s1);
}

.compose__status:not(:empty) {
  margin-top: var(--s1);
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-deep);
  color: var(--ink);
}

@media (min-width: 64rem) {
  .contact .prose {
    grid-column: 1 / span 5;
  }

  .contact-panel {
    grid-column: 7 / -1;
  }
}

/* 12. Colophon (footer)
   ========================================================================== */

.colophon {
  background: var(--paper-deep);
  border-top: 1px solid var(--ink);
  padding-block: var(--s3) var(--s2);
  color: var(--ink-2);
}

.colophon .wordmark {
  flex-wrap: wrap;
  row-gap: 0.6rem;
}

.colophon .wordmark__name {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.colophon .wordmark__sub {
  font-size: 1rem;
}

.colophon__grid {
  display: grid;
  gap: var(--s2) var(--col-gap);
  margin-top: var(--s2);
  padding-top: var(--s1);
  border-top: 1px solid var(--ink);
}

.colophon__tagline {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-style: italic;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--ink);
  max-width: 22rem;
}

.colophon h2 {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.colophon ul {
  margin-top: 0.6rem;
}

.colophon li a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.colophon li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.colophon__legal {
  margin-top: var(--s3);
  padding-top: 0.9rem;
  border-top: var(--hair);
  font-size: 1rem;
  color: var(--muted);
}

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

  .colophon__tagline {
    grid-column: 1 / span 5;
  }

  .colophon__grid > nav {
    grid-column: 7 / span 2;
  }

  .colophon__grid > div {
    grid-column: 9 / span 4;
  }
}

/* 13. Utilities
   ========================================================================== */

@media (max-width: 43.75rem) {
  .page-head {
    padding-block: var(--s3) var(--s2);
  }

  .page-head h1,
  .not-found h1 {
    font-size: clamp(2.15rem, 1.5rem + 4.2vw, 2.7rem);
    line-height: 1.06;
    max-width: none;
  }

  .index__head h2,
  .process__head h2,
  .why__head h2,
  .cta h2,
  .chapter__head h2 {
    max-width: none;
  }

  .pullquote p {
    font-size: clamp(1.85rem, 1.4rem + 2.8vw, 2.55rem);
    max-width: none;
  }

  .process__step::before {
    font-size: 3.25rem;
  }
}

img,
video,
iframe,
table {
  max-width: 100%;
}

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

/* 14. Motion: almost none. A slow fade for the film; nothing else moves. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .hero__video {
    display: none !important;
  }
}

@media (forced-colors: active) {
  .hero__shade {
    display: none;
  }

  .button,
  .site-nav__list .site-nav__cta {
    border: 1px solid CanvasText;
  }
}
