/* ==========================================================================
   Night Control — Reset & Variables
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --content-width: 1500px;
  --topbar-height: 34px;
  --header-height: 60px;

  --c-black: #0a0a0a;
  --c-black-soft: #111111;
  --c-white: #ffffff;
  --c-gray-100: #f2f2f2;
  --c-gray-300: #cfcfcf;
  --c-gray-500: #8a8a8a;
  --c-gray-700: #3a3a3a;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: var(--font-body);
  background: var(--c-black);
  color: var(--c-white);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  height: 100svh;
}

/* Ambient pulsing color flares — sit behind everything (z-index: 0) so
   they read through flat-black surfaces (subpages, footer) but stay
   under opaque section media (hero video, full-bleed section images) */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

body::before {
  top: -15%;
  left: -15%;
  width: 81.25vw;
  height: 81.25vw;
  max-width: 1062px;
  max-height: 1062px;
  background: radial-gradient(circle, rgba(44, 138, 255, 0.85) 0%, rgba(44, 138, 255, 0) 70%);
  animation: flare-pulse-a 7s ease-in-out infinite;
}

body::after {
  bottom: -20%;
  right: -15%;
  width: 75vw;
  height: 75vw;
  max-width: 975px;
  max-height: 975px;
  opacity: 0.2;
  transform: scale(0.9);
  background: radial-gradient(circle, rgba(255, 89, 89, 0.8) 0%, rgba(255, 89, 89, 0) 70%);
  animation: flare-pulse-b 8s ease-in-out infinite;
  animation-delay: 2.5s;
}

@keyframes flare-pulse-a {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes flare-pulse-b {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

/* ==========================================================================
   Scroll container / snapping (proximity — soft snap)
   ========================================================================== */
#scroll-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* legacy Edge/IE */
}

/* Simple content subpages (no full-page scroll sections) keep a normal
   visible scrollbar — there's no side section-nav dots to substitute it */
#scroll-container.static-scroll {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}

#scroll-container.static-scroll::-webkit-scrollbar {
  display: block;
  width: 10px;
}

#scroll-container.static-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}

#scroll-container.static-scroll::-webkit-scrollbar-track {
  background: transparent;
}

#scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}

.section {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Visually hidden but readable by screen readers and search engines —
   used where a semantic heading is needed but no visual title fits the
   design (e.g. the video-only hero section). */
.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;
}

/* Background video + overlay, shared by video sections */
.section__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: radial-gradient(circle at 50% 30%, #1c1c1c 0%, #0a0a0a 70%);
}

.section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.14) 0%, rgba(0,0,0,0.09) 40%, rgba(0,0,0,0.16) 100%);
  z-index: 1;
}

/* ==========================================================================
   Topbar (thin white strip above the main header)
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  height: var(--topbar-height);
  background: var(--c-white);
  color: var(--c-black);
}

.topbar__inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.topbar__icons a {
  display: flex;
  color: var(--c-black);
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}

.topbar__icons a:hover { opacity: 1; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img { height: 34px; width: auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--c-white);
  transition: width 0.3s var(--ease);
}

.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.burger {
  display: none;
  position: relative;
  z-index: 160;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 24px;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile fullscreen menu overlay — hidden by default (desktop), turned
   into a flex overlay only inside the mobile media query below */
.mobile-menu-overlay {
  display: none;
}

/* ==========================================================================
   Side section navigator
   ========================================================================== */
.section-nav {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-nav__dot {
  display: block;
  width: 5px;
  height: 28px;
  background: var(--c-white);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.5s var(--ease), width 0.5s var(--ease);
}

.section-nav__dot:hover { opacity: 0.65; }

.section-nav__dot.is-active {
  opacity: 1;
  width: 10px;
}

/* ==========================================================================
   Glass button (shared)
   ========================================================================== */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 22px 46px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-black);
  transform: translateY(-2px);
}

.btn-glass--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
}

.btn-glass--ghost:hover {
  background: rgba(255,255,255,0.08);
  color: var(--c-white);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__inner {
  position: absolute;
  inset: 0;
}

.hero__top {
  position: absolute;
  top: calc(var(--topbar-height) + var(--header-height) + 40px);
  left: 56px;
  display: flex;
  justify-content: flex-start;
}

.hero-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-social a {
  display: flex;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.hero-social a:hover { opacity: 1; transform: translateY(-2px); }

.hero__promo-btn {
  position: absolute;
  bottom: 220px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__promo-btn:hover {
  transform: translateX(-50%) translateY(-2px);
}

.hero__bottom {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0.9;
  transition: opacity 0.3s var(--ease);
}

.hero-phone:hover { opacity: 1; }

.hero-phone span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

/* Scroll down indicator */
.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}

.scroll-down:hover { opacity: 1; }

.scroll-down__text {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  font-weight: 500;
}

.scroll-down__arrow {
  animation: arrowBounce 1.8s ease-in-out infinite;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   Media sections (video + text anchored near the bottom)
   ========================================================================== */
.media-section {
  align-items: flex-end;
}

.media-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding-bottom: 12vh;
}

.heading-anton {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

br.mobile-break { display: none; }

.subheading-anton {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--c-gray-300);
  max-width: 900px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.subheading-anton--wide {
  max-width: 1300px;
}

.subheading-anton strong {
  color: var(--c-white);
  font-weight: 400;
}

.body-poppins {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
  color: var(--c-white);
  max-width: 1300px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.body-poppins--narrow {
  max-width: 780px;
}

/* Scroll-reveal animation targets */
[data-reveal] {
  --reveal-i: 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-i) * 0.15s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Promo section (vertical video + text)
   ========================================================================== */
.promo-section__inner {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(320px, 640px) minmax(240px, 320px);
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding-top: calc(var(--topbar-height) + var(--header-height));
}

.promo-video {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  background: var(--c-black-soft);
}

.promo-video__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  transition: background 0.3s var(--ease);
}

.promo-video__play::before {
  content: '';
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.5);
}

.promo-video__play svg {
  position: relative;
  margin-left: 4px;
}

.promo-video__play:hover { background: rgba(0,0,0,0.15); }
.promo-video__play.is-hidden { display: none; }

.promo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.promo-photo {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.15);
  overflow: hidden;
  background: var(--c-black-soft);
}

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

/* ==========================================================================
   Generic page hero (subpages)
   ========================================================================== */
.page-hero {
  background: radial-gradient(circle at 50% 30%, #1c1c1c 0%, #0a0a0a 70%);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: calc(var(--topbar-height) + var(--header-height));
}

/* ==========================================================================
   Subpage banner — short hero (not fullscreen), used on simple content
   subpages instead of the fullscreen video hero on the main page
   ========================================================================== */
.subpage-banner {
  position: relative;
  height: 56vh;
  min-height: 420px;
  max-height: 640px;
  margin-top: calc(var(--topbar-height) + var(--header-height));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1c1c1c 0%, #0a0a0a 70%);
}

.subpage-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.subpage-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%);
}

.subpage-banner__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
}

.subpage-banner .heading-anton {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
}

/* ==========================================================================
   Packages: card grid (LIVE / LIVE+ featured / PRODUCTION)
   ========================================================================== */
.packages {
  padding: 100px 0 40px;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gray-500);
  margin-bottom: 12px;
}

.packages__title {
  margin-bottom: 56px;
}

.packages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 32px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--c-white);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.package-card:hover {
  border-color: rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.package-card__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--c-black);
}

.package-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.package-card__list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-black);
}

.package-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--c-black);
}

.package-card__for {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--c-black);
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.12);
}

/* ==========================================================================
   Package details — long-form copy per package
   ========================================================================== */
.package-details {
  padding: 40px 0 140px;
}

.package-details__intro {
  font-size: clamp(0.85rem, 1vw, 1rem);
  margin-bottom: 64px;
}

.package-details__item {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.package-details__item:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}


.package-details__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: 0.02em;
}

.package-details__cta {
  margin-top: 56px;
}

/* ==========================================================================
   Tech features — 3 stacked horizontal image+text blocks
   ========================================================================== */
.tech-features {
  padding: 90px 0 140px;
}

.tech-feature {
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.tech-feature:first-child {
  border-top: none;
}

.tech-feature:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.tech-feature--reverse {
  grid-template-columns: 1fr minmax(320px, 560px);
}

.tech-feature--reverse .tech-feature__media {
  order: 2;
}

.tech-feature__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tech-feature__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

/* ==========================================================================
   Contact page — 4-photo grid
   ========================================================================== */
.contact-gallery {
  padding: calc(var(--topbar-height) + var(--header-height) + 70px) 0 70px;
}

.contact-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.contact-gallery__item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.contact-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.contact-gallery__item:hover img {
  transform: scale(1.05);
}

/* ==========================================================================
   About page — intro (head + 3 pillars) + lineup (4-photo strip)
   ========================================================================== */
.about-intro {
  padding: 100px 0 130px;
}

.about-intro__head {
  max-width: 760px;
  margin-bottom: 72px;
}

.about-intro__title {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  margin: 4px 0 24px;
}

.about-intro__lead {
  color: var(--c-gray-300);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 56px;
}

.about-pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 36px;
  background: var(--c-black);
}

.about-pillar__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--c-gray-500);
}

.about-pillar__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.about-pillar .body-poppins {
  color: var(--c-gray-300);
  font-size: 0.95rem;
}

.about-intro__cta {
  display: inline-flex;
}

.about-lineup {
  padding: 0 0 140px;
}

.about-lineup__title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 4px 0 24px;
}

.about-lineup__intro {
  margin-bottom: 48px;
}

.about-lineup__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-lineup__photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-lineup__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.about-lineup__photo figcaption {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-gray-300);
  text-align: center;
}

/* ==========================================================================
   Portfolio page — intro + video carousel + photo gallery
   ========================================================================== */
.portfolio-intro {
  padding: calc(var(--topbar-height) + var(--header-height) + 70px) 0 70px;
}

.portfolio-intro__title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  margin: 4px 0 32px;
}

.portfolio-intro__lead {
  color: var(--c-gray-300);
  margin-bottom: 22px;
}

.portfolio-intro__lead:last-of-type {
  margin-bottom: 0;
}

/* --- Video carousel --- */
.video-carousel {
  padding: 30px 0 110px;
}

.video-carousel__viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 40px;
  overflow: hidden;
}

.video-carousel__track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--content-width);
  height: clamp(280px, 42vw, 520px);
  perspective: 1400px;
}

.video-carousel__slide {
  position: absolute;
  width: min(62vw, 780px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease), filter 0.55s var(--ease);
}

.video-carousel__slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  filter: blur(0);
  z-index: 3;
}

.video-carousel__slide.is-prev,
.video-carousel__slide.is-next {
  opacity: 0.45;
  pointer-events: auto;
  filter: blur(3px);
  z-index: 2;
  cursor: pointer;
}

.video-carousel__slide.is-prev {
  transform: translateX(-62%) scale(0.8);
}

.video-carousel__slide.is-next {
  transform: translateX(62%) scale(0.8);
}

.video-carousel__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--c-black-soft);
  overflow: hidden;
}

.video-carousel__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-carousel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--c-white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.video-carousel__play svg {
  transform: translateX(2px);
}

.video-carousel__play:hover {
  background: var(--c-white);
  color: var(--c-black);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-carousel__play.is-hidden {
  display: none;
}

.video-carousel__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  background: transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 4;
}

.video-carousel__nav:hover {
  border-color: var(--c-white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.video-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.video-carousel__dot {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.video-carousel__dot.is-active {
  background: var(--c-white);
  border-color: var(--c-white);
  transform: scale(1.2);
}

/* --- Photo gallery --- */
.gallery {
  padding: 0 0 140px;
}

.gallery__title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  margin: 4px 0 40px;
}

/* Masonry via CSS columns: handles any number of images at any aspect
   ratio without cropping — each column stacks items top-to-bottom */
.gallery__grid {
  columns: 4;
  column-gap: 20px;
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--extra {
  display: none;
}

.gallery__more {
  display: flex;
  margin: 44px auto 0;
}

/* ==========================================================================
   Booking form — full-width, multi-step, with icons
   ========================================================================== */
/* Step progress bar */
.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 64px;
}

.booking-steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 4px;
}

.booking-steps__item::before {
  content: '';
  position: absolute;
  top: 26px;
  left: -50%;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 0;
}

.booking-steps__item:first-child::before {
  content: none;
}

.booking-steps__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.3);
  background: var(--c-black);
  color: var(--c-gray-500);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.booking-steps__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--c-gray-500);
  transition: color 0.3s var(--ease);
}

.booking-steps__item.is-active .booking-steps__icon,
.booking-steps__item.is-done .booking-steps__icon {
  border-color: var(--c-white);
  color: var(--c-black);
  background: var(--c-white);
}

.booking-steps__item.is-active .booking-steps__label,
.booking-steps__item.is-done .booking-steps__label {
  color: var(--c-white);
}

/* Form shell */

.booking-step {
  display: none;
  border: none;
  flex-direction: column;
  gap: 28px;
  animation: booking-step-in 0.4s var(--ease);
}

.booking-step.is-active {
  display: flex;
}

@keyframes booking-step-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.booking-field--full {
  grid-column: 1 / -1;
}

.booking-field label,
.booking-field__group-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-gray-100);
}

.booking-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.booking-field__icon {
  position: absolute;
  left: 18px;
  color: var(--c-gray-500);
  pointer-events: none;
  transition: color 0.3s var(--ease);
}

.booking-field__control input,
.booking-field__control textarea {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.booking-field__control input:focus,
.booking-field__control textarea:focus {
  outline: none;
  border-color: var(--c-white);
  background: rgba(255,255,255,0.05);
}

.booking-field__control input:focus ~ .booking-field__icon,
.booking-field__control textarea:focus ~ .booking-field__icon {
  color: var(--c-white);
}

.booking-field__control input::placeholder,
.booking-field__control textarea::placeholder { color: var(--c-gray-500); }

.booking-field__control--textarea {
  align-items: flex-start;
}

.booking-field__control--textarea .booking-field__icon {
  top: 18px;
}

.booking-field__control textarea {
  height: auto;
  min-height: 130px;
  padding-top: 16px;
  resize: vertical;
  line-height: 1.6;
}

/* Custom checkboxes (event type / add-ons) */
.booking-checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-check {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  background: var(--c-black-soft);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.booking-check:hover {
  border-color: rgba(255,255,255,0.4);
}

.booking-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.booking-check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 5px;
  position: relative;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.booking-check__box::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 9px;
  border: solid var(--c-black);
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.booking-check input:checked ~ .booking-check__box {
  background: var(--c-white);
  border-color: var(--c-white);
}

.booking-check input:checked ~ .booking-check__box::after {
  transform: translateY(-1px) rotate(45deg) scale(1);
}

.booking-check input:focus-visible ~ .booking-check__box {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

.booking-check__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--c-white);
}

.booking-check__desc {
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-gray-300);
}

.booking-check:has(input:checked) {
  border-color: rgba(255,255,255,0.6);
}

/* Radio variant (event type: exactly one choice) — round box with a dot */
.booking-check__box--radio {
  border-radius: 50%;
}

.booking-check__box--radio::after {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background: var(--c-black);
  transform: scale(0);
}

.booking-check input:checked ~ .booking-check__box--radio::after {
  transform: scale(1);
}

/* Consent checkbox: plain row, no card frame, smaller muted text */
.booking-check--consent {
  align-items: flex-start;
  padding: 0;
  border: none;
  background: none;
}

.booking-check--consent .booking-check__box {
  margin-top: 1px;
}

.booking-check--consent .booking-check__text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--c-gray-300);
}

/* Step navigation */
.booking-step__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.booking-step__nav .btn-glass {
  padding: 18px 40px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  align-items: stretch;
}

.static-scroll .site-footer {
  min-height: 0;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 80px;
  align-items: center;
  padding-top: calc(var(--topbar-height) + var(--header-height) + 60px);
  padding-bottom: 60px;
}

.footer-col--info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 28px;
}

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

.footer-contact li,
.footer-contact a {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-contact li > svg,
.footer-contact a > svg {
  flex-shrink: 0;
}

.footer-contact a {
  font-size: 1rem;
  color: var(--c-gray-100);
  transition: color 0.3s var(--ease);
}

.footer-contact a:hover { color: var(--c-white); }

.footer-contact__stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-social a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer-social a:hover { opacity: 1; transform: translateY(-2px); }

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-gray-500);
}

.footer-credit {
  font-size: 0.78rem;
  color: var(--c-white);
}

.footer-credit a {
  color: var(--c-white);
  transition: opacity 0.3s var(--ease);
}

.footer-credit a:hover {
  opacity: 0.75;
}

/* Contact form */
.footer-col--form {
  width: 100%;
}

.footer-form__heading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 28px;
}

/* Submit buttons while the form is being sent (js/forms.js) */
.btn-glass[disabled] {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* Honeypot fields: invisible to humans, present for bots that fill every
   field. Hidden off-screen rather than display:none so form-filling bots
   that skip display:none fields still get caught. */
.booking-field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-notice {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.form-notice--success {
  background: rgba(80, 220, 140, 0.12);
  border: 1px solid rgba(80, 220, 140, 0.35);
  color: #7ee8ae;
}

.form-notice--error {
  background: rgba(230, 80, 80, 0.12);
  border: 1px solid rgba(230, 80, 80, 0.35);
  color: #f29b9b;
}

/* ==========================================================================
   Form confirmation dialog (native <dialog>, opened by js/forms.js)
   ========================================================================== */
.form-dialog {
  margin: auto;
  width: min(calc(100vw - 32px), 560px);
  padding: 0;
  border: 1px solid rgba(255,255,255,0.25);
  background: var(--c-black);
  color: var(--c-white);
}

.form-dialog::backdrop {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.form-dialog[open] {
  animation: booking-step-in 0.4s var(--ease);
}

.form-dialog__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 36px 40px;
  text-align: center;
}

.form-dialog__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.form-dialog.is-error .form-dialog__title {
  color: #f29b9b;
}

.form-dialog__text {
  font-size: 1rem;
  color: var(--c-gray-300);
}

.form-dialog__close {
  margin-top: 8px;
  padding: 16px 40px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .promo-section__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .promo-text { align-items: center; text-align: center; }
  .promo-video { max-width: 340px; margin: 0 auto; }
  .promo-photo { max-width: 340px; margin: 0 auto; }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .footer-col--info { align-items: center; text-align: center; }
  .footer-contact a,
  .footer-contact li { justify-content: center; }
  .footer-contact__stack { align-items: center; }
}

/* ==========================================================================
   Mobile (<=860px): topbar hidden, header shrinks to header-height only,
   custom page-scroll disabled in favor of native free scrolling, side
   section navigator hidden, hero logo hidden, fullscreen centered menu.
   ========================================================================== */
@media (max-width: 860px) {
  :root {
    --topbar-height: 0px;
  }

  .topbar { display: none; }

  .main-nav { display: none; }
  .burger { display: flex; }

  /* The header creates its own stacking context (it has z-index: 100),
     so the burger's z-index: 160 only wins locally within that context —
     it still loses to the overlay at the body level. Raising the header
     itself above the overlay while open (via JS toggling this class)
     keeps the burger clickable to close the menu. */
  .site-header.is-above-overlay {
    z-index: 160;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    z-index: 150;
    inset: 0;
    background: var(--c-black);
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-overlay.is-open {
    display: flex;
  }

  .mobile-menu-overlay__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 56px;
  }

  .mobile-menu-overlay__links a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--c-white);
  }

  .mobile-menu-overlay__links a.is-active {
    opacity: 0.6;
  }

  .mobile-menu-overlay__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 26px;
  }

  .mobile-menu-overlay__social a {
    display: flex;
    color: var(--c-white);
    opacity: 0.85;
  }

  /* Side section navigator removed on mobile — native free scroll instead */
  .section-nav { display: none; }

  /* Hard line breaks tuned for wide desktop lines read as awkward
     mid-word wraps on narrow screens — let text wrap naturally instead */
  br.hard-break { display: none; }

  /* Inverse: breaks that only apply on mobile, where the desktop line
     fits on one line but is too long for narrow screens */
  br.mobile-break { display: inline; }
  .desktop-space { display: none; }

  /* Hero top row (logo + social icons) hidden on mobile — logo stays
     visible in the sticky header, social icons live in the burger menu */
  .hero__top { display: none; }

  /* Media sections: vertically centered content instead of bottom-anchored */
  .media-section { align-items: center; }
  .media-section__inner { padding-bottom: 0; }

  /* Background photos shifted to keep the subject in frame on narrow screens */
  #wyroznij .section__video { object-position: 32% 35%; }
  #coverowy .section__video { object-position: 58% 40%; }

  /* Footer: form first, contact info block last on mobile */
  .footer-col--form { order: 1; }
  .footer-col--info { order: 2; }

  /* Package cards: stack instead of 3-column grid */
  .subpage-banner { height: 46vh; min-height: 320px; }
  .packages { padding: 70px 0 20px; }
  .packages__grid { grid-template-columns: 1fr; gap: 20px; }
  .package-details { padding: 20px 0 100px; }
  .package-details__item { grid-template-columns: 1fr; gap: 16px; }

  .tech-features { padding: 50px 0 100px; }
  .tech-feature,
  .tech-feature--reverse { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .tech-feature--reverse .tech-feature__media { order: 0; }

  .booking-grid { grid-template-columns: 1fr; gap: 20px; }
  .booking-steps__label { font-size: 0.68rem; }
  .booking-steps__icon { width: 42px; height: 42px; }
  .booking-steps__item::before { top: 21px; }
  .booking-step__nav .btn-glass { padding: 15px 24px; font-size: 0.72rem; }

  .contact-gallery { padding: calc(var(--topbar-height) + var(--header-height) + 40px) 0 50px; }
  .contact-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .about-intro { padding: 60px 0 70px; }
  .about-intro__head { margin-bottom: 40px; }
  .about-pillars { grid-template-columns: 1fr; }
  .about-lineup { padding: 0 0 100px; }
  .about-lineup__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }

  .portfolio-intro { padding: calc(var(--topbar-height) + var(--header-height) + 40px) 0 40px; }
  .video-carousel { padding: 10px 0 80px; }
  .video-carousel__viewport { padding: 0; gap: 6px; }
  .video-carousel__slide { width: calc(100vw - 116px); }
  .video-carousel__slide.is-prev,
  .video-carousel__slide.is-next { display: none; }
  .video-carousel__nav { width: 36px; height: 36px; }

  .gallery { padding: 0 0 100px; }
  .gallery__grid { columns: 2; column-gap: 14px; }
  .gallery__item { margin-bottom: 14px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 20px; }
  .section__inner { padding-left: 22px; padding-right: 22px; }
  .logo img { height: 32px; }

  .btn-glass { padding: 14px 26px; font-size: 0.68rem; }

  .heading-anton { font-size: clamp(1.9rem, 8vw, 3rem); }

  .footer-info { flex-direction: column; gap: 10px; }

  .contact-gallery__grid { grid-template-columns: 1fr; }
}
