/* ============================================================================
   KANNANE DIGITAL STUDIO — kannane.ca
   Cinematic dark theme: deep black + KDS brand orange + ivory.
   Mobile-first. Sections: preloader, header, hero, marquee, featured
   (editorial grid), parallax bands, galleries + filters, about, services,
   contact, footer, lightbox.
   ----------------------------------------------------------------------------
   QUICK RESTYLE GUIDE:
   • Colours live in :root below — change --brand to re-theme the whole site.
   • Fonts: --font-display (big serif), --font-sans (spaced labels).
   ========================================================================== */

:root {
  --bg:        #0b0b0d;   /* page background — near black */
  --bg-soft:   #121215;   /* card / panel background */
  --bg-line:   rgba(243, 238, 227, 0.12);
  --ink:       #f3eee3;   /* main text — warm ivory */
  --ink-dim:   #b9b2a4;   /* secondary text */
  --ink-faint: #7d776b;   /* captions, hints */
  --brand:      #f16422;   /* KDS brand orange — change this to re-theme the whole site */
  --brand-deep: #a8430f;
  --brand-soft: rgba(241, 100, 34, 0.14);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans:    "Jost", "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Film-grain texture over everything (very subtle) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

::selection { background: var(--brand); color: #141005; }

/* Slim gold-on-dark scrollbar (desktop) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0b0d; }
::-webkit-scrollbar-thumb { background: #2c2c30; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

/* Anchors sit below the fixed header */
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ============================== PRELOADER ============================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08080a;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; animation: preRise 1.4s var(--ease) both; }
.pre-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  margin-bottom: 18px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--brand);
}
.pre-word {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-indent: 0.55em;
  font-size: 0.95rem;
  color: var(--ink);
}
@keyframes preRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ============================== HEADER ============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 44px);
  transition: background 0.45s var(--ease), border-color 0.45s, backdrop-filter 0.45s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 11, 13, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--bg-line);
}

.wordmark { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.wordmark img { height: 40px; width: auto; display: none; } /* shows when logo.png exists */
.wordmark.has-logo img { display: block; }
.wordmark.has-logo .wordmark-text { display: none; }
.wordmark-text {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.42em;
  text-indent: 0.1em;
  color: var(--brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.main-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 8px 2px;
  transition: color 0.3s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.nav-cta {
  color: #141005;
  background: var(--brand);
  padding: 10px 22px;
  border-radius: 999px;
  letter-spacing: 0.18em;
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover { background: #e3c169; color: #141005; }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: kenBurns 24s ease-in-out infinite alternate;
  transform-origin: center 40%;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.45) 38%, rgba(8, 8, 10, 0.18) 62%, rgba(8, 8, 10, 0.42) 100%),
    radial-gradient(120% 90% at 50% 110%, rgba(241, 100, 34, 0.10), transparent 60%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) clamp(110px, 16vh, 150px);
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 13vw, 8.5rem);
  line-height: 0.95;
  letter-spacing: 0.18em;
  text-indent: 0.1em;
  color: var(--ink);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.hero-tag {
  margin-top: 18px;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-dim);
  max-width: 34ch;
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero entrance */
.reveal-hero { opacity: 0; transform: translateY(26px); }
body.loaded .reveal-hero { animation: heroRise 1.1s var(--ease) forwards; }
body.loaded .reveal-hero:nth-child(2) { animation-delay: 0.15s; }
body.loaded .reveal-hero:nth-child(3) { animation-delay: 0.28s; }
body.loaded .reveal-hero:nth-child(4) { animation-delay: 0.4s; }
body.loaded .reveal-hero:nth-child(5) { animation-delay: 0.52s; }
@keyframes heroRise { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 48px);
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(var(--brand), transparent);
  animation: cueDrop 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}
.scroll-word {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn-brand {
  background: var(--brand);
  color: #141005;
  box-shadow: 0 8px 30px rgba(212, 175, 90, 0.25);
}
.btn-brand:hover { background: #ff7a3d; box-shadow: 0 10px 36px rgba(241, 100, 34, 0.38); }
.btn-ghost { border-color: rgba(243, 238, 227, 0.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
  border-bottom: 1px solid var(--brand-soft);
  padding-bottom: 3px;
  transition: border-color 0.3s;
}
.text-link:hover { border-color: var(--brand); }

/* ============================== MARQUEE ============================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--bg-line);
  border-bottom: 1px solid var(--bg-line);
  background: #0e0e10;
  padding: 15px 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  padding-right: 34px;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-size: 0.74rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.marquee-track i { color: var(--brand); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-img, .scroll-line { animation: none !important; }
}

/* ============================== SECTION HEADS ============================== */
section { padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 48px); }
.section-head { max-width: 1200px; margin: 0 auto 46px; }
.section-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.section-sub { color: var(--ink-dim); margin-top: 12px; max-width: 52ch; }

/* Scroll-reveal (driven by js/site.js) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================== TILES (photos) ============================== */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #141416;
  cursor: zoom-in;
}
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 8, 10, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { opacity: 1; }

/* ============================== FEATURED / EDITORIAL GRID ============================== */
.featured { background: var(--bg); }
.editorial-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.editorial-grid .tile { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .editorial-grid { grid-template-columns: repeat(12, 1fr); gap: 18px; }
  .editorial-grid .tile { grid-column: span 6; aspect-ratio: 4 / 3; }
  .editorial-grid .tile-wide { grid-column: span 7; aspect-ratio: 16 / 10; }
  .editorial-grid .tile:nth-child(2) { grid-column: span 5; aspect-ratio: 4 / 5; }
  .editorial-grid .tile:nth-child(3) { grid-column: span 5; aspect-ratio: 1 / 1; }
  .editorial-grid .tile:nth-child(4) { grid-column: span 7; aspect-ratio: 16 / 10; }
  .editorial-grid .tile:nth-child(5) { grid-column: span 7; aspect-ratio: 16 / 10; }
  .editorial-grid .tile:nth-child(6) { grid-column: span 5; aspect-ratio: 4 / 5; }
  .editorial-grid .tile:nth-child(7) { grid-column: span 5; aspect-ratio: 1 / 1; }
  .editorial-grid .tile:nth-child(8) { grid-column: span 7; aspect-ratio: 16 / 10; }
}

/* ============================== PARALLAX BANDS ============================== */
.parallax-band {
  position: relative;
  height: clamp(320px, 52vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.parallax-img {
  position: absolute;
  inset: -12% 0;
  width: 100%; height: 124%;
  object-fit: cover;
  will-change: transform;
}
.parallax-shade { position: absolute; inset: 0; background: rgba(8, 8, 10, 0.55); }
.parallax-quote {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  line-height: 1.5;
  color: var(--ink);
  padding: 0 24px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.7);
}

/* ============================== GALLERIES ============================== */
.galleries { background: #0d0d0f; }
.filters {
  max-width: 1200px;
  margin: 0 auto 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--bg-line);
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--brand); color: var(--ink); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #141005; }
.count {
  display: inline-block;
  min-width: 1.7em;
  margin-left: 6px;
  padding: 1px 0;
  font-size: 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.filter-btn.active .count { background: rgba(0, 0, 0, 0.16); }

.gallery-group { max-width: 1400px; margin: 44px auto 0; }
.gallery-group.hidden { display: none; }
.gallery-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.photo-grid .tile { aspect-ratio: 4 / 3; }
@media (min-width: 720px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================== ABOUT ============================== */
.about { background: var(--bg); }
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-media img {
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.about-text p { color: var(--ink-dim); margin-top: 16px; max-width: 56ch; }
.about-text strong { color: var(--ink); font-weight: 500; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-line);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--brand);
}
.stat-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
@media (min-width: 860px) {
  .about-inner { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ============================== SERVICES ============================== */
.services { background: #0d0d0f; }
.service-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  transition: transform 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--brand-soft); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  color: var(--brand);
  margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.service-card ul { list-style: none; margin-bottom: 22px; }
.service-card li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--ink-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(243, 238, 227, 0.06);
}
.service-card li::before {
  content: "◆";
  position: absolute;
  left: 2px;
  color: var(--brand);
  font-size: 0.6rem;
  top: 14px;
}
.service-featured {
  background: linear-gradient(160deg, #17130a 0%, var(--bg-soft) 70%);
  border-color: var(--brand-soft);
}
@media (min-width: 860px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ============================== CONTACT ============================== */
.contact { background: var(--bg); }
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--bg-line);
}
.contact-line span {
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-line a {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.3s;
}
.contact-line a:hover { color: var(--brand); }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--bg-line);
  border-radius: 999px;
  padding: 11px 20px;
  transition: all 0.3s var(--ease);
}
.social-links a:hover { border-color: var(--brand); color: var(--brand); }
.social-links svg { width: 18px; height: 18px; }

.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
}
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 20px; }
.contact-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #0b0b0d;
  border: 1px solid var(--bg-line);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 13px 15px;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { width: 100%; margin-top: 6px; }
@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 5fr 6fr; gap: 60px; align-items: start; }
}

/* ============================== FOOTER ============================== */
.site-footer {
  text-align: center;
  padding: 60px 20px 44px;
  border-top: 1px solid var(--bg-line);
  background: #08080a;
}
.footer-word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--brand);
  margin-bottom: 16px;
}
.site-footer p { font-size: 0.82rem; color: var(--ink-dim); }
.footer-sub { color: var(--ink-faint); font-size: 0.75rem; margin-top: 6px; }

/* ============================== LIGHTBOX ============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  animation: lbIn 0.45s var(--ease);
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.3s, transform 0.3s;
  z-index: 2;
}
.lightbox button:hover { color: var(--brand); }
.lb-close { top: 14px; right: 20px; font-size: 2.6rem; line-height: 1; padding: 10px; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.2rem;
  line-height: 1;
  padding: 18px 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}
@media (min-width: 720px) {
  .lb-prev { left: 26px; }
  .lb-next { right: 26px; }
}

/* ============================== MOBILE NAV ============================== */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 13, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--bg-line);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(243, 238, 227, 0.07);
    font-size: 0.85rem;
  }
  .main-nav a::after { display: none; }
  .main-nav a.nav-cta { text-align: center; margin-top: 14px; border: 0; }
}

/* Very small screens: tighter hero + grids */
@media (max-width: 380px) {
  .hero-actions .btn { width: 100%; text-align: center; }
  .photo-grid { gap: 8px; }
  .editorial-grid { gap: 10px; }
}

/* ============================== BACK TO TOP ============================== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--brand-soft);
  background: rgba(11, 11, 13, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s, background 0.3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand); color: #141005; }

/* Active section in the nav */
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
