:root {
  --bg: #0a0a0a;
  --bg-soft: #111111;
  --panel: rgba(255,255,255,0.045);
  --text: #ffffff;
  --muted: #c6c6c9;
  --muted-2: #8b8b90;
  --line: rgba(255,255,255,0.11);
  --light-bg: var(--tba-light-bg, #f5f5f3);
  --light-panel: #ffffff;
  --light-line: var(--tba-light-line, #ddddda);
  --light-text: #151515;
  --accent: var(--tba-accent, #f26722);
  --accent-hover: #ff7b33;
  --shadow: 0 20px 50px rgba(0,0,0,0.08);
  --radius-sm: 2px;
  --transition: 220ms ease;
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--tba-dark-bg, #080808);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 9999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,8,8,0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.site-title {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: #d4d4d8;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: #fff; }
.nav-divider { color: #52525b; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.button-primary {
  background: var(--accent);
  color: #fff;
}
.button-primary:hover { background: #fb923c; }
.button-outline {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  color: #fff;
}
.button-outline:hover { background: rgba(255,255,255,0.08); }
.button-dark {
  background: #111;
  color: #fff;
}
.button-dark:hover { background: #222; }

.header-cta { min-height: 42px; padding: 0 20px; }

.mobile-menu-toggle,
.mobile-menu-panel { display: none; }

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.04), transparent 26%),
    #080808;
}
.hero-texture,
.textured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255,255,255,0.9) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 0;
  align-items: stretch;
}
.hero-left {
  position: relative;
  min-height: 620px;
}
.hero-black-field {
  position: absolute;
  inset: 0;
  background: #000;
}
.hero-black-bleed {
  position: absolute;
  top: 0;
  right: -120px;
  width: 240px;
  height: 100%;
  background: linear-gradient(90deg, #000, transparent);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding-right: 56px;
}
.hero-copy h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.hero-subhead {
  margin: 32px 0 0;
  max-width: 420px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #e4e4e7;
  font-weight: 500;
}
.hero-rule {
  width: 100%;
  max-width: 384px;
  height: 1px;
  background: var(--line);
  margin-top: 32px;
}
.hero-body {
  margin: 32px 0 0;
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: #d4d4d8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.hero-right {
  position: relative;
  min-height: 620px;
}
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: brightness(0.88) contrast(1.06);
}
.hero-fade-layer,
.hero-fade-veil,
.hero-vignette,
.hero-grain,
.hero-edge-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-fade-layer {
  background-image: linear-gradient(90deg,#000 0%,#000 22%,rgba(0,0,0,0.96) 30%,rgba(0,0,0,0.88) 38%,rgba(0,0,0,0.72) 46%,rgba(0,0,0,0.52) 54%,rgba(0,0,0,0.30) 62%,rgba(0,0,0,0.14) 70%,transparent 80%);
}
.hero-fade-veil {
  inset: 0 auto 0 22%;
  width: 28%;
  background-image: radial-gradient(ellipse at left,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.34) 38%,rgba(0,0,0,0.16) 58%,transparent 78%);
  filter: blur(32px);
}
.hero-vignette {
  background-image: radial-gradient(ellipse at center,transparent 58%,rgba(0,0,0,0.42) 100%);
}
.hero-grain {
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(255,255,255,0.45) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}
.hero-edge-shade {
  background-image: linear-gradient(180deg,rgba(0,0,0,0.24),transparent 18%,transparent 74%,rgba(0,0,0,0.34));
}

.section {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
  border-bottom-color: var(--light-line);
}
.section-dark {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.035), transparent 25%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 18%),
    #0a0a0a;
  color: #fff;
}

.section-line-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-line-title span {
  height: 1px;
  flex: 1;
  background: var(--light-line);
}
.section-line-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--light-text);
  text-align: center;
}

.logo-marquee-wrap {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
}
.logo-fade-left,
.logo-fade-right {
  position: absolute;
  inset-block: 0;
  width: 112px;
  z-index: 2;
  pointer-events: none;
}
.logo-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(250,250,250,1), rgba(250,250,250,0));
}
.logo-fade-right {
  right: 0;
  background: linear-gradient(270deg, rgba(250,250,250,1), rgba(250,250,250,0));
}
.logo-marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 56px;
  animation: logoMarquee 28s linear infinite;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 80px;
}
.logo-item img {
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: var(--transition);
}
.logo-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}

.section-headline-wrap h2,
.split-heading h2,
.cta-panel h2,
.contact-info h3 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.accent { color: var(--accent); }

.story-grid,
.work-grid,
.contact-grid {
  display: grid;
  gap: 24px;
  margin-top: 40px;
}
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }

.story-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  padding: 32px;
  transition: var(--transition);
}
.story-card:hover { background: rgba(255,255,255,0.06); }
.story-card h3 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.story-card p {
  margin: 24px 0 0;
  color: #d4d4d8;
  line-height: 1.9;
  font-size: 1.08rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.capability-card {
  background: #fff;
  border: 1px solid var(--light-line);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}
.capability-card:hover { transform: translateY(-4px); }
.capability-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 20px;
}
.capability-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
}

.split-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}
.split-heading .line {
  display: none;
  height: 1px;
  flex: 1;
  background: var(--line);
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  transition: var(--transition);
}
.work-card:hover { transform: translateY(-4px); }
.work-card-image {
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #111;
}
.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.work-card:hover .work-card-image img { transform: scale(1.03); }
.work-card-copy {
  padding: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.work-card-copy h3 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}
.work-card-copy p {
  margin: 12px 0 0;
  color: #d4d4d8;
  line-height: 1.8;
  font-size: 1.02rem;
}

.cta-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.cta-left,
.cta-right {
  padding: 40px;
}
.cta-left { border-right: 1px solid var(--line); }
.eyebrow,
.dark {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: #71717a;
}
.cta-panel p {
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.9;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.request-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.request-list > div {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 16px;
  font-size: 0.95rem;
  color: #e4e4e7;
}
.request-note {
  margin-top: 24px;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.contact-info p {
  color: #52525b;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 640px;
}
.contact-cards {
  display: grid;
  gap: 16px;
}
.contact-card {
  border: 1px solid var(--light-line);
  background: #fff;
  padding: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: #d4d4d8;
}
.contact-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: #71717a;
}
.contact-card-value {
  margin-top: 8px;
  color: #111;
  font-size: 1rem;
  font-weight: 500;
}

.contact-form-card {
  border: 1px solid var(--light-line);
  background: #fff;
  padding: 32px;
  box-shadow: var(--shadow);
}
.support-form {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.support-form label {
  display: grid;
  gap: 8px;
}
.support-form label span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #27272a;
}
.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--light-line);
  background: #fafafa;
  color: #111;
  padding: 14px 16px;
  font: inherit;
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}
.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: #111;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
}
.form-footer p {
  margin: 0;
  max-width: 480px;
  color: #71717a;
  font-size: 0.9rem;
  line-height: 1.7;
}

.site-footer {
  background: #000;
  border-top: 1px solid var(--line);
}
.footer-shell { padding: 48px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.footer-copy {
  max-width: 360px;
  margin: 16px 0 0;
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-heading {
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}
.footer-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.footer-links a {
  color: #d4d4d8;
  font-size: 0.95rem;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #71717a;
  font-size: 0.8rem;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links strong { color: #d4d4d8; }

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

@media (max-width: 1080px) {
  .hero-shell,
  .contact-grid,
  .cta-panel,
  .footer-grid,
  .story-grid,
  .work-grid,
  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta-left { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .site-nav,
  .header-cta { display: none; }
  .mobile-menu-toggle { display: inline-flex; flex-direction: column; gap: 4px; }
  .mobile-menu-toggle span {
    display: block; width: 18px; height: 2px; background: #fff;
  }
  .hero-shell,
  .contact-grid,
  .cta-panel,
  .footer-grid,
  .story-grid,
  .work-grid,
  .capabilities-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-left, .hero-right, .hero-copy { min-height: auto; }
  .hero-copy { padding: 72px 0 40px; }
  .hero-right { min-height: 380px; padding: 0 0 40px; }
  .hero-black-bleed { display: none; }
  .split-heading .line { display: none; }
  .logo-item { min-width: 150px; height: 64px; }
  .logo-item img { max-width: 140px; max-height: 40px; }
  .footer-bottom,
  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu-panel[hidden] { display: none; }
  .mobile-menu-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(16px);
  }
  .mobile-menu-inner {
    margin: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    background: #09090b;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  }
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-menu-title { font-weight: 600; }
  .mobile-menu-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-menu-links {
    display: grid;
    gap: 8px;
    margin-top: 20px;
  }
  .mobile-menu-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    color: #e4e4e7;
  }
  .mobile-cta { width: 100%; margin-top: 20px; }
}


/* Reference-aligned refinements */
.site-title {
  font-weight: 700;
  letter-spacing: -0.045em;
}

.header-shell {
  min-height: 74px;
}

.site-nav a {
  font-size: 0.94rem;
}

.button-primary {
  background: var(--accent);
}
.button-primary:hover {
  background: var(--accent-hover);
}

.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(3.4rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 700;
}

.hero-subhead {
  max-width: 470px;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  color: #f3f4f6;
  font-weight: 600;
}

.hero-body {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.75;
  color: #d2d2d6;
}

.hero-actions .button {
  min-height: 54px;
  padding-inline: 22px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.hero-right,
.hero-left,
.hero-copy {
  min-height: 600px;
}

.hero-image {
  object-position: center center;
}

.section-line-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  font-weight: 700;
}

.logo-marquee-wrap {
  padding-block: 6px;
}
.logo-fade-left,
.logo-fade-right {
  width: 120px;
}
.logo-item {
  min-width: 170px;
  height: 72px;
}
.logo-item img {
  max-width: 155px;
  max-height: 42px;
}

.section-headline-wrap h2,
.split-heading h2,
.cta-panel h2,
.contact-info h3 {
  font-weight: 700;
}

.story-grid {
  gap: 18px;
}
.story-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.story-card h3 {
  font-size: 1.55rem;
}
.story-card p {
  color: #e2e2e5;
  font-size: 1rem;
  line-height: 1.75;
}

.capabilities-grid {
  gap: 14px;
}
.capability-card {
  min-height: 156px;
  background: #f8f8f7;
  border: 1px solid #e4e4e1;
}
.capability-icon {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  color: #111;
  margin-bottom: 16px;
}
.capability-icon svg {
  width: 48px;
  height: 48px;
  stroke: #191919;
  fill: none;
  stroke-width: 1.8;
}
.capability-icon svg rect,
.capability-icon svg path {
  vector-effect: non-scaling-stroke;
}
.capability-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.split-heading .line {
  display: block;
}

.work-grid {
  gap: 18px;
}
.work-card {
  background: rgba(255,255,255,0.03);
}
.work-card-copy h3 {
  font-size: 1.9rem;
  font-weight: 700;
}
.work-card-copy p {
  font-size: 1rem;
}

.cta-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.015);
}
.cta-left, .cta-right {
  padding: 42px;
}
.eyebrow, .dark, .footer-heading, .contact-card-label {
  color: #8c8c92;
}
.request-list > div {
  background: rgba(255,255,255,0.02);
}

.contact-form-card {
  border-color: #e5e5e1;
  background: #fefefd;
}
.support-form input,
.support-form select,
.support-form textarea {
  background: #f7f7f5;
}
.contact-card {
  box-shadow: none;
}
.contact-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.site-footer {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.03), transparent 24%),
    #080808;
}
.footer-brand {
  font-weight: 700;
}


.section-light {
  background: var(--tba-light-bg, #f5f5f3);
}
.hero-section,
.section-dark,
.site-footer {
  background-color: var(--tba-dark-bg, #0a0a0a);
}
.capability-icon svg {
  width: 48px;
  height: 48px;
  stroke: #191919;
  fill: none;
  stroke-width: 1.8;
}
.capability-icon svg path,
.capability-icon svg rect,
.capability-icon svg circle,
.capability-icon svg line {
  vector-effect: non-scaling-stroke;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-fade-left,
.logo-fade-right {
  width: var(--tba-logo-fade-left, 120px);
}
.logo-fade-right {
  width: var(--tba-logo-fade-right, 120px);
}
.logo-item img {
  transform: scale(var(--tba-logo-scale, 1));
  transform-origin: center center;
}
.logo-empty-state {
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px dashed #d6d6d2;
  color: #666;
  text-align: center;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.5);
}


/* Mobile polish + floating section cleanup */
.mobile-menu-toggle {
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
}
.mobile-menu-toggle .mobile-menu-box {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.mobile-menu-toggle span span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.section,
.hero-section,
.site-footer {
  position: relative;
  isolation: isolate;
}

.story-card,
.work-card,
.capability-card,
.contact-card,
.contact-form-card,
.cta-panel,
.request-list > div {
  position: relative;
}

.story-card,
.work-card,
.contact-card,
.contact-form-card,
.cta-panel {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.story-grid,
.work-grid,
.capabilities-grid,
.contact-grid {
  align-items: stretch;
}

.capability-card,
.story-card,
.work-card,
.contact-card {
  height: 100%;
}

.request-list > div,
.contact-card,
.capability-card {
  overflow: hidden;
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .header-shell {
    min-height: 64px;
    padding: 12px 0;
  }

  .site-title {
    font-size: 1.35rem;
    line-height: 1;
  }

  .hero-shell {
    gap: 0;
  }

  .hero-left,
  .hero-right,
  .hero-copy {
    min-height: auto;
  }

  .hero-left {
    overflow: hidden;
  }

  .hero-copy {
    padding: 56px 0 24px;
    justify-content: flex-start;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(3rem, 14vw, 4.5rem);
    line-height: 0.95;
    margin-right: -0.02em;
  }

  .hero-subhead {
    max-width: 100%;
    margin-top: 24px;
    font-size: clamp(1.15rem, 7vw, 1.6rem);
  }

  .hero-rule {
    margin-top: 24px;
    max-width: 100%;
  }

  .hero-body {
    margin-top: 24px;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-right {
    min-height: 0;
    padding: 8px 0 40px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-fade-veil {
    left: 12%;
    width: 40%;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .section.section-light,
  .section.section-dark {
    overflow: hidden;
  }

  .section-line-title {
    gap: 10px;
  }

  .section-line-title h2 {
    font-size: 1.55rem;
    white-space: nowrap;
  }

  .story-grid,
  .work-grid,
  .capabilities-grid,
  .contact-grid {
    gap: 16px;
    margin-top: 28px;
  }

  .story-card,
  .work-card-copy,
  .contact-form-card,
  .cta-left,
  .cta-right {
    padding: 20px;
  }

  .story-card h3 {
    font-size: 1.3rem;
    padding-bottom: 12px;
  }

  .story-card p,
  .work-card-copy p,
  .contact-info p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .capability-card {
    min-height: 128px;
    padding: 24px 16px;
  }

  .capability-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .capability-icon svg {
    width: 38px;
    height: 38px;
  }

  .split-heading {
    margin-bottom: 28px;
    gap: 12px;
  }

  .split-heading h2 {
    font-size: 2rem;
  }

  .split-heading .line {
    display: none;
  }

  .work-card-image {
    aspect-ratio: 1.25 / 1;
  }

  .work-card-copy h3 {
    font-size: 1.4rem;
  }

  .cta-panel {
    border-radius: 2px;
  }

  .cta-left {
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .cta-panel h2,
  .contact-info h3 {
    font-size: 2rem;
    line-height: 1.02;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .button {
    width: 100%;
  }

  .request-list {
    gap: 10px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    gap: 12px;
  }

  .contact-card {
    padding: 16px;
  }

  .contact-form-card {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-form {
    gap: 14px;
  }

  .support-form input,
  .support-form select,
  .support-form textarea {
    font-size: 16px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
  }

  .logo-marquee-wrap {
    margin-top: 24px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .site-title {
    font-size: 1.1rem;
    letter-spacing: -0.035em;
  }

  .mobile-menu-toggle .mobile-menu-box {
    width: 38px;
    height: 38px;
  }

  .hero-copy {
    padding-top: 40px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .hero-subhead {
    font-size: 1.05rem;
    line-height: 1.3;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-image {
    object-position: 68% center;
  }

  .section-line-title h2 {
    font-size: 1.35rem;
  }

  .story-card,
  .work-card-copy,
  .contact-form-card,
  .cta-left,
  .cta-right {
    padding: 18px;
  }

  .capability-card {
    min-height: 116px;
    padding: 20px 14px;
  }
}


/* Section transition fades to soften boundaries */
.section,
.hero-section,
.site-footer {
  position: relative;
}

.hero-section::after,
.section::before,
.section::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-section::after {
  bottom: -1px;
  height: 88px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,10,10,0.22) 42%, rgba(245,245,243,0.82) 100%);
}

.section-light::before {
  top: -1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(245,245,243,0.82) 78%, rgba(245,245,243,1) 100%);
}

.section-light::after {
  bottom: -1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(245,245,243,0) 0%, rgba(245,245,243,0.72) 55%, rgba(10,10,10,0.34) 100%);
}

.section-dark::before {
  top: -1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(245,245,243,0.52) 0%, rgba(10,10,10,0.88) 82%, rgba(10,10,10,1) 100%);
}

.section-dark::after,
.site-footer::before {
  bottom: -1px;
  height: 72px;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.72) 55%, rgba(10,10,10,1) 100%);
}

/* keep actual content above the fades */
.hero-shell,
.section > .shell,
.site-footer > .shell {
  position: relative;
  z-index: 2;
}

/* Mobile hero fade should feel intentional, not like a desktop crop */
@media (max-width: 860px) {
  .hero-fade-layer {
    background-image: linear-gradient(
      180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.08) 18%,
      rgba(0,0,0,0) 34%,
      rgba(0,0,0,0.1) 74%,
      rgba(0,0,0,0.28) 100%
    ) !important;
  }

  .hero-fade-veil {
    display: none !important;
  }

  .hero-vignette {
    background-image: radial-gradient(ellipse at center, transparent 52%, rgba(0,0,0,0.28) 100%) !important;
  }

  .hero-edge-shade {
    background-image: linear-gradient(180deg, rgba(0,0,0,0.18), transparent 24%, transparent 76%, rgba(0,0,0,0.24)) !important;
  }

  .hero-right {
    padding-top: 4px;
  }

  .hero-visual {
    border-radius: 2px;
    overflow: hidden;
  }

  .hero-section::after,
  .section-light::before,
  .section-light::after,
  .section-dark::before,
  .section-dark::after,
  .site-footer::before {
    height: 44px;
  }
}

@media (max-width: 520px) {
  .hero-fade-layer {
    background-image: linear-gradient(
      180deg,
      rgba(0,0,0,0.14) 0%,
      rgba(0,0,0,0.06) 20%,
      rgba(0,0,0,0) 38%,
      rgba(0,0,0,0.08) 78%,
      rgba(0,0,0,0.2) 100%
    ) !important;
  }

  .hero-vignette {
    background-image: radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,0.22) 100%) !important;
  }
}


/* ===== Client marquee customizer fixes ===== */
/* Previous rules conflicted. These overrides make the customizer controls actually drive the output. */
#clients .logo-fade-left {
  width: var(--tba-logo-fade-left, 120px) !important;
}

#clients .logo-fade-right {
  width: var(--tba-logo-fade-right, 120px) !important;
}

#clients .logo-marquee {
  gap: calc(56px * var(--tba-logo-scale, 1));
}

#clients .logo-item {
  min-width: calc(170px * var(--tba-logo-scale, 1));
  height: calc(72px * var(--tba-logo-scale, 1));
}

#clients .logo-item img {
  max-width: calc(155px * var(--tba-logo-scale, 1));
  max-height: calc(42px * var(--tba-logo-scale, 1));
  width: auto;
  height: auto;
  transform: none !important;
  transform-origin: center center;
}

@media (max-width: 860px) {
  #clients .logo-fade-left {
    width: min(var(--tba-logo-fade-left, 120px), 84px) !important;
  }

  #clients .logo-fade-right {
    width: min(var(--tba-logo-fade-right, 120px), 84px) !important;
  }

  #clients .logo-marquee {
    gap: calc(40px * var(--tba-logo-scale, 1));
  }

  #clients .logo-item {
    min-width: calc(150px * var(--tba-logo-scale, 1));
    height: calc(64px * var(--tba-logo-scale, 1));
  }

  #clients .logo-item img {
    max-width: calc(140px * var(--tba-logo-scale, 1));
    max-height: calc(40px * var(--tba-logo-scale, 1));
  }
}


/* ===== Bigger client logo scale ceiling ===== */
#clients .logo-marquee {
  gap: calc(64px * var(--tba-logo-scale, 1));
}

#clients .logo-item {
  min-width: calc(210px * var(--tba-logo-scale, 1));
  height: calc(96px * var(--tba-logo-scale, 1));
  padding-inline: 8px;
}

#clients .logo-item img {
  max-width: calc(190px * var(--tba-logo-scale, 1));
  max-height: calc(64px * var(--tba-logo-scale, 1));
}

@media (max-width: 860px) {
  #clients .logo-marquee {
    gap: calc(44px * var(--tba-logo-scale, 1));
  }

  #clients .logo-item {
    min-width: calc(170px * var(--tba-logo-scale, 1));
    height: calc(76px * var(--tba-logo-scale, 1));
  }

  #clients .logo-item img {
    max-width: calc(150px * var(--tba-logo-scale, 1));
    max-height: calc(52px * var(--tba-logo-scale, 1));
  }
}


/* ===== Client marquee spread + speed customizer controls ===== */
#clients .logo-marquee {
  animation-duration: var(--tba-logo-speed, 28s) !important;
  gap: calc(64px * var(--tba-logo-scale, 1) * var(--tba-logo-spread, 1)) !important;
}

#clients .logo-item {
  min-width: calc(210px * var(--tba-logo-scale, 1) * var(--tba-logo-spread, 1)) !important;
  height: calc(96px * var(--tba-logo-scale, 1)) !important;
  padding-inline: calc(8px * var(--tba-logo-spread, 1));
}

#clients .logo-item img {
  max-width: calc(190px * var(--tba-logo-scale, 1)) !important;
  max-height: calc(64px * var(--tba-logo-scale, 1)) !important;
}

@media (max-width: 860px) {
  #clients .logo-marquee {
    animation-duration: var(--tba-logo-speed, 28s) !important;
    gap: calc(44px * var(--tba-logo-scale, 1) * var(--tba-logo-spread, 1)) !important;
  }

  #clients .logo-item {
    min-width: calc(170px * var(--tba-logo-scale, 1) * var(--tba-logo-spread, 1)) !important;
    height: calc(76px * var(--tba-logo-scale, 1)) !important;
    padding-inline: calc(6px * var(--tba-logo-spread, 1));
  }

  #clients .logo-item img {
    max-width: calc(150px * var(--tba-logo-scale, 1)) !important;
    max-height: calc(52px * var(--tba-logo-scale, 1)) !important;
  }
}


/* ===== Scroll-safe cleanup ===== */
.hero-section::after,
.section::before,
.section::after,
.site-footer::before {
  display: none !important;
  content: none !important;
  background: none !important;
}

.hero-section,
.section-light,
.section-dark,
.site-footer {
  box-shadow: none !important;
}

/* ===== WPForms integration styling ===== */
.wpforms-theme-wrap {
  margin-top: 1.25rem;
}
.wpforms-theme-wrap .wpforms-container {
  margin: 0 !important;
}
.wpforms-theme-wrap .wpforms-field-label {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: #27272a !important;
}
.wpforms-theme-wrap input,
.wpforms-theme-wrap select,
.wpforms-theme-wrap textarea {
  border: 1px solid var(--light-line) !important;
  background: #fafafa !important;
  color: #111 !important;
  border-radius: 2px !important;
}
.wpforms-theme-wrap input:focus,
.wpforms-theme-wrap select:focus,
.wpforms-theme-wrap textarea:focus {
  border-color: #111 !important;
  box-shadow: none !important;
}
.wpforms-theme-wrap button[type="submit"],
.wpforms-theme-wrap .wpforms-submit {
  border-radius: 2px !important;
  background: #111 !important;
  color: #fff !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
}
.wpforms-theme-wrap button[type="submit"]:hover,
.wpforms-theme-wrap .wpforms-submit:hover {
  background: #222 !important;
}


/* ===== Header rebuild (scroll-safe) ===== */
:root {
  --site-header-height: 78px;
}

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000 !important;
  background: rgba(8,8,8,0.9) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .shell {
  width: min(calc(100% - 48px), var(--shell));
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--site-header-height);
}

.site-header-offset {
  height: var(--site-header-height);
}

.site-title {
  flex: 0 0 auto;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.header-cta {
  min-height: 44px;
  padding: 0 18px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 2px 0;
}

/* ===== Restore intentional section spacing ===== */
#clients,
#story,
#capabilities,
#business-types,
#contact {
  scroll-margin-top: calc(var(--site-header-height) + 20px);
}

#clients > .shell,
#story > .shell,
#capabilities > .shell,
#business-types > .shell,
#contact > .shell {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#clients .section-line-title,
#capabilities .section-line-title,
#contact .section-line-title {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
}

#story .section-headline-wrap,
#business-types .split-heading {
  margin-top: 0.25rem;
  margin-bottom: 2.25rem;
}

#story .story-grid,
#capabilities .capabilities-grid,
#business-types .work-grid,
#contact .contact-grid {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  :root {
    --site-header-height: 66px;
  }

  .site-header .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .site-header-inner {
    min-height: var(--site-header-height);
  }

  .site-title {
    font-size: 1.15rem;
    letter-spacing: -0.035em;
  }

  .site-nav,
  .header-cta {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  #clients > .shell,
  #story > .shell,
  #capabilities > .shell,
  #business-types > .shell,
  #contact > .shell {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  #clients .section-line-title,
  #capabilities .section-line-title,
  #contact .section-line-title {
    margin-bottom: 1.4rem;
  }

  #story .section-headline-wrap,
  #business-types .split-heading {
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 520px) {
  :root {
    --site-header-height: 62px;
  }

  .site-header .shell {
    width: min(calc(100% - 24px), var(--shell));
  }

  .site-title {
    font-size: 1.02rem;
  }

  .mobile-menu-toggle {
    width: 38px;
    height: 38px;
  }

  #clients > .shell,
  #story > .shell,
  #capabilities > .shell,
  #business-types > .shell,
  #contact > .shell {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

/* WordPress admin bar support */
body.admin-bar .site-header {
  top: 32px !important;
}
body.admin-bar .site-header-offset {
  height: calc(var(--site-header-height) + 32px);
}
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px !important;
  }
  body.admin-bar .site-header-offset {
    height: calc(var(--site-header-height) + 46px);
  }
}







/* ===== Customizable grain texture for dark areas, header, and light sections ===== */
.hero-section,
.section-dark,
.site-footer,
.site-header,
.section-light {
  position: relative;
  isolation: isolate;
}

.hero-section::before,
.section-dark::before,
.site-footer::before,
.site-header::before,
.section-light::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(rgba(var(--tba-grain-color-rgb, 255,255,255), 0.8) var(--tba-grain-dot-primary, 0.45px), transparent calc(var(--tba-grain-dot-primary, 0.45px) + 0.10px)),
    radial-gradient(rgba(var(--tba-grain-color-rgb, 255,255,255), 0.35) var(--tba-grain-dot-secondary, 0.35px), transparent calc(var(--tba-grain-dot-secondary, 0.35px) + 0.15px));
  background-position: 0 0, var(--tba-grain-offset, 1.5px) var(--tba-grain-offset, 1.5px);
  background-size: var(--tba-grain-size-primary, 4px) var(--tba-grain-size-primary, 4px), var(--tba-grain-size-secondary, 5px) var(--tba-grain-size-secondary, 5px);
  mix-blend-mode: var(--tba-grain-blend-mode, soft-light);
}

.hero-section::before,
.section-dark::before,
.site-footer::before {
  opacity: var(--tba-grain-intensity, 0.045);
}

.site-header::before {
  opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-header, 1) * 1.15);
}

.section-light::before {
  opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-light-sections, 1) * var(--tba-grain-light-multiplier, 0.35));
}

.hero-shell,
.section-dark > .shell,
.site-footer > .shell,
.section-light > .shell,
.site-header .shell,
.site-header-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .hero-section::before,
  .section-dark::before,
  .site-footer::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * 0.67);
  }

  .site-header::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-header, 1) * 0.8);
  }

  .section-light::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-light-sections, 1) * var(--tba-grain-light-multiplier, 0.35) * 0.8);
  }
}

/* slightly softer on mobile so it never looks noisy */
@media (max-width: 860px) {
  .hero-section::before,
  .section-dark::before,
  .site-footer::before,
  .site-header::before,
  .section-light::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * 0.67);
  }

  .site-header::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-header, 1) * 0.8);
  }

  .section-light::before {
    opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-light-sections, 1) * var(--tba-grain-light-multiplier, 0.35) * 0.8);
  }
}


/* ===== Whole-page grain overlay option ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: calc(var(--tba-grain-intensity, 0.045) * var(--tba-grain-apply-whole-page, 0));
  background-image:
    radial-gradient(rgba(var(--tba-grain-color-rgb, 255,255,255), 0.8) var(--tba-grain-dot-primary, 0.45px), transparent calc(var(--tba-grain-dot-primary, 0.45px) + 0.10px)),
    radial-gradient(rgba(var(--tba-grain-color-rgb, 255,255,255), 0.35) var(--tba-grain-dot-secondary, 0.35px), transparent calc(var(--tba-grain-dot-secondary, 0.35px) + 0.15px));
  background-position: 0 0, var(--tba-grain-offset, 1.5px) var(--tba-grain-offset, 1.5px);
  background-size: var(--tba-grain-size-primary, 4px) var(--tba-grain-size-primary, 4px), var(--tba-grain-size-secondary, 5px) var(--tba-grain-size-secondary, 5px);
  mix-blend-mode: var(--tba-grain-blend-mode, soft-light);
}


/* grain-preview-live-tuning */
body::before,
.hero-section::before,
.section-dark::before,
.site-footer::before,
.site-header::before,
.section-light::before {
  will-change: opacity, background-size, background-position, background-image;
}


/* ===== Header logo image option ===== */
.site-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(42vw, 420px);
}

.site-brand-text {
  display: inline-block;
}

.site-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--tba-header-logo-max-height, 34px);
  max-width: 100%;
  object-fit: contain;
}

.mobile-menu-title {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.mobile-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-height: min(var(--tba-header-logo-max-height, 34px), 28px);
  max-width: 220px;
  object-fit: contain;
}

@media (max-width: 860px) {
  .site-brand {
    max-width: min(54vw, 240px);
  }

  .site-logo-image {
    max-height: min(var(--tba-header-logo-max-height, 34px), 28px);
  }
}

@media (max-width: 520px) {
  .site-brand {
    max-width: min(58vw, 200px);
  }

  .site-logo-image {
    max-height: min(var(--tba-header-logo-max-height, 34px), 24px);
  }

  .mobile-logo-image {
    max-width: 180px;
    max-height: min(var(--tba-header-logo-max-height, 34px), 24px);
  }
}


/* ===== Navigation / mobile overlay fixes ===== */
.mobile-menu-panel {
  z-index: 2500 !important;
  inset: 0 !important;
}

body.mobile-menu-open .site-header {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu-inner {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .mobile-menu-inner {
    margin-top: 12px;
  }
}


/* ===== User-manipulable client carousel ===== */
.logo-marquee-ui {
  position: relative;
}

.logo-marquee-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 14px;
}

.logo-marquee-button {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.88);
  color: #111;
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.logo-marquee-button.playpause {
  padding: 0 16px;
  min-width: 88px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.logo-marquee-button:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(0,0,0,0.22);
}

.logo-marquee-button:focus-visible {
  outline: 2px solid var(--tba-accent);
  outline-offset: 2px;
}

.logo-marquee-wrap {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
}

.logo-marquee-wrap.is-dragging {
  cursor: grabbing;
}

.logo-marquee-wrap:focus-visible {
  outline: 2px solid var(--tba-accent);
  outline-offset: 4px;
}

.logo-marquee.is-paused {
  animation-play-state: paused !important;
}

@media (max-width: 860px) {
  .logo-marquee-controls {
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 12px;
  }

  .logo-marquee-button {
    min-width: 40px;
    height: 40px;
  }

  .logo-marquee-button.playpause {
    min-width: 84px;
    padding: 0 14px;
  }
}






/* ===== Simple draggable client carousel ===== */
.logo-marquee-ui {
  position: relative;
}

.logo-marquee-frame {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
}

.logo-fade-left,
.logo-fade-right {
  position: absolute;
  inset-block: 0;
  width: 112px;
  z-index: 3;
  pointer-events: none;
}

.logo-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(250,250,250,1), rgba(250,250,250,0));
}

.logo-fade-right {
  right: 0;
  background: linear-gradient(270deg, rgba(250,250,250,1), rgba(250,250,250,0));
}

.logo-marquee-wrap[data-carousel-wrap] {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-x;
  scroll-behavior: auto;
}

.logo-marquee-wrap[data-carousel-wrap]::-webkit-scrollbar {
  display: none;
}

.logo-marquee-wrap.is-dragging {
  cursor: grabbing;
}

.logo-marquee-wrap:focus-visible {
  outline: 2px solid var(--tba-accent);
  outline-offset: 4px;
}

.logo-marquee[data-carousel-track] {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 56px;
  animation: none !important;
  padding-right: 8px;
}

@media (max-width: 860px) {
  .logo-marquee-frame {
    margin-top: 24px;
  }

  .logo-fade-left,
  .logo-fade-right {
    width: 72px;
  }
}


/* ===== Mobile carousel tuning ===== */
.logo-marquee-wrap[data-carousel-wrap] {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 860px) {
  .logo-marquee-frame {
    margin-top: 20px;
  }

  .logo-fade-left,
  .logo-fade-right {
    width: 48px;
  }

  .logo-marquee[data-carousel-track] {
    gap: 34px;
    padding-right: 4px;
  }

  .logo-item {
    min-width: 146px;
    height: 66px;
  }

  .logo-item img {
    max-width: 132px;
    max-height: 40px;
  }
}

@media (max-width: 520px) {
  .logo-fade-left,
  .logo-fade-right {
    width: 34px;
  }

  .logo-marquee[data-carousel-track] {
    gap: 26px;
  }

  .logo-item {
    min-width: 126px;
    height: 60px;
  }

  .logo-item img {
    max-width: 116px;
    max-height: 36px;
  }
}


/* ===== Mobile carousel touch hotfix ===== */
@media (max-width: 860px) {
  .logo-marquee-wrap[data-carousel-wrap] {
    touch-action: pan-x !important;
    -webkit-overflow-scrolling: touch;
  }
}


/* ===== Footer social section ===== */
.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-social {
  display: grid;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d4d4d8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-link:hover {
  color: #fff;
}

.footer-social-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.footer-social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.footer-social-label {
  font-size: 0.92rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* ===== Footer social icons only ===== */
.footer-social.footer-social-icons-only {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.footer-social-link.icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  color: #d4d4d8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-link.icon-only:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.04);
}

.footer-social-link.icon-only .footer-social-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.footer-social-link.icon-only .footer-social-label {
  display: none !important;
}

@media (max-width: 680px) {
  .footer-social.footer-social-icons-only {
    gap: 12px;
  }

  .footer-social-link.icon-only {
    width: 36px;
    height: 36px;
  }
}


/* ===== Footer social mobile fix ===== */
.footer-social.footer-social-icons-only {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.footer-social.footer-social-icons-only::-webkit-scrollbar {
  display: none;
}

.footer-social-link.icon-only {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .footer-social.footer-social-icons-only {
    gap: 12px;
    padding-right: 4px;
  }

  .footer-social-link.icon-only {
    width: 36px;
    height: 36px;
  }

  .footer-social-link.icon-only .footer-social-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}


/* ===== Footer social icon robustness ===== */
.footer-social.footer-social-icons-only {
  justify-content: flex-start;
  white-space: nowrap;
}

.footer-social-link.icon-only .footer-social-icon svg {
  stroke: currentColor;
}

@media (max-width: 680px) {
  .footer-grid > div:last-child {
    min-width: 0;
  }

  .footer-social.footer-social-icons-only {
    width: 100%;
  }
}


/* ===== Footer social final mobile stability ===== */
.footer-social.footer-social-icons-only {
  min-width: 0;
}


/* ===== Footer spacing refinement ===== */
.footer-heading {
  margin-bottom: 4px;
}

.footer-heading + .footer-social {
  margin-top: 16px;
}

@media (max-width: 680px) {
  .footer-heading + .footer-social {
    margin-top: 14px;
  }
}
