/* coastalcoatings.co — the public site's one stylesheet (2026-10 redesign).
   Pages: src/content/site/*.html inside the header/footer of src/lib/site-chrome.js.
   Colors are the logo's: navy lettering, Gulf blue, sun yellow, red dots. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo.woff2) format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/fonts/archivo-italic.woff2) format("woff2");
}

:root {
  --navy: #1d2747;
  --navy-2: #2a375d;
  --navy-3: #3a4a78;
  --blue: #0095da;
  --blue-dark: #0077b3;
  --sun: #fcc61f;
  --sun-2: #f6a723;
  --red: #ed1c24;
  --ink: #141b33;
  --text: #3d4560;
  --muted: #6b7390;
  --line: #e2e6ef;
  --bg: #ffffff;
  --soft: #f3f5f9;
  --soft-2: #e9edf5;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgb(20 27 51 / 0.06), 0 2px 6px rgb(20 27 51 / 0.04);
  --shadow: 0 2px 4px rgb(20 27 51 / 0.04), 0 12px 32px -8px rgb(20 27 51 / 0.14);
  --shadow-lg: 0 4px 8px rgb(20 27 51 / 0.05), 0 28px 60px -16px rgb(20 27 51 / 0.28);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 84px;

  --display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Overspray speckle tiles (see "Spray" below): sun and blue droplets, from
     scripts/build-speckle.mjs. */
  --speck-sun: url("/brand/speck-sun.svg");
  --speck-blue: url("/brand/speck-blue.svg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--navy-2);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-stretch: 106%;
  line-height: 1.2;
}
h4 {
  font-size: 1.1rem;
  font-stretch: 104%;
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- layout */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 760px);
}
.section {
  padding-block: var(--section);
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}
.section--soft {
  background: var(--soft);
}
.section:not(.section--soft, .section--navy) + .section:not(.section--soft, .section--navy) {
  padding-top: 0;
}
.section--soft + .section--soft {
  padding-top: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 0.8rem;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 6px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--blue) 0 40%, var(--red) 40% 70%, var(--sun) 70%);
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
}
.muted {
  color: var(--muted);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head > div {
  max-width: 720px;
}
.section-head h2 {
  margin-bottom: 0.3em;
}
.section-head p {
  margin: 0;
}
.split > * {
  min-width: 0;
}
.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-media {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .split--flip > :first-child {
    order: 2;
  }
}
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.media {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--soft-2);
  box-shadow: var(--shadow);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall {
  aspect-ratio: 4 / 5;
}
.media--wide {
  aspect-ratio: 3 / 2;
}
.media--square {
  aspect-ratio: 1;
}
.prose > :last-child,
.card > :last-child,
.card-body > :last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------- buttons */
.btn {
  --bg: var(--navy);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--fg);
  font: 650 0.95rem/1 var(--body);
  font-stretch: 108%;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 0 6px 18px -8px rgb(29 39 71 / 0.6);
}
.btn:hover {
  color: var(--fg);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgb(29 39 71 / 0.55);
}
.btn:active {
  transform: none;
}
.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}
.btn .arrow {
  width: 16px;
  height: 16px;
}
.btn--blue {
  --bg: var(--blue);
}
.btn--blue:hover {
  --bg: var(--blue-dark);
}
.btn--sun {
  --bg: var(--sun);
  --fg: var(--navy);
  box-shadow: 0 8px 22px -10px rgb(246 167 35 / 0.9);
}
.btn--sun:hover {
  --bg: #ffd23f;
}
.btn--ghost {
  --bg: rgb(255 255 255 / 0.12);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  --bg: rgb(255 255 255 / 0.22);
  box-shadow: inset 0 0 0 1.5px #fff;
}
.btn--line {
  --bg: transparent;
  --fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--line:hover {
  --bg: var(--soft);
  box-shadow: inset 0 0 0 1.5px var(--navy-3);
}
.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.88rem;
}
.btn .arrow,
.link-arrow .arrow {
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow,
.link-arrow:hover .arrow,
a.card:hover .arrow {
  transform: translateX(3px);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-2);
  font-weight: 650;
  font-stretch: 106%;
  text-decoration: none;
}
.link-arrow:hover {
  color: var(--blue-dark);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
  transition: padding 0.35s var(--ease);
}
.site-header .bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding: 10px 12px 10px 22px;
  border-radius: var(--r-lg);
  pointer-events: auto;
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s var(--ease), border-radius 0.35s;
}
.brand {
  position: relative;
  display: block;
  flex: none;
  width: 184px;
  height: 148px;
  margin-block: -4px -4px;
  transition: width 0.4s var(--ease), height 0.4s var(--ease);
}
.brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.brand .logo-dark,
.brand .wordmark,
.brand .wordmark-white {
  opacity: 0;
}
.brand .wordmark,
.brand .wordmark-white {
  transform: translateY(6px) scale(0.96);
  transform-origin: left center;
}
/* At the top of a page with a dark hero: the white logo. */
.site-header.on-dark:not(.is-stuck) .bar {
  color: #fff;
}
/* Pages without a dark hero, and every page once scrolled: a white bar. */
.site-header:not(.on-dark) .logo-white,
.site-header.is-stuck .logo-white {
  opacity: 0;
}
.site-header:not(.on-dark):not(.is-stuck) .logo-dark {
  opacity: 1;
}
.site-header.is-stuck {
  padding-top: 10px;
}
.site-header.is-stuck .bar,
.site-header:not(.on-dark) .bar {
  background: rgb(255 255 255 / 0.86);
  box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 0.6);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.site-header.is-stuck .bar {
  padding-block: 8px;
  border-radius: var(--pill);
}
.site-header.is-stuck .brand {
  width: 168px;
  height: 46px;
  margin-block: 0;
}
.site-header.is-stuck .logo-dark,
.site-header.is-stuck .logo-white {
  opacity: 0;
  transform: scale(0.6);
}
.site-header.is-stuck .wordmark {
  opacity: 1;
  transform: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--pill);
  background: none;
  color: var(--ink);
  font: 600 0.92rem/1 var(--body);
  font-stretch: 108%;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.nav-link svg {
  width: 10px;
  height: 10px;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-item.is-open > .nav-link {
  background: rgb(29 39 71 / 0.07);
  color: var(--ink);
}
.nav-item.is-open > .nav-link svg {
  transform: rotate(180deg);
}
.nav-link[aria-current="page"],
.nav-item.is-current > .nav-link {
  color: var(--blue-dark);
}
.site-header.on-dark:not(.is-stuck) .nav-link {
  color: #fff;
}
.site-header.on-dark:not(.is-stuck) .nav-link:hover,
.site-header.on-dark:not(.is-stuck) .nav-item.is-open > .nav-link {
  background: rgb(255 255 255 / 0.14);
}
.nav .btn {
  margin-left: 10px;
}

.menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 300px;
  padding: 10px;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
}
.menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}
.nav-item.is-open > .menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border-radius: var(--r);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s;
}
.menu a small {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.82rem;
}
.menu a:hover,
.menu a:focus-visible {
  background: var(--soft);
}
.menu a[aria-current="page"] {
  background: var(--soft);
  color: var(--blue-dark);
}
.menu--wide {
  min-width: 520px;
}
.menu--wide ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.menu-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 14px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.menu-foot a {
  display: inline;
  padding: 0;
  background: none;
  color: var(--blue-dark);
}
.menu-foot a:hover {
  background: none;
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--pill);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  transition: background 0.2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-toggle span::before {
  transform: translateY(-6px);
}
.menu-toggle span::after {
  transform: translateY(6px);
}
.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .site-header .bar {
    padding: 8px 8px 8px 18px;
  }
  .brand {
    width: 124px;
    height: 100px;
  }
  .site-header.is-stuck .brand {
    width: 150px;
    height: 42px;
  }
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
  }
  .site-header.on-dark:not(.is-stuck) .menu-toggle {
    background: #fff;
    color: var(--navy);
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 124px var(--gutter) 32px;
    overflow-y: auto;
    background: rgb(243 245 249 / 0.97);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0s 0.25s;
  }
  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s;
  }
  .nav-open .site-header .bar {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nav-open .site-header .logo-white {
    opacity: 0;
  }
  .nav-open .site-header:not(.is-stuck) .logo-dark {
    opacity: 1;
  }
  .nav > ul {
    display: grid;
    gap: 10px;
  }
  .nav-item {
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }
  .nav-link,
  .site-header.on-dark:not(.is-stuck) .nav-link {
    width: 100%;
    height: 60px;
    justify-content: space-between;
    padding: 0 22px;
    border-radius: var(--r-lg);
    color: var(--ink);
    font-size: 1.1rem;
  }
  .nav-link:hover,
  .site-header.on-dark:not(.is-stuck) .nav-link:hover,
  .nav-item.is-open > .nav-link {
    background: none;
  }
  .menu,
  .menu--wide {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 8px 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-item.is-open > .menu {
    display: block;
    transform: none;
  }
  .menu--wide ul {
    grid-template-columns: 1fr;
  }
  .nav .btn {
    width: 100%;
    min-height: 58px;
    margin: 14px 0 0;
    font-size: 1.05rem;
  }
  .nav .nav-call {
    display: flex;
  }
  .brand {
    z-index: 2;
  }
}
.nav-call {
  display: none;
  justify-content: center;
  margin-top: 10px;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88vh, 860px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero--short {
  min-height: min(66vh, 620px);
}
.hero-bg,
.hero-bg img,
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-phone {
  display: none;
}
@media (max-width: 700px) {
  .hero-bg video {
    display: none;
  }
  .hero-bg .hero-phone {
    display: block;
  }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(14 20 40 / 0.55) 0%, rgb(14 20 40 / 0) 26%),
    linear-gradient(0deg, rgb(14 20 40 / 0.88) 0%, rgb(14 20 40 / 0.45) 45%, rgb(14 20 40 / 0.1) 75%),
    linear-gradient(90deg, rgb(14 20 40 / 0.5), transparent 70%);
}
.hero-inner {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding: 220px 0 clamp(40px, 6vw, 72px);
}
.hero h1 {
  max-width: 15ch;
  margin-bottom: 0.35em;
  color: #fff;
}
.hero .lead {
  max-width: 60ch;
  color: rgb(255 255 255 / 0.86);
}
.hero .eyebrow {
  color: #fff;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-width: 820px;
  margin-top: clamp(32px, 5vw, 56px);
}
.stat {
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.stat strong {
  display: block;
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-stretch: 115%;
  font-weight: 780;
  line-height: 1.1;
}
.stat span {
  color: rgb(255 255 255 / 0.75);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* A plain page heading where there's no photo (contact, articles' top). */
.page-head {
  padding: 210px 0 clamp(48px, 6vw, 80px);
  color: rgb(255 255 255 / 0.85);
}
.page-head h1 {
  max-width: 20ch;
  color: #fff;
}
.page-head .eyebrow {
  color: #fff;
}
.page-head .lead {
  max-width: 62ch;
  margin: 0;
  color: rgb(255 255 255 / 0.82);
}

/* ----------------------------------------------------------------- cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: inherit;
  text-decoration: none;
}
a.card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.card:hover {
  color: inherit;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 6px);
  background: var(--soft-2);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
a.card:hover .card-img img {
  transform: scale(1.04);
}
.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}
.card-body h3 {
  margin-bottom: 0.45em;
}
.card-body p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
.card-body .link-arrow {
  margin-top: auto;
  padding-top: 8px;
}
.card .tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.92);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.card--soft {
  background: var(--soft);
  box-shadow: none;
}
.card--pad {
  padding: clamp(24px, 3vw, 36px);
}
.card--navy {
  background: var(--navy);
  box-shadow: none;
  color: rgb(255 255 255 / 0.8);
}
.card--navy h3,
.card--navy h2 {
  color: #fff;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: var(--r);
  background: rgb(0 149 218 / 0.1);
  color: var(--blue-dark);
}
.icon svg {
  width: 26px;
  height: 26px;
}
.icon--sun {
  background: rgb(252 198 31 / 0.2);
  color: #b07800;
}
.icon--red {
  background: rgb(237 28 36 / 0.09);
  color: #c4141b;
}
.icon--navy {
  background: rgb(42 55 93 / 0.09);
  color: var(--navy-2);
}
.card--navy .icon {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
}

/* A row of cards that runs off the right edge (case studies, articles). */
.rail-section {
  overflow: hidden;
}
.rail-layout {
  display: grid;
  gap: 32px;
}
@media (min-width: 1000px) {
  .rail-layout {
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 56px;
    align-items: start;
  }
  .rail-intro {
    position: sticky;
    top: 120px;
    padding-top: 8px;
  }
}
.rail-intro h2 {
  margin-bottom: 0.4em;
}
.rail-intro p {
  color: var(--muted);
}
.rail-controls {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--pill);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.rail-btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
}
.rail-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.rail-btn svg {
  width: 18px;
  height: 18px;
}
.rail {
  display: grid;
  grid-auto-columns: min(82vw, 380px);
  grid-auto-flow: column;
  gap: 20px;
  /* run to the viewport's right edge */
  margin-right: calc(-1 * (100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / 2);
  padding: 8px calc((100vw - min(100vw - 2 * var(--gutter), var(--wrap))) / 2) 64px 28px;
  margin-left: -28px;
  margin-bottom: -36px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 28px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar {
  display: none;
}
.rail > * {
  scroll-snap-align: start;
}
.rail a.card:hover {
  box-shadow: 0 2px 6px rgb(20 27 51 / 0.06), 0 18px 34px -14px rgb(20 27 51 / 0.26);
}
.rail .card-img {
  aspect-ratio: 4 / 3;
}

/* Bento (the home page's facility tiles). */
.bento {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .bento > .b-6 {
    grid-column: span 6;
  }
  .bento > .b-4 {
    grid-column: span 4;
  }
  .bento > .b-3 {
    grid-column: span 3;
  }
  .bento > .b-2 {
    grid-column: span 2;
  }
  .bento > .b-tall {
    grid-row: span 2;
  }
}
.bento .card {
  min-height: 100%;
}
.tile-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--soft-2);
}
.tile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
}
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
  gap: 10px;
  margin: 22px 0 6px;
}
.spec {
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--soft);
}
.card--navy .spec {
  background: rgb(255 255 255 / 0.08);
}
.spec strong {
  display: block;
  color: var(--ink);
  font-size: 1.7rem;
  font-stretch: 115%;
  font-weight: 780;
  line-height: 1.1;
}
.card--navy .spec strong {
  color: #fff;
}
.spec span {
  color: var(--muted);
  font-size: 0.82rem;
}
.card--navy .spec span {
  color: rgb(255 255 255 / 0.65);
}
.steps {
  counter-reset: step;
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--r);
  background: rgb(255 255 255 / 0.07);
  font-size: 0.95rem;
  line-height: 1.5;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--pill);
  background: var(--sun);
  color: var(--navy);
  font-weight: 780;
}

/* Chips (services). */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: var(--pill);
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
}
.chips li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--pill);
  background: var(--blue);
}
.chips li:nth-child(3n + 2)::before {
  background: var(--red);
}
.chips li:nth-child(3n)::before {
  background: var(--sun);
}

/* Certified-applicator cards. */
.partner {
  padding: 24px;
}
.partner-logo {
  display: grid;
  place-items: center;
  height: 112px;
  margin-bottom: 20px;
  border-radius: var(--r);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.partner-logo img {
  max-height: 80px;
  width: auto;
  mix-blend-mode: multiply;
}
.partner h3 {
  margin-bottom: 14px;
}
.partner dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.partner dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.partner dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgb(0 149 218 / 0.09);
  color: var(--navy-2);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.pill--sun {
  background: rgb(252 198 31 / 0.22);
}

/* CTA band. */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--r-xl);
  color: rgb(255 255 255 / 0.82);
}
@media (min-width: 900px) {
  .cta {
    grid-template-columns: 1fr auto;
  }
}
.cta h2 {
  max-width: 18ch;
  color: #fff;
}
.cta p {
  max-width: 56ch;
  margin: 0;
}
.cta .btn-row {
  margin: 0;
}
.cta-mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  z-index: -1;
  width: 360px;
  opacity: 0.08;
}


/* Spray: the logo's colors as big airbrushed swaths with a speckle of overspray thinning out
   around them, on the page heads (photo or navy), the CTA and the footer; not on the home
   page's video. Five swaths (blue, a second blue, sun, a second sun, red) placed by --b-*,
   --b2-*, --s-*, --s2-*, --r-* (x, y, w, h, as percentages so one recipe fits any size).
   The values here are the default; site-document.js gives each page's head its own layout
   (sprayStyle), and the footer moves the second sun under the newsletter box. The home hero
   gets it on phones only, where its video gives way to a photo. */
.page-head,
.cta,
.site-footer,
.hero--short,
.hero--home {
  --b-x: 96%; --b-y: -8%; --b-w: 62%; --b-h: 95%;
  --b2-x: 58%; --b2-y: 112%; --b2-w: 38%; --b2-h: 60%;
  --s-x: -4%; --s-y: 108%; --s-w: 55%; --s-h: 100%;
  --s2-x: 30%; --s2-y: -10%; --s2-w: 30%; --s2-h: 45%; --s2-a: 0.12;
  --r-x: 78%; --r-y: 102%; --r-w: 22%; --r-h: 38%;
}
.site-footer {
  --s2-x: 76%; --s2-y: 38%; --s2-w: 30%; --s2-h: 70%; --s2-a: 0.3;
}
.page-head,
.cta,
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.page-head,
.cta,
.site-footer,
.hero--short .hero-bg::before,
.hero--home .hero-bg::before {
  background:
    radial-gradient(var(--b-w) var(--b-h) at var(--b-x) var(--b-y), rgb(0 149 218 / 0.55), rgb(0 149 218 / 0.2) 45%, transparent 75%),
    radial-gradient(var(--b2-w) var(--b2-h) at var(--b2-x) var(--b2-y), rgb(0 149 218 / 0.26), transparent 72%),
    radial-gradient(var(--s-w) var(--s-h) at var(--s-x) var(--s-y), rgb(252 198 31 / 0.4), rgb(252 198 31 / 0.12) 50%, transparent 78%),
    radial-gradient(var(--s2-w) var(--s2-h) at var(--s2-x) var(--s2-y), rgb(252 198 31 / var(--s2-a)), rgb(252 198 31 / calc(var(--s2-a) / 3)) 45%, transparent 72%),
    radial-gradient(var(--r-w) var(--r-h) at var(--r-x) var(--r-y), rgb(237 28 36 / 0.22), transparent 72%),
    var(--navy);
}
/* On a photo the swaths sit over the darkening, a little softer, with no navy fill. */
.hero--short .hero-bg::before,
.hero--home .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: transparent;
  opacity: 0.8;
}
.page-head::before,
.cta::before,
.site-footer::before,
.hero--short::before,
.hero--home::before,
.page-head::after,
.cta::after,
.site-footer::after,
.hero--short::after,
.hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.page-head::before,
.cta::before,
.site-footer::before,
.hero--short::before,
.hero--home::before {
  background: var(--speck-sun);
  opacity: 0.85;
  -webkit-mask-image:
    radial-gradient(calc(var(--s-w) * 1.08) calc(var(--s-h) * 1.08) at var(--s-x) var(--s-y), #000, rgb(0 0 0 / 0.5) 40%, transparent 80%),
    radial-gradient(calc(var(--s2-w) * 1.15) calc(var(--s2-h) * 1.15) at var(--s2-x) var(--s2-y), rgb(0 0 0 / 0.55), transparent 75%);
  mask-image:
    radial-gradient(calc(var(--s-w) * 1.08) calc(var(--s-h) * 1.08) at var(--s-x) var(--s-y), #000, rgb(0 0 0 / 0.5) 40%, transparent 80%),
    radial-gradient(calc(var(--s2-w) * 1.15) calc(var(--s2-h) * 1.15) at var(--s2-x) var(--s2-y), rgb(0 0 0 / 0.55), transparent 75%);
}
.page-head::after,
.cta::after,
.site-footer::after,
.hero--short::after,
.hero--home::after {
  background: var(--speck-blue);
  -webkit-mask-image:
    radial-gradient(calc(var(--b-w) * 1.15) calc(var(--b-h) * 1.15) at var(--b-x) var(--b-y), #000, rgb(0 0 0 / 0.55) 45%, transparent 82%),
    radial-gradient(calc(var(--b2-w) * 1.15) calc(var(--b2-h) * 1.15) at var(--b2-x) var(--b2-y), rgb(0 0 0 / 0.6), transparent 78%);
  mask-image:
    radial-gradient(calc(var(--b-w) * 1.15) calc(var(--b-h) * 1.15) at var(--b-x) var(--b-y), #000, rgb(0 0 0 / 0.55) 45%, transparent 82%),
    radial-gradient(calc(var(--b2-w) * 1.15) calc(var(--b2-h) * 1.15) at var(--b2-x) var(--b2-y), rgb(0 0 0 / 0.6), transparent 78%);
}

@media (min-width: 701px) {
  .hero--home::before,
  .hero--home::after,
  .hero--home .hero-bg::before {
    display: none;
  }
}

/* ----------------------------------------------------------------- prose */
.prose {
  font-size: 1.07rem;
  line-height: 1.75;
}
.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.prose h3 {
  margin: 1.6em 0 0.5em;
}
.prose h4 {
  margin: 1.5em 0 0.4em;
}
.prose > :first-child {
  margin-top: 0;
}
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.55em;
  padding-left: 0.2em;
}
.prose li::marker {
  color: var(--blue);
}
.prose strong {
  color: var(--ink);
}
.prose figure {
  margin: 2em 0;
}
.prose figure img {
  border-radius: var(--r-lg);
}
.prose figcaption,
.caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-radius: var(--r);
  background: var(--soft);
  color: var(--ink);
}
.credits {
  display: grid;
  gap: 12px;
  margin: 0 0 2em;
  padding: 0;
  list-style: none;
}
.credits li {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--soft);
  line-height: 1.4;
}
.credits span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.credits strong {
  color: var(--ink);
}
@media (min-width: 700px) {
  .credits {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Gallery grids (case studies, Decoral swatches). Links open the lightbox. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}
.gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  background: var(--soft-2);
}
.gallery a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery a:hover img {
  transform: scale(1.04);
}
.gallery a::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2747' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.gallery a:hover::after,
.gallery a:focus-visible::after {
  opacity: 1;
  transform: none;
}
.gallery--feature a:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}
.gallery--swatches {
  grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr));
}
.gallery--swatches a {
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* Spec tables (fluoropolymer, super durable). */
.table-card {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.table-scroll {
  overflow-x: auto;
}
.spec-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}
.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.spec-table tbody tr + tr td,
.spec-table tbody tr + tr th {
  border-top: 1px solid var(--line);
}
.spec-table tbody th {
  color: var(--ink);
  font-weight: 650;
}
.spec-table small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.spec-table .group th {
  padding-top: 18px;
  background: var(--soft);
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  border-radius: var(--pill);
  background: rgb(22 163 74 / 0.1);
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.pass::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.table-note {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ----------------------------------------------------------------- forms */
.form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  gap: 18px;
}
@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 8px;
}
.field > label,
.field > .label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}
.field .req {
  color: var(--red);
}
.input,
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--soft);
  box-shadow: inset 0 0 0 1.5px transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s, background 0.2s;
}
.form textarea {
  min-height: 150px;
  resize: vertical;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #9aa1b6;
}
.form input:hover,
.form textarea:hover {
  background: var(--soft-2);
}
.form input:focus,
.form textarea:focus {
  outline: 0;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 5px rgb(0 149 218 / 0.14);
}
.form [aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--red);
}
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 26px 18px;
  border: 2px dashed #c9cfdd;
  border-radius: var(--r);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--blue);
  background: rgb(0 149 218 / 0.05);
}
.dropzone strong {
  color: var(--ink);
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-status {
  color: var(--navy-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.97rem;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--blue);
}
.field-error {
  color: #c4141b;
  font-size: 0.85rem;
  font-weight: 600;
}
.form-status:empty {
  display: none;
}
.form-status {
  padding: 14px 18px;
  border-radius: var(--r);
  background: rgb(237 28 36 / 0.08);
  color: #a3121a;
  font-weight: 600;
}
.form.sent .form-status {
  background: rgb(22 163 74 / 0.1);
  color: #15803d;
}
.form.submitting [type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: clamp(48px, 7vw, 96px);
  padding: clamp(48px, 6vw, 80px) 0 28px;
  color: rgb(255 255 255 / 0.72);
  font-size: 0.95rem;
}
.site-footer a {
  color: rgb(255 255 255 / 0.85);
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 960px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.7fr 0.7fr 0.8fr 1.3fr;
    gap: 32px;
  }
}
@media (min-width: 600px) and (max-width: 959px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand,
  .footer-news {
    grid-column: 1 / -1;
  }
}
.footer-brand img {
  width: 92px;
  margin-bottom: 18px;
}
.footer-brand address {
  font-style: normal;
  line-height: 1.7;
}
.footer-contact {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-news {
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}
.footer-news p {
  margin: 0 0 14px;
}
.signup {
  position: relative;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--pill);
  background: #fff;
}
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
}
.signup input[type="email"]:focus {
  outline: 0;
}
.signup:focus-within {
  box-shadow: 0 0 0 4px rgb(0 149 218 / 0.45);
}
.signup .btn {
  min-height: 46px;
}
.signup-note {
  min-height: 1.4em;
  margin-top: 10px;
  color: #b9f5cf;
  font-size: 0.88rem;
}
.signup-note.is-bad {
  color: #ffc2c4;
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.08);
  transition: background 0.2s;
}
.socials a:hover {
  background: rgb(255 255 255 / 0.18);
}
.socials svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  color: rgb(255 255 255 / 0.55);
  font-size: 0.85rem;
}
.footer-bottom nav {
  display: flex;
  gap: 20px;
}

/* -------------------------------------------------------------- lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 24px 12px;
  background: rgb(10 14 28 / 0.94);
  backdrop-filter: blur(10px);
}
.lb[hidden] {
  display: none;
}
.lb figure {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  height: 100%;
  margin: 0;
  min-width: 0;
}
.lb img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  margin: auto;
  border-radius: var(--r);
  object-fit: contain;
}
.lb figcaption {
  max-width: 70ch;
  color: rgb(255 255 255 / 0.8);
  font-size: 0.92rem;
  text-align: center;
}
.lb button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--pill);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lb button:hover {
  background: rgb(255 255 255 / 0.24);
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.lb-prev {
  grid-column: 1;
  grid-row: 1;
}
.lb-next {
  grid-column: 3;
  grid-row: 1;
}
.lb-count {
  position: absolute;
  top: 26px;
  left: 24px;
  color: rgb(255 255 255 / 0.7);
  font-size: 0.9rem;
}
.lb--single .lb-prev,
.lb--single .lb-next {
  visibility: hidden;
}
html.lb-open {
  overflow: hidden;
}
@media (max-width: 640px) {
  .lb {
    grid-template-columns: 0 1fr 0;
    padding: 70px 8px 24px;
  }
  .lb-prev,
  .lb-next {
    position: absolute;
    bottom: 20px;
  }
  .lb-prev {
    left: calc(50% - 60px);
  }
  .lb-next {
    right: calc(50% - 60px);
  }
}

/* ---------------------------------------------------------------- reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------------------------------------------- utilities */
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.stack > * + * {
  margin-top: 16px;
}
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
}
.contact-list .icon {
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 14px;
}
.contact-list .icon svg {
  width: 20px;
  height: 20px;
}
.contact-list small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}
.contact-list a,
.contact-list strong {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.contact-list a:hover {
  color: var(--blue-dark);
}
.map-card {
  display: block;
  overflow: hidden;
  border-radius: var(--r);
}
.map-card iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 0;
}
.not-found {
  min-height: 50vh;
}

/* Contact: the form and, beside it, the contact card. */
.contact-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr 400px;
  }
  .contact-aside {
    position: sticky;
    top: 110px;
  }
}
.dropzone svg {
  color: var(--blue);
  margin-bottom: 6px;
}

/* Posts (case studies, articles): galleries run wider than the text. */
.hero-caption {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: 18px;
  max-width: min(44ch, 40%);
  margin: 0;
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: right;
}
@media (max-width: 900px) {
  .hero-caption {
    display: none;
  }
}
.prose .gallery {
  width: min(100vw - 2 * var(--gutter), 1120px);
  margin: 2.4em 0 2.4em 50%;
  transform: translateX(-50%);
}
/* Article furniture: a photo wider than the text, a chart, a pull quote. */
.prose .figure--wide {
  width: min(100vw - 2 * var(--gutter), 1000px);
  margin: 2.4em 0 2.4em 50%;
  transform: translateX(-50%);
}
.prose figure > a {
  display: block;
}
.prose .gallery--pair {
  width: min(100vw - 2 * var(--gutter), 1000px);
}
@media (min-width: 600px) {
  .gallery--pair {
    grid-template-columns: 1fr 1fr;
  }
}
.prose figure img {
  width: 100%;
}
.prose .figure--chart img {
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.prose blockquote.pull {
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--blue);
  border-radius: 0;
  background: none;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.4;
  text-wrap: balance;
}
.prose .table-card {
  margin: 2em 0;
}
.spec-table--fit {
  min-width: 0;
}
@media (max-width: 600px) {
  .spec-table--fit th,
  .spec-table--fit td {
    padding: 12px 12px;
  }
}
.post-back {
  margin-top: 2.4em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
