/* ===========================================================
   MORPH BY UMAIR — Landing Page
   Design system reference: whitespaces.com.pk
   Warm, editorial, architecture-studio aesthetic.
   =========================================================== */

:root{
  /* ---- Day (default) — deep black on white, monochrome ---- */
  --cream:        #ffffff;
  --cream-deep:    #f2f2f0;
  --ink:           #0d0d0c;
  --ink-soft:      #55534d;
  --line:          #dcdad4;
  --accent:        #0d0d0c;   /* monochrome — no color accent */
  --accent-dark:   #000000;
  --white:         #ffffff;
  --wa-green:      #25D366;

  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1680px;
  --section-pad: clamp(64px, 9vw, 140px);

  /* fixed "statement band" colors — always dark, both modes (marquee/why/footer) */
  --band-bg:       #0b0b0a;
  --band-ink:      #f5f4f0;
  --band-ink-soft: rgba(245,244,240,.68);
  --band-line:     rgba(245,244,240,.14);
  --header-bg:     rgba(255,255,255,0.92);
}

/* ---- Night — deep black background, white ink ---- */
body.dark{
  --cream:        #0b0b0a;
  --cream-deep:    #151513;
  --ink:           #f5f4f0;
  --ink-soft:      #a8a59c;
  --line:          #2b2a26;
  --accent:        #ffffff;
  --accent-dark:   #e8e6e0;
  --header-bg:     rgba(11,11,10,0.88);
}

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

/* Visually hidden but present for screen readers / SEO — used for the hero
   h1, which is kept out of view since the page carries a purely visual
   kicker + heading treatment instead, but a real h1 still matters for
   accessibility and search indexing. */
.sr-only{
  position:absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

html{ scroll-behavior:smooth; }

body{
  transition: background-color .4s ease, color .4s ease;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 72px);
}

.eyebrow{
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 28px;
  height:1px;
  background: var(--accent);
  display:inline-block;
}

h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h2{ font-size: clamp(32px, 4vw, 52px); font-weight:500; }
h2 em, h1 em{ font-style: normal; font-weight: 500; color: var(--accent-dark); }
/* Hero and Why Us always sit on a fixed-dark background in both themes, but
   --accent-dark flips to pure black in light mode — invisible black-on-black
   emphasis text. Pin these to the section's own light ink instead. */
.hero h1 em{ color: var(--white); }
.why h2 em{ color: var(--band-ink); }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head p{
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 18px;
  max-width: 560px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center p{ margin-left:auto; margin-right:auto; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover{ background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline{
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover{ background: var(--ink); color: var(--cream); }
.btn-wa{
  background: var(--wa-green);
  color:#fff;
}
.btn-wa:hover{ background:#1ea952; transform: translateY(-2px); }
.btn-block{ width:100%; justify-content:center; }

/* ---------------- HEADER ---------------- */
header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 200;
  padding: 22px 0;
  transition: all .35s ease;
  background: transparent;
}
header.scrolled{
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--line);
}
header .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.logo-mark{ display:flex; align-items:center; }
.logo-mark img{ height:50px; width:auto; }

.header-cta{ display:flex; align-items:center; gap:14px; }
.header-cta .tag{
  font-size: 12.5px;
  /* fixed light color while the header floats transparently over the hero photo;
     switches to the theme color once scrolled onto a solid background */
  color: rgba(255,255,255,.85);
  letter-spacing:.04em;
  transition: color .3s ease;
}
header.scrolled .header-cta .tag{ color: var(--ink-soft); }
.header-cta .btn{ padding: 12px 22px; font-size: 13px; }
/* the persistent nav CTA — rounded into a glass pill instead of a solid
   block, so it reads as quieter while still standing out */
.header-cta .btn-primary{
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.header-cta .btn-primary:hover{
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  transform: translateY(-2px);
}

.theme-toggle{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  width: 40px; height:40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 55%, transparent);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  color: var(--ink);
  cursor:pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  flex-shrink:0;
}
.theme-toggle:hover{
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent);
}
.theme-toggle:active{ transform: scale(.88); }
/* Sun and moon sit stacked on top of each other and cross-fade with a
   quarter-turn rotate + scale, instead of the old flat display:none swap. */
.theme-toggle svg{
  position:absolute;
  top:50%; left:50%;
  margin-top:-9px; margin-left:-9px;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .4s ease;
}
.theme-toggle .icon-sun{ opacity:1; transform: rotate(0deg) scale(1); }
.theme-toggle .icon-moon{ opacity:0; transform: rotate(-70deg) scale(.35); }
body.dark .theme-toggle .icon-sun{ opacity:0; transform: rotate(70deg) scale(.35); }
body.dark .theme-toggle .icon-moon{ opacity:1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce){
  .theme-toggle, .theme-toggle svg{ transition-duration: .01ms !important; }
}

/* ---------------- HERO ---------------- */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex;
  align-items:flex-end;
  color: var(--white);
  overflow:hidden;
  --scroll: 0;
}
.hero-media{
  position:absolute; inset:0;
  z-index:0;
}
.hero-media img,
.hero-media video{
  width:100%; height:100%; object-fit:cover;
  transform: scale(1.06);
}
/* desktop = static photo, mobile = looping video — the breakpoint here just
   controls which one is visible; script.js is what decides which one the
   browser actually downloads in the first place */
.hero-media .hero-loop{ display:none; }
@media (max-width: 820px){
  .hero-media .hero-static{ display:none; }
  .hero-media .hero-loop{ display:block; }
}
/* scroll-reactive darkening — the hero sinks into shadow as you start
   scrolling past it, without hijacking the scroll itself */
.hero::before{
  content:"";
  position:absolute; inset:0;
  z-index:1;
  background:#050403;
  opacity: calc(var(--scroll) * 0.5);
  pointer-events:none;
}
/* quiet fade-in for images as they load, instead of popping in — used on the
   hero photo, project cards, and lightbox images */
.fade-img{ opacity:0; transition: opacity .9s ease; }
.fade-img.loaded{ opacity:1; }
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  /* layered: left-side darkening (headline sits left) + strong even bottom-to-top darkening,
     so overlay text stays legible against any part of the photo, in any theme */
  background:
    linear-gradient(90deg, rgba(8,7,6,.5) 0%, rgba(8,7,6,.1) 45%, rgba(8,7,6,0) 70%),
    linear-gradient(0deg, rgba(8,7,6,.92) 0%, rgba(8,7,6,.62) 22%, rgba(8,7,6,.38) 40%, rgba(8,7,6,.22) 58%, rgba(8,7,6,.4) 100%);
}
.hero-content{
  position:relative; z-index:2;
  width:100%;
  padding-bottom: 56px;
  padding-top: 140px;
  opacity: calc(1 - var(--scroll) * 0.7);
  transform: translateY(calc(var(--scroll) * 24px));
  transition: opacity .05s linear, transform .05s linear;
}
.hero-kicker{
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  display:flex; align-items:center; gap:10px;
}
.hero-kicker::before{ content:""; width:28px; height:1px; background: rgba(255,255,255,.7); }
.hero h1{
  color:#fff;
  font-size: clamp(30px, 5vw, 60px);
  max-width: 760px;
  margin-bottom: 18px;
}
.hero-sub{
  font-size: 15.5px;
  color: rgba(255,255,255,.86);
  max-width: 440px;
  margin-bottom: 28px;
  line-height:1.55;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom: 40px; }
/* Fixed (non-themed) colors — this button always sits on a photo, in both day and night mode */
.hero-actions .btn-primary{ background:#ffffff; color:#0d0d0c; }
.hero-actions .btn-primary:hover{ background:#0d0d0c; color:#ffffff; }
.hero-actions .btn-outline{ border-color: rgba(255,255,255,.55); color:#fff; }
.hero-actions .btn-outline:hover{ background:#fff; color:#0d0d0c; }

.hero-strip{
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 20px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px 28px;
  font-size: 11.5px;
  letter-spacing:.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.hero-strip span{ position:relative; }

.scroll-cue{
  position:fixed; /* stays put instead of sliding away with the hero content */
  left: 32px;
  bottom: 34px;
  z-index:150;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: rgba(255,255,255,.75);
  font-size: 11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  opacity:1;
  transition: opacity .5s ease;
  pointer-events:none;
}
.scroll-cue.faded{ opacity:0; }
.scroll-cue .line{ width:1px; height:44px; background: rgba(255,255,255,.5); overflow:hidden; }
.scroll-cue .line::after{
  content:""; display:block; width:100%; height:40%;
  background:#fff;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ transform: translateY(-100%); }
  100%{ transform: translateY(250%); }
}

/* ---------------- MARQUEE ---------------- */
.marquee-band{
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 18px 0;
  overflow:hidden;
  white-space:nowrap;
}
.marquee-track{
  display:inline-flex;
  animation: marquee 32s linear infinite;
}
.marquee-track span{
  font-family: var(--serif);
  font-style:normal;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size: 16px;
  padding: 0 28px;
  color: var(--band-ink);
  opacity:.9;
}
.marquee-track span::after{ content:"—"; margin-left:28px; color: var(--band-ink-soft); font-style:normal; }
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ---------------- ABOUT / PHILOSOPHY ---------------- */
.about{
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}
.about .wrap{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items:start;
}
.about h2{ margin-bottom: 4px; }
.about-lead{
  font-family: var(--serif);
  font-size: 24px;
  line-height:1.45;
  color: var(--ink);
  margin-bottom: 24px;
}
.about-body p{ color: var(--ink-soft); font-size:16px; margin-bottom:16px; }
.about-cta{ margin-top: 28px; }

/* stats */
.stats{
  margin-top: 56px;
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.stat b{
  display:block;
  font-family: var(--serif);
  font-size: clamp(28px,3vw,42px);
  font-weight:500;
  color: var(--accent-dark);
}
.stat span{
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing:.03em;
}

/* ---------------- SERVICES ---------------- */
.services{
  padding: var(--section-pad) 0;
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
}
.service-list{
  border-top: 1px solid var(--line);
}
.service-row{
  display:grid;
  grid-template-columns: 90px 1fr 1.1fr;
  gap: 32px;
  align-items:center;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease, background .3s ease;
}
.service-row:hover{
  padding-left: 14px;
  background: rgba(156,107,69,0.06);
}
.service-num{
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
}
.service-row h3{ font-size: 24px; font-weight:500; }
.service-row p{ color: var(--ink-soft); font-size: 15px; }

/* ---------------- WORK ---------------- */
.work{
  padding: var(--section-pad) 0;
}
.work-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.work-head .section-head{ margin-bottom:0; }
/* Uniform grid — every card the same size. A mixed wide/narrow/tall masonry
   layout can never divide evenly across arbitrary browser widths, so it's
   deliberately not used here; this is what actually stays clean at any size. */
.work-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 18px;
}
.work-item{
  position:relative;
  overflow:hidden;
  border-radius: 4px;
  cursor:pointer;
}
.work-item img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.work-item:hover img{ transform: scale(1.08); }
.work-item .tag{
  position:absolute; inset:auto 0 0 0;
  padding: 22px 22px 18px;
  background: linear-gradient(0deg, rgba(15,13,10,.82) 0%, rgba(15,13,10,0) 100%);
  color:#fff;
  transform: translateY(8px);
  opacity: .92;
  transition: background .35s ease, backdrop-filter .35s ease;
}
.work-item .tag b{ display:block; font-family: var(--serif); font-size:19px; font-weight:500; }
.work-item .tag span{ font-size:12.5px; letter-spacing:.05em; text-transform:uppercase; color: rgba(255,255,255,.75); }
/* desktop only: caption strip frosts into full glass on hover */
@media (hover:hover) and (pointer:fine){
  .work-item .tag{ padding-top: 40px; }
  .work-item:hover .tag{
    background: linear-gradient(0deg, rgba(10,9,7,.55) 0%, rgba(10,9,7,.15) 100%);
    backdrop-filter: blur(6px) saturate(140%);
    -webkit-backdrop-filter: blur(6px) saturate(140%);
  }
}

.work-more{ margin-top: 48px; text-align:center; }

/* ---------------- CONSTRUCTION PROGRESS ---------------- */
/* One card per site, same rhythm as Selected Work — each card opens a single
   sequence that moves through that site's photos AND videos together (not
   split into separate galleries). Follows the page theme like Services and
   Process do, rather than being a fixed dark band like Why Us. */
.construction{
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}
.construction-site-grid{
  margin-top: 48px;
  grid-template-columns: repeat(2, 1fr);
}
.construction-site-card .tag span{ text-transform:none; }

/* Mobile-only sticky project-name bar. Hidden entirely on desktop, where
   the card grid alone is enough to navigate. */
.construction-site-tabs{ display:none; }

@media (max-width: 900px){
  .construction-site-tabs{
    position:sticky;
    top:60px;
    z-index:30;
    display:flex;
    overflow-x:auto;
    margin: 28px 0 20px;
    background: var(--cream);
    color: var(--ink);
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    scrollbar-width:none;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }
  .construction-site-tabs::-webkit-scrollbar{ display:none; }
  .construction-site-tabs a{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:60px;
    padding:12px 18px;
    border-right:1px solid var(--line);
    font-family: var(--serif);
    font-size:15.5px;
    white-space:nowrap;
    scroll-snap-align:start;
    color: var(--ink);
  }
  .construction-site-tabs a:last-child{ border-right:0; }
  .construction-site-tabs a span{
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size:10px;
    letter-spacing:.14em;
  }
  .construction-site-card{ scroll-margin-top: 140px; }
  .construction-site-grid{ margin-top:0; grid-template-columns:1fr; }
}

/* ---------------- CONCEPT & RESEARCH ---------------- */
.concept{
  padding: var(--section-pad) 0;
  background: var(--cream-deep);
}
.concept-projects{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.concept-card{
  position:relative;
  border-radius:6px;
  overflow:hidden;
  cursor:pointer;
  background: var(--cream);
  border:1px solid var(--line);
}
.concept-card__media{ position:relative; height:280px; overflow:hidden; }
.concept-card__media img{
  width:100%; height:100%; object-fit:cover;
  transition: transform .6s cubic-bezier(.22,.61,.36,1);
}
.concept-card:hover .concept-card__media img{ transform: scale(1.06); }
.concept-card__tag{
  position:absolute; top:14px; left:14px;
  font-size:10.5px; letter-spacing:.08em; text-transform:uppercase;
  background: rgba(20,18,15,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color:#fff;
  padding:6px 12px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.25);
}
.concept-card__body{ padding:22px 24px 26px; }
.concept-card__body h3{
  font-family: var(--serif); font-weight:500; font-size:21px; margin-bottom:6px;
}
.concept-card__body .meta{
  font-size:12px; letter-spacing:.04em; text-transform:uppercase;
  color: var(--ink-soft); display:block; margin-bottom:12px;
}
.concept-card__body p{
  font-size:14.5px; line-height:1.65; color: var(--ink-soft);
}
@media (max-width:860px){
  .concept-projects{ grid-template-columns:1fr; }
}

/* ---------------- WHY US ---------------- */
.why{
  padding: var(--section-pad) 0;
  background: var(--band-bg);
  color: var(--band-ink);
}
.why .eyebrow{ color: var(--band-ink); }
.why .eyebrow::before{ background: var(--band-ink); }
.why h2{ color: var(--band-ink); }
.why-grid{
  margin-top: 56px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--band-line);
  border: 1px solid var(--band-line);
}
.why-card{
  background: var(--band-bg);
  padding: 40px;
  transition: background .3s ease, transform .3s ease;
}
.why-card:hover{
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-3px);
}
.why-card .num{
  font-family: var(--serif);
  font-size: 15px;
  color: var(--band-ink-soft);
  margin-bottom: 18px;
  display:block;
}
.why-card h4{ color: var(--band-ink); font-size:21px; margin-bottom:12px; font-weight:500; }
.why-card p{ color: var(--band-ink-soft); font-size:15px; }

/* ---------------- PROCESS ---------------- */
.process{
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}
.process-list{
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.process-item{
  display:grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.process-item .num{
  font-family: var(--serif);
  font-size: 34px;
  color: var(--line);
  font-weight:500;
  transition: color .3s ease;
}
.process-item:hover .num{ color: var(--accent); }
.process-item h4{ font-size: 21px; margin-bottom:8px; font-weight:500; }
.process-item p{ color: var(--ink-soft); font-size:15px; max-width:560px; }

/* ---------------- CONTACT ---------------- */
.contact{
  padding: var(--section-pad) 0;
  background: var(--cream-deep);
}
.contact .wrap{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info h2{ margin-bottom: 18px; }
.contact-info > p{ color: var(--ink-soft); margin-bottom: 40px; max-width: 420px; }
.info-block{ margin-bottom: 28px; }
.info-block h5{
  font-size: 12px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--accent-dark);
  margin-bottom:8px;
  font-weight:600;
}
.info-block a, .info-block p{ font-size: 17px; color: var(--ink); }
.info-block a:hover{ color: var(--accent-dark); }
.social-row{ display:flex; gap:14px; margin-top: 36px; }
.social-row a{
  width:42px; height:42px;
  border:1px solid var(--ink);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition: all .25s ease;
}
.social-row a:hover{ background:var(--ink); color:var(--cream); }

.form-card{
  background: color-mix(in srgb, var(--cream) 60%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,.06);
}
.field{ margin-bottom: 20px; }
.field label{
  display:block;
  font-size: 12.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
/* The input background is deliberately fixed white in both themes, so the
   text and placeholder colors must be pinned to dark values too — using the
   themed --ink here made the typed text white-on-white in dark mode. */
.field input, .field select, .field textarea{
  width:100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: #0d0d0c;
  border-radius: 3px;
  transition: border-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder{
  color: #8a8880;
  opacity: 1;
}
.field select{ color:#0d0d0c; }
.field select option{ color:#0d0d0c; background:#fff; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color: var(--accent);
}
.field textarea{ resize: vertical; min-height: 100px; }
.field-row{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.form-note{ font-size: 12.5px; color: var(--ink-soft); margin-top:14px; text-align:center; }
.form-success{
  display:none;
  text-align:center;
  padding: 30px 10px;
}
.form-success.show{ display:block; }
.form-success h4{ margin-bottom:10px; }
.form-success p{ color:var(--ink-soft); }

/* ---------------- FOOTER ---------------- */
footer{
  background: var(--band-bg);
  color: var(--band-ink-soft);
  padding: 56px 0 26px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--band-line);
  margin-bottom: 26px;
  flex-wrap:wrap;
  gap:20px;
}
.footer-top .logo-mark img{ height:72px; }
footer .btn-outline{ border-color: rgba(245,244,240,.4); color: var(--band-ink); }
footer .btn-outline:hover{ background: var(--band-ink); color: var(--band-bg); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  font-size: 13px;
  color: rgba(245,244,240,.5);
  flex-wrap:wrap;
  gap:10px;
}
.footer-bottom a:hover{ color:#fff; }

/* ---------------- WHATSAPP FLOAT ---------------- */
.wa-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  width: 58px; height:58px;
  border-radius: 50%;
  background: var(--wa-green);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s ease;
  animation: pulse 2.6s ease-in-out infinite;
}
.wa-float:hover{ transform: scale(1.08); }
@keyframes pulse{
  0%,100%{ box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(37,211,102,.5); }
  50%{ box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------------- PROJECT LIGHTBOX ---------------- */
.lightbox{
  position:fixed; inset:0; z-index:500;
  display:flex; align-items:center; justify-content:center;
  opacity:0; visibility:hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.open{
  opacity:1; visibility:visible;
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.lightbox-backdrop{
  position:absolute; inset:0;
  background: rgba(6,6,5,0.92);
  backdrop-filter: blur(4px);
}
.lightbox-inner{
  position:relative; z-index:2;
  width:min(1100px, 92vw);
  max-width: 100vw;
  min-width: 0;
  max-height: 90vh;
  display:flex; flex-direction:column;
}
.lb-header{
  display:flex; align-items:baseline; gap:12px;
  padding: 4px 60px 16px 4px;
  color:#f5f4f0;
}
.lb-header b{ font-family: var(--serif); font-weight:500; font-size:19px; }
.lb-header span{ font-size:13px; color: rgba(245,244,240,.6); }
/* Only shown when a construction gallery actually mixes photos and videos —
   lets someone jump straight to the videos instead of swiping through every
   photo first. Finished-project galleries (photos only) never show this. */
.lb-filters{
  display:flex; gap:8px;
  margin: 0 4px 14px;
}
.lb-filters[hidden]{ display:none; }
.lb-filter{
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245,244,240,.25);
  background: rgba(255,255,255,.06);
  color: rgba(245,244,240,.7);
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .2s ease;
}
.lb-filter:hover{ background: rgba(255,255,255,.12); color:#f5f4f0; }
.lb-filter.active{ background:#f5f4f0; border-color:#f5f4f0; color:#0d0d0c; }
.lb-close{
  position:absolute; top:-6px; right:-6px;
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid rgba(245,244,240,.3);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#f5f4f0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  transition: all .2s ease;
}
.lb-close:hover{ background:#fff; color:#0d0d0c; }
.lb-stage{
  position:relative;
  display:flex; align-items:center; justify-content:center;
  flex:1;
  min-height:0;
  min-width:0;
}
.lb-stage img,
.lb-stage video{
  max-width:100%;
  max-height: 68vh;
  width:auto; height:auto;
  min-width:0; min-height:0;
  border-radius:4px;
  object-fit:contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-stage video{ display:none; background:#000; }
.lb-stage video.showing{ display:block; }
.lb-stage img.hidden-media{ display:none; }
.lb-nav{
  flex-shrink:0;
  width:46px; height:46px;
  border-radius:50%;
  border:1px solid rgba(245,244,240,.3);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color:#f5f4f0;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  margin: 0 16px;
  transition: all .2s ease;
}
.lb-nav:hover{ background:#fff; color:#0d0d0c; }
.lb-nav:disabled{ opacity:.25; cursor:default; }
.lb-nav:disabled:hover{ background: rgba(255,255,255,.06); color:#f5f4f0; }
.lb-counter{
  text-align:center;
  color: rgba(245,244,240,.55);
  font-size:12.5px;
  letter-spacing:.05em;
  margin-top:16px;
}

/* ---------------- CUSTOM CURSOR (desktop only) ---------------- */
@media (hover:hover) and (pointer:fine){
  a, button, .work-item, .theme-toggle, input, textarea, select, .wa-float{
    cursor:none;
  }
  body{ cursor:none; }
}
.cursor-fx{
  position:fixed;
  top:0; left:0;
  width:14px; height:14px;
  border-radius:50%;
  background:#fff;
  mix-blend-mode:difference;
  pointer-events:none;
  z-index:9999;
  display:flex; align-items:center; justify-content:center;
  opacity:0;
  transform: translate(-50%,-50%);
  transition: width .3s cubic-bezier(.16,1,.3,1), height .3s cubic-bezier(.16,1,.3,1), opacity .25s ease;
}
.cursor-fx.active{ opacity:1; }
.cursor-fx .cf-icon{ opacity:0; width:0; height:0; transition: opacity .2s ease; position:absolute; }
.cursor-fx.tool{ width:40px; height:40px; }
.cursor-fx.tool .cf-compass{ opacity:1; width:18px; height:18px; }
.cursor-fx.view{ width:64px; height:64px; }
.cursor-fx.view .cf-view{ opacity:1; width:20px; height:20px; }
/* never show on touch devices, even if JS somehow inits */
@media (hover:none){ .cursor-fx{ display:none !important; } }

/* ---------------- TACTILE / TOUCH FEEDBACK ---------------- */
.btn, .work-item, .why-card, .theme-toggle, .wa-float, .social-row a{
  -webkit-tap-highlight-color: transparent;
}
.btn:active{ transform: scale(.96); }
.work-item:active{ transform: scale(.98); }
.social-row a:active{ transform: scale(.9); }

/* ---------------- SCROLL REVEAL ---------------- */
.reveal{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.in{ opacity:1; transform:none; }

/* Individual cards/rows inside a revealed section fade in with a small
   randomized delay each (assigned in JS) — a gentle, organic cascade
   instead of the whole grid appearing in lockstep. */
.stagger{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1);
}
.stagger.in{ opacity:1; transform:none; }

/* ---------------- RESPONSIVE ---------------- */
/* Alignment safeguard found during audit: at mid-tablet widths the header
   (logo + route tag + toggle + pill button, all in one flex row with no
   wrap) was tight enough to risk crowding/overlap before the phone
   breakpoint kicked in. Drop the route tag earlier to give it room. */
@media (max-width: 860px){
  .header-cta .tag{ display:none; }
}

@media (max-width: 980px){
  .about .wrap{ grid-template-columns:1fr; gap:40px; }
  .stats{ grid-template-columns: repeat(2,1fr); }
  .service-row{ grid-template-columns: 50px 1fr; }
  .service-row p{ grid-column: 1 / -1; }
  .why-grid{ grid-template-columns:1fr; }
  .contact .wrap{ grid-template-columns:1fr; gap:48px; }
}

@media (max-width: 1180px){
  .work-grid{ grid-template-columns: repeat(2,1fr); grid-auto-rows:260px; }
}

/* ---- Phone (primary target — most traffic lands here) ---- */
@media (max-width: 640px){
  :root{ --section-pad: 52px; }
  .wrap{ padding:0 18px; }

  /* header */
  header{ padding: 14px 0; }
  header.scrolled{ padding: 12px 0; }
  .logo-mark img{ height:36px; }
  .header-cta{ gap:8px; }
  .header-cta .tag{ display:none; }
  /* Hero already has its own "Book a Consultation" button right below the
     fold, and the WhatsApp float stays available throughout — a second
     identical CTA sitting in the header reads as clutter on a small screen. */
  .header-cta .btn{ display:none; }
  .theme-toggle{ width:36px; height:36px; }

  /* hero */
  .hero{ min-height: 92svh; align-items:flex-end; }
  .hero-content{ padding-top: 110px; padding-bottom: 40px; }
  .hero-kicker{ font-size:10px; letter-spacing:.14em; margin-bottom:12px; }
  .hero-kicker::before{ width:18px; }
  .hero h1{ font-size: clamp(28px, 8vw, 40px); line-height:1.12; margin-bottom:14px; }
  .hero-sub{ font-size:14.5px; margin-bottom:22px; max-width:100%; }
  .hero-actions{ gap:10px; margin-bottom:26px; }
  .hero-actions .btn{ flex:1 1 auto; justify-content:center; padding:13px 18px; font-size:13px; }
  .hero-strip{ display:none; }
  .scroll-cue{ display:none; }

  .marquee-track span{ font-size:13px; padding:0 18px; }

  /* section rhythm */
  .eyebrow{ font-size:11px; margin-bottom:12px; }
  h2{ font-size: clamp(26px, 7vw, 34px); }
  .section-head{ margin-bottom:34px; }
  .section-head p{ font-size:15px; margin-top:12px; }

  .about-lead{ font-size:19px; margin-bottom:16px; }
  .stats{ grid-template-columns: repeat(2,1fr); gap:18px; margin-top:36px; padding-top:28px; }
  .stat b{ font-size:26px; }
  .stat span{ font-size:11.5px; }

  .service-row{ padding:22px 0; gap:16px; }
  .service-row h3{ font-size:19px; }
  .service-row p{ font-size:14px; }

  .work-head{ margin-bottom:30px; }
  .work-grid{ grid-template-columns:1fr; grid-auto-rows:220px; gap:12px; }
  .work-item .tag{ padding:16px; }
  .work-item .tag b{ font-size:16px; }

  .why-card{ padding:26px 20px; }
  .why-card h4{ font-size:18px; }

  .process-item{ grid-template-columns: 40px 1fr; padding:24px 0; gap:16px; }
  .process-item .num{ font-size:24px; }
  .process-item h4{ font-size:18px; }

  .field-row{ grid-template-columns:1fr; }
  .form-card{ padding:22px; }
  .contact-info h2{ margin-bottom:14px; }
  .info-block a, .info-block p{ font-size:15px; }

  .footer-top{ flex-direction:column; align-items:flex-start; gap:16px; }
  .footer-top .logo-mark img{ height:44px; }
  .footer-top .btn{ width:100%; text-align:center; }
  .footer-bottom{ flex-direction:column; font-size:12px; }

  .wa-float{ width:50px; height:50px; right:16px; bottom:16px; }

  .lb-header{ padding:14px 56px 10px 18px; }
  .lb-header b{ font-size:15px; }
  .lb-stage{ padding:0 6px; }
  .lb-nav{ width:34px; height:34px; margin:0 4px; flex-shrink:0; }
  .lb-close{ top:10px; right:10px; }
  .lightbox-inner{ width:min(1100px, 96vw); }
}
