/* ─── Custom Properties ────────────────────────────────────── */
:root {
  --bg:        #f5f5f5;
  --accent:    #c2ffb4;
  --mid-green: #268d7c;
  --dark-green:#113320;
  --near-black:#1c2120;
  --white:     #ffffff;

  --font-head: 'Times New Roman', Times, serif;
  --font-body: 'Nunito Sans', sans-serif;

  --nav-h: 108px;
  --logo-h: clamp(76px, 14vw, 148px);
  --radius: 4px;
  --transition: 0.25s ease;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
  /* Per-item dynamic islands (post-hero) */
  --di-radius: clamp(22px, 3.5vw, 40px);
  --di-wide: min(1280px, calc(100% - clamp(1rem, 4vw, 2.25rem)));
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--near-black);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utility ──────────────────────────────────────────────── */
.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.container--wide {
  max-width: var(--di-wide);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-green);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--near-black);
  margin-bottom: 2.5rem;
}

.section-intro {
  margin-bottom: 2.5rem;
}

.section-intro .section-headline {
  margin-bottom: 0;
}

.work .section-intro .section-headline {
  color: var(--white);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--dark-green);
}
.btn--primary:hover { background: #adf59d; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

.btn--nav {
  background: var(--near-black);
  color: var(--accent);
  padding: 0.6rem 1.4rem;
}
.btn--nav:hover { background: var(--dark-green); }

/* ─── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}

@media (prefers-reduced-motion: no-preference) {
  .nav {
    animation: nav-enter 0.75s var(--ease-out-expo) both;
  }

  @keyframes nav-enter {
    from {
      transform: translate3d(0, -110%, 0);
      opacity: 0;
    }
    to {
      transform: translate3d(0, 0, 0);
      opacity: 1;
    }
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 88px;
    --logo-h: clamp(52px, 20vw, 96px);
  }
}

.nav.scrolled {
  background: var(--bg);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  position: relative;
}

.nav__logo-img--scrolled {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.nav__logo-img--hero {
  transition: opacity var(--transition);
}

.nav.scrolled .nav__logo-img--hero { opacity: 0; }
.nav.scrolled .nav__logo-img--scrolled { opacity: 1; }

.nav__logo-img {
  height: var(--logo-h);
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.55));
  transition: filter var(--transition), transform 0.5s var(--ease-out-expo);
  transform-origin: left center;
}

.nav.scrolled .nav__logo-img {
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.2));
  transform: scale(0.94);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav__links a:not(.btn) {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav.scrolled .nav__links a:not(.btn) { color: var(--near-black); }
.nav__links a:not(.btn):hover { color: var(--accent); }
.nav.scrolled .nav__links a:not(.btn):hover { color: var(--mid-green); }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.nav.scrolled .nav__burger span { background: var(--near-black); }

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(125deg, var(--dark-green) 0%, var(--near-black) 52%, #0a0f0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* Static stage beam from above + ambient vignette */
  background:
    radial-gradient(ellipse 500px 800px at 50% 0%, rgba(194, 255, 180, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(17, 51, 32, 0.22) 0%, rgba(5, 8, 7, 0.62) 100%);
}

/* Screen-blend spotlight beam — background driven by JS */
.hero__beam-spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

/* Atmosphere particles container */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  left: var(--x);
  bottom: -8px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(194, 255, 180, var(--alpha, 0.08));
  animation: particle-float var(--dur) var(--delay) infinite linear;
  will-change: transform, opacity;
}

@keyframes particle-float {
  0%   { transform: translateY(0) translateX(0);             opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: var(--alpha, 0.08); }
  100% { transform: translateY(-108vh) translateX(var(--drift, 0px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .particle { display: none; }
}

/* ─── Hero centered layout ─────────────────────────────────── */
.hero__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.hero__headline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  max-width: 800px;
}

/* Scroll-linked parallax (transform applied via JS after you scroll) */
.hero-parallax {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax {
    will-change: auto;
  }
}

/* Obvious load-in choreography (opacity + lift; parallax takes over after scroll) */
@media (prefers-reduced-motion: no-preference) {
  .hero__headline {
    opacity: 0;
    animation: hero-rise 1.1s var(--ease-out-expo) 0.12s both;
  }

  .bears.hero-parallax {
    opacity: 0;
    animation: hero-rise-wide 1.2s var(--ease-out-expo) 0.28s both;
  }

  .hero__tagline.hero-parallax {
    opacity: 0;
    animation: hero-rise 1s var(--ease-out-expo) 0.5s both;
  }

  .hero__copy.hero-parallax {
    opacity: 0;
    animation: hero-rise 1s var(--ease-out-expo) 0.62s both;
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translate3d(0, 48px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }

  @keyframes hero-rise-wide {
    from {
      opacity: 0;
      transform: translate3d(0, 56px, 0) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__headline,
  .bears.hero-parallax,
  .hero__tagline.hero-parallax,
  .hero__copy.hero-parallax {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

.hero__headline em {
  color: var(--accent);
  font-style: italic;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero__sub {
  max-width: 520px;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  font-weight: 700;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ─── Three-bear hero composition ──────────────────────────── */
.bears {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Full-bleed: break out of container's padding so bears have room */
  width: calc(100% + 2 * clamp(1.25rem, 5vw, 3rem));
  margin-inline: calc(-1 * clamp(1.25rem, 5vw, 3rem));
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  gap: clamp(0.5rem, 1.25vw, 1.25rem);
  position: relative;
}

/* All three bears — same size (side bears no longer scaled down) */
.bear--side,
.bear--center {
  width: clamp(220px, 30vw, 420px);
  height: clamp(220px, 30vw, 420px);
  flex-shrink: 0;
}

.bear--side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.40) saturate(0.60);
  user-select: none;
  pointer-events: none;
  display: block;
  -webkit-user-drag: none;
}

/* Mirror right bear inward */
.bear--right img { transform: scaleX(-1); }

/* Center bear — spotlight anchor */
.bear--center {
  position: relative;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* All three image layers share base styles */
.mascot__dim,
.mascot__bright,
.mascot__hot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  display: block;
}

/* Layer 1 — always visible; dims when cursor is far */
.mascot__dim {
  z-index: 2;
  filter: brightness(0.62) saturate(0.75);
  transition: filter 0.4s ease-out;
}

/* Layer 2 — broad soft spotlight, fades in on proximity */
.mascot__bright {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  -webkit-mask-image: radial-gradient(
    circle 350px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 350px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 30%,
    transparent 100%
  );
}

/* Layer 3 — tight hot-spot; noticeably brighter, small radius */
.mascot__hot {
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease-out;
  filter: brightness(1.4) saturate(1.2);
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 45%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 180px at var(--mouse-x) var(--mouse-y),
    black 0%,
    black 45%,
    transparent 100%
  );
}

/* Hero tagline — signature line under the trio */
.hero__tagline {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.02em;
  margin-top: -0.25rem;
}

/* ─── Touch / reduced-motion: full brightness, no interaction ── */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .mascot__dim    { filter: none; transition: none; }
  .mascot__bright,
  .mascot__hot    { display: none; }
}

/* ─── Main stack (post-hero) ───────────────────────────────── */
main {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding-bottom: clamp(1rem, 2.5vw, 2rem);
}

/* ─── Vertical dynamic islands (per card / block, opens on hover) ─ */
.di {
  position: relative;
  z-index: 0;
  border-radius: var(--di-radius);
  overflow: hidden;
  transform: scale(0.97) translateY(12px);
  transform-origin: 50% 0;
  opacity: 0.88;
  transition:
    transform 0.65s var(--ease-out-expo),
    box-shadow 0.55s ease,
    opacity 0.45s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.di.di-in {
  transform: scale(0.985) translateY(6px);
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .di.di-in:hover,
  .di.di-in:focus-within {
    transform: scale(1) translateY(-10px);
    z-index: 3;
  }

  /* Service cards: DI lift + outer shadow fight grid-column + inner expand (hover flicker) */
  .service-card--expand.di.di-in:is(.service-card--open, :focus-within) {
    transform: scale(0.985) translateY(6px);
  }

  .service-card--expand.di--light.di-in:is(.service-card--open, :focus-within) {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.04),
      0 10px 28px rgba(0, 0, 0, 0.06);
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .di {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    will-change: auto;
  }
}

/* Light (services / about) */
.di--light {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 10px 28px rgba(0, 0, 0, 0.06);
}

.di--light.di-in:hover,
.di--light.di-in:focus-within {
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.07),
    0 22px 48px rgba(0, 0, 0, 0.12),
    0 40px 80px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(38, 141, 124, 0.12);
}

/* Dark (work grid + footer bar) */
.di--dark {
  background: linear-gradient(165deg, #252a29 0%, #1c2120 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.4);
}

.section-intro.di--dark .section-headline {
  color: var(--white);
}

.di--dark.di-in:hover,
.di--dark.di-in:focus-within {
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(194, 255, 180, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Stats capsules on accent strip */
.di--accent {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(17, 51, 32, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 2px 6px rgba(17, 51, 32, 0.08),
    0 12px 28px rgba(17, 51, 32, 0.1);
  padding: 1.5rem 1.25rem;
}

.di--accent.di-in:hover,
.di--accent.di-in:focus-within {
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    0 8px 20px rgba(17, 51, 32, 0.15),
    0 24px 48px rgba(17, 51, 32, 0.12);
}

/* Contact blocks */
.di--contact {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(194, 255, 180, 0.12);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 14px 36px rgba(0, 0, 0, 0.22);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.di--contact.di-in:hover,
.di--contact.di-in:focus-within {
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(194, 255, 180, 0.18),
    inset 0 1px 0 rgba(194, 255, 180, 0.12);
}

.footer .footer__inner.di {
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* ─── SERVICES ─────────────────────────────────────────────── */
.services {
  padding: clamp(5rem, 10vw, 9rem) 0;
  transition: background 1s ease;
  background: var(--white);
}

.services.section--in-view {
  background: linear-gradient(180deg, rgba(38, 141, 124, 0.06) 0%, transparent 42%);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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

.service-card {
  padding: 0;
}

/* Hover / focus-within — collapsed strip → full-width hero; same easing open + close */
.service-card--expand {
  --svc-t: 0.42s;
  --svc-ease: cubic-bezier(0.33, 1, 0.28, 1);
  position: relative;
  z-index: 0;
  outline: none;
}

@media (hover: hover) and (pointer: fine) {
  .service-card--expand {
    cursor: pointer;
  }
}

.service-card--expand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-card--expand .service-card__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  border-left: 0 solid transparent;
  transition:
    box-shadow calc(var(--svc-t) * 0.7) var(--svc-ease),
    background var(--svc-t) var(--svc-ease),
    padding var(--svc-t) var(--svc-ease),
    border-left-width var(--svc-t) var(--svc-ease),
    border-left-color var(--svc-t) var(--svc-ease);
}

.service-card__chev {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--mid-green);
  border-bottom: 2px solid var(--mid-green);
  transform: rotate(45deg);
  transition: transform var(--svc-t) var(--svc-ease), opacity var(--svc-t) ease;
  opacity: 0.85;
}

@media (hover: hover) {
  /* Row mates overlap when one spans full width — don’t let the other steal hit-testing */
  .services__grid:has(> .service-card:nth-child(1):is(.service-card--open, :focus-within)) > .service-card:nth-child(2),
  .services__grid:has(> .service-card:nth-child(2):is(.service-card--open, :focus-within)) > .service-card:nth-child(1),
  .services__grid:has(> .service-card:nth-child(3):is(.service-card--open, :focus-within)) > .service-card:nth-child(4),
  .services__grid:has(> .service-card:nth-child(4):is(.service-card--open, :focus-within)) > .service-card:nth-child(3) {
    pointer-events: none;
  }

  /* Resting — tight row, body fully closed */
  .service-card--expand .service-card__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-right: none;
    border-bottom: none;
    transition: padding var(--svc-t) var(--svc-ease), border-color var(--svc-t) ease;
  }

  .service-card--expand .service-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 1.5rem;
  }

  .service-card--expand .service-card__head h3 {
    flex: 1;
    min-width: 0;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  }

  /* Grid 0fr → 1fr: smooth height without max-height layout thrash */
  .service-card--expand .service-card__body {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    pointer-events: none;
    padding: 0;
    margin: 0;
    transition:
      grid-template-rows var(--svc-t) var(--svc-ease),
      opacity calc(var(--svc-t) * 0.75) ease,
      padding var(--svc-t) var(--svc-ease);
  }

  .service-card--expand .service-card__body-sizer {
    min-height: 0;
    overflow: hidden;
  }

  /* Open state: .service-card--open from JS (stable pointer) + :focus-within for keyboard */
  .service-card--expand:is(.service-card--open, :focus-within) {
    grid-column: 1 / -1;
    z-index: 8;
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__chev {
    transform: rotate(-135deg);
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__inner {
    border-left-width: 4px;
    border-left-color: var(--accent);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: linear-gradient(180deg, rgba(194, 255, 180, 0.12) 0%, rgba(255, 255, 255, 0.98) 38%);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.1),
      0 28px 56px rgba(38, 141, 124, 0.12);
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__head {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__icon {
    font-size: 2rem;
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__head h3 {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__body {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    padding: 1.25rem 0 0;
  }

  .service-card--expand:is(.service-card--open, :focus-within) .service-card__body-sizer {
    overflow: visible;
  }
}

.service-card__icon {
  font-size: 1.5rem;
  color: var(--mid-green);
}

.service-card__head h3 {
  font-family: var(--font-head);
  font-style: italic;
  line-height: 1.15;
  margin: 0;
  color: var(--near-black);
}

.service-card__body p {
  font-size: 1.0625rem;
  color: #444;
  line-height: 1.8;
  margin: 0;
  max-width: 65ch;
}

/* Touch / coarse pointers: always show copy, no hover */
@media (hover: none) {
  .service-card--expand .service-card__head {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem 0.5rem;
  }

  .service-card--expand .service-card__chev {
    display: none;
  }

  .service-card--expand .service-card__body {
    display: block;
    padding: 0 1.1rem 1.25rem;
    opacity: 1;
  }

  .service-card--expand .service-card__body-sizer {
    overflow: visible;
  }

  .service-card--expand .service-card__inner {
    border-left: 3px solid rgba(38, 141, 124, 0.25);
    padding: 0.25rem 0 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card--expand,
  .service-card--expand .service-card__inner,
  .service-card__body,
  .service-card--expand .service-card__icon,
  .service-card--expand .service-card__head h3,
  .service-card__chev {
    transition-duration: 0.01ms !important;
  }
}

.section-intro.di {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
}

.about__text.di {
  padding: clamp(2rem, 4vw, 2.75rem);
}

/* ─── MEDIA STRIP (marquee placeholders — replace with <img> in .media-strip__slot) ─ */
.media-strip {
  padding: 0 0 clamp(4rem, 10vw, 7rem);
  background: var(--bg);
  overflow: hidden;
}

.media-strip .section-intro {
  margin-bottom: 2rem;
}

.media-strip__row {
  overflow: hidden;
  width: 100%;
  margin: 0.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.media-strip__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: media-marquee-l 52s linear infinite;
  will-change: transform;
}

.media-strip__row--r .media-strip__track {
  animation-name: media-marquee-l;
  animation-direction: reverse;
  animation-duration: 60s;
}

.media-strip__row--slow .media-strip__track {
  animation-duration: 92s;
}

.media-strip__slots {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding-inline-end: 1rem;
  flex-shrink: 0;
  align-items: center;
}

.media-strip__slot {
  width: clamp(150px, 20vw, 240px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
  background: linear-gradient(140deg, #ececec 0%, #d8d8d8 50%, #e8e8e8 100%);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.media-strip__slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-strip__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.2);
}

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

@media (prefers-reduced-motion: reduce) {
  .media-strip__track {
    animation: none !important;
    transform: none !important;
  }
}

/* ─── BRANDS STRIP ─────────────────────────────────────────── */
.brands-strip {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
  background: var(--white);
  overflow: hidden;
}

.brands-strip .section-intro {
  margin-bottom: 2rem;
}

.brands-strip__row {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.brands-strip__track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: media-marquee-l 50s linear infinite;
  will-change: transform;
}

.brands-strip__slots {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  padding-inline-end: 2.5rem;
  flex-shrink: 0;
}

.brands-strip__slot {
  height: 56px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brands-strip__slot img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: grayscale(1) opacity(0.55);
  transition: filter 0.4s ease;
}

.brands-strip__slot:hover img {
  filter: grayscale(0) opacity(1);
}

@media (prefers-reduced-motion: reduce) {
  .brands-strip__track {
    animation: none !important;
  }
}

/* ─── FEATURED WORK ────────────────────────────────────────── */
.work {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--near-black);
}

.work .section-label { color: var(--accent); }

.work-item.di {
  display: block;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.work-item__thumb {
  position: relative;
  border-radius: calc(var(--di-radius) - 6px);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-item__thumb::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: 1.15rem;
  color: var(--white);
  line-height: 60px;
  text-align: center;
  padding-left: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 4;
}

.work-item__thumb:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}

.work-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2e2d 0%, #1c2120 100%);
  border: 1px solid rgba(255,255,255,0.06);
}

.work-item__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-item__hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,51,32,0.92) 0%, rgba(17,51,32,0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.work-item__thumb:hover .work-item__hover {
  opacity: 1;
  transform: translateY(0);
}

.work-item__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.work-item__hover h4 {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--white);
}

/* ─── STATS ────────────────────────────────────────────────── */
.stats {
  position: relative;
  background: var(--accent);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.stats::after {
  content: '';
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(
    118deg,
    transparent 38%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 62%
  );
  transform: translateX(-35%) rotate(12deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.stats.section--in-view::after {
  opacity: 1;
  animation: stats-shimmer 5.5s ease-in-out infinite;
}

@keyframes stats-shimmer {
  0%,
  100% {
    transform: translateX(-40%) rotate(12deg);
  }
  50% {
    transform: translateX(40%) rotate(12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 3rem 2rem;
  text-align: center;
}

.stat__number {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--dark-green);
  line-height: 1;
}

.stat__unit {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--dark-green);
}

.stat__label {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-green);
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about__body {
  font-size: 1.0625rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.about__image-placeholder {
  aspect-ratio: 4/3;
  background: #e0e0e0;
  border-radius: calc(var(--di-radius) - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__image-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--di-radius) - 8px);
  display: block;
}

/* ─── CONTACT ──────────────────────────────────────────────── */
.contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--dark-green);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact .section-label { color: var(--accent); }
.contact .section-headline { color: var(--white); }

.contact__email {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--accent);
  margin-bottom: 2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity var(--transition);
}
.contact__email:hover { opacity: 0.75; }

.contact__phone {
  display: inline-block;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.contact__phone:hover { color: var(--accent); }

.contact__socials {
  display: flex;
  gap: 1.5rem;
}

.contact__socials a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.contact__socials a:hover { color: var(--accent); }

.ig-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__form label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: -0.5rem;
}

.contact__form input,
.contact__form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
  resize: vertical;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(255,255,255,0.3); }

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.1);
}

.contact__form .btn--primary { align-self: flex-start; }

.form__status {
  font-size: 0.875rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--near-black);
  padding: 2rem 0;
  border-top: none;
  margin-top: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer__logo {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--white);
  font-size: 1.1rem;
}

.footer__teddy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  font-style: italic;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer__links {
  display: flex;
  gap: 1.75rem;
}

.footer__links a {
  font-size: 0.8125rem;
  font-weight: 800;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--accent); }

/* ─── Custom cursor (pointer devices only) ────────────────── */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }

  #cursor-dot,
  #cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
    will-change: left, top;
  }

  #cursor-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
  }

  #cursor-ring {
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
    background: transparent;
    opacity: 0.5;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  }

  body.cursor-hover #cursor-ring {
    width: 38px;
    height: 38px;
    opacity: 0.35;
  }
}

/* ─── Video modal / lightbox ───────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal[hidden] { display: none; }

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1000px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.06);
}

.video-modal__content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

.video-modal__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-modal__close:hover { background: rgba(255, 255, 255, 0.15); }

/* ─── Focus states ─────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact__form input:focus-visible,
.contact__form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* ─── Scroll-in Animations (bigger move + blur so you actually see it) ─ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 72px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 1.1s var(--ease-out-expo),
    transform 1.1s var(--ease-out-expo),
    filter 1s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.reveal--scale {
  transform: translate3d(0, 56px, 0) scale(0.93);
}

.reveal--scale.visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal--from-left {
  transform: translate3d(-56px, 40px, 0) scale(0.99);
}

.reveal--from-left.visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal--from-right {
  transform: translate3d(56px, 40px, 0) scale(0.99);
}

.reveal--from-right.visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.section-intro.reveal {
  filter: none;
  transform: translate3d(0, 56px, 0);
}

.section-intro.reveal.visible {
  transform: translate3d(0, 0, 0);
}

.footer__inner.reveal {
  filter: blur(6px);
}

.footer__inner.reveal.visible {
  filter: blur(0);
}

/* Cards: accent edge when revealed */
.service-card.visible {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.work-item.visible .work-item__thumb {
  box-shadow: 0 0 0 1px rgba(194, 255, 180, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--scale,
  .reveal--from-left,
  .reveal--from-right,
  .section-intro.reveal,
  .footer__inner.reveal {
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .bear--side { display: none; }

  /* Reset full-bleed on mobile — bears don't need to overflow */
  .bears {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .bear--center {
    width: 64vw;
    height: 64vw;
  }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--near-black);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav__links.open { transform: translateX(0); }

  .nav__links a:not(.btn) { color: var(--white); font-size: 1.25rem; }

  .nav__burger { display: flex; }

  .about__inner,
  .contact__inner {
    grid-template-columns: 1fr;
  }

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

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .work__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
