:root {
  --pad: clamp(14px, 3vw, 44px);

  /* SINGLE edge padding for brand AND hero alignment */
  --edge-pad: clamp(14px, 4vw, 48px);
}

/* =========================================
   INTRO SPLASH SCREEN
   ========================================= */
.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-splash.is-fading {
  opacity: 0;
  pointer-events: none;
}

.intro-splash.is-hidden {
  display: none;
}

.intro-splash__text {
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(64px, 14vw, 180px);
  font-weight: 400;
  color: #fff;
  text-align: center;
  line-height: 0.95;
  letter-spacing: -0.01em;
  padding: 0 20px;
  text-transform: uppercase;
}

.intro-splash__text .line {
  display: block;
  visibility: hidden;
}

.intro-splash__text .word {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  margin: 0 0.1em;
}

.intro-splash__text .word.is-visible {
  opacity: 1;
}

/* Narrow screens: stack all words vertically */
@media (max-width: 600px) {
  .intro-splash__text {
    font-size: clamp(56px, 18vw, 100px);
  }
  
  .intro-splash__text .line {
    display: contents;
  }
  
  .intro-splash__text .word {
    display: block;
    margin: 0.05em 0;
  }
}
/* Splash: hard-center the animated word */
#introText {
  position: relative;
  width: 100%;
}

.intro-splash__text .center-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  /* keep your existing font styling from .intro-splash__text */
  text-align: center;
  white-space: nowrap;
  will-change: opacity, transform;
}
/* Splash: “Remember” gets a tiny glow + slightly brighter feel */
.intro-splash__text .center-word.is-bright{
  text-shadow:
    0 0 10px rgba(255,255,255,0.28),
    0 0 24px rgba(255,255,255,0.18);
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  background: #000;
}

body {
  font-family: "PP Air Mono", monospace;
  background: transparent;
  color: #fff;
}

:root{
  --header-h: 56px; /* tweak to taste */
  --side-pad: clamp(20px, 3.4vw, 34px); /* Increased minimum from 18px to 20px */
}

@media (max-width: 360px){
  :root{ --top-pad: clamp(14px, 3vw, 22px); }
}

/* Default text elements */
body,
p,
span,
li,
a,
h1, h2, h3, h4, h5, h6 {
  color: #fff;
}

/* Links */
a {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.4);
}
/* =========================
   Fonts
   ========================= */
@font-face {
  font-family: "Agentur";
  src: url("assets/Agentur-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-ThinMono.woff") format("woff");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-ExtraLightMono.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-RegularMono.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-MediumMono.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-ExtraLightMonoItalic.woff") format("woff");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "PP Air Mono";
  src: url("assets/PPAir-RegularMonoItalic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


a:hover,
a:focus {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.8);
}

/* Fixed video background for content */
.content-bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.content-bg-video video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.content-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Sections - transparent to show video */
section,
footer,
main {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Hero keeps its own background */
header.hero {
  background: #000;
  position: relative;
  z-index: 2;
}

/* Navigation */
/* Desktop & tablet: transparent nav */
#navigation {
  background: transparent;
}

/* Hero overlays / scrims (keep readable but still black) */
.hero-scrim,
.hero-overlay {
  background-color: transparent;
}

/* Buttons / CTAs (if any) */
button,
.hero-cta,
.btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
/* HERO (100% viewport height) */
.hero {
  height: 100svh;
  position: relative;
  background: #000;
}

/* Gradient overlay at top - behind hamburger and brand - only when scrolled */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.nav-scrolled .hero::after {
  opacity: 1;
}

/* Fixed top gradient for entire page when scrolled past hero */
.site-header::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.nav-scrolled .site-header::before {
  opacity: 1;
}

.swiper {
  height: 100%;
}

/* Each slide */
.hero-slide {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* Animated white border frame - shrinks inward and stays */
.hero-slide::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
}

/* Animate from flush to inset */
.hero-slide.swiper-slide-active::before {
  animation: borderShrinkIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes borderShrinkIn {
  0% {
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  .hero-slide::before {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 3px;
  }
  @keyframes borderShrinkIn {
    0% {
      top: 0; right: 0; bottom: 0; left: 0;
      border-radius: 0;
    }
  }
}

/* Fullscreen video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: clamp(80px, 12vh, 140px) var(--pad) var(--pad) var(--pad);

  color: #fff;
  background: 
    /* Strong dark gradient focused on top-left where text lives */
    linear-gradient(
      135deg,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.75) 25%,
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.1) 75%,
      rgba(0,0,0,0) 100%
    ),
    /* Additional radial from top-left corner */
    radial-gradient(
      ellipse 90% 80% at 0% 0%,
      rgba(0,0,0,0.9) 0%,
      rgba(0,0,0,0.6) 30%,
      rgba(0,0,0,0) 60%
    ),
    /* Subtle overall darkening */
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.3) 0%,
      rgba(0,0,0,0) 40%,
      rgba(0,0,0,0) 100%
    );
}

.hero-content {
  max-width: 50vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: "Agentur", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 8px 0;

  /* Default size for slides 2+ - increased mobile minimum */
  font-size: clamp(48px, min(5vw, 7vh), 56px);
}
/* Hero overlay padding adjustments */
.hero #heroSwiper .hero-overlay{
  padding: clamp(80px, 12vh, 140px) var(--pad) clamp(32px, 4vh, 60px) var(--pad);
}

/* each line in your generated title */
.hero-title .title-line {
  display: block;
  white-space: nowrap;
}

/* optional: tighten multi-line spacing */
.hero-title .title-line + .title-line {
  margin-top: 2px;
}

/* Emphasis styling (your JS wraps a letter in .emphasis) */
.hero-title .emphasis {
  display: inline-block;
  font-style: normal;
  /* subtle pop without adding colors */
  text-shadow: 0 0 18px rgba(255,255,255,0.18);
}
.title-line {
  display: block;
}

/* =========================================
   HERO TITLE / SUBTITLE SPACING (de-cramped)
   ========================================= */

.hero-subtitle{
  margin-top: 0;
  margin-bottom: clamp(12px, 2vh, 20px);

  font-family: "PP Air Mono", monospace;

  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: clamp(0.1em, 0.35vw, 0.22em);
  text-transform: uppercase;

  font-weight: 400;
  opacity: 0.8;
  line-height: 1.4;

  max-width: 50ch;
  text-wrap: balance;
}

.hero-subtitle::after{
  content: "";
  display: block;
  width: clamp(40px, 5vw, 70px);
  height: 1px;
  margin-top: clamp(6px, 1vh, 12px);
  background: rgba(255,255,255,0.4);
}


.hero-body {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.hero-copy {
  font-family: "PP Air Mono", monospace;
  font-size: clamp(13px, 2.2vw, 20px);
  font-weight: 200;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: 0.015em;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.5em 0;
  max-height: 500px;
  overflow: hidden;
  text-wrap: pretty;
}

/* Collapse hidden copy */
.hero-copy.is-collapsed {
  max-height: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
}

.hero-body .btn {
  margin-top: 0.5em;
}

.hero-body .btn.is-collapsed {
  opacity: 0 !important;
  pointer-events: none;
}

.hero-copy:last-of-type {
  margin-bottom: 0.5em;
}
//* =========================================
   HERO TEXT BLOCK
   Right edge is 50vw from the right edge
   Text left-aligned
   Bottom gap controlled
   ========================================= */

@media (min-width: 1024px) {
  .hero .hero-overlay {
    /* keep gradient full width */
    display: grid;
    gap: 10px;

    /* keep your gutter strategy */
    padding-right: 50vw;
    padding-left: var(--pad);
    padding-top: var(--pad);
    padding-bottom: 6vh;

    /* keep a simple column so children don't drift */
    grid-template-columns: 1fr;
    text-align: left;
    justify-items: start;
  }

  /* HARD RESET: remove any child-level pushing from elsewhere */
  .hero .hero-overlay > * {
    grid-column: auto !important;
    margin-right: 0 !important;     /* <-- this is the key */
    max-width: 42rem;
    text-align: left;
    justify-self: start;
  }
}

/* Tablet: smaller gutter so it doesn't get ridiculously narrow */
@media (max-width: 1023px) and (min-width: 641px) {
  .hero .hero-overlay {
    padding-right: 24vw;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-bottom: 5vh;

    grid-template-columns: 1fr;
    justify-items: start;
  }

  .hero .hero-overlay > * {
    grid-column: auto !important;
    margin-right: 0 !important;     /* <-- key */
    max-width: 40rem;
    justify-self: start;
  }
}

.hero #heroSwiper .hero-overlay {
  padding-bottom: clamp(1.5rem, 4vh, 3rem);
}

/* =========================
   Hero slide 1 — cinematic scale
   ========================= */

/* Only when FIRST slide is active */
.hero .swiper-slide:first-child.swiper-slide-active .hero-title {
  font-size: clamp(48px, min(12vw, 10.5vh), 140px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero .swiper-slide:first-child.swiper-slide-active .hero-subtitle {
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: clamp(0.1em, 0.35vw, 0.18em);
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero .swiper-slide:first-child.swiper-slide-active .hero-copy {
  font-size: clamp(13px, 2.2vw, 20px);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

@media (min-width: 1024px) {
  .hero .hero-overlay {
    grid-template-columns: 1fr minmax(0, min(42rem, 50vw));
  }
}

.hero-title,
.hero-subtitle,
.hero-body {
  margin-left: 0;
}


.btn {
  display: inline-block;
  width: fit-content;
  margin-top: 16px;
  padding: clamp(8px, 1.5vw, 12px) clamp(14px, 3vw, 21px);
  border-radius: 4px;
  font-family: "PP Air Mono", monospace;
  font-size: clamp(11px, 1.8vw, 14px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(2px);
  transition: all 0.25s ease;
  position: relative;
}

/* =========================================
   L-BRACKET HOVER — shared across all links
   ========================================= */
.l-hover {
  position: relative;
  display: inline-block;
}

.l-hover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: -6px;
  bottom: -6px;
  left: -6px;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;
  background-repeat: no-repeat;
}

.l-hover:hover::before {
  opacity: 1;
}

/* Nav links: tighter vertical bracket */
#navigation .l-hover::before {
  top: -3px;
  bottom: -3px;
}

/* Scroll-cue: preserve its own display/position */
.scroll-cue.l-hover {
  display: grid;
  position: absolute;
}

/* CTA button: hide border on hover, only show L-brackets */
.btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: transparent;
  color: #fff;
}

/* Emphasized character (the “I” in RIGHT) */
.emphasis {
  display: inline-block;
  transform: translateY(-0.03em);
}

/* Overlay animations (safe: no page-level hiding) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

/* Desktop */
@media (min-width: 1024px) {
  .hero .hero-overlay {
    padding-top: clamp(100px, 14vh, 160px);
    padding-left: clamp(40px, 5vw, 80px);
    padding-right: 45vw;
    padding-bottom: clamp(60px, 8vh, 100px);
  }
  
  .hero-content {
    max-width: 48ch;
  }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 641px) {
  .hero .hero-overlay {
    padding-top: clamp(90px, 12vh, 130px);
    padding-left: clamp(30px, 4vw, 50px);
    padding-right: 20vw;
    padding-bottom: clamp(56px, 7vh, 80px);
  }
  
  .hero-content {
    max-width: 60vw;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero .hero-overlay {
    padding: clamp(60px, 14vw, 120px) var(--pad) var(--pad) var(--pad);
  }
  
  .hero-content {
    max-width: 100%;
  }
  
    .hero .swiper-slide:first-child.swiper-slide-active .hero-title {
    font-size: clamp(32px, min(18vw, 10.5vh), 120px);
    line-height: 0.85;
    letter-spacing: -0.015em;
  }
  .hero-title {
    font-size: clamp(32px, min(10vw, 7vh), 48px);
  }
  
  .hero-subtitle {
    font-size: clamp(11px, 2.6vw, 15px);
    letter-spacing: 0.1em;
  }

  .hero-copy {
    font-size: clamp(12px, 3vw, 15px);
    line-height: 1.65;
  }
}
/* Slide 1 bigger title WITHOUT pushing content off-frame (mobile) */
@media (max-width: 640px) {
  /* Reduce top padding only on slide 1 */
  .hero .swiper-slide:first-child .hero-overlay {
    padding-top: clamp(40px, 8vh, 80px) !important;
  }

  /* Make slide 1 title larger, but tighten its vertical footprint */
  .hero .swiper-slide:first-child .hero-title {
    font-size: clamp(48px, 22vw, 132px) !important;
    line-height: 0.82 !important;
    margin-bottom: 14px !important;
  }

  /* Pull subtitle up a bit */
  .hero .swiper-slide:first-child .hero-subtitle {
    margin-bottom: 14px !important;
  }

  .hero .swiper-slide:first-child.swiper-slide-active .hero-subtitle {
    font-size: clamp(11px, 2.6vw, 15px) !important;
    letter-spacing: 0.1em !important;
  }

  .hero .swiper-slide:first-child.swiper-slide-active .hero-copy {
    font-size: clamp(12px, 3vw, 15px) !important;
  }
}



/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-family: "PP Air Mono", monospace;
  font-size: clamp(10px, 1.8vw, 22px);
  font-weight: 400;
  letter-spacing: 0.04em;
  display: grid;
  gap: 4px;
  text-align: center;
  user-select: none;
  transition: opacity 0.3s ease;
}

/* Desktop: just a bit higher from the bottom */
@media (min-width: 1024px) {
  .scroll-cue {
    bottom: 24px;
  }
}

/* =========================
   HERO FADE ON SCROLL
   Elements fade out as user scrolls down
   ========================= */
.hero {
  --scroll-fade: 1;
}

.hero .hero-overlay,
.hero .hero-video,
.hero .scroll-cue,
.hero .hero-slide::before {
  opacity: var(--scroll-fade);
  transition: opacity 0.15s ease-out;
}

/* Keep the swiper navigation visible */
.hero .swiper-button-prev,
.hero .swiper-button-next,
.hero .swiper-pagination {
  opacity: var(--scroll-fade);
  transition: opacity 0.15s ease-out;
}

/* =========================================
   HERO SLIDE TRANSITIONS
   Content hides when not active (JS handles animation in)
   ========================================= */

/* Non-active slides: content hidden */
.hero-slide:not(.swiper-slide-active) .hero-title,
.hero-slide:not(.swiper-slide-active) .hero-subtitle,
.hero-slide:not(.swiper-slide-active) .hero-copy,
.hero-slide:not(.swiper-slide-active) .hero-body,
.hero-slide:not(.swiper-slide-active) .btn {
  opacity: 0 !important;
  transition: opacity 0.15s ease-out;
}

/* =========================================
   HERO TEXT BLOCK — RIGHT EDGE AT 50vw
   Text left-aligned, clean bottom spacing
   ========================================= */

@media (min-width: 1024px) {
  .hero .hero-overlay {
    display: grid;


    /* Full overlay for gradient */
    padding-top: var(--pad);
    padding-bottom: 6vh;   /* bottom gap */
    padding-left: var(--pad);
    padding-right: var(--pad);

    /* Two-column grid:
       left = flexible
       right = content column */
    grid-template-columns: 1fr auto;
  }

  /* The actual hero text block */
  .hero .hero-overlay > * {
    grid-column: 2;

    /* THIS is the key line */
    margin-right: 50vw;

    max-width: 42rem;
    text-align: left;
  }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 641px) {
  .hero .hero-overlay > * {
    margin-right: 24vw;
    max-width: 40rem;
  }

  .hero .hero-overlay {
    padding-bottom: 5vh;
  }
}

/* Mobile: normal readable layout */
@media (max-width: 640px) {
  .hero .hero-overlay {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .hero .hero-overlay > * {
    margin-right: 0;
    max-width: none;
  }
}

/* Hero overlay: stack content at the top (no spreading) */
.hero #heroSwiper .hero-overlay {
  display: grid;
  align-content: start;   /* <-- key: pack rows at the top */
  justify-items: start;
  gap: 10px;

  /* Keep your padding + gradient */
  padding: var(--pad);
  background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0) 60%);

  /* Optional: if height:100% is causing weird distribution, keep it but top-pack works.
     If you want the overlay only as tall as its content, uncomment next line: */
  /* height: auto; */
}

/* Ensure text alignment stays left */
.hero #heroSwiper .hero-overlay,
.hero #heroSwiper .hero-overlay * {
  text-align: left;
}
.hero #heroSwiper .hero-overlay {
  padding-top: clamp(2rem, 6vh, 5rem);
}

/* Sections below */
.section {
  padding: 84px var(--pad);
  max-width: 1100px;
  margin: 0 auto;

  /* smooth appear on scroll - slower for dramatic effect */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.section.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================
   FADE-IN ANIMATIONS (triggered via JS)
   Elements start invisible, animate when parent section becomes visible
   ========================= */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When section is visible, animate its fade-in children */
.section.is-visible .fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for sequential appearance - increased for more drama */
.section.is-visible .fade-in.delay-1 { transition-delay: 0.2s; }
.section.is-visible .fade-in.delay-2 { transition-delay: 0.4s; }
.section.is-visible .fade-in.delay-3 { transition-delay: 0.6s; }
.section.is-visible .fade-in.delay-4 { transition-delay: 0.8s; }
.section.is-visible .fade-in.delay-5 { transition-delay: 1.0s; }
.section.is-visible .fade-in.delay-6 { transition-delay: 1.2s; }
.section.is-visible .fade-in.delay-7 { transition-delay: 1.4s; }
.section.is-visible .fade-in.delay-8 { transition-delay: 1.6s; }

/* =========================
   SECTION TITLES - slower, more dramatic
   ========================= */

.section-title,
.section .kicker,
.services-head h2 {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(.22,1,.36,1), transform 1.2s cubic-bezier(.22,1,.36,1);
}

.section.is-visible .section-title,
.section.is-visible .kicker,
.section.is-visible .services-head h2 {
  opacity: 1;
  transform: translateY(0);
}

/* Intro text after titles */
.section .services-intro,
.section .section-lead {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
}

.section.is-visible .services-intro,
.section.is-visible .section-lead {
  opacity: 1;
  transform: translateY(0);
}

/* Capability blocks - sequential */
.services-capabilities .cap-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.is-visible .services-capabilities .cap-col:first-child .cap-block:first-child { transition-delay: 0.4s; }
.section.is-visible .services-capabilities .cap-col:first-child .cap-block:last-child { transition-delay: 0.55s; }
.section.is-visible .services-capabilities .cap-col:last-child .cap-block:first-child { transition-delay: 0.7s; }
.section.is-visible .services-capabilities .cap-col:last-child .cap-block:last-child { transition-delay: 0.85s; }

.section.is-visible .services-capabilities .cap-block {
  opacity: 1;
  transform: translateY(0);
}

/* Service highlight blocks */
.service-highlight {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.is-visible .service-highlight:nth-of-type(1) { transition-delay: 0.2s; }
.section.is-visible .service-highlight:nth-of-type(2) { transition-delay: 0.4s; }
.section.is-visible .service-highlight:nth-of-type(3) { transition-delay: 0.6s; }

.section.is-visible .service-highlight {
  opacity: 1;
  transform: translateY(0);
}

/* Client list */
.client-list {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.section.is-visible .client-list {
  opacity: 1;
  transform: translateY(0);
}
/* Hero overlay: stack content from top, offset 20% down */
.hero #heroSwiper .hero-overlay {
  display: grid;
  align-content: start;      /* stack, no spreading */
  justify-items: start;
  gap: 10px;



  /* keep existing side/bottom padding */
  padding-left: var(--pad);
  padding-right: var(--pad);
  padding-bottom: var(--pad);

  text-align: left;
}

/* Portfolio */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.filter {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.filter.is-active {
  border-color: #111;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
}

.card[hidden] {
  display: none !important;
}

/* Make Swiper arrows more subtle on mobile */
@media (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}
/* =========================
   HEADER / NAV (overlay)
   ========================= */

.site-header {
  position: fixed;
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  z-index: 5000;
  pointer-events: none; /* allow clicks only on children */
}

.nav-inner{
  height: 100%;
  display: flex;
  align-items: flex-start; /* Align to top so padding-top works */
  justify-content: space-between;
  padding-left:  calc(var(--side-pad) + env(safe-area-inset-left));
  padding-right: calc(var(--side-pad) + env(safe-area-inset-right));
  padding-top: calc(24px + env(safe-area-inset-top)); /* Added top padding */
}

/* Brand */
.brand {
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  pointer-events: auto;
}
/* Responsive header: align brand + hamburger to the same top offset */
.site-header .nav-inner{
  align-items: center; /* instead of flex-start */
}

/* Give the brand the same "hitbox" height as the trigger (44px) */
.site-header .brand{
  display: inline-flex;
  align-items: center;
  height: 44px;         /* matches .trigger */
  line-height: 1;       /* prevents baseline drop */
  padding-top: 0;       /* ensure it doesn't drift */
  margin-top: 0;
  padding-left: 30px;
}

/* =========================
   Desktop nav - inline buttons at top
   ========================= */

/* Base trigger styles */
.trigger { 
  display: grid;
  place-items: center;
  position: relative;
  width: 44px;
  height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 6000;
  pointer-events: auto;
}

/* Icons stacked on top of each other */
.nav-icon{
  position: absolute;
  width: 28px;
  height: 28px;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: opacity 200ms ease;
}

/* Default: show bars, hide X */
.nav-icon--close{ opacity: 0; }

/* When menu is open: hide bars, show X */
.trigger.is-active .nav-icon--open{ opacity: 0; }
.trigger.is-active .nav-icon--close{ opacity: 1; }

/* Quick flicker only when opening */
@keyframes x-flicker {
  0% { opacity: 1; }
  15% { opacity: 0.25; }
  30% { opacity: 1; }
  45% { opacity: 0.35; }
  60% { opacity: 1; }
  75% { opacity: 0.2; }
  100% { opacity: 1; }
}

.trigger.is-flicker .nav-icon--close{
  animation: x-flicker 160ms linear 1;
}

@keyframes fadeInTrigger {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   DESKTOP (min-width: 1200px)
   ========================= */
@media (min-width: 1200px) {
  /* Hide hamburger by default on desktop at top */
  .trigger {
    display: none;
  }
  
  /* Desktop inline nav at top of page */
  #navigation {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
    z-index: auto;
  }
  
  #navigation li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  #navigation a {
    color: #fff;
    text-decoration: none;
    font-family: "PP Air Mono", monospace;
    font-size: clamp(14px, 1.35vw, 22px);
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 8px 2px;
    opacity: 0.9;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none;
    transition: opacity 180ms ease;
  }
  
  #navigation a:hover,
  #navigation a:focus {
    opacity: 1;
    text-decoration: none;
  }
  
  /* DESKTOP SCROLLED: show hamburger, hide inline nav */
  body.nav-scrolled .trigger {
    display: grid;
    position: fixed;
    top: 28px; /* Increased from 20px */
    right: 24px;
    z-index: 6000;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
    animation: fadeInTrigger 0.3s ease;
  }
  
  /* Stronger shadow on the icon itself when scrolled */
  body.nav-scrolled .trigger .nav-icon {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)) 
            drop-shadow(0 2px 8px rgba(0,0,0,0.6)) 
            drop-shadow(0 4px 16px rgba(0,0,0,0.4));
  }
  
  /* Hide inline nav when scrolled (unless menu is open) */
  body.nav-scrolled #navigation:not(.is-open) {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    visibility: hidden;
  }
  
  /* When menu is open on desktop scrolled, show as overlay */
  body.nav-scrolled #navigation.is-open {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 5vh, 48px);
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    z-index: 5500;
  }
  
  body.nav-scrolled #navigation.is-open a {
    font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 16px 0;
    text-decoration: none;
  }
  
  body.nav-scrolled #navigation.is-open a:hover,
  body.nav-scrolled #navigation.is-open a:focus {
    opacity: 1;
    text-decoration: none;
  }
  
  /* Staggered animation for desktop overlay */
  body.nav-scrolled #navigation.is-open li {
    opacity: 0;
    transform: translateY(20px);
    animation: navItemFadeIn 0.5s cubic-bezier(.22,1,.36,1) forwards;
  }
  
  body.nav-scrolled #navigation.is-open li:nth-child(1) { animation-delay: 80ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(2) { animation-delay: 140ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(3) { animation-delay: 200ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(4) { animation-delay: 260ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(5) { animation-delay: 320ms; }
}

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

/* =========================
   TABLET & MOBILE (max-width: 1199px)
   Always show hamburger, nav is overlay
   ========================= */
@media (max-width: 1199px) {
  /* Always show hamburger on tablet/mobile */
  .trigger {
    display: grid;
    pointer-events: auto;
  }
  
  /* Fullscreen overlay menu */
  #navigation {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 4vh, 40px);
    list-style: none;
    margin: 0;
    padding: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    will-change: opacity;
    z-index: 5500;
  }

  #navigation.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  
  #navigation a {
    font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 400;
    letter-spacing: 0.04em;
    padding: 14px 0;
    background: transparent;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 180ms ease;
  }
  
  #navigation a:hover,
  #navigation a:focus {
    opacity: 1;
    text-decoration: none;
  }
}

/* Staggered list animation - only for tablet/mobile overlay menu */
@media (max-width: 1199px) {
  #navigation li{
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
    transition:
      opacity 1600ms cubic-bezier(.2,0,.1,1),
      transform 1800ms cubic-bezier(.16,1,.3,1),
      filter 1600ms cubic-bezier(.2,0,.1,1);
    will-change: opacity, transform, filter;
    list-style: none;
  }

  #navigation.is-open li{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  /* tight overlap — text items cascade, Instagram drifts in last */
  #navigation.is-open li:nth-child(1){ transition-delay: 50ms; }
  #navigation.is-open li:nth-child(2){ transition-delay: 100ms; }
  #navigation.is-open li:nth-child(3){ transition-delay: 150ms; }
  #navigation.is-open li:nth-child(4){ transition-delay: 200ms; }
  #navigation.is-open li:nth-child(5){ transition-delay: 250ms; }
  #navigation.is-open li:nth-child(6){ transition-delay: 300ms; }
  #navigation.is-open li:nth-child(7){ transition-delay: 500ms; }
}

/* Staggered animation also for desktop when scrolled (overlay mode) */
@media (min-width: 1200px) {
  body.nav-scrolled #navigation li{
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
    transition:
      opacity 1600ms cubic-bezier(.2,0,.1,1),
      transform 1800ms cubic-bezier(.16,1,.3,1),
      filter 1600ms cubic-bezier(.2,0,.1,1);
    will-change: opacity, transform, filter;
    list-style: none;
  }

  body.nav-scrolled #navigation.is-open li{
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  body.nav-scrolled #navigation.is-open li:nth-child(1){ transition-delay: 50ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(2){ transition-delay: 100ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(3){ transition-delay: 150ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(4){ transition-delay: 200ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(5){ transition-delay: 250ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(6){ transition-delay: 300ms; }
  body.nav-scrolled #navigation.is-open li:nth-child(7){ transition-delay: 500ms; }
}

@media (prefers-reduced-motion: reduce) {
  #navigation,
  #navigation li,
  .nav-icon {
    transition: none !important;
    animation: none !important;
  }
}

/* Make sure the top bar is a stacking context */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5000;
}

/* Keep the trigger above everything */
.trigger {
  z-index: 6000;
}
/* =========================
   Swiper pagination (top-aligned with nav)
   ========================= */

.hero #heroSwiper .swiper-pagination{
  position: absolute;
  /* 
   * Align dots to vertical center of brand/nav text
   * Nav has 24px top padding, brand is 44px hitbox, text is ~15px
   * Center of text ≈ 24px + 22px (center of hitbox) = 46px from top
   */
  top: calc(24px + env(safe-area-inset-top) + 22px);
  bottom: auto;
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  z-index: 30; /* above video/overlay */
  pointer-events: auto;
}

/* Inactive dots */
.hero #heroSwiper .swiper-pagination-bullet{
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: width 220ms ease, height 220ms ease, background-color 220ms ease;
}

/* Active dot */
.hero #heroSwiper .swiper-pagination-bullet-active{
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 1);
}

/* Pronounced flicker on active */
@keyframes dot-flicker {
  0%   { opacity: 1; transform: scale(1); }
  12%  { opacity: 0.15; transform: scale(0.6); }
  25%  { opacity: 1; transform: scale(1.25); }
  38%  { opacity: 0.25; transform: scale(0.7); }
  55%  { opacity: 1; transform: scale(1.4); }
  72%  { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.hero #heroSwiper .swiper-pagination-bullet-active{
  animation: dot-flicker 360ms cubic-bezier(.2,.8,.2,1);
}

/* Mobile tuning */
@media (max-width: 1100px){
  .hero #heroSwiper .swiper-pagination-bullet{
    width: 7px;
    height: 7px;
  }
  .hero #heroSwiper .swiper-pagination-bullet-active{
    width: 10px;
    height: 10px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero #heroSwiper .swiper-pagination-bullet{
    transition: none;
  }
  .hero #heroSwiper .swiper-pagination-bullet-active{
    animation: none;
  }
}
/* =========================
   HERO / HEADER LAYERS (fix click + pagination)
   ========================= */

/* Swiper needs a positioning context for absolute children */
#heroSwiper{
  position: relative;
}

/* Header stays above hero, but doesn't block swipes except on actual controls */
.site-header{
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 5000;
  pointer-events: none;
}

/* Actual clickable area */
.nav-inner{
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  /* responsive side padding */
  padding-left:  calc(var(--side-pad, 24px) + env(safe-area-inset-left));
  padding-right: calc(var(--side-pad, 24px) + env(safe-area-inset-right));

  /* Increased top padding */
  padding-top: calc(24px + env(safe-area-inset-top));
  height: calc(var(--header-h, 56px));
}

/* Ensure the trigger is always clickable and above overlay */
.trigger{
  position: relative;
  z-index: 6000;
  pointer-events: auto;
}

/* =========================
   PAGINATION (centered to header strip)
   ========================= */

.hero #heroSwiper .swiper-pagination{
  position: absolute;
  /* Align dots to vertical center of brand text */
  top: calc(24px + env(safe-area-inset-top) + 22px);
  left: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  z-index: 4500;  /* below trigger/header controls, above hero */
  pointer-events: auto;
}
/* =========================================
   REVEAL (single source of truth)
   - Used for non-hero sections only
   - Hero text is forced static (no animation)
   ========================================= */

/* Default reveal behavior (for sections below hero) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-on {
  opacity: 1;
  transform: none;
}

/* Standardize delay helpers - increased stagger for more dramatic effect */
.reveal.delay-1 { transition-delay: .18s; }
.reveal.delay-2 { transition-delay: .36s; }
.reveal.delay-3 { transition-delay: .54s; }
.reveal.delay-4 { transition-delay: .72s; }
.reveal.delay-5 { transition-delay: .90s; }
.reveal.delay-6 { transition-delay: 1.08s; }

/* Generic fade-in classes with increased stagger */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.is-visible,
.section.is-visible .fade-in {
  opacity: 1;
  transform: none;
}

.fade-in.delay-1 { transition-delay: .18s; }
.fade-in.delay-2 { transition-delay: .36s; }
.fade-in.delay-3 { transition-delay: .54s; }
.fade-in.delay-4 { transition-delay: .72s; }
.fade-in.delay-5 { transition-delay: .90s; }
.fade-in.delay-6 { transition-delay: 1.08s; }
.fade-in.delay-7 { transition-delay: 1.26s; }
.fade-in.delay-8 { transition-delay: 1.44s; }


/* HERO overlay: stack from top, start 20% down the frame */
.hero #heroSwiper .hero-slide,
.hero #heroSwiper .swiper-slide {
  position: relative;
}

.hero #heroSwiper .hero-overlay {
  height: 100%;              /* make the overlay match the slide height */
  display: grid;
  align-content: start;      /* pack rows at the top */
  justify-items: start;
  gap: 10px;
  text-align: left;

  /* IMPORTANT: use full padding shorthand so nothing "resets" it later */
  padding: 20vh var(--pad) var(--pad) var(--pad) !important;
}

/* Mobile browsers: prefer stable/small viewport height units */
@media (max-width: 640px) {
  .hero #heroSwiper .hero-overlay {
    /* 20% of the *small* viewport is often still small; bump it up */
    padding-top: 15svh !important; /* try 24–32svh */
  }
}

/* Fallback if svh isn't supported (older browsers) */
@supports not (height: 1svh) {
  @media (max-width: 640px) {
    .hero #heroSwiper .hero-overlay {
      padding-top: 15vh !important;
    }
  }
}


/* =========================================
   HERO TEXT COLUMN (single alignment wrapper)
   ========================================= */

.hero #heroSwiper .hero-overlay{
  /* keep your gradient full width */
  position: relative;
}

/* The one aligned column */
.hero #heroSwiper .hero-content{
  display: grid;
  gap: 10px;



  /* alignment */
  text-align: left;
  justify-items: start;

  /* column width */
  max-width: 42rem;
}

/* Desktop: create the big right “gutter” WITHOUT touching children */
@media (min-width: 1024px){
  .hero #heroSwiper .hero-content{
    padding-top: var(--pad);
    padding-bottom: 6vh;

    /* the gutter lives here */
    margin-right: 50vw;
  }
}

/* Tablet: smaller gutter */
@media (max-width: 1023px) and (min-width: 641px){
  .hero #heroSwiper .hero-content{
    margin-right: 24vw;
    padding-left: clamp(1.25rem, 4vw, 3rem);
    padding-right: clamp(1.25rem, 4vw, 3rem);
    padding-bottom: 5vh;
  }
}

/* Mobile: normal full width with more side padding */
@media (max-width: 640px){
  .hero #heroSwiper .hero-content{
    margin-right: 0;
    padding: 15svh 1.75rem 1.75rem; /* Increased from 1.25rem to 1.75rem */
    max-width: none;
  }
}
/* =========================================
   HERO OFFSET HACK (block right, title left)
   Paste at END of styles.css
   ========================================= */


.hero #heroSwiper {
  --hero-block-shift: clamp(10px, 2.2vw, 44px);
  --hero-title-nudge: clamp(2px, 1vw, 18px);
}
/* Move the whole text column slightly right */
.hero #heroSwiper .hero-content{
  transform: translateX(var(--hero-block-shift)) !important;
}

/* Pull JUST the title back left (more than the block moves right if you want drama) */
.hero #heroSwiper .hero-title{
  transform: translateX(calc(var(--hero-title-nudge) * -1)) !important;
}

/* Optional: keep subtitle/body aligned as a unit */
.hero #heroSwiper .hero-subtitle,
.hero #heroSwiper .hero-body{
  transform: none !important;
}

/* Mobile: turn it off so it stays clean */
@media (max-width: 640px){
  .hero #heroSwiper .hero-content,
  .hero #heroSwiper .hero-title{
    transform: none !important;
  }
}
/* Remove default Swiper arrow graphics */
.swiper-button-prev::after,
.swiper-button-next::after{
  content: "";
}
/* =========================================
   SWIPER DEFAULT ARROWS — BIG & CLEAN
   ========================================= */

.hero #heroSwiper .swiper-button-prev,
.hero #heroSwiper .swiper-button-next{
  color: #fff;                 /* force white */
  opacity: 0.6;                /* subtle at rest */

  /* size - responsive */
  width: clamp(44px, 5vw, 64px);
  height: clamp(44px, 5vw, 64px);

  /* Swiper arrows are font-based */
  font-size: clamp(22px, 2.5vw, 32px);

  transition: opacity 180ms ease, transform 180ms ease;
}

/* Hover */
.hero #heroSwiper .swiper-button-prev:hover,
.hero #heroSwiper .swiper-button-next:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Disabled state */
.hero #heroSwiper .swiper-button-disabled{
  opacity: 0.2;
  pointer-events: none;
}

/* Position nicely */
.hero #heroSwiper .swiper-button-prev{
  left: clamp(12px, 3vw, 32px);
}

.hero #heroSwiper .swiper-button-next{
  right: clamp(12px, 3vw, 32px);
}

/* Mobile: hide (swipe instead) */
@media (max-width: 767px){
  .hero #heroSwiper .swiper-button-prev,
  .hero #heroSwiper .swiper-button-next{
    display: none;
  }
}
/* =========================================
   INTRO SECTION (AI-optimized content block)
   ========================================= */

.section-intro {
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: clamp(48px, 8vh, 80px);
  text-align: center;
}

.section-intro .intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.section-intro .intro-headline {
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(36px, 6vw, 96px);
  line-height: 0.95;
  margin: 0 auto clamp(24px, 4vh, 48px) auto;
  max-width: none;
  color: rgba(255,255,255,0.92);
}

.section-intro .intro-headline .intro-line {
  display: block;
  white-space: nowrap;
}

.section-intro .intro-text {
  margin: 0 auto;
  max-width: 60ch;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
  animation: intro-flicker 2.5s ease-out forwards;
}

/* Subtle decelerating flicker - fast at start, settles smoothly */
@keyframes intro-flicker {
  0% { opacity: 0; }
  4% { opacity: 0.7; }
  6% { opacity: 0.3; }
  10% { opacity: 0.8; }
  14% { opacity: 0.5; }
  20% { opacity: 0.85; }
  28% { opacity: 0.65; }
  40% { opacity: 0.78; }
  60% { opacity: 0.72; }
  100% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .section-intro .intro-text {
    animation: none;
    opacity: 0.75;
  }
}

/* =========================================
   TESTIMONIALS SHOWCASE
   ========================================= */

.section-testimonials {
  padding-top: 0;
  padding-bottom: clamp(48px, 8vh, 80px);
  text-align: center;
}

.testimonial-card {
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 32px);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
}

.testimonial-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.testimonial-link:hover {
  background: rgba(255,255,255,0.02);
}

.testimonial-stars {
  font-size: 16px;
  letter-spacing: 2px;
  color: #f4b400;
  margin-bottom: 12px;
}

.testimonial-quote {
  margin: 0 0 16px 0;
  padding: 0;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.testimonial-author {
  display: block;
  font-family: "PP Air Mono", monospace;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.testimonial-cta {
  display: inline-block;
  font-family: "PP Air Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s ease;
}

.testimonial-link:hover .testimonial-cta {
  color: rgba(255,255,255,0.7);
}

/* =========================================
   SERVICES (header + capabilities)
   Matches the deliverables formatting you liked
   ========================================= */

.section-services{
  padding-top: clamp(72px, 12vh, 120px);
}

.section-services .services-head{
  margin-bottom: clamp(44px, 8vh, 90px);
}

.section-services .kicker{
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(56px, 7.5vw, 120px);
  line-height: 0.95;
  margin: 0 0 clamp(18px, 3vh, 34px) 0;
  color: rgba(255,255,255,0.92);
}

.section-services .services-intro{
  margin: 0;
  max-width: 52ch;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* Capabilities: 2 columns, airy, typographic */
.section-services .services-capabilities{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 40px); /* Tightened gap between columns */
  align-items: start;
  margin-bottom: clamp(44px, 7vh, 90px);
}

.section-services .cap-block{
  margin-bottom: clamp(18px, 3vh, 28px);
}

.section-services .cap-block h3{
  margin: 0 0 10px 0;
  font-family: "PP Air Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.section-services .cap-block p{
  margin: 0;
  font-family: "PP Air Mono", monospace;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  max-width: 18ch; /* Constrain width to force 2 lines */
}

/* Responsive - only stack on narrowest screens */
@media (max-width: 480px){
  .section-services .services-capabilities{
    grid-template-columns: 1fr;
  }
}

/* =========================================
   SERVICES / DELIVERABLES (clean old-site look)
   Works with your existing HTML classes.
   Paste at END of styles.css
   ========================================= */

.services-split{
  margin-top: clamp(42px, 8vh, 90px);
}

.services-split__head{
  margin-bottom: clamp(28px, 5vh, 50px); /* Increased spacing to match other titles */
}

.services-split__kicker{
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.05;
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* If your theme is light in Services, uncomment these:
.services-split__kicker{ color: rgba(0,0,0,0.78); }
*/

.services-inner{
  width: 100%;
}

/* Grid */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  margin: 0;            /* override bootstrap row margins */
  padding: 0;
}

/* Neutralize bootstrap column padding so spacing is controlled by grid gap */
.services-grid > [class*="col-"]{
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Cards */
.service{
  min-width: 0;
}

.service-inner{
  height: 100%;
}

.service-body{
  max-width: 46ch;
}

.service-body h3{
  margin: 0 0 12px 0;
  font-family: "PP Air Mono", monospace;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
}

.service-body p{
  margin: 0;
  font-family: "PP Air Mono", monospace;
  line-height: 1.8;
  font-size: 18px;
  font-weight: 200;
  font-style: italic;
  color: rgba(255,255,255,0.62);
}

/* Service cards: L-bracket hover around the whole card */
.service-inner {
  position: relative;
  padding: 16px;
}

.service-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-size:
    12px 1px, 1px 12px,
    12px 1px, 1px 12px,
    12px 1px, 1px 12px,
    12px 1px, 1px 12px;
  background-repeat: no-repeat;
}

@media (hover: hover) {
  .service:hover .service-inner::before {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px){
  .services-grid{
    grid-template-columns: 1fr;
  }
  .service-body{
    max-width: 60ch;
  }
}
/* =========================================
   WHY (match Services look)
   ========================================= */

#why.section{
  padding-top: clamp(72px, 12vh, 120px);
  max-width: 1100px; /* if you already have a container max-width, you can delete this */
}

#why .section-title{
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95;
  margin: 0 0 clamp(18px, 3vh, 34px) 0;
  color: rgba(255,255,255,0.92);
}

#why .section-lead{
  margin: 0 0 clamp(44px, 8vh, 90px) 0;
  max-width: 62ch;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.75;
  color: rgba(255,255,255,0.78);
}

/* Section subheads like “Selected Clients”, “Key Strengths”… */
#why h2{
  font-family: "PP Air Mono", monospace;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1.1;
  margin: clamp(34px, 7vh, 70px) 0 clamp(16px, 3vh, 26px);
  color: rgba(255,255,255,0.92);
}

/* Two-column client list (no extra wrapper needed) */
#why .client-list{
  list-style: none;
  margin: 0;
  padding: 0;

  column-count: 2;
  column-gap: clamp(24px, 6vw, 90px);
}

#why .client-list li{
  break-inside: avoid;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.62);
}

/* Key strengths blocks: typographic, not “cardy” */
#why .service-highlight{
  padding-top: clamp(18px, 3vh, 24px);
  margin-top: clamp(18px, 3vh, 24px);
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 75ch;
}

#why .service-highlight h4{
  margin: 0 0 10px 0;
  font-family: "PP Air Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

#why .service-highlight p{
  margin: 0;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.68);
}

/* Last paragraph matches the system */
#why > p{
  max-width: 62ch;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.68);
}

/* Responsive */
@media (max-width: 900px){
  #why .client-list{
    column-count: 2;
    column-gap: clamp(20px, 4vw, 40px);
  }
}
/* =========================================
   CONTACT (old-site look)
   ========================================= */

#contact{
  padding-top: clamp(72px, 12vh, 120px);
  position: relative;
}

#contact .section-title{
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(56px, 7.5vw, 120px);
  line-height: 0.95;
  margin: 0 0 clamp(34px, 6vh, 70px) 0;
  color: rgba(255,255,255,0.92);
}

/* 2-column grid for all contact items */
#contact .contact-grid{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: clamp(24px, 4vw, 40px) clamp(40px, 6vw, 70px);
  margin: 0 0 40px 0;
  justify-content: start;
}

/* Contact column */
.contact-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Contact group */
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-group-header {
  font-size: clamp(11px, 1.2vw, 16px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 clamp(4px, 0.8vw, 8px) 0;
  font-weight: 500;
}

.contact-group-items {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 14px);
}

/* Contact buttons - no borders, same width */
.contact-btn {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
  background: transparent;
  border: none;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
  text-align: left;
  position: relative;
  width: clamp(280px, 30vw, 420px) !important;
  min-width: clamp(280px, 30vw, 420px) !important;
  max-width: clamp(280px, 30vw, 420px) !important;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  bottom: -2px;
  left: -4px;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;
  background-repeat: no-repeat;
}

.contact-btn:hover::before {
  opacity: 1;
}

/* Desktop: all contact buttons same fixed width */
@media (min-width: 769px) {
  .contact-group-items {
    width: fit-content;
  }
  
  .contact-group-items .contact-btn {
    width: clamp(280px, 30vw, 420px) !important;
    min-width: clamp(280px, 30vw, 420px) !important;
    max-width: clamp(280px, 30vw, 420px) !important;
  }
  
  /* Make all buttons in a column the same width */
  .contact-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .contact-column .contact-group-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
}

/* Mobile: full width but capped */
@media (max-width: 768px) {
  .contact-btn {
    width: 100% !important;
    min-width: unset !important;
    max-width: 280px !important;
  }
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);
}

.contact-btn-icon {
  flex-shrink: 0;
  width: clamp(32px, 4vw, 48px);
  height: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  transition: background 180ms ease;
}

.contact-btn-icon svg {
  width: clamp(18px, 2.2vw, 26px);
  height: clamp(18px, 2.2vw, 26px);
}

.contact-btn:hover .contact-btn-icon {
  background: transparent;
}

.contact-btn-icon svg {
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.contact-btn:hover .contact-btn-icon svg {
  opacity: 1;
}

.contact-btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-btn-label {
  font-size: clamp(11px, 1.2vw, 16px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.contact-btn-value {
  font-size: clamp(14px, 1.6vw, 21px);
  color: rgba(255, 255, 255, 0.9);
}

/* Legal group - now inside column */
.contact-group--legal {
  margin-top: 0;
}

.contact-legal-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Legal buttons - inherit from contact-btn styling */
.contact-legal-btn {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.5vw, 22px);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 180ms ease;
  cursor: pointer;
  text-align: left;
  position: relative;
  width: clamp(280px, 30vw, 420px) !important;
  min-width: clamp(280px, 30vw, 420px) !important;
  max-width: clamp(280px, 30vw, 420px) !important;
}

.contact-legal-btn::before {
  content: "";
  position: absolute;
  top: -2px;
  right: -4px;
  bottom: -2px;
  left: -4px;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6));
  background-position:
    top left, top left,
    top right, top right,
    bottom left, bottom left,
    bottom right, bottom right;
  background-size:
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px,
    10px 1px, 1px 10px;
  background-repeat: no-repeat;
}

.contact-legal-btn:hover::before {
  opacity: 1;
}

/* Ensure button elements don't have weird default centering */
button.contact-legal-btn {
  text-align: left;
  justify-content: flex-start;
}

.contact-legal-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
  .contact-legal-btn {
    width: 100% !important;
    min-width: unset !important;
    max-width: 280px !important;
  }
}

/* Contact Action Overlay */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.contact-overlay-panel {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 28px 24px 24px;
  backdrop-filter: blur(20px);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.contact-overlay.is-open .contact-overlay-panel {
  transform: scale(1);
}

.contact-overlay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  border-radius: 4px;
  transition: all 180ms ease;
}

.contact-overlay-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.contact-overlay-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-overlay-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.contact-overlay-value {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  word-break: break-all;
}

.contact-overlay-actions {
  display: flex;
  gap: 10px;
}

.contact-overlay-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
}

.contact-overlay-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 1);
}

.contact-overlay-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-overlay-btn:hover svg {
  opacity: 1;
}

/* Tablet: keep 2 columns but tighter */
@media (max-width: 768px) and (min-width: 481px) {
  #contact .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .contact-btn {
    max-width: none;
  }
}

/* Mobile only: single column */
@media (max-width: 480px){
  #contact .contact-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-legal-items {
    flex-direction: column;
  }
  
  .contact-overlay-panel {
    width: 92%;
    padding: 24px 20px 20px;
  }
  
  .contact-overlay-value {
    font-size: 16px;
  }
  
  .contact-btn {
    padding: 12px 14px;
    max-width: none;
  }

  .contact-btn-icon {
    width: 36px;
    height: 36px;
  }

  .contact-btn-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-btn-label {
    font-size: 12px;
  }

  .contact-btn-value {
    font-size: 15px;
  }
}
/* subtle vignette / warm depth */
#contact .contact-item{
  background:
    radial-gradient(
      120% 140% at 80% 20%,
      rgba(255,255,255,0.06),
      rgba(0,0,0,0.55) 55%,
      rgba(0,0,0,0.75) 100%
    );
}
/* =========================================
   PORTFOLIO (filters + grid) – old-site look
   Scope: #portfolio only
   ========================================= */

#portfolio{
  padding-top: clamp(72px, 12vh, 120px);
}

#portfolio .section-title{
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: clamp(56px, 7.5vw, 120px);
  line-height: 0.95;
  margin: 0 0 clamp(22px, 4vh, 46px) 0;
  color: rgba(255,255,255,0.92);
}

/* Filters bar */
#portfolio #filters{
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(22px, 4vh, 44px) 0;
  padding: 0;
  background: transparent;
  border: none;
}

#portfolio #filters li{
  margin: 0;
  padding: 0;
}

#portfolio #filters button{
  appearance: none;
  background: transparent;
  color: rgba(255,255,255,0.70);
  font-size: 13px;
  line-height: 1;
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  transition: all 180ms ease;
}

#portfolio #filters button:hover{
  color: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.4);
}

/* Your JS should toggle .is-checked or .active — support both */
#portfolio #filters button.is-checked,
#portfolio #filters button.active{
  color: #000 !important;
  background: #fff !important;
  border-color: #fff !important;
}

/* Grid */
#portfolio #grid{
  list-style: none;
  margin: 0;
  padding: 0;

  /* Clean 3-column grid with dense packing */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: clamp(18px, 2.8vw, 44px);
  align-items: start;
}

/* Items fill grid cells */
#portfolio #grid > .item{
  min-width: 0;
}

/* Wide items span 2 columns */
#portfolio #grid > .item.wide{
  grid-column: span 2;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  #portfolio #grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 24px);
  }
  
  #portfolio #grid > .item.wide {
    grid-column: span 2;
  }
}

/* Mobile: single column */
@media (max-width: 600px) {
  #portfolio #grid {
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 24px);
  }
  
  #portfolio #grid > .item,
  #portfolio #grid > .item.wide {
    grid-column: span 1;
  }
}

/* Default media aspect ratio */
#portfolio #grid .inner{
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

#portfolio #grid .inner img{
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  position: relative;
}

/* Image wrapper for hover effect - only on the image */
#portfolio #grid .inner img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

/* Use wrapper div approach instead */
#portfolio #grid .inner {
  overflow: visible;
}

#portfolio #grid .item {
  position: relative;
}

/* Create a wrapper specifically for the image hover effect */
#portfolio #grid .inner > img {
  position: relative;
}

/* Better approach: add border on parent but size it to image only */
#portfolio #grid .inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  /* Calculate height to match image only - assuming caption is below */
  height: auto;
  aspect-ratio: 16 / 10;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

/* For tall images */
#portfolio #grid .item.high .inner::after {
  aspect-ratio: 4 / 5;
}

#portfolio #grid .inner:hover::after {
  opacity: 1;
  transform: scale(1);
}

#portfolio #grid .inner:hover img {
  transform: scale(1);
}

/* Caption styles - title first, client subtle below */
#portfolio #grid .caption {
  display: flex;
  flex-direction: column;
  padding: 12px 0 0 0;
  min-height: 60px;
}

#portfolio #grid .caption .titles {
  order: 1;
}

#portfolio #grid .caption .title {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  line-height: 1.3;
  margin: 0;
  max-width: 100%;
}

#portfolio #grid .caption .field {
  order: 2;
  font-size: clamp(12px, 1.3vw, 13px);
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* If your JS sets the active state on the <li> (common), support that too */
#portfolio #filters li.is-checked > button,
#portfolio #filters li.active > button,
#portfolio #filters li.selected > button{
  color: #000 !important;
  background: #fff !important;
  border-color: #fff !important;
}
/* Portfolio filtering: animated hide/show */
#portfolio #grid > .item {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#portfolio #grid > .item.is-hidden {
  display: none !important;
}

#portfolio #grid > .item.is-showing {
  opacity: 1;
  transform: translateY(0);
}

#portfolio #filters button.is-checked{
  color: #000 !important;
  background: #fff !important;
  border-color: #fff !important;
}

/* =========================================
   VIDEO LIGHTBOX - REDESIGNED
   ========================================= */

/* =========================================
   VIDEO LIGHTBOX - Complete Rewrite
   ========================================= */

/* Base lightbox container */
.video-lightbox {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999999 !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.95) !important;
  
  /* Fade behavior */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0ms linear 360ms;
  overflow-y: auto !important;
  padding: 20px !important;
}

.video-lightbox.is-open {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 360ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0ms linear 0ms;
}

/* Backdrop for close on click */
.video-lightbox__backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
}

/* Panel - contains everything */
.video-lightbox.is-open .video-lightbox__panel {
  position: relative !important;
  width: 100% !important;
  max-width: 1200px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  pointer-events: none !important;
  animation: lightboxContentFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both !important;
  margin: auto !important;
}

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

/* Video frame - default 16:9 */
.video-lightbox.is-open .video-lightbox__frame {
  width: 95vw !important;
  max-width: 1200px !important;
  aspect-ratio: 16 / 9 !important;
  background: #000 !important;
  pointer-events: auto !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

/* Vertical video - 9:16 aspect ratio BRUTE FORCE LARGE AND TALL */
.video-lightbox.is-open .video-lightbox__frame.is-vertical {
  aspect-ratio: 9 / 16 !important;
  max-width: none !important;
  width: 80vw !important;
  /* Calculate height to use maximum available space */
  max-height: 85vh !important;
  height: calc(80vw * 16 / 9) !important;
}

/* Mobile vertical video - ABSOLUTELY MASSIVE AND TALL */
@media (max-width: 768px) {
  .video-lightbox.is-open .video-lightbox__frame.is-vertical {
    max-width: none !important;
    width: 90vw !important;
    max-height: 90vh !important;
    height: calc(90vw * 16 / 9) !important;
  }
}

@media (max-width: 480px) {
  .video-lightbox.is-open .video-lightbox__frame.is-vertical {
    max-width: none !important;
    width: 95vw !important;
    max-height: 92vh !important;
    height: calc(95vw * 16 / 9) !important;
  }
}

/* Tablet specific - FORCE LARGE AND TALL */
@media (min-width: 481px) and (max-width: 1024px) {
  .video-lightbox.is-open .video-lightbox__frame.is-vertical {
    max-width: none !important;
    width: 85vw !important;
    max-height: 88vh !important;
    height: calc(85vw * 16 / 9) !important;
  }
}

/* Iframe inside frame */
.video-lightbox.is-open .video-lightbox__frame iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
}

/* CSS-based fullscreen fallback (iOS/mobile where native API fails) */
.video-lightbox.is-css-fullscreen {
  padding: 0 !important;
  background: #000 !important;
}

.video-lightbox.is-css-fullscreen .video-lightbox__panel {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  justify-content: center !important;
}

.video-lightbox.is-css-fullscreen .video-lightbox__frame {
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: none !important;
  aspect-ratio: unset !important;
}

.video-lightbox.is-css-fullscreen .video-lightbox__meta,
.video-lightbox.is-css-fullscreen .video-lightbox__info {
  display: none !important;
}

/* Keep close + fullscreen buttons floating over the video */
.video-lightbox.is-css-fullscreen .video-lightbox__controls {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 20 !important;
}

.video-lightbox.is-css-fullscreen .video-lightbox__unmute {
  display: none !important;
}

/* Meta section - title and client - ABOVE controls */
.video-lightbox.is-open .video-lightbox__meta {
  width: 95vw !important;
  max-width: 1200px !important;
  margin-top: 12px !important;
  text-align: center !important;
  pointer-events: auto !important;
  min-height: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin-bottom: 6px !important;
}

/* Title */
.video-lightbox.is-open .video-lightbox__title {
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(24px, 4vw, 38px) !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  text-align: center !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Client name - always visible underneath title */
.video-lightbox.is-open .video-lightbox__client {
  font-family: "PP Air Mono", monospace !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 13px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  margin: 0 !important;
  display: block !important;
}

/* Action link - button style below client */
.video-lightbox__action {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  text-decoration: none;
  transition: all 200ms ease;
}

.video-lightbox__action:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Info panel - divider + meta line + blocks */
.video-lightbox__info {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.video-lightbox__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 100%;
  margin: 0 0 14px 0;
}

/* Year · Crew inline */
.video-lightbox__meta-line {
  font-family: "PP Air Mono", monospace;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 16px;
}

/* Brief / Process blocks */
.video-lightbox__info-block {
  margin-bottom: 14px;
  width: 100%;
}

.video-lightbox__info-block:last-child {
  margin-bottom: 0;
}

.video-lightbox__info-block .info-heading {
  margin: 0 0 6px 0;
  font-family: "PP Air Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.video-lightbox__info-block .info-text {
  margin: 0;
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .video-lightbox__info {
    margin-top: 12px;
    max-width: 90vw;
  }
  .video-lightbox__divider {
    margin-bottom: 10px;
  }
  .video-lightbox__meta-line {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .video-lightbox__info-block .info-text {
    font-size: 13px;
  }
}

/* Controls row - UNDERNEATH text */
.video-lightbox.is-open .video-lightbox__controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-top: 0 !important;
  pointer-events: auto !important;
}

/* Control buttons - clean, no borders */
.video-lightbox__control-btn {
  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: none !important;
  cursor: pointer !important;
  transition: color 200ms ease, transform 150ms ease !important;
  padding: 0 !important;
}

.video-lightbox__control-btn:hover {
  color: rgba(255, 255, 255, 1) !important;
  transform: scale(1.1) !important;
}

.video-lightbox__control-btn svg {
  pointer-events: none !important;
  display: block !important;
}

/* Unmute button - starts muted */
.video-lightbox__unmute.is-unmuted svg {
  /* Show unmuted icon when active */
}

@media (max-width: 480px) {
  .video-lightbox__control-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  .video-lightbox__control-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .video-lightbox {
    padding: 16px !important;
  }
  
  .video-lightbox.is-open .video-lightbox__frame {
    width: 92vw !important;
  }
  
  .video-lightbox.is-open .video-lightbox__title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  
  .video-lightbox.is-open .video-lightbox__client {
    font-size: 11px !important;
  }
  
  .video-lightbox.is-open .video-lightbox__controls {
    gap: 8px !important;
    margin-top: 12px !important;
  }
  
  .video-lightbox.is-open .video-lightbox__meta {
    margin-top: 16px !important;
    min-height: 50px !important;
  }
}

@media (max-width: 480px) {
  .video-lightbox {
    padding: 12px !important;
  }
}
/* Portfolio filter hide */
#portfolio #grid > .item.is-hidden {
  display: none !important;
}

/* FORCE hero text alignment - tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero .hero-content {
    max-width: none;
    width: auto;
  }
  
  .hero .hero-title,
  .hero .hero-subtitle,
  .hero .hero-body {
    max-width: 32ch;
    width: 32ch;
  }
}

/* FORCE hero text alignment - desktop */
@media (min-width: 1024px) {
  .hero .hero-content {
    max-width: none;
    width: auto;
  }
  
  .hero .hero-title,
  .hero .hero-subtitle,
  .hero .hero-body {
    max-width: 42ch;
    width: 42ch;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  z-index: 99990;
  cursor: pointer;
}

.back-to-top svg {
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)) drop-shadow(0 2px 10px rgba(0,0,0,0.5));
}

.back-to-top.is-visible {
  opacity: 0.7;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
}
@media (max-width: 640px) {
  .hero #heroSwiper .hero-overlay {
    padding-top: clamp(40px, 8vh, 80px) !important; /* kills the 20vh push */
  }
}
/* =========================================
   HERO SLIDE 1 ONLY — placement + taller text zone
   (put at END of styles.css)
   ========================================= */

/* Top anchor for slide 1 text */
:root{
  --s1-top: calc(var(--header-h, 56px) + env(safe-area-inset-top) + 18px);
}

/* Slide 1: keep content near top, and let the overlay carry more height */
.hero #heroSwiper .swiper-slide:first-child .hero-overlay{
  /* anchor near top */
  padding-top: var(--s1-top) !important;
  padding-left: var(--pad) !important;
  padding-right: var(--pad) !important;
  padding-bottom: var(--pad) !important;

  /* ✅ make the content zone extend farther downward:
     overlay spans more of the slide vertically */
  min-height: 65svh !important;        /* ~50% more than a typical ~50svh text zone */
  align-content: start !important;     /* keep rows packed at top */
}

/* Slide 1: remove any extra internal push-down */
.hero #heroSwiper .swiper-slide:first-child .hero-content{
  padding: 0 !important;
}

/* Mobile: slightly tighter top so it stays in-frame */
@media (max-width: 640px){
  :root{
    --s1-top: calc(var(--header-h, 56px) + env(safe-area-inset-top) + 12px);
  }

  .hero #heroSwiper .swiper-slide:first-child .hero-overlay{
    padding-top: var(--s1-top) !important;
  }
}
/* Slide 1: MUCH darker overlay on mobile (video readability) */
@media (max-width: 900px){
  .hero #heroSwiper .swiper-slide:first-child .hero-overlay{
    background:
      /* heavy top-left gradient */
      linear-gradient(
        135deg,
        rgba(0,0,0,0.98) 0%,
        rgba(0,0,0,0.70) 30%,
        rgba(0,0,0,0.50) 60%,
        rgba(0,0,0,0.20) 100%
      ),
      /* strong radial from top-left */
      radial-gradient(
        ellipse 90% 80% at 0% 0%,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.80) 35%,
        rgba(0,0,0,0.35) 70%,
        rgba(0,0,0,0.10) 100%
      ) !important;
  }
}

/* =========================================
   INSTAGRAM NAVBAR BUTTON
   ========================================= */
.nav-instagram a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  opacity: 0.85;
  transition: opacity 180ms ease;
}

.nav-instagram a:hover {
  opacity: 1;
}

.nav-instagram svg {
  display: block;
}

/* Default: hide both Instagram buttons */
.nav-instagram--inline,
.nav-instagram--overlay {
  display: none !important;
}

/* Desktop inline nav (not scrolled): show inline Instagram before Contact */
@media (min-width: 1200px) {
  #navigation:not(.is-open) .nav-instagram--inline {
    display: list-item !important;
  }
  
  /* Always hide overlay version on desktop inline */
  #navigation:not(.is-open) .nav-instagram--overlay {
    display: none !important;
  }
  
  /* Desktop overlay (scrolled): hide inline, show overlay Instagram */
  body.nav-scrolled #navigation.is-open .nav-instagram--inline {
    display: none !important;
  }
  
  body.nav-scrolled #navigation .nav-instagram--overlay {
    display: list-item !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.nav-scrolled #navigation.is-open .nav-instagram--overlay {
    visibility: visible;
    height: auto;
    overflow: visible;
  }
  
  body.nav-scrolled #navigation.is-open .nav-instagram--overlay a {
    padding: 16px 0 !important;
  }
  
  body.nav-scrolled #navigation.is-open .nav-instagram--overlay svg {
    width: 48px;
    height: 48px;
  }
  
  body.nav-scrolled #navigation.is-open li:nth-child(6) { animation-delay: 380ms; }
}

/* Tablet & Mobile: always overlay mode - hide inline, show only overlay Instagram */
@media (max-width: 1199px) {
  .nav-instagram--inline {
    display: none !important;
  }
  
  .nav-instagram--overlay {
    display: list-item !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
  }

  #navigation.is-open .nav-instagram--overlay {
    visibility: visible;
    height: auto;
    overflow: visible;
  }
  
  #navigation .nav-instagram--overlay a {
    padding: 14px 0 !important;
  }
  
  #navigation .nav-instagram--overlay svg {
    width: clamp(36px, 8vw, 48px);
    height: clamp(36px, 8vw, 48px);
  }
  
  #navigation.is-open li:nth-child(6){ transition-delay: 360ms; }
}

/* =========================================
   BACK TO TOP BUTTON
   ========================================= */
/* Scroll spacer - stops scrolling with Legal box at ~50vh from bottom */
.scroll-spacer {
  height: 50vh;
}
/* =========================================
   HERO ALIGNMENT FIX - NUCLEAR OVERRIDE
   This section overrides ALL other hero styles
   Brand and hero title use identical --edge-pad
   ========================================= */

/* Force nav-inner to use --edge-pad */
.nav-inner {
  padding-left: calc(var(--edge-pad) + env(safe-area-inset-left)) !important;
  padding-right: calc(var(--edge-pad) + env(safe-area-inset-right)) !important;
}

/* Remove ALL extra brand padding */
.brand,
.site-header .brand {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Force hero overlay to use SAME --edge-pad */
.hero-overlay,
.hero .hero-overlay,
.hero #heroSwiper .hero-overlay,
.hero #heroSwiper .swiper-slide .hero-overlay,
.hero #heroSwiper .swiper-slide:first-child .hero-overlay {
  padding-left: calc(var(--edge-pad) + env(safe-area-inset-left)) !important;
  padding-right: var(--pad) !important;
  padding-top: clamp(75px, 11vh, 130px) !important;
  padding-bottom: clamp(60px, 8vh, 100px) !important;
  
  /* 
   * RESPONSIVE GRADIENT WIDTH - strong opacity, variable coverage
   * The gradient stays dark where text lives, but covers less of the frame on wide screens.
   * --grad-reach scales from ~85% at 320px down to ~25% at 2000px+
   */
  
  /* How far across the screen the gradient extends (as %) */
  --grad-reach: clamp(25%, 110% - 0.042 * 100vw, 85%);
  
  background: 
    /* Primary left-to-right gradient - strong opacity, responsive width */
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.8) calc(var(--grad-reach) * 0.3),
      rgba(0, 0, 0, 0.5) calc(var(--grad-reach) * 0.6),
      rgba(0, 0, 0, 0.15) calc(var(--grad-reach) * 0.85),
      rgba(0, 0, 0, 0) var(--grad-reach)
    ),
    /* Subtle top gradient for nav area */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.15) 20%,
      rgba(0, 0, 0, 0) 40%
    ) !important;
}

/* Hero content - no extra margins or padding */
.hero-content,
.hero .hero-content,
.hero #heroSwiper .hero-content {
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  max-width: min(55vw, 44rem) !important;
}

/* All hero text elements - zero left offset */
.hero-title,
.hero-subtitle,
.hero-body,
.hero .hero-title,
.hero .hero-subtitle,
.hero .hero-body,
.hero #heroSwiper .hero-title,
.hero #heroSwiper .hero-subtitle,
.hero #heroSwiper .hero-body {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: none !important;
}

/* SLIDE 1 TITLE - massive but height-aware */
.hero .swiper-slide:first-child .hero-title {
  font-size: clamp(48px, min(16vw, 10.5vh), 180px) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase !important;
}

/* SLIDE 1 - limit copy width to match title */
.hero .swiper-slide:first-child .hero-copy {
  max-width: 38ch !important;
}

.hero .swiper-slide:first-child .hero-subtitle {
  max-width: 45ch !important;
}

/* SLIDE 1 - pull title left to compensate for Agentur optical overhang
 * so subtitle, copy, and CTA visually align with the title's left edge.
 * At large display sizes the R/N glyphs overhang significantly. */
@media (min-width: 1024px) {
  .hero .swiper-slide:first-child .hero-title {
    margin-left: -0.045em !important;   /* scales with font-size */
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .hero .swiper-slide:first-child .hero-title {
    margin-left: -0.04em !important;
  }
}

@media (max-width: 640px) {
  .hero .swiper-slide:first-child .hero-title {
    margin-left: -0.04em !important;
  }
}

/* SLIDE 1 - remove gap between subtitle and copy */
.hero .swiper-slide:first-child .hero-subtitle {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.hero .swiper-slide:first-child .hero-subtitle::after {
  margin-bottom: 0 !important;
}

.hero .swiper-slide:first-child .hero-body {
  margin-top: 8px !important;
  padding-top: 0 !important;
  gap: 0 !important;
}

.hero .swiper-slide:first-child .hero-copy {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* SLIDES 2+ TITLE - smaller */
.hero .swiper-slide:not(:first-child) .hero-title {
  font-size: clamp(36px, 6vw, 64px) !important;
  line-height: 0.95 !important;
}

/* SLIDES 2,3,4 - RESTRAINED GRADIENT (text only covers ~25% height on desktop, ~33% on mobile) */
.hero .swiper-slide:not(:first-child) .hero-overlay {
  /* Much narrower gradient - only cover text area */
  --grad-reach: clamp(18%, 50% - 0.02 * 100vw, 40%);
  
  background: 
    /* Tight left-to-right gradient */
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.7) calc(var(--grad-reach) * 0.4),
      rgba(0, 0, 0, 0.35) calc(var(--grad-reach) * 0.7),
      rgba(0, 0, 0, 0) var(--grad-reach)
    ),
    /* Top gradient for nav */
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.1) 15%,
      rgba(0, 0, 0, 0) 30%
    ) !important;
}

/* Tablet: slides 2+ */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero .swiper-slide:not(:first-child) .hero-overlay {
    --grad-reach: clamp(25%, 55% - 0.025 * 100vw, 45%);
  }
}

/* Mobile: slides 2+ need slightly more coverage but still restrained */
@media (max-width: 640px) {
  .hero .swiper-slide:not(:first-child) .hero-overlay {
    --grad-reach: clamp(45%, 70% - 0.04 * 100vw, 60%);
    
    background: 
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.65) 25%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) var(--grad-reach)
      ),
      radial-gradient(
        ellipse 70% 60% at 0% 0%,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0) 70%
      ) !important;
  }
}

/* Tablet adjustments */
@media (max-width: 1023px) and (min-width: 641px) {
  .hero-content,
  .hero .hero-content,
  .hero #heroSwiper .hero-content {
    max-width: min(70vw, 40rem) !important;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  :root {
    --edge-pad: clamp(12px, 4vw, 32px);
  }

  .hero-content,
  .hero .hero-content,
  .hero #heroSwiper .hero-content {
    max-width: 100% !important;
  }

  .hero .swiper-slide:first-child .hero-title {
    font-size: clamp(32px, 14vw, 72px) !important;
  }
  
  /* Mobile: strong gradient, wide coverage for text readability */
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: clamp(75%, 100% - 0.05 * 100vw, 95%);
    
    background: 
      /* Diagonal gradient for mobile - covers text area thoroughly */
      linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.78) 20%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0) var(--grad-reach)
      ),
      /* Radial from top-left corner for extra text coverage */
      radial-gradient(
        ellipse 90% 80% at 0% 0%,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.65) 30%,
        rgba(0, 0, 0, 0.25) 60%,
        rgba(0, 0, 0, 0) 85%
      ) !important;
  }
}

/* =========================================
   HERO POSITION FIX - FORCE LEFT ALIGNMENT
   Override all the 50vw right margin/padding rules
   ========================================= */

/* Overlay must cover FULL screen */
.hero .hero-overlay,
.hero #heroSwiper .hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 0 !important;
}

/* Content box stays left-aligned with controlled width */
.hero-content,
.hero .hero-content,
.hero #heroSwiper .hero-content {
  margin: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
  transform: none !important;
  max-width: min(55vw, 44rem) !important;
  text-align: left !important;
}

/* Desktop: title size */
@media (min-width: 1024px) {
  .hero .swiper-slide:first-child .hero-title {
    font-size: clamp(100px, 14vw, 200px) !important;
  }
  
  .hero-content,
  .hero .hero-content,
  .hero #heroSwiper .hero-content {
    max-width: min(50vw, 44rem) !important;
  }
  
  /* Desktop gradient - narrower coverage */
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: clamp(22%, 70% - 0.035 * 100vw, 50%);
  }
}

/* Large desktop / wide screens */
@media (min-width: 1440px) {
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: clamp(18%, 55% - 0.025 * 100vw, 38%);
  }
}

/* Ultra-wide screens (1920px+) - tight gradient */
@media (min-width: 1920px) {
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: clamp(15%, 40% - 0.015 * 100vw, 28%);
  }
}

/* Super ultra-wide (2560px+) - minimal width */
@media (min-width: 2560px) {
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: 18%;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
  .hero .swiper-slide:first-child .hero-title {
    font-size: clamp(70px, 12vw, 120px) !important;
  }
  
  .hero-content,
  .hero .hero-content,
  .hero #heroSwiper .hero-content {
    max-width: min(65vw, 40rem) !important;
  }
  
  /* Tablet gradient - moderate width */
  .hero-overlay,
  .hero .hero-overlay,
  .hero #heroSwiper .hero-overlay,
  .hero #heroSwiper .swiper-slide .hero-overlay {
    --grad-reach: clamp(45%, 85% - 0.04 * 100vw, 70%);
  }
}

/* Mobile - BIGGER title */
@media (max-width: 640px) {
  .hero .swiper-slide:first-child .hero-title {
    font-size: clamp(63px, 19vw, 101px) !important;
    line-height: 0.88 !important;
  }
  
  .hero-content,
  .hero .hero-content,
  .hero #heroSwiper .hero-content {
    max-width: 100% !important;
  }
  
  /* Mobile - narrower copy for readability */
  .hero-copy,
  .hero .hero-copy,
  .hero .swiper-slide .hero-copy,
  .hero .swiper-slide:first-child .hero-copy {
    max-width: 28ch !important;
  }
  
  .hero .swiper-slide:first-child .hero-subtitle {
    max-width: 32ch !important;
  }
}

/* =========================================
   STEALTH LINK
   ========================================= */

.stealth-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.stealth-link:hover,
.stealth-link:focus,
.stealth-link:active {
  color: inherit;
  text-decoration: none;
}

/* =========================================
   SUBPAGE STYLES (event-videos, etc.)
   ========================================= */

body.subpage {
  background: #000;
}

.site-header--subpage {
  position: relative;
  background: #000;
  padding: 20px var(--edge-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header--subpage .nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.back-link {
  font-family: "PP Air Mono", monospace;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: #fff;
}

.subpage-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Override section opacity for subpages (no scroll animation JS) */
.subpage-main .section {
  opacity: 1;
  transform: none;
}

.section-subpage-hero {
  padding-top: clamp(60px, 10vh, 100px);
  padding-bottom: clamp(40px, 6vh, 60px);
  text-align: center;
}

.subpage-title {
  font-family: "Agentur", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  margin: 0 0 clamp(20px, 3vh, 40px) 0;
  color: rgba(255,255,255,0.92);
}

.subpage-intro {
  font-family: "PP Air Mono", monospace;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  max-width: 55ch;
  margin: 0 auto;
}

.section-services-detail {
  padding-top: clamp(40px, 6vh, 80px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

.service-detail-block {
  margin-bottom: clamp(48px, 8vh, 80px);
  padding-bottom: clamp(48px, 8vh, 80px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-detail-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.service-detail-block h2 {
  font-family: "Agentur", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 clamp(16px, 2vh, 28px) 0;
  color: rgba(255,255,255,0.9);
}

.service-detail-block p {
  font-family: "PP Air Mono", monospace;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 200;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
  margin: 0 0 1em 0;
  max-width: 65ch;
}

.service-detail-block strong {
  color: rgba(255,255,255,0.9);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: clamp(16px, 2vh, 28px) 0 0 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5em;
  font-family: "PP Air Mono", monospace;
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 200;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.service-features li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.4);
}

.section-cta {
  text-align: center;
  padding: clamp(60px, 10vh, 100px) var(--pad);
}

.section-cta h2 {
  font-family: "Agentur", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  margin: 0 0 16px 0;
  color: rgba(255,255,255,0.9);
}

.section-cta p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255,255,255,0.6);
  margin: 0 0 clamp(24px, 4vh, 40px) 0;
}

.section-cta .btn {
  display: inline-block;
  position: relative;
  padding: 14px 32px;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.section-cta .btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: transparent;
}


.subpage-footer {
  text-align: center;
  padding: 40px var(--pad);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.subpage-footer p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.subpage-footer a {
  color: rgba(255,255,255,0.6);
}

.subpage-footer a:hover {
  color: #fff;
}
