/* ============================================================
   Site styles
   Brand name, email, phone and booking link live in js/config.js
   ============================================================ */

:root {
  --paper: #07051a;
  --cream: #0b0724;
  --white: #15122c;
  --ink: #f4f6ff;
  --ink-soft: #c9d2ea;
  --muted: #b7c0d9;
  --line: rgba(180, 198, 255, 0.14);
  --line-strong: rgba(180, 198, 255, 0.28);
  --blue: #8bb6ff;
  --blue-bright: #60a5fa;
  --violet: #c4b5fd;
  --violet-bright: #a78bfa;
  --pink: #f9a8d4;
  --coral: #fb923c;
  --teal: #5eead4;
  --cyan: #67e8f9;
  --wash-blue: #121a3d;
  --wash-violet: #1a1340;
  --wash-pink: #2a1230;
  --wash-coral: #2a1810;
  --wash-teal: #0d2a28;
  --wash-cyan: #0c2430;
  --danger: #ff9ab3;
  --danger-wash: #3a1020;
  --success: #5eead4;
  --success-wash: #0c2e2a;
  --info: #e2e8ff;
  --info-wash: #1a1a3a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(76, 29, 149, 0.38), 0 0 36px rgba(59, 130, 246, 0.12);
  --header-h: 4.5rem;
  --wrap: 72rem;
  --narrow: 42rem;
  --radius: 1.15rem;
  --radius-sm: 0.85rem;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Geist", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-cta: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #db2777 100%);
  --grad-hero:
    radial-gradient(ellipse 80% 70% at 0% -10%, rgba(37, 99, 235, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(124, 58, 237, 0.4), transparent 52%),
    radial-gradient(ellipse 55% 50% at 85% 100%, rgba(236, 72, 153, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 8% 100%, rgba(34, 211, 238, 0.2), transparent 50%),
    #07051a;
  --grad-band: linear-gradient(120deg, #1d4ed8 0%, #6d28d9 48%, #be185d 100%);
}

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

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

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.nav-open,
body.nav-open {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.nav-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

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

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

a {
  color: var(--blue);
  text-underline-offset: 0.15em;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: calc(100% - 2.5rem);
  max-width: var(--wrap);
  margin: 0 auto;
}

.wrap-narrow {
  width: calc(100% - 2.5rem);
  max-width: var(--narrow);
  margin: 0 auto;
}

/* ----- Header ----- */

.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  background: #0b0724;
  background: rgba(7, 5, 26, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--grad-cta);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.logo-word {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 0.6rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 0.75rem;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after,
.nav-toggle-bars span {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), top 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle-bars span,
.nav-toggle-bars::before {
  top: 0;
}

.nav-toggle-bars span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-bars::after {
  top: 100%;
  transform: translateY(-100%);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
}

.site-nav a:not(.btn):hover {
  color: var(--violet);
}

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--violet);
}

.site-nav a[aria-current="page"]:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 3px;
  border-radius: 99px;
  background: var(--grad-cta);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.34);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(180, 198, 255, 0.45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(180, 198, 255, 0.08);
  color: #fff;
  border-color: var(--violet-bright);
  box-shadow: 0 0 22px rgba(167, 139, 250, 0.28);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ----- Hero ----- */

.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  background: var(--grad-hero);
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.75fr);
  gap: 3.5rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 3px;
  border-radius: 99px;
  background: var(--grad-cta);
}

.hero h1,
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.8rem + 3vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-lead,
.page-hero .lede,
.lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.page-hero .lede,
.section-header p,
.lede {
  margin: 0;
}

.lede-follow {
  margin-top: 1rem;
}

.hero-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-aside::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: auto; left: 0;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--grad-cta);
}

.hero-aside h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0.2rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero-aside p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-aside .btn {
  width: 100%;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.promise-bar {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.promise-bar .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.promise {
  padding-right: 1rem;
  border-left: 4px solid var(--blue-bright);
  padding-left: 1rem;
}

.promise:nth-child(2) {
  border-left-color: var(--violet-bright);
}

.promise:nth-child(3) {
  border-left-color: var(--pink);
}

.promise strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}

.promise span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ----- Sections ----- */

.section {
  padding: 5rem 0;
}

.section-header {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section h2,
.panel-header h2,
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.band-blue { background: var(--wash-blue); }
.band-violet { background: var(--wash-violet); }
.band-pink { background: var(--wash-pink); }
.band-teal { background: var(--wash-teal); }
.band-coral { background: var(--wash-coral); }
.band-white { background: var(--white); }

/* ----- Page heroes ----- */

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 0.85rem;
}

/* ----- Problems / lists ----- */

.problem-list,
.service-grid,
.teaser-grid,
.use-grid,
.value-grid,
.why-grid {
  display: grid;
  gap: 1rem;
}

.problem-list {
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.problem-list li,
.use-card,
.value-card,
.service-card,
.teaser-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.45rem 1.35rem;
}

.problem-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
}

.problem-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--violet);
}

.problem-list h3,
.service-card h3,
.teaser-card h3,
.use-card h3,
.value-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.use-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.problem-list p,
.service-card p,
.teaser-card p,
.use-card p,
.value-card p,
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- Services / teasers ----- */

.service-grid,
.teaser-grid,
.use-grid,
.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.teaser-grid,
.use-grid {
  grid-template-columns: 1fr 1fr;
}

.service-card,
.teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  box-shadow: var(--shadow);
}

.teaser-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.teaser-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.14);
  color: inherit;
}

.teaser-card .more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--violet);
}

.icon-tile {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 0.35rem;
}

.icon-tile svg,
.service-card .icon,
.teaser-card .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.tile-blue { background: #2563eb; }
.tile-violet { background: #7c3aed; }
.tile-teal { background: #0f766e; }
.tile-coral { background: #c2410c; }
.tile-pink { background: #be185d; }
.tile-cyan { background: #0e7490; }

/* ----- How it works ----- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-index {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--violet);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-index::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.step-index::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--grad-cta);
  opacity: 0.55;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* ----- Who we help ----- */

.sector-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.chip:nth-child(3n + 1) { background: var(--wash-blue); color: var(--blue); }
.chip:nth-child(3n + 2) { background: var(--wash-violet); color: var(--violet); }
.chip:nth-child(3n) { background: var(--wash-pink); color: var(--pink); }

.use-note {
  margin: 2rem 0 0;
  max-width: 44rem;
  padding: 1.05rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.use-note h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.use-note p {
  margin: 0;
}

/* ----- CTA / why band ----- */

.cta-band,
.why {
  background: var(--grad-band);
  color: #fff;
  padding: 5rem 0;
}

.cta-band .eyebrow,
.why .eyebrow {
  color: #fff;
}

.cta-band .eyebrow::before,
.why .eyebrow::before {
  background: #fff;
}

.cta-band h2,
.why h2 {
  color: #fff;
}

.cta-band p,
.why .section-header p,
.why-foot {
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn-primary {
  background: #fff;
  color: #5b21b6;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18), 0 0 24px rgba(255, 255, 255, 0.2);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  color: #1d4ed8;
  background: #fff;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.cta-band .btn-secondary:hover,
.cta-band .btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.why-grid,
.value-grid {
  grid-template-columns: repeat(3, 1fr);
}

.why-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.55rem 1.45rem;
}

.why-card h3,
.why-card p {
  color: #fff;
}

.why-card p {
  color: rgba(255, 255, 255, 0.92);
}

.why-foot {
  margin: 2rem 0 0;
}

/* ----- FAQ ----- */

.faq-list {
  display: grid;
  gap: 0.65rem;
  max-width: 48rem;
  margin: 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.1rem 3.2rem 1.1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 1.02rem;
  position: relative;
  color: var(--ink);
}

.faq-item button::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 1.5px solid var(--violet);
  border-bottom: 1.5px solid var(--violet);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq-item button[aria-expanded="true"]::after {
  transform: translateY(-35%) rotate(225deg);
}

.faq-item .faq-answer {
  padding: 0 1.2rem 1.15rem;
  color: var(--ink-soft);
}

.faq-item .faq-answer p {
  margin: 0 0 0.8rem;
}

.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

/* ----- Contact ----- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: grid;
  gap: 0.15rem;
}

.contact-details .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
}

.contact-details a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--violet);
  text-decoration: underline;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label .req {
  color: var(--pink);
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem;
  min-height: 3rem;
  font-size: 16px;
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 1px;
  border-color: var(--violet-bright);
  background: var(--white);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-wash);
}

.field-error {
  min-height: 1.15rem;
  color: var(--danger);
  font-size: 0.85rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0.2rem 0 1rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--violet);
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 0.7rem;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: var(--success-wash);
  color: var(--success);
}

.form-status.is-error {
  background: var(--danger-wash);
  color: var(--danger);
}

.form-status.is-info {
  background: var(--info-wash);
  color: var(--info);
}

/* ----- Footer ----- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 2.25rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

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

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

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ----- Inner / prose / 404 ----- */

.prose {
  padding: 3rem 0 5rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 0.7rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
}

.page-404 {
  min-height: calc(100vh - 12rem);
  min-height: calc(100svh - 12rem);
  min-height: calc(100dvh - 12rem);
  display: grid;
  align-content: center;
  padding: 4rem 0 6rem;
  text-align: center;
  background: var(--grad-hero);
}

.page-404 h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 500;
  margin: 0 0 0.8rem;
}

.page-404 p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

.page-404 .btn-row {
  justify-content: center;
}

/* ----- Responsive ----- */

@media (max-width: 980px) {
  .hero .wrap,
  .sector-layout,
  .contact-grid,
  .service-grid,
  .why-grid,
  .value-grid,
  .teaser-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    gap: 1.75rem 1.25rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    z-index: 80;
  }

  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    z-index: 65;
    background: linear-gradient(180deg, #0b0724 0%, #07051a 42%, #1a0a28 100%);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0.35rem;
    padding: 5.5rem 1.5rem 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .site-nav a:not(.btn) {
    font-size: 1.35rem;
    padding: 0.7rem 0.2rem;
    font-family: var(--font-serif);
    font-weight: 500;
  }

  .site-nav a[aria-current="page"]:not(.btn)::after {
    display: none;
  }

  .site-nav a[aria-current="page"]:not(.btn) {
    color: var(--pink);
  }

  .site-nav .btn {
    margin-top: 0.75rem;
    width: 100%;
  }

  .hero .wrap,
  .promise-bar .wrap,
  .problem-list,
  .service-grid,
  .teaser-grid,
  .steps,
  .sector-layout,
  .use-grid,
  .why-grid,
  .value-grid,
  .contact-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.75rem 0 3.25rem;
  }

  .hero .btn-row,
  .hero .btn-row .btn,
  .contact-card .btn[type="submit"] {
    width: 100%;
  }

  .promise {
    padding-right: 0;
    padding-bottom: 0.35rem;
  }

  .promise-bar .wrap {
    padding: 1.5rem 0 1.6rem;
    gap: 1.15rem;
  }

  .section,
  .why,
  .cta-band {
    padding: 3.75rem 0;
  }

  .wrap,
  .wrap-narrow {
    width: min(var(--wrap), calc(100% - 1.75rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .btn-row,
  form,
  .skip-link {
    display: none !important;
  }

  body,
  .why,
  .cta-band,
  .hero {
    background: white;
    color: black;
  }
}

.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;
}

.cta-band .btn-row {
  margin-top: 1.5rem;
}

/* ============================================================
   v3 — more immersive, visual, interactive layout
   ============================================================ */

.site-header {
  transition: height 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
}

.site-header.is-scrolled {
  height: calc(3.55rem + env(safe-area-inset-top, 0px));
  background: rgba(7, 5, 26, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 40px rgba(99, 80, 255, 0.14);
}

.logo-mark {
  transition: width 0.28s var(--ease), height 0.28s var(--ease);
}

.site-header.is-scrolled .logo-mark {
  width: 1.7rem;
  height: 1.7rem;
}

.site-header.is-scrolled .logo-word {
  font-size: 1.2rem;
}

/* Immersive hero */
.hero-immersive {
  min-height: 34rem;
  min-height: calc(100vh - var(--header-h));
  min-height: min(46rem, calc(100svh - var(--header-h)));
  min-height: min(46rem, calc(100dvh - var(--header-h)));
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5.5rem;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.72;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-a {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: -6rem;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.55), transparent 70%);
}

.orb-b {
  width: 26rem;
  height: 26rem;
  right: -6rem;
  top: 10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
  animation-delay: -6s;
}

.orb-c {
  width: 22rem;
  height: 22rem;
  right: 18%;
  bottom: -6rem;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.4), transparent 70%);
  animation-delay: -11s;
}

.orb-d {
  width: 18rem;
  height: 18rem;
  left: 22%;
  bottom: -4rem;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.4), transparent 70%);
  animation-delay: -3s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.08); }
}

.hero-art {
  position: absolute;
  width: min(38rem, 52vw);
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  z-index: 0;
}

.hero-immersive .wrap {
  align-items: center;
}

.hero-immersive .hero-copy {
  position: relative;
  z-index: 1;
}

.hero-immersive h1 {
  font-size: clamp(2.7rem, 1.6rem + 4vw, 5rem);
}

/* Logo / tool typographic strip */
.logo-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}

.logo-strip .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  min-width: 8rem;
}

.logo-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.3rem 0.95rem;
  border-radius: 999px;
  background: var(--wash-violet);
  color: var(--violet);
  font-weight: 600;
  font-size: 0.92rem;
}

.logo-pill:nth-child(4n+2) { background: var(--wash-blue); color: var(--blue); }
.logo-pill:nth-child(4n+3) { background: var(--wash-pink); color: var(--pink); }
.logo-pill:nth-child(4n) { background: var(--wash-teal); color: var(--teal); }

/* Stats band */
.stats-band {
  background: var(--grad-band);
  color: #fff;
  padding: 5rem 0 4.5rem;
}

.stats-band .section-header h2,
.stats-band .section-header p,
.stats-band .eyebrow {
  color: #fff;
}

.stats-band .eyebrow::before {
  background: #fff;
}

.stats-band .section-header p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 40rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.25rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.45rem 1.35rem 1.25rem;
  min-height: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-approx {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  min-height: 1.15rem;
  line-height: 1.15rem;
}

.stat-label {
  flex: 1;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.65rem;
  color: #fff;
}

.stat-label {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.98rem;
  line-height: 1.45;
}

.stat-source {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.stat-source a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.stat-source a:hover,
.stat-source a:focus-visible {
  color: #fff;
}

/* Interactive explorer */
.explorer {
  background: var(--wash-violet);
}

.explorer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.explorer-tab {
  appearance: none;
  border: 1px solid transparent;
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 2.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.explorer-tab:hover,
.explorer-tab:focus-visible {
  color: var(--violet);
  border-color: var(--violet-bright);
}

.explorer-tab[aria-selected="true"] {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.25);
}

.explorer-panel[hidden] {
  display: none;
}

.explorer-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.case-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.explorer-note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Visual service / teaser cards */
.visual-grid,
.service-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

a.visual-card:hover,
a.visual-card:focus-visible,
.visual-card.lift-card:hover,
.lift-card:hover,
.lift-card:focus-within {
  transform: translateY(-7px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.32), 0 0 36px rgba(59, 130, 246, 0.18);
  text-decoration: none;
  color: inherit;
}

.visual-card-media {
  height: 8.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.85rem;
  background: var(--grad-cta);
}

.visual-card-media img,
.visual-card-media svg {
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 1.15rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.visual-card-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.visual-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.visual-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.visual-card .card-link {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Tabs (services) */
.tabs {
  margin-top: 0.5rem;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0;
}

.tab-list [role="tab"] {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  min-height: 2.65rem;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
}

.tab-list [role="tab"]:hover,
.tab-list [role="tab"]:focus-visible {
  color: var(--violet);
  border-color: var(--violet-bright);
}

.tab-list [role="tab"][aria-selected="true"] {
  background: var(--grad-cta);
  color: #fff;
  border-color: transparent;
}

.tab-panel {
  background: var(--white);
  border-radius: calc(var(--radius) + 0.1rem);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.tab-panel[hidden] {
  display: none;
}

.tab-visual {
  border-radius: var(--radius);
  min-height: 14rem;
  display: grid;
  place-items: center;
  background: var(--grad-hero);
}

.tab-visual img,
.tab-visual svg {
  width: 9rem;
  height: 9rem;
  border-radius: 1.5rem;
}

.tab-copy h3 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.tab-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* Steps visual */
.steps-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.step-card:hover,
.step-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.3), 0 0 32px rgba(59, 130, 246, 0.16);
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--grad-cta);
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.step-card .step-index::before,
.step-card .step-index::after {
  content: none;
  display: none;
}

.step-card h3 {
  margin: 0 0 0.4rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Page heroes */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.75rem 0 3.5rem;
  background: var(--grad-hero);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 46rem;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Rich footer */
.site-footer {
  background: #050314;
  color: rgba(255, 255, 255, 0.86);
  border-top: 1px solid rgba(180, 198, 255, 0.1);
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.9fr));
  gap: 2rem 1.5rem;
  padding: 3.25rem 0 2.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.85rem;
}

.footer-brand .logo-word,
.footer-brand p,
.site-footer h3,
.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.9);
}

.footer-brand p {
  margin: 0 0 1.1rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-sans);
  font-weight: 700;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem 0 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.82);
}

/* Carousel controls */
.carousel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-nav button {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.carousel-nav button:hover,
.carousel-nav button:focus-visible {
  border-color: var(--violet-bright);
  color: var(--violet);
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2.3rem) / 3);
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.35rem;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track > * {
  scroll-snap-align: start;
  min-width: 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.media-panel {
  border-radius: calc(var(--radius) + 0.2rem);
  min-height: 16rem;
  background: var(--grad-hero);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.media-panel img,
.media-panel .hero-art-inline {
  width: min(22rem, 90%);
  height: auto;
}

.tint-blue { background: linear-gradient(145deg, #2563eb, #7c3aed); }
.tint-violet { background: linear-gradient(145deg, #7c3aed, #db2777); }
.tint-teal { background: linear-gradient(145deg, #0f766e, #2563eb); }
.tint-coral { background: linear-gradient(145deg, #c2410c, #be185d); }
.tint-cyan { background: linear-gradient(145deg, #0e7490, #6d28d9); }
.tint-pink { background: linear-gradient(145deg, #be185d, #7c3aed); }

@media (max-width: 900px) {
  .hero-art { opacity: 0.35; width: 22rem; right: -6rem; }
  .hero-immersive { min-height: 0; padding: 3rem 0 3.5rem; }
  .hero-immersive .wrap,
  .tab-panel,
  .section-split,
  .stats-grid,
  .visual-grid,
  .explorer-cases,
  .steps-visual,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .carousel-track {
    grid-auto-columns: 80%;
  }
  .hero-art { display: none; }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    flex-direction: column;
  }
  .tab-panel { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .hero-art {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .visual-card,
  .lift-card,
  .step-card,
  .btn {
    transition: none;
  }
  .visual-card:hover,
  .lift-card:hover,
  .step-card:hover {
    transform: none;
  }
}


.tint-indigo { background: linear-gradient(145deg, #1d4ed8, #0e7490); }
.tint-fuchsia { background: linear-gradient(145deg, #db2777, #c2410c); }
.tint-emerald { background: linear-gradient(145deg, #0f766e, #7c3aed); }

.tab-list [role="tab"] {
  white-space: nowrap;
}

.tab-list {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .tab-list {
    flex-wrap: nowrap;
  }
}

.footer-col.footer-services {
  gap: 0.32rem;
}

.footer-col.footer-services a {
  font-size: 0.9rem;
}


/* ----- Safari / iPhone robustness ----- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  /* clip (Safari 16+, Chrome 90+) stops sideways scroll without creating a
     scroll container, so the sticky header keeps sticking. Older browsers
     keep using hidden. */
  overflow-x: clip;
  overscroll-behavior-x: none;
}

img,
svg {
  height: auto;
}

a,
button,
.visual-card,
.explorer-tab,
.tab-list [role="tab"] {
  -webkit-tap-highlight-color: rgba(109, 40, 217, 0.18);
}

.site-header .wrap,
.wrap,
.wrap-narrow {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (max-width: 800px) {
  .site-nav {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  }
}

.carousel-track {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}

.visual-card-media img,
.visual-card-media svg,
.tab-visual img,
.tab-visual svg {
  width: 6.25rem;
  height: 6.25rem;
  max-width: 6.25rem;
  max-height: 6.25rem;
}

.hero-art,
.hero-art-inline {
  max-width: 100%;
  height: auto;
}

/* Avoid sticky-hover on touch devices */
@media (hover: none) {
  a.visual-card:hover,
  .visual-card.lift-card:hover,
  .lift-card:hover,
  .step-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }
}

@media (hover: none) {
  a.visual-card:active,
  .lift-card:active,
  .step-card:active {
    transform: translateY(-3px);
  }
}

@supports not (inset: 0) {
  .hero-aside::before { top: 0; right: 0; left: 0; }
  .hero-canvas, .site-nav { top: 0; right: 0; bottom: 0; left: 0; }
}

@media (max-width: 700px) {
  /* orb shrink on narrow: filter:blur can escape overflow:hidden on some Safari builds */
  .orb-a, .orb-b, .orb-c, .orb-d {
    width: 14rem;
    height: 14rem;
    filter: blur(24px);
  }
  .orb-a { left: -3rem; top: -3rem; }
  .orb-b { right: -3rem; }
  .orb-c { right: 10%; bottom: -3rem; }
}


/* ----- Dark theme colour treatment (layout unchanged) ----- */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(147, 197, 253, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 197, 253, 0.045) 1px, transparent 1px),
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(37, 99, 235, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 110%, rgba(236, 72, 153, 0.14), transparent 50%);
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
  background-attachment: scroll;
}

.hero-canvas {
  background-image:
    linear-gradient(rgba(165, 180, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.hero-canvas::after {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 28% 18% at 20% 30%, rgba(34, 211, 238, 0.22), transparent 70%),
    radial-gradient(ellipse 24% 16% at 78% 24%, rgba(167, 139, 250, 0.28), transparent 70%),
    radial-gradient(ellipse 30% 20% at 70% 75%, rgba(244, 114, 182, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-aside,
.visual-card,
.faq-item,
.contact-card,
.tab-panel,
.step-card,
.case-card,
.lift-card,
.media-panel {
  box-shadow: var(--shadow);
  border-color: var(--line);
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

@media print {
  body {
    background: white;
  }
}

/* ============================================================
   v7 — DNC Intelligence logo
   ============================================================ */
.logo-img {
  display: block;
  width: auto;
  height: 2.25rem;
  max-width: none;
  -webkit-transition: height 0.28s var(--ease);
  transition: height 0.28s var(--ease);
}

.site-header.is-scrolled .logo-img {
  height: 1.85rem;
}

.footer-brand .logo {
  margin-bottom: 0.5rem;
}

.footer-brand .logo-img-foot {
  height: 2.5rem;
}

.footer-brand p.footer-slogan {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(214, 208, 255, 0.72);
}

@media (max-width: 800px) {
  .site-header .logo-img {
    height: 2rem;
  }
  .site-header.is-scrolled .logo-img {
    height: 1.7rem;
  }
  .footer-brand .logo-img-foot {
    height: 2.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-img {
    -webkit-transition: none;
    transition: none;
  }
}

/* v8 — full logo (with tagline) in the header */
.site-header .logo-img-header {
  height: 3.375rem;
}

.site-header.is-scrolled .logo-img-header {
  height: 2.9rem;
}

@media (max-width: 800px) {
  .site-header .logo-img-header {
    height: 3.1rem;
  }
  .site-header.is-scrolled .logo-img-header {
    height: 2.85rem;
  }
}

/* v9 — hero audit card and footer brand without repeat booking buttons */
.hero-aside .hero-note {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.footer-brand p:last-child {
  margin-bottom: 0;
}
