:root {
  --bg: #06080c;
  --ink: #e8eef2;
  --ink-dim: rgba(232, 238, 242, 0.72);
  --teal: #2ec4c6;
  --teal-deep: #1a8a8c;
  --copper: #d9783a;
  --sheen: #f0c070;
  --font-display: "Syne", "Segoe UI", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --z-bg: 0;
  --z-veil: 1;
  --z-content: 10;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.site {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sheen);
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--teal);
  color: #061012;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-nav {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem var(--pad);
}

.nav-brand img {
  display: block;
  height: 1.75rem;
  width: auto;
  opacity: 0.95;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.feature-media a,
.mosaic a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.feature-media a:focus-visible,
.mosaic a:focus-visible,
.hero-brand a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.feature-copy a {
  color: inherit;
  text-decoration: none;
}

.feature-copy a:hover {
  color: var(--teal);
}

.bg-shader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-bg);
  display: block;
  pointer-events: none;
}

.bg-veil {
  position: fixed;
  inset: 0;
  z-index: var(--z-veil);
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(46, 196, 198, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(217, 120, 58, 0.1), transparent 50%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.15) 0%, rgba(6, 8, 12, 0.55) 55%, rgba(6, 8, 12, 0.92) 100%);
}

.wrap {
  position: relative;
  z-index: var(--z-content);
}

/* ---- Hero: brand-first, full-bleed ---- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
}

.hero-brand {
  margin: 0;
  animation: rise 0.9s var(--ease) both;
}

.hero-wordmark {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(46, 196, 198, 0.25));
}

.hero-line {
  margin: 1.35rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 450;
  color: var(--ink-dim);
  animation: rise 0.9s var(--ease) 0.12s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise 0.9s var(--ease) 0.22s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal);
  color: #061012;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--sheen);
  color: #1a1208;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(232, 238, 242, 0.28);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ---- One job per section ---- */
.band {
  padding: clamp(3.5rem, 10vh, 6.5rem) var(--pad);
}

.band-head {
  max-width: 40rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.band-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band-head p {
  margin: 0.75rem 0 0;
  color: var(--ink-dim);
  max-width: 42ch;
}

.feature {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    min-height: 52vh;
  }

  .feature-flip {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .feature-flip .feature-media {
    order: 2;
  }
}

.feature-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  min-height: 240px;
  background: #0c1016;
}

.feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 62vh;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease);
}

.feature:hover .feature-media img {
  transform: scale(1.05);
}

.feature-copy h2,
.feature-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.feature-copy p {
  margin: 0.65rem 0 0;
  color: var(--ink-dim);
  max-width: 36ch;
}

.feature-copy .meta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

.mosaic {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 720px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: 4 / 3;
  background: #0c1016;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.mosaic figure:hover img {
  transform: scale(1.06);
}

.project-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
  }
}

.project-card {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

@media (min-width: 860px) {
  .project-card {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
  }

  .project-card:nth-child(even) {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .project-card:nth-child(even) .project-media {
    order: 2;
  }
}

.project-media {
  margin: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #0c1016;
}

.project-media a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06080c;
}

.video-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(32px) brightness(0.42) saturate(1.15);
  transform: scale(1.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-stage.is-portrait .video-stage-bg {
  opacity: 1;
}

.video-stage-fg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.video-stage.is-portrait {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-stage.is-portrait .video-stage-fg {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.project-body .client-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.hero-compact {
  min-height: auto;
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.hero-kicker a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.hero-page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.case-showcase {
  margin-top: 1.25rem;
}

.case-showcase .video-stage {
  max-width: 960px;
}

.case-tile-hero {
  max-width: 960px;
  aspect-ratio: 16 / 9;
}

.case-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.case-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #0c1016;
  aspect-ratio: 16 / 10;
}

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

.case-empty {
  color: var(--ink-dim);
}

.badjano-link {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink-dim);
  background: linear-gradient(135deg, #0c1016 0%, #121820 100%);
}

.project-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.project-body h3 a {
  color: inherit;
  text-decoration: none;
}

.project-body h3 a:hover {
  color: var(--teal);
}

.project-body p {
  margin: 0.65rem 0 0;
  color: var(--ink-dim);
  max-width: 42ch;
}

.project-credit {
  margin: 0.5rem 0 0 !important;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
}

.project-body .meta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

.cta-band {
  text-align: left;
  border-top: 1px solid rgba(232, 238, 242, 0.1);
}

.site-footer {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid rgba(232, 238, 242, 0.1);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 720px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-social {
  width: 100%;
  opacity: 0.85;
}

.footer-social a {
  font-weight: 500;
  font-size: 0.85rem;
}

.footer-brand img {
  display: block;
  height: 2rem;
  width: auto;
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.footer-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--teal);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
