/* ============================================================
   BROTHERS FABRICATION — industrial-editorial design system
   (style template; populated with ReDoIt Construction content)
   ============================================================ */

:root {
  /* clean cool neutrals (black + white brand) */
  --paper:        #f5f6f5;
  --paper-2:      #eceeed;
  --paper-3:      #e1e4e2;
  --card:         #ffffff;
  --ink:          #121413;
  --ink-2:        #4b504d;
  --ink-3:        #828884;
  --line:         #e3e6e4;
  --line-2:       #cdd1cf;

  /* near-black darks (hero / footer / back office) */
  --steel-950:    #0c0d0d00;
  --steel-900:    #101211;
  --steel-850:    #151817;
  --steel-800:    #1b1f1d;
  --steel-700:    #272b29;
  --steel-600:    #363b39;
  --steel-500:    #525755;
  --on-dark:      #f1f4f2;
  --on-dark-2:    #a7aeaa;
  --on-dark-3:    #6f7672;
  --line-dark:    #262b29;
  --line-dark-2:  #343a37;

  /* accent — BRO FAB mint (themeable) */
  --accent:       #70f0c4;   /* bright brand mint — fills, bars, active, buttons */
  --accent-2:     #9af6d8;
  --accent-ink:   #0c1311;   /* near-black text on mint */
  --accent-text:  #0c9d72;   /* deep mint — readable accent text/borders on light */
  --accent-soft:  rgba(112,240,196,0.20);

  /* status */
  --ok:    #2f9e6f;
  --warn:  #c98a1e;
  --bad:   #d24b36;
  --info:  #3f86c4;

  --maxw: 1240px;
  --r: 3px;
  --shadow: 0 1px 2px rgba(16,18,17,.05), 0 8px 26px rgba(16,18,17,.07);
  --shadow-lg: 0 2px 6px rgba(12,14,13,.10), 0 24px 60px rgba(12,14,13,.18);

  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --cond: "Saira Condensed", "Saira", system-ui, sans-serif;
  --sans: "Saira", system-ui, -apple-system, sans-serif;
}

/* accent variants (Tweaks) */
[data-accent="orange"]{ --accent:#df5a26; --accent-2:#f0913f; --accent-ink:#fff; --accent-text:#c14a1c; --accent-soft:rgba(223,90,38,.13); }
[data-accent="blue"]  { --accent:#2f7dd1; --accent-2:#5ba0e8; --accent-ink:#fff; --accent-text:#2167b3; --accent-soft:rgba(47,125,209,.13); }
[data-accent="amber"] { --accent:#f0b429; --accent-2:#f6c95a; --accent-ink:#231a05; --accent-text:#a8770a; --accent-soft:rgba(240,180,41,.18); }

/* ============================================================
   DARK THEME TOKENS
   ============================================================ */
html { transition: background-color .3s ease; }
body { transition: background-color .3s ease; }

html.dark {
  --paper:   #15171a;
  --paper-2: #1b1e22;
  --paper-3: #23272c;
  --card:    #1d2126;
  --ink:     #eef1ef;
  --ink-2:   #b4bbb7;
  --ink-3:   #828b86;
  --line:    #2a2f34;
  --line-2:  #363c42;
  --shadow:  0 1px 2px rgba(0,0,0,.4), 0 8px 26px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.6);
  /* accent stays orange — keep these overrides so orange data-accent still wins */
}

/* Sticky header / top bar glass panels */
html.dark .site-header { background: rgba(21,23,26,.86); }
html.dark .site-nav.open { background: var(--paper); }
html.dark .bo-top { background: rgba(21,23,26,.9); }

/* Quote form side panel */
html.dark .quote-side { background: var(--paper-2); }

/* Back-office kanban column background */
html.dark .kcol { background: var(--paper-2); }

/* New-build wizard modal body */
html.dark .nb-steps { background: var(--paper-3); }
html.dark .nb-foot  { background: var(--paper-3); }

/* Drawer */
html.dark .drawer { background: var(--paper); }

/* Pay page background */
html.dark .pay-page { background: var(--paper-2); }
html.dark .pay-card  { background: var(--card); }

/* Calendar head row */
html.dark .cal-head { background: var(--paper-3); }

/* Section paper2 variant */
html.dark .section.paper2 { background: var(--paper-2); }

/* inv-sheet is intentionally kept white (paper document) */

/* ============================================================
   VIEW TRANSITION — circular reveal (no cross-fade)
   ============================================================ */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  border-radius: 0;
  transition: border-color .15s, color .15s, background .15s;
  flex: none;
}
.theme-toggle:hover {
  border-color: var(--ink-2);
  color: var(--ink);
  background: var(--paper-2);
}
/* On dark header surface (the header uses --paper bg in light, steel tones in dark — keep icon visible either way) */
html.dark .site-header .theme-toggle {
  border-color: var(--line-2);
  color: var(--ink-3);
}
html.dark .site-header .theme-toggle:hover {
  color: var(--ink);
  background: var(--paper-3);
}

/* ============================================================
   SCROLL / REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Stagger grid children */
.grid-3 > .reveal:nth-child(2), .grid-4 > .reveal:nth-child(2),
.tiers > .reveal:nth-child(2), .gallery > .reveal:nth-child(2),
.team-grid > .reveal:nth-child(2), .reviews > .reveal:nth-child(2) { transition-delay: .06s; }

.grid-3 > .reveal:nth-child(3), .grid-4 > .reveal:nth-child(3),
.tiers > .reveal:nth-child(3), .gallery > .reveal:nth-child(3),
.team-grid > .reveal:nth-child(3), .reviews > .reveal:nth-child(3) { transition-delay: .12s; }

.grid-4 > .reveal:nth-child(4), .gallery > .reveal:nth-child(4),
.team-grid > .reveal:nth-child(4) { transition-delay: .18s; }

.gallery > .reveal:nth-child(5) { transition-delay: .12s; }
.gallery > .reveal:nth-child(6) { transition-delay: .18s; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.5;
}
#root { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
}
.eyebrow.accent { color: var(--accent-text); }
.eyebrow .num { color: var(--accent-text); }
.display {
  font-family: var(--cond);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-3);
}
.tnum { font-variant-numeric: tabular-nums; font-family: var(--mono); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule-dark { height: 1px; background: var(--line-dark); border: 0; margin: 0; }

/* section number label like the plan */
.secnum {
  display: flex; align-items: baseline; gap: 16px;
  border-top: 2px solid var(--ink);
  padding-top: 14px; margin-bottom: 28px;
}
.secnum .n { font-family: var(--mono); font-size: 13px; color: var(--accent-text); letter-spacing:.1em; }
.secnum h2 {
  font-family: var(--cond); text-transform: uppercase; font-weight: 700;
  font-size: clamp(26px, 3.4vw, 44px); margin: 0; line-height: .95; letter-spacing: -.01em;
}
.secnum .tag { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing:.22em; color: var(--ink-3); text-transform: uppercase; align-self: center; }

/* ---------- BF badge ---------- */
.bf-badge {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border: 2px solid currentColor;
  font-family: var(--cond); font-weight: 700; font-size: 19px; letter-spacing: .02em;
  position: relative; flex: none;
}
.bf-badge::after {
  content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; opacity: .35;
}
.bf-lockup { display: flex; align-items: center; gap: 12px; }
.bf-lockup .nm { font-family: var(--cond); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .01em; }
.bf-lockup .nm small { display:block; font-family: var(--mono); font-weight: 400; font-size: 9px; letter-spacing: .24em; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 13px 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  border-radius: 0; transition: .16s ease; font-weight: 700;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { background: var(--on-dark); border-color: var(--on-dark); color: var(--steel-900); }
.btn.on-dark:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost.on-dark { background: transparent; color: var(--on-dark); border-color: var(--line-dark-2); }
.btn.ghost.on-dark:hover { background: var(--on-dark); color: var(--steel-900); }
.btn.sm { padding: 8px 14px; font-size: 10.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--line-2); color: var(--ink-2); background: transparent;
  white-space: nowrap;
}
.chip.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.accent { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

.stat-ok { color: var(--ok); } .stat-warn { color: var(--warn); }
.stat-bad { color: var(--bad); } .stat-info { color: var(--info); }
.bg-ok{background:rgba(79,122,74,.13);color:var(--ok);}
.bg-warn{background:rgba(201,138,30,.15);color:var(--warn);}
.bg-bad{background:rgba(192,73,47,.13);color:var(--bad);}
.bg-info{background:rgba(75,127,168,.13);color:var(--info);}

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); }
.panel { background: var(--card); border: 1px solid var(--line); }

/* ---------- striped image placeholder ---------- */
.ph {
  position: relative; overflow: hidden; background: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(33,31,28,.045) 11px 12px);
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3);
}
.ph.dark {
  background: var(--steel-800);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255,255,255,.035) 11px 12px);
  border-color: var(--line-dark); color: var(--on-dark-3);
}
.ph .ph-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid currentColor; background: var(--card);
}
.ph.dark .ph-label { background: var(--steel-850); }
.ph .ph-corner { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 9px; letter-spacing:.2em; color: currentColor; text-transform: uppercase; opacity: .8; }

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 400; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.spec td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec tr:last-child td { border-bottom: 0; }
.spec tr.clickable:hover { background: var(--paper-2); cursor: pointer; }
.spec .tnum { text-align: right; }
/* keep mono subtexts under their titles, never colliding on the same line */
.spec td > span.mono, .gname > span.mono { display: block; margin-top: 3px; line-height: 1.3; }

/* progress bar */
.bar { height: 6px; background: var(--paper-3); position: relative; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); display: block; }
.bar.dark { background: var(--steel-700); }

/* ============================================================
   TRACK — pizza-style live build tracker
   ============================================================ */
.track-page { background: var(--paper); min-height: 80vh; }
.livedot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); position: relative; flex: none; }
.livedot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.track-hero { background: var(--steel-900); color: var(--on-dark); padding: 32px 36px 40px; position: relative; overflow: hidden; }
.track-hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, transparent 0 30px, rgba(255,255,255,.015) 30px 31px); }
.track-hero > * { position: relative; }
.track-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.track-eta { text-align: right; border: 1px solid var(--line-dark-2); padding: 12px 18px; min-width: 130px; }

.track-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.track-line { position: absolute; top: 22px; left: 8%; right: 8%; height: 3px; background: var(--steel-700); }
.track-line-fill { height: 100%; background: var(--accent); transition: width .6s cubic-bezier(.3,.8,.3,1); }
.track-step { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; z-index: 2; text-align: center; }
.track-glyph {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--steel-800); border: 2px solid var(--steel-600); color: var(--on-dark-3);
  font-size: 19px; transition: .35s; flex: none;
}
.track-glyph.sm { width: 38px; height: 38px; font-size: 16px; background: var(--paper-2); border-color: var(--line-2); color: var(--accent-text); border-radius: 50%; }
.track-step.done .track-glyph { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track-step.active .track-glyph { background: var(--steel-900); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.track-step-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); max-width: 11ch; line-height: 1.35; }
.track-step.active .track-step-label { color: var(--on-dark); }
.track-step.done .track-step-label { color: var(--on-dark-2); }

.track-now { display: flex; align-items: center; gap: 22px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 24px 26px; margin-top: 16px; }
.track-now-glyph { width: 60px; height: 60px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 28px; }
.track-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.track-tick { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 10px; color: var(--accent-text); }
.track-tick.done { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.track-tick.active { border-color: var(--accent-text); color: var(--accent-text); }
.track-route { font-family: var(--mono); font-size: 22px; color: var(--accent-text); }
@media (max-width: 860px) {
  .track-grid { grid-template-columns: 1fr; }
  .track-step-label { display: none; }
  .track-step.active .track-step-label { display: block; }
}

/* ============================================================
   PUBLIC SITE
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,246,245,.88); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 72px; }
.site-logo { cursor: pointer; display: flex; align-items: center; margin-right: 44px; }
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: .15s; cursor: pointer;
}
.site-nav a:hover, .site-nav a.active { color: var(--ink); border-color: var(--accent-text); }
.site-cta { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-staff { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); cursor: pointer; transition: .15s; }
.site-staff:hover { color: var(--ink); }
.site-header .tel { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink); }

/* hero */
.hero { background: var(--steel-900); color: var(--on-dark); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; min-height: 600px; }
.hero-copy { padding: 76px 56px 64px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line-dark); }
.hero h1 { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 4.6vw, 74px); line-height: .92; letter-spacing: -.015em; margin: 18px 0 22px; }
.hero h1 .em { color: var(--accent); }
.hero .lede { color: var(--on-dark-2); font-size: 18px; max-width: 42ch; margin-bottom: 32px; }
.hero-media { position: relative; }
.hero-media .bimg { height: 100%; width: 100%; }
/* real build photos */
.bimg { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--steel-800); }
.bframe { position: relative; overflow: hidden; background: var(--steel-800); border: 1px solid var(--line); }
.section.dark .bframe, .hero .bframe { border-color: var(--line-dark); }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-dark); }
.hero-stats > div { padding: 22px 24px; border-right: 1px solid var(--line-dark); }
.hero-stats > div:last-child { border-right: 0; }
.hero-stats .v { font-family: var(--cond); font-weight: 700; font-size: 34px; line-height: 1; }
.hero-stats .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-3); margin-top: 6px; }

.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.dark { background: var(--steel-900); color: var(--on-dark); }
.section.dark .secnum { border-color: var(--on-dark); }
.section.dark .secnum h2 { color: var(--on-dark); }
.section.dark .secnum .tag, .section.dark .eyebrow { color: var(--on-dark-3); }
/* bright mint accent text on dark surfaces */
.section.dark .eyebrow.accent, .hero .eyebrow.accent, .mark-plate .eyebrow.accent, .login .eyebrow.accent,
.section.dark .eyebrow .num, .section.dark .secnum .n { color: var(--accent); }
.section.paper2 { background: var(--paper-2); }

.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.lead-row p { font-size: 17px; color: var(--ink-2); margin: 0; }

/* pillar / feature grid */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 0; border: 1px solid var(--line); }
.cell { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); transition: transform .25s ease, box-shadow .25s ease, border-color .15s ease; height: 100%; }
.cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.grid-4 .cell:nth-child(4n), .grid-3 .cell:nth-child(3n), .grid-2 .cell:nth-child(2n) { border-right: 0; }
.cell .cn { font-family: var(--mono); font-size: 11px; color: var(--accent-text); letter-spacing: .1em; }
.cell h3 { font-family: var(--cond); text-transform: uppercase; font-weight: 600; font-size: 22px; margin: 14px 0 10px; line-height: 1; }
.cell p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* tier cards */
.tiers { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.tier { border: 1px solid var(--line); background: var(--card); padding: 28px 24px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease, border-color .15s ease; }
.tier.feat { border-color: var(--accent-text); box-shadow: var(--shadow); }
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier .tn { font-family: var(--cond); text-transform: uppercase; font-weight: 700; font-size: 26px; }
.tier .tp { font-family: var(--mono); font-size: 13px; color: var(--accent-text); margin: 4px 0 18px; letter-spacing: .04em; }
.tier ul { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.tier li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.tier li::before { content: "—"; color: var(--accent-text); }
.tier .btn { margin-top: auto; }

/* footer */
.site-footer { background: var(--steel-900); color: var(--on-dark-2); padding: 64px 0 36px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); margin: 0 0 16px; font-weight: 400; }
.site-footer a { display: block; color: var(--on-dark-2); font-size: 14px; padding: 5px 0; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer .legal { display: flex; justify-content: space-between; padding-top: 26px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--on-dark-3); text-transform: uppercase; }

/* team grid */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-card { background: var(--card); padding: 0; transition: transform .25s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .ph { aspect-ratio: 1/1; border: 0; border-bottom: 1px solid var(--line); }
.team-card .meta { padding: 16px 18px; }
.team-card .nm { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 19px; line-height: 1; }
.team-card .rl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; }
.team-card .crd { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gal-item { border: 1px solid var(--line); background: var(--card); transition: transform .25s ease, box-shadow .25s ease, border-color .15s ease; }
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gal-item .ph { aspect-ratio: 4/3; border: 0; border-bottom: 1px solid var(--line); }
.gal-item .gm { padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.gal-item .gt { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 17px; line-height: 1; }
.gal-item .gs { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.review { border: 1px solid var(--line-dark); padding: 28px; }
.review p { font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0 0 18px; }
.review .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--on-dark-3); text-transform: uppercase; }
.stars { color: var(--accent-2); letter-spacing: 3px; margin-bottom: 14px; font-size: 13px; }

/* quote builder */
.quote-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 0; border: 1px solid var(--line); }
.quote-form { padding: 40px; border-right: 1px solid var(--line); background: var(--card); }
.quote-side { padding: 40px; background: var(--paper-2); }
.field { margin-bottom: 22px; }
.field > label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 14px; border-radius: 0;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-text); }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); transition: .14s;
}
.opt:hover { border-color: var(--ink-2); }
.opt.sel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opt.sel.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.drop { border: 1px dashed var(--line-2); padding: 26px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; background: var(--paper); }

/* builder's mark page */
.mark-plate {
  background: linear-gradient(135deg,#3a3733,#26241f 60%,#312e29);
  background-image: linear-gradient(135deg,#3a3733,#26241f 60%,#312e29), repeating-linear-gradient(90deg, transparent 0 2px, rgba(255,255,255,.025) 2px 3px);
  border: 1px solid var(--line-dark-2); color: var(--on-dark); padding: 34px 38px; position: relative;
}
.mark-plate::before { content:""; position:absolute; inset:8px; border:1px solid rgba(255,255,255,.14); pointer-events: none; }

/* ============================================================
   BACK OFFICE
   ============================================================ */
.bo { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; background: var(--paper); }
.bo-side { background: var(--steel-900); color: var(--on-dark-2); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.bo-side .brand { padding: 20px 20px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); display:flex; align-items:center; gap:11px; }
.bo-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.bo-nav .grp { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); padding: 16px 12px 8px; }
.bo-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; font-size: 13.5px; color: var(--on-dark-2); border-left: 2px solid transparent; transition: .12s; }
.bo-nav a:hover { color: var(--on-dark); background: var(--steel-850); }
.bo-nav a.active { color: var(--on-dark); border-color: var(--accent); background: var(--steel-850); }
.bo-nav a .ic { width: 16px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.bo-side .who { padding: 14px 18px; border-top: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--on-dark-3); display:flex; justify-content:space-between; align-items:center; }

.bo-main { display: flex; flex-direction: column; min-width: 0; }
.bo-top { position: sticky; top: 0; z-index: 20; background: rgba(244,241,236,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 16px 30px; display: flex; align-items: center; gap: 18px; }
.bo-top h1 { font-family: var(--cond); text-transform: uppercase; font-weight: 700; font-size: 26px; margin: 0; line-height: 1; }
.bo-top .crumb { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.bo-body { padding: 30px; flex: 1; }
.bo-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { background: var(--card); border: 1px solid var(--line); padding: 18px 20px; }
.kpi .k { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { font-family: var(--cond); font-weight: 700; font-size: 38px; line-height: 1; margin-top: 8px; }
.kpi .d { font-family: var(--mono); font-size: 11px; margin-top: 7px; color: var(--ink-2); }

.panel-h { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h .t { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.panel-h .r { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* kanban board */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(238px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.kcol { background: var(--paper-2); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 200px; }
.kcol-h { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.kcol-h .n { font-family: var(--mono); font-size: 10px; color: var(--accent-text); }
.kcol-h .l { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.kcol-h .c { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.kcards { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.kcard { background: var(--card); border: 1px solid var(--line); padding: 13px; cursor: pointer; transition: .12s; }
.kcard:hover { border-color: var(--accent-text); box-shadow: var(--shadow); transform: translateY(-1px); }
.kcard .id { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; }
.kcard .ti { font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 17px; line-height: 1; margin: 6px 0 9px; }
.kcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 9px; }
.kcard .val { font-family: var(--mono); font-size: 12px; font-weight: 700; }

/* timeline / gantt */
.gantt { display: grid; grid-template-columns: 220px 1fr; }
.gantt-h { display: contents; }
.gantt .gh { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.gantt .gname { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.gantt .gtrack { border-bottom: 1px solid var(--line); position: relative; padding: 10px 12px; }
.gbar { position: absolute; top: 12px; height: 22px; background: var(--accent); display: flex; align-items: center; padding: 0 8px; }
.gbar .gl { font-family: var(--mono); font-size: 9px; color: var(--accent-ink); letter-spacing: .06em; white-space: nowrap; }
.gmonths { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.gmonths span { font-family: var(--mono); font-size: 9px; color: var(--ink-3); padding: 10px 0 10px 12px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line-2); letter-spacing: .1em; }

/* detail drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,18,14,.42); z-index: 90; display: flex; justify-content: flex-end; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(720px, 94vw); background: var(--paper); height: 100%; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slidein .22s cubic-bezier(.2,.7,.3,1); }
@keyframes slidein { from { transform: translateX(40px); opacity: .6; } }
.drawer-h { position: sticky; top: 0; background: var(--steel-900); color: var(--on-dark); padding: 22px 28px; display: flex; align-items: flex-start; gap: 14px; z-index: 2; }
.drawer-h .x { margin-left: auto; background: transparent; border: 1px solid var(--line-dark-2); color: var(--on-dark-2); width: 32px; height: 32px; font-family: var(--mono); }
.drawer-h .x:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.drawer-b { padding: 28px; }
.dsec { margin-bottom: 30px; }
.dsec > .h { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 16px; }

.kv { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 28px; }
.kv .k { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.kv .v { font-size: 14px; margin-top: 3px; }

/* checklist rows */
.task { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .tbox { width: 18px; height: 18px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; flex: none; cursor: pointer; }
.task .tbox.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.task .tbox.active { border-color: var(--accent-text); color: var(--accent-text); }
.task .tt { font-size: 14px; flex: 1; }
.task.done .tt { color: var(--ink-3); text-decoration: line-through; }

/* segmented control */
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { background: var(--card); border: 0; border-right: 1px solid var(--line-2); padding: 7px 13px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--ink); color: var(--paper); }

/* charts */
.stack-chart { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; align-items: end; height: 280px; }
.stack-col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.stack-seg { width: 100%; }
.stack-x { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin-top: 10px; }
.stack-total { font-family: var(--cond); font-weight: 700; font-size: 22px; text-align: center; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; }
.legend .li { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.legend .sw { width: 12px; height: 12px; }

.donut-wrap { display: flex; align-items: center; gap: 26px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--steel-900); color: var(--on-dark); position: relative; overflow: hidden; }
.login::before { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,.014) 40px 41px); }
.login-card { width: min(420px, 92vw); background: var(--steel-850); border: 1px solid var(--line-dark-2); padding: 40px; position: relative; z-index: 2; }
.login-card .input { background: var(--steel-900); border-color: var(--line-dark-2); color: var(--on-dark); }
.login-card .field > label { color: var(--on-dark-3); }
.login-hint { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--on-dark-3); margin-top: 18px; line-height: 1.7; }

/* utility */
.muted { color: var(--ink-3); }
.flex { display: flex; } .between { justify-content: space-between; } .center { align-items: center; }
.gap8{gap:8px;} .gap12{gap:12px;} .gap16{gap:16px;} .gap24{gap:24px;}
.mt8{margin-top:8px;} .mt16{margin-top:16px;} .mt24{margin-top:24px;} .mt32{margin-top:32px;} .mt44{margin-top:44px;}
.mb8{margin-bottom:8px;} .mb16{margin-bottom:16px;} .mb24{margin-bottom:24px;}
.grow { flex: 1; } .wrap-w { flex-wrap: wrap; }
.scroll-x { overflow-x: auto; }

/* ---------- New Build wizard ---------- */
.nb-scrim { position: fixed; inset: 0; background: rgba(12,14,13,.5); z-index: 95; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .18s ease; }
.nb-modal { width: min(720px, 100%); max-height: 92vh; background: var(--paper); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slidein .22s cubic-bezier(.2,.7,.3,1); }
.nb-head { background: var(--steel-900); color: var(--on-dark); padding: 20px 26px; display: flex; align-items: flex-start; gap: 14px; flex: none; }
.nb-head .x { margin-left: auto; background: transparent; border: 1px solid var(--line-dark-2); color: var(--on-dark-2); width: 32px; height: 32px; font-family: var(--mono); }
.nb-head .x:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.nb-steps { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--card); flex: none; }
.nb-step { flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 8px; border-right: 1px solid var(--line); }
.nb-step:last-child { border-right: 0; }
.nb-step.done { cursor: pointer; }
.nb-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; color: var(--ink-3); flex: none; }
.nb-st-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nb-step.active .nb-dot { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nb-step.active .nb-st-label { color: var(--ink); }
.nb-step.done .nb-dot { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.nb-step.done .nb-st-label { color: var(--ink-2); }
.nb-body { padding: 26px; overflow-y: auto; flex: 1; }
.nb-body .field { margin-bottom: 18px; }
.nb-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); background: var(--card); flex: none; }
@media (max-width: 560px) { .nb-2col { grid-template-columns: 1fr; } .nb-st-label { display: none; } }

/* ---------- Invoice document ---------- */
.gap10 { gap: 10px; }
.inv-scrim { position: fixed; inset: 0; background: rgba(12,14,13,.5); z-index: 96; display: flex; align-items: flex-start; justify-content: center; padding: 28px 20px; overflow-y: auto; animation: fade .18s ease; }
.inv-wrap { width: min(840px, 100%); }
.inv-sheet { background: #fff; color: #1a1a1a; padding: 44px 48px; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.inv-top { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #1a1a1a; padding-bottom: 22px; }
.inv-brand { display: flex; gap: 16px; align-items: flex-start; }
.inv-shop { font-size: 11.5px; line-height: 1.7; color: #555; }
.inv-shop strong { display: block; color: #1a1a1a; font-size: 13px; margin-bottom: 3px; }
.inv-title { text-align: right; }
.inv-meta { margin-left: auto; margin-top: 12px; border-collapse: collapse; font-size: 11.5px; }
.inv-meta td { padding: 3px 0 3px 16px; }
.inv-meta td:first-child { color: #888; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.inv-meta td:last-child { text-align: right; font-family: var(--mono); }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid #e2e2e2; line-height: 1.7; }
.inv-lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #999; margin-bottom: 8px; }
.inv-pickrow { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #e2e2e2; }
.inv-items { width: 100%; border-collapse: collapse; margin-top: 6px; }
.inv-items th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #999; padding: 14px 10px; border-bottom: 1px solid #cfcfcf; }
.inv-items th.r, .inv-items td.r { text-align: right; }
.inv-items td { padding: 16px 10px; border-bottom: 1px solid #ececec; }
.inv-foot { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 26px; }
.inv-terms { font-size: 12px; color: #555; line-height: 1.6; }
.inv-terms p { margin: 0 0 8px; }
.inv-totals { font-size: 13px; }
.inv-totals .flex { padding: 7px 0; }
.inv-total { border-top: 2px solid #1a1a1a; margin-top: 6px; padding-top: 12px !important; font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.inv-thanks { text-align: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid #e2e2e2; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #999; }
.inv-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }

/* QuickBooks integration */
.qbo-card { background: var(--card); border: 1px solid var(--line); }
.qbo-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-left: 3px solid #2CA01C; padding: 16px 20px; margin-bottom: 16px; }
.gap14 { gap: 14px; }
.qbo-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; flex-wrap: wrap; }
.qbo-logo { width: 44px; height: 44px; border-radius: 8px; background: #2CA01C; color: #fff; display: grid; place-items: center; font-family: var(--cond); font-weight: 700; font-size: 20px; flex: none; }
.qbo-body { padding: 0 24px 24px; border-top: 1px solid var(--line); }
.bo-toggle { width: 44px; height: 25px; border-radius: 13px; background: var(--line-2); border: 0; position: relative; transition: .16s; cursor: pointer; flex: none; }
.bo-toggle span { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .16s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.bo-toggle.on { background: var(--accent); }
.bo-toggle.on span { left: 22px; }

@media print {
  body.printing-invoice { background: #fff !important; }
  body.printing-invoice #root > *:not(.invoice-print-root) { display: none !important; }
  body.printing-invoice .inv-scrim { position: static; background: none; padding: 0; display: block; overflow: visible; }
  body.printing-invoice .inv-wrap { width: 100%; }
  body.printing-invoice .no-print, body.printing-invoice .inv-actions { display: none !important; }
  body.printing-invoice .inv-sheet { box-shadow: none; max-width: none; padding: 0; }
}

/* responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 56px 32px; }
  .hero-media { min-height: 320px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-4 .cell:nth-child(2n) { border-right: 0; }
  .grid-4 .cell:nth-child(4n) { border-right: 0; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .gallery, .tiers, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1180px) { .site-staff { display: none; } }
@media (max-width: 1040px) {
  .site-nav { display: none; }
  .lead-row, .reviews, .quote-wrap { grid-template-columns: 1fr; }
  .quote-form { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .bo { grid-template-columns: 1fr; }
  .bo-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .bo-nav { display: flex; flex-wrap: wrap; }
}

/* ============================================================
   CREW & ACCESS / PERMISSIONS
   ============================================================ */
.gap6 { gap: 6px; } .mb12 { margin-bottom: 12px; }

.role-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--line-2); font-weight: 700; }
.role-badge.sm { font-size: 9.5px; padding: 4px 8px; gap: 5px; }
.role-badge .g { font-size: 11px; }
.role-badge.r-owner  { color: var(--ok);   border-color: rgba(47,158,111,.5);  background: rgba(47,158,111,.10); }
.role-badge.r-admin  { color: var(--info); border-color: rgba(63,134,196,.5);  background: rgba(63,134,196,.10); }
.role-badge.r-worker { color: var(--warn); border-color: rgba(201,138,30,.5);  background: rgba(201,138,30,.12); }

.acc-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.acc-card { padding: 22px 22px; border-right: 1px solid var(--line); }
.acc-card:last-child { border-right: 0; }
.acc-card.r-owner  { border-top: 3px solid var(--ok); }
.acc-card.r-admin  { border-top: 3px solid var(--info); }
.acc-card.r-worker { border-top: 3px solid var(--warn); }
.acc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.acc-list li { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; line-height: 1.4; }
.acc-list li::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent-text); transform: translateY(-2px); }

.role-select { padding: 7px 10px; font-size: 12px; max-width: 230px; }
.crew-ava { width: 54px; height: 54px; flex: none; display: grid; place-items: center; background: var(--steel-800); color: var(--on-dark); font-family: var(--mono); font-size: 19px; }
.perm-note { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

/* login operator picker */
.login-roles { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.login-role { background: var(--steel-900); border: 1px solid var(--line-dark-2); padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 9px; transition: .14s; color: var(--on-dark-2); }
.login-role:hover { border-color: var(--on-dark-3); }
.login-role.on { border-color: var(--accent); background: var(--steel-850); }
.lr-ava { width: 40px; height: 40px; display: grid; place-items: center; background: var(--steel-700); color: var(--on-dark); font-family: var(--mono); font-size: 14px; }
.lr-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 14px; color: var(--on-dark); line-height: 1; white-space: nowrap; }
.login-access { border: 1px solid var(--line-dark-2); padding: 14px 16px; margin-top: 16px; background: var(--steel-900); }

/* worker portal */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
.wjob { background: var(--card); border: 1px solid var(--line); padding: 18px 18px; cursor: pointer; transition: .12s; display: flex; flex-direction: column; }
.wjob:hover { border-color: var(--accent-text); box-shadow: var(--shadow); transform: translateY(-1px); }
.wjob-ti { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 21px; line-height: 1.08; margin-bottom: 6px; }
.wjob-tasks { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.wtask { display: flex; align-items: center; gap: 10px; }
.wtick { width: 17px; height: 17px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10px; }
.wtick.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.wtick.active { border-color: var(--accent-text); color: var(--accent-text); }

/* time log form */
.timelog .tl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.timelog.compact .field { margin-bottom: 14px; }

/* copyable link + link rows */
.copylink { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--paper-2); border: 1px solid var(--line); padding: 8px 10px; }
.cl-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--ink-3); }
.cl-url { font-family: var(--mono); font-size: 11.5px; color: var(--accent-text); flex: 1; min-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row { border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 10px; background: var(--card); }

/* invoice stripe block */
.inv-stripe { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid #635BFF; padding: 14px 18px; margin-top: 14px; }
.inv-stripe.stacked { flex-direction: column; align-items: stretch; }

/* public financing apply */
.fin-apply { display: grid; gap: 16px; }
.fin-partners { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.fin-partner { border: 1px solid var(--line); background: var(--card); padding: 22px 22px; }
.fin-cta { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: center; border: 1px solid var(--line); background: var(--card); padding: 30px 32px; }
.fin-form { display: flex; flex-direction: column; gap: 12px; }
.fin-done { background: var(--paper-2); border: 1px solid var(--line); padding: 18px 20px; }
@media (max-width: 900px) {
  .acc-grid, .fin-partners { grid-template-columns: 1fr; }
  .acc-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .fin-cta { grid-template-columns: 1fr; }
  .login-roles { grid-template-columns: 1fr; }
}

/* ============================================================
   SCHEDULER CALENDAR
   ============================================================ */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-nav { width: 30px; height: 30px; border: 1px solid var(--line-2); background: var(--card); font-size: 17px; color: var(--ink-2); display: grid; place-items: center; line-height: 1; }
.cal-nav:hover { border-color: var(--ink-2); color: var(--ink); }
.cal-title { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 22px; min-width: 168px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 13px; }
.cal-legend .li { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.cal-legend .sw { width: 13px; height: 11px; flex: none; }
.cal-legend .sw.dash { background: var(--card); border: 1px dashed var(--info); }

.cal-panel { overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7,1fr); border-bottom: 1px solid var(--line-2); background: var(--paper-2); }
.cal-dow { padding: 9px 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--line); }
.cal-dow:first-child { border-left: 0; }
.cal-week { position: relative; border-top: 1px solid var(--line); }
.cal-week:first-child { border-top: 0; }
.cal-days { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-day { min-height: 108px; border-left: 1px solid var(--line); padding: 6px 8px; }
.cal-day:first-child { border-left: 0; }
.cal-day .num { font-family: var(--mono); font-size: 11px; color: var(--ink-2); letter-spacing: .04em; }
.cal-day.other { background: var(--paper-2); }
.cal-day.other .num { color: var(--ink-3); opacity: .6; }
.cal-day.today { background: var(--accent-soft); }
.cal-day.today .num { color: var(--accent-text); font-weight: 700; }
.cal-overlay { position: absolute; top: 28px; left: 0; right: 0; display: flex; flex-direction: column; gap: 3px; padding: 0 1px; pointer-events: none; }
.cal-lane { display: grid; grid-template-columns: repeat(7,1fr); }
.cal-bar { margin: 0 2px; height: 21px; display: flex; align-items: center; gap: 4px; padding: 0 8px; font-family: var(--cond); font-weight: 600; text-transform: uppercase; font-size: 11.5px; letter-spacing: .02em; line-height: 1; white-space: nowrap; overflow: hidden; cursor: pointer; pointer-events: auto; border: 1px solid rgba(0,0,0,.08); }
.cal-bar:hover { filter: brightness(1.05); box-shadow: var(--shadow); }
.cal-bar .cb-t { overflow: hidden; text-overflow: ellipsis; }
.cal-bar .cap { font-size: 10px; opacity: .85; flex: none; }
.cal-bar .cap.r { margin-left: auto; }
.cal-bar.ol { margin-left: 0; border-left: 0; }
.cal-bar.or { margin-right: 0; border-right: 0; }
.cal-svc { margin: 0 2px; height: 19px; display: flex; align-items: center; gap: 5px; padding: 0 7px; font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; color: var(--info); border: 1px dashed var(--info); background: var(--card); white-space: nowrap; overflow: hidden; pointer-events: auto; cursor: default; }
.cal-svc .dot { background: var(--info); width: 6px; height: 6px; }

/* ============================================================
   TOOLING INVENTORY + BARCODE
   ============================================================ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 14px; }
.tool-card { background: var(--card); border: 1px solid var(--line); padding: 16px 16px; cursor: pointer; transition: .12s; display: flex; flex-direction: column; }
.tool-card:hover { border-color: var(--accent-text); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-card .tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.tool-card .tc-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 18px; line-height: 1.14; }
.tool-card .tc-tag { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; margin-top: 5px; }
.tool-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; }
.tool-meta .k { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tool-meta .v { font-size: 13px; margin-top: 2px; }

/* barcode */
.barcode { display: flex; align-items: stretch; height: 60px; background: #fff; padding: 7px 10px; border: 1px solid var(--line); width: max-content; max-width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.barcode i { display: block; height: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.barcode i.b { background: #111; }
.barcode i.q { background: #fff; }
.barcode-val { font-family: var(--mono); letter-spacing: .34em; text-align: center; font-size: 12px; margin-top: 6px; color: var(--ink-2); }
.barcode-wrap { display: inline-flex; flex-direction: column; }

/* tool drawer log */
.mlog { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mlog .mdot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 4px; flex: none; }
.mlog:last-child { border-bottom: 0; }

/* printable tool label */
.tool-label { background: #fff; color: #111; border: 1px solid #ddd; padding: 20px 24px; width: max-content; max-width: 100%; }
.tool-label .tl-name { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1; }
.tool-label .tl-sub { font-family: var(--mono); font-size: 11px; color: #666; margin: 6px 0 14px; }
@media print {
  body.printing-label * { visibility: hidden !important; }
  body.printing-label .tool-label, body.printing-label .tool-label * { visibility: visible !important; }
  body.printing-label .tool-label { position: fixed !important; top: 24px; left: 24px; box-shadow: none !important; border-color: #ccc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.printing-label .no-print { display: none !important; }
}

/* ============================================================
   INVOICE — editable line items + evidence
   ============================================================ */
.inv-edit { border: 0; background: transparent; font-family: var(--sans); font-size: 13.5px; color: #1a1a1a; width: 100%; padding: 2px 0; }
.inv-edit:focus { outline: none; background: #f3f6ff; }
.inv-edit.num { text-align: right; font-family: var(--mono); -moz-appearance: textfield; }
.inv-edit.num::-webkit-outer-spin-button, .inv-edit.num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inv-items td.act { width: 26px; }
.inv-del { border: 0; background: transparent; color: #c0392b; font-size: 13px; padding: 2px 4px; }
.inv-addrow { padding: 12px 10px; }
.inv-addrow .btn { font-size: 10px; }

.inv-evidence { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 16px 18px; margin-top: 14px; }
.inv-evidence .ev-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ev-drop { border: 1px dashed var(--line-2); padding: 16px; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--card); cursor: pointer; transition: .14s; }
.ev-drop:hover, .ev-drop.over { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 10px; margin-top: 12px; }
.ev-item { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--card); padding: 8px 10px; position: relative; }
.ev-thumb { width: 40px; height: 40px; flex: none; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); display: grid; place-items: center; font-family: var(--mono); font-size: 9px; color: var(--ink-3); }
.ev-name { font-size: 12px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-sub { font-family: var(--mono); font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }
.ev-x { position: absolute; top: 4px; right: 6px; border: 0; background: transparent; color: var(--ink-3); font-size: 12px; }
.ev-x:hover { color: var(--bad); }
.ev-email { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ev-email .input { flex: 1; min-width: 120px; }
@media (max-width: 760px) { .cal-day { min-height: 88px; } }

/* labour hours add-form */
.lab-form { display: grid; grid-template-columns: 1.5fr 1.3fr .9fr 1fr; gap: 14px; }
@media (max-width: 900px) { .lab-form { grid-template-columns: 1fr 1fr; } }

/* live stage selector (dashboard / board → customer tracker) */
.stage-select { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 0; cursor: pointer; max-width: 170px; }
.stage-select:hover { border-color: var(--accent-text); color: var(--ink); }
.stage-select:focus { outline: none; border-color: var(--accent-text); }

/* tooling label sheet (batch print) */
.tool-pick { width: 17px; height: 17px; flex: none; accent-color: var(--accent-text); cursor: pointer; }
.tool-card.picked { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.label-sheet .tool-label { width: 100%; }
@media print {
  body.printing-sheet * { visibility: hidden !important; }
  body.printing-sheet .label-sheet, body.printing-sheet .label-sheet * { visibility: visible !important; }
  body.printing-sheet .label-sheet { position: fixed !important; inset: 0 !important; background: #fff !important; display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8mm !important; padding: 12mm !important; align-content: start !important; }
  body.printing-sheet .label-sheet .tool-label { position: static !important; width: 100% !important; break-inside: avoid; }
  body.printing-sheet .no-print { display: none !important; }
}

/* ============================================================
   LIVE INVOICE PAYMENT PAGE
   ============================================================ */
.pay-page { min-height: 100vh; background: var(--paper-2); }
.pay-bar { background: var(--steel-900); display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.pay-brand { cursor: pointer; display: inline-flex; }
.pay-secure { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--on-dark-3); }
.pay-wrap { max-width: 620px; margin: 0 auto; padding: 36px 20px 60px; }
.pay-card { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 34px 34px; }
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 20px; }
.pay-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-2); }
.pay-parties strong { color: var(--ink); }
.pay-build { font-size: 11px; letter-spacing: .08em; color: var(--ink-3); padding: 14px 0; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.pay-items { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pay-items th { text-align: left; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 12px 6px; border-bottom: 1px solid var(--line-2); }
.pay-items th.r, .pay-items td.r { text-align: right; }
.pay-items td { padding: 13px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pay-totals { margin: 18px 0 4px; margin-left: auto; max-width: 280px; font-size: 13.5px; }
.pay-totals .flex { padding: 6px 0; }
.pay-total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px !important; font-family: var(--cond); font-weight: 700; font-size: 20px; text-transform: uppercase; }
.pay-action { margin-top: 24px; }
.pay-btn { width: 100%; border: 0; background: #635BFF; color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 18px; transition: .15s; }
.pay-btn:hover { filter: brightness(1.07); }
.pay-btn.busy { opacity: .7; cursor: progress; }
.pay-cards { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.pay-cards .pc { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--ink-3); }
.pay-finance { width: 100%; margin-top: 14px; background: transparent; border: 1px solid var(--line-2); padding: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pay-finance:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pay-done { text-align: center; padding: 30px 10px 8px; }
.pay-check { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 32px; }
.pay-foot { text-align: center; margin-top: 22px; font-size: 10px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; }
@media (max-width: 520px) { .pay-card { padding: 22px 18px; } .pay-parties { grid-template-columns: 1fr; } }

/* ============================================================
   CAMERA SCANNER MODAL
   ============================================================ */
.scan-scrim { position: fixed; inset: 0; background: rgba(10,12,11,.74); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade .18s ease; }
.scan-modal { width: min(440px, 100%); background: var(--steel-950, #14171a); border: 1px solid var(--line-dark-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; max-height: 94vh; overflow: hidden; }
.scan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line-dark-2); }
.scan-head .x { width: 32px; height: 32px; border: 1px solid var(--line-dark-2); background: transparent; color: var(--on-dark-2); font-family: var(--mono); flex: none; }
.scan-head .x:hover { color: var(--on-dark); border-color: var(--on-dark-3); }
.scan-stage { position: relative; aspect-ratio: 4/3; width: 100%; background: #000; overflow: hidden; display: grid; place-items: center; }
.scan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-reticle { position: absolute; inset: 14% 12%; border: 2px solid rgba(255,255,255,.85); border-radius: 4px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.28); overflow: hidden; }
.scan-reticle::before, .scan-reticle::after, .scan-reticle .scan-line { pointer-events: none; }
.scan-reticle::before, .scan-reticle::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid var(--accent); }
.scan-reticle::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.scan-reticle::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.scan-modal .scan-reticle .scan-line { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scansweep 2s ease-in-out infinite; }
@keyframes scansweep { 0%,100% { top: 4%; } 50% { top: 96%; } }
.scan-fallback { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; color: var(--on-dark-2); padding: 20px; }
.scan-foot { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.scan-hint { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--on-dark-3); min-height: 14px; line-height: 1.5; }
.scan-manual { display: flex; gap: 8px; }
.scan-manual .input { flex: 1; background: var(--steel-900); border-color: var(--line-dark-2); color: var(--on-dark); }
.scan-quick { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.scan-chip { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 4px 8px; border: 1px solid var(--line-dark-2); background: var(--steel-900); color: var(--on-dark-2); }
.scan-chip:hover { border-color: var(--accent); color: var(--accent); }

/* scan window */
.scan-window { position: relative; height: 120px; border: 1px solid var(--line-dark-2); background: var(--steel-900); display: grid; place-items: center; overflow: hidden; }
.scan-window::before, .scan-window::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); }
.scan-window::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.scan-window::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.scan-window span { color: var(--on-dark-3); }
.scan-line { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: scanmove 2.2s ease-in-out infinite; }
@keyframes scanmove { 0%,100% { top: 24px; } 50% { top: 96px; } }

/* For Sale — car-sales multi-image modal */
.photo-badge { position: absolute; left: 10px; bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(16,18,17,.78); color: var(--on-dark); padding: 5px 9px; }
.unit-scrim { position: fixed; inset: 0; background: rgba(12,14,13,.6); z-index: 96; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .18s ease; }
.unit-modal { width: min(1080px, 100%); max-height: 92vh; overflow-y: auto; background: var(--card); display: grid; grid-template-columns: 1.45fr 1fr; box-shadow: var(--shadow-lg); position: relative; }
.unit-x { position: absolute; top: 12px; right: 12px; z-index: 4; width: 34px; height: 34px; border: 0; background: rgba(16,18,17,.7); color: #fff; font-family: var(--mono); }
.unit-x:hover { background: var(--ink); }
.unit-gallery { background: var(--paper-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.unit-main { position: relative; background: var(--steel-900); }
.unit-main image-slot { display: block; }
.unit-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border: 0; background: rgba(16,18,17,.6); color: #fff; font-size: 22px; display: grid; place-items: center; }
.unit-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.unit-arrow.l { left: 10px; } .unit-arrow.r { right: 10px; }
.unit-count { position: absolute; left: 12px; bottom: 12px; z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: rgba(16,18,17,.78); color: var(--on-dark); padding: 5px 10px; }
.unit-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.unit-thumb { width: 92px; flex: none; border: 2px solid transparent; cursor: pointer; transition: .12s; }
.unit-thumb.on { border-color: var(--accent-text); }
.unit-thumb:hover { border-color: var(--line-2); }
.unit-info { padding: 30px 30px; }
.unit-price { margin: 16px 0 16px; }
.unit-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.unit-specs > div { background: var(--card); padding: 11px 13px; }
.unit-specs .sk { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.unit-specs .sv { font-size: 14px; margin-top: 3px; font-weight: 600; }
.unit-inq { border-top: 1px solid var(--line); padding-top: 18px; }
@media (max-width: 820px) { .unit-modal { grid-template-columns: 1fr; } .unit-gallery { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ============================================================
   TASK 3 — MOBILE HAMBURGER NAV
   ============================================================ */
.hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  margin-left: 14px;
  flex: none;
  transition: .14s;
}
.hamburger:hover { border-color: var(--ink-2); background: var(--paper-2); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px;
    gap: 14px;
    z-index: 60;
    box-shadow: 0 8px 24px rgba(12,14,13,.10);
  }
  .site-nav.open a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .site-nav.open a:last-child { border-bottom: 0; }
  .site-nav.open a:hover, .site-nav.open a.active { color: var(--ink); }
  .hamburger { display: inline-flex; }
  /* hide desktop CTA button on very small screens to give room */
  .site-cta .btn.sm { display: none; }
}

/* ============================================================
   TASK 4 — STICKY MOBILE BOTTOM CTA BAR
   ============================================================ */
.mobile-cta { display: none; }

@media (max-width: 860px) {
  .mobile-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    border-top: 1px solid var(--line-dark-2);
  }
  .mobile-cta-call {
    display: flex;
    align-items: center; justify-content: center;
    background: var(--steel-850);
    color: var(--on-dark);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 16px 12px;
    border: 0;
    border-right: 1px solid var(--line-dark-2);
    transition: .14s;
    text-decoration: none;
  }
  .mobile-cta-call:hover { background: var(--steel-800); color: var(--on-dark); }
  .mobile-cta-quote {
    display: flex;
    align-items: center; justify-content: center;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 16px 12px;
    border: 0;
    transition: .14s;
    cursor: pointer;
  }
  .mobile-cta-quote:hover { filter: brightness(1.07); }
  /* bottom padding so footer content isn't hidden behind the bar */
  .mobile-footer-pad { padding-bottom: 64px; }
}

/* ============================================================
   TASK 5 — HERO TRUST ROW (Google rating + trust chips)
   ============================================================ */
.hero-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-google {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: .14s;
}
.hero-google:hover { color: var(--on-dark); }
.hero-stars {
  color: #fbbc04; /* Google gold */
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1;
}
.hero-chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  border: 1px solid var(--line-dark-2);
  padding: 4px 10px;
  white-space: nowrap;
}

/* ============================================================
   TASK 6 — ANIMATED CROSSFADE CTA BAND
   ============================================================ */
.cta-band {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-slides {
  position: absolute;
  inset: 0;
}
.cta-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 25s infinite;
}
.cta-slide-1 { animation-delay: 0s; }
.cta-slide-2 { animation-delay: 5s; }
.cta-slide-3 { animation-delay: 10s; }
.cta-slide-4 { animation-delay: 15s; }
.cta-slide-5 { animation-delay: 20s; }

@keyframes slideFade {
  0%, 18%  { opacity: 1; }
  28%, 100% { opacity: 0; }
}

/* Reduced motion: show only first slide, no animation */
@media (prefers-reduced-motion: reduce) {
  .cta-slide { animation: none; opacity: 0; }
  .cta-slide-1 { opacity: 1; }
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,12,11,.62) 0%, rgba(10,12,11,.78) 100%);
  z-index: 1;
}
.cta-band-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 80px 32px;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .cta-band { min-height: 380px; }
  .cta-band-content { padding: 60px 24px 80px; }
}

/* ============================================================
   HERO PHOTO SLIDESHOW
   ============================================================ */
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideFade 25s infinite;
}
.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 5s; }
.hero-slide-3 { animation-delay: 10s; }
.hero-slide-4 { animation-delay: 15s; }
.hero-slide-5 { animation-delay: 20s; }

/* Reduced motion: show only first slide, no animation */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide-1 { opacity: 1; }
}
