/* ============================================================
   HappyBoys WorldWide — dark cinematic portfolio
   Design system: design-system/happyboys-worldwide/MASTER.md
   Palette: Photography Studio (near-black) + brand amber accent
   Type: Archivo (display) / Space Grotesk (body)
   ============================================================ */

:root {
  /* color tokens */
  --color-background: #0a0a0a;
  --color-surface: #121212;
  --color-surface-2: #181818;
  --color-foreground: #fafafa;
  --color-muted-fg: #a1a1aa;
  --color-border: #27272a;
  --color-accent: #F5A623;
  --color-accent-strong: #ffb63d;
  --color-on-accent: #131009;

  /* fluid type scale */
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  --font-size-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --font-size-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  --font-size-2xl: clamp(2.4rem, 1.9rem + 2.5vw, 4rem);
  --font-size-hero: clamp(2.6rem, 1.6rem + 5.2vw, 6.2rem);

  /* spacing */
  --space-section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 16px;

  /* motion tokens — strong curves; built-in easings are too weak for UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-hover: 200ms;
  --dur-modal: 260ms;

  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Reduced motion means gentler, not none: movement is removed but opacity
     and colour transitions stay so hover/press/open states still register. */
  .marquee-track { animation: none; }
  .btn:hover,
  .btn:hover .icon,
  .card:hover,
  .lb-nav:hover,
  .tile:hover img,
  .tile:focus-visible img { transform: none; }
  .tile figcaption { transform: none; }
  .lightbox .lb-stage { transform: none; }
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.6;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 { font-size: var(--font-size-2xl); margin-bottom: .6rem; }
h3 { font-size: var(--font-size-lg); font-weight: 600; }
h2 em, h1 em { font-style: normal; }

.accent { color: var(--color-accent); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.section-sub { color: var(--color-muted-fg); max-width: 620px; margin-top: 1rem; }
.section-head { margin-bottom: 3rem; }
code {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: .1em .45em;
  border-radius: 6px;
  font-size: .85em;
  color: var(--color-accent);
}

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--color-accent);
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background var(--dur-hover) ease, border-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--dur-hover) var(--ease-out); }
.btn-outline { background: transparent; color: var(--color-foreground); border-color: var(--color-border); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-accent-strong); border-color: var(--color-accent-strong); transform: translateY(-2px); }
  .btn:hover .icon { transform: translateX(4px); }
  .btn-outline:hover { background: var(--color-foreground); color: var(--color-background); border-color: var(--color-foreground); }
}
.btn-small { min-height: 44px; padding: .5rem 1.3rem; font-size: .92rem; }
.btn-full { width: 100%; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, .92);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--color-foreground); }
.brand-logo { height: 40px; width: 40px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--color-muted-fg);
  font-size: .5em;
}

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--color-foreground);
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 0;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); }
}
.nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-foreground); margin: 6px 0; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: calc(100svh - 65px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 78% 22%, rgba(245, 166, 35, .10), transparent 60%),
    var(--color-background);
}

/* video slideshow behind the hero */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-bg video.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.62) 45%, rgba(10,10,10,.88) 100%);
}
.hero-inner, .marquee { position: relative; z-index: 1; }
.marquee { background: rgba(18,18,18,.85); }
.hero-inner { padding-top: clamp(3.5rem, 8vh, 7rem); padding-bottom: 3rem; }
.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  max-width: 15ch;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; }
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.lead { color: var(--color-muted-fg); font-size: var(--font-size-base); max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* marquee strip */
.marquee {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  padding: 1rem 0;
  background: var(--color-surface);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 24s linear infinite;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-muted-fg);
}
.marquee-track .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }


/* ===== Seamless media wall ===== */
.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;
}
/* the wall opens right under the hero — no heading, no hard seam */
.section-wall { padding-top: clamp(2rem, 4vw, 3.5rem); }
.section-wall .filters { margin-bottom: clamp(1.2rem, 2.5vw, 1.8rem); }

.chip-film { display: inline-flex; align-items: center; gap: .45rem; }
.chip-film::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}


/* ===== Portfolio: filters + masonry ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.chip {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-muted-fg);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .55rem 1.25rem;
  min-height: 44px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.chip:hover { color: var(--color-foreground); border-color: var(--color-muted-fg); }
.chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}
.empty-note { color: var(--color-muted-fg); padding: 2rem 0; }

/* Instagram-style grid: uniform squares, hairline gaps, no rounded corners
   — thumbnails crop square, the lightbox shows the full uncropped frame */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.tile {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-2);
  cursor: pointer;
  transform: translateZ(0);
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transition: transform var(--dur-hover) var(--ease-out), filter var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { transform: scale(1.06); filter: brightness(1.05); }
}
.tile:focus-visible img { transform: scale(1.06); filter: brightness(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.2) 42%, transparent 68%);
  opacity: 0;
  transition: opacity var(--dur-hover) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover::after { opacity: 1; }
}
.tile:focus-visible::after { opacity: 1; }
.tile:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; z-index: 3; }

/* caption reveals on hover instead of sitting on every tile */
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: .85rem .9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.25;
  letter-spacing: .01em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover figcaption { opacity: 1; transform: none; }
}
.tile:focus-visible figcaption { opacity: 1; transform: none; }

.tile.is-hidden { display: none; }

/* filtering swaps a lot of tiles at once — fade the wall so it doesn't teleport */
.masonry { transition: opacity 160ms var(--ease-out); }
.masonry.is-filtering { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .masonry { transition: none; }
  .masonry.is-filtering { opacity: 1; }
}

/* video cards */
.tile-video .play-badge {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  translate: -50% -50%;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, .55);
  border: 1.5px solid rgba(255, 255, 255, .75);
  color: #fff;
  backdrop-filter: blur(2px);
  transition: background .25s ease, border-color .25s ease, scale .25s ease;
}
.tile-video .play-badge svg { width: 24px; height: 24px; margin-left: 3px; }
.tile-video:hover .play-badge, .tile-video:focus-visible .play-badge {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
  scale: 1.08;
}
.tile-video .dur {
  position: absolute;
  top: .7rem; right: .7rem;
  z-index: 2;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(10, 10, 10, .7);
  padding: .2rem .5rem;
  border-radius: 6px;
}
/* video tiles behave exactly like photo tiles — the play badge and
   duration chip already signal motion, so the wall stays uniform */

@media (max-width: 1024px) {
  .masonry { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .masonry { grid-template-columns: repeat(3, 1fr); gap: 2px; }
  /* at 3-across the tiles are small — captions would be unreadable, so drop them */
  .tile figcaption { display: none; }
  .tile::after { opacity: 0; }
  .tile-video .play-badge { width: 46px; height: 46px; top: 42%; }
  .tile-video .play-badge svg { width: 19px; height: 19px; }
  /* keep long film titles from colliding with the play badge */
  .tile-video figcaption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 8, .94);
  opacity: 0;
  transition: opacity var(--dur-modal) var(--ease-out);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox.open .lb-stage { transform: scale(1); }
.lb-stage {
  transform: scale(.96);
  transition: transform var(--dur-modal) var(--ease-out);
  max-width: min(1200px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.lb-stage img, .lb-stage video { transition: opacity 180ms var(--ease-out); }
.lb-stage.is-swapping img, .lb-stage.is-swapping video { opacity: 0; }
.lb-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
#lbCaption {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--color-foreground);
  text-align: center;
}
.lb-close, .lb-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--color-border);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); width: 48px; height: 48px; }
.lb-close svg { width: 24px; height: 24px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav svg { width: 28px; height: 28px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb-next { right: clamp(.5rem, 2vw, 1.5rem); }
.lb-counter {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.8rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted-fg);
  font-size: .9rem;
  letter-spacing: .08em;
}
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; top: auto; bottom: clamp(1rem, 3vw, 1.8rem); transform: none; }
  .lb-nav:hover { transform: scale(1.08); }
  .lb-prev { left: clamp(1rem, 8vw, 3rem); }
  .lb-next { right: clamp(1rem, 8vw, 3rem); }
  .lb-counter { bottom: auto; top: clamp(1rem, 3vw, 2rem); left: clamp(1rem, 3vw, 2rem); transform: none; }
  .lb-stage img { max-height: 70vh; }
}

/* ===== Video lightbox stage ===== */
.lb-stage video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

/* ===== Services cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform var(--dur-hover) var(--ease-out), border-color var(--dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
}
.card-icon { width: 34px; height: 34px; color: var(--color-accent); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.card p { color: var(--color-muted-fg); font-size: .93rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.about-copy { color: var(--color-muted-fg); margin: 1rem 0; }
.checklist { list-style: none; margin-top: 1.2rem; }
.checklist li { padding-left: 1.8rem; position: relative; margin: .6rem 0; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: .9em; height: .45em;
  border-left: 2.5px solid var(--color-accent);
  border-bottom: 2.5px solid var(--color-accent);
  transform: rotate(-45deg);
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  padding: 1.8rem .5rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  line-height: 1.1;
}
.stat span { color: var(--color-muted-fg); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ===== Booking ===== */
.booking-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; align-items: start; }
.booking-info p { color: var(--color-muted-fg); margin-top: 1rem; }
.contact-lines { list-style: none; margin-top: 1.6rem; }
.contact-lines li { display: flex; align-items: center; gap: .7rem; margin: .8rem 0; color: var(--color-muted-fg); }
.contact-lines .icon { color: var(--color-accent); }
.contact-lines a { color: var(--color-foreground); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--color-border); }
.contact-lines a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
}
.booking-form label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 1.1rem; }
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 48px;
  margin-top: .4rem;
  padding: .75rem .95rem;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-foreground);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.booking-form textarea { min-height: 0; resize: vertical; }
.booking-form input::placeholder,
.booking-form textarea::placeholder { color: #52525b; }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .18);
}
.booking-form input[type="date"] { color-scheme: dark; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { margin-top: .9rem; font-size: .9rem; color: var(--color-accent); font-weight: 500; text-align: center; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--color-border); padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--color-muted-fg); font-size: .9rem; }
.footer-logo { height: 36px; }
.back-top { color: var(--color-accent); text-decoration: none; font-weight: 500; }
.back-top:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .tile, .tile-wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .about-inner, .booking-inner { grid-template-columns: 1fr; gap: 2.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem 24px 1.5rem;
    gap: .6rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .6rem 0; width: 100%; }
  .nav-toggle { display: block; }
}

@media (max-width: 480px) {
  .gallery, .cards, .form-row, .stats { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-bottom { margin-top: 2rem; }
}

/* mobile: filters become one swipeable row instead of stacking */
@media (max-width: 700px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* bleed to the screen edges so it reads as a scrollable strip */
    margin-inline: -24px;
    padding-inline: 24px;
    padding-bottom: .25rem;
  }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; scroll-snap-align: start; }
}
