/* =========================================================================
   ORT BÂTIMENT — DESIGN SYSTEM v2
   -------------------------------------------------------------------------
   Direction: premium construction & solar EPC. The visual signature is
   drawn from the company's own world — technical drawings, spec sheets
   and site surveys — rather than decoration for its own sake:

     • A thin vertical rule runs down every section like a drawing
       baseline, with a small monospace margin tag ("§02 — À PROPOS")
       marking each section the way a blueprint annotates a detail.
     • Photography is desaturated at rest and resolves to full colour on
       hover/reveal — the real jobsite work is the content, not a backdrop.
     • Space Grotesk (display) + Inter (body) + IBM Plex Mono (labels/data)
       — a technical, engineered pairing instead of a decorative one.

   Contents:
     1. Tokens          5. Buttons               9.  Cards & sections
     2. Reset/base       6. Navigation           10.  Testimonials / footer
     3. Typography       7. Hero                 11.  Forms
     4. Layout           8. Section signature    12.  Utilities/animation
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Palette — named, deliberate, grounded in jobsite materials */
  --canvas: #F6F5F1;        /* poured-concrete white — page background   */
  --canvas-raised: #FFFFFF; /* card surfaces on canvas                   */
  --ink: #17181C;           /* near-black — primary text, dark surfaces  */
  --ink-soft: #4B4D53;      /* secondary text on light                   */
  --line: #DAD7CE;          /* hairline borders/dividers on canvas       */
  --line-dark: rgba(255,255,255,0.14); /* hairlines on dark surfaces     */
  --signal: #F4B400;        /* brand yellow — used sparingly, as signal  */
  --signal-ink: #1A1502;    /* text on top of signal yellow              */
  --solar: #FF8A3D;         /* warm amber — solar-specific accent        */
  --slate: #24262B;         /* elevated dark surface                     */
  --success: #2E7D46;
  --error: #C4432B;

  /* Type */
  --f-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --fs-hero: clamp(3rem, 7.2vw, 7.2rem);
  --fs-h1: clamp(2.5rem, 5vw, 4.4rem);
  --fs-h2: clamp(2rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.3rem, 1.8vw, 1.7rem);
  --fs-lead: clamp(1.05rem, 1.3vw, 1.25rem);

  /* Spacing */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs: 0.85rem;
  --sp-sm: 1.5rem;
  --sp-md: 2.5rem;
  --sp-lg: 3.25rem;
  --sp-xl: 4.75rem;
  --sp-2xl: 7rem;

  --container: 1320px;
  --container-narrow: 860px;
  --radius-sm: 4px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 80px;
}

/* -------------------------------------------------------------------------
   2. RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--signal); color: var(--signal-ink);
  padding: 0.9rem 1.4rem; z-index: 10000; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p { color: var(--ink-soft); }
.lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 42rem; }

/* Monospace label — the recurring "spec sheet" marginalia */
.tag {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.tag::before { content: ""; width: 18px; height: 1px; background: var(--signal); display: inline-block; }
.tag.on-dark { color: rgba(255,255,255,0.65); }
.tag--block { display: block; margin-bottom: var(--sp-sm); }

/* -------------------------------------------------------------------------
   4. LAYOUT
   ------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-md); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-md); }

.section { position: relative; padding-block: var(--sp-xl); }
.section--tight { padding-block: var(--sp-lg); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: rgba(255,255,255,0.62); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--raised { background: var(--canvas-raised); }
.section--pb-sm { padding-bottom: var(--sp-lg); }
.section--pt-sm { padding-top: var(--sp-lg); }

.grid { display: grid; gap: var(--sp-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------------------
   8. SECTION SIGNATURE — the drawing-baseline / margin-tag system
   ------------------------------------------------------------------------- */
.spec-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: var(--sp-md);
  align-items: end;
  margin-bottom: var(--sp-lg);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-sm);
}
.section--dark .spec-header { border-top-color: var(--line-dark); }
.spec-header .tag { padding-top: 0.2rem; }
.spec-header h2 { max-width: 34rem; }
.spec-header .lead { margin-top: var(--sp-xs); }
/* Solo variant — a section that only needs the margin tag with no second
   column, so we never leave a dangling empty grid cell beside it. */
.spec-header--solo { display: block; border-top: 1px solid var(--line); padding-top: var(--sp-sm); }
.section--dark .spec-header--solo { border-top-color: var(--line-dark); }
@media (max-width: 720px) {
  .spec-header { grid-template-columns: 1fr; gap: var(--sp-2xs); }
}

/* -------------------------------------------------------------------------
   ICON BADGE — replaces letter-in-circle placeholders with drawn line icons
   ------------------------------------------------------------------------- */
.icon-badge {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--signal); color: var(--signal-ink);
  transition: transform 0.3s var(--ease-soft);
}
.icon-badge svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .icon-badge, .model-card:hover .icon-badge { transform: scale(1.08) rotate(-4deg); }
.icon-badge--outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }

/* -------------------------------------------------------------------------
   CTA ROW — shared centred button row (previously repeated inline)
   ------------------------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-sm); margin-top: var(--sp-md); }

/* -------------------------------------------------------------------------
   MEDIA CARD — image-topped card, used where a text-only card felt bare
   ------------------------------------------------------------------------- */
.card--media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--media .card--media__body { padding: var(--sp-md); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.frame--flush { border-radius: 0; }

.card--eng { padding: 0; overflow: hidden; }
.card--eng__media { aspect-ratio: 16/10; }
.card--eng__body { padding: var(--sp-md); }
.card--eng .icon-badge { margin-top: -47px; position: relative; z-index: 2; box-shadow: 0 10px 26px rgba(23,24,28,0.22); }

/* Compact photo gallery — supporting visuals, desaturated at rest like
   every other photo frame on the site, colour resolves in on hover. */
.eng-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-sm); }
.eng-gallery .frame { aspect-ratio: 1/1; }

/* -------------------------------------------------------------------------
   SPLIT PANEL — asymmetric image + content pairing (About focus areas)
   ------------------------------------------------------------------------- */
.split-panel { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-lg); align-items: stretch; }
.split-panel .frame { min-height: 100%; }
@media (max-width: 980px) { .split-panel { grid-template-columns: 1fr; } .split-panel .frame { aspect-ratio: 16/9; } }

/* Avatar initial mark for testimonials */
.avatar-mark {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 1rem; color: var(--signal); flex-shrink: 0;
}
.testi-card .author-row { display: flex; align-items: center; gap: 0.8rem; }

/* -------------------------------------------------------------------------
   ADVANTAGE / VALUE-PROP ROW — the sourcing/cost/quality competitive edge
   ------------------------------------------------------------------------- */
.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.advantage-item { background: var(--canvas-raised); padding: var(--sp-md); display: flex; flex-direction: column; gap: 0.7rem; transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft); }
.advantage-item:hover { background: var(--ink); transform: translateY(-2px); }
.advantage-item:hover h3, .advantage-item:hover p { color: #fff; }
.advantage-item .icon-badge { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.advantage-item:hover .icon-badge { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.advantage-item h3 { font-size: 1.05rem; transition: color 0.3s var(--ease-soft); }
.advantage-item p { font-size: 0.92rem; transition: color 0.3s var(--ease-soft); }

/* Soft pill badge — used sparingly, e.g. to mark Solar as an add-on service */
.badge-soft {
  display: inline-block; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.25rem 0.7rem; margin-top: 0.5rem;
}

@media (max-width: 980px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .advantage-grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   5. BUTTONS — fill-sweep micro-interaction
   ------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.9rem;
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--ease-soft) 0.35s, border-color var(--ease-soft) 0.35s;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary::before { background: var(--signal); }
.btn--primary:hover { color: var(--signal-ink); }

.btn--ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: #fff; }

.btn--ghost-light { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.btn--ghost-light::before { background: #fff; }
.btn--ghost-light:hover { color: var(--ink); }

.btn--sm { padding: 0.7rem 1.4rem; font-size: 0.88rem; }
.btn--full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }

.text-link {
  position: relative;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.text-link::after {
  content: "→"; transition: transform 0.3s var(--ease);
}
.text-link:hover::after { transform: translateX(5px); }

/* Inline SVG brand icons — self-contained, no external font/CDN dependency,
   so they can never fail to render regardless of ad-blockers or offline use. */
.icon-svg { width: 18px; height: 18px; fill: currentColor; display: block; }

/* -------------------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246,245,241,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}
.navbar.is-scrolled {
  background: rgba(246,245,241,0.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand span {
  font-family: var(--f-display); font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.01em; color: var(--ink);
}

.nav-menu { display: flex; align-items: center; gap: var(--sp-lg); }
.nav-link {
  position: relative;
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  padding-block: 0.3rem;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--ink); transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-sm); }

.lang-switch {
  display: flex; align-items: center; font-family: var(--f-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem;
}
.lang-switch button { padding: 0.3rem 0.7rem; border-radius: 100px; color: var(--ink-soft); transition: all 0.25s var(--ease-soft); }
.lang-switch button.active { background: var(--ink); color: #fff; }
.lang-switch--on-dark { border-color: var(--line-dark); }
.lang-switch--on-dark button { color: rgba(255,255,255,0.6); }
.lang-switch--on-dark button.active { background: var(--signal); color: var(--signal-ink); }

.hamburger { display: none; flex-direction: column; gap: 6px; width: 30px; z-index: 1300; }
.hamburger span { height: 2px; width: 100%; background: var(--ink); transition: transform 0.3s var(--ease-soft), opacity 0.3s var(--ease-soft), background 0.3s var(--ease-soft); }
.hamburger.is-open span { background: #fff; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Dedicated close control for the mobile overlay — pinned top-left, always
   high-contrast against the dark backdrop, independent of the hamburger's
   own state so it's never ambiguous how to dismiss the menu. */
.nav-overlay-close {
  position: absolute; top: var(--sp-md); left: var(--sp-md); z-index: 1310;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
}
.nav-overlay-close svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-overlay-close:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); transform: rotate(90deg); }

/* Full-screen mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; background: var(--ink); z-index: 1200;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-lg) var(--sp-md);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease-soft), visibility 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-overlay-menu { display: flex; flex-direction: column; gap: 0.4rem; }
.nav-overlay-menu li {
  overflow: hidden;
}
.nav-overlay-menu a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 3.2rem); color: #fff;
  padding-block: 0.35rem;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.nav-overlay.is-open .nav-overlay-menu a { transform: translateY(0); }
.nav-overlay-menu a .idx { font-family: var(--f-mono); font-size: 0.9rem; color: var(--signal); }
.nav-overlay-foot { margin-top: var(--sp-lg); display: flex; flex-direction: column; gap: 0.6rem; }
.nav-overlay-foot a { color: rgba(255,255,255,0.65); font-family: var(--f-mono); font-size: 0.85rem; }

/* -------------------------------------------------------------------------
   7. HERO — real photography, Ken Burns, tight motto-under-wordmark
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,24,28,0.35) 0%, rgba(23,24,28,0.32) 45%, rgba(23,24,28,0.95) 100%);
}

.hero-content { position: relative; z-index: 2; width: 100%; padding-block: calc(var(--nav-h) + var(--sp-lg)) var(--sp-xl); }
.hero-eyebrow { color: rgba(255,255,255,0.7); margin-bottom: var(--sp-sm); }
.hero-eyebrow.tag::before { background: var(--solar); }

.hero-wordmark {
  font-family: var(--f-display); font-weight: 600; text-transform: uppercase;
  font-size: var(--fs-hero); line-height: 0.94; color: #fff; letter-spacing: -0.015em;
}
/* Motto sits immediately under the wordmark — minimal gap, per brief */
.hero-motto {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  color: var(--signal);
  margin-top: 0.35rem;
  letter-spacing: -0.005em;
}
.hero-sub { color: rgba(255,255,255,0.72); max-width: 40rem; margin-top: var(--sp-sm); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-top: var(--sp-md); }

.hero-scroll {
  position: absolute; bottom: var(--sp-md); right: var(--sp-md); z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.7); font-family: var(--f-mono); font-size: 0.75rem;
  letter-spacing: 0.16em; text-transform: uppercase; writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 42px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden;
}
.hero-scroll::before {
  content: ""; position: absolute; bottom: var(--sp-md); right: calc(var(--sp-md) + 9px);
  width: 1px; height: 14px; background: var(--signal); animation: scrollTick 2.2s ease-in-out infinite;
}
@keyframes scrollTick { 0% { transform: translateY(-14px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(42px); opacity: 0; } }

/* Interior page hero — shorter, still real-photo based */
.page-hero {
  position: relative; min-height: 62vh; display: flex; align-items: flex-end;
  background: var(--ink); overflow: hidden;
}
.page-hero .hero-content { padding-block: calc(var(--nav-h) + var(--sp-lg)) var(--sp-lg); }
.page-hero h1 { color: #fff; }
.breadcrumb {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: var(--sp-sm);
}
.breadcrumb a { color: var(--signal); }
.hero-content .lead { color: rgba(255,255,255,0.75); margin-top: var(--sp-sm); }

/* -------------------------------------------------------------------------
   9. CARDS & IMAGE REVEALS
   ------------------------------------------------------------------------- */
.frame {
  overflow: hidden; border-radius: var(--radius-md); position: relative;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease-soft);
}
.frame:hover img, .frame.is-active img { transform: scale(1.06); }

/* Diagrams / signage graphics (not photography) — show the whole image
   uncropped, since object-fit:cover would slice off edge labels/text. */
.frame--contain { background: var(--canvas-raised); }
.frame--contain img { object-fit: contain; transform: none; }
.frame--contain:hover img { transform: none; }

.reveal-clip {
  transition: clip-path 1s var(--ease);
}
.reveal-clip.js-armed { clip-path: inset(0 0 100% 0); }
.reveal-clip.js-armed.is-visible { clip-path: inset(0 0 0% 0); }

.card {
  background: var(--canvas-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  transition: border-color 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.card:hover { border-color: var(--ink); transform: translateY(-6px); box-shadow: 0 28px 60px rgba(23,24,28,0.12); }
.card--cta-dark { display: flex; align-items: center; justify-content: center; background: var(--ink); border-color: var(--ink); }
.card--form { padding: var(--sp-lg); }

/* -------------------------------------------------------------------------
   LEADERSHIP SIGNATURE — a single photo + name + title byline (not a team
   grid). Used once, on the About page, to credit who leads the company.
   ------------------------------------------------------------------------- */
.leader-card {
  display: flex; align-items: center; gap: var(--sp-md);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--sp-md); background: var(--canvas-raised);
}
.leader-card__photo { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.leader-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.leader-card__name { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.leader-card__title { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.2rem; }
.leader-card__linkedin {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.6rem;
  font-size: 0.85rem; font-weight: 600; color: #0A66C2; transition: opacity 0.2s var(--ease-soft);
}
.leader-card__linkedin .icon-svg { width: 15px; height: 15px; }
.leader-card__linkedin:hover { opacity: 0.7; }
@media (max-width: 480px) { .leader-card { flex-direction: column; text-align: center; } }

/* Solutions checklist card (materials access) */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.solutions-grid__item { background: var(--canvas-raised); padding: var(--sp-sm); display: flex; flex-direction: column; gap: 0.7rem; transition: background 0.3s var(--ease-soft); }
.solutions-grid__item:hover { background: var(--ink); }
.solutions-grid__item:hover .check { color: var(--signal); }
.solutions-grid__item:hover span.label { color: #fff; }
.solutions-grid__item .check { font-family: var(--f-mono); color: var(--ink-soft); font-size: 1rem; transition: color 0.3s var(--ease-soft); }
.solutions-grid__item span.label { font-weight: 600; transition: color 0.3s var(--ease-soft); }
.solutions-grid__item__thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.solutions-grid__item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-soft); }
.solutions-grid__item:hover .solutions-grid__item__thumb img { transform: scale(1.06); }
.solutions-grid__item__row { display: flex; align-items: center; gap: 0.6rem; }

/* Delivery-model cards: Supply Only / Supply+Install / Complete PM */
.model-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.model-card {
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--sp-md);
  display: flex; flex-direction: column; gap: 0.9rem; background: var(--canvas-raised);
  transition: transform 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.model-card:hover { transform: translateY(-6px); border-color: var(--ink); }
.model-card h3 { font-size: 1.2rem; }
.model-card .arrow { font-family: var(--f-mono); font-size: 0.85rem; color: var(--ink-soft); }

/* Big solution cards: Build / Buy Smart */
.solution-feature { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); align-items: center; padding-block: var(--sp-lg); border-top: 1px solid var(--line); }
.solution-feature:last-child { border-bottom: 1px solid var(--line); }
.solution-feature .frame { aspect-ratio: 4/3; }
.solution-feature__list { display: flex; flex-direction: column; gap: 0.6rem; margin-block: var(--sp-sm) var(--sp-md); }
.solution-feature__list li { display: flex; gap: 0.7rem; align-items: baseline; color: var(--ink-soft); }
.solution-feature__list li::before { content: "—"; color: var(--signal); font-family: var(--f-mono); }
.solution-feature:nth-child(even) .frame { order: 2; }

/* -------------------------------------------------------------------------
   10. TESTIMONIALS / TEAM / FOOTER
   ------------------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.testi-card {
  background: var(--slate); color: #fff; border-radius: var(--radius-lg);
  padding: var(--sp-lg) var(--sp-md); display: flex; flex-direction: column; gap: var(--sp-md); justify-content: space-between;
}
.testi-card .quote-mark { font-family: var(--f-display); font-size: 3rem; color: var(--signal); line-height: 1; }
.testi-card p.quote { color: rgba(255,255,255,0.88); font-size: 1.08rem; line-height: 1.6; }
.testi-card .author { display: flex; flex-direction: column; }
.testi-card .author strong { font-family: var(--f-display); font-weight: 600; }
.testi-card .author span { font-family: var(--f-mono); font-size: 0.78rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-top: var(--sp-xl); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-md); padding-bottom: var(--sp-lg); border-bottom: 1px solid var(--line-dark); }
.footer-brand .brand span { color: #fff; }
.footer-brand p { margin-top: var(--sp-xs); max-width: 26ch; color: rgba(255,255,255,0.55); }
.footer-col .tag { margin-bottom: var(--sp-sm); color: rgba(255,255,255,0.55); }
.footer-col .tag::before { background: var(--signal); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a { color: rgba(255,255,255,0.68); transition: color 0.25s var(--ease-soft); }
.footer-col a:hover { color: var(--signal); }
.footer-social { display: flex; gap: 0.7rem; margin-top: var(--sp-sm); }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: all 0.25s var(--ease-soft);
}
.footer-social a:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.footer-social--light a { border-color: var(--line); color: var(--ink); }
.footer-social--light a:hover { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: var(--sp-sm); font-size: 0.82rem; flex-wrap: wrap; gap: 0.6rem; font-family: var(--f-mono); }
.footer-bottom a:hover { color: var(--signal); }

/* -------------------------------------------------------------------------
   11. FORMS
   ------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.form-group label .req { color: var(--solar); }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.9rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--canvas-raised); transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ink); box-shadow: 0 0 0 4px rgba(23,24,28,0.06); outline: none;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: var(--error); }
.field-error { font-size: 0.8rem; color: var(--error); display: none; min-height: 1em; }
.form-group.has-error .field-error { display: block; }
.field-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.5rem; }

.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.checkbox-item { display: flex; align-items: center; gap: 0.55rem; }
.checkbox-item input { width: 18px; height: 18px; accent-color: var(--ink); }
.checkbox-item label { text-transform: none; font-family: var(--f-body); letter-spacing: 0; font-size: 0.95rem; color: var(--ink); }

.file-upload { border: 1.5px dashed var(--line); border-radius: var(--radius-md); padding: var(--sp-md); text-align: center; cursor: pointer; transition: border-color 0.25s, background 0.25s; }
.file-upload:hover, .file-upload.is-dragover { border-color: var(--ink); background: rgba(23,24,28,0.02); }
.file-upload input { display: none; }
.file-upload-name { margin-top: 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }

.form-status { margin-top: var(--sp-sm); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; font-family: var(--f-mono); }
.form-status.is-visible { display: block; }
.form-status.success { background: rgba(46,125,70,0.08); color: var(--success); border: 1px solid rgba(46,125,70,0.28); }
.form-status.error { background: rgba(196,67,43,0.08); color: var(--error); border: 1px solid rgba(196,67,43,0.28); }

.contact-detail { display: flex; gap: var(--sp-sm); padding-block: var(--sp-sm); border-top: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 1px solid var(--line); }
.contact-detail .tag { min-width: 130px; flex-shrink: 0; }
.contact-detail > *:last-child { min-width: 0; overflow-wrap: break-word; }
.map-embed { aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--slate); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------------------
   PROJECTS "COMING SOON"
   ------------------------------------------------------------------------- */
.coming-soon {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-2xl) var(--sp-md); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-sm);
  background: linear-gradient(180deg, var(--canvas-raised), var(--canvas));
  position: relative; overflow: hidden;
}
.coming-soon .ring {
  width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-family: var(--f-mono);
  font-size: 0.78rem; letter-spacing: 0.05em; color: var(--ink-soft); position: relative;
}
.coming-soon .ring::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--signal); border-top-color: transparent; border-right-color: transparent;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.coming-soon h2 { max-width: 22ch; }
.coming-soon p.lead { margin-inline: auto; }

/* -------------------------------------------------------------------------
   LOADER
   ------------------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 99999; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: var(--sp-sm); transition: opacity 0.6s var(--ease-soft), visibility 0.6s var(--ease-soft); }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark { font-family: var(--f-display); font-size: 1.6rem; color: #fff; letter-spacing: -0.01em; }
.loader-mark span { color: var(--signal); }
.loader-bar { width: 200px; height: 1px; background: rgba(255,255,255,0.16); overflow: hidden; }
.loader-bar::after { content: ""; display: block; height: 100%; width: 35%; background: var(--signal); animation: loaderMove 1.1s ease-in-out infinite; }
@keyframes loaderMove { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }

/* -------------------------------------------------------------------------
   BACK TO TOP / WHATSAPP FLOAT
   ------------------------------------------------------------------------- */
.back-to-top {
  position: fixed; right: var(--sp-md); bottom: var(--sp-md); width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all 0.3s var(--ease-soft); z-index: 900;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--signal); color: var(--signal-ink); }

.whatsapp-float {
  position: fixed; left: var(--sp-md); bottom: var(--sp-md); display: flex; align-items: center; gap: 0.6rem;
  background: #25D366; color: #fff; padding: 0.8rem 1.2rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem;
  z-index: 900; transition: transform 0.25s var(--ease-soft); box-shadow: 0 14px 30px rgba(37,211,102,0.28);
}
.whatsapp-float .icon-svg { width: 22px; height: 22px; fill: currentColor; }
.whatsapp-float:hover { transform: translateY(-3px); }

/* -------------------------------------------------------------------------
   12. UTILITIES / SCROLL-REVEAL
   ------------------------------------------------------------------------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.js-armed { opacity: 0; transform: translateY(28px); }
.reveal.js-armed.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-lg { margin-bottom: var(--sp-lg); }
.phone-line { display: inline-flex; align-items: baseline; gap: 0.5rem; }
.phone-line__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); min-width: 5.5rem; display: inline-block; }
.center { text-align: center; margin-inline: auto; }
.align-center { align-items: center; }
.tag--center { justify-content: center; }
.lead--narrow { max-width: 34rem; }
.item--link { justify-content: center; }

/* -------------------------------------------------------------------------
   CHATBOT WIDGET — lightweight, rule-based FAQ assistant (see chatbot.js).
   Mounted bottom-right; back-to-top is nudged up to sit above it.
   ------------------------------------------------------------------------- */
.back-to-top { bottom: calc(var(--sp-md) + 66px); }

.chat-toggle {
  position: fixed; right: var(--sp-md); bottom: var(--sp-md); z-index: 950;
  width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(23,24,28,0.25); transition: transform 0.25s var(--ease-soft), background 0.25s var(--ease-soft);
}
.chat-toggle:hover { transform: translateY(-3px); background: var(--signal); color: var(--signal-ink); }
.chat-toggle svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chat-toggle .chat-close-icon { display: none; }
.chat-toggle.is-open .chat-open-icon { display: none; }
.chat-toggle.is-open .chat-close-icon { display: block; }
.chat-toggle .ping {
  position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--signal); border: 2px solid var(--canvas);
}

.chat-panel {
  position: fixed; right: var(--sp-md); bottom: calc(var(--sp-md) + 70px); z-index: 949;
  width: min(370px, calc(100vw - 2 * var(--sp-md))); max-height: min(560px, 70vh);
  background: var(--canvas-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(23,24,28,0.22); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s var(--ease-soft), transform 0.3s var(--ease-soft), visibility 0.3s var(--ease-soft);
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-panel__head { background: var(--ink); color: #fff; padding: var(--sp-sm) var(--sp-md); }
.chat-panel__head strong { font-family: var(--f-display); font-size: 1.05rem; display: block; }
.chat-panel__head span { font-family: var(--f-mono); font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase; }

.chat-panel__body { flex: 1; overflow-y: auto; padding: var(--sp-sm) var(--sp-md); display: flex; flex-direction: column; gap: 0.6rem; }
.chat-msg { max-width: 84%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.5; }
.chat-msg--bot { align-self: flex-start; background: var(--canvas); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.chat-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 3px; }
.chat-msg a { text-decoration: underline; font-weight: 600; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 var(--sp-md) var(--sp-sm); }
.chat-chip {
  font-size: 0.8rem; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-soft); transition: all 0.2s var(--ease-soft);
}
.chat-chip:hover { border-color: var(--ink); color: var(--ink); background: var(--canvas); }

.chat-panel__foot { border-top: 1px solid var(--line); display: flex; align-items: center; padding: 0.5rem; gap: 0.4rem; }
.chat-panel__foot input {
  flex: 1; border: none; background: none; padding: 0.6rem 0.7rem; font-size: 0.9rem; color: var(--ink);
}
.chat-panel__foot input:focus { outline: none; }
.chat-panel__foot button {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s var(--ease-soft);
}
.chat-panel__foot button:hover { background: var(--signal); color: var(--signal-ink); }
.chat-panel__foot button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 480px) {
  .chat-panel { right: var(--sp-sm); left: var(--sp-sm); width: auto; bottom: calc(var(--sp-sm) + 66px); }
  .chat-toggle { right: var(--sp-sm); }
  .back-to-top { right: var(--sp-sm); }
  .whatsapp-float { left: var(--sp-sm); }
}
