/* ===========================================================
   JRL Construction Group — shared styles
   Fonts: Archivo (headings), Inter (body)
   =========================================================== */
:root {
  --bg:        #161618;
  --bg-2:      #1a1a1c;
  --bg-3:      #2c2c2e;
  --line:      #3a3a3c;
  --line-soft: #2c2c2e;
  --text:      #f4f4f1;   /* text on dark */
  --muted:     #c9c9c4;
  --grey:      #7a7a78;
  --grey-2:    #6a6a68;

  --light:     #e9e9e6;   /* light section background */
  --ink:       #161618;   /* text on light */
  --ink-2:     #555555;   /* muted text on light */
  --light-line:#cfcfcc;   /* borders on light */

  --white:     #ffffff;
  --maxw:      1440px;
  --pad:       clamp(20px, 5vw, 72px);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 0; background: currentColor; flex: none; }

/* ---------- NAV ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
header.scrolled {
  background: rgba(22,22,24,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.28,1); }
.reveal.in { opacity: 1; transform: none; }
/* Staggered slide-in for grid/row children within a revealed section */
.reveal .service-col, .reveal .stat, .reveal .proj-card, .reveal .card, .reveal .stand-row, .reveal .team-card {
  opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.28,1);
}
.reveal.in .service-col, .reveal.in .stat, .reveal.in .proj-card, .reveal.in .card, .reveal.in .stand-row, .reveal.in .team-card {
  opacity: 1; transform: none;
}
.reveal.in .service-col:nth-child(2), .reveal.in .stat:nth-child(2), .reveal.in .proj-card:nth-child(2), .reveal.in .card:nth-child(2), .reveal.in .stand-row:nth-child(2), .reveal.in .team-card:nth-child(2) { transition-delay: .1s; }
.reveal.in .service-col:nth-child(3), .reveal.in .stat:nth-child(3), .reveal.in .proj-card:nth-child(3), .reveal.in .card:nth-child(3), .reveal.in .stand-row:nth-child(3), .reveal.in .team-card:nth-child(3) { transition-delay: .2s; }
.reveal.in .proj-card:nth-child(4), .reveal.in .card:nth-child(4), .reveal.in .team-card:nth-child(4) { transition-delay: .28s; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav .brand { display: flex; align-items: center; }
.brand-logo { height: 70px; width: auto; filter: invert(1) brightness(1.7); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: .3s; }

/* ===========================================================
   HOME — LIGHT (#E9E9E6) THEME
   =========================================================== */
/* Light nav (home only) */
header#siteHeader { background: rgba(233,233,230,0.92); border-bottom: 1px solid var(--light-line); }
header#siteHeader .brand-logo { filter: none; }
header#siteHeader .nav-links a { color: var(--ink-2); }
header#siteHeader .nav-links a:hover, header#siteHeader .nav-links a.active { color: var(--ink); }
header#siteHeader .nav-toggle span { background: var(--ink); }
@media (max-width: 900px) {
  header#siteHeader .nav-links { background: var(--light); border-bottom: 1px solid var(--light-line); }
  header#siteHeader .nav-links a { border-bottom: 1px solid var(--light-line); }
}

/* Light hero */
.hero-light { position: relative; background: var(--light); color: var(--ink); padding-top: 64px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: clamp(340px, 68vh, 760px); object-fit: cover; display: block; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(233,233,230,0) 55%, rgba(233,233,230,0.8) 86%, #e9e9e6 100%); pointer-events: none; }
.hero-light .hero-content { position: relative; z-index: 2; margin-top: clamp(-110px, -7vw, -48px); padding-bottom: clamp(24px, 3vw, 48px); }
.hero-light .hero-content .eyebrow { color: var(--ink); margin-bottom: 16px; }
.hero-light h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 12vw, 11rem); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; color: var(--ink); }
.hero-light h1 .thin { font-weight: 400; }

/* Explicit dark section (map, etc.) */
.section-dark { background: var(--bg); color: var(--text); }

/* Light-theme overrides for logos + quote form */
.section-light .logos { border-color: var(--light-line); }
.section-light .logos span { color: var(--ink-2); }
.section-light .logos span:hover { color: var(--ink); }
.section-light.quote { border-color: var(--light-line); }
.section-light .quote-intro p { color: var(--ink-2); }
.section-light .field { border-color: var(--light-line); }
.section-light .field input, .section-light .field textarea { color: var(--ink); }
.section-light .field select { color: var(--ink-2); }
.section-light .field option { background: var(--light); color: var(--ink); }
.section-light .field input::placeholder, .section-light .field textarea::placeholder { color: var(--ink-2); }
.section-light .field:focus-within { border-color: var(--ink); }
.section-light .btn { background: var(--ink); color: var(--light); }
.section-light .btn:hover { background: #000; }
.section-light .form-note.show { color: var(--ink-2); }

/* ---------- HOME HERO ---------- */
/* Hero shows the FULL image (no cropping) on every device: image is a natural-ratio
   block, the title sits below it on the dark hero background. */
/* Fixed hero: it stays pinned at one full screen; the page content scrolls up over it */
.hero { position: fixed; top: 0; left: 0; right: 0; height: 82vh; height: 82svh; z-index: 0; background: var(--bg); overflow: hidden; }
.page-below { position: relative; z-index: 1; margin-top: 82vh; margin-top: 82svh; background: var(--bg); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,24,.55) 0%, rgba(22,22,24,0) 24%, rgba(22,22,24,0) 52%, rgba(22,22,24,.85) 100%); pointer-events: none; }
.hero-inner { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: clamp(8px, 1.2vw, 18px); padding-bottom: clamp(28px, 5vw, 72px); padding-right: clamp(20px, 5vw, 104px); }
.hero-eyebrow { margin-bottom: 4px; }
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 8vw, 6.5rem); line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase; }
.hero h1 .thin { font-weight: 400; }
/* Hero CTA button */
.hero-cta { margin-top: clamp(14px, 2vw, 26px); display: inline-flex; align-items: center; gap: 10px; background: var(--text); color: var(--bg); font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 15px 28px; transition: background .2s, transform .2s; }
.hero-cta:hover { background: #fff; transform: translateY(-2px); }
/* Arrow that lengthens on hover */
.cta-arrow { position: relative; display: inline-block; width: 18px; height: 2px; background: currentColor; transition: width .3s ease; }
.cta-arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(1px, -50%) rotate(45deg); }
.hero-cta:hover .cta-arrow { width: 34px; }
/* Scroll-down cue (bouncing chevron) */
.hero-scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 3; width: 24px; height: 24px; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-right: 2px solid rgba(255,255,255,.85); border-bottom: 2px solid rgba(255,255,255,.85); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll::after { animation: heroChev 1.6s ease-in-out infinite; }
  .hero-eyebrow, .hero h1, .hero-cta { animation: heroIn .9s cubic-bezier(.16,.84,.28,1) both; }
  .hero-eyebrow { animation-delay: .05s; }
  .hero h1 { animation-delay: .18s; }
  .hero-cta { animation-delay: .34s; }
}
@keyframes heroChev { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .4; } 50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
/* Tablet / pad: shorter hero */
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.1rem, 10vw, 4rem); }
  .hero-scroll { display: none; }
}

/* ---------- BEFORE / AFTER SLIDER ---------- */
.ba-title { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: -0.02em; margin-top: 12px; }
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-top: clamp(28px, 4vw, 48px); --pos: 50%; user-select: none; touch-action: pan-y; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba-divider::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%,-50%); border: 2px solid #fff; background: rgba(0,0,0,.35); }
.ba-label { position: absolute; bottom: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.55); padding: 6px 12px; pointer-events: none; }
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- LIGHTBOX ---------- */
.pd-figure img, .pd-gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; width: 48px; height: 48px; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px){ .lb-prev { left: 10px; } .lb-next { right: 10px; } .lightbox .lb-close { top: 12px; right: 12px; } }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero { position: relative; background: var(--bg); min-height: 58vh; display: flex; align-items: flex-end; padding-top: 150px; padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
.page-hero > .wrap { width: 100%; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.page-hero .ph-left .eyebrow { margin-bottom: 22px; line-height: 1.2; }
.page-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.page-hero .ph-right { position: relative; }
/* Reserve the eyebrow's exact height in the right column so the description's
   first line lines up precisely with the top of the h1 title. */
.page-hero .ph-right::before { content: "\00a0"; display: block; font-size: 12px; line-height: 1.2; letter-spacing: 0.19em; margin-bottom: 22px; visibility: hidden; pointer-events: none; }
.page-hero .ph-blueprint {
  position: absolute; inset: -150px -80px auto auto; width: 60%; min-width: 380px; height: 420px; z-index: 0;
  background: var(--bg-2); opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.page-hero .ph-blueprint img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(1.3); mix-blend-mode: screen; opacity: .55; }
.page-hero .ph-desc { position: relative; z-index: 2; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.5; max-width: 34ch; margin-left: auto; }

/* Non-home page heroes — architectural photo as a darkened background pattern (black scheme) */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #161618 0%, rgba(22,22,24,.86) 42%, rgba(22,22,24,.34) 100%),
    linear-gradient(0deg, #161618 4%, rgba(22,22,24,.15) 55%),
    url("images/projects-hero.jpg") right center / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .ph-blueprint { display: none; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid; border-bottom: 1px solid; }
.stat { padding: 40px 0; text-align: center; border-right: 1px solid; }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.3rem); line-height: 1; }
.stat .label { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
/* stats on dark */
.stats { border-color: var(--line); }
.stat { border-color: var(--line); }
.stat .label { color: var(--grey); }
/* stats on light */
.section-light .stats { border-color: var(--light-line); }
.section-light .stat { border-color: var(--light-line); }
.section-light .stat .label { color: var(--ink-2); }

/* ---------- SECTION SHELL ---------- */
.section-pad { padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(64px, 9vw, 130px); }
.section-light { background: var(--light); color: var(--ink); }
.section-light .eyebrow { color: var(--ink); }

/* two-column editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.lede { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.28; letter-spacing: -0.01em; }
/* Smaller lede for the home "About JRL Construction Group" section */
#about .lede, #about-us .lede { font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.4; }
.para { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.65; max-width: 46ch; }
.section-light .para { color: var(--ink-2); }
.para + .para { margin-top: 18px; }
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }

.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.tall img { aspect-ratio: 3/4; }
.media.wide img { aspect-ratio: 16/9; }
.media.ratio43 img { aspect-ratio: 4/3; }

/* ---------- SERVICES LIST ---------- */
.services-list { border-top: 1px solid var(--line); }
.section-light .services-list { border-color: var(--light-line); }
.service { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line-soft); }
.section-light .service { border-color: var(--light-line); }
.service h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.service p { color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 56ch; }
.section-light .service p { color: var(--ink-2); }

/* Services in a 3-across row (title on top, content under) */
.services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.service-col { border-top: 1px solid var(--light-line); padding-top: 22px; }
.service-col h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -0.01em; margin-bottom: 12px; }
.service-col p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
@media (max-width: 820px){ .services-row { grid-template-columns: 1fr; gap: 0; } .service-col { padding: 22px 0; } }

/* services with image (inner Services page) */
.service-row { display: grid; grid-template-columns: 1fr 500px; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--light-line); }
.service-row:last-child { border-bottom: 1px solid var(--light-line); }
.service-row h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 16px; }
.service-row p { color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.08rem); line-height: 1.6; max-width: 52ch; }
.service-row .media img { aspect-ratio: 500/257; }

/* ---------- BIG PROJECTS (home) ---------- */
.projects-display { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.pd-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 9vw, 8rem); line-height: 0.9; letter-spacing: -0.03em; text-transform: uppercase; }
.pd-col .media { margin-top: 22px; }
.pd-tags { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.section-light .pd-tags { border-color: var(--light-line); }
.pd-tags span { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.section-light .pd-tags span { color: var(--ink-2); }

/* ---------- SECTORS ROW (projects page) ---------- */
.sectors { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--light-line); }
.sectors span { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -0.01em; }

/* ---------- PROJECT CARDS (projects page) ---------- */
/* Projects search + filter controls */
.proj-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.proj-search { position: relative; flex: 1 1 300px; max-width: 420px; }
.proj-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.proj-search input { width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink); background: transparent; border: 1px solid var(--light-line); border-radius: 0; padding: 13px 16px 13px 44px; outline: none; transition: border-color .2s ease; }
.proj-search input::placeholder { color: var(--ink-2); }
.proj-search input:focus { border-color: var(--ink); }
.proj-search input::-webkit-search-cancel-button { cursor: pointer; }
.proj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1px solid var(--light-line); padding: 9px 16px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.proj-chip:hover { border-color: var(--ink); }
.proj-chip.is-active { background: var(--ink); color: var(--light); border-color: var(--ink); }
.proj-empty { margin-top: clamp(40px, 5vw, 72px); color: var(--ink-2); font-size: 15px; }
@media (max-width: 620px){ .proj-search { max-width: none; flex-basis: 100%; } }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 44px); margin-top: clamp(40px, 5vw, 72px); }
.proj-card { display: block; color: inherit; }
.proj-card .media { position: relative; }
.proj-card .media img { aspect-ratio: 4/3; transition: transform .5s ease; }
.proj-card:hover .media img { transform: scale(1.04); }
.proj-status { position: absolute; top: 14px; left: 14px; background: rgba(26,26,28,.9); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; }
.proj-status.is-current { background: #e0dccf; color: #1a1a1c; }
/* "View project" CTA that fades in on hover */
.proj-cta { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; background: linear-gradient(to top, rgba(0,0,0,.65), transparent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.proj-card:hover .proj-cta { opacity: 1; transform: none; }
/* Back-to-top button */
.to-top { position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 60; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: rgba(22,22,24,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, background .2s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #000; }
/* Home projects on dark background */
.section-dark .proj-card h3 { color: var(--text); border-top-color: var(--line); }
.section-dark .proj-card:hover h3 { color: #fff; }
.section-dark .proj-card .loc { color: var(--grey); }
.proj-card h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.01em; margin: 18px 0 6px; padding-top: 18px; border-top: 1px solid var(--light-line); }
.proj-card:hover h3 { color: var(--ink); }
.proj-card .loc { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 1024px){ .proj-grid { grid-template-columns: 1fr 1fr; } }

/* Stats without divider lines */
.stats.stats--plain { border-left: 0; border-right: 0; } /* keep top & bottom dividers */
.stats.stats--plain .stat { border: 0; }
.stats.stats--nolines { border-top: 0; border-bottom: 0; } /* no top/bottom dividers */
/* Full-width horizontal divider under the partner logo loop.
   Top gap matches the section's padding-top (the hero-to-logo spacing). */
.rule { border: 0; border-top: 1px solid var(--light-line); height: 0; margin: clamp(16px, 2.5vw, 28px) 0 0; }
/* Four-across stats (About page); 2x2 on tablet/phone */
.stats.stats--4 { grid-template-columns: repeat(4, 1fr); }
/* Flush the outer stats to the section edges so the block lines up with other sections */
.stats.stats--4 .stat:first-child { text-align: left; }
.stats.stats--4 .stat:last-child { text-align: right; }
@media (max-width: 900px){
  .stats.stats--4 { grid-template-columns: 1fr 1fr; }
  .stats.stats--4 .stat:first-child { text-align: left; }
  .stats.stats--4 .stat:nth-child(2) { text-align: right; }
  .stats.stats--4 .stat:nth-child(3) { text-align: left; }
  .stats.stats--4 .stat:last-child { text-align: right; }
}

/* Home "Our projects" — single horizontal line of cards */
.home-projects { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: clamp(18px, 2vw, 32px); margin-top: 0; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.home-projects .proj-card { min-width: 0; }
.home-projects .proj-card .media img { filter: grayscale(1); transition: transform .5s ease, filter .4s ease; }
.home-projects .proj-card:hover .media img { filter: grayscale(0); transform: scale(1.04); }
@media (max-width: 700px){
  .home-projects { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; overflow-x: visible; gap: clamp(28px, 6vw, 40px); }
}

/* ---------- LEAFLET MAP ---------- */
.map-leaflet { width: 100%; height: clamp(460px, 72vh, 820px); border: 1px solid var(--line); background: #e9e9e6; z-index: 0; }
.section-light .map-leaflet { border-color: var(--light-line); }
/* Warm the light-grey tiles toward the site's sand tone (#E9E9E6) */
/* CARTO Voyager (and the fallback) show in their natural colour */
.map-leaflet .leaflet-tile-pane { filter: none; }
/* Office (address) map: keep more tonal colour, still warm grey/sand */
#office-map .leaflet-tile-pane { filter: none; }
.map-legend { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); }
.section-light .map-legend span { color: var(--ink-2); }
.map-legend i { width: 12px; height: 12px; border-radius: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.map-legend i.dot-current { background: #e8912d; }
.map-legend i.dot-done { background: #1a1a1c; }
/* Map filter buttons — colored chips: sand = current, dark grey = completed */
.map-filters { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.section-dark .map-filters { justify-content: flex-end; }
.map-filter { display: inline-flex; align-items: center; justify-content: center; width: 250px; max-width: 100%; border: 1px solid transparent; font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 18px; cursor: pointer; opacity: 0.5; transition: .2s; box-sizing: border-box; }
.map-filter i { display: none; }
.map-filter[data-filter="Current"] { background: #e0dccf; color: #1a1a1c; border-color: #d3cebd; }
.map-filter[data-filter="Current"]:hover { background: #ece9df; }
.map-filter[data-filter="Completed"] { background: #3a3a3c; color: #f4f4f1; border-color: #3a3a3c; }
.map-filter[data-filter="Completed"]:hover { background: #4a4a4c; }
/* Checkbox tick box + checked / unchecked states */
.map-filter .tick { width: 16px; height: 16px; border: 2px solid currentColor; margin-right: 10px; flex: none; box-sizing: border-box; position: relative; }
.map-filter.is-active { opacity: 1; font-weight: 700; }
.map-filter.is-active .tick { background: currentColor; }
.map-filter.is-active .tick::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
/* checkmark drawn in the button's own colour so it shows on the filled box */
.map-filter[data-filter="Current"].is-active .tick::after { border-color: #e0dccf; }
.map-filter[data-filter="Completed"].is-active .tick::after { border-color: #3a3a3c; }
.jrl-pin { background: transparent; border: 0; }
/* Full-bleed map (edge to edge, Naylor-Love style) */
.map-leaflet.map-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; border-left: 0; border-right: 0; height: clamp(500px, 72vh, 860px); }
.map-filters--right { justify-content: flex-end; }
/* Map pin: JRL icon in a sand square backing */
.jrl-pin-inner { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #e0dccf; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.jrl-pin-inner img { width: 24px; height: 24px; display: block; }
/* Numbered cluster (sand/tan circle) */
.jrl-cluster { background: transparent; }
.jrl-cluster-inner { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #c2a878; color: #1a1a1c; border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.leaflet-popup-content { font-family: var(--font-body); font-size: 13px; line-height: 1.5; }
.leaflet-popup-content a { color: #1a5fb4; font-weight: 600; }
/* Contact office popup styled like the "Current projects" button (cream pill) */
#office-map .leaflet-popup-content-wrapper { background: #e0dccf; color: #1a1a1c; border: 1px solid #d3cebd; border-radius: 0; box-shadow: none; }
#office-map .leaflet-popup-content { margin: 11px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.7; color: #1a1a1c; }
#office-map .leaflet-popup-tip { background: #e0dccf; border: 1px solid #d3cebd; box-shadow: none; }
#office-map .leaflet-popup-close-button { color: #1a1a1c; }

/* ---------- PROJECT DETAIL ---------- */
.pd-hero { background: var(--bg); padding-top: 150px; padding-bottom: clamp(32px, 4vw, 56px); }
.pd-hero .eyebrow { margin-bottom: 20px; }
.pd-hero h1 { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 0.98; letter-spacing: -0.02em; }
.pd-hero .pd-loc { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pd-figure { width: 100%; }
.pd-figure img { width: 100%; height: clamp(280px, 46vw, 620px); object-fit: cover; }
.pd-body-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(32px, 6vw, 80px); }
.pd-body-grid .para { color: var(--ink-2); }
/* Project description — one consistent size/style, left-aligned */
.pd-copy { text-align: left; }
.pd-copy p { font-family: var(--font-body); font-weight: 400; font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.65; color: var(--ink-2); }
.pd-copy p + p { margin-top: 18px; }
.pd-meta { border-top: 1px solid var(--light-line); }
.pd-meta .row { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--light-line); }
.pd-meta .row .k { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.pd-meta .row .v { font-weight: 600; text-align: right; }
.pd-back { display: inline-flex; margin-top: 40px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.pd-back:hover { color: var(--ink); }
.pd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 5vw, 64px); }
.pd-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-gallery:empty { display: none; }
@media (max-width: 900px){ .pd-body-grid { grid-template-columns: 1fr; } .pd-gallery { grid-template-columns: 1fr; } }

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; margin-top: 28px; }
.team-card { border-top: 1px solid var(--light-line); padding-top: 18px; }
.team-card .name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.team-card .role { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 10px; }
.team-card a { font-size: 0.9rem; color: var(--ink-2); word-break: break-word; }
.team-card a:hover { color: var(--ink); }
@media (max-width: 900px){ .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .team-grid { grid-template-columns: 1fr; } }

/* ---------- WHAT WE STAND FOR ---------- */
.stand-list { border-top: 1px solid var(--light-line); margin-top: 28px; }
.stand-row { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--light-line); align-items: baseline; }
.stand-row h3 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.stand-row p { color: var(--ink-2); font-size: clamp(1rem, 1.2vw, 1.08rem); line-height: 1.6; max-width: 60ch; }

/* ---------- LOGOS ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.logos span { font-family: var(--font-head); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.5rem); letter-spacing: 0.02em; color: var(--grey); opacity: .8; transition: .2s; }
.logos span:hover { color: var(--text); opacity: 1; }

/* ---------- PARTNERS MARQUEE ---------- */
.partners { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent); mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee-ltr 34s linear infinite; animation-play-state: paused; }
.marquee.is-running { animation-play-state: running; }
.partners:hover .marquee.is-running { animation-play-state: paused; }
@keyframes marquee-ltr { from { transform: translateX(-25%); } to { transform: translateX(0); } }
.partner { display: inline-flex; align-items: center; justify-content: center; padding: 0 clamp(28px, 5vw, 72px); height: 64px; flex: none; }
.partner img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .65; transition: opacity .2s; }
.partner:hover img { opacity: 1; }
.partner .pl-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 1.9vw, 1.6rem); letter-spacing: 0.01em; color: var(--ink-2); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } }

/* ---------- MAP ---------- */
.map-head { margin-bottom: 24px; }
.map-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.map-head-row .map-head { margin-bottom: 0; }
.map-head-row .map-filters { margin-top: 0; margin-left: auto; }
.map-head h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.map-frame { position: relative; border: 1px solid var(--line); overflow: hidden; aspect-ratio: 21/9; background: var(--bg-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) contrast(0.9); }
.map-badge { position: absolute; top: 20px; right: 20px; background: rgba(22,22,24,.85); border: 1px solid var(--line); padding: 12px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- NEWS ---------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.news-head h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin-top: 12px; }
.news-link { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.section-light .news-link { color: var(--ink-2); }
.news-link:hover { color: var(--white); }
.section-light .news-link:hover { color: var(--ink); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.card { display: block; color: inherit; }
.card .media { overflow: hidden; }
.card .media img { aspect-ratio: 4/3; filter: grayscale(1); transition: transform .5s ease, filter .4s ease; }
.card:hover .media img { transform: scale(1.04); filter: grayscale(0); }
.card h3 { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; margin: 20px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.section-light .card h3 { border-color: var(--light-line); }
.card p { color: var(--grey); font-size: 0.95rem; line-height: 1.55; }
.section-light .card p { color: var(--ink-2); }

/* ---------- QUOTE FORM ---------- */
.quote { border-top: 1px solid var(--line); }
.quote-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 90px); }
.quote-intro p { color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 24ch; }
.quote h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 32px; }
.field { border-bottom: 1px solid var(--line); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; outline: none; color: var(--text); font-family: var(--font-body); font-size: 1rem; padding: 18px 2px; resize: none; }
.field select { color: var(--muted); cursor: pointer; }
.field option { background: var(--bg-2); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-2); }
.field:focus-within { border-color: var(--text); }
.btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding: 18px 34px; transition: .2s; }
.btn:hover { background: var(--white); transform: translateY(-1px); }
.form-note { margin-top: 18px; font-size: 0.9rem; color: var(--grey); display: none; }
.form-note.show { display: block; color: var(--muted); }

/* ---------- CONTACT DETAILS ---------- */
.c-k { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.c-v { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
a.c-v:hover { color: #000; }

/* ---------- BANNER ---------- */
.banner { width: 100%; position: relative; background: var(--bg); }
.banner img { width: 100%; height: clamp(150px, 22vw, 320px); object-fit: cover; display: block; filter: grayscale(1) contrast(1.05) brightness(.6); }
/* Dark gradient overlay to match the hero's black style */
.banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(22,22,24,.6) 0%, rgba(22,22,24,.32) 100%); }

/* ---------- FOOTER ---------- */
footer { position: relative; background: var(--bg); color: var(--text); border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 90px); padding-bottom: 40px; overflow: hidden; }
.footer-watermark { position: absolute; right: -2%; bottom: -18%; z-index: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(10rem, 34vw, 34rem); line-height: 0.8; color: var(--bg-2); letter-spacing: -0.04em; pointer-events: none; user-select: none; }
.footer-cta { position: relative; z-index: 1; order: 2; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* Footer layout: nav links left, contact info right */
.footer-grid .footer-nav { order: 1; }
.footer-grid .footer-col { order: 3; text-align: right; }
.footer-cta p { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.2rem, 1.8vw, 1.5rem); line-height: 1.35; max-width: 18ch; }
.footer-col .fitem { margin-bottom: 22px; }
.footer-col .fitem .k { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.footer-col .fitem .v { font-size: 1.05rem; }
.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(48px, 8vw, 96px); padding-top: 22px; border-top: 1px solid var(--line-soft); }
.footer-bottom span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .brand-logo { height: 56px; }
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; inset: 88px 0 auto 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-links.open { max-height: 360px; }
  .nav-links a { padding: 18px var(--pad); border-bottom: 1px solid var(--line-soft); }
  .split, .quote-grid, .projects-display, .page-hero .wrap, .service-row, .stand-row, .proj-grid, .about-intro { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .news-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { align-items: flex-start; }
  .footer-grid .footer-col { text-align: left; }
  .map-frame { aspect-ratio: 4/3; }
  .page-hero .ph-blueprint { display: none; }
  .page-hero .ph-right::before { display: none; }
  .page-hero .ph-desc { margin-left: 0; }
  .service-row .media { order: -1; }
  .stand-row { gap: 6px; padding: 24px 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .section-light .stat { border-color: var(--light-line); }
  .logos { gap: 20px 32px; justify-content: flex-start; }
  .pd-tags { flex-direction: column; gap: 8px; }
  .sectors { gap: 10px 28px; }
}
