/* Round 2 (2026-11-20): green outline + glowing backlight for photo sliders and galleries,
   matching the homepage Selected-work frame (#8dc53e ring + soft green halo). Static shadows only. */
:root{
  --glow-ring:0 0 0 1.5px #8dc53e,0 0 0 4px rgba(141,197,62,.18),0 0 26px 4px rgba(141,197,62,.34);
  --glow-ring-hi:0 0 0 1.5px #8dc53e,0 0 0 4px rgba(141,197,62,.26),0 0 34px 8px rgba(141,197,62,.48);
  --glow-r:14px;
}
/* Reels (sliders) on every page except the homepage reel, which already has its own active-frame ring. */
.reel:not(.reel--plus) .reel__frame picture,
.reel:not(.reel--plus) .reel__frame .reel__vid{border-radius:var(--glow-r);box-shadow:var(--glow-ring)}
.reel:not(.reel--plus) .reel__track{padding-block:18px}
/* Photo galleries */
.gallery--work>figure{overflow:visible;background:none}
.gallery--work>figure picture{display:block;border-radius:var(--glow-r);overflow:clip;box-shadow:var(--glow-ring)}
.pgal__item picture,.pgal__item video,.tl__item video,.fp3__item picture{border-radius:var(--glow-r);box-shadow:var(--glow-ring)}
@media (hover:hover){
  .gallery--work>figure picture,.pgal__item picture,.fp3__item picture{transition:box-shadow .3s ease}
  .gallery--work>figure:hover picture,.pgal__item:hover picture,.fp3__item:hover picture{box-shadow:var(--glow-ring-hi)}
}
@media (prefers-reduced-motion:reduce){
  .gallery--work>figure picture,.pgal__item picture,.fp3__item picture{transition:none}
}

/* New photo galleries (photography, aerial, work) */
.pgal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(14px,2vw,26px);margin:clamp(26px,3.4vw,44px) 0 0;padding:0;list-style:none}
@media (min-width:760px){.pgal{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1180px){.pgal--4{grid-template-columns:repeat(4,minmax(0,1fr))}}
.pgal__item{margin:0;min-width:0}
.pgal__item:first-child{grid-column:1/-1}
@media (min-width:760px){.pgal__item:first-child{grid-column:span 2;grid-row:span 2}}
.pgal__item picture{display:block;overflow:clip;aspect-ratio:3/2;background:#151a19}
.pgal__item:first-child picture{aspect-ratio:auto;height:100%}
@media (max-width:759px){.pgal__item:first-child picture{aspect-ratio:3/2;height:auto}}
.pgal__item img{display:block;width:100%;height:100%;object-fit:cover}
.pgal__item:first-child{display:flex;flex-direction:column}
.pgal__item:first-child picture{flex:1 1 auto}
.pgal__item figcaption{margin-top:12px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#575f5b)}
.on-dark .pgal__item figcaption,.section--dark .pgal__item figcaption{color:#aeb7b2}
.pgal__item figcaption b{color:var(--green,#8dc53e);font-weight:700;margin-right:8px}

/* Virtual time-lapse videos (3D tours page, work page) */
.tl{display:grid;grid-template-columns:1fr;gap:clamp(18px,2.4vw,30px);margin-top:clamp(26px,3.4vw,44px)}
@media (min-width:900px){.tl{grid-template-columns:repeat(3,minmax(0,1fr))}.tl--1{grid-template-columns:minmax(0,1fr)}}
.tl__item{margin:0}
.tl__item video{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:#0b0d0d}
.tl__item figcaption{margin-top:12px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#aeb7b2}
.tl__item figcaption b{color:var(--green,#8dc53e);margin-right:8px}
.section--paper .tl__item figcaption,.section--paper2 .tl__item figcaption{color:var(--muted,#575f5b)}

/* CubiCasa floor plans with a 3D version */
.fp3{display:grid;gap:clamp(30px,4vw,56px);margin-top:clamp(26px,3.4vw,44px)}
.fp3__pair{display:grid;grid-template-columns:1fr;gap:clamp(16px,2vw,28px);align-items:center}
@media (min-width:860px){.fp3__pair{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}}
.fp3__item{margin:0}
.fp3__item picture{display:block;overflow:clip;background:#fff}
.fp3__item img{display:block;width:100%;height:auto}
.fp3__item figcaption{margin-top:12px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted,#575f5b)}
.fp3__item figcaption b{color:#3f6b12;margin-right:8px}
.fp2{display:grid;grid-template-columns:1fr;gap:clamp(18px,2.4vw,30px);margin-top:clamp(26px,3.4vw,44px)}
@media (min-width:760px){.fp2{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Vertical-video phone on the video page: same frame as the homepage phone (no review cards). */
.ph--phone .ph__device{width:clamp(200px,22vw,290px);aspect-ratio:9/19.2;background:none;box-shadow:none}
.ph--phone .ph__bezel{position:absolute;inset:0;padding:11px;border-radius:46px;overflow:visible;
  background:linear-gradient(145deg,#2a2f2e,#0b0d0d 40%,#1b1f1e);
  box-shadow:0 0 0 1.5px #3a403e,0 60px 120px -40px #000,0 30px 60px -30px #000,inset 0 0 0 1px #ffffff14}
.ph--phone .ph__bezel:after{display:none}
.ph--phone .ph__item{inset:11px;border-radius:36px;overflow:hidden;background:#000}
.ph--phone .ph__island{position:absolute;left:50%;top:20px;width:86px;height:24px;translate:-50% 0;border-radius:999px;background:#000;z-index:4;pointer-events:none}
.ph--phone .ph__halo{position:absolute;left:50%;top:50%;width:min(620px,90vw);aspect-ratio:1;translate:-50% -50%;border-radius:50%;
  background:radial-gradient(closest-side,#8dc53e2e,#8dc53e0a 55%,transparent 72%);z-index:0;pointer-events:none}
@media (max-width:759px){
  .ph--phone .ph__device{width:min(190px,calc((100svh - 400px)*.47))}
  .ph--phone .ph__bezel{border-radius:36px;padding:8px}
  .ph--phone .ph__item{inset:8px;border-radius:29px}
  .ph--phone .ph__island{top:15px;width:64px;height:19px}
}

/* r2: vertical-video headline was white on cream (pre-existing); give it ink */
section.ph:not(.on-dark) h2 .mline .hl{color:var(--ink,#0b0d0d)}
.tl__item video{background:#14181a}
/* r3: Our Work page on the service-page pattern */
.tl.tl--2{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))}
.fp2.fp2--solo{grid-template-columns:minmax(0,820px)}
/* service-index rows as the service pages render them (.svc-page scope in service.css) */
.svc-index--work .svc-index__t{display:block}
.svc-index--work .svc-index__d{display:block;max-width:62ch;margin-top:9px;font-size:14px;line-height:1.65;color:var(--muted);font-weight:400;letter-spacing:0}
.svc-index--work .svc-index__p{line-height:1.7;letter-spacing:.06em}
.svc-index--work .svc-index__p>span{display:block}
.svc-index--work a:focus-visible{outline:3px solid var(--ink);outline-offset:4px}
@media(max-width:599px){.svc-index--work .svc-index__p{white-space:normal}.svc-index--work .svc-index__d{font-size:13px}}

/* copy-audit 2026-11-21: reassurance notes, review themes, mid-page CTA */
.cta-note{margin:.85rem 0 0;font-size:.875rem;line-height:1.45;max-width:46ch;opacity:.82;text-wrap:pretty}
.cta-note--proof{margin-top:.35rem;font-size:.8125rem;opacity:.7}
.close__in .cta-note,.close .cta-note{margin-inline:auto}
.rg__theme{margin:2.75rem 0 1rem;text-wrap:balance}
.rg__theme:first-of-type{margin-top:.5rem}
.rg-cta{display:flex;flex-direction:column;align-items:flex-start;margin:2rem 0 .5rem}
.mid-cta{padding-block:clamp(40px,6vw,72px)}
.mid-cta__in{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem}
.mid-cta__h{font-size:clamp(1.35rem,2.4vw,1.75rem);line-height:1.2;font-weight:600;text-wrap:balance;margin:0}
.mid-cta .cta-note{margin-top:0}
.cat-quote{margin:.9rem 0 0;max-width:60ch;font-style:italic;opacity:.85}
.cat-quote span{font-style:normal;opacity:.75;margin-left:.35em;white-space:nowrap}

/* Cookie banner on phones (launch 2026-11-21): rt.js styles #rt-consent inline, so these rules use !important.
   Keeps the non-modal bar small (well under 15% of the viewport), text beside two stacked buttons, clear of the
   home indicator, and pads the page bottom while it is open so it never sits over the last content. */
@media (max-width: 600px) {
  #rt-consent { left: 8px !important; right: 8px !important; bottom: max(8px, env(safe-area-inset-bottom)) !important; padding: 9px 10px 9px 12px !important; font-size: 12px !important; line-height: 1.35 !important; display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  #rt-consent > p { margin: 0 !important; }
  #rt-consent > div { flex-direction: column; gap: 6px !important; }
  #rt-consent button { padding: 7px 12px !important; font-size: 11px !important; min-height: 32px; width: 100%; }
  body:has(#rt-consent) { padding-bottom: 112px; }
}
