/* ==========================================================================
   BBD Electrical — Premium redesign
   Direction: minimal, editorial, photo-forward. White-dominant (80/15/5).
   Restraint over decoration. The work speaks; the type stays confident.
   ========================================================================== */

:root {
  --navy:        #00214A;
  --navy-900:    #001428;
  --navy-700:    #0A2E5C;
  --gold:        #FDCC1B;
  --gold-600:    #E0B200;
  --white:       #FFFFFF;
  --paper:       #F7F8FA;
  --ink:         #0E1A2B;
  --ink-soft:    #55637A;
  --line:        #E7ECF2;
  --line-strong: #D3DBE6;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', 'Courier New', monospace;

  --container: 1220px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5.5rem, 12vh, 9rem);

  --r-sm: 8px; --r-md: 16px; --r-lg: 24px;
  --shadow-soft: 0 20px 50px -20px rgba(0,33,74,.28);
  --shadow-card: 0 30px 70px -30px rgba(0,33,74,.35);
  --ease: cubic-bezier(.19,1,.22,1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.full { width: 100%; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.025em; color: var(--navy); }

/* eyebrow label — the quiet signature */
.eyebrow {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold-600); font-weight: 700;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--gold); }
.eyebrow.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1.05rem 1.9rem; font-weight: 600; font-size: 1rem; border-radius: 100px;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -8px rgba(253,204,27,.6); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-3px); background: var(--navy-700); box-shadow: var(--shadow-soft); }
.btn-line { border: 1.5px solid var(--line-strong); color: var(--navy); }
.btn-line:hover { border-color: var(--navy); background: var(--navy); color: #fff; transform: translateY(-3px); }
.btn-glass { background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.35); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; color: var(--navy); transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 1.5rem 0; transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.scrolled { background: rgba(255,255,255,.9); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); padding: .8rem 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .b1 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.brand-text .b2 { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .2em; color: var(--ink-soft); margin-top: 3px; text-transform: uppercase; }
.site-header:not(.scrolled) .brand-text .b1 { color: #fff; }
.site-header:not(.scrolled) .brand-text .b2 { color: rgba(255,255,255,.65); }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; position: relative; padding: .3rem 0; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; background: var(--gold); transition: width .3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.88); }
.site-header:not(.scrolled) .nav-links a:hover { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 1.2rem; }
.login-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: 100px; border: 1.5px solid var(--line-strong); transition: all .25s var(--ease); }
.login-link svg { width: 15px; height: 15px; }
.login-link:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.site-header:not(.scrolled) .login-link { color: #fff; border-color: rgba(255,255,255,.4); }
.site-header:not(.scrolled) .login-link:hover { background: #fff; color: var(--navy); border-color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,20,40,.78) 0%, rgba(0,20,40,.28) 40%, rgba(0,20,40,.55) 75%, rgba(0,20,40,.92) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 8vh, 6rem); padding-top: 8rem; max-width: 940px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; margin: 1.6rem 0; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: rgba(255,255,255,.85); max-width: 560px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero-scroll { position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); font-family: var(--font-mono); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .5rem; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
.hero-scroll svg { width: 16px; height: 16px; }

/* ---------- Trust strip ---------- */
.trust { padding: clamp(3.5rem, 7vh, 5.5rem) 0; border-bottom: 1px solid var(--line); }
.trust-head { text-align: center; max-width: 700px; margin: 0 auto clamp(2.5rem,5vh,3.5rem); }
.trust-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: 1rem; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tstat { text-align: center; padding: 1rem; }
.tstat .n { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--navy); line-height: 1; }
.tstat .n span { color: var(--gold-600); }
.tstat .l { font-size: .82rem; color: var(--ink-soft); margin-top: .6rem; letter-spacing: .02em; }

/* ---------- Section scaffolding ---------- */
.section { padding: var(--section) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-top: 1.2rem; }
.section-head p { margin-top: 1.2rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; }
.section-head.center p { margin-inline: auto; }

/* ---------- Projects (the star) ---------- */
.proj-featured { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--shadow-card); cursor: pointer; }
.proj-featured img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.proj-featured:hover img { transform: scale(1.04); }
.proj-featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,20,40,.85) 0%, rgba(0,20,40,.3) 55%, transparent 100%); }
.proj-featured .cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(1.5rem, 4vw, 3rem); color: #fff; max-width: 620px; }
.proj-featured .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.proj-featured h3 { color: #fff; font-size: clamp(1.7rem, 4vw, 3rem); margin-top: .6rem; }
.proj-featured p { color: rgba(255,255,255,.82); margin-top: .6rem; font-size: 1.02rem; max-width: 460px; }

/* alternating split projects */
.proj-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vh, 5rem); }
.proj-split.reverse .ps-media { order: 2; }
.ps-media { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-soft); cursor: pointer; }
.ps-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ps-media:hover img { transform: scale(1.05); }
.ps-media .zoom { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: all .35s var(--ease); }
.ps-media:hover .zoom { opacity: 1; transform: scale(1); }
.ps-media .zoom svg { width: 18px; height: 18px; color: var(--navy); }
.ps-body .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); }
.ps-body h3 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-top: .8rem; }
.ps-body p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.05rem; }
.ps-body .mini { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.ps-body .mini span { font-size: .82rem; color: var(--navy); background: var(--paper); border: 1px solid var(--line); padding: .4rem .9rem; border-radius: 100px; }

/* before/after band */
.ba-section { margin-top: clamp(3.5rem, 7vh, 6rem); }
.ba-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.ba { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4/3; user-select: none; background: var(--navy-900); box-shadow: var(--shadow-soft); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-after { clip-path: inset(0 0 0 50%); }
.ba-label { position: absolute; top: 1rem; z-index: 4; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .35rem .7rem; border-radius: 4px; }
.ba-label.before { left: 1rem; background: rgba(0,20,40,.75); color: #fff; }
.ba-label.after { right: 1rem; background: var(--gold); color: var(--navy); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--gold); z-index: 5; transform: translateX(-1px); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: 50%; z-index: 6; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); display: grid; place-items: center; cursor: ew-resize; }
.ba-handle svg { width: 22px; height: 22px; color: var(--navy); }
.ba-range { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-cap { margin-top: 1rem; font-size: .98rem; color: var(--ink-soft); }
.ba-cap strong { color: var(--navy); font-weight: 650; }

/* full-bleed statement band */
.statement { position: relative; min-height: 60vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.statement img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,20,40,.9) 0%, rgba(0,20,40,.55) 60%, rgba(0,20,40,.35) 100%); z-index: -1; }
.statement h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.8rem); max-width: 760px; }
.statement p { color: rgba(255,255,255,.82); margin-top: 1.2rem; font-size: 1.15rem; max-width: 520px; }

/* capability note (honest, text-only) */
.cap-note { margin-top: clamp(2.5rem, 5vh, 4rem); display: flex; gap: 1.4rem; align-items: center; padding: 1.6rem 2rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--paper); }
.cap-note .m { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.cap-note .m svg { width: 24px; height: 24px; }
.cap-note h4 { font-size: 1.05rem; color: var(--navy); }
.cap-note p { font-size: .95rem; color: var(--ink-soft); margin-top: .2rem; }
.cap-note a { color: var(--gold-600); font-weight: 600; }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 1.2rem; }
.tile { position: relative; border-radius: var(--r-md); overflow: hidden; padding: clamp(1.5rem, 3vw, 2.2rem); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,20,40,.15) 0%, rgba(0,20,40,.5) 55%, rgba(0,20,40,.92) 100%); }
.tile.solid { background: var(--navy); }
.tile.solid::after { background: radial-gradient(circle at 80% 10%, rgba(253,204,27,.14), transparent 55%); }
.tile .t-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.16); backdrop-filter: blur(4px); display: grid; place-items: center; margin-bottom: auto; }
.tile .t-icon svg { width: 24px; height: 24px; color: #fff; }
.tile.solid .t-icon { background: rgba(253,204,27,.16); }
.tile.solid .t-icon svg { color: var(--gold); }
.tile h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-top: 1rem; }
.tile p { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: .5rem; }
.tile-lg { grid-column: span 2; }
.tile ul { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.tile li { font-size: .85rem; color: rgba(255,255,255,.75); position: relative; padding-left: 1rem; }
.tile li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Why choose (split) ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-card); }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-points { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2.2rem; }
.why-point { display: flex; gap: 1.1rem; }
.why-point .ck { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-top: 2px; }
.why-point .ck svg { width: 16px; height: 16px; }
.why-point h4 { font-size: 1.15rem; }
.why-point p { color: var(--ink-soft); font-size: .96rem; margin-top: .25rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(3rem, 7vw, 5.5rem); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; top: -40%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(253,204,27,.16), transparent 65%); }
.cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 720px; margin: 0 auto; position: relative; }
.cta p { color: rgba(255,255,255,.78); margin: 1.2rem auto 2.2rem; font-size: 1.1rem; max-width: 480px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.cmethod { display: flex; align-items: center; gap: 1.2rem; padding: 1.3rem 1.5rem; border-radius: var(--r-md); border: 1px solid var(--line); transition: all .3s var(--ease); }
.cmethod:hover { border-color: var(--navy); transform: translateX(5px); box-shadow: var(--shadow-soft); }
.cmethod-ic { flex: none; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--navy); color: var(--gold); display: grid; place-items: center; }
.cmethod-ic svg { width: 24px; height: 24px; }
.cmethod .lb { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.cmethod .vl { font-size: 1.15rem; font-weight: 650; color: var(--navy); margin-top: 2px; }
.hours { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hours h4 { font-size: 1rem; margin-bottom: 1rem; }
.hours-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.hours-row span:first-child { color: var(--ink-soft); }
.hours-row span:last-child { color: var(--navy); font-weight: 600; }
.hours .note { font-size: .82rem; color: var(--ink-soft); margin-top: 1rem; }
.contact-aside { background: var(--paper); border-radius: var(--r-lg); padding: clamp(2rem, 4vw, 3rem); }
.contact-aside h3 { font-size: 1.7rem; }
.contact-aside > p { color: var(--ink-soft); margin: 1rem 0 1.8rem; }
.contact-aside .btn { width: 100%; margin-bottom: 1rem; }
.map-slot { margin-top: 1.4rem; border-radius: var(--r-md); overflow: hidden; border: 1px dashed var(--line-strong); min-height: 160px; display: grid; place-items: center; color: var(--ink-soft); font-size: .85rem; text-align: center; padding: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.68); padding: clamp(3.5rem,7vh,5rem) 0 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 54px; border-radius: 10px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .92rem; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-col h5 { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-top: 2rem; font-size: .84rem; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating buttons ---------- */
.fab-stack { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: none; flex-direction: column; gap: 12px; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-card); transition: transform .25s var(--ease); }
.fab:active { transform: scale(.92); }
.fab svg { width: 26px; height: 26px; }
.fab.call { background: var(--navy); color: #fff; }
.fab.msg { background: var(--gold); color: var(--navy); }
.fab.quote { background: #fff; color: var(--navy); border: 1.5px solid var(--line-strong); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,14,28,.95); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 2rem; opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-close svg { width: 24px; height: 24px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: 24px; } .lb-nav.next { right: 24px; }
.lb-nav svg { width: 26px; height: 26px; }
.lightbox-cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .95rem; font-family: var(--font-mono); letter-spacing: .04em; text-align: center; padding-inline: 1rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); background: #fff; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem; padding: 4rem 2.5rem; box-shadow: var(--shadow-card); transform: translateX(100%); transition: transform .45s var(--ease); z-index: 105; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; color: var(--navy); }
  .site-header:not(.scrolled) .nav-links a { color: var(--navy); }
  .nav-toggle { display: flex; }
  .login-link span { display: none; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .proj-split, .why, .contact { grid-template-columns: 1fr; }
  .proj-split.reverse .ps-media { order: 0; }
  .ba-wrap { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
  .tile-lg { grid-column: span 2; }
  .fab-stack { display: flex; }
  .why-media { max-width: 460px; aspect-ratio: 4/4; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .tile-lg { grid-column: span 1; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
}

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
