/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  --bg: #0b0f14;
  --bg-soft: #11161d;
  --text: #f2f5f7;
  --muted: #cfd7dd;
  --brand: #5ec2ff; /* Jackson sky-vibes */
  --accent: #7ed957; /* eco green */ /* fresh & clean */
  --card: #121821;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --radius: 18px;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* ---------- Helpers ---------- */
.container{
  width: min(1100px, 92vw);
  margin-inline: auto;
}
.d-none{
  display: none !important;
}
@media(min-width:768px){
.mobile-only {
  display: none;

}
}
@media(max-width:768px){
  .desktop-only {
    display: none;
  }
}
.hero .bg img.mobile-only{
  width: 100%;
  height: unset;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  padding:.9rem 1.15rem;
  border-radius: calc(var(--radius) - 6px);
  text-decoration:none;
  color: #071018;
  background: var(--brand);
  font-weight: 700;
  box-shadow: var(--shadow);
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .2s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 35px rgba(0,0,0,.35); }
.btn.secondary{ background: var(--accent); }

.section{
  position: relative;
  padding: 86px 0;
  background: var(--bg);
  isolation: isolate;
}
.section.alt{
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.section-title{
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  margin: 0 0 .75rem;
  letter-spacing: .3px;
}
.section-sub{
  color: var(--muted);
  margin: 0 0 2rem;
}

/* ---------- Header ---------- */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,14,18,.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: .75rem 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  text-decoration:none;
  color:var(--text);
}
.brand img{
  width:40px; height:40px; border-radius: 10px; object-fit:cover;
  box-shadow: var(--shadow);
}
.brand .brand-text{
  display:flex; flex-direction:column; line-height:1.1;
}
.brand .title{ font-weight: 800; letter-spacing:.2px; }
.brand .subtitle{ font-size:.82rem; color:var(--muted); }

.nav ul{
  list-style:none; display:flex; gap:1rem; margin:0; padding:0;
}
.nav a{
  text-decoration:none; color:var(--muted); font-weight:600; padding:.5rem .7rem; border-radius:10px;
}
.nav a:hover, .nav a.active{ color:var(--text); background: rgba(255,255,255,.06); }

/* Mobile nav */
.nav-toggle{
  display:none;
  width:40px; height:40px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background: transparent; color: var(--text);
}
@media (max-width: 880px){
  .nav ul{ display:none; position:absolute; right:1rem; top:68px; background:#0b1016; padding: .6rem; border-radius: 14px; border:1px solid rgba(255,255,255,.08); width:min(260px, 90vw); flex-direction:column; }
  .nav.open ul{ display:flex; }
  .nav-toggle{ display:inline-grid; place-items:center; }
}

/* ---------- Hero (Parallax + sticky) ---------- */
.hero{
  position: relative;
  min-height: 100dvh;
  display:grid;
  place-items:center;
  overflow: clip;
}
.hero .bg{
  position:absolute; inset:0; overflow:hidden; z-index:-2;
}
.hero .bg img{
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  filter: brightness(.45) contrast(1.05) saturate(1.05); /* darken main image */
}
.hero .overlay{
  position:absolute; inset:0; background: radial-gradient(1200px 600px at 60% 30%, rgba(94,194,255,.22), transparent 60%);
  z-index:-1;
}
.hero .content{
  text-align:center;
  padding-inline: 1rem;
}
.hero h1{
  font-size: clamp(2rem, 1.5rem + 3.2vw, 4rem);
  margin: 0 0 .6rem;
}
.hero p{
  margin: 0 0 1.2rem; color: var(--muted); font-size: clamp(1rem, .95rem + .6vw, 1.25rem);
}

/* Sticky + overlay scroll effect */
.sticky-stack{
  position: relative;
}
.sticky-stack .sticky-layer{
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  z-index: 0;
}
/* Fade previous section as new one covers it */
.sticky-stack .sticky-layer::after{
  content:"";
  position: absolute; inset:0;
  background: var(--bg);
  opacity: var(--cover, 0); /* will animate via JS as next layer overlaps */
  pointer-events:none;
  transition: opacity .35s ease;
}
.sticky-stack .sticky-layer.covered::after{
  opacity: 1; /* fully cover when marked covered */
}

/* ---------- Gallery ---------- */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.gallery-grid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}
.gallery-grid img.in{
  transform: none; opacity: 1;
}
.gallery-grid .span-6{ grid-column: span 6; aspect-ratio: 4/3; }
.gallery-grid .span-4{ grid-column: span 4; aspect-ratio: 1/1; }
.gallery-grid .span-8{ grid-column: span 8; aspect-ratio: 16/9; }
@media (max-width: 900px){
  .gallery-grid{ grid-template-columns: repeat(6, 1fr); }
  .gallery-grid .span-8{ grid-column: span 6; }
  .gallery-grid .span-6{ grid-column: span 6; }
  .gallery-grid .span-4{ grid-column: span 3; }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
  .gallery-grid > *{ grid-column: span 2; }
}

/* ---------- Services ---------- */
.cards{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  grid-column: span 4;
  background: linear-gradient(180deg, var(--card), #0f141c);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  transition: transform .45s ease, opacity .45s ease, border-color .25s ease, box-shadow .25s ease;
}
.card.in{ transform: none; opacity: 1; }
.card:hover{
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.card h3{
  margin: .4rem 0 .4rem;
  font-size: 1.2rem;
}
.card p{ color: var(--muted); margin: 0; }
.card .badge{
  display:inline-block;
  font-size:.75rem;
  color:#081019;
  background: var(--accent);
  font-weight:700;
  padding:.25rem .55rem;
  border-radius: 999px;
}

@media (max-width: 900px){
  .card{ grid-column: span 6; }
}
@media (max-width: 560px){
  .card{ grid-column: span 12; }
}

/* ---------- Contact CTA ---------- */
.contact-cta{
  display:flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.contact-cta .btn{ min-width: 220px; }

/* ---------- Footer ---------- */
.footer{
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0 40px;
  font-size: .95rem;
  color: var(--muted);
}
.footer a{ color: var(--text); text-decoration:none; }
.footer a:hover{ text-decoration: underline; }
.footer .grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
@media (max-width: 640px){
  .footer .grid{ grid-template-columns: 1fr; text-align: center; }
}

/* ---------- Utility fades for sticky covers ---------- */
.section.fade-on-cover .container{
  transition: opacity .35s ease, transform .35s ease;
}
.section.fade-on-cover.covered .container{
  opacity: .2;
  transform: translateY(-10px);
}

/* Gallery/sticky refinements */
.sticky-stack .sticky-layer{ z-index: 0; }
.sticky-stack .sticky-layer + .sticky-layer{ z-index: 1; }
.sticky-stack .sticky-layer + .sticky-layer + .sticky-layer{ z-index: 2; }
.sticky-stack .sticky-layer + .sticky-layer + .sticky-layer + .sticky-layer{ z-index: 3; }

/* Avoid jump when mobile URL bars shrink */
@supports (height: 100dvh){
  .hero, .sticky-stack .sticky-layer{ min-height: 100dvh; }
}


/* ---------- Mobile tweaks ---------- */
@media (max-width: 768px){
  /* Disable sticky stack on mobile to avoid clipped content */
  .sticky-stack .sticky-layer{
    position: static;
    min-height: auto;
  }
  .section{ padding: 64px 0; }
  .hero{ min-height: 72vh; }
  /* Ensure container spacing */
  .gallery-grid img,
  .card{ transform: none; opacity: 1; } /* avoid delayed visibility on short scrolls */
  /* Footer spacing */
  .footer{ padding-bottom: 80px; } /* room for FAB */
}

/* ---------- Floating Call Button (mobile) ---------- */
.fab-call{
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 80;
  display: none;
}
.fab-call .fab{
  display:flex; align-items:center; gap:.55rem;
  padding:.85rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #081019;
  font-weight: 800;
  text-decoration:none;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.fab-call .close{
  position:absolute;
  top:-8px; right:-8px;
  width:26px; height:26px;
  display:grid; place-items:center;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: #fff; font-weight: 800; line-height: 1;
  cursor: pointer; border: 0;
}
@media (max-width: 900px){
  .fab-call{ display: block; }
}
/* ---------- About ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 38px;
}
.about-grid.reverse{ grid-template-columns: 1fr 1.1fr; }
.about-media img{
  width:100%; height:auto; border-radius: 16px; box-shadow: var(--shadow);
  transform: translateY(18px); opacity: 0; transition: transform .6s ease, opacity .6s ease;
}
.about-copy{
  transform: translateY(12px); opacity: 0; transition: transform .6s ease, opacity .6s ease;
}
.about-media.in img, .about-copy.in{ transform: none; opacity: 1; }
.about-copy h3{ margin: 0 0 .4rem; font-size: clamp(1.2rem,1rem + .9vw,1.6rem); }
.about-copy ul{ margin: .7rem 0 0 1rem; color: var(--muted); }
.about-copy li{ margin: .3rem 0; }

@media (max-width: 940px){
  .about-grid, .about-grid.reverse{ grid-template-columns: 1fr; }
}
/* --- Lightbox overlay --- */
.lb {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(2px);
}
.lb.is-open { display: block; }

.lb__stage {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: min(6vw, 48px);
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  border-radius: 12px;
  transition: transform .2s ease;
}

.lb__close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}

.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px; border-radius: 12px;
  border: 0; background: rgba(255,255,255,.12); color: #fff;
  font-size: 38px; line-height: 1; cursor: pointer;
}
.lb__prev { left: 12px; }
.lb__next { right: 12px; }

.lb__count {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: #fff; background: rgba(0,0,0,.35);
  padding: 6px 10px; border-radius: 999px; font-size: 14px;
}

/* Buttons hover/focus */
.lb__close:hover, .lb__nav:hover,
.lb__close:focus-visible, .lb__nav:focus-visible {
  outline: 2px solid rgba(255,255,255,.45);
}

/* Optional: make collage images show clickability */
.collage-grid.equal .tile img { cursor: zoom-in; }

/* (Minor fix) If you use .span-4 elsewhere, ensure the dot is present: */
/* .collage-grid .span-4 { grid-column: span 4; } */

/* ---------- Collage ---------- */
.collage{ padding-top: 60px; }
.collage-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
}
.collage-grid figure{ margin:0; }
.collage-grid img{
  width:100%; height:100%; object-fit:cover;
  aspect-ratio: 16/9;
  transform: translateY(18px); opacity: 0; transition: transform .6s ease, opacity .6s ease;
}
.collage-grid img.in{ transform: none; opacity: 1; }
.collage-grid .span-12{ grid-column: span 12; aspect-ratio: 21/6; }
.collage-grid .span-6{ grid-column: span 6; }
collage-grid .span-4{ grid-column: span 4; }

@media (max-width: 900px){
  .collage-grid{ grid-template-columns: repeat(6, 1fr); }
  .collage-grid .span-12{ grid-column: span 6; aspect-ratio: 21/10; }
  .collage-grid .span-6{ grid-column: span 6; }
  .collage-grid .span-4{ grid-column: span 3; }
}
@media (max-width: 560px){
  .collage-grid{ grid-template-columns: repeat(2, 1fr); }
  .collage-grid img{ aspect-ratio: 4/3; }
}
.about-media img.in { transform: none; opacity: 1; }/* Equal-square collage (8 tiles: desktop 4x2, mobile 2x4) */
.collage-grid.equal{
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* mobile: 2 columns */
}

@media (min-width: 900px){
  .collage-grid.equal{
    grid-template-columns: repeat(4, 1fr); /* desktop: 4 columns */
  }
}

.collage-grid.equal .tile{
  overflow: hidden;
  box-shadow: var(--shadow);
}

.collage-grid.equal .tile img{
  width: 100%;
  aspect-ratio: 1 / 1;   /* perfect square */
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

/* subtle hover zoom (desktop/hover only) */
@media (hover:hover) and (pointer:fine){
  .collage-grid.equal .tile:hover img,
  .collage-grid.equal .tile:focus-within img{
    transform: scale(1.06);
  }
}
/* === About media: perfectly square, responsive === */
.about-media > img {
  width: 100%;
  height: auto;          /* <— important: not 100% */
  display: block;
  opacity: 1 !important; /* ensure it's visible even if a base rule sets 0 */
  transform: none !important;
}
/* Desktop/tablet: square up to 500px; Mobile: smaller square */
.about{ --about-square: clamp(220px, 42vw, 500px); }
@media (max-width: 560px){
  .about{ --about-square: clamp(160px, 70vw, 320px); }
}

.about-grid{ align-items: center; }            /* keeps image/calculated height tidy */

.about-media{
  aspect-ratio: 1 / 1;                         /* <-- perfect square box */
  max-height: 500px;                           /* extra guard on desktop */
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  place-self: center;                          /* centers the square in its grid cell */
}

.about-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;                           /* fill the square, crop as needed */
  /* keep your existing reveal animation */
  transform: translateY(18px);
  opacity: 0;
  transition: transform .6s ease, opacity .6s ease;
}
.about-media.in img{ transform: none; opacity: 1; }