/* ===== Baxter Wright — experiential marketing & events =====
   White / black / #0099FF. Heavy Futura type, blue marker strokes. */

:root {
  --blue: #0099FF;
  --black: #0a0a0a;
  --white: #ffffff;
  --futura: "Futura", "Futura PT", "Jost", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--futura);
  font-weight: 500;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
}

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

/* ===== Glass (liquid-glass UI) ===== */
.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
}

/* ===== Nav — invisible at top, pops into a liquid-glass bubble on scroll ===== */
.nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-radius: 100px;
  z-index: 100;
  transition: width 0.6s cubic-bezier(0.32, 0.72, 0, 1), top 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 32px rgba(10, 10, 10, 0.08);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
}
.nav.scrolled { top: 12px; width: min(900px, calc(100% - 32px)); }
.nav.scrolled::before { opacity: 1; transform: scale(1); }
.nav-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--black);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-links a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 100px;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: scale(1.05); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--futura);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 24px rgba(0, 153, 255, 0.35);
}
.btn-ghost {
  color: var(--black);
  border: 2px solid var(--black);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Hero ===== */
.hero {
  padding: 150px 24px 0;
  text-align: center;
}
.hero-inner { max-width: 980px; margin: 0 auto; }
.hero-kicker {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: var(--blue);
  margin-bottom: 22px;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-sub {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: #444;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* marker highlight — blue stroke behind/below text */
.marker { position: relative; display: inline-block; white-space: nowrap; }
.marker-stroke {
  position: absolute;
  left: -2%; bottom: -0.12em;
  width: 104%; height: 0.42em;
  z-index: -1;
  overflow: visible;
}
.marker-stroke {
  opacity: 0;
  transform: translateY(-0.35em);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.marker-stroke path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 26;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  transition: stroke-dashoffset 0.65s ease;
}
/* scroll down: marker draws on. scroll up: it retracts and lifts off the page */
.marker.drawn .marker-stroke { opacity: 1; transform: translateY(0); }
.marker.drawn .marker-stroke path { stroke-dashoffset: 0; }

/* tighter strokes on section/contact titles */
.section-title .marker-stroke,
.contact-title .marker-stroke { bottom: 0.04em; height: 0.36em; }

/* ===== Hero film strip ===== */
.film-strip {
  margin-top: 70px;
  overflow: hidden;
  transform: rotate(-1.5deg) scale(1.03);
}
.film-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: slide 45s linear infinite;
}
.film-track img {
  height: 240px;
  width: auto;
  border-radius: 14px;
  object-fit: cover;
}
@keyframes slide { to { transform: translateX(-50%); } }
.film-strip:hover .film-track { animation-play-state: paused; }

/* ===== Sections ===== */
section { padding: 110px 24px; }
.section-title {
  text-align: center;
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 64px;
}
.section-title.light { color: var(--white); }

/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
}
.service-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid #ececec;
  box-shadow: 0 4px 24px rgba(10, 10, 10, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 153, 255, 0.16);
}
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-card h3 {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.15;
  padding: 20px 20px 8px;
}
.service-card p {
  padding: 0 20px 20px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}
.service-note { font-size: 0.84rem !important; color: #888 !important; margin-top: -8px; }

/* ===== Case studies ===== */
.work { background: #fafafa; }
.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 96px;
}
.case:last-child { margin-bottom: 0; }
.case-flip .case-photos { order: 2; }
.case-photos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}
.case-main {
  grid-row: span 2;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.case-side {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 16px;
}
.case-num {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  color: var(--blue);
  margin-bottom: 8px;
}
.case-info h3 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 16px;
}
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.tags li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 13px;
  border: 1.5px solid var(--black);
  border-radius: 100px;
}
.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 130px;
  flex: 1;
}
.stat strong {
  display: block;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--blue);
}
.stat span { font-size: 0.82rem; color: #555; line-height: 1.3; display: block; margin-top: 2px; }

/* ===== Partners (torn blue) ===== */
.partners { padding: 0; background: var(--white); }
.tear { display: block; width: 100%; height: 40px; }
.partners-inner {
  background: var(--blue);
  padding: 60px 0 70px;
}
.logo-marquee { overflow: hidden; }
.logo-track {
  display: flex;
  align-items: center;
  gap: 84px;
  width: max-content;
  padding: 10px 0;
  animation: slide 30s linear infinite;
}
.logo-track img {
  height: 56px;
  width: auto;
  opacity: 0.95;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }

/* ===== Contact ===== */
.contact { text-align: center; padding: 130px 24px; }
.contact-title {
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 6.5rem);
  text-transform: uppercase;
}
.contact-sub {
  margin: 22px auto 36px;
  font-size: 1.15rem;
  color: #444;
  max-width: 520px;
}
.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 32px;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: #777;
}
.footer a { color: #777; }
.footer a:hover { color: var(--blue); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .case, .case-flip { grid-template-columns: 1fr; row-gap: 34px; }
  .case .case-photos { order: 1; }
  .case .case-info { order: 2; }
  .case-photos { height: 300px; }
  .film-track img { height: 160px; }
  section { padding: 80px 18px; }
  body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
