/* ==========================================================================
   High Tech Digital Technologies
   1. Tokens          5. Hero
   2. Base            6. Sections & components
   3. Top bar         7. Footer
   4. Header / nav    8. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */

:root {
  --ink:        #11151a;
  --ink-mid:    #171c22;
  --ink-soft:   #1b2026;
  --ink-line:   #262d35;
  --ink-line-2: #2b323a;
  --ink-hover:  #1f252c;

  /* Brand blue, sampled from the logo lockup (#20b2ff).
     --brand-deep is the text-safe darker blue for light backgrounds;
     --brand-ink is the dark blue used for text on a --brand fill. */
  --brand:      #20b2ff;
  --brand-deep: #0a74ab;
  --brand-ink:  #103c52;

  --bg:         #f3f4f5;
  --white:      #ffffff;
  --line:       #dfe3e7;
  --line-soft:  #eceef0;

  --text:       #3c454e;
  --text-soft:  #4a545e;
  --muted:      #6b757f;
  --muted-dark: #98a2ac;
  --on-dark:    #c3cbd3;
  --on-dark-2:  #b9c1c9;

  --head:  Oswald, "Arial Narrow", sans-serif;
  --body:  Karla, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap:  1240px;
  --gut:   28px;
}

/* 2. Base --------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns the body into a scroll container, which
     stops the sticky header sticking once the menu locks page scroll. */
  overflow-x: hidden;
  overflow-x: clip;
  min-width: 320px;
}

body.is-locked { overflow: hidden; }

a { color: var(--ink-soft); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: .01em;
}

p { margin: 0; text-wrap: pretty; }

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

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--brand);
  padding: 12px 20px;
  font-family: var(--head);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: var(--brand); }

@keyframes htdt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Utilities ------------------------------------------------------------- */

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

.u-mb-20 { margin-bottom: 20px; }
.u-mb-26 { margin-bottom: 26px; }
.u-mb-28 { margin-bottom: 28px; }
.u-mb-34 { margin-bottom: 34px; }
.u-mb-46 { margin-bottom: 46px; }

/* Image slots ----------------------------------------------------------- */

.img-slot {
  position: relative;
  overflow: hidden;
  background: #e4e7ea;
  display: block;
}
.img-slot--fill { position: absolute; inset: 0; }
.img-slot__img  { width: 100%; height: 100%; object-fit: cover; }

.img-slot__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
  background:
    repeating-linear-gradient(135deg, #e0e3e7 0 12px, #d8dce0 12px 24px);
  color: #5d666f;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  line-height: 1.45;
}
.img-slot__placeholder em { font-style: normal; opacity: .6; font-size: 10px; }

/* Small slots (logo marks) get a mark, not a caption. */
.brand__mark .img-slot__placeholder,
.site-footer__mark .img-slot__placeholder {
  padding: 0;
  font-size: 0;
}
.brand__mark .img-slot__placeholder span,
.brand__mark .img-slot__placeholder em,
.site-footer__mark .img-slot__placeholder span,
.site-footer__mark .img-slot__placeholder em { display: none; }
.brand__mark .img-slot__placeholder::after,
.site-footer__mark .img-slot__placeholder::after {
  content: "HT";
  font-size: 15px;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: .04em;
  color: #4d565f;
}
.site-footer__mark .img-slot__placeholder {
  background: repeating-linear-gradient(135deg, #272e35 0 12px, #222930 12px 24px);
}
.site-footer__mark .img-slot__placeholder::after { color: var(--brand); }

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

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: 17px 32px;
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn--brand    { background: var(--brand); color: var(--ink); }
.btn--brand:hover { background: var(--white); color: var(--ink); }
.btn--dark    { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--brand); color: var(--ink); }
.btn--outline { border-color: rgba(255,255,255,.32); color: var(--white); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); }
.btn--lg      { padding: 18px 34px; font-size: 15px; }

/* 3. Top bar ------------------------------------------------------------ */

.topbar {
  background: var(--ink);
  color: var(--on-dark-2);
  font-size: 12.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.topbar__inner {
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: space-between;
}
.topbar__status { display: flex; align-items: center; gap: 10px; }
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  animation: htdt-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.topbar__links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.topbar__links a { color: var(--on-dark-2); transition: color .18s ease; }
.topbar__links a:hover { color: var(--brand); }
.topbar__phone { color: var(--brand); font-weight: 500; }
.topbar__phone:hover { color: var(--white); }

/* 4. Header / nav ------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand__logo {
  height: 88px;
  width: auto;
  max-width: 100%;
  display: block;
}
.brand__mark {
  width: 52px; height: 52px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #e4e7ea;
}
.brand__name {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .19em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--head);
  font-size: 14.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav__link {
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.nav__link:hover,
.nav__link.is-section,
.nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.nav__cta {
  background: var(--brand);
  color: var(--ink);
  padding: 12px 22px;
  font-weight: 600;
  letter-spacing: .09em;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}
.nav__cta:hover { background: var(--ink); color: var(--brand); }

/* Services dropdown ------------------------------------------------------ */
.nav__item { position: relative; display: flex; align-items: center; gap: 6px; }

.nav__caret {
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color .18s ease;
}
.nav__caret span {
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav__caret:hover { color: var(--ink); }
.nav__item:hover .nav__caret,
.nav__caret[aria-expanded="true"] { color: var(--brand-deep); }
.nav__caret[aria-expanded="true"] span { transform: translateY(1px) rotate(-135deg); }

.nav__sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 250px;
  background: var(--ink);
  border-top: 2px solid var(--brand);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
/* Bridges the gap between the link and the panel so the pointer can travel
   down to it without the menu closing underneath. */
.nav__sub::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -16px;
  height: 16px;
}
.nav__item:hover .nav__sub,
.nav__item.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Set by the script when the panel is closed deliberately — with the caret
   or with Escape — so it stays closed even while the pointer is still
   sitting over the menu. Cleared once focus and pointer have both left. */
.nav__item.is-dismissed .nav__sub {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}
.nav__sub-link {
  padding: 12px 22px;
  font-size: 13.5px;
  letter-spacing: .07em;
  color: var(--on-dark);
  border-left: 2px solid transparent;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease;
}
.nav__sub-link:hover,
.nav__sub-link:focus-visible {
  color: var(--white);
  background: var(--ink-hover);
  border-left-color: var(--brand);
}
.nav__sub-link[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); }

/* Mobile controls */
.nav-mobile-controls { display: none; align-items: center; gap: 10px; }
.nav-mobile-controls .btn-call {
  background: var(--brand);
  color: var(--ink);
  padding: 13px 18px;
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu-toggle {
  width: 48px; height: 48px;
  background: var(--ink);
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--brand);
  transition: transform .22s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel -----------------------------------------------------------
   A full-height dark sheet that drops in under the header. It is fixed to
   the viewport and scrolls on its own, so even with a submenu open nothing
   gets cut off below the fold. --nav-top is set by the script to wherever
   the header currently ends. Never shown on desktop. */
.nav-mobile {
  position: fixed;
  top: var(--nav-top, 0px);
  left: 0; right: 0; bottom: 0;
  z-index: 39;
  display: none;
  flex-direction: column;
  background: var(--ink);
  border-top: 2px solid var(--brand);
  padding: 8px var(--gut) calc(28px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-mobile.is-open { visibility: visible; opacity: 1; transform: none; }
html.nav-open { overflow: hidden; }

.nav-mobile__links { display: flex; flex-direction: column; }

.nav-mobile__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-line);
  font-family: var(--head);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--white);
  transition: color .16s ease;
}
.nav-mobile__link:hover { color: var(--brand); }
.nav-mobile__link[aria-current="page"],
.nav-mobile__link.is-section { color: var(--brand); }
.nav-mobile__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--brand);
  min-width: 18px;
  transform: translateY(-3px);
}

.nav-mobile__row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink-line);
}
.nav-mobile__row .nav-mobile__link { flex: 1; border-bottom: 0; }
.nav-mobile__expand {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--ink-line-2);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.nav-mobile__expand span {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.nav-mobile__expand[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.nav-mobile__expand[aria-expanded="true"] span { transform: translateY(2px) rotate(-135deg); }

.nav-mobile__sub {
  display: none;
  flex-direction: column;
  padding: 8px 0 16px 34px;
  border-bottom: 1px solid var(--ink-line);
}
.nav-mobile__sub.is-open { display: flex; }
.nav-mobile__sub a {
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--ink-line-2);
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--on-dark);
  transition: color .16s ease, border-color .16s ease;
}
.nav-mobile__sub a:hover { color: var(--white); border-left-color: var(--brand); }
.nav-mobile__sub a[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); }

.nav-mobile__foot {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav-mobile__eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 4px;
}
.nav-mobile__btn { width: 100%; }
.nav-mobile__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted-dark);
}
.nav-mobile__meta a { color: var(--on-dark); }
.nav-mobile__meta a:hover { color: var(--brand); }

/* 5. Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink-mid);
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; opacity: .34; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, #171c22 12%, rgba(23,28,34,.86) 46%, rgba(23,28,34,.42) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: 104px;
  padding-bottom: 88px;
}
.hero__body { max-width: 830px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(32,178,255,.5);
  padding: 7px 15px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 30px;
}
.hero__title {
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: .005em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.hero__quote {
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 26px;
}
.hero__lede {
  font-size: 18.5px;
  line-height: 1.66;
  color: var(--on-dark);
  max-width: 660px;
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 6. Sections & components ---------------------------------------------- */

.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 76px; padding-bottom: 76px; }
.section--light { background: var(--bg); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--dark  { background: var(--ink-mid); color: var(--white); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.section--dark .eyebrow { color: var(--brand); }
.section--dark .section-head__aside { color: var(--muted-dark); }

.h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  text-transform: uppercase;
  font-weight: 700;
}
.h2--sm { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.06; }

.lead-on-dark { font-size: 16.5px; line-height: 1.66; color: var(--on-dark); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
}
.section-head__text { max-width: 620px; }

/* For a section head sitting above a .split — it takes the same two-column
   grid, so the aside lines up with the second column instead of hanging off
   to the right of it. Above a full-width grid, use plain .section-head. */
.section-head--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  column-gap: 60px;
  /* Separate row gap, so whatever width it stacks at, the aside sits a
     normal heading's distance below rather than a column gap's. */
  row-gap: 24px;
  align-items: end;
}
.section-head--split .section-head__text { max-width: none; }
.section-head--split .section-head__aside {
  max-width: none;
  /* The aside is bottom-aligned to the heading, so it would otherwise
     inherit the heading's 46px of breathing room. Read down the right-hand
     column it is just the first paragraph above the prose, so it is pulled
     back to roughly a paragraph's spacing — the heading keeps its 46px. */
  margin-bottom: -26px;
}
.section-head__aside {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 400px;
}

.lede-block { max-width: 700px; margin-bottom: 50px; }
.lede-block p { font-size: 17.5px; line-height: 1.66; color: var(--on-dark); margin-top: 22px; }

/* Trust bar */
.trustbar { background: var(--ink); border-top: 1px solid var(--ink-line); }
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}
.trustbar__item { padding: 30px; border-right: 1px solid var(--ink-line); }
.trustbar__item:first-child { padding-left: 0; }
.trustbar__item:last-child  { padding-right: 0; border-right: 0; }
.trustbar__label {
  font-family: var(--head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 7px;
}
.trustbar__text { font-size: 14.5px; color: var(--muted-dark); line-height: 1.5; }

/* Feature cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
  gap: 22px;
}
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card__media { height: 214px; position: relative; }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 21px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 12px; }
.card__text { font-size: 15.5px; line-height: 1.6; color: var(--text-soft); margin-bottom: 20px; }

.link-arrow {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 3px;
  transition: color .18s ease;
}
.link-arrow:hover { color: var(--brand-deep); }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 64px;
  align-items: start;
}
.split--wide-gap { gap: 60px; }
.split__prose p { font-size: 17.5px; line-height: 1.68; color: var(--text); margin-bottom: 20px; }
.split__media { position: relative; height: 480px; }

/* Media column that grows to match the height of the text beside it,
   instead of sitting at a fixed height and leaving a gap underneath. */
.split--fill-media { align-items: stretch; }
.split--fill-media .split__media { height: auto; min-height: 420px; }


/* Spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 34px;
}
.spec { background: var(--white); padding: 22px; }
.spec__label {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.spec__text { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(268px, 100%), 1fr));
  gap: 1px;
}
/* The rules are drawn by each tile rather than by a background showing
   through the gaps, so an odd number of tiles does not leave a visible
   empty cell on the last row. */
.service-tile {
  display: block;
  background: var(--ink-mid);
  box-shadow: 0 0 0 1px var(--ink-line-2);
  padding: 30px 26px 32px;
  color: var(--white);
  transition: background-color .18s ease;
}
.service-tile:hover { background: var(--ink-hover); color: var(--white); }
.service-tile__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.service-tile__name {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 11px;
  color: var(--white);
}
.service-tile__blurb { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); }

/* About panel */
.panel { background: var(--white); border: 1px solid var(--line); padding: 34px; }
.panel__media { position: relative; height: 240px; margin-bottom: 28px; }
.panel__media--map { border: 1px solid var(--line); overflow: hidden; background: var(--line); }
.panel__media--map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel__name {
  font-family: var(--head);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.panel__role {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.panel__text { font-size: 15.5px; line-height: 1.65; color: var(--text-soft); margin-bottom: 24px; }
.panel__map { position: relative; aspect-ratio: 4 / 3; margin-bottom: 24px; border: 1px solid var(--line); overflow: hidden; background: var(--line); }
.panel__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.panel .btn { padding: 15px 28px; font-size: 14px; }

.panel__phone {
  display: block;
  background: var(--ink);
  color: var(--brand);
  padding: 18px 24px;
  margin-bottom: 22px;
  font-family: var(--head);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  transition: background-color .18s ease, color .18s ease;
}
.panel__phone:hover { background: var(--brand); color: var(--ink); }

/* Forms ----------------------------------------------------------------- */

.notice {
  border-left: 4px solid var(--brand);
  background: var(--white);
  padding: 18px 22px;
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
}
.notice--error { border-left-color: #c0392b; }
.notice a { border-bottom: 1px solid var(--brand); }

.form { max-width: 560px; }
.field { display: block; margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field__req { color: #c0392b; margin-left: 2px; }
.field__hint { color: var(--muted); font-weight: 400; letter-spacing: .06em; }
.form__note { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.form__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: 0;
}
.field input:focus,
.field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(32,178,255,.35); outline-offset: 0; }
.field textarea { resize: vertical; }
.field--trap { position: absolute; left: -9999px; }

.prose p { font-size: 17px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}
.review { background: var(--bg); border: 1px solid var(--line); padding: 30px; margin: 0; }
.review__stars { color: var(--brand-deep); font-size: 15px; letter-spacing: .2em; margin-bottom: 18px; }
.review__text { font-size: 16px; line-height: 1.66; color: var(--ink-line-2); margin: 0 0 22px; }
.review__who {
  font-family: var(--head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Service area */
.towns { display: flex; flex-wrap: wrap; gap: 10px; }
.town {
  border: 1px solid #343c45;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--on-dark);
}

/* CTA band */
.cta {
  background: var(--brand);
  color: var(--ink);
  padding: 84px 0;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta__text { max-width: 640px; }
.cta__title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.cta__sub { font-size: 18px; line-height: 1.62; color: var(--brand-ink); }
.cta__actions { display: flex; flex-direction: column; gap: 14px; }
.cta__phone {
  background: var(--ink);
  color: var(--brand);
  padding: 22px 40px;
  font-family: var(--head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  transition: background-color .18s ease, color .18s ease;
}
.cta__phone:hover { background: var(--white); color: var(--ink); }
.cta__email {
  border: 1px solid var(--brand-ink);
  color: var(--ink);
  padding: 15px 40px;
  font-family: var(--head);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cta__email:hover { background: var(--ink); color: var(--brand); border-color: var(--ink); }

/* Breadcrumb inside an eyebrow ------------------------------------------ */
.crumb { color: inherit; border-bottom: 1px solid currentColor; }
.crumb:hover { color: var(--white); }

/* Dark variant of the spec grid, for use inside .section--dark ---------- */
.spec-grid--dark {
  background: var(--ink-line-2);
  border-color: var(--ink-line-2);
}
.spec-grid--dark .spec { background: var(--ink-mid); }
.spec-grid--dark .spec__label { color: var(--white); }
.spec-grid--dark .spec__text { color: var(--muted-dark); }

/* Checklist ------------------------------------------------------------- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--brand-deep);
  border-bottom: 2.5px solid var(--brand-deep);
  transform: rotate(-45deg);
}
.section--dark .checklist li { color: var(--on-dark); }
.section--dark .checklist li::before { border-color: var(--brand); }

/* Callout band ---------------------------------------------------------- */
.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  padding: 28px 30px;
}
.callout__text {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
  max-width: 660px;
}
.callout__text strong { color: var(--ink); }
.callout .btn { flex-shrink: 0; }

/* FAQ ------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
  max-width: 900px;
}
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-family: var(--head);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-family: var(--body);
  font-size: 26px;
  line-height: 1;
  color: var(--brand-deep);
  flex-shrink: 0;
  transition: transform .18s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--brand-deep); }
.faq__a { padding: 0 60px 26px 0; }
.faq__a p { font-size: 16.5px; line-height: 1.7; color: var(--text-soft); }

/* 7. Footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 72px 0 34px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink-line);
}
.site-footer__brand { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.site-footer__logo { height: 58px; width: auto; max-width: 100%; display: block; }
/* The lockup has dark lettering, so on the dark footer it sits on a white tile. */
.site-footer__logo {
  height: auto;
  width: 190px;
  background: var(--white);
  padding: 10px 14px;
  box-sizing: content-box;
  max-width: calc(100% - 28px);
}
.site-footer__mark {
  width: 44px; height: 44px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #242a31;
}
.site-footer__name {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer__sub {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--white);
  text-transform: uppercase;
  margin-top: 3px;
}
.site-footer__blurb { font-size: 14.5px; line-height: 1.62; color: var(--white); }
.site-footer h2 {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
  font-weight: 600;
}
.site-footer__list { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.site-footer__list span { color: var(--white); transition: color .18s ease; }
.site-footer__list a { color: var(--white); transition: color .18s ease; }
.site-footer__list a:hover { color: var(--brand); }
.site-footer__list .is-name { color: var(--white); }

.site-footer__bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer__bottom a { color: var(--white); transition: color .18s ease; }
.site-footer__bottom a:hover { color: var(--brand); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Simple inner page header */
.page-hero {
  background: var(--ink-mid);
  color: var(--white);
  padding: 72px 0 66px;
}
.page-hero__title {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.page-hero__lede { font-size: 17.5px; line-height: 1.66; color: var(--on-dark); max-width: 660px; }
.page-hero .eyebrow { color: var(--brand); }

/* Legal pages ------------------------------------------------------------ */
.legal__updated {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.legal {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: 130px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  padding: 24px 24px 18px;
}
.legal__toc-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 12px;
}
.legal__toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal__toc li { counter-increment: toc; border-top: 1px solid var(--line-soft); }
.legal__toc li:first-child { border-top: 0; }
.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 2px;
}
.legal__toc a:hover { color: var(--brand-deep); }

.legal__body { max-width: 780px; }
.legal__section { padding-bottom: 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.legal__h {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--head);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 18px;
}
.legal__num { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .1em; color: var(--brand-deep); }
.legal__prose p,
.legal__prose li { font-size: 16.5px; line-height: 1.72; color: var(--text); }
.legal__prose p { margin: 0 0 16px; }
.legal__prose p:last-child { margin-bottom: 0; }
.legal__prose strong { color: var(--ink); }
.legal__prose a,
.legal__contact a { color: var(--brand-deep); border-bottom: 1px solid currentColor; }
.legal__prose a:hover,
.legal__contact a:hover { color: var(--ink); }
.legal__prose ul { list-style: none; margin: 0 0 16px; padding: 0; }
.legal__prose ul:last-child { margin-bottom: 0; }
.legal__prose li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.legal__prose li::before {
  content: "";
  position: absolute;
  left: 2px; top: .72em;
  width: 8px; height: 2px;
  background: var(--brand);
}
.legal__contact { margin-top: 8px; }

@media (max-width: 899px) {
  .legal { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .legal__toc { position: static; }
}

/* 404 ------------------------------------------------------------------- */
.error-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(32,178,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(32,178,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--ink-line);
}
.error-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 40px;
  padding-top: 110px;
  padding-bottom: 110px;
}
.error-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(32,178,255,.4);
  padding: 8px 14px;
  margin: 0 0 28px;
}
.error-hero__title {
  font-family: var(--head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 76px);
  line-height: .98;
  letter-spacing: .01em;
  margin: 0 0 24px;
}
.error-hero__lede { font-size: 17.5px; line-height: 1.66; color: var(--on-dark); max-width: 560px; margin: 0 0 34px; }
.error-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.error-hero__call {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.error-hero__call a { color: var(--brand); }
.error-hero__call a:hover { color: var(--white); }
.error-hero__code {
  margin: 0;
  justify-self: end;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(120px, 22vw, 300px);
  line-height: .8;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--brand);
  opacity: .9;
  user-select: none;
}
@media (max-width: 899px) {
  .error-hero__inner { grid-template-columns: minmax(0, 1fr); padding-top: 64px; padding-bottom: 64px; gap: 0; }
  .error-hero__code { order: -1; justify-self: start; font-size: clamp(96px, 30vw, 180px); margin-bottom: 26px; -webkit-text-stroke-width: 1.5px; }
}
@media (max-width: 479px) {
  .error-hero__actions .btn { width: 100%; }
}

/* 8. Responsive --------------------------------------------------------- */

@media (max-width: 999px) {
  .nav { display: none; }
  .nav-mobile-controls { display: flex; }
  .nav-mobile { display: flex; }
  .topbar { font-size: 11.5px; letter-spacing: .05em; }
  .topbar__inner { padding-top: 8px; padding-bottom: 8px; }
}

@media (min-width: 1000px) {
  /* Never render the panel on desktop, whatever state it was left in. */
  .nav-mobile { display: none !important; }
}

/* Narrow desktop: tighten the nav so it never crowds the logo, even with
   the fallback font showing before the web font loads. */
@media (min-width: 1000px) and (max-width: 1179px) {
  .site-header__inner { gap: 24px; }
  .nav { gap: 22px; font-size: 14px; }
  .nav__cta { padding: 12px 16px; }
}

@media (max-width: 767px) {
  :root { --gut: 20px; }

  /* Top bar: one line on phones. The service-area line is in the menu
     and all over the page, so it gives way to the contact details. */
  .topbar__inner { justify-content: center; }
  .topbar__status { display: none; }
  .topbar__links { gap: 6px 18px; justify-content: center; }

  .section { padding-top: 64px; padding-bottom: 64px; }
  .section--tight { padding-top: 56px; padding-bottom: 56px; }
  .hero__inner { padding-top: 66px; padding-bottom: 58px; }
  .hero__lede { font-size: 17px; }

  .split { gap: 40px; }
  .split__media { height: 300px; }
  .split--fill-media .split__media { height: 320px; min-height: 0; }
  .section-head { margin-bottom: 34px; }
  /* The section head's own margin is smaller here, so the aside needs a
     smaller pull-back to land on the same ~20px gap as on desktop. */
  .section-head--split .section-head__aside { margin-bottom: -14px; }


  .cta { padding: 60px 0; }
  .cta__actions { width: 100%; }
  .cta__phone { padding: 20px 24px; }

  .site-footer { padding-top: 56px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: auto; }

  /* Keep brand + call + burger on one line without overflowing. */
  .site-header__inner { gap: 12px; }
  .brand { min-width: 0; gap: 11px; }
  .brand__logo { height: 64px; }
  .brand__name { font-size: 19px; }
  .brand__sub { letter-spacing: .14em; }

  .callout { padding: 24px 22px; }
  .callout .btn { width: 100%; }
  .faq__q { font-size: 17px; gap: 16px; }
  .faq__a { padding-right: 0; }
  .checklist li { font-size: 16px; }
}

@media (max-width: 420px) {
  .nav-mobile-controls { gap: 8px; }
  .nav-mobile-controls .btn-call { padding: 13px 12px; font-size: 12px; letter-spacing: .05em; }
  .menu-toggle { width: 44px; height: 44px; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__logo { height: 58px; }
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 8px; letter-spacing: .1em; }
  .hero__actions .btn { width: 100%; }
}

@media (max-width: 360px) {
  .brand__logo { height: 54px; }
  .brand__sub { display: none; }
  .nav-mobile-controls .btn-call { padding: 13px 10px; }
}


/* Balanced grids ----------------------------------------------------------
   The auto-fit grids above leave a lone item on its own row at some widths
   (3 + 1, 5 + 1, 4 + 2). For the counts the site actually uses, these pick
   a column count that divides evenly instead, sized from the space the grid
   actually has rather than from the viewport — so a grid sitting in half a
   split behaves the same as one running full width. */

:has(> .card-grid), :has(> .spec-grid), :has(> .site-footer__grid) { container-type: inline-size; }

/* Feature cards: 4 -> 2 -> 1, and 3 -> 1 rather than 2 + 1 */
.card-grid:has(> :nth-child(4):last-child),
.card-grid:has(> :nth-child(3):last-child) { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 540px) {
  .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 780px) {
  .card-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 1120px) {
  .card-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Spec tiles: 4 -> 2 -> 1 and 6 -> 3 -> 2 -> 1 */
.spec-grid:has(> :nth-child(4):last-child),
.spec-grid:has(> :nth-child(6):last-child) { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 380px) {
  .spec-grid:has(> :nth-child(4):last-child),
  .spec-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 570px) {
  .spec-grid:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (min-width: 760px) {
  .spec-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Footer: 4 -> 2 -> 1 */
.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 500px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 1050px) {
  .site-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Stacked, the two service lists read as one list: drop the spacer heading
   on the second so there is no empty gap between them. */
@container (max-width: 499px) {
  .site-footer__grid { row-gap: 36px; }
  .site-footer__grid > :nth-child(3) { margin-bottom: -27px; }
  .site-footer__grid > :nth-child(4) h2 { display: none; }
}

/* Trust bar: 4 across on desktop, 2 x 2 on tablet, stacked on phones */
@media (max-width: 999px) {
  .trustbar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trustbar__item,
  .trustbar__item:first-child,
  .trustbar__item:last-child { padding: 26px 26px 26px 0; }
  .trustbar__item:nth-child(odd)  { border-right: 1px solid var(--ink-line); }
  .trustbar__item:nth-child(even) { border-right: 0; padding-left: 26px; padding-right: 0; }
  .trustbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--ink-line); }
}
@media (max-width: 599px) {
  .trustbar__grid { grid-template-columns: minmax(0, 1fr); }
  .trustbar__item,
  .trustbar__item:nth-child(odd),
  .trustbar__item:nth-child(even) {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .trustbar__item:last-child { border-bottom: 0; }
}

/* Print ----------------------------------------------------------------- */

@media print {
  .topbar, .site-header, .nav-mobile, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   9. Cookie consent banner (Pulse → Cookie Consent; markup in inc/footer.php)
   ========================================================================== */

.cc {
  position: fixed;
  z-index: 1500;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: 0 -6px 28px rgba(0, 0, 0, .28);
}
.cc[hidden], .cc [hidden] { display: none !important; }
.cc--light { background: var(--white); color: var(--text); border: 1px solid var(--line); box-shadow: 0 -6px 28px rgba(0, 0, 0, .12); }

.cc--bottom-bar { left: 0; right: 0; bottom: 0; border-top: 3px solid var(--brand); }
.cc--top-bar    { left: 0; right: 0; top: 0; border-bottom: 3px solid var(--brand); }
.cc--bottom-left,
.cc--bottom-right { bottom: 20px; width: min(400px, calc(100vw - 32px)); border-top: 3px solid var(--brand); }
.cc--bottom-left  { left: 16px; }
.cc--bottom-right { right: 16px; }

.cc__main {
  display: flex;
  align-items: center;
  gap: 18px 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gut);
}
.cc--bottom-left .cc__main,
.cc--bottom-right .cc__main { flex-direction: column; align-items: stretch; padding: 22px; }

.cc__text { flex: 1; min-width: 0; }
.cc__heading {
  font-family: var(--head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 4px;
}
.cc--light .cc__heading { color: var(--ink); }
.cc__message { margin: 0; }
/* Critical: the policy link inherits the banner text color, so it stays
   readable on the dark theme (never brand-blue on near-black). */
.cc__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.cc__btn {
  font-family: var(--head);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.cc__btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.cc--light .cc__btn--ghost:hover { color: var(--brand-deep); border-color: var(--brand-deep); }
.cc__btn--accept { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.cc__btn--accept:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.cc--light .cc__btn--accept:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cc__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.cc__panel {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut) 20px;
  display: grid;
  gap: 14px;
}
.cc--bottom-left .cc__panel,
.cc--bottom-right .cc__panel { padding: 0 22px 22px; }
.cc__cat { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
.cc--light .cc__cat { border-top-color: var(--line); }
.cc__cat p { margin: 4px 0 0 28px; font-size: 14px; opacity: .85; }
.cc__switch { display: flex; align-items: center; gap: 10px; font-weight: 600; color: inherit; cursor: pointer; }
.cc__switch input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.cc__panel-actions { display: flex; justify-content: flex-end; }

@media (max-width: 620px) {
  .cc__main { flex-direction: column; align-items: stretch; }
  .cc__actions { flex-direction: column; }
  .cc__btn { width: 100%; }
  .cc__panel-actions .cc__btn { width: 100%; }
}

/* ==========================================================================
   10. Social icons (Pulse → Business Settings; rendered only when set)
   ========================================================================== */

.social-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 18px;
  line-height: 0;
  border: 1px solid var(--ink-line-2);
  color: var(--muted-dark);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.social-icons a:hover { color: var(--brand); border-color: var(--brand); }
.social-icons svg { width: 1em; height: 1em; display: block; }
.social-icons--panel a { border-color: var(--line); color: var(--ink-soft); }
.social-icons--panel a:hover { color: var(--brand-deep); border-color: var(--brand-deep); }
