/*
  Spectrum Industrial Floors: site styles.

  One stylesheet, in cascade layers (lowest priority first). Design tokens (color, type,
  space, layout) are all in the "tokens" layer below; change values there, not in components.

  Rules (see CLAUDE.md): no inline styles, no third-party fonts, text contrast at least 4.5:1,
  visible focus, and respect prefers-reduced-motion. The layout is mobile-first; the two
  breakpoints that matter are 48em (two-column grids) and 60em (desktop header and the
  page sidebar). Custom properties can't be used in media queries, so those values are
  repeated below.
*/
@layer reset, tokens, base, layout, components, modern, utilities, print;

/* -------------------------------------------------------------------------------------------
   Fonts. Archivo for headings and text (SIL OFL 1.1, licence in /assets/fonts/): one variable
   file with weight and width axes. Headings use the wider cut.
   ------------------------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------------------------------------
   Tokens
   ------------------------------------------------------------------------------------------- */
@layer tokens {
  :root {
    /* Palette. Navy sampled from the logo file (median of its solid navy square, rgb 1-2/9/87);
       greys neutral like the logo's tiles; one accent, the red of the floors in Spectrum's
       photos, darkened until it passes 4.5:1 as text. WCAG ratios are noted per color. */
    --navy: #002976; /* the logo's navy, from Spectrum's vector file. 13.4:1 on white */
    --navy-hover: #1f4489;
    --navy-tint: #e5eaf2; /* hover backgrounds */
    --navy-pale: #d5dceb; /* text on the dark bands, 13:1 on --ink-deep */
    --white: #ffffff;
    --grey-50: #f2f1ed; /* concrete */
    --grey-100: #ececec;
    --grey-200: #dedede; /* hairlines */
    --grey-500: #8a8a8a; /* form control borders, 3.5:1 on white */
    --grey-700: #575757; /* muted text, 7.2:1 on white */
    --ink: #161616; /* text, 18:1 on white */
    --ink-deep: #071236; /* dark bands and footer */
    --line: #f5b800; /* safety-line yellow. 10:1 against --ink-deep; never text on white */
    --red: #aa3c25; /* accent: floor red, darkened. 6.2:1 on white */
    --crimson: #a3161c; /* form errors, 7.8:1 on white */

    --color-bg: var(--white);
    --color-surface: var(--grey-50);
    --color-text: var(--ink);
    --color-text-muted: var(--grey-700);
    --color-heading: var(--navy);
    --color-border: var(--grey-200);
    --color-border-strong: var(--grey-500);
    --color-brand: var(--navy);
    --color-brand-hover: var(--navy-hover);
    --color-on-brand: var(--white);
    --color-link: var(--navy);
    --color-link-hover: var(--navy-hover);
    --color-accent: var(--navy);
    --color-on-accent: var(--white);
    --color-error: var(--crimson);
    --color-focus: var(--navy);
    --color-tbd-bg: #fff1a8;
    --color-tbd-text: #3a2c00;
    --color-tbd-border: #a57c00;

    /* Type */
    --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Archivo", "Arial Nova", Arial, sans-serif;
    --line-height-body: 1.6;
    --line-height-heading: 1.15;
    /* Fluid scale from 320px to 1280px wide */
    --step--2: 0.8125rem; /* 13px: labels */
    --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem); /* 14-15px */
    --step-0: clamp(1rem, 0.96rem + 0.21vw, 1.125rem); /* 16-18px: text */
    --step-1: clamp(1.125rem, 1.06rem + 0.31vw, 1.3125rem); /* 18-21px: lead */
    --step-2: clamp(1.25rem, 1.13rem + 0.63vw, 1.625rem); /* 20-26px */
    --step-3: clamp(1.5rem, 1.31rem + 0.94vw, 2.0625rem); /* 24-33px: h2 */
    --step-4: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); /* 32-56px: h1 */
    --step-5: clamp(2.25rem, 1.4rem + 3vw, 4rem); /* 36-64px: home h1 */

    /* Space */
    --space-3xs: 0.25rem;
    --space-2xs: 0.5rem;
    --space-xs: 0.75rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-section: clamp(2.75rem, 2rem + 3.75vw, 5rem); /* between page sections */

    /* Layout */
    --measure: 68ch;
    --wrapper-max: 80rem;
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    --sidebar: 20rem;
    --radius: 2px;
    --border-width: 1px;
    --rule-width: 3px; /* the thick navy rule on cards and panels */
    --focus-width: 3px;
    --focus-offset: 2px;
    --target-min: 2.75rem; /* 44px; WCAG 2.2 AA asks for at least 24px */
    --shadow-menu: 0 0.75rem 1.5rem -0.75rem rgb(7 18 54 / 0.35);
  }
}

/* -------------------------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------------------------- */
@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  * {
    margin: 0;
  }

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

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

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

  [hidden] {
    display: none !important;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* -------------------------------------------------------------------------------------------
   Base: readable defaults for plain HTML
   ------------------------------------------------------------------------------------------- */
@layer base {
  html {
    color-scheme: light;
  }

  body {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: var(--line-height-body);
    overflow-wrap: break-word;
  }

  h1,
  h2,
  h3,
  h4 {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: var(--line-height-heading);
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

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

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

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

  h4 {
    font-size: var(--step-1);
  }

  p,
  li,
  dd {
    max-width: var(--measure);
    text-wrap: pretty;
  }

  ul,
  ol {
    padding-inline-start: 1.25em;
  }

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

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

  :focus-visible {
    outline: var(--focus-width) solid var(--color-focus);
    outline-offset: var(--focus-offset);
  }

  main:focus {
    outline: none;
  }

  address {
    font-style: normal;
  }

  strong,
  b {
    font-weight: 650;
  }

  ::selection {
    background: var(--navy);
    color: var(--white);
  }
}

/* -------------------------------------------------------------------------------------------
   Layout
   ------------------------------------------------------------------------------------------- */
@layer layout {
  .wrapper {
    width: min(100% - 2 * var(--gutter), var(--wrapper-max));
    margin-inline: auto;
  }

  /* Vertical rhythm for running text: space between siblings, set by --flow-space. */
  .flow > * + * {
    margin-block-start: var(--flow-space, 1em);
  }

  /* Page heading band: breadcrumbs, h1, lead, optional photo */
  .masthead {
    border-block-end: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
  }

  .masthead__inner {
    display: grid;
    gap: var(--space-l);
    padding-block: var(--space-m) var(--space-xl);
  }

  .masthead__title {
    margin-block-start: var(--space-s);
    max-width: 24ch;
  }

  .masthead .lead {
    margin-block-start: var(--space-m);
  }

  /* Photos are cropped to 4:3 here; the column (at most 30rem) is narrower than any photo used. */
  .masthead__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  @media (min-width: 60em) {
    .masthead__inner {
      padding-block: var(--space-l) var(--space-2xl);
    }

    .masthead--media .masthead__inner {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      align-items: start;
      column-gap: clamp(2.5rem, 5vw, 4.5rem);
    }

    /* Photo top lines up with the breadcrumbs */
    .masthead--media .masthead__media {
      margin-block-start: 0.25rem;
    }
  }

  /* Page body: main column, optional sidebar, full-width sections below */
  .page-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-section);
    padding-block: var(--space-section);
  }

  @media (min-width: 60em) {
    .page-body--aside {
      grid-template-columns: minmax(0, 1fr) var(--sidebar);
      column-gap: clamp(3rem, 6vw, 6rem);
    }

    .page-body--aside > * {
      grid-column: 1;
    }

    .page-body--aside > .page-aside {
      grid-row: 1;
      grid-column: 2;
    }

    .page-body > .gallery-section,
    .page-body > .children-section {
      grid-column: 1 / -1;
    }
  }

  /* Home */
  .home-hero__inner {
    display: grid;
    gap: var(--space-l);
    padding-block: var(--space-l) var(--space-xl);
  }

  .home-hero__media img {
    width: 100%; /* never wider than the 960px photo: the column tops out near 500px */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 45%;
  }

  @media (min-width: 60em) {
    .home-hero__inner {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      align-items: center;
      column-gap: clamp(3rem, 6vw, 5.5rem);
      padding-block: var(--space-2xl) var(--space-section);
    }

    .home-hero__media img {
      aspect-ratio: 4 / 5;
    }
  }

  .home-highlights {
    border-block: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
  }

  .home-highlights__grid {
    display: grid;
    gap: var(--space-l);
    padding-block: var(--space-section);
  }

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

  .home-index__grid {
    display: grid;
    gap: var(--space-section);
    padding-block: var(--space-section);
  }

  .home-feature {
    border-block-start: var(--border-width) solid var(--color-border);
    background: var(--color-surface);
  }

  .home-feature__inner {
    display: grid;
    gap: var(--space-l);
    padding-block: var(--space-section);
  }

  .home-feature__media img {
    width: 100%;
  }

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

  @media (min-width: 48em) {
    .home-highlights__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      column-gap: clamp(1.5rem, 4vw, 3.5rem);
    }

    .home-index__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      column-gap: clamp(2rem, 6vw, 6rem);
    }

    .home-feature__inner {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: center;
      column-gap: clamp(2rem, 6vw, 5.5rem);
    }
  }
}

/* -------------------------------------------------------------------------------------------
   Components
   ------------------------------------------------------------------------------------------- */
@layer components {
  /* Skip link: hidden until focused */
  .skip-link {
    position: absolute;
    inset-block-start: var(--space-2xs);
    inset-inline-start: var(--space-2xs);
    z-index: 50;
    padding: var(--space-2xs) var(--space-s);
    background: var(--color-brand);
    color: var(--color-on-brand);
    font-weight: 600;
    transform: translateY(-200%);
  }

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

  .skip-link:hover {
    color: var(--color-on-brand);
  }

  /* Glyphs */
  .icon {
    flex: none;
    width: 1.25em;
    height: 1.25em;
  }

  /* ---- Buttons ---- */
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xs);
    min-height: var(--target-min);
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius);
    background: var(--color-brand);
    color: var(--color-on-brand);
    font-family: var(--font-body);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
  }

  .button:hover {
    border-color: var(--color-brand-hover);
    background: var(--color-brand-hover);
    color: var(--color-on-brand);
  }

  .button .icon {
    width: 1.1em;
    height: 1.1em;
  }

  .button--secondary {
    background: transparent;
    color: var(--color-brand);
  }

  .button--secondary:hover {
    border-color: var(--color-brand);
    background: var(--navy-tint);
    color: var(--color-brand);
  }

  .button--inverse {
    border-color: var(--white);
    background: var(--white);
    color: var(--navy);
  }

  .button--inverse:hover {
    border-color: var(--navy-tint);
    background: var(--navy-tint);
    color: var(--navy);
  }

  .button--block {
    width: 100%;
  }

  .button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-xs);
  }

  /* A text link with an arrow: "All flooring systems ->" */
  .arrow-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    min-height: var(--target-min);
    font-weight: 600;
    text-decoration: none;
  }

  .arrow-link:hover {
    text-decoration: underline;
  }

  .arrow-link .icon {
    width: 1.1em;
    height: 1.1em;
  }

  /* ---- Phone: click-to-call, or a TBD placeholder while site.json has none ---- */
  .phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: var(--target-min);
    color: var(--color-link);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  a.phone:hover .phone__number,
  a.phone:hover .phone__label {
    text-decoration: underline;
  }

  .phone__icon {
    width: 1.15em;
    height: 1.15em;
  }

  .phone .tbd {
    white-space: normal;
  }

  /* As a secondary button (home page) */
  .phone--button {
    padding-inline: 1rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius);
  }

  .phone--button.phone--tbd {
    border-style: dashed;
    border-color: var(--color-tbd-border);
  }

  /* ---- Header ---- */
  .site-header {
    position: relative;
    z-index: 20;
    border-block-end: var(--border-width) solid var(--color-border);
    background: var(--white); /* the logo is a JPG on white */
  }

  .site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xs);
    padding-block: var(--space-2xs);
  }

  /* The logo file is 300x130: shown at 112-220px, never wider. */
  .site-header__logo {
    display: block;
    flex: none;
    width: 7rem;
  }

  .site-header__logo img {
    width: 100%;
    /* The logo file has a faint 1-3px light grey frame from JPEG compression: hide it on
       screen without changing the file. */
    clip-path: inset(2px);
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
  }

  .site-header__phone {
    padding-inline: 0.625rem;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius);
    font-size: var(--step--1);
  }

  .site-header__phone.phone--tbd {
    padding-inline: 0.5rem;
    border-style: dashed;
    border-color: var(--color-tbd-border);
  }

  .site-header__phone .phone__number,
  .site-header__phone .phone__tbd-detail {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-header__cta {
    display: none;
  }

  @media (min-width: 22.5em) {
    .site-header__logo {
      width: 8.75rem;
    }
  }

  @media (min-width: 60em) {
    .site-header__bar {
      padding-block: var(--space-s);
    }

    .site-header__logo {
      width: 13.75rem;
    }

    .site-header__actions {
      gap: var(--space-m);
    }

    .site-header__phone {
      padding-inline: 0;
      border: 0;
      font-size: var(--step-0);
    }

    .site-header__phone.phone--tbd {
      padding-inline: 0;
      border: 0;
    }

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

    .site-header__phone .phone__number,
    .site-header__phone .phone__tbd-detail {
      position: static;
      width: auto;
      height: auto;
      overflow: visible;
      clip-path: none;
    }

    .site-header__cta {
      display: inline-flex;
    }
  }

  /* ---- Main menu ---- */
  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: var(--target-min);
    padding-inline: 0.75rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius);
    background: var(--color-brand);
    color: var(--color-on-brand);
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
  }

  .site-nav__toggle[aria-expanded="true"] {
    background: var(--white);
    color: var(--color-brand);
  }

  .site-nav__toggle[aria-expanded="false"] .site-nav__toggle-close,
  .site-nav__toggle[aria-expanded="true"] .site-nav__toggle-open {
    display: none;
  }

  .site-nav__list,
  .site-nav__submenu {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav li {
    max-width: none;
  }

  /* Small screens: a stacked list under the header bar */
  .site-nav {
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .site-nav__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding-block: var(--space-2xs);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
  }

  .site-nav__link:hover {
    color: var(--color-link);
    text-decoration: underline;
  }

  .site-nav__link[aria-current] {
    color: var(--color-link);
    box-shadow: inset var(--rule-width) 0 0 var(--color-accent);
    padding-inline-start: var(--space-xs);
  }

  .site-nav__subtoggle {
    display: grid;
    place-items: center;
    width: var(--target-min);
    height: var(--target-min);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-brand);
    cursor: pointer;
  }

  .site-nav__subtoggle:hover,
  .site-nav__subtoggle[aria-expanded="true"] {
    background: var(--navy-tint);
  }

  .site-nav__subtoggle .icon {
    transition: transform 0.15s ease;
  }

  .site-nav__subtoggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
  }

  .site-nav__submenu {
    grid-column: 1 / -1;
    padding-block-end: var(--space-xs);
    padding-inline-start: var(--space-s);
    border-inline-start: var(--border-width) solid var(--color-border);
    margin-block-end: var(--space-xs);
  }

  .site-nav__submenu a {
    display: flex;
    align-items: center;
    min-height: 2.5rem;
    color: var(--color-text);
    font-size: var(--step--1);
    text-decoration: none;
  }

  .site-nav__submenu a:hover {
    color: var(--color-link);
    text-decoration: underline;
  }

  .site-nav__submenu a[aria-current] {
    color: var(--color-link);
    font-weight: 650;
  }

  .site-nav__item--cta {
    display: block;
    padding-block: var(--space-s);
    border-block-end: 0;
  }

  .site-nav__item--cta .button {
    width: 100%;
  }

  /* Small screens with JavaScript: the menu starts closed, from the first paint, so it never
     shows fully open and then collapses when nav.js runs. With scripting off the whole menu
     stays visible. Browsers that don't know (scripting) use the [data-enhanced] rules, which
     apply once nav.js has run. */
  @media (max-width: 59.99em) and (scripting: enabled) {
    .site-nav:not([data-open]) {
      display: none;
    }

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

    .site-nav [aria-expanded="true"] + .site-nav__submenu {
      display: block;
    }
  }

  @media (max-width: 59.99em) {
    .site-nav[data-enhanced]:not([data-open]) {
      display: none;
    }

    .site-nav[data-enhanced] .site-nav__submenu {
      display: none;
    }

    .site-nav[data-enhanced] [aria-expanded="true"] + .site-nav__submenu {
      display: block;
    }
  }

  /* Large screens: one row under the logo bar, submenus drop down */
  @media (min-width: 60em) {
    .site-header__actions .site-nav__toggle {
      display: none;
    }

    .site-nav__list {
      display: flex;
      flex-wrap: wrap;
      margin-inline-start: calc(-1 * var(--space-xs));
    }

    .site-nav__item {
      position: relative;
      display: flex;
      border: 0;
    }

    .site-nav__link {
      min-height: 3.25rem;
      padding-inline: var(--space-xs);
      font-size: 0.9375rem;
    }

    /* Room for the arrow button that the script adds */
    .site-nav[data-enhanced] .site-nav__item--parent .site-nav__link {
      padding-inline-end: 0.125rem;
    }

    .site-nav__link[aria-current] {
      padding-inline-start: var(--space-xs);
      box-shadow: inset 0 calc(-1 * var(--rule-width)) 0 var(--color-accent);
    }

    .site-nav__subtoggle {
      width: 1.75rem;
      height: 2.5rem;
      margin-inline-end: var(--space-2xs);
    }

    .site-nav__subtoggle .icon {
      width: 1rem;
      height: 1rem;
    }

    .site-nav__submenu {
      display: none;
      position: absolute;
      inset-block-start: 100%;
      inset-inline-start: 0;
      z-index: 30;
      width: max-content;
      min-width: 16rem;
      max-width: 26rem;
      margin: 0;
      padding-block: var(--space-2xs);
      padding-inline: 0;
      border: var(--border-width) solid var(--color-border);
      border-block-start: var(--rule-width) solid var(--color-brand);
      background: var(--white);
      box-shadow: var(--shadow-menu);
    }

    .site-nav__submenu a {
      min-height: 2.5rem;
      padding-inline: var(--space-m);
      font-size: 0.9375rem;
    }

    .site-nav__submenu a:hover {
      background: var(--navy-tint);
    }

    .site-nav__submenu a[aria-current] {
      box-shadow: inset var(--rule-width) 0 0 var(--color-accent);
    }

    /* Without JavaScript: open on hover and keyboard focus */
    .site-nav:not([data-enhanced]) .site-nav__item--parent:is(:hover, :focus-within) > .site-nav__submenu,
    .site-nav[data-enhanced] [aria-expanded="true"] + .site-nav__submenu {
      display: block;
    }

    .site-nav__item--cta {
      display: none;
    }
  }

  /* ---- Breadcrumbs ---- */
  .breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xs) var(--space-2xs);
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
  }

  .breadcrumbs li + li::before {
    content: "/";
    margin-inline-end: var(--space-2xs);
    color: var(--color-border-strong);
  }

  .breadcrumbs a,
  .breadcrumbs [aria-current] {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
  }

  .breadcrumbs [aria-current] {
    color: var(--color-text-muted);
  }

  /* ---- Lead paragraph ---- */
  .lead {
    max-width: 62ch;
    color: #2b2b2b;
    font-size: var(--step-1);
    line-height: 1.55;
  }

  .lead p {
    max-width: none;
  }

  /* Small uppercase label above a heading (accent color) */
  .eyebrow {
    color: var(--color-accent);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .section-heading {
    margin-block-end: var(--space-m);
    font-size: var(--step-3);
  }

  /* ---- Prose: Markdown body text ---- */
  /* The whole text column keeps to the reading measure, so rules and photos line up with it. */
  .prose {
    --flow-space: 1.1em;
    max-width: var(--measure);
  }

  .prose h2 {
    --flow-space: 2.25em;
    padding-block-start: var(--space-m);
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .prose > h2:first-child {
    padding-block-start: 0;
    border: 0;
  }

  .prose h3 {
    --flow-space: 1.75em;
    font-size: var(--step-1);
  }

  .prose :is(h2, h3) + * {
    --flow-space: 0.65em;
  }

  .prose ul {
    list-style-type: square;
  }

  .prose li + li {
    margin-block-start: 0.4em;
  }

  .prose ul > li::marker {
    color: var(--color-accent);
  }

  .prose .figure {
    --flow-space: 1.75em;
  }

  .prose .figure + * {
    --flow-space: 1.75em;
  }

  /* ---- Figure with caption ---- */
  .figure figcaption,
  .gallery figcaption {
    margin-block-start: var(--space-2xs);
    color: var(--color-text-muted);
    font-size: var(--step--1);
  }

  .figure img {
    width: 100%; /* the prose column (68ch) is narrower than any photo used */
  }

  /* Upright photos would fill the screen at full width: shown narrower, as a block at the
     start of the text column, with the caption below. They never float, so they never leave
     a blank area beside them. The figure shortcode's `sizes` matches this width. */
  .figure--portrait {
    max-width: min(100%, 24rem);
  }

  /* ---- Photo grid: square cells, so upright and wide photos line up. Cells are smaller
     than any photo used (24rem at most). ---- */
  .gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xs);
    padding: 0;
    list-style: none;
  }

  .gallery li {
    max-width: none;
  }

  .gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }

  @media (min-width: 22.5em) {
    .gallery {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 48em) {
    .gallery {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-s);
    }
  }

  /* Three photos in a row, cropped to the same shape (home page) */
  .photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: var(--space-l) var(--space-m);
    padding: 0;
    list-style: none;
  }

  .photo-row li {
    max-width: none;
  }

  .photo-row img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .photo-row figcaption {
    margin-block-start: var(--space-xs);
    padding-inline-start: var(--space-xs);
    border-inline-start: var(--rule-width) solid var(--color-accent);
    color: var(--color-text-muted);
    font-size: var(--step--1);
    line-height: 1.45;
  }

  /* ---- Link list: cross-links and the home page index ---- */
  .link-list {
    padding: 0;
    border-block-start: var(--border-width) solid var(--color-border);
    list-style: none;
  }

  .link-list li {
    max-width: none;
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
    min-height: var(--target-min);
    padding-block: var(--space-2xs);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
  }

  .link-list a .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--color-brand);
    transition: transform 0.15s ease;
  }

  .link-list a:hover {
    color: var(--color-link);
  }

  .link-list a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }

  .link-list a:hover .icon {
    transform: translateX(0.2rem);
  }

  .link-list--large a {
    min-height: 3.5rem;
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: var(--step-1);
  }

  .link-list + p {
    margin-block-start: var(--space-xs);
  }

  /* ---- Cards: overview pages; designed to work without photos ---- */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: var(--space-s);
    padding: 0;
    list-style: none;
  }

  .card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    max-width: none;
    min-height: 9rem;
    padding: var(--space-m) var(--space-m) calc(var(--space-m) + 2rem);
    border: var(--border-width) solid var(--color-border);
    border-block-start: var(--rule-width) solid var(--color-brand);
    background: var(--white);
  }

  .card:hover {
    border-color: var(--color-brand);
  }

  .card__title {
    font-size: var(--step-1);
  }

  .card__title a {
    text-decoration: none;
  }

  .card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
  }

  .card:hover .card__title a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
  }

  .card__summary {
    color: var(--color-text-muted);
    font-size: var(--step--1);
  }

  .card__arrow {
    position: absolute;
    inset-block-end: var(--space-m);
    inset-inline-start: var(--space-m);
    color: var(--color-accent);
  }

  /* ---- FAQ: native details/summary ---- */
  .faq__group + .faq__group {
    margin-block-start: var(--space-section);
  }

  .faq__list {
    max-width: var(--measure);
    border-block-start: var(--border-width) solid var(--color-border);
  }

  .faq__item {
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .faq__question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-s);
    padding-block: var(--space-s);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
  }

  .faq__question::-webkit-details-marker {
    display: none;
  }

  /* Chevron drawn with two borders */
  .faq__question::after {
    content: "";
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    margin-block-start: 0.3em;
    margin-inline-end: 0.25rem;
    border-block-end: 2px solid var(--color-brand);
    border-inline-end: 2px solid var(--color-brand);
    transform: rotate(45deg);
  }

  .faq__item[open] > .faq__question::after {
    margin-block-start: 0.55em;
    transform: rotate(-135deg);
  }

  .faq__question:hover {
    color: var(--color-link);
  }

  .faq__answer {
    padding-block-end: var(--space-m);
    color: #2b2b2b;
  }

  /* "More questions? See the FAQ." under a page's own questions */
  .faq__more {
    margin-block-start: var(--space-s);
  }

  /* ---- Sidebar ---- */
  .page-aside {
    display: grid;
    align-content: start;
    gap: var(--space-xl);
  }

  .aside-block__heading,
  .site-footer__heading {
    margin-block-end: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .aside-block__heading {
    color: var(--color-accent);
  }

  .toc {
    padding: 0;
    list-style: none;
  }

  .toc a {
    display: flex;
    align-items: center;
    min-height: 2.25rem;
    font-weight: 600;
  }

  .aside-contact {
    display: grid;
    gap: var(--space-xs);
    justify-items: start;
    padding: var(--space-m);
    border: var(--border-width) solid var(--color-border);
    border-block-start: var(--rule-width) solid var(--color-brand);
    background: var(--color-surface);
  }

  /* On small screens the call-to-action band at the foot of the page does this job. */
  @media (max-width: 59.99em) {
    .aside-contact {
      display: none;
    }
  }

  .aside-contact__heading {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.25;
  }

  .contact-details__list {
    display: grid;
    gap: var(--space-m);
  }

  .contact-details__list dt {
    color: var(--color-text-muted);
    font-size: var(--step--1);
  }

  .contact-details__list dd {
    margin: 0;
    font-weight: 600;
  }

  .contact-details__list .phone {
    min-height: 0;
  }

  /* ---- Call-to-action band ---- */
  .cta-band {
    --color-focus: var(--white);
    background: var(--navy);
    color: var(--navy-pale);
  }

  .cta-band__inner {
    display: grid;
    gap: var(--space-m);
    padding-block: var(--space-section);
  }

  .cta-band__heading {
    color: var(--white);
    font-size: var(--step-4);
  }

  .cta-band__text p {
    margin-block-start: var(--space-xs);
    font-size: var(--step-1);
  }

  .cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-s) var(--space-l);
  }

  .cta-band .phone {
    color: var(--white);
    font-size: var(--step-1);
  }

  @media (min-width: 60em) {
    .cta-band__inner {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: var(--space-2xl);
    }
  }

  /* ---- Footer ---- */
  .site-footer {
    --color-focus: var(--white);
    background: var(--ink-deep);
    color: #c4c4c4; /* 10.5:1 */
    font-size: var(--step--1);
  }

  .site-footer a {
    color: var(--white);
    text-decoration: none;
  }

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

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

  .site-footer__grid {
    display: grid;
    gap: var(--space-xl);
    padding-block: var(--space-section) var(--space-xl);
  }

  .site-footer__name {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.2;
  }

  .site-footer__about {
    max-width: 32ch;
    margin-block-start: var(--space-2xs);
  }

  .site-footer__contact {
    display: grid;
    gap: var(--space-2xs);
    margin-block-start: var(--space-m);
  }

  .site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
  }

  .site-footer__contact .icon {
    width: 1.1em;
    height: 1.1em;
    color: #a3a3a3;
  }

  .site-footer__contact .phone {
    min-height: 2rem;
    color: var(--white);
  }

  .site-footer__contact .phone__icon {
    color: #a3a3a3;
  }

  .site-footer__nav {
    display: grid;
    gap: var(--space-l);
  }

  .site-footer__heading {
    color: #a3a3a3; /* 7.2:1 */
  }

  .site-footer__group .site-footer__heading a {
    display: inline;
    min-height: 0;
    color: inherit;
  }

  .site-footer__group a {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem; /* 28px targets */
  }

  .site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-2xs) var(--space-l);
    padding-block: var(--space-m);
    border-block-start: var(--border-width) solid #2e3036;
  }

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

  @media (min-width: 60em) {
    .site-footer__grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
      column-gap: var(--space-2xl);
    }

    .site-footer__nav {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }

  /* ---- Home ---- */
  .home-hero .eyebrow {
    margin-block-end: var(--space-s);
  }

  .home-hero__title {
    font-size: var(--step-5);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .home-hero .lead {
    margin-block-start: var(--space-m);
  }

  .home-hero .button-row {
    margin-block-start: var(--space-l);
  }

  .home-highlights__item {
    padding-block-start: var(--space-m);
    border-block-start: var(--rule-width) solid var(--color-brand);
  }

  .home-highlights__heading {
    font-size: var(--step-2);
  }

  .home-highlights__item .flow {
    margin-block-start: var(--space-xs);
  }

  .home-highlights__item > p {
    margin-block-start: var(--space-2xs);
  }

  .home-feature__text .flow {
    margin-block-start: var(--space-s);
  }

  .home-feature__text .button {
    margin-block-start: var(--space-m);
  }

  /* ---- Contact form ---- */
  .contact-form {
    display: grid;
    gap: var(--space-m);
    max-width: 46rem;
  }

  .contact-form__note,
  .form-note {
    color: var(--color-text-muted);
    font-size: var(--step--1);
  }

  .contact-form__heading + .contact-form__note {
    margin-block-start: calc(-1 * var(--space-xs));
  }

  .form-grid {
    display: grid;
    gap: var(--space-m);
  }

  .form-field {
    display: grid;
    align-content: start;
    gap: 0.375rem;
  }

  .form-field label {
    font-weight: 600;
  }

  .form-field__required,
  .form-field__hint {
    color: var(--color-text-muted);
    font-size: 0.875em;
    font-weight: 400;
  }

  .form-field__help {
    color: var(--color-text-muted);
    font-size: var(--step--1);
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    min-height: var(--target-min);
    padding: 0.5625rem 0.75rem;
    border: var(--border-width) solid var(--color-border-strong);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--color-text);
  }

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

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

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

  /* Errors: shown once someone has tried the field (or tried to send). */
  .form-field__error {
    display: none;
    color: var(--color-error);
    font-size: var(--step--1);
    font-weight: 600;
  }

  .form-field__error::before {
    content: "! ";
  }

  .form-field input:user-invalid,
  .form-field textarea:user-invalid {
    border-color: var(--color-error);
    box-shadow: inset var(--rule-width) 0 0 var(--color-error);
  }

  .form-field:has(:user-invalid) .form-field__error {
    display: block;
  }

  /* aria-invalid is set by form.js, so the message a screen reader hears is also shown.
     Separate rules: a browser that doesn't know :user-invalid drops the whole rule. */
  .form-field [aria-invalid="true"] {
    border-color: var(--color-error);
    box-shadow: inset var(--rule-width) 0 0 var(--color-error);
  }

  .form-field:has([aria-invalid="true"]) .form-field__error {
    display: block;
  }

  .form-honeypot {
    display: none;
  }

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

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

  /* ---- Placeholders. Shown in previews; production builds fail while any remain. ---- */
  .tbd {
    padding: 0 0.3em;
    border: var(--border-width) dashed var(--color-tbd-border);
    border-radius: var(--radius);
    background: var(--color-tbd-bg);
    color: var(--color-tbd-text);
    font-family: var(--font-body);
    font-size: max(0.875em, 0.875rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.5;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  .draft-notice {
    max-width: none;
    padding: var(--space-xs) var(--gutter);
    border-block-end: 2px dashed var(--color-tbd-border);
    background: var(--color-tbd-bg);
    color: var(--color-tbd-text);
    font-size: var(--step--1);
    text-align: center;
  }
}

/* -------------------------------------------------------------------------------------------
   Modern look. This layer restyles the parts above and holds the parts only this version has:
   the dark page bands, the photo tiles, the numbered rows and the photo mosaic. The accent is
   the yellow of the safety lines in Spectrum's floor photos; it is used on dark backgrounds
   and as a rule or stripe, never as text on white.
   ------------------------------------------------------------------------------------------- */
@layer modern {
  h1,
  h2,
  h3,
  h4 {
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  /* Full-width grid shared by the bands whose photo runs to the edge of the screen:
     gutter, two halves of the text column, gutter. */
  .hero__inner,
  .masthead__inner,
  .split {
    display: grid;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [content-start] minmax(0, calc(var(--wrapper-max) / 2))
      [mid] minmax(0, calc(var(--wrapper-max) / 2))
      [content-end] minmax(var(--gutter), 1fr)
      [full-end];
  }

  /* Hazard stripe under the dark bands */
  .stripe {
    height: 0.5rem;
    background: repeating-linear-gradient(-45deg, var(--line) 0 0.75rem, var(--ink-deep) 0.75rem 1.5rem);
  }

  /* Small label above a heading, with a short rule */
  .kicker {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    max-width: none;
    color: var(--line);
    font-size: var(--step--2);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .kicker::before {
    content: "";
    flex: none;
    width: 2.5rem;
    height: 3px;
    background: var(--line);
  }

  .display {
    font-size: var(--step-4);
    font-stretch: 118%;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.03em;
  }

  /* ---- Buttons ---- */
  .button {
    padding: 0.7rem 1.4rem;
    font-weight: 650;
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease;
  }

  .button .icon {
    transition: transform 0.15s ease;
  }

  .button:hover .icon {
    transform: translateX(0.2rem);
  }

  .button--accent {
    border-color: var(--line);
    background: var(--line);
    color: var(--ink-deep);
  }

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

  /* ---- Header: one row on wide screens ---- */
  .site-header__bar {
    flex-wrap: wrap;
    column-gap: var(--space-s);
  }

  .site-header__logo {
    width: 8.5rem;
  }

  .site-header__logo img {
    clip-path: none;
  }

  .site-header__actions {
    margin-inline-start: auto;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .site-nav__link[aria-current] {
    box-shadow: inset var(--rule-width) 0 0 var(--line);
  }

  @media (min-width: 60em) {
    .site-header__logo {
      width: 11.5rem;
    }

    .site-nav__link[aria-current] {
      box-shadow: inset 0 calc(-1 * var(--rule-width)) 0 var(--line);
    }

    .site-nav__submenu a[aria-current] {
      box-shadow: inset var(--rule-width) 0 0 var(--line);
    }
  }

  @media (min-width: 78em) {
    html {
      scroll-padding-block-start: 6rem;
    }

    .site-header {
      position: sticky;
      inset-block-start: 0;
    }

    .site-header__bar {
      flex-wrap: nowrap;
      padding-block: var(--space-xs);
    }

    .site-header__logo {
      width: 10rem;
    }

    .site-header__actions {
      order: 2;
      flex: none;
      gap: var(--space-xs);
    }

    .site-nav {
      order: 1;
      flex: 0 1 auto;
      margin-inline-start: var(--space-s);
      border: 0;
    }

    .site-nav__list {
      flex-wrap: nowrap;
      margin: 0;
    }

    .site-nav__link {
      padding-inline: 0.5rem;
      font-size: 0.875rem;
      white-space: nowrap;
    }

    .site-nav[data-enhanced] .site-nav__item--parent .site-nav__link {
      padding-inline-end: 0;
    }

    .site-nav__subtoggle {
      margin-inline-end: 0;
    }

    /* The button beside the menu already leads to the contact page. */
    .site-nav__item--contact {
      display: none;
    }

    .site-header__phone,
    .site-header__cta {
      font-size: 0.9375rem;
    }

    .site-header__cta {
      padding-inline: 1rem;
      white-space: nowrap;
    }
  }

  /* ---- Home hero ---- */
  .hero {
    --color-focus: var(--white);
    background: var(--ink-deep);
    color: var(--navy-pale);
  }

  .hero__text {
    grid-column: content-start / content-end;
    display: grid;
    gap: var(--space-m);
    align-content: center;
    padding-block: var(--space-xl);
  }

  .hero__title {
    max-width: 16ch;
    color: var(--white);
    font-size: var(--step-5);
    font-stretch: 118%;
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .hero__lead {
    max-width: 54ch;
    font-size: var(--step-1);
    line-height: 1.55;
  }

  .hero__lead p {
    max-width: none;
  }

  .hero .phone--button {
    border-color: rgb(255 255 255 / 0.45);
    color: var(--white);
  }

  .hero__media {
    grid-column: full-start / full-end;
  }

  .hero__media img,
  .masthead__media img,
  .split__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  @media (min-width: 60em) {
    .hero__inner {
      min-height: min(42rem, 80vh);
    }

    .hero__text {
      grid-column: content-start / mid;
      padding-block: var(--space-2xl);
      padding-inline-end: clamp(2rem, 5vw, 5rem);
    }

    .hero__media,
    .masthead--media .masthead__media,
    .split__media {
      position: relative;
      min-height: 22rem;
    }

    .hero__media {
      grid-column: mid / full-end;
    }

    .hero__media img,
    .masthead--media .masthead__media img,
    .split__media img {
      position: absolute;
      inset: 0;
      height: 100%;
      aspect-ratio: auto;
    }
  }

  /* ---- Page heading band ---- */
  .masthead {
    --color-focus: var(--white);
    border: 0;
    background: var(--ink-deep);
    color: var(--navy-pale);
  }

  .masthead__inner,
  .masthead--media .masthead__inner {
    gap: 0;
    padding-block: 0;
  }

  .masthead__text {
    grid-column: content-start / content-end;
    padding-block: var(--space-m) var(--space-xl);
  }

  .masthead__title {
    max-width: 20ch;
    color: var(--white);
    font-stretch: 118%;
    font-weight: 750;
    letter-spacing: -0.03em;
  }

  .masthead .lead {
    color: var(--navy-pale);
  }

  .masthead .breadcrumbs a {
    color: var(--white);
  }

  .masthead .breadcrumbs [aria-current] {
    color: var(--navy-pale);
  }

  .masthead .breadcrumbs li + li::before {
    color: var(--line);
  }

  .masthead__media {
    grid-column: full-start / full-end;
  }

  @media (min-width: 60em) {
    .masthead__inner,
    .masthead--media .masthead__inner {
      align-items: stretch;
      column-gap: 0;
      padding-block: 0;
    }

    .masthead__text {
      padding-block: var(--space-l) var(--space-2xl);
    }

    .masthead--media .masthead__text {
      grid-column: content-start / mid;
      padding-inline-end: clamp(2rem, 5vw, 5rem);
    }

    .masthead--media .masthead__media {
      grid-column: mid / full-end;
      margin: 0;
    }
  }

  /* ---- Three statements under the hero ---- */
  .facts {
    border-block-end: var(--border-width) solid var(--color-border);
  }

  .facts__grid {
    display: grid;
    gap: var(--space-xl);
    padding-block: var(--space-section);
  }

  .facts__item {
    --flow-space: 0.75em;
    display: grid;
    align-content: start;
    gap: var(--space-xs);
  }

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

  .facts__heading::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    margin-block-end: var(--space-s);
    background: var(--line);
  }

  @media (min-width: 48em) {
    .facts__grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(2rem, 5vw, 4.5rem);
    }
  }

  /* ---- Page bands ---- */
  .band {
    padding-block: var(--space-section);
  }

  .band--dark {
    --color-focus: var(--white);
    background: var(--ink-deep);
    color: var(--navy-pale);
  }

  .band--dark .display,
  .band--dark .arrow-link {
    color: var(--white);
  }

  .band__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-xs) var(--space-l);
    margin-block-end: var(--space-l);
  }

  /* ---- Photo tiles: the whole tile is the link ---- */
  .tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
    gap: var(--space-s);
    padding: 0;
    list-style: none;
  }

  .tiles--summary {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  }

  /* Home: eight industries, as two rows of four on wide screens */
  @media (min-width: 22.5em) {
    .tiles:not(.tiles--summary) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--space-2xs);
    }

    .tiles:not(.tiles--summary) .tile {
      min-height: 11rem;
    }

    .tiles:not(.tiles--summary) .tile__body {
      padding: var(--space-xs);
    }

    .tiles:not(.tiles--summary) .tile__title {
      font-size: var(--step-0);
    }
  }

  @media (min-width: 60em) {
    .tiles:not(.tiles--summary) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tiles:not(.tiles--summary) {
      gap: var(--space-s);
    }

    .tiles:not(.tiles--summary) .tile {
      min-height: 17rem;
    }

    .tiles:not(.tiles--summary) .tile__body {
      padding: var(--space-m);
    }

    .tiles:not(.tiles--summary) .tile__title {
      font-size: var(--step-1);
    }
  }

  .tile {
    --color-focus: var(--white);
    position: relative;
    display: grid;
    align-items: end;
    max-width: none;
    min-height: 15rem;
    overflow: hidden;
    background: var(--navy);
    color: var(--navy-pale);
  }

  .tiles--summary .tile {
    min-height: 19rem;
  }

  .tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  /* Shade behind the text, and the yellow rule that grows on hover */
  .tile::before,
  .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
  }

  .tile::before {
    background: linear-gradient(to top, rgb(7 18 54 / 0.94) 0%, rgb(7 18 54 / 0.72) 32%, rgb(7 18 54 / 0.12) 68%, rgb(7 18 54 / 0) 100%);
  }

  .tiles--summary .tile::before {
    background: linear-gradient(to top, rgb(7 18 54 / 0.96) 0%, rgb(7 18 54 / 0.86) 45%, rgb(7 18 54 / 0.25) 85%, rgb(7 18 54 / 0.1) 100%);
  }

  .tile--plain::before {
    background: none;
  }

  .tile::after {
    inset-block-start: auto;
    height: 4px;
    background: var(--line);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .tile:hover::after,
  .tile:focus-within::after {
    transform: scaleX(1);
  }

  .tile:hover img {
    transform: scale(1.04);
  }

  .tile__body {
    z-index: 2;
    display: grid;
    gap: var(--space-2xs);
    padding: var(--space-m);
  }

  .tile__title {
    color: var(--white);
    font-size: var(--step-1);
    font-stretch: 106%;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .tile__title a {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: var(--space-xs);
    color: inherit;
    text-decoration: none;
  }

  .tile__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .tile__title .icon {
    flex: none;
    color: var(--line);
    transition: transform 0.15s ease;
  }

  .tile:hover .tile__title .icon {
    transform: translateX(0.2rem);
  }

  .tile__summary {
    font-size: var(--step--1);
    line-height: 1.45;
  }

  /* ---- Numbered rows: the flooring systems ---- */
  .systems {
    display: grid;
    gap: var(--space-l);
  }

  .systems__head {
    display: grid;
    align-content: start;
    gap: var(--space-s);
  }

  .rows {
    padding: 0;
    border-block-end: var(--border-width) solid rgb(255 255 255 / 0.2);
    list-style: none;
    counter-reset: row;
  }

  .rows__item {
    max-width: none;
    border-block-start: var(--border-width) solid rgb(255 255 255 / 0.2);
    counter-increment: row;
  }

  .rows__link {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--space-s);
    padding-block: var(--space-s);
    color: var(--white);
    text-decoration: none;
    transition: padding 0.2s ease;
  }

  .rows__link::before {
    content: counter(row, decimal-leading-zero);
    color: var(--line);
    font-size: var(--step--1);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .rows__title {
    font-size: var(--step-2);
    font-stretch: 112%;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .rows__summary {
    grid-column: 2;
    color: var(--navy-pale);
    font-size: var(--step--1);
  }

  .rows__arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    color: var(--line);
    transition: transform 0.15s ease;
  }

  .rows__link:hover {
    color: var(--white);
    padding-inline-start: var(--space-xs);
  }

  .rows__link:hover .rows__title {
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
  }

  .rows__link:hover .rows__arrow {
    transform: translateX(0.25rem);
  }

  @media (min-width: 60em) {
    .systems {
      grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
      column-gap: clamp(3rem, 7vw, 7rem);
    }

    .systems__head {
      position: sticky;
      inset-block-start: 7rem;
      align-self: start;
    }
  }

  /* ---- Photo beside text, the photo running to the edge of the screen ---- */
  .split {
    background: var(--color-surface);
  }

  .split__media {
    grid-column: full-start / full-end;
  }

  .split__text {
    grid-column: content-start / content-end;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-m);
    padding-block: var(--space-xl);
  }

  @media (min-width: 60em) {
    .split__media {
      grid-column: full-start / mid;
      min-height: 30rem;
    }

    .split__text {
      grid-column: mid / content-end;
      padding-block: var(--space-2xl);
      padding-inline-start: clamp(2rem, 5vw, 5rem);
    }
  }

  /* ---- Photo mosaic: one large photo and four small ones ---- */
  .mosaic {
    display: grid;
    gap: var(--space-xs);
    padding: 0;
    list-style: none;
  }

  .mosaic__item {
    max-width: none;
  }

  .mosaic figure {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--ink-deep);
  }

  .mosaic img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .mosaic figcaption {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    padding: var(--space-l) var(--space-s) var(--space-xs);
    background: linear-gradient(to top, rgb(7 18 54 / 0.92) 0%, rgb(7 18 54 / 0.7) 55%, rgb(7 18 54 / 0) 100%);
    color: var(--white);
    font-size: var(--step--1);
    line-height: 1.4;
  }

  @media (min-width: 36em) {
    .mosaic {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mosaic__item:first-child {
      grid-column: 1 / -1;
    }
  }

  @media (min-width: 60em) {
    .mosaic {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: 17rem;
    }

    .mosaic__item:first-child {
      grid-column: span 2;
      grid-row: span 2;
    }

    .mosaic img {
      aspect-ratio: auto;
    }
  }

  /* ---- Inner pages ---- */
  .section-heading {
    font-stretch: 116%;
  }

  .prose h2 {
    padding-block-start: 0;
    border: 0;
  }

  .prose h2::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    margin-block-end: var(--space-s);
    background: var(--line);
  }

  .prose ul > li::marker {
    color: var(--navy);
  }

  .aside-contact {
    --color-focus: var(--white);
    border: 0;
    background: var(--ink-deep);
    color: var(--navy-pale);
  }

  .aside-contact__heading,
  .aside-contact .phone {
    color: var(--white);
  }

  .aside-contact .button {
    border-color: var(--line);
    background: var(--line);
    color: var(--ink-deep);
  }

  .aside-contact .button:hover {
    border-color: var(--white);
    background: var(--white);
  }

  @media (min-width: 60em) {
    .page-aside {
      position: sticky;
      inset-block-start: 7rem;
      align-self: start;
    }
  }

  /* ---- Call-to-action band: yellow, with dark text ---- */
  .cta-band {
    --color-focus: var(--ink-deep);
    background: var(--line);
    color: var(--ink-deep);
  }

  .cta-band__heading {
    color: var(--ink-deep);
    font-stretch: 118%;
    font-weight: 750;
    letter-spacing: -0.03em;
  }

  .cta-band .phone {
    color: var(--ink-deep);
  }

  .cta-band .button--inverse {
    border-color: var(--ink-deep);
    background: var(--ink-deep);
    color: var(--white);
  }

  .cta-band .button--inverse:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
  }

  .site-footer__name {
    font-stretch: 112%;
  }
}

/* -------------------------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}

/* -------------------------------------------------------------------------------------------
   Print: content only, with link addresses written out
   ------------------------------------------------------------------------------------------- */
@layer print {
  @media print {
    .skip-link,
    .site-nav,
    .site-header__actions,
    .cta-band,
    .aside-contact,
    .button-row,
    .site-footer__nav,
    .site-footer__legal {
      display: none !important;
    }

    body {
      color: #000;
      font-size: 11pt;
    }

    .site-header,
    .masthead,
    .home-highlights,
    .home-feature,
    .site-footer {
      border: 0;
      background: none;
      color: #000;
    }

    .site-footer a,
    .site-footer__name {
      color: #000;
    }

    .prose a[href]::after,
    .faq__answer a[href]::after,
    .link-list a[href]::after {
      content: " (" attr(href) ")";
      font-size: 0.85em;
      font-weight: 400;
    }

    .faq__item::details-content {
      content-visibility: visible;
    }

    .masthead__media,
    .home-hero__media,
    .home-feature__media,
    .figure {
      max-width: 12cm;
    }

    .gallery {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    h2,
    h3 {
      break-after: avoid;
    }

    img,
    figure,
    .faq__item {
      break-inside: avoid;
    }
  }
}
