/* =========================================================
   SEHLMEYER Consulting — Design System  (v2 · tighter + richer)
   ========================================================= */

:root {
  --primary: #0A4F5C;
  --primary-dark: #063842;
  --primary-light: #0E6B7C;
  --accent: #14B8A6;
  --accent-soft: #5EEAD4;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E5E7EB;
  --line-strong: #CBD5E1;
  --surface: #FAFAF7;
  --surface-alt: #F1F3F2;
  --card: #FFFFFF;
  --white: #FFFFFF;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 6px 22px -12px rgba(10, 79, 92, 0.22);
  --shadow-lg: 0 18px 50px -22px rgba(10, 79, 92, 0.3);
  --shadow-glow: 0 10px 40px -12px rgba(20, 184, 166, 0.45);

  --container: 1200px;
  --nav-height: 64px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.4,1.4,.5,1);
}

* { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s var(--ease);
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 .4em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.125rem, .6vw + 1rem, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 .8em; color: var(--ink-soft); }
.lead { font-size: clamp(1rem, .3vw + 1rem, 1.15rem); color: var(--ink-soft); line-height: 1.55; }

/* --------- Layout --------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

main { display: block; width: 100%; overflow-x: clip; }
section { padding: clamp(40px, 5vw, 72px) 0; position: relative; overflow-x: clip; }
.section-tight { padding: clamp(28px, 3.5vw, 48px) 0; }
.section-xtight { padding: clamp(20px, 2.5vw, 36px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--primary);
}
.eyebrow-dot::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 4px;
  animation: pulse-dot 2s var(--ease) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.4); }
}

/* --------- Navigation --------- */

.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 247, .92);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.brand {
  display: inline-flex; align-items: center;
  line-height: 0;
}
.brand:hover { opacity: .85; }
.brand img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.footer-brand .brand img {
  background: var(--white);
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 12px -4px rgba(0,0,0,.4);
}
@media (max-width: 720px) { .brand img { height: 28px; } }
@media (max-width: 420px) { .brand img { height: 24px; } }

.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color .2s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover:not(.nav-cta) { color: var(--primary); }
.nav-links a:hover:not(.nav-cta)::after { transform: scaleX(1); }
.nav-links a[aria-current="page"]:not(.nav-cta) { color: var(--primary); }
.nav-links a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--white) !important;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { background: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  background: none; border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .nav-links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; border-radius: var(--radius-sm); }
  .nav-links a::after { display: none; }
  .nav-cta { align-self: flex-start; margin-top: 6px; }
}

/* --------- Dropdown --------- */

.has-dropdown { position: relative; }

@media (min-width: 901px) {
  .nav-links .has-dropdown > a { padding-right: 10px; }
  .chevron {
    width: 13px; height: 13px;
    display: inline-block;
    margin-left: 4px;
    vertical-align: -1px;
    transition: transform .25s var(--ease);
  }
  .has-dropdown:hover .chevron,
  .has-dropdown:focus-within .chevron { transform: rotate(180deg); }

  .dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: -8px;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    margin: 0;
    list-style: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    z-index: 60;
  }
  .dropdown::before {
    content: "";
    position: absolute;
    top: -10px; left: 0; right: 0; height: 10px;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown li { padding: 0; }
  .dropdown a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: .9375rem;
    line-height: 1.35;
  }
  .dropdown a::after { display: none; }
  .dropdown a .dd-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(10,79,92,.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease);
  }
  .dropdown a .dd-icon svg { width: 15px; height: 15px; }
  .dropdown a strong {
    display: block;
    color: var(--ink);
    font-weight: 500;
    font-size: .9375rem;
    transition: color .2s var(--ease);
  }
  .dropdown a small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.35;
  }
  .dropdown a:hover { background: var(--surface-alt); }
  .dropdown a:hover strong { color: var(--primary); }
  .dropdown a:hover .dd-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
  }
}

@media (max-width: 900px) {
  .chevron { display: none; }
  .dropdown {
    list-style: none;
    padding: 2px 0 6px 12px;
    margin: 4px 0 6px 12px;
    border-left: 2px solid var(--line);
    position: static;
    min-width: 0;
    max-width: 100%;
    width: auto;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown li { padding: 0; }
  .dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--ink-soft);
    font-size: .9375rem;
    border-radius: var(--radius-sm);
  }
  .dropdown a::after { display: none; }
  .dropdown a:hover { background: var(--surface-alt); color: var(--primary); }
  .dropdown a strong { display: block; font-weight: 500; color: var(--ink); font-size: .9375rem; }
  .dropdown a small { display: block; font-size: .75rem; color: var(--muted); margin-top: 2px; font-weight: 400; }
  .dropdown .dd-icon { display: none; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  line-height: 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn svg { width: 16px; height: 16px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

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

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.hero h1 { margin-bottom: 18px; }

.hero-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 45%, var(--primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-meta {
  margin-top: 28px;
  display: flex; flex-wrap: wrap;
  gap: 22px 28px;
  color: var(--muted);
  font-size: .9375rem;
}
.hero-meta strong { color: var(--ink); font-weight: 600; display: block; font-size: 1.25rem; font-family: var(--font-head); }
.hero-meta .hero-meta-item { display: flex; flex-direction: column; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  justify-self: end;
  width: 100%;
  animation: float 9s ease-in-out infinite;
}
@media (max-width: 900px) { .hero-visual { justify-self: start; max-width: 320px; } }
.hero-visual svg { width: 100%; height: 100%; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Layered hero background (image + gradients + noise) */
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.55) brightness(1.05);
  opacity: .14;
  mix-blend-mode: multiply;
}
.consent-given .hero-bg::before {
  background-image: url("https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?auto=format&fit=crop&w=1920&q=70");
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 15% 20%, rgba(20, 184, 166, .22) 0%, transparent 55%),
    radial-gradient(60% 60% at 85% 70%, rgba(10, 79, 92, .18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(250,250,247,.2) 0%, rgba(250,250,247,.85) 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  z-index: -1;
  animation: blob-drift 14s ease-in-out infinite;
}
.blob-1 { width: 340px; height: 340px; background: rgba(20,184,166,.35); top: -80px; right: -80px; }
.blob-2 { width: 260px; height: 260px; background: rgba(10,79,92,.3); bottom: -60px; left: -40px; animation-delay: -6s; }
@keyframes blob-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px, 12px) scale(1.08); }
  66% { transform: translate(-15px, 22px) scale(.94); }
}

/* --------- Stats band --------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 28px clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px; gap: 20px; }
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 2.4vw + .5rem, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.stat-num .suffix { color: var(--accent); font-size: .85em; }
.stat-label {
  font-size: .8125rem;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .02em;
}

/* --------- Marquee (expertise areas) --------- */

.marquee {
  overflow: hidden;
  position: relative;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-alt) 50%, var(--surface) 100%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.marquee-item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------- Cards / services --------- */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px);
  transition: transform .3s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease);
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  margin-bottom: 14px;
  transition: transform .35s var(--ease-spring);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin-bottom: 14px; font-size: .95rem; }
.card .card-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: var(--primary);
  font-size: .9375rem;
}
.card .card-link::after {
  content: "→";
  transition: transform .25s var(--ease);
}
.card:hover .card-link::after { transform: translateX(5px); }

/* --------- Split / content rows --------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.bullets {
  list-style: none; padding: 0; margin: 16px 0 0;
}
.bullets li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  transition: padding-left .25s var(--ease), color .2s var(--ease);
}
.bullets li:last-child { border-bottom: 0; }
.bullets li::before {
  content: "";
  position: absolute; left: 0; top: 19px;
  width: 16px; height: 2px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.bullets li:hover { padding-left: 36px; color: var(--ink); }
.bullets li:hover::before { width: 22px; }

/* --------- Quote / testimonial --------- */

.quote-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.quote-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  position: absolute;
  top: -50px; left: 14px;
  font-size: 220px;
  color: rgba(255,255,255,.08);
  line-height: 1;
  z-index: -1;
}
.quote-card::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,.35) 0%, transparent 70%);
  z-index: -1;
}
.quote-card blockquote {
  font-size: clamp(1rem, .4vw + 1rem, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 18px;
  color: var(--white);
}
.quote-card cite {
  font-style: normal;
  color: var(--accent-soft);
  font-size: .875rem;
  letter-spacing: .04em;
}

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

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(20,184,166,.18) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(10,79,92,.35) 0%, transparent 55%);
  z-index: -1;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  background: linear-gradient(120deg, transparent 40%, rgba(94,234,212,.08) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shine 7s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes shine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -100% 0; }
}
.cta-band h2 { color: var(--white); margin: 0; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.72); margin: 6px 0 0; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { color: var(--ink); }
.cta-band .btn-primary::before {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
}

/* --------- Image feature section --------- */

.img-feature {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  padding: clamp(28px, 4vw, 56px);
  color: var(--white);
  isolation: isolate;
  display: flex; align-items: flex-end;
  background: var(--primary-dark);
}
.img-feature::before {
  content: "";
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.8) contrast(1.05);
  z-index: -2;
  transition: transform 1.2s var(--ease);
}
.consent-given .img-feature::before {
  background-image: url("https://images.unsplash.com/photo-1576086213369-97a306d36557?auto=format&fit=crop&w=1920&q=70");
}
.img-feature:hover::before { transform: scale(1.04); }
.img-feature::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(6,56,66,.85) 0%, rgba(10,79,92,.6) 50%, rgba(20,184,166,.35) 100%);
  z-index: -1;
}
.img-feature h2 { color: var(--white); max-width: 18ch; margin-bottom: 10px; }
.img-feature p { color: rgba(255,255,255,.85); max-width: 42ch; margin-bottom: 18px; }
.img-feature .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.img-feature .btn-ghost:hover {
  background: var(--white); color: var(--ink); border-color: var(--white);
}

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

.form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 5px; }
.field label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(10, 79, 92, .12);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Honeypot — hidden from users, not from bots */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  font-size: .9375rem;
  line-height: 1.45;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: none;
  animation: status-in .35s var(--ease);
}
.form-status.is-success,
.form-status.is-error { display: block; }
.form-status.is-success {
  background: rgba(20, 184, 166, .1);
  border-color: rgba(20, 184, 166, .35);
  color: var(--primary-dark);
}
.form-status.is-error {
  background: rgba(220, 38, 38, .06);
  border-color: rgba(220, 38, 38, .3);
  color: #991B1B;
}
@keyframes status-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.btn[disabled] { opacity: .6; cursor: wait; transform: none !important; }
.btn[disabled]::before { opacity: 0 !important; }

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

.contact-info { display: grid; gap: 12px; }
.contact-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.contact-info-item:hover { transform: translateX(3px); border-color: var(--primary); }
.contact-info-item .icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(10, 79, 92, .08);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item .icon svg { width: 16px; height: 16px; }
.contact-info-item .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-info-item .value {
  font-weight: 500;
  color: var(--ink);
  font-size: .9375rem;
  line-height: 1.4;
}

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

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 44px 0 20px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 120%; height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(20,184,166,.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer a { color: rgba(255,255,255,.9); }
.footer a:hover { color: var(--accent-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 28px;
  position: relative;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 3px 0; font-size: .9rem; }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: 10px; max-width: 32ch; font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  position: relative;
}

/* --------- Legal pages (text layout) --------- */

.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 1.6em; font-size: 1.375rem; }
.legal h3 { margin-top: 1.2em; font-size: 1.0625rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }

/* --------- Utility / animation --------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-visual, .blob, .marquee-track { animation: none; }
}

.center { text-align: center; }
.max-60 { max-width: 60ch; }
.max-55 { max-width: 55ch; }
.max-40 { max-width: 40ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-md { margin-top: clamp(20px, 2.5vw, 32px); }
.mt-lg { margin-top: clamp(28px, 3.5vw, 48px); }
.mb-md { margin-bottom: clamp(20px, 2.5vw, 32px); }

/* Hidden on mobile / desktop helpers */
@media (max-width: 900px) { .hide-on-mobile { display: none !important; } }
@media (min-width: 901px) { .hide-on-desktop { display: none !important; } }

/* =========================================================
   Mobile polish — focused overrides for phones
   ========================================================= */

@media (max-width: 720px) {
  :root { --nav-height: 60px; }

  .container { padding: 0 18px; }

  /* Tighter vertical rhythm */
  section { padding: clamp(32px, 7vw, 56px) 0; }
  .section-tight { padding: clamp(20px, 4vw, 36px) 0; }
  .section-xtight { padding: clamp(16px, 3vw, 28px) 0; }

  /* Typography */
  h1 { font-size: clamp(1.875rem, 7vw + .25rem, 2.5rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(1.375rem, 4.5vw + .25rem, 1.875rem); }
  h3 { font-size: 1.125rem; }
  .lead { font-size: 1rem; line-height: 1.5; }

  /* Hero */
  .hero { padding: clamp(28px, 6vw, 56px) 0 clamp(24px, 5vw, 40px); }
  .hero-grid { gap: 20px; }
  .hero h1 { margin-bottom: 12px; }
  .hero-cta-row { margin-top: 18px; gap: 10px; }
  .hero-cta-row .btn { flex: 1 1 auto; justify-content: center; min-width: 140px; }
  .hero-meta { margin-top: 20px; gap: 12px 20px; font-size: .875rem; }
  .hero-meta strong { font-size: 1rem; }
  .hero-visual { max-width: 240px; justify-self: center; margin: 4px auto 0; }

  /* Decorative blobs — smaller & more blurred to avoid mobile overflow */
  .blob-1 { width: 240px; height: 240px; filter: blur(50px); top: -60px; right: -60px; }
  .blob-2 { width: 200px; height: 200px; filter: blur(50px); bottom: -50px; left: -30px; }

  /* Stats */
  .stats { padding: 16px 14px; gap: 16px 12px; }
  .stat-num { font-size: 1.625rem; }
  .stat-label { font-size: .75rem; margin-top: 4px; }

  /* Marquee */
  .marquee { padding: 10px 0; }
  .marquee-track { gap: 26px; animation-duration: 24s; }
  .marquee-item { font-size: .8125rem; }

  /* Cards */
  .card { padding: 18px; }
  .card h3 { margin-bottom: 4px; }
  .card p { font-size: .9rem; margin-bottom: 12px; }
  .card-icon { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; }
  .card-icon svg { width: 18px; height: 18px; }

  /* Split — tighter stack */
  .split { gap: 22px; }

  /* Bullets */
  .bullets li { padding: 10px 0 10px 26px; font-size: .9375rem; }
  .bullets li::before { top: 18px; width: 14px; }

  /* Quote card — prevent decoration overflow */
  .quote-card { padding: 22px 20px; }
  .quote-card::before { font-size: 140px; top: -32px; left: 8px; }
  .quote-card::after { width: 180px; height: 180px; right: -60px; bottom: -60px; }
  .quote-card blockquote { font-size: 1rem; line-height: 1.5; margin-bottom: 14px; }
  .quote-card cite { font-size: .8125rem; }

  /* CTA band — text stacks above full-width button */
  .cta-band { padding: 22px; gap: 14px; flex-direction: column; align-items: stretch; }
  .cta-band h2 { font-size: 1.25rem; max-width: none; }
  .cta-band .btn { align-self: stretch; justify-content: center; }

  /* Image feature */
  .img-feature { padding: 22px; min-height: 220px; border-radius: var(--radius); }
  .img-feature h2 { font-size: 1.25rem; }
  .img-feature p { font-size: .9375rem; margin-bottom: 14px; }

  /* Form */
  .form { gap: 10px; }
  .field input, .field textarea, .field select {
    padding: 11px 13px;
    font-size: 16px; /* 16px prevents iOS auto-zoom on focus */
  }
  .field textarea { min-height: 110px; }
  .field label { font-size: .75rem; }

  /* Contact info */
  .contact-info { gap: 10px; }
  .contact-info-item { padding: 12px 14px; gap: 12px; }
  .contact-info-item .icon { width: 34px; height: 34px; }
  .contact-info-item .value { font-size: .875rem; }
  .contact-info-item .label { font-size: .7rem; letter-spacing: .06em; }

  /* Buttons — comfortable touch target, not oversized */
  .btn { padding: 12px 20px; font-size: .9375rem; gap: 6px; }

  /* Navigation mobile panel */
  .nav-inner { padding: 0; }
  .nav-links { padding: 10px 16px 16px; }
  .nav-links a { font-size: .9375rem; padding: 11px 12px; }
  .nav-cta { align-self: stretch !important; margin-top: 8px; justify-content: center; padding: 13px 16px; }

  /* Footer */
  .footer { padding: 36px 0 18px; margin-top: 40px; }
  .footer-grid { gap: 22px; margin-bottom: 20px; }
  .footer h5 { margin-bottom: 8px; font-size: .6875rem; }
  .footer li { font-size: .85rem; padding: 2px 0; }
  .footer-brand p { font-size: .85rem; }
  .footer-bottom { font-size: .75rem; gap: 6px; padding-top: 14px; }

  /* Eyebrow tag */
  .eyebrow { font-size: .7rem; margin-bottom: 8px; letter-spacing: .12em; }
  .eyebrow::before { width: 14px; }

  /* Legal pages */
  .legal h2 { font-size: 1.25rem; margin-top: 1.3em; }
  .legal h3 { font-size: 1rem; margin-top: 1em; }
  .legal p, .legal li { font-size: .9375rem; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }

  h1 { font-size: clamp(1.625rem, 8vw, 2rem); }
  h2 { font-size: clamp(1.25rem, 6vw, 1.625rem); }

  .hero-visual { max-width: 200px; }
  .hero-meta { font-size: .8125rem; gap: 10px 16px; }
  .hero-meta strong { font-size: .95rem; }
  .hero-cta-row .btn { flex: 1 1 100%; min-width: 0; }

  .stats { padding: 14px 12px; }
  .stat-num { font-size: 1.5rem; }

  .card { padding: 16px; }
  .cta-band { padding: 18px; }
  .img-feature { padding: 18px; min-height: 200px; }
  .quote-card { padding: 18px; }
  .quote-card::before { font-size: 110px; top: -20px; left: 6px; }

}

/* =========================================================
   Cookie consent banner
   ========================================================= */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.25);
  animation: cookie-slide-up 0.4s var(--ease);
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1 1 380px;
  min-width: 0;
}
.cookie-banner-text h3 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.cookie-banner-text p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: var(--white); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner-actions .btn {
  padding: 11px 20px;
  font-size: 0.9375rem;
}
.cookie-banner-actions .btn-primary {
  background: var(--accent);
  color: var(--ink);
}
.cookie-banner-actions .btn-primary::before {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 100%);
}
.cookie-banner-actions .btn-primary:hover { color: var(--ink); }
.cookie-banner-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
}
.cookie-banner-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

@media (max-width: 720px) {
  .cookie-banner { padding: 14px 0; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-banner-text h3 { font-size: 0.95rem; }
  .cookie-banner-text p { font-size: 0.825rem; }
  .cookie-banner-actions { flex-direction: column-reverse; gap: 8px; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }
}
