/* GALLERY PAGE
   Standalone stylesheet, this page does not load styles.css.
   Works together with script.js. */

/* TOKENS */
:root{
  --font-display:"Bebas Neue","Arial Narrow",Impact,sans-serif;
  --font-body:"Outfit",system-ui,-apple-system,"Segoe UI",sans-serif;

  --shell:1280px;
  --gutter:clamp(1.25rem,4vw,3rem);
  --nav-h:8rem;

  --fs-head:clamp(30px,3.6vw,48px);
  --fs-body:clamp(17px,1.15vw,20px);
  --fs-tag:clamp(3rem,11.5vw,180px);
  --fs-nav:clamp(18px,1.6vw,24px);
  --fs-eyebrow:clamp(15px,1.5vw,21px);
  --fs-social:clamp(13px,1.1vw,16px);

  --ease:cubic-bezier(.16,1,.3,1);
  --ease-io:cubic-bezier(.65,0,.35,1);
}

:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#000000;
  --surface:#1F1E18;
  --text:#F4F1EA;
  --muted:#9A9588;
  --faint:#6B675D;
  --hairline:#2F2D26;
  --hairline-strong:#4A473D;
  --placeholder:#6E6A5F;
  --glass:rgba(22,21,15,.72);
  --lift:0 22px 44px -20px rgba(0,0,0,.8);
  --fill-image:url("/assets/photos/hero-fill-dark.jpeg");
}

:root[data-theme="light"]{
  color-scheme:light;
  --bg:#F4F1EA;
  --surface:#ECE8DE;
  --text:#16150F;
  --muted:#6E6A60;
  --faint:#A8A396;
  --hairline:#DAD5C8;
  --hairline-strong:#C9C4B7;
  --placeholder:#A39E91;
  --glass:rgba(244,241,234,.78);
  --lift:0 22px 44px -22px rgba(22,21,15,.4);
  --fill-image:url("/assets/photos/hero-fill-light.jpg");
}

/* BASE */
*,*::before,*::after{ box-sizing:border-box; }

html{
  -webkit-text-size-adjust:100%;
  scrollbar-color:var(--hairline-strong) var(--bg);
}
html.menu-open{ overflow:hidden; }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-weight:300;
  font-size:var(--fs-body);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
}

img{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; color:inherit; }

::selection{ background:var(--text); color:var(--bg); }
:focus-visible{ outline:1.5px solid var(--text); outline-offset:3px; }

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

/* theme switch animation */
::view-transition-old(root),
::view-transition-new(root){ animation:none; mix-blend-mode:normal; }
::view-transition-old(root){ z-index:1; }
::view-transition-new(root){ z-index:2; }
.theme-fade, .theme-fade *{
  transition:background-color .6s ease, color .6s ease, border-color .6s ease !important;
}

/* SHARED PIECES */
.wrap{
  width:100%;
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:var(--gutter);
}
.section{
  position:relative;
  min-height:100vh;
  min-height:100svh;
  display:flex; flex-direction:column; justify-content:center;
  padding:calc(var(--nav-h) + clamp(1rem,3vh,2.5rem)) 0 clamp(2rem,6vh,4.5rem);
}

/* h2 style */
h2{
  margin:0;
  font-family:var(--font-body);
  font-weight:700;
  font-size:var(--fs-head);
  line-height:1.2;
  letter-spacing:-.005em;
  text-transform:capitalize;
  text-wrap:balance;
}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:1rem 2.1rem;
  border:1px solid var(--text);
  border-radius:999px;
  font-size:.9rem; font-weight:400; letter-spacing:.03em;
  text-decoration:none;
  cursor:pointer;
  transition:background-color .4s var(--ease), color .4s var(--ease),
             border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn-solid{ background:var(--text); color:var(--bg); }
.btn-solid:hover{ background:transparent; color:var(--text); }
.btn-ghost{ background:transparent; color:var(--text); }
.btn-ghost:hover{ background:var(--text); color:var(--bg); }

/* SCROLL REVEAL (script.js adds .is-in) */
.js [data-reveal]{
  transition-property:opacity, filter, transform;
  transition-duration:1s;
  transition-timing-function:var(--ease);
  transition-delay:var(--rd,0ms);
}
.js [data-reveal]:not(.is-in){
  opacity:0;
  filter:blur(var(--rb,10px));
  transform:translate3d(0,var(--ry,34px),0);
}
.js [data-reveal][data-from="above"]:not(.is-in){
  transform:translate3d(0,calc(var(--ry,34px) * -1),0);
}

/* NAV */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:50;
  height:var(--nav-h);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  gap:1.5rem;
  padding-inline:var(--gutter);
  border-radius:0;
  background:transparent;
  box-shadow:none;
  transition:opacity 1.1s var(--ease) 1.1s, transform 1.1s var(--ease) 1.1s,
             height .5s var(--ease), top .5s var(--ease), left .5s var(--ease), right .5s var(--ease),
             border-radius .5s var(--ease), background-color .5s var(--ease),
             box-shadow .5s var(--ease), backdrop-filter .5s var(--ease);
}
.nav.is-scrolled{
  top:clamp(.6rem,1.6vh,1.1rem);
  left:clamp(.9rem,3vw,2rem);
  right:clamp(.9rem,3vw,2rem);
  height:7.75rem;
  border-radius:999px;
  background:var(--glass);
  backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  box-shadow:var(--lift);
}
.js:not(.is-loaded) .nav{ opacity:0; transform:translate3d(0,-14px,0); }

.wordmark{
  justify-self:start;
  display:flex; align-items:center;
  text-decoration:none;
}
.wordmark img{
  display:block;
  height:clamp(80px,10vw,112px);
  width:auto;
}

.nav-links{
  display:flex; gap:clamp(1.5rem,3vw,3.25rem);
  list-style:none; margin:0; padding:0;
}
.nav-links a{
  display:block; padding:.4rem 0;
  font-size:var(--fs-nav); font-weight:400;
  letter-spacing:.14em; text-transform:uppercase;
  color:var(--text); text-decoration:none;
  transition:color .3s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="true"]{ color:var(--muted); }

.nav-right{
  grid-column:3;
  justify-self:end;
  display:flex; align-items:center; gap:.6rem;
}

.theme-toggle,
.menu-toggle{
  width:42px; height:42px;
  display:grid; place-items:center;
  padding:0;
  background:transparent;
  border:1px solid var(--hairline-strong);
  border-radius:50%;
  color:var(--text);
  cursor:pointer;
  transition:border-color .3s ease, background-color .3s ease;
}
.theme-toggle:hover,
.menu-toggle:hover{ border-color:var(--text); }
.theme-toggle svg{ width:18px; height:18px; transition:transform .9s var(--ease); }
:root[data-theme="light"] .theme-toggle svg{ transform:rotate(180deg); }

.js .theme-toggle{ animation:ring-breathe 3s var(--ease-io) infinite; }
.theme-toggle:hover,
.theme-toggle:focus-visible{ animation-play-state:paused; }
@keyframes ring-breathe{
  0%,100%{ box-shadow:inset 0 0 0 0 var(--text), 0 0 0 0 transparent; border-color:var(--hairline-strong); }
  50%    { box-shadow:inset 0 0 0 2px var(--text), 0 0 0 5px transparent; border-color:var(--text); }
}

.menu-toggle{ display:none; position:relative; }
.menu-toggle span{
  position:absolute; left:50%; top:50%;
  width:16px; height:1px; background:currentColor;
  transition:transform .5s var(--ease);
}
.menu-toggle span:first-child{ transform:translate(-50%,-3px); }
.menu-toggle span:last-child { transform:translate(-50%, 3px); }
.menu-toggle[aria-expanded="true"] span:first-child{ transform:translate(-50%,0) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform:translate(-50%,0) rotate(-45deg); }

.menu{
  position:fixed; inset:0; z-index:40;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background:var(--bg);
  clip-path:inset(0 0 100% 0);
  visibility:hidden;
  transition:clip-path .75s var(--ease-io), visibility 0s linear .75s;
}
.menu.is-open{
  clip-path:inset(0 0 0 0);
  visibility:visible;
  transition:clip-path .75s var(--ease-io), visibility 0s;
}
.menu ul{ list-style:none; margin:0; padding:0; }
.menu li{ overflow:hidden; }
.menu a{
  display:block;
  font-family:var(--font-display);
  font-size:clamp(3rem,12vw,5.25rem); line-height:1.02;
  letter-spacing:.01em;
  text-decoration:none;
  color:var(--muted);
  transform:translate3d(0,105%,0);
  transition:transform .8s var(--ease), color .3s ease;
}
.menu a[aria-current="true"], .menu a:hover{ color:var(--text); }
.menu.is-open a{ transform:none; transition-delay:calc(.18s + var(--i) * .05s), 0s; }
.menu-foot{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem 2rem;
  font-size:.85rem; color:var(--muted);
}
.menu-foot a{ font:inherit; color:var(--text); transform:none; }

/* HERO */
.hero{
  padding:var(--nav-h) var(--gutter) 0;
  text-align:center;
}
.hero-center{
  flex:1;
  display:grid; place-items:center; align-content:center;
  padding-block:2rem;
}

.eyebrow{
  margin:0 0 .9rem;
  font-size:var(--fs-eyebrow); font-weight:400;
  letter-spacing:.3em; text-transform:uppercase;
  color:var(--muted);
}

.name{
  margin:0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(4.2rem,15.5vw,14rem);
  line-height:.86;
  letter-spacing:.01em;
  text-transform:uppercase;
  background-color:var(--text);
  background-image:var(--fill-image);
  background-size:cover;
  background-position:center 62%;
  background-repeat:no-repeat;
  -webkit-background-clip:text;
          background-clip:text;
  color:transparent;
  /* letter-spacing is not animated here, it made the name jump when it wrapped
     on two lines. Only the photo reveal (background-position) animates. */
  transition:background-position 3s var(--ease) .15s;
}
.js:not(.is-loaded) .name{ background-position:center 25%; }

@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .name{ color:var(--text); background-image:none; }
}

.socials{
  display:flex; flex-wrap:wrap; justify-content:center;
  gap:clamp(1rem,3vw,2.25rem);
  margin:1.9rem 0 0; padding:0; list-style:none;
}
.socials a{
  display:inline-flex; align-items:center; gap:.6rem;
  font-size:var(--fs-social); font-weight:400;
  letter-spacing:.18em; text-transform:uppercase;
  text-decoration:none;
  opacity:.8;
  transition:opacity .25s ease;
}
.socials a:hover{ opacity:1; }
.socials svg{ width:1.15em; height:1.15em; fill:currentColor; flex:none; }

.hero-foot{
  display:flex; flex-direction:column; align-items:center;
  gap:clamp(1.25rem,3.2vh,2rem);
  padding-bottom:clamp(1.5rem,4vh,2.5rem);
}
.hero-cta{ box-shadow:var(--lift); }
.hero-cta:hover{ transform:translateY(-3px); }

/* button floats to the bottom-right after the hero.
   script.js toggles .is-docked and moves the button to <body> while docked. */
.hero-cta-icon{ display:none; width:20px; height:20px; }
.hero-cta-icon svg{
  width:100%; height:100%;
  fill:none; stroke:currentColor; stroke-width:1.6;
  stroke-linecap:round; stroke-linejoin:round;
}
.hero-cta.is-docked{
  position:fixed;
  right:clamp(1rem,4vw,2rem);
  bottom:clamp(1rem,4vh,2rem);
  z-index:60;
  width:56px; height:56px;
  padding:0;
  border-radius:50%;
}
.hero-cta.is-docked .hero-cta-label{ display:none; }
.hero-cta.is-docked .hero-cta-icon{ display:block; }
.hero-cta-placeholder{ display:inline-block; }

.scroll-cue{
  display:block; line-height:0;
  color:var(--hairline-strong);
  animation:drift 2.6s ease-in-out infinite;
}
.scroll-cue:hover{ color:var(--text); }
.scroll-cue svg{ width:16px; height:26px; stroke:currentColor; fill:none; stroke-width:1.2; }
@keyframes drift{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(7px); } }

/* page load animation, then the hero joins the scroll reveals */
.hero [data-reveal]{ --rb:22px; --ry:22px; }
.js:not(.intro-done) .hero [data-reveal]{
  transition-duration:1.7s;
  transition-delay:var(--id,0ms);
}

/* OUR WORK COLLAGE */
.work{
  --gap:clamp(8px,2.2vw,28px);
  --pad-x:clamp(16px,3vw,48px);
  --max-w:100%;
  --card-bg:var(--surface);
  --ratio-reel:2/3;
  --ratio-film:3/2;
  background:var(--bg);
  color:var(--text);
  padding:clamp(28px,4vw,64px) var(--pad-x) clamp(32px,5vw,80px);
}
.work__inner{ width:100%; max-width:var(--max-w); margin:0 auto; }

/* FILTER BAR */
.filter-bar{
  display:flex;
  gap:clamp(1.1rem,3vw,2.5rem);
  margin-bottom:clamp(20px,3.5vw,34px);
  padding-bottom:2px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.filter-bar::-webkit-scrollbar{ display:none; }
.filter-tab{
  appearance:none; -webkit-appearance:none;
  flex:none;
  background:none; border:0; padding:.4rem 0;
  position:relative;
  font-family:var(--font-body);
  font-size:clamp(13px,1.6vw,15px); font-weight:500;
  letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
  cursor:pointer;
  transition:color .3s ease;
}
.filter-tab::after{
  content:""; position:absolute; left:0; right:0; bottom:0;
  height:1px; background:currentColor;
  transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.filter-tab:hover{ color:var(--text); }
.filter-tab.is-active{ color:var(--text); font-weight:600; }
.filter-tab.is-active::after{ transform:scaleX(1); }

/* COLLAGE PANELS (one per category, script.js shows one at a time) */
.collage-panel{ transition:opacity .4s var(--ease), transform .4s var(--ease); }
.collage-panel[hidden]{ display:none; }
.collage-panel.is-leaving{ opacity:0; transform:translateY(10px); pointer-events:none; }
.collage-panel.is-entering{ opacity:0; transform:translateY(10px); transition:none; }

.collage{ display:flex; flex-direction:column; gap:var(--gap); }
.collage__row{
  display:grid; gap:var(--gap);
  align-items:stretch;   /* keeps both cards in a row the same height */
}
.collage__row--a{ grid-template-columns:minmax(0,3fr) minmax(0,6.75fr); }   /* reel + film */
.collage__row--b{ grid-template-columns:minmax(0,6.75fr) minmax(0,3fr); }   /* film + reel */
.collage__row--c{ grid-template-columns:repeat(3,minmax(0,1fr)); }          /* three reels */

.card{
  position:relative; margin:0;
  min-width:0; min-height:0;      /* lets the card shrink inside the grid */
  overflow:hidden;
  background:var(--card-bg);
  isolation:isolate;
  container-type:inline-size;     /* caption size follows the card width */
}
.card--reel{ aspect-ratio:var(--ratio-reel); }
.card--film{ aspect-ratio:var(--ratio-film); }

/* Safari fix: cards collapsed to 0 x 0 because everything inside is absolute.
   width gives the card a size, ::before gives it a height. */
.card{ width:100%; }
.card::before{ content:""; display:block; padding-top:150%; }
.card--film::before{ padding-top:66.6667%; }

.card__media{ position:absolute; inset:0; z-index:0; }
.card__media > video,
.card__media > iframe,
.card__media > img{
  display:block; width:100%; height:100%; object-fit:cover; border:0;
}

.card::after{
  content:"";
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,.14) 40%, rgba(0,0,0,0) 68%);
  opacity:0;
  transition:opacity .35s ease;
  pointer-events:none;
}
.card__caption{
  position:absolute; z-index:2;
  left:6cqw; right:6cqw; bottom:6cqw;
  margin:0;
  font-size:15px;
  font-size:clamp(13px,4.4cqw,17px);
  line-height:1.4;
  letter-spacing:.08em; text-transform:uppercase;
  color:#C9C4B7;
  text-shadow:0 1px 2px rgba(0,0,0,.2);
  opacity:0;
  transform:translateY(8px);
  transition:opacity .35s ease, transform .35s ease;
}

:root[data-theme="light"] .card__caption,
:root[data-theme="light"] .card:hover .card__caption,
:root[data-theme="light"] .card:focus-visible .card__caption,
:root[data-theme="light"] .card:focus-within .card__caption{
  color:#C9C4B7;
}
.card:hover::after,
.card:focus-visible::after,
.card:focus-within::after{ opacity:1; }
.card:hover .card__caption,
.card:focus-visible .card__caption,
.card:focus-within .card__caption{ opacity:1; transform:translateY(0); }
.card:focus-visible{ outline:1px solid var(--text); outline-offset:-1px; }

/* FOOTER */
.site-footer{
  background:var(--bg);
  color:var(--text);
  border-top:1px solid var(--hairline);
  padding-top:clamp(3rem,7vw,5.5rem);
}

.footer-top{
  display:grid;
  grid-template-columns:1.3fr 1fr 1.3fr;
  gap:clamp(2.5rem,6vw,5rem);
  padding-bottom:clamp(2.5rem,6vw,4rem);
}

.footer-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.6rem;
}

.footer-brand h3{
  margin:0;
  font-family:var(--font-body);
  font-weight:600;
  font-size:1rem;
  letter-spacing:.01em;
  text-transform:none;
  /* overrides the global h3 style */
  color:var(--text);
}

.footer-brand img{
  display:block;
  width:clamp(150px, 18vw, 240px);
  height:auto;
  margin-bottom:.2rem;
  filter:drop-shadow(0 16px 30px rgba(0, 0, 0, .35));
}
.footer-brand p{
  margin:0;
  max-width:32ch;
  font-size:var(--fs-body); line-height:1.7;
  color:var(--muted);
}

.footer-col h3,
.footer-contact h3{
  margin:0 0 1.15rem;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}

.footer-links{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column;
  gap:.75rem;
}
.footer-links a{
  text-decoration:none;
  color:var(--text);
  font-size:var(--fs-body);
  transition:opacity .25s ease;
}
.footer-links a:hover{ opacity:.65; }

.footer-contact{
  display:flex; flex-direction:column; align-items:flex-start;
  gap:1.4rem;
}
.footer-contact address{
  margin:0;
  font-style:normal;
  display:flex; flex-direction:column;
  gap:.55rem;
  font-size:var(--fs-body);
  color:var(--muted);
}
.footer-contact address a{
  align-self:flex-start;
  text-decoration:none;
  color:var(--text);
  transition:color .25s ease;
}
.footer-contact address a:hover{ color:var(--muted); }

.footer-bottom{ border-top:1px solid var(--hairline); }
.footer-bottom .wrap{
  padding-block:clamp(1.25rem,3vh,1.75rem);
  text-align:center;
  font-size:var(--fs-body); color:var(--muted);
}

@media (max-width:900px){
  .footer-top{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}

@media (max-width:640px){
  .footer-top{ grid-template-columns:1fr; gap:2.75rem; text-align:center; }
  .footer-brand{ align-items:center; }
  .footer-brand p{ max-width:36ch; }
  .footer-col,
  .footer-contact{ align-items:center; }
  .footer-contact address{ align-items:center; }
  .footer-contact address a{ align-self:center; }
}

/* GALLERY CTA */
.gallery-cta{ align-items:center; text-align:center; }
.gallery-cta .block{ display:inline-block; text-decoration:none; color:inherit; }
.gallery-cta .lines{
  margin:0;
  font-family:var(--font-display);
  font-weight:600;
  font-size:clamp(4.6rem,16vw,14rem);
  line-height:.86;
  letter-spacing:.01em;
  text-transform:uppercase;
}
.gallery-cta .lines span{ display:block; }
.gallery-cta .filled{
  background-color:var(--text);
  background-image:var(--fill-image);
  background-size:cover;
  background-position:center 60%;
  background-repeat:no-repeat;
  -webkit-background-clip:text;
          background-clip:text;
  color:transparent;
  transition:background-position 1.2s var(--ease);
}
.gallery-cta .block:hover .filled,
.gallery-cta .block:focus-visible .filled{ background-position:center 40%; }
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .gallery-cta .filled{ color:var(--text); background-image:none; }
}
.gallery-cta .open{ margin-top:clamp(1.5rem,3.5vh,2.5rem); }
.gallery-cta .block:hover .open,
.gallery-cta .block:focus-visible .open{ background:var(--text); color:var(--bg); }
.gallery-cta .block:focus-visible{ outline-offset:12px; }

/* RESPONSIVE */
@media (max-width:700px){
  .work{ --gap:12px; --pad-x:16px; }
  .collage__row--a,
  .collage__row--b,
  .collage__row--c{ grid-template-columns:minmax(0,1fr); }
  .card__caption{ font-size:14px; letter-spacing:.1em; }
}
@media (hover:none){
  .card::after{ opacity:1; }
  .card__caption{ opacity:1; transform:none; }
}

@media (max-width:760px){
  .nav-center{ display:none; }
  .menu-toggle{ display:grid; }

  /* mobile: plain solid bar, always sticky */
  .nav,
  .nav.is-scrolled{
    top:0; left:0; right:0;
    height:var(--nav-h);
    border-radius:0;
    background:var(--bg);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    box-shadow:0 1px 0 var(--hairline);
  }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    transition-delay:0s !important;
  }
  .js [data-reveal],
  .js [data-reveal]:not(.is-in),
  .js:not(.is-loaded) .nav{ opacity:1; filter:none; transform:none; }
  .js:not(.is-loaded) .name{ background-position:center 62%; }
  .scroll-cue{ animation:none; }
  .theme-toggle{ animation:none; box-shadow:none; }
  .card::after, .card__caption{ transition:none; }
}
