/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font-main); font-weight: 400; color: #333; background: #fff; display: flex; overflow: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ═══ BRAND COLORS ═══ */
:root {
  --orange: #D4501A;
  --teal:   #2A7D6F;
  --dark:   #1a1a1a;
  --light:  #f9f9f9;
  --font-main: 'Josefin Sans', sans-serif;
  --font-heading: 'The Seasons', serif;
}

/* Display font for headings — overrides --font-main (and the admin
   Theme tab's font picker) specifically for these selectors, since
   The Seasons is a fixed heading face, not a body-text option. */
h1 { font-family: var(--font-heading); }

/* ═══ HAMBURGER ═══ */
#ham-btn {
  position: fixed; top: 24px; left: 24px; z-index: 500;
  width: 36px; height: 36px;
  background: rgba(26,26,26,0.88); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 2px;
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; padding: 0;
  transition: background 0.3s;
}
#ham-btn:hover { background: rgba(26,26,26,1); }
#ham-btn .bar {
  display: block; width: 20px; height: 1.5px; background: #fff;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), opacity 0.25s ease, width 0.35s ease;
  transform-origin: center;
}
#ham-btn.open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#ham-btn.open .bar:nth-child(2) { opacity: 0; width: 0; }
#ham-btn.open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══ LEFT PANEL ═══ */
#left-panel {
  position: fixed; top: 0; left: 0; width: 260px; height: 100vh;
  /* background: rgba(20, 20, 20, 0.72); */
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 50px 30px 40px; z-index: 400;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
#left-panel.hidden { transform: translateX(-260px); }
/* LOGO */
.panel-logo {
  text-align: center; position: relative; z-index: 1; margin-top: 15px;
  width: 100%;
}
.panel-logo img {
  width: 200px; height: auto;
  margin: 0 auto;
  /* white logo on dark bg — invert the orange/teal colors aren't inverted, just make it fit */
  /* filter: brightness(0) invert(1); */
  opacity: 0.92;
}
.panel-logo .logo-tagline {
  font-family: var(--font-main);
  font-size: 9px; font-weight: 300; color: #666;
  letter-spacing: 5px; text-transform: uppercase; margin-top: 10px;
}

/* NAV */
nav { width: 100%; position: relative; z-index: 1; }
nav ul { display: flex; flex-direction: column; align-items: center; gap: 4px; }
nav ul li a {
  display: block; font-family: var(--font-main);
  font-size: 11px; font-weight: 400;
  letter-spacing: 4px; text-transform: uppercase;
  color: #888; padding: 10px 16px; transition: color 0.25s; position: relative;
}
nav ul li a::after {
  content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px; background: var(--orange); transition: width 0.3s;
}
nav ul li a:hover { color: #fff; }
nav ul li a:hover::after { width: 20px; }
nav ul li a.active { color: var(--orange); }
nav ul li a.active::after { width: 20px; }

/* FOOTER */
.panel-footer {
  text-align: center; font-size: 9px; color: #444;
  letter-spacing: 2px; line-height: 1.9; position: relative; z-index: 1;
  font-family: var(--font-main);
}
.panel-footer a { color: #555; transition: color 0.2s; }
.panel-footer a:hover { color: var(--teal); }

/* ═══ RIGHT PANEL ═══ */
#right-panel {
  margin-left: 0; flex: 1; height: 100vh;
  overflow-y: auto; overflow-x: hidden; background: #fff; scroll-behavior: smooth;
}
#right-panel::-webkit-scrollbar { width: 4px; }
#right-panel::-webkit-scrollbar-track { background: #f5f5f5; }
#right-panel::-webkit-scrollbar-thumb { background: #ddd; }

/* ═══ HERO SLIDER ═══ */
#section-home { position: relative; height: 100vh; overflow: hidden; background: #111; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(0.4,0,0.2,1); pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide .slide-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 7s cubic-bezier(0.0,0.0,0.2,1);
}
.hero-slide.active .slide-img { transform: scale(1.0); }
.hero-slide .slide-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.12) 55%, rgba(0,0,0,0.45) 100%);
}

/* hero text */
.hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 80px 80px; z-index: 10; }
.hero-slide-label {
  font-family: var(--font-main); font-size: 10px; font-weight: 300;
  letter-spacing: 6px; text-transform: uppercase; color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.8s 0.3s ease, opacity 0.8s 0.3s ease;
}
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 68px); font-weight: 700;
  color: #fff; line-height: 1.0; margin-bottom: 16px;
  letter-spacing: 3px; text-transform: uppercase;
  transform: translateY(30px); opacity: 0;
  transition: transform 0.9s 0.45s ease, opacity 0.9s 0.45s ease;
  text-shadow: 0 4px 40px rgba(0,0,0,0.3);
}
.hero-slide-cats {
  font-family: var(--font-main);
  font-size: 11px; font-weight: 300; letter-spacing: 4px;
  color: rgba(255,255,255,0.6); text-transform: uppercase;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.8s 0.6s ease, opacity 0.8s 0.6s ease;
  margin-bottom: 28px;
}
.hero-slide-cats .sep { margin: 0 10px; opacity: 0.4; }
.hero-view-btn {
  display: inline-block; border: 1px solid rgba(255,255,255,0.6); color: #fff;
  font-family: var(--font-main); font-size: 10px; font-weight: 400;
  letter-spacing: 4px; text-transform: uppercase;
  padding: 12px 32px; cursor: pointer; background: transparent;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.8s 0.75s ease, opacity 0.8s 0.75s ease, background 0.3s, border-color 0.3s;
}
.hero-view-btn:hover { background: var(--orange); border-color: var(--orange); }
.hero-slide.active .hero-slide-label,
.hero-slide.active .hero-slide-title,
.hero-slide.active .hero-slide-cats,
.hero-slide.active .hero-view-btn { transform: translateY(0); opacity: 1; }

/* dots */
.hero-counter {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero-counter .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.3s, transform 0.3s;
}
.hero-counter .dot.active { background: var(--orange); transform: scale(1.5); }

/* progress */
.hero-progress { position: absolute; bottom: 0; left: 0; height: 2px; background: rgba(255,255,255,0.15); width: 100%; z-index: 10; }
.hero-progress-bar { height: 100%; background: var(--orange); width: 0%; }

/* scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: scrollBounce 2.2s infinite;
}
.hero-scroll-hint span { font-size: 9px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,0.35); font-family: var(--font-main); }
.hero-scroll-hint .arrow-down { width: 1px; height: 36px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); }
@keyframes scrollBounce { 0%,100%{ transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(6px);} }

/* ═══ SECTION SHARED ═══ */
.section-wrap { padding: 72px 72px 84px; }
.section-wrap.alt { background: #f9f9f9; }
.section-label {
  font-family: var(--font-main);
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px;
}
.section-heading {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 28px; letter-spacing: 3px; text-transform: uppercase; color: var(--dark);
  padding-bottom: 22px; margin-bottom: 44px; border-bottom: 1px solid #eee;
}

/* ═══ GALLERIES ═══ */
.gallery-section { margin-bottom: 70px; }
.gallery-section-head { margin-bottom: 18px; }
.gshead-title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark);
  margin-bottom: 5px; cursor: pointer; display: inline-block; transition: color 0.2s;
}
.gshead-title:hover { color: var(--orange); }
.gshead-cats { font-family: var(--font-main); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); }
.gshead-cats .sep { margin: 0 8px; opacity: 0.4; }
.gshead-desc { font-family: var(--font-main); font-size: 13px; font-weight: 300; line-height: 1.7; color: #888; max-width: 640px; margin-top: 8px; }
/* Justified row: every thumb keeps its photo's own aspect ratio (nothing is
   cropped). flex-grow is set to each image's width/height once it loads
   (see galleries.html), so the row fills the width and all thumbs end up the
   same height — portraits narrow, landscapes wide. 1.5 is the pre-load guess. */
.gallery-thumbs { display: flex; gap: 4px; margin-bottom: 12px; }
.gallery-thumb { flex: 1.5 1 0; min-width: 0; overflow: hidden; cursor: pointer; background: #eee; position: relative; }
.gallery-thumb:empty { aspect-ratio: 4/3; }
.gallery-thumb img, .gallery-thumb video { width: 100%; height: auto; display: block; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.gallery-thumb:hover img { transform: scale(1.07); }
.see-more-btn {
  font-family: var(--font-main); font-size: 10px; letter-spacing: 4px; text-transform: uppercase; color: #aaa;
  background: none; border: none; cursor: pointer; font-weight: 400; padding: 4px 0; transition: color 0.2s;
}
.see-more-btn:hover { color: var(--orange); }

/* ═══ FILMS ═══ */
.films-grid { column-count: 3; column-gap: 28px; }
.film-card { cursor: pointer; break-inside: avoid; margin-bottom: 32px; }
@media (max-width: 1200px) { .films-grid { column-count: 2; } }
@media (max-width: 640px)  { .films-grid { column-count: 1; } }
.film-card-cover { aspect-ratio: 16/9; overflow: hidden; background: #eee; position: relative; }
.film-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.film-card:hover .film-card-cover img { transform: scale(1.07); }
.film-card-body { margin-top: 14px; }
.film-card-body .gshead-title { display: block; }

/* ═══ MASONRY OVERLAY (Photos page) ═══ */
#masonry { position: fixed; inset: 0; background: #fff; z-index: 900; display: none; overflow-y: auto; }
#masonry.open { display: block; }
.masonry-head {
  position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,0.96); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; border-bottom: 1px solid #eee;
}
.masonry-title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; color: var(--dark); }
.masonry-count { font-family: var(--font-main); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.masonry-close { background: none; border: none; font-size: 26px; color: #888; cursor: pointer; padding: 4px 8px; transition: color 0.2s; }
.masonry-close:hover { color: var(--orange); }
/* Justified rows, not CSS columns: columns fill top-to-bottom, which scrambles
   a capture-ordered album's left-to-right reading order. Here tiles flow in
   strict album order, row by row. Each tile's --r is its photo's width/height
   (set on load; 1.5 until then), and flex: r 1 r*row-h gives every tile in a
   row the same height with no cropping. The ::after spacer soaks up the
   leftover space so the last row doesn't stretch to full width. */
.masonry-grid { padding: 24px 40px 60px; }
.masonry-row { display: flex; gap: 8px; margin-bottom: 8px; }
.masonry-tile { --r: 1.5; aspect-ratio: var(--r); /* reserves height before the image loads, so lazy-loading still works */ flex: var(--r) 1 0; min-width: 0; cursor: pointer; overflow: hidden; background: #eee; }
.masonry-tile img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.masonry-tile:hover img { transform: scale(1.04); }
@media (max-width: 800px)  { .masonry-grid { padding: 16px 16px 40px; } .masonry-row { gap: 4px; margin-bottom: 4px; } .masonry-head { padding: 14px 16px; } }

/* ═══ ABOUT ═══ */
.about-grid { display: grid; grid-template-columns: 0.5fr 1fr; gap: 60px; align-items: start; }
.about-img-wrap img { width: 100%; display: block; }
.about-content h3 {
  font-family: var(--font-main); font-weight: 700;
  font-size: 18px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--dark); margin-bottom: 18px;
}
.about-content p { font-family: var(--font-main); font-size: 16px; font-weight: 300; line-height: 1.9; color: #666; margin-bottom: 14px; }
.about-recognition { margin-top: 30px; }
.recognition-list { list-style: none; }
.recognition-item { margin-bottom: 16px; }
.recognition-item:last-child { margin-bottom: 0; }
.ri-title { font-family: var(--font-main); font-size: 14px; font-weight: 400; color: #333; margin-bottom: 4px; }
.ri-meta { font-family: var(--font-main); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.ri-meta .sep { margin: 0 8px; opacity: 0.4; }
.ri-link { color: var(--orange); text-decoration: none; }
.ri-link:hover { text-decoration: underline; }

/* ═══ CONTACT ═══ */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; }
.contact-form .full { grid-column: 1/-1; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #ddd; background: #fafafa;
  font-family: var(--font-main); font-size: 12px; font-weight: 300;
  letter-spacing: 1px; color: #333; padding: 13px 16px; outline: none; resize: none; transition: border-color 0.25s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); background: #fff; }
.contact-form textarea { min-height: 120px; }
.btn-send {
  grid-column: 1/-1; justify-self: start;
  background: var(--orange); color: #fff; border: none;
  font-family: var(--font-main); font-size: 10px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  padding: 14px 36px; cursor: pointer; transition: background 0.25s;
}
.btn-send:hover { background: #b84314; }
.cf-note { grid-column: 1/-1; font-size: 10px; color: #bbb; letter-spacing: 2px; font-family: var(--font-main); }

/* play-icon badge overlaid on video thumbnails (gallery thumbs, hero, etc.) */
.video-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; pointer-events: none;
}

/* ═══ LIGHTBOX ═══ */
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 999; display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; animation: lbFade 0.3s ease; }
#lightbox video { max-width: 92vw; max-height: 88vh; display: none; animation: lbFade 0.3s ease; }
@keyframes lbFade { from{opacity:0;transform:scale(0.97);}to{opacity:1;transform:scale(1);} }
.lb-close { position: fixed; top: 20px; right: 28px; color: #fff; font-size: 28px; cursor: pointer; background: none; border: none; opacity: 0.7; transition: opacity 0.2s; }
.lb-close:hover { opacity: 1; }
.lb-arrow { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.08); border: none; color: #fff; font-size: 28px; cursor: pointer; padding: 16px 20px; transition: background 0.2s; }
.lb-arrow:hover { background: rgba(255,255,255,0.18); }
.lb-arrow.left { left: 16px; }
.lb-arrow.right { right: 16px; }
.lb-cap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.4); font-family: var(--font-main); font-size: 11px; letter-spacing: 3px; }

/* YouTube facade — poster image + play button shown at rest; the real
   iframe (injected by lbPlayYoutube()) sits absolutely over the same box
   and naturally covers/replaces them once it exists, no extra JS to hide
   anything. Fixed 16:9 box (rather than sizing off the poster's own
   dimensions) since YouTube's hqdefault.jpg thumbnail is 4:3-ish letterboxed
   and would otherwise mismatch the actual 16:9 video once played. */
#lb-youtube { display: none; position: relative; width: min(92vw, calc(88vh * 16 / 9)); aspect-ratio: 16/9; animation: lbFade 0.3s ease; }
#lb-youtube img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.lb-yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.85);
  color: #fff; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.lb-yt-play:hover { background: var(--orange); border-color: var(--orange); transform: translate(-50%,-50%) scale(1.08); }
#lb-yt-frame { position: absolute; inset: 0; pointer-events: none; }
#lb-yt-frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: auto; }

/* ═══ TOAST ═══ */
.toast-msg {
  position: fixed; bottom: 28px; right: 28px; background: var(--dark); color: #fff;
  font-family: var(--font-main); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  padding: 12px 22px; z-index: 3000; transform: translateY(60px); opacity: 0;
  transition: all 0.35s ease; pointer-events: none;
}
.toast-msg.show { transform: translateY(0); opacity: 1; }
.toast-msg.error { background: #c0544a; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  #left-panel { transform: translateX(-100%); }
  #left-panel.visible { transform: translateX(0); }
  #right-panel { margin-left: 0 !important; }
  .section-wrap { padding: 60px 24px 60px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full, .btn-send, .cf-note { grid-column: 1; }
  .hero-text { padding: 0 24px 60px; }
  .hero-counter { right: 16px; }
}