/* American Interior Systems — design system (v2 premium-local)
   Fonts: Bricolage Grotesque (display) + Archivo (body), Google Fonts. */

:root {
  --paper: #FAF9F7;
  --card: #FFFFFF;
  --ink: #1B1917;
  --ink-2: #46413C;
  --muted: #6E6862;
  --faint: #9C958C;
  --line: #E8E4DE;
  --line-soft: #F0ECE6;
  --umber: #9E4E1E;
  --umber-deep: #7C3D15;
  --umber-tint: #F4E7DC;
  --umber-glow: #D98A4C;
  --umber-pale: #EFD9C8;
  --slot: #EFEAE3;
  --slot-line: #CFC8BE;
  --footer-mut: #B5AFA8;
  --ok: #3E7D4E;
  --r-btn: 10px;
  --r-card: 14px;
  --r-panel: 20px;
  --shadow-card: 0 2px 6px rgba(27,25,23,0.06), 0 20px 44px -20px rgba(27,25,23,0.25);
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --body: Archivo, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--umber); text-decoration: none; }
a:hover { color: var(--umber-deep); }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--umber); text-transform: uppercase;
}
.h-hero { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
.h-hero .lead { font-weight: 800; display: block; }
.h-hero .accent { font-weight: 500; color: var(--umber); display: block; }
.h-section { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin-top: 10px; }
.lede { font-size: 17px; color: var(--muted); margin: 12px 0 0; max-width: 42em; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; gap: 16px; }
.nav .brand { display: flex; align-items: center; gap: 13px; color: var(--ink); }
.nav .brand img { height: 42px; width: auto; display: block; }
.nav .brand b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav .links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav .links a { color: var(--ink-2); }
.nav .links a:hover { color: var(--ink); }
.nav .links a.active { color: var(--umber); font-weight: 600; }
.nav .links a.call { color: var(--paper); }
.nav .call {
  background: var(--ink); color: var(--paper); padding: 12px 22px;
  border-radius: var(--r-btn); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.nav .call:hover { background: #000; color: var(--paper); }
.nav .menu-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border-radius: var(--r-btn); font-weight: 700; font-size: 16px;
  padding: 16px 30px; text-align: center; cursor: pointer; border: 0; font-family: var(--body); }
.btn-primary { background: var(--umber); color: var(--paper); }
.btn-primary:hover { background: var(--umber-deep); color: var(--paper); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid #D8D2CA; font-weight: 600; }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }

/* ---------- chips, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--card); border-radius: 999px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding: 48px 0 64px; }
.hero .stats { display: flex; gap: 40px; margin-top: 42px; flex-wrap: wrap; row-gap: 18px; }
.hero .stats .num { font-family: var(--display); font-weight: 800; font-size: 25px; }
.hero .stats .lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.hero .stats .div { width: 1px; background: var(--line); }
.hero-visual { position: relative; min-height: 540px; }
.photo-slot { background: var(--slot); border: 1px dashed var(--slot-line); border-radius: var(--r-panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-weight: 600; font-size: 14px; }
.photo-slot small { color: var(--faint); font-weight: 400; font-size: 13px; }
.float-card { position: absolute; background: var(--card); border-radius: 16px; padding: 18px 20px;
  box-shadow: var(--shadow-card); border: 1px solid var(--line-soft); }
.float-ink { position: absolute; background: var(--ink); color: var(--paper); border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 20px 44px -20px rgba(27,25,23,0.45);
  display: flex; align-items: center; gap: 12px; }
.float-ink small { font-weight: 400; color: var(--footer-mut); }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-white { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* trusted-by strip */
.trusted { border-top: 1px solid var(--line); padding-top: 26px; display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trusted .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--faint); }
.trusted .names { display: flex; gap: 34px; flex-wrap: wrap; font-family: var(--display);
  font-weight: 600; font-size: 15.5px; color: var(--muted); }

/* trusted-by: hairline cell grid (home). Label rides in the first cell. */
.trusted.is-grid { display: block; border-top: 0; padding-top: 28px; }
.tg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tg li { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 74px; padding: 14px 12px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper);
  font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--muted);
  text-wrap: balance; transition: color .15s ease, background .15s ease; }
.tg li:hover { color: var(--ink); background: var(--card); }
.tg li.tg-lbl { justify-content: flex-start; text-align: left; font-family: var(--body); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--umber); }
.tg li.tg-lbl:hover { color: var(--umber); background: var(--paper); }
/* 13 names + label = 14 cells: the label cell widens so every row stays full (7x2, 5x3, 4x4, 2x7). */
@media (max-width: 1100px) { .tg { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tg li.tg-lbl { grid-column: span 2; } }
@media (max-width: 900px) { .tg { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tg li.tg-lbl { grid-column: span 3; } }
@media (max-width: 640px) { .tg { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tg li.tg-lbl { grid-column: span 1; } .tg li { min-height: 64px; font-size: 14.5px; } }

/* trusted-by: names grouped by sector (installations) */
.trusted.tg-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 40px 32px; margin-top: 40px; border-top: 0; padding-top: 0; }
.tg-group { border-top: 1px solid var(--line); padding-top: 16px; }
.tg-group.wide { grid-column: span 2; }
.tg-cat { font-family: var(--body); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-wrap: initial; color: var(--muted); }
.tg-group ul { list-style: none; margin: 14px 0 0; padding: 0; font-family: var(--display); font-weight: 600;
  font-size: 18px; line-height: 1.3; color: var(--ink-2); }
.tg-group li { padding: 5px 0; break-inside: avoid; }
.tg-group.wide ul { columns: 2; column-gap: 32px; }
@media (max-width: 960px) { .trusted.tg-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .trusted.tg-groups { grid-template-columns: 1fr; gap: 28px; margin-top: 32px; }
  .tg-group.wide { grid-column: auto; }
  .tg-group.wide ul { columns: 1; }
  .tg-group ul { font-size: 17px; }
}

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cat-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-card);
  padding: 22px; display: flex; align-items: center; gap: 16px; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.cat-card:hover { border-color: var(--umber-glow); transform: translateY(-2px); color: var(--ink); }
.cat-card .icon { width: 44px; height: 44px; border-radius: 11px; background: var(--umber-tint);
  display: flex; align-items: center; justify-content: center; flex: none; }
.cat-card .icon svg { width: 22px; height: 22px; stroke: var(--umber); fill: none; stroke-width: 1.8; }
.cat-card b { font-size: 16.5px; display: block; }
.cat-card span { font-size: 13.5px; color: var(--muted); }

.grid-3.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-3.cols-3 { grid-template-columns: 1fr; } }

/* ---------- services rows ---------- */
.svc-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
.svc-row { display: flex; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.svc-row .idx { font-family: var(--display); font-weight: 600; font-size: 15px; color: #C9C1B6; width: 36px; flex: none; }
.svc-row b { font-size: 19px; }
.svc-row p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 6px 0 0; }

/* ---------- bands ---------- */
.band { background: var(--umber); border-radius: var(--r-panel); padding: 48px 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band h2 { color: var(--paper); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; }
.band p { color: var(--umber-pale); font-size: 17px; margin: 10px 0 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid #D8D2CA; border-radius: var(--r-btn);
  padding: 13px 15px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--umber-glow); outline-offset: 1px; border-color: var(--umber-glow); }
.field .hint { font-size: 13px; color: var(--faint); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--footer-mut); padding: 60px 0 32px;
  border-radius: 28px 28px 0 0; margin-top: 80px; }
.footer .cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer img { width: 56px; height: 56px; display: block; }
.footer .col > img:first-child { height: 44px; width: auto; }
.footer .col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer .col b { color: var(--paper); margin-bottom: 4px; }
.footer .phone { color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 20px; }
.footer a { color: var(--footer-mut); }
.footer a:hover { color: var(--paper); }
.footer a.hot { color: var(--umber-glow); }
.footer .legal { border-top: 1px solid #35322E; margin-top: 44px; padding-top: 20px; font-size: 13px; color: #7A756E; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: 44px; padding-bottom: 12px; }
.page-hero .lede { font-size: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 420px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-split { grid-template-columns: 1fr; gap: 28px; }
  .nav .menu-btn { display: block; }
  .nav-outer { position: relative; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav .brand img { height: 34px; width: auto; }
  .nav .brand b { font-size: 17.5px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 48px; }
  .hero .stats { gap: 20px; }
  .band { padding: 30px 24px; }
  .btn { width: 100%; }
  .hero .cta-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-card { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- motion layer (js adds .rv / .rv-in; no-js and reduced-motion see everything) ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .65s cubic-bezier(.22,.8,.32,1), transform .65s cubic-bezier(.22,.8,.32,1); will-change: opacity, transform; }
.rv-in { opacity: 1; transform: none; }
.hero-visual.rv { transform: translateY(22px) scale(.985); }
.hero-visual.rv-in { transform: none; }

@keyframes bob { from { translate: 0 0; } to { translate: 0 -7px; } }
.bob { animation: bob 3.2s ease-in-out infinite alternate; }

/* sticky nav */
.nav-outer { position: sticky; top: 0; z-index: 40; background: rgba(250,249,247,0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, box-shadow .25s ease;
  max-width: none; }
.nav-outer .nav { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.nav-outer.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27,25,23,0.25); }

/* hover polish */
.btn { transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(27,25,23,0.35); }
.btn:active { transform: translateY(0); box-shadow: none; }
.cat-card { box-shadow: 0 0 0 rgba(27,25,23,0); }
.cat-card:hover { box-shadow: 0 14px 30px -18px rgba(27,25,23,0.28); }
.cat-card .icon { transition: transform .18s ease, background .18s ease; }
.cat-card:hover .icon { transform: scale(1.08) rotate(-3deg); background: #EFD9C8; }
.nav .links a { position: relative; }
.nav .links a:not(.call)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 2px; background: var(--umber); transition: right .2s ease; }
.nav .links a:not(.call):hover::after, .nav .links a.active:not(.call)::after { right: 0; }
.footer a, .trusted .names span { transition: color .15s ease; }
.band { transition: box-shadow .2s ease; }
.band:hover { box-shadow: 0 24px 48px -24px rgba(158,78,30,0.5); }
.svc-row { transition: background .18s ease; }
.svc-row:hover { background: rgba(244,231,220,0.35); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .bob { animation: none; }
  .btn, .cat-card, .cat-card .icon, .tg li { transition: none; }
  .btn:hover, .cat-card:hover .icon { transform: none; }
}

@media (max-width: 640px) {
  .float-ink { left: 12px; right: 12px; max-width: none; }
  .float-card { max-width: calc(100% - 24px); }
}

/* ---------- intro loader: the pallet-A builds, then docks into the header ---------- */
#aisIntro { position: fixed; inset: 0; z-index: 200; background: var(--paper);
  display: flex; align-items: center; justify-content: center; }
#aisIntro .lk { display: flex; align-items: center; gap: 26px; will-change: transform; }
#aisIntro svg { width: 92px; height: 92px; display: block; }
#aisIntro .nm { font-family: var(--display); font-weight: 800; font-size: 44px;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
html.intro-pending .nav .brand { visibility: hidden; }
#aisIntro .p { opacity: 0; }
#aisIntro svg .p { transform-box: fill-box; }
@keyframes iFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes iGrow { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: scaleY(1); } }
@keyframes iBeam { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes iPulse { from { opacity: 1; } to { opacity: 0.35; } }
#aisIntro.play .plates { animation: iFade 0.3s ease forwards; }
#aisIntro.play .legL { transform-origin: bottom; animation: iGrow 0.45s cubic-bezier(0.2,0.7,0.3,1) 0.2s forwards; }
#aisIntro.play .legR { transform-origin: bottom; animation: iGrow 0.45s cubic-bezier(0.2,0.7,0.3,1) 0.34s forwards; }
#aisIntro.play .beam { animation: iBeam 0.4s cubic-bezier(0.2,0.7,0.3,1) 0.72s forwards; }
#aisIntro.play .nm { animation: iFade 0.4s ease 1.0s forwards; }
#aisIntro.waiting .beam { animation: iPulse 0.7s ease-in-out 0s infinite alternate; }
@media (max-width: 640px) { #aisIntro svg { width: 76px; height: 76px; } #aisIntro .nm { font-size: 30px; } #aisIntro .lk { gap: 18px; } }

/* video intro */
#aisIntro video { width: min(92vw, 1100px); height: auto; display: block; will-change: transform; }

/* ---------- buttery interactions ---------- */
* { -webkit-tap-highlight-color: transparent; }
a, button { transition: color .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.btn:active, .nav .call:active { transform: translateY(0) scale(0.97); }
.cat-card:active { transform: scale(0.98); }
.chip { transition: box-shadow .2s ease; }
.trusted .names span:hover { color: var(--ink); }

/* hamburger icon morphs to X */
.menu-btn svg line { transition: transform .28s cubic-bezier(.4,0,.2,1); transform-origin: 12px 12px; }
.nav.open .menu-btn svg line:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .menu-btn svg line:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 960px) {
  /* animated slide-down menu (replaces the instant display toggle) */
  .nav .links {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0; background: var(--card);
    padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--line); z-index: 20;
    opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
    transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1), visibility 0s linear .28s;
    box-shadow: 0 22px 40px -24px rgba(27,25,23,.28);
  }
  .nav.open .links {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1), visibility 0s;
  }
  .nav .links > a { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s cubic-bezier(.4,0,.2,1); }
  .nav.open .links > a { opacity: 1; transform: none; }
  .nav.open .links > a:nth-child(1) { transition-delay: .05s; }
  .nav.open .links > a:nth-child(2) { transition-delay: .09s; }
  .nav.open .links > a:nth-child(3) { transition-delay: .13s; }
  .nav.open .links > a:nth-child(4) { transition-delay: .17s; }
  .nav.open .links > a:nth-child(5) { transition-delay: .21s; }
  .nav.open .links > a:nth-child(6) { transition-delay: .25s; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-btn svg line, .nav .links, .nav .links > a { transition: none; }
  .btn:active, .cat-card:active { transform: none; }
}

/* ---------- hero v3: full-bleed photo ---------- */
.hero-full { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-full .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-full .scrim { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,15,12,0.92) 0%, rgba(18,15,12,0.55) 52%, rgba(18,15,12,0.2) 100%); }
.hero-full .inner { position: relative; width: 100%; padding: 96px 0 56px; color: #FAF9F7; }
.hero-full .chip { background: rgba(250,249,247,0.12); border-color: rgba(250,249,247,0.25); color: #EDE9E4;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-full h1 { font-size: clamp(46px, 7vw, 96px); line-height: 0.99; letter-spacing: -0.03em; margin-top: 22px; text-shadow: 0 2px 28px rgba(0,0,0,0.45); }
.hero-full h1 .lead { font-weight: 800; display: block; color: #FAF9F7; }
.hero-full h1 .accent { font-weight: 800; display: block; color: #D98A4C; }
.hero-full .lede { color: #E7E2DC; font-size: 18px; max-width: 36em; text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
.hero-full .match { margin-top: 20px; font-weight: 700; font-size: 16.5px; color: #D98A4C; letter-spacing: 0.01em; text-shadow: 0 1px 14px rgba(0,0,0,0.55); }
.hero-full .cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-full .btn-ghost { background: transparent; color: #FAF9F7; border-color: rgba(250,249,247,0.45); }
.hero-full .btn-ghost:hover { border-color: #FAF9F7; color: #FAF9F7; }
.hero-full .strip { display: flex; gap: 36px; margin-top: 42px; padding-top: 22px;
  border-top: 1px solid rgba(250,249,247,0.22); flex-wrap: wrap; }
.hero-full .strip b { font-family: var(--display); font-weight: 800; font-size: 19px; display: block; }
.hero-full .strip span { font-size: 12.5px; color: #B5AFA8; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-full .credit { position: absolute; right: 14px; bottom: 10px; font-size: 10.5px; color: rgba(250,249,247,0.4); }
.hero-full .credit a { color: rgba(250,249,247,0.55); }
@media (max-width: 640px) {
  .hero-full { min-height: 78vh; }
  .hero-full .inner { padding: 72px 0 40px; }
  .hero-full .strip { gap: 20px; margin-top: 30px; }
}

/* ---------- illustrated scene placeholders ---------- */
.scene { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); background: #EFEAE3; }
.scene img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene .tag-il { position: absolute; top: 10px; left: 10px; font-size: 10.5px; letter-spacing: 0.08em;
  font-weight: 700; background: rgba(27,25,23,0.72); color: #FAF9F7; padding: 4px 9px; border-radius: 5px; text-transform: uppercase; }

/* ---------- hover polish, second pass ---------- */
.scene { transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease; }
.scene:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(27,25,23,.3); }
.scene img { transition: transform .45s cubic-bezier(.2,.7,.3,1); }
.scene:hover img { transform: scale(1.045); }
.hov-card { transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease; }
.hov-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(27,25,23,.28); border-color: var(--umber-glow) !important; }
.mfg-chip { transition: transform .18s cubic-bezier(.2,.7,.3,1), border-color .18s ease, box-shadow .18s ease; }
.mfg-chip:hover { transform: translateY(-2px); border-color: var(--umber-glow); box-shadow: 0 12px 26px -18px rgba(27,25,23,.3); }
.mfg-chip:hover svg, .mfg-chip:hover .arr { transform: translateX(3px); }
.mfg-chip svg, .mfg-chip .arr { transition: transform .18s ease; display: inline-block; }
.hero-full .chip { transition: border-color .2s ease, background .2s ease; }
.hero-full .chip:hover { border-color: rgba(250,249,247,0.5); background: rgba(250,249,247,0.18); }
.footer img { transition: opacity .2s ease; opacity: 0.92; }
.footer img:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scene, .scene img, .hov-card, .mfg-chip { transition: none; }
  .scene:hover, .scene:hover img, .hov-card:hover, .mfg-chip:hover { transform: none; }
}

/* ---------- installations gallery: mobile mosaic + fullscreen viewer ---------- */
.gal .scene { cursor: pointer; }
@media (max-width: 640px) {
  .gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .gal .scene { border-radius: 12px; }
  .gal .scene.feat { grid-column: 1 / -1; height: 250px !important; }
  .gal .scene:not(.feat) { height: 158px !important; }
}
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(18,15,12,0.97); display: flex; flex-direction: column; opacity: 0; transition: opacity .25s ease; }
.lb.on { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lb-count { font-size: 13.5px; letter-spacing: 0.06em; color: rgba(250,249,247,0.78); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-x { background: rgba(250,249,247,0.12); border: 0; color: #FAF9F7; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.lb-x:hover { background: rgba(250,249,247,0.24); transform: scale(1.06); }
.lb-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-item { flex: 0 0 100%; width: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 0 10px 30px; box-sizing: border-box; }
.lb-item img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); border-radius: 10px; }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(250,249,247,0.12); color: #FAF9F7; font-size: 20px; cursor: pointer; transition: background .18s ease; display: none; z-index: 1; }
.lb-arrow:hover { background: rgba(250,249,247,0.24); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (min-width: 641px) { .lb-arrow { display: block; } }
@media (prefers-reduced-motion: reduce) { .lb, .lb-x { transition: none; } }

/* Home appears only in the mobile menu; the brand covers it on desktop */
.nav .links .home-link { display: none; }
@media (max-width: 960px) { .nav .links .home-link { display: block; } .nav .links .home-link.active-home { color: var(--umber); font-weight: 600; } }

/* ---------- installations cycling hero ---------- */
.ihero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; overflow: hidden; background: #171310; }
.ihero .layer { position: absolute; inset: -2%; opacity: 0; transition: opacity 1.5s ease; will-change: opacity, transform; }
.ihero .layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ihero .layer.show { opacity: 1; }
.ihero .layer.kb-a { animation: kbA 7.5s ease-out forwards; }
.ihero .layer.kb-b { animation: kbB 7.5s ease-out forwards; }
@keyframes kbA { from { transform: scale(1.0) translateX(0); } to { transform: scale(1.09) translateX(-1.4%); } }
@keyframes kbB { from { transform: scale(1.0) translateX(0); } to { transform: scale(1.09) translateX(1.4%); } }
.ihero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(18,15,12,0.92) 0%, rgba(18,15,12,0.55) 42%, rgba(18,15,12,0.28) 100%); }
.ihero-inner { position: relative; z-index: 2; width: 100%; padding-top: 110px; padding-bottom: 54px; }
.ihero-inner h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; color: var(--paper);
  margin-top: 10px; text-shadow: 0 2px 24px rgba(18,15,12,0.5); }
.ihero-inner h1 .acc { color: var(--umber-glow); font-weight: 500; }
.ihero-inner p { font-size: 18px; color: rgba(250,249,247,0.85); max-width: 34em; margin: 14px 0 0;
  text-shadow: 0 1px 14px rgba(18,15,12,0.5); }
.ihero-inner .note { font-size: 13.5px; color: rgba(250,249,247,0.6); margin-top: 12px; }
.ihero-count { position: absolute; right: 26px; bottom: 22px; z-index: 2; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; color: rgba(250,249,247,0.75); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .ihero { min-height: 60vh; } .ihero-inner { padding-top: 84px; padding-bottom: 44px; } }
@media (prefers-reduced-motion: reduce) {
  .ihero .layer { transition: none; animation: none !important; }
}

/* ---------- gallery filter chips ---------- */
.gal-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.gal-chip { border: 1.5px solid #D8D2CA; background: var(--card); color: var(--ink-2); border-radius: 999px;
  padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--body);
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease; }
.gal-chip:hover { border-color: var(--umber-glow); transform: translateY(-1px); }
.gal-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gal .scene[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .gal-chip { transition: none; } .gal-chip:hover { transform: none; } }

/* ---------- services: expandable consulting rows ---------- */
.svc-acc details.svc-row { display: block; padding: 0; }
.svc-acc summary { display: flex; align-items: baseline; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.svc-acc summary::-webkit-details-marker { display: none; }
.svc-acc summary b { flex: 1; transition: color .18s ease; }
.svc-acc summary:hover b { color: var(--umber-deep); }
.svc-acc summary:focus-visible { outline: 2px solid var(--umber-glow); outline-offset: 6px; border-radius: 4px; }
.svc-acc .plus { position: relative; width: 14px; height: 14px; flex: none; align-self: center; }
.svc-acc .plus::before, .svc-acc .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--faint); border-radius: 1px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), background .18s ease; }
.svc-acc .plus::after { transform: rotate(90deg); }
.svc-acc details[open] .plus::after { transform: rotate(0); }
.svc-acc details[open] .plus::before, .svc-acc details[open] .plus::after { background: var(--umber); }
.svc-acc details[open] summary .idx { color: var(--umber-glow); }
.svc-acc .svc-body { overflow: hidden; }
.svc-acc .svc-body-in { padding: 0 32px 30px 60px; }
.svc-acc .svc-body-in p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0; max-width: 34em; }
.svc-acc .svc-eg-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 22px; }
.svc-acc .svc-eg { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-acc .svc-eg li { border: 1.5px solid #D8D2CA; background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.svc-acc .svc-tip { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; background: var(--umber-tint); border-radius: 12px; font-size: 14.5px; line-height: 1.55; color: var(--umber-deep); max-width: 36em; }
.svc-acc .svc-tip b { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; flex: none; padding-top: 3px; }
.svc-photo { margin-top: 28px; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 4 / 5; max-width: 380px; }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 961px) { .svc-split > div:first-child .svc-sticky { position: sticky; top: 32px; } }
@media (max-width: 640px) {
  .svc-acc summary { gap: 16px; padding: 22px 0; }
  .svc-acc .svc-body-in { padding: 0 0 26px 0; }
  .svc-acc summary .idx { width: 28px; }
  .svc-photo { display: none; }
}
@media (prefers-reduced-motion: reduce) { .svc-acc .plus::before, .svc-acc .plus::after, .svc-acc summary b { transition: none; } }
