/* ==========================================================================
   Alternative Audiovisual Productions — shared design system
   "Studio Grid" — the concept the client selected. One stylesheet for every
   page so the home page and the five category pages cannot drift apart.
   ========================================================================== */

:root {
  --green: #a3c13a;
  --green-hi: #c0e14b;
  --bg: #0a0a0a;
  --panel: #111;
  --line: #262626;
  --txt: #f4f4f1;
  --muted: #999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--txt);
  font-family: 'Space Grotesk', sans-serif; line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Keyboard users must be able to see where they are. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #000; padding: 12px 20px; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; justify-content: space-between;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.nav .brand { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-right: 1px solid var(--line); }
.nav .brand img { height: 40px; }
.nav .links { display: flex; }
.nav .links a {
  display: flex; align-items: center; padding: 0 22px;
  border-left: 1px solid var(--line);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  transition: background .2s, color .2s;
}
.nav .links a:hover { background: var(--green); color: #000; }
.nav .links a[aria-current="page"] { color: var(--green); }
.nav .links a[aria-current="page"]:hover { color: #000; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; background: none; border: none; border-left: 1px solid var(--line);
  color: var(--txt); padding: 0 20px; cursor: pointer;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-family: inherit;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px;
  border: 1px solid var(--green); color: var(--green);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em;
  transition: background .2s, color .2s; cursor: pointer;
}
.btn:hover, .btn.solid { background: var(--green); color: #000; }
.btn.solid:hover { background: var(--green-hi); }

/* ---------- Sections ---------- */
section { border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 42px 4vw 30px; gap: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); text-transform: uppercase; font-weight: 700; }
.sec-head .idx { color: var(--green); font-size: .9rem; letter-spacing: .2em; }

/* ---------- Category page hero ---------- */
.page-hero { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.page-hero .copy { padding: 7vh 4vw; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; text-transform: uppercase; font-weight: 700; }
.page-hero h1 span { color: var(--green); }
.page-hero .lede { margin-top: 22px; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 300; max-width: 52ch; }
.page-hero .media { position: relative; min-height: 340px; background: var(--panel); }
.page-hero .media img, .page-hero .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.crumb { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumb a:hover { color: var(--green); }

/* Service checklist (mirrors the original Wix pages) */
.svc-list { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.svc-list li { list-style: none; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; border: 1px solid var(--line); padding: 7px 14px; color: var(--muted); }

/* ---------- Video grid ---------- */
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.vgrid.two { grid-template-columns: repeat(2, 1fr); }
.vgrid.four { grid-template-columns: repeat(4, 1fr); }
.vgrid.five { grid-template-columns: repeat(5, 1fr); }
.vgrid.four .vcard:nth-child(3n) { border-right: 1px solid var(--line); }
.vgrid.four .vcard:nth-child(4n) { border-right: none; }
.vgrid.five .vcard:nth-child(3n) { border-right: 1px solid var(--line); }
.vgrid.five .vcard:nth-child(5n) { border-right: none; }
.vgrid.five .meta { padding: 14px 16px 18px; }
.vgrid.five .meta .ttl { font-size: .92rem; }
.vcard {
  position: relative; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; border-top: 0; border-left: 0; padding: 0; text-align: left;
  color: inherit; font: inherit; cursor: pointer; display: block; width: 100%;
}
.vgrid:not(.two) .vcard:nth-child(3n) { border-right: none; }
.vgrid.two .vcard:nth-child(2n) { border-right: none; }
.vcard .thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--panel); }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: transform .45s, filter .3s; }
.vcard:hover .thumb img, .vcard:focus-visible .thumb img { transform: scale(1.05); filter: none; }
.vcard .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.vcard:hover .play { background: rgba(0,0,0,.25); }
.vcard .play svg {
  width: 62px; height: 62px; fill: #fff; padding: 17px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.75); border-radius: 50%;
  box-sizing: border-box; backdrop-filter: blur(2px);
  transition: fill .2s, transform .2s, background .2s, border-color .2s;
}
.vcard:hover .play svg, .vcard:focus-visible .play svg {
  fill: #000; background: var(--green); border-color: var(--green); transform: scale(1.08);
}
/* A .vcard is normally a full-bleed grid tile, but the film blocks reuse it as an
   inline button — restore the button padding that .vcard's reset strips off. */
.btn.vcard { padding: 13px 30px; width: auto; display: inline-block; border: 1px solid var(--green); }
.vcard .meta { display: block; padding: 18px 22px 22px; }
.vcard .meta .ttl { display: block; font-size: 1.02rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.vcard .meta .sub { display: block; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 300; font-size: .86rem; margin-top: 5px; }
.vcard .dur { display: block; margin-top: 6px; color: var(--green); font-size: .72rem; letter-spacing: .14em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0,0,0,.94); padding: 4vh 4vw;
}
.lightbox.on { display: flex; align-items: center; justify-content: center; }
.lightbox .inner { width: min(1200px, 100%); }
.lightbox video { width: 100%; max-height: 78vh; background: #000; }
.lightbox .lb-title { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lightbox .lb-title h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; }
.lightbox .lb-title p { color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 300; font-size: .88rem; }
.lb-close {
  position: absolute; top: 18px; right: 22px; background: none; border: 1px solid var(--line);
  color: var(--txt); width: 46px; height: 46px; cursor: pointer; font-size: 1.3rem; line-height: 1;
  font-family: inherit; transition: background .2s, color .2s;
}
.lb-close:hover { background: var(--green); color: #000; border-color: var(--green); }

/* ---------- Film (documentary) blocks ---------- */
.film { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; }
.film:nth-of-type(even) .film-media { order: -1; border-right: 1px solid var(--line); }
.film-copy { padding: 46px 4vw; }
.film-media { position: relative; border-left: 1px solid var(--line); min-height: 320px; }
.film:nth-of-type(even) .film-media { border-left: none; }
.film-copy .kicker { color: var(--green); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.film-copy h3 { font-size: clamp(1.7rem, 3.2vw, 2.7rem); text-transform: uppercase; margin-top: 10px; line-height: 1.05; }
.film-copy .sub { color: var(--muted); font-style: italic; margin-top: 6px; font-family: 'Inter', sans-serif; font-weight: 300; }
.film-copy .body { margin-top: 20px; font-family: 'Inter', sans-serif; font-weight: 300; color: #cfcfc9; }
.film-copy .body p + p { margin-top: 13px; }
.credits { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.credits div span { display: block; color: var(--muted); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.credits div b { font-weight: 500; font-size: .92rem; }
.laurels { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.laurels li { list-style: none; font-size: .72rem; letter-spacing: .08em; border: 1px solid var(--line); padding: 6px 12px; color: var(--muted); }
.laurels li.win { border-color: var(--green); color: var(--green); }

/* ---------- Photography masonry ---------- */
.masonry { columns: 3 300px; column-gap: 0; border-top: 1px solid var(--line); }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  break-inside: avoid; margin: 0; position: relative; line-height: 0;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.masonry img { width: 100%; filter: grayscale(30%); transition: filter .35s, opacity .35s; }
.masonry button:hover img, .masonry button:focus-visible img { filter: none; opacity: .9; }
.lightbox img.lb-img { width: 100%; max-height: 82vh; object-fit: contain; }

/* ---------- Location strip (drone) ---------- */
.locations { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.loc-pill { padding: 14px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.loc-pill b { color: var(--green); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 4vw; border-bottom: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); text-transform: uppercase; }
.cta-band h2 span { color: var(--green); }

/* ---------- Footer ---------- */
footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 4vw; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .78rem; }
footer img { height: 40px; }
footer .social { display: flex; gap: 16px; }
footer .social a:hover { color: var(--green); }
footer svg { width: 17px; height: 17px; fill: currentColor; }
.foot-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-nav a:hover { color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) and (min-width: 951px) {
  .vgrid.five { grid-template-columns: repeat(2, 1fr); }
  .vgrid.five .vcard:nth-child(3n) { border-right: 1px solid var(--line); }
  .vgrid.five .vcard:nth-child(2n) { border-right: none; }
}
@media (max-width: 950px) {
  .nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav .links.open { display: flex; }
  .nav .links a { border-left: none; border-top: 1px solid var(--line); padding: 15px 20px; }
  .nav-toggle { display: block; }
  .page-hero, .film, .film:nth-of-type(even) { grid-template-columns: 1fr; }
  .page-hero .copy { border-right: none; border-bottom: 1px solid var(--line); }
  .film-media, .film:nth-of-type(even) .film-media { order: 0; border-left: none; border-top: 1px solid var(--line); }
  .vgrid, .vgrid.two, .vgrid.four, .vgrid.five { grid-template-columns: 1fr; }
  .vgrid.four .vcard, .vgrid.five .vcard { border-right: none; }
  .vcard, .vgrid.two .vcard { border-right: none; }
  .masonry { columns: 2 160px; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
  .lightbox { padding: 2vh 3vw; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
