/* ==========================================================================
   Impisi General Construction — public website styles
   Charcoal · White · Construction gold
   ========================================================================== */

:root {
  --ink: #252525;            /* primary dark (charcoal) */
  --ink-2: #1b1b1c;
  --gold: #D6A900;           /* accent */
  --gold-2: #F2C500;         /* secondary accent */
  --gold-dark: #8a6d00;      /* gold text on white (AA contrast) */
  --white: #FFFFFF;
  --soft: #F4F5F6;           /* soft background */
  --text: #444444;           /* body text */
  --muted: #6b6b6b;
  --line: #e3e4e6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08);
  --shadow-lg: 0 18px 45px rgba(20, 20, 20, .16);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Aptos, Arial, sans-serif;
  --header-h: 86px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .display-title { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 2000; background: var(--gold-2); color: var(--ink); padding: .6rem 1rem; font-weight: 700; border-radius: 6px; }
.skip-link:focus { top: 1rem; }
#main:focus { outline: none; }

.preview-banner { background: var(--ink); color: #f0e2a8; font-size: .85rem; text-align: center; padding: .45rem 1rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: .7rem 1.35rem; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn i { margin-right: .35rem; }
.btn-gold { background: var(--gold-2); color: var(--ink); border: 2px solid var(--gold-2); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(214,169,0,.35); }
.btn-ink { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.btn-ink:hover, .btn-ink:focus-visible { background: #000; color: var(--gold-2); transform: translateY(-2px); }
.btn-outline-light-2 { border: 2px solid rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-outline-light-2:hover, .btn-outline-light-2:focus-visible { background: #fff; color: var(--ink); }
.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline-ink:hover, .btn-outline-ink:focus-visible { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: .35rem; }
.link-arrow i { transition: transform .2s; color: var(--gold-dark); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); border-color: var(--line); }
.site-header .navbar { min-height: var(--header-h); padding: .35rem 0; }
.navbar-brand img { height: 64px; width: auto; transition: height .25s; }
.site-header.scrolled .navbar-brand img { height: 52px; }
.navbar .nav-link { color: var(--ink); font-weight: 600; padding: .5rem .9rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem; height: 3px; border-radius: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .nav-link.active { color: var(--ink); }
.navbar-toggler { border: 2px solid var(--ink); border-radius: 10px; padding: .35rem .6rem; font-size: 1.5rem; color: var(--ink); }
@media (max-width: 991.98px) {
  .navbar-collapse { padding: .75rem 0 1.25rem; }
  .navbar .nav-link::after { display: none; }
  .navbar .nav-link.active { background: var(--soft); border-radius: 8px; box-shadow: inset 4px 0 0 var(--gold); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.bg-soft { background: var(--soft); }
.bg-ink { background: var(--ink); color: #d8d8d8; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--gold-dark); margin-bottom: .8rem; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--gold); border-radius: 3px; }
.bg-ink .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold-2); }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.lead-text { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--ink-2); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
/* Hero slideshow: photos cross-fade behind the fixed headline, each with a slow zoom */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 1.4s ease-in-out; }
.hero-slide.active { opacity: 1; animation: hero-zoom 8s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: flex; gap: .55rem; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid rgba(255,255,255,.85); background: transparent; transition: width .3s, background .3s; }
.hero-dots button[aria-current="true"] { width: 34px; background: var(--gold-2); border-color: var(--gold-2); }
.hero-dots button:hover, .hero-dots button:focus-visible { background: rgba(255,255,255,.7); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } .hero-slide.active { animation: none; transform: none; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(20,20,20,.94) 0%, rgba(20,20,20,.78) 45%, rgba(20,20,20,.25) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; z-index: 2; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.hero .container { position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 4rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 900; max-width: 14ch; margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--gold-2); }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #e2e2e2; max-width: 52ch; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; font-size: .92rem; color: #cfcfcf; }
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta i { color: var(--gold-2); font-size: 1.1rem; }
.stagger > * { opacity: 0; transform: translateY(22px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.stagger > *:nth-child(2) { animation-delay: .12s; }
.stagger > *:nth-child(3) { animation-delay: .24s; }
.stagger > *:nth-child(4) { animation-delay: .36s; }
.stagger > *:nth-child(5) { animation-delay: .48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Inner page hero */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: 4.5rem 0 3.75rem; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 40px 40px; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border: 22px solid rgba(214,169,0,.16); border-radius: 50%; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .75rem; }
.page-hero p { color: #d4d4d4; max-width: 62ch; font-size: 1.1rem; margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: #9a9a9a; margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb a { color: #e0e0e0; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb .active { color: var(--gold-2); }

/* ---------- Affiliations ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); padding: 1.25rem 0; overflow: hidden; }
.ticker-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--muted); text-align: center; margin-bottom: .75rem; }
.ticker-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-speed, 30s) linear infinite; }
.ticker-group { display: flex; gap: 1.25rem; padding-right: 1.25rem; }
.ticker-viewport:hover .ticker-track, .ticker-viewport:has(:focus-visible) .ticker-track, .ticker.paused .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: flex; align-items: center; gap: .85rem; height: 74px; padding: 0 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; white-space: nowrap; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.ticker-item:hover, .ticker-item:focus-visible { border-color: var(--gold); box-shadow: var(--shadow); }
.ticker-item img { height: 54px; max-width: 190px; width: auto; object-fit: contain; }
.ticker-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-2); font-weight: 900; font-size: .72rem; letter-spacing: .02em; flex-shrink: 0; }
.ticker-name { font-size: .86rem; line-height: 1.25; }
.ticker-name strong { display: block; font-size: 1rem; }
.ticker-pause { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .78rem; padding: .25rem .75rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
  .ticker-group { flex-wrap: wrap; justify-content: center; padding: 0; }
  .ticker-group[aria-hidden="true"], .ticker-pause { display: none; }
  .ticker-item { white-space: normal; height: auto; min-height: 64px; padding: .6rem 1rem; }
}

/* ---------- Cards ---------- */
.service-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.service-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.icon-tile { width: 62px; height: 62px; border-radius: 16px; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.service-card ul { padding-left: 0; list-style: none; margin: 1rem 0 1.25rem; }
.service-card li { padding: .22rem 0 .22rem 1.6rem; position: relative; font-size: .95rem; }
.service-card li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; color: var(--gold-dark); }
.stretched-focus:focus-visible { outline: none; }

.project-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s; }
.project-card:hover, .project-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .thumb img { transform: scale(1.07); }
.project-card .body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.project-card h3 a { text-decoration: none; color: var(--ink); }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card .meta { font-size: .88rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.project-card .meta i { color: var(--gold-dark); margin-right: .3rem; }
.project-card .more { margin-top: auto; font-weight: 700; color: var(--ink); font-size: .92rem; }
.project-card .more i { color: var(--gold-dark); transition: transform .2s; display: inline-block; }
.project-card:hover .more i { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; }
.chip-cat { background: rgba(255,255,255,.95); color: var(--ink); }
.chip-done { background: #1f6f43; color: #fff; }
.chip-progress { background: var(--gold-2); color: var(--ink); }
.thumb .chips { position: absolute; left: 12px; top: 12px; display: flex; gap: .4rem; z-index: 1; }

/* ---------- Intro / why ---------- */
.intro-figure { position: relative; }
.intro-figure img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.intro-figure .badge-year { position: absolute; right: -14px; bottom: -22px; background: var(--gold-2); color: var(--ink); border-radius: var(--radius); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg); font-weight: 800; line-height: 1.1; }
.intro-figure .badge-year strong { display: block; font-size: 2rem; font-weight: 900; }
@media (max-width: 575.98px) { .intro-figure .badge-year { right: 10px; } }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
.check-list li::before { content: "\F26B"; font-family: bootstrap-icons; position: absolute; left: 0; top: .32rem; color: var(--gold-dark); font-size: 1.1rem; }

.why-item { display: flex; gap: 1.1rem; padding: 1.5rem; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); height: 100%; transition: background .3s, border-color .3s; }
.why-item:hover { background: rgba(255,255,255,.07); border-color: rgba(214,169,0,.5); }
.why-item .num { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; }
.why-item h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.why-item p { margin: 0; color: #c9c9c9; font-size: .96rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--ink); }
.stat { text-align: center; padding: 1rem; }
.stat .value { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1; color: var(--ink); }
.stat .label { font-weight: 700; margin-top: .5rem; font-size: .95rem; }

/* ---------- Team & testimonials ---------- */
.team-card { text-align: center; }
.team-card .photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--soft); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .photo img { transform: scale(1.04); }
.team-card h3 { font-size: 1.1rem; margin-bottom: .15rem; }
.team-card .role { color: var(--gold-dark); font-weight: 700; font-size: .9rem; }
.quote-card { background: #fff; border-radius: var(--radius); padding: 2rem; height: 100%; border: 1px solid var(--line); position: relative; }
.quote-card::before { content: "\201C"; position: absolute; top: -.4rem; left: 1.4rem; font-size: 5rem; line-height: 1; color: var(--gold); font-family: Georgia, serif; }
.quote-card blockquote { margin: 1.5rem 0 1.25rem; font-size: 1.04rem; color: var(--ink); }
.quote-card figcaption { font-weight: 700; color: var(--ink); }
.quote-card figcaption span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-band { position: relative; background: var(--ink); color: #fff; border-radius: 22px; padding: 3.25rem; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 26px solid rgba(242,197,0,.18); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: #d0d0d0; max-width: 55ch; }
.cta-band > * { position: relative; z-index: 1; }
@media (max-width: 575.98px) { .cta-band { padding: 2.25rem 1.5rem; } }

/* ---------- About ---------- */
.vm-card { padding: 2rem; border-radius: var(--radius); height: 100%; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); }
.vm-card h3 { font-size: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.vm-card h3 i { color: var(--gold-dark); }
.objective { padding: 1.4rem; border-radius: var(--radius); background: var(--soft); height: 100%; }
.objective h3 { font-size: 1.05rem; color: var(--ink); }
.value-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; margin: .3rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.value-pill i { color: var(--gold-dark); }
.cred-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.cred-card img { width: 120px; height: 60px; object-fit: contain; flex-shrink: 0; }
.cred-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.cred-card p { font-size: .9rem; margin: 0; color: var(--muted); }

/* ---------- Services page ---------- */
.service-block { padding: 4.5rem 0; border-bottom: 1px solid var(--line); }
.service-block:nth-child(even) { background: var(--soft); }
.service-block .service-img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.cap-grid li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .9rem .65rem 2.4rem; position: relative; font-weight: 600; color: var(--ink); font-size: .95rem; }
.cap-grid li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: .9rem; color: var(--gold-dark); }
.service-nav { position: sticky; top: calc(var(--header-h) - 1px); z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.service-nav a { display: inline-block; padding: 1rem 1.1rem; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.service-nav a:hover, .service-nav a.active { color: var(--ink); border-color: var(--gold); }

/* ---------- Our Work ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); margin-top: -3rem; position: relative; z-index: 3; }
.filter-bar .form-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 10px; padding: .7rem .9rem; border-color: #d4d6d9; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .25rem rgba(242,197,0,.25); }
.nav-tabs-work { border: 0; gap: .5rem; }
.nav-tabs-work .nav-link { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 700; padding: .55rem 1.2rem; background: #fff; }
.nav-tabs-work .nav-link.active { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--gold); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.gallery-item { position: relative; border: 0; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; background: var(--ink); cursor: zoom-in; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); opacity: .85; }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); color: #fff; font-size: .84rem; text-align: left; line-height: 1.35; }
.gallery-item .cap strong { display: block; color: var(--gold-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

/* Gallery: rows of photos, alternate rows slide in opposite directions, looping forever */
.gallery-scroller { position: relative; overflow: hidden; padding: .25rem 0 1rem; }
.gallery-rows { display: flex; flex-direction: column; gap: 1rem; }
.gallery-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gallery-row-track { display: flex; width: max-content; animation: gallery-left var(--g-dur, 60s) linear infinite; will-change: transform; }
.gallery-row.reverse .gallery-row-track { animation-name: gallery-right; }
.gallery-row .gallery-group { display: flex; gap: 1rem; padding-right: 1rem; }
.gallery-row .gallery-item { width: clamp(220px, 24vw, 340px); flex: 0 0 auto; }
.gallery-rows:hover .gallery-row-track, .gallery-rows:has(:focus-visible) .gallery-row-track, .gallery-scroller.paused .gallery-row-track { animation-play-state: paused; }
@keyframes gallery-left { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--g-dist, 0px))); } }
@keyframes gallery-right { from { transform: translateX(calc(-1 * var(--g-dist, 0px))); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .gallery-row-track { animation: none; } }
.gallery-pause { position: absolute; right: 12px; bottom: 26px; z-index: 2; border: 0; border-radius: 999px; padding: .45rem .9rem; font-size: .85rem; font-weight: 700; background: rgba(20,20,20,.85); color: #fff; }
.gallery-pause:hover, .gallery-pause:focus-visible { background: var(--gold-2); color: var(--ink); }
.gallery-item .cap { font-weight: 600; }

/* Project detail */
.project-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.project-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(18,18,18,.95) 0%, rgba(18,18,18,.55) 55%, rgba(18,18,18,.25) 100%); }
.project-hero .container { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 3rem; }
.project-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 24ch; }
.facts { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.facts dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.facts dd { color: var(--ink); font-weight: 600; margin-bottom: 1rem; }
.facts dd:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose h2:first-child { margin-top: 0; }

.timeline { position: relative; margin-top: 1rem; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--gold), var(--line)); border-radius: 3px; }
.tl-stage { position: relative; padding-left: 64px; padding-bottom: 2.75rem; }
.tl-stage:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0; width: 45px; height: 45px; border-radius: 50%; background: var(--ink); color: var(--gold-2); display: grid; place-items: center; font-weight: 900; font-size: .92rem; box-shadow: 0 0 0 6px #fff; }
.tl-stage h3 { font-size: 1.2rem; margin: .55rem 0 1rem; }
.tl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tl-photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .45rem; line-height: 1.45; }
.tl-photo figcaption time { display: block; font-weight: 700; color: var(--gold-dark); font-size: .78rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(12,12,12,.95); display: none; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 11rem); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox figcaption { color: #e7e7e7; margin-top: 1rem; text-align: center; max-width: 70ch; font-size: .95rem; }
.lightbox figcaption strong { color: var(--gold-2); display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.lb-btn { position: absolute; border: 0; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--gold-2); color: var(--ink); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 1.4rem; left: 1.4rem; color: #bbb; font-size: .9rem; }
@media (max-width: 575.98px) { .lightbox { padding: 4rem .75rem 5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* ---------- Contact ---------- */
.contact-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-bottom: 1rem; }
.contact-card .icon-tile { width: 48px; height: 48px; font-size: 1.2rem; margin: 0; border-radius: 12px; flex-shrink: 0; }
.contact-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25rem; }
.contact-card p, .contact-card a { margin: 0; font-weight: 600; color: var(--ink); }
.form-panel { background: #fff; border-radius: 18px; padding: 2.25rem; box-shadow: var(--shadow-lg); border-top: 6px solid var(--gold); }
@media (max-width: 575.98px) { .form-panel { padding: 1.5rem 1.15rem; } }
.form-label { font-weight: 700; color: var(--ink); font-size: .92rem; }
.req { color: #b42318; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.type-switch .btn { border-radius: 999px; }
.type-switch .btn-check:checked + .btn { background: var(--ink); color: var(--gold-2); border-color: var(--ink); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--soft); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #bdbdbd; padding: 4.5rem 0 5.5rem; border-top: 6px solid var(--gold); }
.footer-logo { display: inline-block; background: #fff; padding: .6rem .9rem; border-radius: 12px; }
.footer-logo img { height: 64px; width: auto; }
.text-light-50 { color: #b5b5b5; }
.footer-h { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1.1rem; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a, .footer-bottom a { color: #d0d0d0; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: var(--gold-2); }
.footer-contact li { display: flex; gap: .75rem; margin-bottom: .85rem; }
.footer-contact i { color: var(--gold-2); margin-top: .15rem; }
.footer-email { overflow-wrap: normal; word-break: normal; }
.social { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #444; color: #ddd; display: grid; place-items: center; text-decoration: none; }
.social:hover { background: var(--gold-2); color: var(--ink); border-color: var(--gold-2); }
.footer-bottom { border-top: 1px solid #333; margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .88rem; }
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 10px 25px rgba(0,0,0,.25); text-decoration: none; }
.wa-float:hover, .wa-float:focus-visible { color: #fff; transform: scale(1.06); }
.wa-float { transition: transform .2s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: var(--ink); color: #fff; font-size: .85rem; font-weight: 600; white-space: nowrap; padding: .4rem .75rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; }
@media (max-width: 575.98px) { .wa-float { right: 1rem; bottom: 1rem; width: 54px; height: 54px; font-size: 1.65rem; } .wa-tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; display: none; } }
.footer-bottom .credit a { color: var(--gold-2); font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .1s; } .js .reveal-d2 { transition-delay: .2s; } .js .reveal-d3 { transition-delay: .3s; }
@media (max-width: 767.98px) { .js .reveal { transform: translateY(14px); transition-duration: .5s; } }
@media (prefers-reduced-motion: reduce) {
  .is-scrolling .gallery-track { animation: none; }
  .js .reveal, .stagger > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .project-card, .service-card, .project-card .thumb img, .gallery-item img, .btn { transition: none !important; }
}

/* Utilities */
.text-gold { color: var(--gold-dark) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.privacy-note { font-size: .86rem; color: var(--muted); }

/* Mobile: Bootstrap's large gutters exceed container padding on narrow screens */
@media (max-width: 767.98px) { .row.g-5 { --bs-gutter-x: 1.5rem; } }
html, body { overflow-x: clip; }

/* Menu: keep every item on one line on laptop widths */
.navbar .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { padding: .5rem .55rem !important; font-size: .95rem; }
  .navbar .nav-link::after { left: .55rem; right: .55rem; }
  .navbar-brand img { height: 54px; }
  .navbar .btn-gold { padding: .55rem .95rem; font-size: .92rem; white-space: nowrap; }
  .navbar .nav-item.ms-lg-3 { margin-left: .5rem !important; }
}
