/* ------------------------------------------------------------
   B&W Consultants — styles
   ------------------------------------------------------------ */

:root {
  --bg: #05101a;
  --bg-2: #081723;
  --surface: #0c1f2c;
  --surface-2: #0f2736;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #eaf4f8;
  --text-dim: #9fb3bd;
  --muted: #6a818d;
  --teal: #17a2b8;
  --teal-bright: #2dd4d9;
  --teal-deep: #0f6b7a;
  --accent-warm: #ffd27a;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--teal); color: #041016; }

/* ---- Global background ---- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(23,162,184,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(23,162,184,.12), transparent 60%),
    linear-gradient(180deg, #05101a 0%, #04101a 40%, #030a12 100%);
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 80%);
}
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/></svg>");
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(24px, 5vw);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: linear-gradient(180deg, rgba(5,16,26,.85), rgba(5,16,26,.45));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(5,16,26,.9);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: .02em;
}
.brand-mark {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.01em;
}
.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}
.brand-sub {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(23,162,184,.08);
  transition: all .25s var(--ease);
}
.nav-cta:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #041016 !important;
  transform: translateY(-1px);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  z-index: 39;
  background: rgba(5,16,26,.98);
  border-bottom: 1px solid var(--line);
  padding: 18px max(24px,5vw) 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-menu a:last-child { border: 0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 180px max(24px, 5vw) 80px;
  max-width: var(--max);
  margin: 0 auto;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -20%;
  width: 800px;
  height: 800px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23,162,184,.35), rgba(23,162,184,0) 70%);
  filter: blur(30px);
  animation: float 14s ease-in-out infinite alternate;
}
@keyframes float {
  from { transform: translateY(-8px) translateX(0); }
  to   { transform: translateY(14px) translateX(-30px); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(23,162,184,.06);
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 0 rgba(45,212,217,.65);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,212,217,.55); }
  70%  { box-shadow: 0 0 0 12px rgba(45,212,217,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,217,0); }
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.98;
  margin: 22px 0 22px;
}
.hero-lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 0 38px;
}
.gradient-text {
  background: linear-gradient(100deg, #7ee6ec 0%, var(--teal-bright) 40%, var(--teal) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--teal);
  color: #041016;
  box-shadow: 0 10px 30px -10px rgba(23,162,184,.6);
}
.btn-primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(45,212,217,.7);
}
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn.full { width: 100%; justify-content: center; }

/* Stats */
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats li {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}
.hero-stats li:last-child { border-right: 0; }
.stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stat-num .dash { color: var(--teal); margin: 0 2px; }
.stat-word { color: var(--teal-bright); }
.stat-label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}

/* Marquee */
.marquee {
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 42px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(234,244,248,.55);
  letter-spacing: -0.01em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee-track span + span::before {
  content: "◆";
  color: var(--teal);
  -webkit-text-stroke: 0;
  font-size: .6em;
  margin-right: 64px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Sections ---- */
.section {
  padding: 120px max(24px, 5vw);
  max-width: var(--max);
  margin: 0 auto;
}
.section-head { max-width: 820px; margin-bottom: 56px; }
.kicker {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-bright);
  font-weight: 600;
  margin-bottom: 18px;
}
h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section-lead {
  color: var(--text-dim);
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 640px;
  margin: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-card {
  grid-column: span 2;
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15,39,54,.7), rgba(10,27,38,.5));
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
  min-height: 220px;
}
.service-card::before {
  content: attr(data-num);
  position: absolute;
  right: 20px;
  top: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .12em;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(23,162,184,.18), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.service-card:hover::after { opacity: 1; }
.service-card.wide { grid-column: span 6; }
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--teal-bright);
  background: rgba(23,162,184,.08);
  margin-bottom: 22px;
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.service-card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Approach / Timeline */
.approach-section { position: relative; }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 28px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent);
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,39,54,.5), rgba(10,27,38,.35));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.step:hover { border-color: var(--line-strong); transform: translateX(4px); }
.step-num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #041016;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow: 0 0 0 6px rgba(23,162,184,.1);
}
.step-body h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 4px 0 6px;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.step-body p { color: var(--text-dim); margin: 0; }

/* Differentiators */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.diff-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal-deep);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.diff-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--teal-bright);
  margin-bottom: 20px;
}
.diff-icon svg { width: 28px; height: 28px; }
.diff-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}
.diff-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* Experience */
.experience-section { position: relative; }
.exp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.exp-card {
  grid-column: span 2;
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.exp-card:hover { background: rgba(23,162,184,.06); }
.exp-card:nth-child(3n) { border-right: 0; }
.exp-card:nth-child(4) { grid-column: 2 / span 2; }
.exp-card:nth-child(5) { grid-column: 4 / span 2; border-right: 0; }
.exp-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--teal-bright);
  margin-bottom: 18px;
  display: inline-block;
}
.exp-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.exp-card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* Contact */
.contact-section {
  border-top: 1px solid var(--line);
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy h2 { margin-top: 16px; }
.contact-copy p { color: var(--text-dim); max-width: 520px; }
.info-block {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.info-label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  color: var(--text);
}
.info-value.link { color: var(--teal-bright); }

.contact-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,39,54,.7), rgba(10,27,38,.5));
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(5,16,26,.6);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-bright);
  background: rgba(5,16,26,.9);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239fb3bd' stroke-width='2'><path d='M4 6l4 4 4-4'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-note {
  font-size: 14px;
  color: var(--teal-bright);
  margin: 0;
  min-height: 1em;
}

/* Footer */
.footer {
  padding: 48px max(24px, 5vw) 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.3));
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}
.footer-brand span:last-child { color: var(--text-dim); font-size: 15px; }
.footer-tag { color: var(--text-dim); margin: 0; max-width: 640px; }
.footer-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
  letter-spacing: .04em;
}
.footer-meta a { color: var(--text-dim); transition: color .2s var(--ease); }
.footer-meta a:hover { color: var(--teal-bright); }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: transform, opacity;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-glow, .marquee-track, .pulse { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 140px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li:nth-child(2) { border-right: 0; }
  .hero-stats li:nth-child(1), .hero-stats li:nth-child(2) { border-bottom: 1px solid var(--line); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card.wide { grid-column: span 2; }

  .diff-grid { grid-template-columns: repeat(2, 1fr); }

  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-card, .exp-card:nth-child(3n), .exp-card:nth-child(4), .exp-card:nth-child(5) {
    grid-column: auto;
    border-right: 1px solid var(--line);
  }
  .exp-card:nth-child(2n) { border-right: 0; }

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

  .timeline::before { left: 22px; }
  .step { grid-template-columns: 60px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 18px; }
}

@media (max-width: 560px) {
  .section { padding: 90px 22px; }
  .hero { padding: 130px 22px 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card.wide { grid-column: auto; }
  .diff-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .exp-card, .exp-card:nth-child(2n) { border-right: 0; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .brand-sub { display: none; }
  .brand-divider { display: none; }
  .contact-form { padding: 22px; }
}
