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

html { scroll-behavior: smooth; }

body {
  background-color: #F1EBDE;
  color: #182F16;
}

/* ─────────────────────────────────────────────
   Navigation states
───────────────────────────────────────────── */
#site-header {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Over hero: transparent, text white */
#site-header.nav-transparent {
  background-color: transparent;
}
#site-header.nav-transparent .nav-link,
#site-header.nav-transparent .ham-bar {
  color: rgba(255,255,255,0.9);
}
#site-header.nav-transparent .nav-cta {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
#site-header.nav-transparent .nav-cta:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
}

/* Scrolled: white background */
#site-header.nav-solid {
  background-color: #ffffff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
}
#site-header.nav-solid .nav-link {
  color: #4b5563;
}
#site-header.nav-solid .nav-link:hover {
  color: #182F16;
}
#site-header.nav-solid .ham-bar {
  background-color: #182F16;
}
#site-header.nav-solid .nav-cta {
  color: #182F16;
  border-color: #182F16;
}
#site-header.nav-solid .nav-cta:hover {
  background-color: #182F16;
  color: #ffffff;
}

/* Hamburger open state */
#site-header.menu-open .ham-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#site-header.menu-open .ham-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
#site-header.menu-open .ham-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.15) 65%,
    transparent 100%
  );
}

/* Crop the Veo watermark out of the bottom-right corner of the hero video.
   Anchored top-left so the watermark overflows and is clipped by #hero's overflow-hidden. */
.hero-video {
  transform: scale(1.18);
  transform-origin: top left;
}

.hero-line {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(28px);
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.hero-sub {
  font-size: clamp(1.6rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll cue bounce */
.scroll-cue {
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────────────
   Scroll-reveal
───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger sibling reveals in a grid */
.reveal:nth-child(2) { transition-delay: 0.12s; }

/* ─────────────────────────────────────────────
   Service sections
───────────────────────────────────────────── */
.service-img-wrap {
  position: relative;
}
.service-img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-img-wrap:hover .service-img {
  transform: scale(1.04);
}

.service-number {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C39523;
  opacity: 1;
  margin-bottom: 1.1rem;
}

.section-heading {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #182F16;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

.section-body {
  font-size: 1.0625rem;
  color: #4b5563;
  line-height: 1.75;
}

.section-body-light {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   Contact
───────────────────────────────────────────── */
.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.35rem;
}

.contact-value {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

.contact-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  text-decoration: none;
}
.contact-link:hover { color: #ffffff; }

/* Form elements */
.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.form-input {
  display: block;
  width: 100%;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  font-family: inherit;
}

.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-input:focus {
  border-color: #C39523;
  background-color: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(195,149,35,0.15);
}

.form-submit {
  display: block;
  width: 100%;
  background-color: #C39523;
  color: #182F16;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
  font-family: inherit;
}
.form-submit:hover {
  background-color: #A87E1E;
  transform: translateY(-1px);
}
.form-submit:active { transform: translateY(0); }

.form-submit.submitting {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ─────────────────────────────────────────────
   Nav: Services dropdown
───────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-chevron {
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 320px;
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
  margin-top: 6px;
}

/* Invisible bridge so the menu doesn't close when moving cursor between trigger and panel */
.nav-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #182F16;
  transition: background-color 0.18s ease;
}
.nav-dropdown-item:hover {
  background-color: #F1EBDE;
}
.nav-dropdown-num {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #182F16;
  opacity: 0.4;
  padding-top: 3px;
  width: 22px;
}
.nav-dropdown-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #182F16;
  line-height: 1.3;
}
.nav-dropdown-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Solid-nav dropdown variant — keep opaque white panel even when nav is transparent */
#site-header.nav-transparent .nav-dropdown-menu {
  background-color: #ffffff;
}

/* Mobile menu section label */
.mobile-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 12px 0 6px;
}

/* ─────────────────────────────────────────────
   Eyebrow labels (section kicker text)
───────────────────────────────────────────── */
.eyebrow-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #182F16;
  opacity: 0.55;
  position: relative;
  padding-left: 28px;
}
.eyebrow-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background-color: #C39523;
  opacity: 1;
}

.eyebrow-label-light {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  position: relative;
  padding-left: 28px;
}
.eyebrow-label-light::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1px;
  background-color: #C39523;
  opacity: 1;
}

/* ─────────────────────────────────────────────
   Hero supporting copy fade-in
───────────────────────────────────────────── */
.hero-eyebrow {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

/* ─────────────────────────────────────────────
   Intro metric blocks
───────────────────────────────────────────── */
.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}
.metric-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #182F16;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.metric-label {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  max-width: 14rem;
}

/* ─────────────────────────────────────────────
   About — capability pills
───────────────────────────────────────────── */
.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #F1EBDE;
  border: 1px solid rgba(195,149,35,0.18);
  border-radius: 9999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #182F16;
}
.about-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(195,149,35,0.12);
  color: #A87E1E;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   Partners grid
───────────────────────────────────────────── */
.partner-tile {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  min-height: 110px;
  text-align: center;
  transition: background-color 0.3s ease;
  position: relative;
}

/* Logo image */
.partner-logo {
  max-height: 32px;
  max-width: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Mono SVGs (single-color simpleicons) — recolor to navy */
.partner-logo-mono {
  filter: brightness(0) saturate(100%) invert(13%) sepia(15%) saturate(2370%) hue-rotate(196deg) brightness(95%) contrast(92%) opacity(0.75);
}

.partner-tile:hover .partner-logo {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.04);
}
.partner-tile:hover .partner-logo-mono {
  filter: brightness(0) saturate(100%) invert(13%) sepia(15%) saturate(2370%) hue-rotate(196deg) brightness(95%) contrast(92%) opacity(1);
  transform: scale(1.04);
}

/* ─────────────────────────────────────────────
   Section heading helper centring
───────────────────────────────────────────── */
.section-heading + .section-body-light {
  margin-top: 0.75rem;
}

/* ─────────────────────────────────────────────
   Logo ticker
───────────────────────────────────────────── */
.ticker-section {
  position: relative;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 35s linear infinite;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 0 1.75rem;
}

.ticker-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}

.ticker-logo:hover {
  filter: grayscale(0%) opacity(1);
}

.ticker-logo-mono {
  filter: brightness(0) saturate(100%) invert(13%) sepia(15%) saturate(2370%) hue-rotate(196deg) brightness(95%) contrast(92%) opacity(0.55);
}

.ticker-logo-mono:hover {
  filter: brightness(0) saturate(100%) invert(13%) sepia(15%) saturate(2370%) hue-rotate(196deg) brightness(95%) contrast(92%) opacity(1);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-section::before,
.ticker-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.ticker-section::before {
  left: 0;
  background: linear-gradient(to right, #ffffff, transparent);
}

.ticker-section::after {
  right: 0;
  background: linear-gradient(to left, #ffffff, transparent);
}

/* ─────────────────────────────────────────────
   Responsive tweaks
───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-line { line-height: 0.95; }
  .hero-sub  { margin-top: 0.5rem; }
  .partner-tile { min-height: 88px; padding: 1rem 0.75rem; }
  .partner-tile-text { font-size: 0.82rem; }
  .partner-logo { max-height: 26px; }
  .metric-number { font-size: 1.75rem; }
}

/* ─────────────────────────────────────────────
   Teal rule utility
───────────────────────────────────────────── */
.teal-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: #C39523;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────
   About — Why Black Dot cards (replaces pills)
───────────────────────────────────────────── */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  background: #F1EBDE;
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 3px solid #C39523;
  border-radius: 0.75rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.why-card:hover {
  box-shadow: 0 6px 24px rgba(24,47,22,0.08);
  transform: translateY(-2px);
}
.why-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(195,149,35,0.1);
  color: #A87E1E;
  flex-shrink: 0;
}
.why-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #182F16;
  margin-bottom: 0.2rem;
}
.why-card-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   Why Black Dot — pillar blocks
───────────────────────────────────────────── */
.pillar-block {
  padding: 2rem;
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pillar-block:hover {
  box-shadow: 0 12px 40px rgba(24,47,22,0.08);
  transform: translateY(-3px);
}
.pillar-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: #C39523;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1rem;
}
.pillar-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #182F16;
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.pillar-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   Contact section refinements
───────────────────────────────────────────── */
.contact-info-card {
  padding: 2.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid #C39523;
  border-radius: 1.25rem;
}
.contact-form-card {
  background: rgba(36,59,32,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 3px solid #C39523;
  border-radius: 1.25rem;
  padding: 2.5rem;
}
.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}
.contact-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(195,149,35,0.12);
  color: #C39523;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   Footer — structured multi-row
───────────────────────────────────────────── */
.footer-col-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.875rem;
}
.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: #C39523; }

/* ─────────────────────────────────────────────
   Cursor trail — black dots that fade under mouse
───────────────────────────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #182F16;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  animation: cursor-dot-fade 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity;
}

@keyframes cursor-dot-fade {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.2); }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* --- Cookie consent banner (injected by js/analytics.js) ------------------ */
.bd-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(15, 15, 15, 0.96);
  color: #e5e5e5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}
.bd-consent__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cfcfcf;
}
.bd-consent__text a { color: #fff; text-decoration: underline; }
.bd-consent__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.bd-consent__btn {
  border-radius: 0.65rem;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bd-consent__btn--ghost {
  background: transparent;
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.bd-consent__btn--ghost:hover { background: rgba(255, 255, 255, 0.08); }
.bd-consent__btn--solid {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
}
.bd-consent__btn--solid:hover { background: #d4d4d4; }

@media (min-width: 640px) {
  .bd-consent { flex-direction: row; align-items: center; justify-content: space-between; }
}
