/* Live towerhouse.io display face. Light maps to normal — same as production h1/h2.
   Register both "Albertus Nova" and AlbertusNova so computed family is verifiable. */
@font-face {
  font-family: "Albertus Nova";
  src: url("../fonts/AlbertusNova-Light.woff2") format("woff2"),
       url("../fonts/AlbertusNova-Light.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: AlbertusNova;
  src: url("../fonts/AlbertusNova-Light.woff2") format("woff2"),
       url("../fonts/AlbertusNova-Light.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  font-family: var(--font-sans);
  /* 16 + 52-pill + 12 — sticky chrome height; hero tan tucks under it. */
  --header-stack: 80px;
  /* Closed pill height. The 28px is the header padding above and below the pill. */
  --pill-h: 52px;
  --scroll-offset: calc(var(--pill-h) + 28px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

h1,
.h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

h2,
.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h3,
.h3 {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

h4,
.h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 100;
  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;
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-sm);
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  clip: auto;
  clip-path: none;
  top: 12px;
  color: var(--text-on-primary);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

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

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 48px, var(--max-wide));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-muted {
  background: var(--surface-muted);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: none;
}

.section-head p {
  color: var(--text-secondary);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-on-primary);
}

.btn-primary:active {
  background: var(--primary-pressed);
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--text-on-primary);
}

.btn-text {
  background: transparent;
  color: var(--accent);
  padding-inline: 4px;
  min-height: 0;
}

.btn-text:hover {
  color: var(--accent-hover);
}

.btn-text .arrow {
  transition: transform var(--dur) var(--ease);
}

.btn-text:hover .arrow {
  transform: translateX(3px);
}

/* Header — transparent chrome. White Epidemic pill floats; page shows through on scroll. */
#case-studies,
#proof,
#likeness,
#services,
#lighthouse,
#watchtower,
#clients,
#news,
#get-started {
  scroll-margin-top: var(--scroll-offset);
}

.site-header {
  --nav-h: 64px;
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 0;
  padding: 16px 0 12px;
}

.nav {
  width: min(100% - 48px, var(--max-wide));
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 6px 10px 6px 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 72px;
  min-width: 0;
}

.nav-brand,
.site-footer .footer-grid > div:first-child {
  overflow: visible !important;
}

.nav-brand img,
.site-footer .brand-mark {
  display: block !important;
  height: 32px !important;
  width: auto !important;
  max-width: min(100%, 280px) !important;
  max-height: 36px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-drop > summary {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-links a:hover,
.nav-drop > summary:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-drop {
  position: relative;
}

.nav-drop > summary {
  list-style: none;
  cursor: pointer;
}

.nav-drop > summary::-webkit-details-marker {
  display: none;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(18, 21, 26, 0.08);
}

.nav-drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-actions .btn {
  border-radius: var(--radius-pill);
  min-height: 40px;
  padding: 8px 16px;
}

.nav-login {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.nav-login:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform var(--dur) var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Hero — Epidemic ATF lock at ~1280: H1 ≈80px, gaps 32 / 32 / 80, ~11% card peek.
   Tan is page background in the hero zone, tucked under the transparent sticky chrome. */
.hero {
  --nav-h: 64px;
  background: var(--surface-hero);
  margin-top: calc(-1 * var(--header-stack));
  padding: var(--header-stack) 0 40px;
}

.hero-fold {
  display: block;
  min-height: 0;
  /* Top padding lands card top ~601px at 1280×656 so ~11% of a 500px plate shows. */
  padding: 153px 0 80px;
}

.hero-centered {
  text-align: center;
}

.hero h1 {
  font-family: var(--font-hero);
  font-size: clamp(40px, 6.25vw, 80px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
  max-width: 14em;
  margin: 0 auto 32px;
}

.hero-props {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: none;
  width: 100%;
  margin: 0 auto 32px;
  padding: 0;
}

.hero-props li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--text);
  text-wrap: balance;
}

.hero-props li + li::before {
  content: "▪";
  margin: 0 14px;
  font-size: 7px;
  line-height: 1;
  color: var(--text);
  opacity: 0.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
}

.hero-actions .btn {
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 767px) {
  .hero {
    padding: calc(var(--header-stack) + 24px) 0 40px;
  }

  .hero-fold {
    padding: 0 0 32px;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .hero-props {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    max-width: 22em;
  }

  .hero-props li + li::before {
    content: none;
    margin: 0;
  }
}

/* What we do — live brand blue band after the tan Proof shelf. FA icons match towerhouse.io. */
.services-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 72px 0;
}

.services-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  color: #ffffff;
}

.services-art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.services-art-svg circle[stroke] {
  opacity: 0.28;
}

.services-art-svg path {
  fill: #ffffff;
  opacity: 0.1;
}

.services-art-svg circle[fill] {
  opacity: 0.55;
}

.services-shelf {
  position: relative;
  z-index: 1;
}

.services-shelf .section-head h2 {
  color: var(--text-on-brand);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 16px 40px rgba(12, 8, 64, 0.28);
}

.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(36, 27, 176, 0.28);
}

.product-card .eyebrow {
  color: var(--brand);
}

.pill-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--text-on-brand);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: none;
  vertical-align: 1px;
}

.product-note {
  margin-bottom: 0;
}

.product-card h3 {
  color: var(--brand);
}

.product-card p {
  color: var(--text-secondary);
}

.product-for {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 27, 176, 0.12);
  color: var(--text-secondary);
  font-size: 14px;
}

.product-for strong {
  display: inline;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Proof A — continuous hero tan after the case strip. Dark tiles only; no hard dark band. */
.proof-band {
  background: var(--surface-hero);
  color: var(--ink);
  padding: 48px 0 80px;
}

.proof-band .section-head h2 {
  color: var(--ink);
}

/* Likeness — full-bleed navy between What we do and Trusted by. */
.likeness-band {
  background: #0B1220;
  color: #E6EAF2;
}

.likeness-band .section-head {
  max-width: 760px;
}

.likeness-band .eyebrow,
.likeness-band h2 {
  color: #fff;
}

.likeness-band .section-head p,
.likeness-band .likeness-list li {
  color: #E6EAF2;
}

.likeness-band .section-head p + p {
  margin-top: 1em;
}

.likeness-band .btn-primary {
  background: #3568E6;
  color: #fff;
}

.likeness-band .btn-primary:hover {
  background: #2A56CC;
  color: #fff;
}

.likeness-band .btn-primary:focus-visible {
  outline: 2px solid #E6EAF2;
  outline-offset: 3px;
}

.likeness-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 720px;
}

.likeness-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
}

.likeness-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E6EAF2;
}

.proof-band .eyebrow {
  color: var(--text-secondary);
}

.proof-stats {
  padding-top: 8px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof-card {
  container-type: inline-size;
  background: #111111;
  color: var(--text-on-dark);
  border: 0;
  border-radius: 24px;
  padding: 32px 36px;
}

.proof-card .metric {
  font-family: var(--font-sans);
  font-size: clamp(40px, 18cqi, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 12px;
  color: var(--text-on-dark);
  font-variant-numeric: tabular-nums lining-nums;
}

.metric-reel {
  display: inline-flex;
  align-items: baseline;
  height: 1em;
}

.metric-digit {
  display: inline-block;
  overflow: hidden;
  height: 1em;
  width: 1ch;
  letter-spacing: 0;
}

.metric-digit-strip {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
}

.metric-digit-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
}

.metric-glyph {
  display: inline-block;
  line-height: 1;
}

.proof-card .metric.is-settling .metric-digit-strip {
  transition: transform var(--reel-ms, 760ms) cubic-bezier(0.16, 0.84, 0.36, 1);
  transition-delay: var(--reel-delay, 0ms);
  transform: translate3d(0, calc(var(--reel-end, 0) * -1em), 0);
}

.proof-card .metric.is-settled .metric-digit-strip {
  transition: none;
  transform: translate3d(0, calc(var(--reel-end, 0) * -1em), 0);
}

.proof-card p {
  font-family: var(--font-sans);
  font-weight: 400;
  color: rgba(247, 248, 250, 0.72);
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
}

.stories-bleed {
  position: relative;
  margin-top: 0;
  margin-bottom: 0;
}

.stories-viewport {
  overflow: hidden;
}

.stories-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-inline: 32px;
  animation: stories-scroll 64s linear infinite;
}

.stories-viewport:hover .stories-track,
.stories-viewport:focus-within .stories-track,
.stories-viewport:active .stories-track {
  animation-play-state: paused;
}

.story-card {
  position: relative;
  flex: 0 0 min(380px, 32vw);
  height: 500px;
  background: #1a1f2c;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

a.story-card {
  cursor: pointer;
}

a.story-card:hover,
a.story-card:focus-visible {
  color: inherit;
}

a.story-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  z-index: 2;
}

a.story-card .story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background-color var(--dur) var(--ease);
  pointer-events: none;
}

a.story-card:hover .story-media::after,
a.story-card:focus-visible .story-media::after {
  background: rgba(36, 27, 176, 0.16);
}

.story-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.story-media > img,
.story-media > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-plate {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    #1a1f2c;
}

.story-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
  z-index: 1;
}

.story-brand img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.story-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}

.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 20px;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.7) 55%, transparent);
}

.story-caption .story-callout {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0;
}

.story-caption .story-desc {
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  margin: 6px 0 0;
}

@keyframes stories-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .proof-card .metric .metric-digit-strip {
    transition: none !important;
    transform: translate3d(0, calc(var(--reel-end, 0) * -1em), 0);
  }

  .stories-viewport {
    overflow: visible;
  }

  .stories-track {
    animation: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    width: auto;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: 24px;
    transform: none;
  }

  .story-card {
    flex: none;
    min-width: 0;
    height: 420px;
  }

  .story-card.is-clone {
    display: none;
  }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
  .stories-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .stories-bleed {
    margin-top: 0;
  }

  .stories-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
  }

  .stories-track {
    display: flex;
    animation: none;
    width: max-content;
    max-width: none;
    margin-inline: 0;
    padding-inline: 16px;
    gap: 12px;
    transform: none;
  }

  .story-card {
    flex: 0 0 calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
    height: min(420px, 70vh);
    scroll-snap-align: center;
  }

  .story-card.is-clone {
    display: none;
  }
}

/* Featured strip */
.featured {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 36px 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.featured-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.featured-item img {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.featured-item img.keep-color {
  filter: none;
}

.featured-item p {
  margin: 0;
  color: rgba(247, 248, 250, 0.72);
  font-size: 14px;
}

.featured-item strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

/* Clients wall — flex so an incomplete last row stays centered */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.client-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 calc((100% - 5 * 24px) / 6);
  max-width: calc((100% - 5 * 24px) / 6);
  gap: 10px;
  min-height: 132px;
  padding: 16px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: inherit;
  text-decoration: none;
}

.client-tile:hover,
.client-tile:focus-visible {
  color: inherit;
}

.client-tile .logo-wrap {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-tile img {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter var(--dur) var(--ease);
}

.client-tile:hover img,
.client-tile:focus-visible img {
  filter: grayscale(0);
}

/* Mono wordmarks have no color artwork. Hover washes the mark with its brand accent. */
.client-tile.has-accent {
  transition: border-color var(--dur) var(--ease);
}

.client-tile.has-accent .logo-wrap {
  transition: background-color var(--dur) var(--ease);
}

.client-tile.has-accent:hover,
.client-tile.has-accent:focus-visible {
  border-color: var(--client-accent);
}

.client-tile.has-accent:hover .logo-wrap,
.client-tile.has-accent:focus-visible .logo-wrap {
  background-color: color-mix(in srgb, var(--client-accent) 20%, var(--surface));
  border-radius: 8px;
}

.client-tile .name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.client-tile .hover-line {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(18, 21, 26, 0.08);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
  z-index: 2;
  pointer-events: none;
}

.client-tile:focus-visible .hover-line {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .client-tile:hover .hover-line {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.clients-more {
  display: none;
  margin: 24px auto 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Case studies (additive) */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-muted);
}

.case-card .body {
  padding: 24px;
}

.case-card p {
  color: var(--text-secondary);
}

.case-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-card li {
  background: var(--accent-subtle);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* Form */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

/* Get started — live contact green so it does not stack with the brand-blue What we do band.
   Copy sits on #198754; the form card stays white so inputs/labels meet WCAG AA. */
.get-started-band {
  background: var(--brand-growth);
  color: var(--text-on-brand-growth);
}

.get-started-band h2 {
  color: var(--text-on-brand-growth);
}

.get-started-band .form-intro,
.get-started-band .form-intro p {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.get-started-band .form-intro a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.get-started-band .form-intro a:hover,
.get-started-band .form-intro a:focus-visible {
  color: #ffffff;
}

.get-started-band .form-card {
  background: var(--surface);
  color: var(--text);
  border-color: transparent;
  box-shadow: 0 18px 48px rgba(8, 40, 24, 0.28);
}

.get-started-band .form-card a {
  color: var(--brand-growth);
}

.get-started-band .form-card a:hover,
.get-started-band .form-card a:focus-visible {
  color: #146c43;
}

.get-started-band .btn-primary {
  background: var(--brand-growth);
  color: var(--text-on-brand-growth);
}

.get-started-band .btn-primary:hover {
  background: #146c43;
  color: var(--text-on-brand-growth);
}

.get-started-band .progress-dots span.is-on {
  background: var(--brand-growth);
}

.get-started-band .field input:focus {
  outline-color: var(--brand-growth);
  border-color: var(--brand-growth);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-step-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  height: 48px;
  border: 1px solid #8A94A3;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 0 14px;
}

.field input::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-color: var(--border-focus);
}

.field textarea {
  min-height: 120px;
  border: 1px solid #8A94A3;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 14px;
  resize: vertical;
}

.form-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

form.is-stepped .form-step {
  display: none;
}

form.is-stepped .form-step.is-current {
  display: block;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.choice-list {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  display: grid;
  gap: 10px;
}

.choice-list legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.choice-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
}

.choice-list input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.field-hint {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.field-error {
  margin: 0;
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.field-error[hidden] {
  display: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #B42318;
}

.char-count {
  margin: -8px 0 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.progress-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 20px;
}

.progress-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.progress-dots span.is-on {
  background: var(--accent);
}

.progress-dots + .step-count,
.step-count {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0 0 16px;
}

.form-note {
  display: none;
  color: var(--text-secondary);
}

.form-note.is-visible {
  display: block;
}

.form-note .form-thanks,
.form-note .form-error {
  display: none;
  margin: 0;
}

.form-note.is-thanks .form-thanks,
.form-note.is-error .form-error {
  display: block;
}

.form-intro a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}

.site-footer .brand-mark {
  margin-bottom: 12px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: inherit;
}

/* News — hero tan band, title only */
.news-band {
  background: var(--surface-hero);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0;
  background: var(--surface-hero);
}

.news-thumb img,
.news-wordmark {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.news-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: #0B1220;
}

.news-wordmark span {
  max-width: 12em;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.news-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-outlet {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.news-date {
  margin: 0 0 12px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.news-card h3 {
  margin-bottom: 16px;
}

.news-body .btn-text {
  margin-top: auto;
}

/* Read article sits on the tan band. #3568E6 is only 3.97:1 there. */
.news-band .btn-text {
  color: #2E59D4;
}

.news-band .btn-text:hover {
  color: #2A56CC;
}

.news-pending {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0;
}

.news-card.is-placeholder {
  border-style: dashed;
}

.site-footer p {
  color: rgba(247, 248, 250, 0.68);
  font-size: 14px;
}

.site-footer h4 {
  color: var(--text-on-dark);
  margin-bottom: 12px;
}

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

.site-footer li {
  color: rgba(247, 248, 250, 0.78);
  font-size: 14px;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: rgba(247, 248, 250, 0.78);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--text-on-dark);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(247, 248, 250, 0.5);
  font-size: 13px;
}

.footer-meta a {
  color: rgba(247, 248, 250, 0.5);
}

/* Interior pages */
.page-shell {
  padding: 72px 0 96px;
}

.page-card {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.page-card .lede {
  color: var(--text-secondary);
}

.prose {
  max-width: 680px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 960px) {
  :root {
    --pill-h: 56px;
  }

  h1,
  .h1 {
    font-size: 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 6.25vw, 80px);
  }

  h2,
  .h2 {
    font-size: clamp(28px, 2.8vw, 40px);
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "links links"
      "actions actions";
    min-height: 56px;
    gap: 0 16px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
  }

  .nav-left {
    display: contents;
  }

  .nav-brand {
    grid-area: brand;
    align-self: center;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
    align-self: center;
    justify-self: end;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav.is-open {
    border-radius: var(--radius-lg);
    padding-bottom: 16px;
  }

  .nav.is-open .nav-links,
  .nav.is-open .nav-actions {
    display: flex;
  }

  .nav.is-open .nav-links {
    grid-area: links;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 12px;
  }

  .nav.is-open .nav-actions {
    grid-area: actions;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 8px;
  }

  .nav-drop-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    background: transparent;
  }

  .product-grid,
  .featured-grid,
  .cases-grid,
  .form-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    gap: 16px;
  }

  .client-tile {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  .section {
    padding: 56px 0;
  }

  .wrap,
  .wrap-wide,
  .nav {
    width: min(100% - 32px, var(--max));
  }
}

@media (max-width: 960px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .nav-left {
    gap: 40px;
  }
}

@media (min-width: 700px) and (max-width: 1100px) {
  .client-tile {
    flex-basis: calc((100% - 3 * 24px) / 4);
    max-width: calc((100% - 3 * 24px) / 4);
  }
}

/* Live site: first 6 logos on small screens, then a chevron to expand. */
@media (max-width: 767px) {
  .clients-grid:not(.is-expanded) .client-tile:nth-child(n + 7) {
    display: none;
  }

  .clients-more {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .clients-grid.is-expanded + .clients-more {
    display: none;
  }
}

/* Hero bullets: one line on wide screens (breaks out of the 1200px wrap);
   stacked below that so a wrapped line never starts with a separator. */
@media (min-width: 1400px) {
  .hero-props {
    position: relative;
    left: 50%;
    width: min(1440px, calc(100vw - 48px));
    transform: translateX(-50%);
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) and (max-width: 1399px) {
  .hero-props {
    flex-direction: column;
    gap: 6px;
  }

  .hero-props li + li::before {
    content: none;
    margin: 0;
  }
}
