/* =====================================================================
   SQUEAKY VISUALS — Stylesheet
   Structure:
   1. Custom properties / theme
   2. Reset & base
   3. Typography helpers
   4. Layout utilities
   5. Buttons & form fields
   6. Navigation
   7. Hero
   8. Fanned card gallery (Events / VFX)
   9. About section
   10. Gallery grid
   11. Products preview & Shop grid
   12. Newsletter
   13. Contact page
   14. Footer
   15. Scroll-reveal animation
   16. Responsive breakpoints
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Custom properties / theme
   Centralised so a future dark/light toggle only needs to swap these.
   --------------------------------------------------------------------- */
:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --surface: #18181b;
  --surface-hover: #202023;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f2;
  --text-muted: #9a9a9e;
  --text-faint: #6b6b6f;
  --accent: #4d7cfe;
  --accent-soft: rgba(77, 124, 254, 0.15);
  --sale: #ff4747;
  --white: #ffffff;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --nav-height: 84px;

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

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge Chromium */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* horizontal-scroll clip lives on a wrapper, not html/body directly —
   overflow-x:hidden on html/body forces the browser to compute
   overflow-y as auto on them too (a CSS overflow-pairing quirk),
   which breaks position:sticky for every element on the page */
.page-wrap {
  overflow-x: hidden;
}

/* luma-shifter.html's sticky buy box needs a fully unrestricted
   ancestor chain — ANY non-visible overflow value on an ancestor
   (hidden, auto, or clip) breaks position:sticky for descendants, so
   this page opts out of the horizontal clip (verified with no actual
   horizontal overflow risk on this page's layout) rather than sharing
   .page-wrap's default */
.page-wrap--sticky {
  overflow-x: visible;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

svg {
  width: 100%;
  height: 100%;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------------
   3. Typography helpers
   --------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 46em;
  font-size: 1.05rem;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

/* ---------------------------------------------------------------------
   4. Layout utilities
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-alt {
  background: var(--bg-alt);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   5. Buttons & form fields
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--white);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-hover);
}

.field textarea {
  resize: none;
  min-height: 140px;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--sale);
}

.field-error {
  font-size: 0.8rem;
  color: var(--sale);
  min-height: 1em;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}
.form-success.is-visible {
  display: block;
}

.form-success.is-error {
  background: rgba(255, 71, 71, 0.1);
  border-color: var(--sale);
}

/* ---------------------------------------------------------------------
   6. Navigation
   --------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.75), transparent);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  z-index: 510;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* only relevant once .nav-links becomes the fullscreen mobile overlay */
.nav-links-close {
  display: none;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  position: relative;
  padding-block: 0.3rem;
}

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

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 26px;
  height: 26px;
  padding: 0;
  z-index: 510;
}

.nav-toggle .icon-close {
  display: none;
}

/* ---------------------------------------------------------------------
   Icon system — icons are inlined as <svg> directly in the HTML rather
   than referenced via <img>/CSS mask-image. An externally-referenced
   SVG (via <img src> or mask-image: url(...)) is fetched and rendered
   in its own isolated context, so currentColor inside it can't see the
   page's CSS and it can silently fail to tint/render depending on the
   browser; inlining removes that failure mode entirely since the SVG
   is just part of the page's own DOM and currentColor resolves through
   normal CSS inheritance like any other element.
   --------------------------------------------------------------------- */
.icon {
  display: inline-block;
  flex-shrink: 0;
}

/* fill-parent sizing for icons inside fixed-size buttons/containers */
.nav-toggle .icon,
.add-cart-btn .icon,
.video-play .icon,
.carousel-arrow .icon,
.footer-social a .icon,
.info-icon .icon {
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) brightness(0.55);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.35) 45%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  margin-bottom: 1.5rem;
}

.hero-title span {
  display: block;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 42em;
  margin-bottom: 2.25rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-scroll .line {
  width: 1px;
  height: 42px;
  background: var(--text-faint);
  overflow: hidden;
  position: relative;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s infinite var(--ease);
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------------------------------------------------------------------
   8. Fanned card gallery
   --------------------------------------------------------------------- */
.fanned-section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.fanned-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.fanned-group:last-child {
  margin-bottom: 0;
}

.fanned-group h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 2.25rem;
}

.fanned-stack {
  position: relative;
  width: 260px;
  height: 340px;
}

.fanned-stack a,
.fanned-stack .fanned-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease), box-shadow 0.6s var(--ease);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.fanned-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fanned-stack .card-left {
  transform: translateX(-46px) rotate(-9deg);
  filter: brightness(0.55) saturate(0.7);
  z-index: 1;
}

.fanned-stack .card-right {
  transform: translateX(46px) rotate(9deg);
  filter: brightness(0.55) saturate(0.7);
  z-index: 1;
}

.fanned-stack .card-center {
  z-index: 2;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
}

.fanned-stack:hover .card-left {
  transform: translateX(-64px) rotate(-13deg) translateY(-6px);
  filter: brightness(0.75) saturate(0.9);
}

.fanned-stack:hover .card-right {
  transform: translateX(64px) rotate(13deg) translateY(-6px);
  filter: brightness(0.75) saturate(0.9);
}

.fanned-stack:hover .card-center {
  transform: scale(1.04) translateY(-8px);
}

/* ---------------------------------------------------------------------
   9. About section
   --------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------
   10. Gallery grid
   --------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------------------------------------------------------------------
   11. Products preview & Shop grid
   --------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
}

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

.product-card:hover .product-media img {
  transform: scale(1.06);
}

/* stacked static image + GIF — the GIF sits on top at opacity 0 and
   only fades in on hover, so it visually "plays" only while hovered
   without any JS needed to swap sources */
.product-media-gif {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.product-media-hover-gif:hover .product-media-gif {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: var(--sale);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  z-index: 2;
}

.rating {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: rgba(10, 10, 11, 0.75);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

.rating .icon-star {
  width: 11px;
  height: 11px;
  color: #ffc93c;
}

.add-cart-btn {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  color: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
  z-index: 2;
}

.product-card:hover .add-cart-btn {
  opacity: 1;
  transform: translateY(0);
}

.add-cart-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.add-cart-btn.is-added {
  background: var(--accent);
  color: var(--white);
}

.product-info {
  padding: 1.1rem 1.2rem 1.4rem;
}

.product-category {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.product-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-current {
  color: var(--sale);
  font-weight: 700;
}

.price-was {
  color: var(--text-faint);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.products-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Shop page specific — no --nav-height compensation needed here since
   the shop page uses the static (non-overlay) .nav-split header */
.shop-hero {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  text-align: center;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}

.filter-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.filter-pill.is-active {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.product-card[hidden] {
  display: none;
}

.shop-empty {
  display: none;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.shop-empty.is-visible {
  display: block;
}

/* ---------------------------------------------------------------------
   11b. Product detail page
   --------------------------------------------------------------------- */
a.product-media {
  display: block;
}

.product-page-hero {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.product-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: color 0.25s var(--ease);
}

.product-back-link:hover {
  color: var(--white);
}

.product-back-link .icon {
  width: 16px;
  height: 16px;
}

/* standalone product video isn't part of a carousel, so its play
   button is visible by default instead of only when "active" */
.product-video-wrap .video-play:not(.is-hidden) {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------------------
   11c. Product page hero layout — media column + sticky buy box
   --------------------------------------------------------------------- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  /* stretch (default) so .product-buy-col matches the tall content
     column's height — the sticky buy box needs that extra room in
     its own parent to visibly "float" while the page scrolls past */
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.product-gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.85rem 0 clamp(3rem, 6vw, 5rem);
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  transition: border-color 0.3s var(--ease);
}

.gallery-thumb:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

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

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.product-buy-box {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.product-buy-box .product-category {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.product-buy-box .section-heading {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.product-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-item .icon-star {
  width: 13px;
  height: 13px;
  color: #ffc93c;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-price-row .price-current {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--white);
}

.btn-buy {
  flex-shrink: 0;
  padding: 1rem 2.25rem;
}

.spec-grid {
  margin: 1.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.9rem;
}

.spec-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.spec-item dt {
  color: var(--text-muted);
}

.spec-item dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.spec-item dd a {
  color: var(--accent);
  font-weight: 600;
}

.spec-item dd a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-buy-box {
    position: static;
  }
}

.product-gallery-item.ratio-16-9 {
  aspect-ratio: 16 / 9;
  /* spans both columns so its width matches the two 4:3 boxes above it combined */
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-gallery-item.ratio-16-9 {
    grid-column: 1;
  }
}

.product-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* compatibility line + feature-pill row under the product title */
.product-compat {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.product-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* alternating media + text feature rows (Overlays / Controls) */
.feature-row {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1000px;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
}

.feature-row.is-reverse {
  flex-direction: row-reverse;
}

.feature-media {
  flex: 0 0 clamp(220px, 38vw, 380px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

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

.feature-heading {
  /* matches .section-heading's size so headings read as the same
     visual "weight" of title throughout the product page */
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  margin: 0 0 1.25rem;
  color: var(--white);
}

.feature-text {
  flex: 1 1 auto;
  min-width: 0;
}

.feature-list {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  list-style: none;
  margin: 0;
  padding: 0;
}

.control-item {
  margin-bottom: 1.6rem;
}

.control-item:last-child {
  margin-bottom: 0;
}

.control-item h4 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--white);
  margin: 0 0 0.35rem;
}

.control-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .feature-row,
  .feature-row.is-reverse {
    flex-direction: column;
  }

  .feature-media {
    flex-basis: auto;
    width: 100%;
    max-width: 340px;
  }
}

/* "Why Luma Shifter?" copy block + "Perfect For" tag row */
.product-why {
  max-width: 720px;
  margin: 0 auto clamp(4rem, 8vw, 7rem);
}

.product-why p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0 0 1rem;
}

.product-why .feature-list {
  margin-bottom: 3.5rem;
}

.product-why h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1.25rem;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.product-credits {
  text-align: center;
  padding-top: 3rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-credits span {
  display: inline-block;
  margin: 0 1.5rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.product-credits a {
  color: var(--white);
  text-decoration: underline;
}

/* ---------------------------------------------------------------------
   12. Newsletter
   --------------------------------------------------------------------- */
.newsletter {
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  color: var(--text);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.newsletter-form .btn {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   13. Contact page
   --------------------------------------------------------------------- */
/* no --nav-height compensation needed — contact page uses the static
   (non-overlay) .nav-split header, same as shop */
.contact-hero {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  text-align: center;
}

.contact-grid {
  display: grid;
}

.contact-form {
  width: 100%;
  max-width: 560px;
}


.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  filter: grayscale(70%) invert(92%) contrast(90%);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.25rem;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-instagram .icon {
  width: 1.1em;
  height: 1.1em;
}

.footer-instagram:hover {
  color: var(--accent);
}

.footer-nav-col h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.footer-nav-col ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-nav-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease);
}

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

.footer-bottom {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------------------------------------------------------------------
   15. Scroll-reveal animation
   --------------------------------------------------------------------- */
/* Only hide .reveal content once JS confirms it can un-hide it again
   (html.js is set by an inline script in <head>) so the page is fully
   visible for no-JS visitors, crawlers, and print. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--stagger-index, 0) * 90ms);
}

/* ---------------------------------------------------------------------
   16. Responsive breakpoints
   --------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
    z-index: 505;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .nav-links-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 26px;
    height: 26px;
    background: none;
    border: none;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .nav-links-close .icon {
    width: 100%;
    height: 100%;
  }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* the header toggle only opens the menu — closing happens via the
     dedicated .nav-links-close button inside the overlay itself, so
     the header button hides instead of doubling up as a second X */
  body.nav-open .nav-toggle {
    visibility: hidden;
  }

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

  .about-media {
    aspect-ratio: 16 / 10;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .fanned-stack {
    width: 220px;
    height: 290px;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 72px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }

  .products-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .fanned-stack {
    width: 190px;
    height: 250px;
  }

  .fanned-stack .card-left {
    transform: translateX(-30px) rotate(-9deg);
  }
  .fanned-stack .card-right {
    transform: translateX(30px) rotate(9deg);
  }
}

@media (max-width: 420px) {
  .products-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   17. Split nav (home page) — Shop / centered logo / Contact
   Scoped under .nav-split so the shop/contact pages keep the standard
   nav layout untouched.
   ===================================================================== */
.nav-split-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.nav-split-link {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding-block: 0.3rem;
}

.nav-split-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s var(--ease);
}

.nav-split-link:hover::after {
  width: 100%;
}

.nav-split-shop {
  /* "end" hugs it against the centered logo instead of the far edge */
  justify-self: end;
}

.nav-split-right {
  /* stretch across the full column so .nav-split-actions can be pinned
     to the far right via margin-left:auto while Contact stays flush
     against the logo on the near side */
  justify-self: stretch;
  display: flex;
  align-items: center;
}

.nav-split-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-split-right .nav-toggle {
  color: var(--white);
}

/* dedicated header-height variable for the home page only, since its
   logo is much taller than the standard nav — keeps shop/contact's
   --nav-height untouched */
:root {
  --home-nav-height: clamp(6.8rem, calc(4rem + 5.6vw), 8.4rem);
}

.nav-split {
  /* overrides .site-header's position:fixed — the home page header is
     part of the normal document flow instead of an overlay, so it can
     never overlap the carousel titles below it; it just scrolls away
     naturally with the rest of the page like ordinary content */
  position: static;
  height: var(--home-nav-height);
  /* content sits near the top of the header box instead of vertically
     centered within it, which used to leave a large empty gap above
     SHOP/logo/CONTACT */
  align-items: flex-start;
  padding-top: 1.5rem;
}

.nav-split .logo img {
  /* logo.png is cropped tight to its visible pixels (no transparent
     padding), so height here maps directly to the on-screen size —
     unlike the old uncropped square asset, this can't be sized by
     height alone without checking it doesn't overrun the row's width */
  height: clamp(2.8rem, 5.6vw, 4.4rem);
  width: auto;
  transition: height 0.3s var(--ease);
}

/* the mobile overlay menu is reused from .nav-links; hide it on desktop
   here since it would otherwise also render inline via the base rule */
.nav-split .nav-links {
  display: none;
}

@media (max-width: 860px) {
  /* .nav-split-shop is a direct grid item (1fr auto 1fr); display:none
     would remove it from the grid entirely and shift the logo out of
     the center column, so hide it with visibility instead to keep its
     track reserved. .nav-split-contact isn't a grid item itself (it's
     nested inside the .nav-split-right flex cluster) so display:none
     there is safe. */
  .nav-split-shop {
    visibility: hidden;
  }

  .nav-split-contact {
    display: none;
  }

  .nav-split .logo img {
    height: clamp(0.72rem, 3.2vw, 1.04rem);
  }

  :root {
    --home-nav-height: clamp(3rem, calc(2.3rem + 3.2vw), 3.4rem);
  }

  .nav-split-right {
    gap: 1.25rem;
  }

  .nav-split .nav-links {
    display: flex;
  }
}

/* =====================================================================
   18. Portfolio video carousels (home page)
   ===================================================================== */
.portfolio-row {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
}

.portfolio-row:first-of-type {
  /* no fixed-header offset needed anymore — the header sits in normal
     document flow above this section, not overlaying it */
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

/* Placeholder for the "JMH Beda" logo font — swap the font-family below
   once a properly licensed version is available (JMH Beda itself is
   personal-use-only; see conversation before embedding it here). */
.portfolio-title {
  /* matches the SHOP/CONTACT nav text treatment instead of a decorative
     font — also means JMH Beda (personal-use-only license) is no
     longer used anywhere on the site */
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.9rem, 2vw, 1.375rem);
  margin: 0 0 0.6rem;
  color: var(--white);
}

.video-carousel {
  position: relative;
  width: 100%;
}

/* .video-viewport wraps just the track + arrows (not the dots below)
   so the arrows' top:50% centers on the card row itself, not the
   whole carousel including dot-indicator height */
.video-viewport {
  position: relative;
}

/* slight white glow behind each carousel */
.video-viewport::before {
  content: "";
  position: absolute;
  inset: -14% -6%;
  background: radial-gradient(ellipse 60% 70% at center, rgba(255, 255, 255, 0.22), transparent 75%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* softer, larger "mist" layer behind the main glow, with a slow
   breathing drift for a bit of atmosphere */
.video-viewport::after {
  content: "";
  position: absolute;
  inset: -32% -14%;
  background: radial-gradient(ellipse 70% 80% at 50% 55%, rgba(255, 255, 255, 0.1), transparent 72%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
  animation: mistDrift 10s ease-in-out infinite;
}

@keyframes mistDrift {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-viewport::after {
    animation: none;
  }
}

.video-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: 1rem;
  padding-inline: max(1.5rem, calc(50% - 450px));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.video-track::-webkit-scrollbar {
  display: none;
}

.video-card {
  flex: 0 0 min(85vw, 900px);
  scroll-snap-align: center;
  /* forces the scroll gesture to stop at every card instead of letting
     a fast flick skip past several snap points — without this, quick
     swipes could overshoot mid-scroll and settle half-cut between two
     cards */
  scroll-snap-stop: always;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  filter: grayscale(1);
  transition: filter 0.6s var(--ease);
}

.video-card.is-active-card .video-frame {
  filter: grayscale(0);
}

/* the standalone product-page preview isn't part of a carousel, so it
   never gains .is-active-card — always render it in full color */
.product-video-wrap .video-frame {
  filter: grayscale(0);
}

.video-frame-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* placeholder video title — swipes with the card since it's inside it */
.video-caption {
  margin: 0.65rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 18px 21px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 2;
}

/* only the active/centered card shows its play button — otherwise
   peeking side cards' buttons visually collide with the fixed prev/next
   arrows near the viewport edges */
.video-card.is-active-card .video-play:not(.is-hidden) {
  opacity: 1;
  pointer-events: auto;
}

.video-play:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}

.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}

.video-volume {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 3;
}

/* visible whenever the play button's card is active, and always on
   the standalone product page preview — unlike the play button it
   doesn't hide while the video is playing, since you can still want
   to adjust sound mid-playback */
.video-card.is-active-card .video-volume,
.product-video-wrap .video-volume {
  opacity: 1;
  pointer-events: auto;
}

.video-mute {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.video-mute:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.video-mute .icon-sound-off {
  display: none;
}

.video-mute.is-muted .icon-sound-on {
  display: none;
}

.video-mute.is-muted .icon-sound-off {
  display: block;
}

/* the slider itself expands into view on hover/focus so it doesn't
   permanently take up space over the video */
.video-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 4px;
  opacity: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.25s var(--ease), opacity 0.25s var(--ease);
}

.video-volume:hover .video-volume-slider,
.video-volume:focus-within .video-volume-slider {
  width: 70px;
  opacity: 1;
}

.video-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.video-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
}

/* mute/volume UI is desktop-only — removed on mobile per request */
@media (max-width: 860px) {
  .video-volume {
    display: none;
  }
}

.carousel-arrow {
  position: absolute;
  /* centers on the video-frame only, not the taller card+caption block:
     100% is the full viewport height (frame + caption zone), so
     subtracting the caption zone before halving lands on the frame's
     true vertical center */
  top: calc((100% - 1.96rem) / 2);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  z-index: 3;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

/* only apply :hover on devices that can actually hover (mouse/trackpad)
   — on touch devices :hover has no "leave" event, so a tap or a swipe
   that crosses the button leaves it stuck blue until something else is
   tapped; touch feedback instead uses the .is-flash class below */
@media (hover: hover) and (pointer: fine) {
  .carousel-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.06);
  }
}

.carousel-arrow.is-flash {
  background: var(--accent);
  border-color: var(--accent);
}

.carousel-prev {
  left: clamp(0.5rem, 4vw, 2.5rem);
}

.carousel-next {
  right: clamp(0.5rem, 4vw, 2.5rem);
}

.icon-flip {
  transform: scaleX(-1);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.carousel-dots button.is-active {
  background: var(--white);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .carousel-arrow {
    width: 38px;
    height: 38px;
    padding: 10px;
  }

  .video-play {
    width: 52px;
    height: 52px;
    padding: 16px 16px 16px 19px;
  }
}

/* =====================================================================
   19. Home page work mosaic — full-bleed video grid
   Edge-to-edge tiles split by thin black seams, rows alternating
   wide+narrow and three-up. Black and white UI, no rounded corners.
   ===================================================================== */
:root {
  --reel-seam: 4px;
  --reel-row-pair: min(30vw, 640px);
  --reel-row-trio: min(26vw, 560px);
}

/* ---------- overlaid header ---------- */
.nav-movie {
  /* sits over the first row of footage and scrolls away with it */
  position: absolute;
  height: auto;
  padding-block: 1.4rem 3rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  border-bottom: 0;
}

.nav-movie-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: clamp(1rem, 2.4vw, 2.75rem);
}

.nav-movie .logo img {
  height: clamp(1.6rem, 2.4vw, 2.2rem);
  width: auto;
}

.nav-movie-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.75rem);
}

.nav-movie-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.25s var(--ease);
}

.nav-movie-links a:hover,
.nav-movie-links a:focus-visible {
  color: var(--white);
}

.nav-movie-cta {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-movie-links .nav-movie-cta {
  color: var(--white);
}

.nav-movie-cta:hover,
.nav-movie-cta:focus-visible,
.nav-movie-links .nav-movie-cta:hover {
  background: var(--white);
  border-color: var(--white);
  color: #000;
}

.nav-movie .nav-toggle {
  color: var(--white);
}

/* the fullscreen mobile menu is only used below the 860px breakpoint */
.nav-movie .nav-links {
  display: none;
}

/* ---------- mosaic ---------- */
.reel {
  /* opt out of the global section padding so footage starts at the very top */
  padding-block: 0;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  grid-auto-rows: var(--reel-row-pair) var(--reel-row-trio);
  gap: var(--reel-seam);
  background: #000;
  border-bottom: var(--reel-seam) solid #000;
}

/* repeating 10-tile rhythm: [wide, narrow] [3-up] [narrow, wide] [3-up] */
.reel-tile {
  grid-column: span 5;
}
.reel-tile:nth-child(10n + 1),
.reel-tile:nth-child(10n + 7) {
  grid-column: span 9;
}
.reel-tile:nth-child(10n + 2),
.reel-tile:nth-child(10n + 6) {
  grid-column: span 6;
}

.reel-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #111;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease);
}

.reel-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 45%),
    rgba(0, 0, 0, 0.38);
  transition: background-color 0.5s var(--ease), opacity 0.5s var(--ease);
}

.reel-meta {
  position: absolute;
  left: clamp(1rem, 1.6vw, 1.6rem);
  right: clamp(1rem, 1.6vw, 1.6rem);
  bottom: clamp(1rem, 1.6vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.reel-cat {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.reel-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.reel-tile:nth-child(10n + 1) .reel-title,
.reel-tile:nth-child(10n + 7) .reel-title {
  font-size: clamp(1.5rem, 2.7vw, 3rem);
}

/* hover devices: footage sits dimmed with the title hidden; hovering
   lifts the shade and brings the title up, like a cut to full light */
@media (hover: hover) and (pointer: fine) {
  .reel-meta {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  .reel-tile:first-child .reel-meta {
    opacity: 1;
    transform: none;
  }

  .reel:hover .reel-tile:first-child:not(:hover) .reel-meta {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  .reel-tile:hover .reel-meta,
  .reel-tile:focus-visible .reel-meta {
    opacity: 1;
    transform: none;
  }

  .reel-tile:hover .reel-shade,
  .reel-tile:focus-visible .reel-shade {
    background-color: rgba(0, 0, 0, 0);
  }

  .reel-tile:hover .reel-video {
    transform: scale(1.035);
  }
}

.reel-tile:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

/* ---------- closing call to action ---------- */
.reel-cta {
  background: #000;
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.reel-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
}

.reel-cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0;
}

.reel-cta-btn {
  padding: 1rem 1.6rem;
}

/* ---------- fullscreen player ---------- */
.reel-player {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: #000;
  padding: clamp(3.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem);
}

.reel-player[hidden] {
  display: none;
}

.reel-player-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-player-video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.reel-player-close {
  position: absolute;
  top: clamp(0.9rem, 2vw, 1.4rem);
  right: clamp(1rem, 3vw, 3rem);
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: var(--white);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.reel-player-close .icon {
  width: 100%;
  height: 100%;
}

.reel-player-close:hover,
.reel-player-close:focus-visible {
  background: var(--white);
  color: #000;
}

.reel-player-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.1rem;
}

.reel-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.reel-player-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.reel-player-nav {
  display: flex;
}

.reel-player-nav button {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.7rem 1.2rem;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.reel-player-nav button + button {
  border-left: 0;
}

.reel-player-nav button:hover,
.reel-player-nav button:focus-visible {
  background: var(--white);
  color: #000;
}

body.reel-open {
  overflow: hidden;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root {
    --reel-row-pair: 40vw;
    --reel-row-trio: 34vw;
  }

  .reel-tile:nth-child(10n + 3) .reel-cat,
  .reel-tile:nth-child(10n + 4) .reel-cat,
  .reel-tile:nth-child(10n + 5) .reel-cat,
  .reel-tile:nth-child(10n + 8) .reel-cat,
  .reel-tile:nth-child(10n + 9) .reel-cat,
  .reel-tile:nth-child(10n + 10) .reel-cat {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-movie-links {
    display: none;
  }

  .nav-movie .nav-links {
    display: flex;
  }
}

@media (max-width: 640px) {
  /* one cinematic tile per row on phones */
  .reel {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 62vw;
  }

  .reel-tile,
  .reel-tile:nth-child(n) {
    grid-column: 1 / -1;
  }

  .reel-tile:nth-child(n) .reel-cat {
    display: block;
  }

  .reel-tile:nth-child(n) .reel-title {
    font-size: 1.6rem;
  }

  .reel-player-video {
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reel-video,
  .reel-meta,
  .reel-shade {
    transition: none;
  }
}
