:root{
  --ink:#111111;
  --ink-2:#0a0a0a;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --gold:#c9a227;
  --gold-soft:#e4cf8a;
  --line: rgba(201,162,39,0.28);
  --maxw: 1180px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  /* Jost is the closest widely-available match for Futura (geometric, wide
     caps, single-storey a/g). Real Futura is used first when it is installed. */
  font-family:'Futura','Jost','Century Gothic','Questrial','Poppins',sans-serif;
  background:var(--paper);
  color:var(--ink);
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%; display:block;}
a{text-decoration:none; color:inherit;}
ul{list-style:none;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important; scroll-behavior:auto !important;}
}

/* ---------- Eyebrow / Scene labels ---------- */
.scene-label{
  font-size:12px;
  letter-spacing:0.32em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.scene-label::before{
  content:"";
  width:26px; height:1px;
  background:var(--gold);
  display:inline-block;
}

h1,h2,h3,h4{ font-weight:600; letter-spacing:0.01em; }

/* ---------- Sprocket / filmstrip divider ---------- */
.sprocket{
  height:26px;
  width:100%;
  background:
    radial-gradient(circle at 18px 13px, var(--paper) 6px, transparent 7px) repeat-x,
    var(--ink);
  background-size: 36px 26px;
  position:relative;
}
.sprocket.light{
  background:
    radial-gradient(circle at 18px 13px, var(--mist) 6px, transparent 7px) repeat-x,
    var(--ink);
  background-size: 36px 26px;
}
.sprocket.on-mist{
  background:
    radial-gradient(circle at 18px 13px, var(--paper) 6px, transparent 7px) repeat-x,
    var(--ink);
}

/* ---------- Frame counter (signature element) ---------- */
#frame-counter{
  position:fixed;
  right:22px;
  top:50%;
  transform:translateY(-50%);
  z-index:60;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  font-size:11px;
  letter-spacing:0.18em;
  color:var(--gold-soft);
  mix-blend-mode:difference;
}
#frame-counter .fc-line{ width:1px; height:46px; background:var(--gold-soft); opacity:0.6; }
#frame-counter .fc-num{ font-weight:600; font-size:13px; color:#fff; }
#frame-counter .fc-total{ opacity:0.55; }
@media (max-width: 900px){ #frame-counter{ display:none; } }

/* ---------- Nav ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:rgba(17,17,17,0.0);
  transition:background .4s ease, box-shadow .4s ease, padding .3s ease;
  padding:26px 0;
}
header.scrolled{
  background:rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  box-shadow:0 8px 30px rgba(0,0,0,0.25);
  padding:14px 0;
}
header.always-solid{
  background:rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  box-shadow:0 8px 30px rgba(0,0,0,0.25);
  padding:14px 0;
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:0 28px;
}
.logo{
  display:flex;
  align-items:center;
  line-height:0;
}
.logo img{
  height:100px;
  width:auto;
  display:block;
  max-width:200px;
  object-fit:contain;
  vertical-align:middle;
  margin-top:-12px;
}
.nav-links{
  display:flex; gap:34px;
}
.nav-links a{
  color:#e9e9e9;
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:500;
  position:relative;
  padding-bottom:4px;
}
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
  background:var(--gold); transition:width .3s ease;
}
.nav-links a:hover::after{ width:100%; }
.nav-links a.current{ color:var(--gold); }
.nav-links a.current::after{ width:100%; }
.nav-cta{
  border:1px solid var(--gold);
  color:var(--gold) !important;
  padding:9px 20px;
  font-size:11.5px;
  letter-spacing:0.16em;
}
.nav-cta:hover{ background:var(--gold); color:var(--ink) !important; }
.menu-btn{ display:none; background:none; border:none; color:#fff; font-size:22px; cursor:pointer; position:relative; z-index:60; width:40px; height:40px; border-radius:50%; }
.menu-btn.open{ background:rgba(255,255,255,0.1); }

/* Seven links plus the book CTA need room: tighten the type before the
   desktop nav gets squeezed on a 1024px-wide laptop. */
@media (max-width:1100px){
  .nav-links{ gap:20px; }
  .nav-links a{ font-size:11.5px; letter-spacing:0.1em; }
  .nav-cta{ padding:8px 16px; font-size:11px; letter-spacing:0.12em; }
}

@media (max-width: 880px){
  .nav-links{
    position:fixed; top:0; right:-100%; height:100vh; width:78%; max-width:340px;
    background:var(--ink-2); flex-direction:column; justify-content:center; align-items:flex-start;
    padding:40px; gap:26px; transition:right .4s ease; box-shadow:-10px 0 40px rgba(0,0,0,0.4);
  }
  .nav-links.open{ right:0; }
  .menu-btn{ display:block; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.96) 100%), var(--ink-2);
  padding-bottom:90px;
}
/* Rotating background photos, driven by hero.js */
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.96) 100%);
}
.hero-slide{
  position:absolute; inset:0;
  background-position:center 20%;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:0;
  transition:opacity 1.6s ease;
}
.hero-slide.is-active{ opacity:1; }
.hero-dots{
  position:absolute; z-index:3; right:28px; bottom:34px;
  display:flex; gap:9px; align-items:center;
}
.hero-dots:empty{ display:none; }
.hero-dot{
  width:9px; height:9px; border-radius:50%; padding:0;
  background:rgba(255,255,255,0.35); border:1px solid rgba(255,255,255,0.5);
  cursor:pointer; transition:background .25s ease, transform .25s ease;
}
.hero-dot:hover{ background:rgba(255,255,255,0.7); }
.hero-dot.is-active{ background:var(--gold); border-color:var(--gold); transform:scale(1.25); }
.hero-inner{ position:relative; z-index:2; max-width:var(--maxw); margin:0 auto; padding:0 28px; width:100%; }
.hero-tag{
  color:var(--gold-soft);
  font-size:12.5px;
  letter-spacing:0.36em;
  text-transform:uppercase;
  margin-bottom:22px;
  display:flex; align-items:center; gap:14px;
}
.hero-tag .dot{ width:6px; height:6px; border-radius:50%; background:var(--gold); }
.hero h1{
  color:#fff;
  font-weight:200;
  font-size:clamp(46px, 9vw, 108px);
  line-height:0.98;
  text-transform:uppercase;
  letter-spacing:0.02em;
}
.hero h1 strong{ font-weight:700; color:var(--gold); display:block; }
.hero p.sub{
  color:#d8d8d8;
  max-width:520px;
  margin-top:26px;
  font-size:16px;
  line-height:1.7;
  font-weight:300;
}
.hero-actions{ display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; }
.hero-locations{
  margin-top:56px;
  display:flex; align-items:center; gap:16px;
  color:#9c9c9c; font-size:12px; letter-spacing:0.12em; text-transform:uppercase;
  flex-wrap:wrap;
}
.hero-locations b{ color:var(--gold-soft); font-weight:500; }

/* ---------- Section basics ---------- */
section{ padding:110px 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:60px; }
.section-head h2{ font-size:clamp(30px,4vw,44px); }
.section-head p{ color:#5a5a5a; margin-top:16px; font-size:15.5px; line-height:1.8; font-weight:300; }
.dark{ background:var(--ink); color:#f2f2f2; }
.dark .section-head p{ color:#b7b7b7; }
.mist{ background:var(--mist); }

/* fade-in on scroll */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Page hero (portfolio) ---------- */
.page-hero{
  padding:170px 0 70px;
  background:linear-gradient(180deg, rgba(10,10,10,0.96) 0%, rgba(10,10,10,0.92) 60%, rgba(17,17,17,1) 100%);
  color:#fff;
}
.page-hero h1{
  font-weight:200;
  font-size:clamp(38px, 6vw, 72px);
  text-transform:uppercase;
  line-height:1;
}
.page-hero h1 strong{ font-weight:700; color:var(--gold); }
.page-hero p{
  color:#b7b7b7; max-width:520px; margin-top:18px; font-size:15.5px; line-height:1.8; font-weight:300;
}

/* ---------- About ---------- */
.about-grid{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap:70px; align-items:center;
}
.about-frame{ position:relative; }
.about-frame img{ width:100%; height:560px; object-fit:cover; }
.about-frame::before{
  content:""; position:absolute; inset:-16px -16px auto auto; width:60%; height:60%;
  border:1px solid var(--gold); z-index:-1; top:auto; bottom:-16px; right:-16px;
}
.about-stat-card{
  position:absolute; left:-40px; bottom:-40px;
  background:var(--ink); color:#fff; padding:26px 30px;
  box-shadow:0 20px 50px rgba(0,0,0,0.25);
}
.about-stat-card .num{ font-size:34px; color:var(--gold); font-weight:700; line-height:1; }
.about-stat-card .lbl{ font-size:11px; letter-spacing:0.14em; text-transform:uppercase; margin-top:8px; color:#cfcfcf; }
.about-copy p{ font-size:16px; line-height:1.9; color:#444; font-weight:300; margin-bottom:18px; }
.about-copy .lede{ font-size:20px; color:var(--ink); font-weight:400; line-height:1.6; }
.why-list{ margin-top:34px; display:grid; grid-template-columns:1fr 1fr; gap:16px 30px; }
.why-list li{ font-size:14px; color:#333; display:flex; align-items:flex-start; gap:10px; font-weight:400; }
.why-list li::before{ content:"—"; color:var(--gold); font-weight:700; }

@media (max-width: 880px){
  .about-grid{ grid-template-columns:1fr; }
  .about-frame img{ height:420px; }
  .about-stat-card{ left:0; }
  .why-list{ grid-template-columns:1fr; }
}

/* ---------- Services ---------- */
.services-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
}
.service-card{
  background:var(--ink); padding:42px 34px; transition:background .35s ease;
}
.service-card:hover{ background:#1a1a1a; }
.service-card .idx{ color:var(--gold); font-size:12px; letter-spacing:0.2em; margin-bottom:22px; display:block; }
.service-card h3{ font-size:19px; color:#fff; margin-bottom:12px; font-weight:500; }
.service-card p{ color:#a4a4a4; font-size:13.5px; line-height:1.7; font-weight:300; }
@media (max-width: 880px){ .services-grid{ grid-template-columns:1fr; } }

/* ---------- Equipment ---------- */
.gear-strip{ display:flex; gap:0; border-top:1px solid var(--line); margin-top:20px; }
.gear-item{
  flex:1; padding:34px 20px; border-right:1px solid var(--line); text-align:center;
}
.gear-item:last-child{ border-right:none; }
.gear-item .g-name{ font-size:16px; font-weight:600; color:#fff; letter-spacing:0.02em; }
.gear-item .g-tag{ font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold); margin-top:8px; }
@media (max-width:700px){ .gear-strip{ flex-direction:column; } .gear-item{ border-right:none; border-bottom:1px solid var(--line); } }

/* ---------- Portfolio / filter ---------- */
#portfolio{ padding-top:40px; }
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px; }
.filter-btn{
  padding:10px 20px; border:1px solid #d8d0b8; font-size:11.5px; letter-spacing:0.14em;
  text-transform:uppercase; cursor:pointer; background:transparent; color:#444; font-family:inherit; font-weight:500;
  transition:all .25s ease;
}
.filter-btn.active, .filter-btn:hover{ background:var(--ink); color:var(--gold-soft); border-color:var(--ink); }
.gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.g-item{ position:relative; overflow:hidden; aspect-ratio:4/5; cursor:pointer; }
.g-item img, .g-item video{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.g-item:hover img, .g-item:hover video{ transform:scale(1.08); }
.g-overlay{
  position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.82) 100%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:20px;
  opacity:0; transition:opacity .35s ease;
}
.g-item:hover .g-overlay{ opacity:1; }
.g-overlay .g-tag{ color:var(--gold); font-size:10.5px; letter-spacing:0.18em; text-transform:uppercase; }
.g-overlay .g-title{ color:#fff; font-size:15px; margin-top:4px; }
/* Tablet: 2 columns (matches the existing design transition) */
@media (max-width:1080px){ .gallery{ grid-template-columns:repeat(2,1fr); } }
/* Mobile/phones: 2 columns side-by-side, small gap, no horizontal scroll */
@media (max-width:640px){
  .gallery{ grid-template-columns:repeat(2,1fr); gap:4px; }
  .wrap{ padding:0 16px; }
  .g-item{ aspect-ratio:3/4; }
}

/* ---------- Cinematic films ---------- */
.films-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:2px; }
.film-main{ position:relative; aspect-ratio:16/10; overflow:hidden; }
.film-main img{ width:100%; height:100%; object-fit:cover; }
.film-side{ display:grid; grid-template-rows:1fr 1fr; gap:2px; }
.film-tile{ position:relative; overflow:hidden; }
.film-tile img{ width:100%; height:100%; object-fit:cover; }
.play-btn{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:64px; height:64px; border-radius:50%; border:1px solid var(--gold-soft);
  display:flex; align-items:center; justify-content:center; color:var(--gold-soft);
  background:rgba(10,10,10,0.4); transition:all .3s ease;
}
.film-main:hover .play-btn, .film-tile:hover .play-btn{ background:var(--gold); color:var(--ink); border-color:var(--gold); }
@media (max-width:880px){ .films-grid{ grid-template-columns:1fr; } .film-side{ grid-template-rows:1fr 1fr; grid-auto-flow:column; grid-template-columns:1fr 1fr; } }

/* ---------- Packages ---------- */
.pkg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.pkg-card{
  border:1px solid #e6e0cc; padding:44px 34px; position:relative; transition:transform .3s ease, box-shadow .3s ease;
  background:#fff;
}
.pkg-card.featured{ border-color:var(--gold); box-shadow:0 20px 50px rgba(201,162,39,0.16); }
.pkg-card:hover{ transform:translateY(-8px); }
.pkg-badge{
  position:absolute; top:-13px; left:34px; background:var(--gold); color:var(--ink);
  font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; padding:5px 14px; font-weight:600;
}
.pkg-card .p-name{ font-size:12px; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; }
.pkg-card h3{ font-size:24px; margin-bottom:20px; }
.pkg-card ul{ margin:26px 0 32px 0; }
.pkg-card ul li{ font-size:14px; color:#444; padding:9px 0; border-top:1px solid #eee; display:flex; gap:10px; }
.pkg-card ul li:first-child{ border-top:none; }
.pkg-card ul li::before{ content:"✓"; color:var(--gold); font-weight:700; }
.pkg-note{ font-size:12.5px; color:#8a8a8a; margin-top:60px; text-align:center; }
@media (max-width:880px){ .pkg-grid{ grid-template-columns:1fr; } }

/* ---------- Testimonials ---------- */
.test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.test-card{ padding:0; }
.test-card .scene-tag{ font-size:11px; color:var(--gold); letter-spacing:0.18em; text-transform:uppercase; }
.test-card p{ font-size:16px; line-height:1.8; font-weight:300; color:#e6e6e6; margin:18px 0 24px; font-style:italic; }
.test-card .who{ font-size:13px; color:#fff; font-weight:600; letter-spacing:0.03em; }
.test-card .where{ font-size:12px; color:#8f8f8f; margin-top:2px; }
@media (max-width:880px){ .test-grid{ grid-template-columns:1fr; gap:48px; } }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr; gap:70px; max-width:720px; }
.contact-copy h2{ font-size:clamp(30px,4vw,42px); margin-bottom:20px; }
.contact-copy p{ color:#5a5a5a; font-size:15.5px; line-height:1.85; font-weight:300; margin-bottom:34px; max-width:460px; }
.contact-list{ display:flex; flex-direction:column; gap:22px; }
.contact-list a, .contact-list .row{ display:flex; align-items:center; gap:16px; font-size:14.5px; color:#222; font-weight:500; }
.contact-list .ic{
  width:42px; height:42px; border:1px solid var(--gold); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--gold); flex-shrink:0; font-size:16px;
}
.contact-list a:hover .ic{ background:var(--gold); color:#fff; }
.contact-list .row.address-row{ align-items:flex-start; line-height:1.6; }
.contact-list .address-row .ic{ margin-top:1px; }
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; } }

/* ---------- See more CTA (portfolio) ---------- */
.more-section{ padding-top:20px; }
.more-cta{ text-align:center; }
.more-cta .scene-label{ justify-content:center; }
.more-cta h2{ margin-bottom:14px; }
.more-cta p{ color:#666; max-width:480px; margin:0 auto 30px; font-size:15px; line-height:1.8; font-weight:300; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:15px 34px;
  font-size:12.5px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .3s ease;
}
.btn-gold{ background:var(--gold); color:var(--ink); }
.btn-gold:hover{ background:var(--gold-soft); transform:translateY(-2px); box-shadow:0 12px 28px rgba(201,162,39,0.35); }
.btn-outline{ border-color:rgba(255,255,255,0.5); color:#fff; }
.btn-outline:hover{ border-color:var(--gold); color:var(--gold); }

/* ---------- Footer ---------- */
footer{ background:var(--ink-2); color:#8f8f8f; padding:60px 0 30px; }
.foot-grid{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:30px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,0.08); }
.foot-logo{ display:flex; align-items:center; justify-content:center; }
.foot-logo img{ height:70px; width:auto; max-width:160px; object-fit:contain; }
.foot-social{ display:flex; gap:16px; }
.foot-social a{ width:38px; height:38px; border:1px solid rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; color:#ccc; transition:all .25s ease; }
.foot-social a:hover{ border-color:var(--gold); color:var(--gold); }
.foot-bottom{ display:flex; justify-content:space-between; padding-top:24px; font-size:12px; flex-wrap:wrap; gap:10px; }
.foot-credit{ display:flex; justify-content:center; gap:18px; align-items:center; padding-top:16px; margin-top:8px; font-size:12px; color:#999; border-top:1px solid rgba(255,255,255,0.08); flex-wrap:wrap; }
.foot-credit a{ color:#999; text-decoration:none; transition:color .2s ease; }
.foot-credit a:hover{ color:var(--gold); }
.foot-credit .ic{ font-size:13px; }

/* Instagram floating */
.ig-float{
  position:fixed; bottom:26px; right:26px; z-index:55;
  width:56px; height:56px; border-radius:50%;
  background:linear-gradient(135deg,#c9a227,#8a6d1a); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:24px;
  box-shadow:0 10px 30px rgba(0,0,0,0.3);
}
@media (max-width:900px){ .ig-float{ bottom:20px; right:20px; } }

/* ---------- Mobile booking shortcut ---------- */
/* On phones the nav collapses behind the hamburger, so the main action gets a
   permanent one-tap button. Bottom-left so it never sits under the Instagram
   bubble, and hidden on desktop where the header CTA already does this. */
.book-float{
  display:none;
  position:fixed; right:26px; bottom:86px; z-index:55;
  align-items:center; padding:15px 24px; border-radius:999px;
  background:linear-gradient(135deg,#c9a227,#8a6d1a); color:#fff;
  font-size:11.5px; letter-spacing:0.16em; text-transform:uppercase; font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,0.32);
  transition:transform .25s ease, box-shadow .25s ease;
}
.book-float:hover{ transform:translateY(-3px); box-shadow:0 14px 34px rgba(0,0,0,0.4); }
@media (max-width:880px){
  .book-float{ display:inline-flex; right:16px; bottom:86px; padding:14px 20px; }
}

/* ================= LIGHTBOX ================= */
.lightbox{
  position:fixed; inset:0; z-index:1000; background:rgba(5,5,5,0.94);
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease;
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox-img-wrap{ max-width:92vw; max-height:88vh; display:flex; align-items:center; justify-content:center; }
.lightbox-img-wrap img{
  max-width:100%; max-height:88vh; object-fit:contain;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-img-wrap video{
  max-width:92vw; max-height:88vh;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  background:#000;
}
.lightbox-close{
  position:absolute; top:18px; right:20px; z-index:10;
  width:46px; height:46px; border-radius:50%;
  background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:18px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease;
}
.lightbox-close:hover{ background:rgba(255,255,255,0.25); }
.lightbox-prev, .lightbox-next{
  position:absolute; top:50%; transform:translateY(-50%); z-index:10;
  width:50px; height:50px; border-radius:50%;
  background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:20px; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease;
}
.lightbox-prev{ left:14px; }
.lightbox-next{ right:14px; }
.lightbox-prev:hover, .lightbox-next:hover{ background:rgba(255,255,255,0.25); }
@media (max-width:640px){
  .lightbox-prev{ left:6px; width:42px; height:42px; font-size:16px; }
  .lightbox-next{ right:6px; width:42px; height:42px; font-size:16px; }
  .lightbox-close{ top:12px; right:12px; width:40px; height:40px; }
}

/* ================= ADMIN ================= */
.admin-body{ background:var(--ink); color:#fff; min-height:100vh; }
/* Nothing is fixed at the top any more, so the section can start close to
   the viewport edge. Per-screen tweaks live in ADMIN: RESPONSIVE below. */
.admin-section{ padding:46px 0 80px; }
.admin-card{
  max-width:560px; margin:0 auto; background:var(--ink-2);
  border:1px solid rgba(255,255,255,0.1); padding:44px 40px;
}
.admin-card h2{ font-size:30px; margin-bottom:6px; }
.admin-card h3{ font-size:20px; color:#fff; }
.admin-form{ margin-top:26px; }
.form-group{ margin-bottom:20px; }
.form-group label{
  display:block; font-size:11.5px; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--gold); margin-bottom:8px; font-weight:600;
}
.form-group input, .form-group select{
  width:100%; padding:13px 14px; background:var(--ink); color:#fff;
  border:1px solid rgba(255,255,255,0.2); font-family:inherit; font-size:14px;
  transition:border-color .25s ease;
}
.form-group input:focus, .form-group select:focus{ outline:none; border-color:var(--gold); }
.admin-msg{ margin-top:16px; font-size:13px; }
.msg-ok{ color:#8fc98f; }
.msg-err{ color:#e08a8a; }
.admin-top{ max-width:560px; margin:0 auto; }
.admin-top h2{ font-size:30px; }
.admin-photo-cat{
  font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold);
}
.btn-delete{
  padding:8px 16px; font-size:11px; border:1px solid #a44; color:#e08a8a;
  background:transparent; letter-spacing:0.12em; cursor:pointer; transition:all .25s ease;
}
.btn-delete:hover{ background:#a44; color:#fff; }
@media (max-width:640px){ .admin-card{ padding:30px 22px; } }

/* ---------- Star ratings ---------- */
/* The picker is built from radio inputs, so it works without JavaScript and
   stays keyboard / screen-reader friendly. Inputs are ordered 5 -> 1 and the
   row is reversed in CSS, which lets "fill every star up to this one" work
   with a plain sibling combinator. */
.form-label{
  display:block; font-size:11.5px; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--gold); margin-bottom:8px; font-weight:600;
}
.form-hint{ color:#8a8a8a; font-size:12px; margin-top:6px; }
.star-picker{
  display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:2px;
}
.star-picker input{ position:absolute; width:0; height:0; opacity:0; }
.star-picker label{
  font-size:28px; line-height:1; color:#4f4f4f; cursor:pointer;
  min-width:40px; min-height:40px; padding:0 2px;
  display:flex; align-items:center; justify-content:center;
  transition:color .15s ease, transform .15s ease;
}
.star-picker label:hover{ transform:scale(1.14); }
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label{ color:var(--gold); }
.star-picker input:focus-visible + label{ outline:2px solid var(--gold); outline-offset:2px; }

/* Read-only stars. Empty ones use the same gold at low opacity so it reads
   correctly on the dark hero as well as the light testimonial page. */
.stars{ color:var(--gold); font-size:15px; letter-spacing:2px; line-height:1; }
.stars .off{ opacity:.26; }
.test-card .stars{ margin-bottom:16px; }
.comment-body .stars{ margin:6px 0 10px; }
.admin-testi-info .stars{ font-size:13px; margin:2px 0 4px; }
@media (max-width:640px){
  .star-picker label{ font-size:26px; min-width:38px; min-height:44px; }
}

/* ---------- Testimonials list ---------- */
#write{ padding-bottom:0; }
.comments-wrap{ max-width:720px; margin:0 auto; }
.comment-form{
  background:#fff; border:1px solid #e6e0cc; padding:34px 30px; margin-bottom:44px;
}
.comment-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:none; }
.comment-form textarea, .comment-form input{
  width:100%; padding:13px 14px; background:var(--mist); color:var(--ink);
  border:1px solid #ddd; font-family:inherit; font-size:14px; resize:vertical;
  transition:border-color .25s ease;
}
.comment-form textarea:focus, .comment-form input:focus{ outline:none; border-color:var(--gold); background:#fff; }
.comment-list{ display:flex; flex-direction:column; gap:22px; }
.comment-empty{ color:#888; font-size:14px; }
.comment-item{ display:flex; gap:16px; background:#fff; border:1px solid #e6e0cc; padding:22px 24px; }
.comment-avatar{
  width:44px; height:44px; border-radius:50%; background:var(--ink); color:var(--gold-soft);
  display:flex; align-items:center; justify-content:center; font-weight:600; font-size:17px; flex-shrink:0;
}
.comment-body{ min-width:0; }
.comment-meta{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.comment-name{ font-size:14px; font-weight:600; }
.comment-date{ font-size:11.5px; color:#999; letter-spacing:0.06em; }
.comment-feat{ font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.comment-text{ font-size:14.5px; color:#444; line-height:1.7; font-weight:300; word-wrap:break-word; }
@media (max-width:540px){ .comment-item{ flex-direction:column; } .comment-form-row{ grid-template-columns:1fr; } }

/* ---------- Customer photos linked to a testimonial ---------- */
.comment-photos-label{
  margin-top:14px; font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--gold); font-weight:600;
}
.comment-photos{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.comment-photo img{
  width:72px; height:72px; object-fit:cover; border-radius:6px; border:1px solid #eee;
  display:block; transition:opacity .2s ease;
}
.comment-photo:hover img{ opacity:.8; }

/* ---------- Admin: content & testimonials ---------- */
.admin-card.wide{ max-width:780px; }
.admin-form textarea{
  width:100%; padding:13px 14px; background:var(--ink); color:#fff;
  border:1px solid rgba(255,255,255,0.2); font-family:inherit; font-size:14px; resize:vertical;
  transition:border-color .25s ease;
}
.admin-form textarea:focus{ outline:none; border-color:var(--gold); }
.admin-form-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; }
.btn-ghost{
  padding:13px 22px; font-size:11.5px; letter-spacing:0.16em; text-transform:uppercase; font-weight:600;
  border:1px solid rgba(255,255,255,0.3); color:#ddd; background:transparent; cursor:pointer;
  transition:all .25s ease;
}
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }
.admin-testi-row{
  display:flex; gap:16px; align-items:flex-start; background:var(--ink);
  border:1px solid rgba(255,255,255,0.1); padding:14px; margin-bottom:12px;
}
.admin-testi-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.admin-testi-actions{ display:flex; gap:10px; flex-shrink:0; }
.btn-edit{
  padding:8px 16px; font-size:11px; border:1px solid var(--gold); color:var(--gold);
  background:transparent; letter-spacing:0.12em; cursor:pointer; transition:all .25s ease;
}
.btn-edit:hover{ background:var(--gold); color:var(--ink); }
.btn-edit:disabled{ opacity:.35; cursor:not-allowed; }
.btn-edit:disabled:hover{ background:transparent; color:var(--gold); }
.btn-delete:disabled{ opacity:.35; cursor:not-allowed; }
.btn-delete:disabled:hover{ background:transparent; color:#e08a8a; }

/* ---------- Admin: hero background photos ---------- */
.hero-list{ margin-top:22px; }
.hero-row{
  display:flex; gap:16px; align-items:center; background:var(--ink);
  border:1px solid rgba(255,255,255,0.1); padding:10px; margin-bottom:12px;
}
.hero-row img{ width:96px; height:60px; object-fit:cover; flex-shrink:0; }
.hero-row-info{ flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.hero-url-input{
  width:100%; padding:10px 12px; background:var(--ink-2); color:#ddd;
  border:1px solid rgba(255,255,255,0.2); font-family:inherit; font-size:12px;
  transition:border-color .25s ease;
}
.hero-url-input:focus{ outline:none; border-color:var(--gold); color:#fff; }
.hero-row-actions{ display:flex; gap:8px; flex-shrink:0; align-items:center; }
.hero-row-actions .btn-edit{ padding:8px 12px; min-width:34px; text-align:center; }
@media (max-width:640px){
  .hero-row{ flex-wrap:wrap; }
  .hero-row img{ width:100%; height:150px; }
  .hero-row-actions{ width:100%; }
  /* Reorder and remove buttons share the row equally so they stay tappable. */
  .hero-row-actions .btn-edit{ flex:1 1 0; }
  .hero-row-actions .btn-delete{ flex:1 1 0; }
}

.admin-testi-text{ font-size:13px; color:#aaa; line-height:1.6; margin-top:2px; }
.appt-photos{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.appt-photos img{ width:58px; height:58px; object-fit:cover; border-radius:6px; border:1px solid rgba(255,255,255,0.15); }
.appt-photos .admin-photo-cat{ color:var(--gold); font-size:12px; }
.appt-testi-box{
  margin-top:10px; padding:12px 14px; background:#1a1a20; border-left:2px solid var(--gold);
  border-radius:8px; font-size:13px; color:#aaa; line-height:1.6;
}
.appt-testi-who{ color:var(--gold); font-size:12px; margin-top:6px; }
@media (max-width:560px){
  .admin-testi-row{ flex-direction:column; }
}

/* ---------- Homepage testimonials (dark) ---------- */
.testi-actions{ margin-top:48px; display:flex; justify-content:center; }
.testi-write{
  margin-top:56px; max-width:720px; margin-left:auto; margin-right:auto;
  border:1px solid var(--line); padding:36px 34px; background:rgba(255,255,255,0.03);
}
.testi-write-title{ font-size:18px; color:#fff; font-weight:500; margin-bottom:24px; }
.testi-form{ display:flex; flex-direction:column; gap:0; }
.testi-form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.testi-form input, .testi-form textarea{
  width:100%; padding:13px 14px; background:var(--ink); color:#fff;
  border:1px solid rgba(255,255,255,0.2); font-family:inherit; font-size:14px; resize:vertical;
  transition:border-color .25s ease;
}
.testi-form input:focus, .testi-form textarea:focus{ outline:none; border-color:var(--gold); }
@media (max-width:560px){ .testi-form-row{ grid-template-columns:1fr; } }

/* ================= ADMIN: TOP ROW ================= */
/* Not a navbar — just a slim, non-fixed row at the top of each admin page
   holding a back link and the session controls. It scrolls away with the
   content, so it never eats screen height on a phone. */
.admin-topline{
  max-width:var(--maxw); margin:0 auto; padding:0 28px 26px;
  display:flex; align-items:center; gap:16px; flex-wrap:wrap;
}
.admin-topline-brand{
  font-size:11px; letter-spacing:0.24em; text-transform:uppercase;
  color:var(--gold); font-weight:600;
}
.admin-topline-spacer{ margin-left:auto; }
.admin-backlink{
  font-size:11.5px; letter-spacing:0.14em; text-transform:uppercase;
  font-weight:600; color:#c2c2c2; transition:color .25s ease; white-space:nowrap;
}
.admin-backlink:hover{ color:var(--gold); }
.admin-logout{
  font-family:inherit; font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
  font-weight:600; padding:10px 16px; border:1px solid rgba(224,138,138,0.55);
  color:#e08a8a; background:transparent; cursor:pointer; transition:all .25s ease;
  white-space:nowrap;
}
.admin-logout:hover{ background:#a44; border-color:#a44; color:#fff; }

/* ================= ADMIN: DASHBOARD ================= */
.admin-top.wide, .admin-section .wrap{ max-width:var(--maxw); }
.admin-lead{ color:#8a8a8a; margin-top:12px; font-size:14.5px; line-height:1.7; font-weight:300; }

/* auto-fit keeps the tiles at a comfortable width on any screen instead of
   forcing six cramped columns on a phone. */
.stat-grid{
  display:grid; gap:1px;
  grid-template-columns:repeat(auto-fit, minmax(178px, 1fr));
  background:rgba(255,255,255,0.09); border:1px solid rgba(255,255,255,0.09);
  margin-top:44px;
}
.stat-tile{
  background:var(--ink-2); padding:26px 22px; display:block;
  transition:background .3s ease;
}
a.stat-tile:hover{ background:#191919; }
.stat-num{ font-size:32px; font-weight:600; color:var(--gold); line-height:1; }
.stat-label{
  font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; color:#e6e6e6;
  font-weight:600; margin-top:14px;
}
.stat-sub{ font-size:11.5px; color:#7a7a7a; margin-top:6px; font-weight:300; line-height:1.5; }

.dash-block{ margin-top:56px; }
.dash-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:24px; }
.dash-head h3{ font-size:21px; }
.dash-head p{ color:#8a8a8a; font-size:13.5px; margin-top:8px; font-weight:300; }

.quick-grid{
  display:grid; gap:1px; background:rgba(255,255,255,0.09);
  border:1px solid rgba(255,255,255,0.09);
  grid-template-columns:repeat(auto-fit, minmax(268px, 1fr));
}
.quick-card{
  background:var(--ink-2); padding:30px 28px; display:flex; flex-direction:column;
  transition:background .3s ease; min-height:172px;
}
.quick-card:hover{ background:#191919; }
.quick-card .qc-idx{ font-size:11px; letter-spacing:0.2em; color:var(--gold); font-weight:600; }
.quick-card h4{ font-size:17px; margin:14px 0 10px; }
.quick-card p{ color:#8f8f8f; font-size:13px; line-height:1.7; font-weight:300; flex:1; }
.quick-card .qc-go{ margin-top:20px; font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold); font-weight:600; }
.quick-card:hover .qc-go{ color:var(--gold-soft); }

.dash-cols{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:start; }
@media (max-width:900px){ .dash-cols{ grid-template-columns:1fr; } }
.panel{ background:var(--ink-2); border:1px solid rgba(255,255,255,0.1); padding:30px 28px; }
.panel h3{ font-size:18px; margin-bottom:6px; }
.panel .panel-sub{ color:#8a8a8a; font-size:13px; line-height:1.6; font-weight:300; }
.panel-foot{ margin-top:22px; }

.thumb-strip{ display:grid; grid-template-columns:repeat(auto-fit, minmax(96px, 1fr)); gap:8px; margin-top:20px; }
.thumb-strip .t{ position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--ink); }
.thumb-strip .t img, .thumb-strip .t video{ width:100%; height:100%; object-fit:cover; }
.thumb-strip .t .flag{
  position:absolute; left:6px; top:6px; background:rgba(10,10,10,0.78); color:var(--gold);
  font-size:9px; letter-spacing:0.14em; text-transform:uppercase; padding:3px 7px; font-weight:600;
}

.mini-row{
  display:flex; gap:12px; align-items:center; padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.mini-row:last-child{ border-bottom:none; }
.mini-row .mr-date{
  flex:0 0 74px; text-align:center; border:1px solid var(--line); padding:7px 4px;
}
.mini-row .mr-date b{ display:block; font-size:16px; color:var(--gold); font-weight:600; line-height:1.1; }
.mini-row .mr-date span{ font-size:9.5px; letter-spacing:0.14em; text-transform:uppercase; color:#9a9a9a; }
.mini-row .mr-info{ min-width:0; flex:1; }
.mini-row .mr-name{ font-size:14px; color:#fff; font-weight:500; }
.mini-row .mr-meta{ font-size:11.5px; color:#8a8a8a; margin-top:3px; word-break:break-word; }
.mini-empty{ color:#7d7d7d; font-size:13px; margin-top:18px; }

/* ---------- Admin: chips / filters ---------- */
.chip-bar{ display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.chip{
  font-family:inherit; font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  font-weight:500; padding:9px 16px; border:1px solid rgba(255,255,255,0.2);
  background:transparent; color:#c2c2c2; cursor:pointer; transition:all .25s ease;
}
.chip:hover{ border-color:var(--gold); color:var(--gold); }
.chip.active{ background:var(--gold); border-color:var(--gold); color:var(--ink); font-weight:600; }

/* ---------- Admin: media grid ---------- */
.media-grid{
  display:grid; gap:14px; margin-top:22px;
  grid-template-columns:repeat(auto-fill, minmax(190px, 1fr));
}
.media-card{ background:var(--ink); border:1px solid rgba(255,255,255,0.1); overflow:hidden; }
.media-card .m-thumb{ position:relative; aspect-ratio:4/5; background:#000; cursor:pointer; }
.media-card .m-thumb img, .media-card .m-thumb video{ width:100%; height:100%; object-fit:cover; display:block; }
.media-card .m-flag{
  position:absolute; left:8px; top:8px; background:rgba(10,10,10,0.78); color:var(--gold);
  font-size:9px; letter-spacing:0.14em; text-transform:uppercase; padding:4px 8px; font-weight:600;
}
.media-card .m-body{ padding:12px 13px; display:flex; flex-direction:column; gap:9px; }
.media-card .m-name{ font-size:12.5px; color:#fff; font-weight:500; }
.media-card .m-id{ font-size:10.5px; color:#7d7d7d; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-card .btn-delete{ width:100%; }

.count-pill{
  display:inline-block; font-size:11px; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--gold); border:1px solid var(--line); padding:6px 12px; margin-top:14px;
}

/* ---------- Admin: settings rows ---------- */
.setting-row{
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:18px 0; border-bottom:1px solid rgba(255,255,255,0.08);
}
.setting-row:last-child{ border-bottom:none; }
.setting-row .sr-label{ font-size:14.5px; color:#fff; font-weight:500; }
.setting-row .sr-note{ font-size:12.5px; color:#8a8a8a; margin-top:4px; font-weight:300; }

/* ---------- Admin: lightbox ---------- */
.admin-lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(5,5,5,0.95);
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.admin-lightbox.open{ opacity:1; visibility:visible; }
.admin-lightbox img, .admin-lightbox video{ max-width:92vw; max-height:84vh; object-fit:contain; }
.admin-lightbox-close{
  position:absolute; top:18px; right:22px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.admin-lightbox-close:hover{ background:rgba(255,255,255,0.25); }
.admin-lightbox .lb-cap{
  position:absolute; left:0; right:0; bottom:18px; text-align:center;
  color:#c9c9c9; font-size:12.5px; letter-spacing:0.08em;
}

.admin-note{
  margin-top:18px; padding:14px 16px; background:rgba(201,162,39,0.07);
  border-left:2px solid var(--gold); color:#b9b9b9; font-size:13px; line-height:1.6;
}

/* ---------- Admin: homepage content editor ---------- */
.site-group{ border:1px solid rgba(255,255,255,0.15); margin-bottom:14px; }
.site-group-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  background:var(--ink); border:none; color:#fff; font-family:inherit; font-size:14px;
  letter-spacing:0.08em; text-transform:uppercase; padding:16px 18px; cursor:pointer;
  transition:background .25s ease;
}
.site-group-toggle:hover{ background:#1a1a1a; }
.site-group-toggle span{ color:var(--gold); }
.site-group-body{ display:none; padding:4px 18px 18px; }
.site-group.is-open .site-group-body{ display:block; }
.site-group-note{ color:#888; font-size:12px; margin:10px 0 4px; }
.site-sub-head{
  margin:18px 0 10px; padding-top:14px; border-top:1px dashed rgba(255,255,255,0.15);
  font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:var(--gold); font-weight:600;
}

/* Content editor: image slot with preview + upload */
.site-img-row{ display:flex; gap:14px; align-items:flex-start; }
.site-img-preview-box{
  position:relative; flex:0 0 116px; width:116px; height:150px; overflow:hidden;
  background:#141414; border:1px solid rgba(255,255,255,0.18);
}
.site-img-preview{ width:100%; height:100%; object-fit:cover; display:block; }
.site-img-empty{
  position:absolute; inset:0; display:none; align-items:center; justify-content:center;
  padding:8px; text-align:center; font-size:11px; letter-spacing:.06em;
  text-transform:uppercase; color:#777;
}
.site-img-field.is-empty .site-img-preview{ display:none; }
.site-img-field.is-empty .site-img-empty{ display:flex; }
.site-img-side{ flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.site-img-buttons{ display:flex; flex-wrap:wrap; gap:8px; }
.site-img-status{ font-size:12px; color:var(--gold); min-height:16px; }
@media (max-width:640px){
  .site-img-row{ flex-direction:column; }
  .site-img-preview-box{ flex:none; width:100%; height:190px; }
  .site-img-buttons .btn{ width:100%; }
}

/* ================= ADMIN: RESPONSIVE ================= */
/* Everything above is sized for a laptop. These blocks step it down for
   tablets and phones: roomier tap targets, narrower padding, stacked rows. */

/* ---- Laptop (default) ---- */
/* .admin-section padding is set with the ADMIN block above. */
.admin-top h2, .admin-card h2{ font-size:30px; }

/* ---- Large tablet ---- */
@media (max-width:1024px){
  .admin-section{ padding:44px 0 70px; }
  .admin-lead{ font-size:14px; }
  .stat-grid{ margin-top:36px; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); }
  .quick-grid{ grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); }
  .media-grid{ grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); }
}

/* ---- Tablet ---- */
@media (max-width:820px){
  .admin-section{ padding:40px 0 64px; }
  .wrap{ padding:0 20px; }
  .admin-topline{ padding:0 20px 22px; }
  .admin-top h2, .admin-card h2{ font-size:26px; }
  .admin-lead{ font-size:13.5px; line-height:1.65; }
  .stat-tile{ padding:20px 18px; }
  .stat-num{ font-size:27px; }
  .dash-block{ margin-top:44px; }
  .dash-head{ margin-bottom:18px; }
  .dash-head h3{ font-size:19px; }
  .panel{ padding:24px 20px; }
  .quick-card{ padding:24px 20px; min-height:0; }
  .media-grid{ grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; }
  /* Rows that were side-by-side stack, and their buttons go full width. */
  .setting-row{ flex-direction:column; align-items:flex-start; gap:14px; }
  .setting-row .admin-testi-actions{ width:100%; }
  .setting-row .admin-testi-actions .btn-edit,
  .setting-row .admin-testi-actions .btn-delete{ flex:1 1 0; }
  .hero-row .hero-url-input{ font-size:12px; }
  .site-group-toggle{ font-size:13px; padding:14px 15px; }
  .site-group-body{ padding:4px 15px 15px; }
}

/* ---- Phone ---- */
@media (max-width:640px){
  .admin-section{ padding:32px 0 56px; }
  .wrap{ padding:0 16px; }
  .admin-topline{ padding:0 16px 18px; gap:12px; }
  .admin-top h2, .admin-card h2{ font-size:23px; }
  .admin-lead{ font-size:13px; }
  .scene-label{ font-size:10.5px; letter-spacing:0.24em; margin-bottom:14px; }

  .stat-grid{ margin-top:28px; grid-template-columns:repeat(2, 1fr); }
  .stat-tile{ padding:18px 15px; }
  .stat-num{ font-size:24px; }
  .stat-label{ font-size:9.5px; letter-spacing:0.12em; margin-top:10px; }
  .stat-sub{ font-size:10.5px; }

  .dash-block{ margin-top:38px; }
  .dash-head{ gap:12px; }
  .dash-head h3{ font-size:17px; }
  .dash-head p{ font-size:12.5px; }
  /* The count pill sits under the heading rather than beside it. */
  .count-pill{ margin-top:0; }

  .panel{ padding:20px 16px; }
  .quick-grid{ grid-template-columns:1fr; }
  .quick-card{ padding:20px 18px; }
  .quick-card h4{ font-size:16px; margin:10px 0 8px; }
  .quick-card p{ font-size:12.5px; }
  .quick-card .qc-go{ margin-top:14px; }

  .thumb-strip{ grid-template-columns:repeat(3, 1fr); gap:6px; }
  .thumb-strip .t .flag{ font-size:8px; padding:2px 5px; left:4px; top:4px; }

  /* Buttons become full-width blocks so they are easy to tap. */
  .btn{ padding:14px 22px; font-size:11.5px; letter-spacing:0.12em; }
  .panel-foot .btn, .dash-block .btn{ width:100%; justify-content:center; }
  .admin-form-actions{ flex-direction:column; align-items:stretch; }
  .admin-form-actions .btn, .admin-form-actions .btn-ghost{ width:100%; justify-content:center; }
  .admin-form-actions .btn-edit, .admin-form-actions .btn-delete{ flex:1 1 0; }

  .chip{ padding:10px 14px; font-size:10.5px; }

  .media-grid{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .media-card .m-body{ padding:10px 11px; gap:7px; }
  .media-card .m-name{ font-size:12px; }
  .media-card .btn-delete{ padding:10px 8px; font-size:10px; }

  .mini-row{ gap:10px; }
  .mini-row .mr-date{ flex:0 0 62px; padding:6px 3px; }
  .mini-row .mr-name{ font-size:13px; }
  .mini-row .mr-meta{ font-size:11px; }

  .admin-lightbox{ padding:16px; }
  .admin-lightbox img, .admin-lightbox video{ max-width:96vw; max-height:76vh; }
  .admin-lightbox .lb-cap{ font-size:11px; padding:0 16px; word-break:break-word; }

  /* Section headings and admin cards */
  .admin-card{ padding:26px 18px; }
  .admin-card h3{ font-size:17px; }
  .form-group input, .form-group select, .admin-form textarea{ font-size:16px; padding:12px 13px; }
  .admin-testi-row{ flex-direction:column; }
  .admin-testi-actions{ width:100%; }
  .admin-testi-actions .btn-edit, .admin-testi-actions .btn-delete,
  .admin-testi-actions .btn-ghost{ flex:1 1 0; text-align:center; }
  .appt-photos img{ width:50px; height:50px; }
}

/* ---- Small phone ---- */
@media (max-width:400px){
  .thumb-strip{ grid-template-columns:repeat(2, 1fr); }
  .media-grid{ grid-template-columns:1fr; }
  .admin-topline{ padding:0 14px 16px; }
  .admin-topline-brand{ font-size:10px; letter-spacing:0.18em; }
  .admin-logout{ padding:10px 12px; font-size:10px; }
}

/* Landscape phones have almost no vertical room. */
@media (max-height:520px) and (orientation:landscape){
  .admin-section{ padding:26px 0 48px; }
}
