/* ==========================================================================
   Electrical King — framework stylesheet  (v2, original design language)
   Light "industrial / datasheet" theme · ink + electric-yellow + hazard motif.
   Archivo (display) · IBM Plex Sans (body) · IBM Plex Mono (labels).
   Deliberately distinct from the dark/luxury/serif One Stop Mechanical template.
   ========================================================================== */

:root {
    --paper:   #f3f2ec;   /* warm off-white page */
    --paper-2: #eae8df;   /* alt band */
    --white:   #ffffff;
    --ink:     #15171c;   /* near-black text + bold borders */
    --ink-2:   #3a3d44;
    --muted:   #6b6f77;
    --hair:    rgba(21,23,28,0.14);
    --hair-2:  rgba(21,23,28,0.30);

    --volt:    #ffd60a;   /* electric yellow — the "current" */
    --volt-d:  #e0bb00;
    --volt-soft:#fff4c2;
    --gold:    #e8b500;   /* amber accent used by the owner-tool pages */
    --blue:    #1f5fff;   /* electric cobalt — secondary / links */
    --blue-d:  #0e44cf;

    --display: "Archivo", system-ui, -apple-system, Arial, sans-serif;
    --body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
    --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --container: 1200px;
    --bw:      2px;       /* standard bold border width */
    --radius:  3px;
    --t:       180ms cubic-bezier(.2,.7,.2,1);

    --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem;
    --s6:2rem; --s7:3rem; --s8:4rem; --s9:6rem; --s10:8rem;

    /* hazard stripe (reused) */
    --hazard: repeating-linear-gradient(45deg, var(--ink) 0 12px, var(--volt) 12px 24px);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .4em; text-transform: uppercase; }
h3 { font-weight: 700; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
strong { font-weight: 600; }
::selection { background: var(--volt); color: var(--ink); }

.mono { font-family: var(--mono); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--volt); padding: .5rem 1rem; z-index: 300; }
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* hazard divider element */
.hazard-bar { height: 10px; background: var(--hazard); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--display); font-weight: 700; font-size: .85rem;
    letter-spacing: .04em; line-height: 1; text-transform: uppercase;
    padding: .95rem 1.4rem; border-radius: var(--radius);
    border: var(--bw) solid var(--ink); color: var(--white);
    background: var(--ink); cursor: pointer; transition: all var(--t);
    white-space: nowrap;
}
.btn:hover { background: var(--volt); color: var(--ink); border-color: var(--ink); }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--ink); color: var(--volt); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: .6rem 1rem; font-size: .76rem; }
.btn .arr { transition: transform var(--t); font-family: var(--body); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }
.topbar .container { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; }
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--volt); }
.topbar .tb-spark { color: var(--volt); }
.topbar .tb-right { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
@media (max-width: 620px){ .topbar .tb-hide { display: none; } }

/* ---------- Masthead (solid, bold-bordered, NOT translucent) ---------- */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: var(--bw) solid var(--ink); }
.mast-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand-badge { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: .01em; line-height: 1; text-transform: uppercase; display:inline-flex; gap:.3em; }
.brand-king { background: var(--volt); padding: .08em .28em; }
.site-nav { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.site-nav > a { font-family: var(--mono); font-size: .8rem; letter-spacing: .02em; color: var(--ink-2); transition: color var(--t); position: relative; white-space: nowrap; }
.site-nav > a:not(.btn):hover { color: var(--ink); }
.site-nav > a.is-current { color: var(--ink); }
.site-nav > a.is-current::after { content:""; position:absolute; left:0; right:0; bottom:-7px; height:3px; background: var(--volt); }
.nav-cta { margin-left: .3rem; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; background: var(--ink); border: var(--bw) solid var(--ink); border-radius: var(--radius); cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--volt); transition: var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: var(--bw) solid var(--ink);
        padding: .25rem 1.5rem 1.25rem; margin-left: 0;
        clip-path: inset(0 0 100% 0); transition: clip-path var(--t); pointer-events: none;
    }
    .site-nav.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
    .site-nav > a { padding: .95rem 0; border-bottom: 1px solid var(--hair); font-size: .95rem; }
    .site-nav > a.is-current::after { display: none; }
    .nav-cta { margin: 1rem 0 0; justify-content: center; }
}

/* ---------- Section primitives ---------- */
.section { padding: var(--s9) 0; }
.section-sm { padding: var(--s8) 0; }
.band { background: var(--paper-2); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.ink-band { background: var(--ink); color: var(--paper); }
.ink-band h1,.ink-band h2,.ink-band h3 { color: var(--white); }
.ink-band .muted { color: #a7abb3; }

/* label / kicker — mono "spec tag" */
.label { display:inline-flex; align-items:center; gap:.5rem; font-family: var(--mono); font-size:.78rem; font-weight:500; letter-spacing:.06em; color: var(--ink-2); margin-bottom: 1rem; }
.label::before { content:"//"; color: var(--volt-d); font-weight:700; }
.ink-band .label { color: var(--volt); }
.ink-band .label::before { color: var(--volt); }

/* section head: index label + big headline + rule */
.shead { display:grid; gap:.5rem; max-width: 820px; margin-bottom: var(--s7); }
.shead h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.shead p { color: var(--ink-2); font-size: 1.05rem; max-width: 640px; }
.rule { height: var(--bw); background: var(--ink); border:0; margin: 0 0 var(--s6); }
.rule-thin { height: 1px; background: var(--hair); border:0; margin: var(--s6) 0; }

.display { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .98; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--ink-2); }
.center { text-align:center; margin-left:auto; margin-right:auto; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: var(--bw) solid var(--ink);
    background:
        linear-gradient(100deg, var(--paper) 0%, var(--paper) 13%, rgba(243,242,236,0.84) 33%, rgba(243,242,236,0.40) 57%, rgba(243,242,236,0.06) 100%),
        url("../img/oliver-hero.jpg");
    background-size: cover; background-position: center right; background-repeat: no-repeat; }
.hero::before { /* faint blueprint dots over the text side */
    content:""; position:absolute; inset:0; z-index:0;
    background-image: radial-gradient(var(--hair) 1.2px, transparent 1.2px);
    background-size: 26px 26px; opacity:.4; pointer-events:none;
    mask-image: linear-gradient(180deg,#000,transparent 90%);
}
/* Oliver / South Okanagan scenery behind the hero (Skaha Lake, golden hour).
   Lighter overlay — more scenery shows; paper gradient still keeps the headline
   legible. Single-column on mobile fades top→down; night mode uses a dark gradient. */
@media (max-width: 939px){
    .hero { background:
        linear-gradient(180deg, rgba(243,242,236,0.90) 0%, rgba(243,242,236,0.64) 50%, rgba(243,242,236,0.28) 100%),
        url("../img/oliver-hero.jpg");
        background-size: cover; background-position: center; background-repeat: no-repeat; }
}
[data-theme="dark"] .hero { background:
        linear-gradient(100deg, #121419 0%, #121419 13%, rgba(18,20,25,0.84) 33%, rgba(18,20,25,0.40) 57%, rgba(18,20,25,0.08) 100%),
        url("../img/oliver-hero.jpg");
    background-size: cover; background-position: center right; background-repeat: no-repeat; }
@media (max-width: 939px){
    [data-theme="dark"] .hero { background:
        linear-gradient(180deg, rgba(18,20,25,0.90) 0%, rgba(18,20,25,0.66) 50%, rgba(18,20,25,0.32) 100%),
        url("../img/oliver-hero.jpg");
        background-size: cover; background-position: center; background-repeat: no-repeat; }
}
.hero-grid { position: relative; z-index: 1; display:grid; gap: var(--s7); padding: var(--s9) 0 var(--s8); }
@media (min-width: 940px){ .hero-grid { grid-template-columns: 1.55fr .95fr; align-items: start; gap: var(--s8); } }
.hero h1 { margin: .2rem 0 1.2rem; }
.hero .lead { max-width: 600px; margin-bottom: 2rem; }
.hero-actions { display:flex; flex-wrap:wrap; gap: .9rem; }
.hero-spec { font-family: var(--mono); font-size:.82rem; color: var(--ink-2); margin-top: 2rem; display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; }
.hero-spec span { display:inline-flex; align-items:center; gap:.45rem; }
.hero-spec span::before { content:"⚡"; color: var(--volt-d); }

/* hero side: bordered "quick card" */
.hero-card { border: var(--bw) solid var(--ink); background: var(--white); border-radius: var(--radius); overflow:hidden; box-shadow: 6px 6px 0 var(--ink); }
.hero-card .hc-top { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size:.78rem; letter-spacing:.04em; padding:.7rem 1.1rem; display:flex; justify-content:space-between; align-items:center; }
.hero-card .hc-top b { color: var(--volt); font-weight:600; }
.hero-card .hc-body { padding: 1.3rem 1.3rem 1.5rem; }
.hero-card h3 { font-size:1.5rem; margin-bottom:.5rem; }
.hero-card p { color: var(--ink-2); font-size:.95rem; }
.hc-list { list-style:none; margin:.4rem 0 1.2rem; padding:0; display:grid; gap:.5rem; }
.hc-list li { font-family: var(--mono); font-size:.82rem; color: var(--ink); display:flex; gap:.55rem; }
.hc-list li::before { content:"+"; color: var(--volt-d); font-weight:700; }

/* ---------- Marquee strip ---------- */
.strip { background: var(--ink); color: var(--paper); border-bottom: var(--bw) solid var(--ink); overflow:hidden; }
.strip .container { display:flex; flex-wrap:wrap; gap:.6rem 2rem; align-items:center; padding-top:.9rem; padding-bottom:.9rem; font-family:var(--mono); font-size:.84rem; letter-spacing:.03em; }
.strip .s-lab { color: var(--volt); }
.strip .s-items { display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; margin-left:auto; }
.strip .s-items span { display:inline-flex; align-items:center; gap:.45rem; }
.strip .s-items span::before { content:"●"; color: var(--volt); font-size:.6em; }

/* ---------- Spec list (numbered services list) ---------- */
.spec-list { border-top: var(--bw) solid var(--ink); }
.spec-row { display:grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.4rem; align-items:start;
    padding: 1.7rem .2rem; border-bottom: 1px solid var(--hair); transition: background var(--t); }
@media (min-width:760px){ .spec-row { grid-template-columns: 5rem 1fr 12rem; gap: 2rem; align-items:center; } }
.spec-row:hover { background: var(--white); }
.spec-no { font-family: var(--mono); font-weight:700; font-size:1.1rem; color: var(--volt-d); }
.spec-main h3 { font-size: clamp(1.4rem,2.6vw,1.9rem); margin-bottom:.3rem; }
.spec-main p { color: var(--ink-2); margin:0; font-size:.97rem; }
.spec-tags { display:flex; flex-wrap:wrap; gap:.4rem; }
.spec-tags span { font-family:var(--mono); font-size:.7rem; border:1px solid var(--hair-2); border-radius:999px; padding:3px 8px; color:var(--ink-2); }

/* ---------- Boxed grid cards ---------- */
.boxes { display:grid; gap: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow:hidden; grid-template-columns: 1fr; }
@media (min-width: 640px){ .boxes-2 { grid-template-columns: repeat(2,1fr); } .boxes-3 { grid-template-columns: repeat(2,1fr); } .boxes-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px){ .boxes-3 { grid-template-columns: repeat(3,1fr); } .boxes-4 { grid-template-columns: repeat(4,1fr); } }
.box { padding: 1.7rem 1.6rem; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--white); transition: background var(--t), color var(--t); position:relative; }
.box:hover { background: var(--ink); color: var(--paper); }
.box:hover .b-tag, .box:hover h3 { color: var(--white); }
.box:hover .box-link { color: var(--volt); }
.box .b-no { font-family:var(--mono); font-size:.78rem; color: var(--volt-d); display:block; margin-bottom:.7rem; }
.box .b-ic { width:38px; height:38px; color: var(--ink); margin-bottom:1rem; transition: color var(--t); }
.box:hover .b-ic { color: var(--volt); }
.box .b-ic svg { width:100%; height:100%; }
.box .b-tag { font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; color: var(--ink-2); display:block; margin-bottom:.35rem; }
.box h3 { font-size:1.3rem; margin-bottom:.45rem; }
.box p { color: var(--ink-2); margin:0; font-size:.93rem; }
.box:hover p { color:#cfd2d8; }
.box-link { display:inline-flex; align-items:center; gap:.4rem; margin-top:1rem; font-family:var(--mono); font-size:.8rem; color: var(--blue-d); }

/* ---------- Feature rows (replaces split-media) ---------- */
.frow { display:grid; gap: var(--s5); padding: var(--s7) 0; border-top: var(--bw) solid var(--ink); }
@media (min-width: 880px){ .frow { grid-template-columns: .9fr 1.1fr; gap: var(--s8); align-items:center; } .frow.flip > .frow-body { order:2; } }
.frow-head h2 { font-size: clamp(1.7rem,3.4vw,2.6rem); }
.frow-body p { color: var(--ink-2); }
.ticklist { list-style:none; padding:0; margin:0; display:grid; gap:.8rem; }
.ticklist li { display:flex; gap:.75rem; align-items:flex-start; color: var(--ink); }
.ticklist li::before { content:""; flex-shrink:0; width:14px; height:14px; margin-top:.35rem; background: var(--volt); border: 1.5px solid var(--ink); }
.ticklist a { color: var(--blue-d); text-decoration: underline; text-underline-offset:2px; }

/* dashed technical "photo" placeholder */
.shot { border: var(--bw) dashed var(--hair-2); border-radius: var(--radius); min-height: 280px; background: var(--paper-2);
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.8rem; color: var(--muted); }
.shot svg { width: 56px; height:56px; color: var(--hair-2); }
.shot .shot-cap { font-family:var(--mono); font-size:.74rem; letter-spacing:.06em; text-transform:uppercase; }

/* ---------- Ribbon stats (ink band) ---------- */
.ribbon { display:grid; gap: 0; grid-template-columns: repeat(2,1fr); }
@media (min-width:880px){ .ribbon { grid-template-columns: repeat(4,1fr); } }
.ribbon .r-cell { padding: 2rem 1.4rem; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.ribbon strong { display:block; font-family: var(--display); font-weight:800; font-size: clamp(2rem,5vw,3rem); color: var(--volt); line-height:1; }
.ribbon span { font-family: var(--mono); font-size:.78rem; color:#b4b8c0; letter-spacing:.02em; }

/* ---------- Steps ---------- */
.steps { display:grid; gap: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); overflow:hidden; }
@media (min-width:760px){ .steps { grid-template-columns: repeat(4,1fr); } }
.step { padding: 1.6rem 1.4rem; background: var(--white); border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.step .step-no { font-family: var(--mono); font-weight:700; font-size:.95rem; color: var(--volt-d); }
.step h3 { font-size:1.2rem; margin:.5rem 0 .4rem; }
.step p { color: var(--ink-2); font-size:.92rem; margin:0; }

/* ---------- Badges (credentials) ---------- */
.badges { display:grid; gap:0; border: var(--bw) solid var(--ink); border-radius:var(--radius); overflow:hidden; grid-template-columns:repeat(2,1fr); }
@media (min-width:760px){ .badges { grid-template-columns:repeat(4,1fr); } }
.badge { background:var(--white); padding:1.5rem 1.2rem; text-align:center; border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.badge svg { width:32px; height:32px; color:var(--ink); margin:0 auto .7rem; }
.badge strong { display:block; font-family:var(--display); font-weight:700; font-size:1rem; text-transform:uppercase; margin-bottom:.15rem; }
.badge span { font-family:var(--mono); font-size:.74rem; color:var(--muted); }

/* ---------- Sectors / 4-grid ---------- */
.sectors { display:grid; gap:0; border:var(--bw) solid var(--ink); border-radius:var(--radius); overflow:hidden; grid-template-columns:repeat(2,1fr); }
@media (min-width:760px){ .sectors { grid-template-columns:repeat(4,1fr); } }
.sectors > div { background:var(--white); padding:1.6rem 1.3rem; border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.sectors h4 { font-family:var(--display); font-weight:700; font-size:1.1rem; text-transform:uppercase; margin:0 0 .25rem; }
.sectors p { margin:0; color:var(--muted); font-size:.85rem; }

/* ---------- Areas ---------- */
.areas { display:grid; gap:0; border:var(--bw) solid var(--ink); border-radius:var(--radius); overflow:hidden; grid-template-columns:1fr; }
@media (min-width:680px){ .areas { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .areas { grid-template-columns:repeat(3,1fr); } }
.area { background:var(--white); padding:1.5rem 1.5rem; border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.area .area-tag { font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; color:var(--blue-d); }
.area h3 { font-size:1.25rem; margin:.3rem 0; }
.area p { color:var(--ink-2); font-size:.92rem; margin:0; }
.area.primary { background: var(--volt-soft); }
.area.primary .area-tag { color: var(--ink); }

/* ---------- Projects ---------- */
.proj-grid { display:grid; gap:1.25rem; grid-template-columns:1fr; }
@media (min-width:640px){ .proj-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .proj-grid { grid-template-columns:repeat(3,1fr); } }
.project { display:block; border:var(--bw) solid var(--ink); border-radius:var(--radius); background:var(--white); transition: transform var(--t), box-shadow var(--t); }
.project:hover { transform: translate(-3px,-3px); box-shadow: 6px 6px 0 var(--ink); }
.project .thumb { aspect-ratio: 16/10; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); display:flex; align-items:center; justify-content:center; color: var(--hair-2); }
.project .thumb svg { width:54px; height:54px; }
.project .pbody { padding: 1.2rem 1.3rem; }
.project .ptag { font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; color:var(--blue-d); }
.project h3 { font-size:1.25rem; margin:.3rem 0; }
.project p { color:var(--ink-2); font-size:.9rem; margin:0; }
.proj-result { display:flex; gap:.5rem; align-items:flex-start; color:var(--ink); font-size:.85rem; font-family:var(--mono); margin-top:.9rem; }
.proj-result svg { width:15px; height:15px; flex-shrink:0; margin-top:2px; color: var(--volt-d); }

/* ---------- Testimonials ---------- */
.quotes { display:grid; gap:1.25rem; grid-template-columns:1fr; }
@media (min-width:880px){ .quotes-3 { grid-template-columns:repeat(3,1fr); } }
.quote { background:var(--white); border:var(--bw) solid var(--ink); border-radius:var(--radius); padding:1.7rem 1.6rem; position:relative; }
.quote::before { content:"“"; font-family:var(--display); font-weight:800; font-size:3.2rem; line-height:.6; color:var(--volt-d); display:block; margin-bottom:.4rem; }
.quote blockquote { margin:0 0 1rem; font-size:1.05rem; line-height:1.45; color:var(--ink); }
.quote .who { font-family:var(--mono); color:var(--muted); font-size:.8rem; }
.quote .sample-tag { position:absolute; top:1rem; right:1rem; font-family:var(--mono); font-size:.6rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); border:1px solid var(--hair-2); border-radius:999px; padding:2px 8px; }

/* ---------- CTA band ---------- */
.cta { background: var(--volt); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); text-align:center; padding: var(--s9) 0; }
.cta h2 { font-size: clamp(2rem,5.5vw,3.4rem); }
.cta p { color: var(--ink); max-width: 560px; margin: 0 auto 1.8rem; font-size:1.05rem; }

/* ---------- Photos (framed, on-brand) ---------- */
/* Bold-bordered photo that matches the datasheet card language; drops into
   .frow-body in place of the dashed .shot placeholders. */
.photo-frame { position:relative; border: var(--bw) solid var(--ink); border-radius: var(--radius);
    overflow:hidden; background: var(--paper-2); box-shadow: 6px 6px 0 var(--ink); }
.photo-frame img { width:100%; height:100%; object-fit:cover; aspect-ratio: 4/3; display:block;
    transition: transform var(--t); }
.photo-frame:hover img { transform: scale(1.03); }
.photo-frame .ph-cap { position:absolute; left:0; bottom:0; font-family:var(--mono); font-size:.72rem;
    letter-spacing:.05em; text-transform:uppercase; color:var(--paper);
    background: var(--ink); padding:.4rem .75rem; }
.photo-frame .ph-cap::before { content:"⚡ "; color: var(--volt); }

/* Full-width landscape band with ink overlay + statement text. */
.photoband { position:relative; overflow:hidden; background: var(--ink);
    border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.photoband > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.92; }
.photoband::after { content:""; position:absolute; inset:0;
    background: linear-gradient(90deg, rgba(21,23,28,.88), rgba(21,23,28,.5) 55%, rgba(21,23,28,.18)); }
.photoband .pb-inner { position:relative; z-index:2; padding: clamp(3rem,8vw,6rem) 0; }
.photoband .label { color: var(--volt); }
.photoband .label::before { color: var(--volt); }
.photoband h2 { color: var(--white); font-size: clamp(1.8rem,4.6vw,3rem); max-width: 18ch; }
.photoband p { color: var(--paper); max-width: 46ch; font-size:1.05rem; margin:0; }
.photoband .pb-loc { position:absolute; right:0; bottom:0; z-index:3; font-family:var(--mono);
    font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink);
    background: var(--volt); padding:.4rem .8rem; }

/* ---------- Forms / intake ---------- */
.form-grid { display:grid; gap: var(--s7); }
@media (min-width:900px){ .form-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s8); } }
.field { display:block; margin-bottom: 1.1rem; }
.field label { display:block; font-family:var(--mono); font-size:.78rem; letter-spacing:.03em; color: var(--ink-2); margin-bottom:.4rem; }
.field input, .field select, .field textarea {
    width:100%; background: var(--white); border:var(--bw) solid var(--ink); color: var(--ink);
    border-radius: var(--radius); padding:.8rem .9rem; font: inherit; transition: box-shadow var(--t);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline:none; box-shadow: 4px 4px 0 var(--volt); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position:absolute; left:-9999px; }

/* project-type chooser */
.choices { display:grid; gap:.7rem; grid-template-columns:1fr; margin-bottom: 1.2rem; }
@media (min-width:560px){ .choices { grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px){ .choices { grid-template-columns:repeat(3,1fr); } }
.choice { position:relative; }
.choice input { position:absolute; opacity:0; inset:0; cursor:pointer; }
.choice label { display:flex; flex-direction:column; gap:.2rem; height:100%; cursor:pointer; background:var(--white);
    border:var(--bw) solid var(--ink); border-radius:var(--radius); padding:.85rem .9rem; transition: all var(--t); }
.choice .ct { font-family:var(--display); font-weight:700; font-size:.98rem; text-transform:uppercase; }
.choice .cd { font-family:var(--mono); font-size:.74rem; color:var(--muted); line-height:1.35; }
.choice input:checked + label { background: var(--volt); box-shadow: 4px 4px 0 var(--ink); }
.choice input:checked + label .cd { color: var(--ink-2); }
.choice label:hover { transform: translateY(-2px); }
.intake-hint { font-family:var(--mono); font-size:.84rem; color: var(--ink); background: var(--volt-soft); border-left:4px solid var(--volt-d); padding:.7rem .9rem; margin:-.2rem 0 1.3rem; }

.aside-box { border:var(--bw) solid var(--ink); border-radius:var(--radius); background:var(--white); }
.aside-box .ab-top { background:var(--ink); color:var(--paper); font-family:var(--mono); font-size:.78rem; padding:.7rem 1.1rem; }
.aside-box .ab-top b { color:var(--volt); }
.aside-box dl { padding: 1.2rem 1.3rem; margin:0; }
.aside-box dt { font-family:var(--mono); font-size:.72rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:.2rem; }
.aside-box dd { margin:0 0 1.2rem; font-size:1rem; }
.aside-box dd a { color: var(--blue-d); }

/* ---------- Notices ---------- */
.notice { border:var(--bw) solid var(--ink); background: var(--volt-soft); border-radius: var(--radius); padding:1rem 1.2rem; margin-bottom:1.4rem; }
.notice.error { background:#ffe0e0; }
.notice.volt { background: var(--volt-soft); }

/* ---------- Portal ---------- */
.portal-wrap { max-width: 460px; margin: 0 auto; }
.portal-card { background:var(--white); border:var(--bw) solid var(--ink); border-radius:var(--radius); box-shadow: 8px 8px 0 var(--ink); overflow:hidden; }
.portal-card .pc-top { background: var(--hazard); height: 10px; }
.portal-card .pc-body { padding: 2rem 1.9rem; }
.demo-creds { font-family:var(--mono); font-size:.8rem; color:var(--ink-2); border:1.5px dashed var(--hair-2); border-radius:var(--radius); padding:.8rem .9rem; margin-top:1.2rem; }
.demo-creds code { color:var(--ink); background:var(--volt); padding:.05em .35em; border-radius:2px; }

/* ---------- Dashboard ---------- */
.demo-banner { background: var(--volt-soft); border:var(--bw) solid var(--ink); border-radius:var(--radius); padding:.8rem 1.1rem; font-family:var(--mono); font-size:.82rem; margin-bottom: var(--s6); }
.dash-head { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; margin-bottom: var(--s6); }
.dash-head h1 { font-size: clamp(1.7rem,4vw,2.4rem); margin:0; }
.kpis { display:grid; gap:0; border:var(--bw) solid var(--ink); border-radius:var(--radius); overflow:hidden; grid-template-columns:repeat(2,1fr); margin-bottom: var(--s6); }
@media (min-width:880px){ .kpis { grid-template-columns:repeat(4,1fr); } }
.kpi { background:var(--white); padding:1.3rem 1.4rem; border-right:1px solid var(--hair); border-bottom:1px solid var(--hair); }
.kpi strong { display:block; font-family:var(--display); font-weight:800; font-size:1.9rem; line-height:1; }
.kpi span { font-family:var(--mono); font-size:.74rem; color:var(--muted); }
.dash-grid { display:grid; gap: var(--s5); grid-template-columns:1fr; }
@media (min-width:980px){ .dash-grid { grid-template-columns: 1.6fr 1fr; } }
.panel { border:var(--bw) solid var(--ink); border-radius:var(--radius); background:var(--white); overflow:hidden; }
.panel .p-top { background:var(--ink); color:var(--paper); font-family:var(--mono); font-size:.8rem; padding:.7rem 1.1rem; }
.panel .p-body { padding:1.2rem 1.3rem; }
.tbl { width:100%; border-collapse:collapse; font-size:.88rem; }
.tbl th { text-align:left; font-family:var(--mono); font-weight:500; font-size:.7rem; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); padding:.5rem .6rem; border-bottom:var(--bw) solid var(--ink); }
.tbl td { padding:.7rem .6rem; border-bottom:1px solid var(--hair); color:var(--ink-2); }
.tbl tr:last-child td { border-bottom:0; }
.pill { display:inline-block; font-family:var(--mono); font-size:.7rem; padding:2px 9px; border-radius:999px; border:1.5px solid var(--ink); }
.pill.win { background:#cdeccd; }
.pill.pending { background:var(--volt-soft); }
.pill.draft { background:#d7e3ff; }
.pill.lost { background:#f0d6d6; color:var(--muted); }
.timeline { list-style:none; margin:0; padding:0; }
.timeline li { position:relative; padding:0 0 1.1rem 1.4rem; border-left:2px solid var(--hair-2); }
.timeline li:last-child { padding-bottom:0; }
.timeline li::before { content:""; position:absolute; left:-6px; top:3px; width:10px; height:10px; background:var(--ink); }
.timeline li.done::before { background:var(--volt); border:1.5px solid var(--ink); }
.timeline .tl-when { font-family:var(--mono); font-size:.72rem; color:var(--muted); text-transform:uppercase; }
.timeline .tl-what { color:var(--ink); font-size:.9rem; }
.doclist { list-style:none; margin:0; padding:0; }
.doclist li { display:flex; align-items:center; gap:.7rem; padding:.6rem 0; border-bottom:1px solid var(--hair); font-size:.88rem; color:var(--ink-2); }
.doclist li:last-child { border-bottom:0; }
.doclist svg { width:18px; height:18px; color:var(--blue-d); flex-shrink:0; }

/* ---------- Footer ---------- */
.foot-cta { background: var(--ink); color: var(--paper); text-align:center; padding: var(--s8) 0; }
.foot-cta h2 { color: var(--white); font-size: clamp(1.8rem,5vw,3rem); }
.foot-cta p { color:#a7abb3; max-width: 540px; margin:0 auto 1.6rem; }
.site-footer { background: var(--paper); border-top: var(--bw) solid var(--ink); padding: var(--s8) 0 var(--s5); }
.footer-grid { display:grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width:760px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: var(--s7); } }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 40ch; font-size:.93rem; color: var(--ink-2); }
.cred-line { font-family:var(--mono); font-size:.78rem; color: var(--ink-2); }
.footer-col h4 { font-family: var(--mono); font-size:.76rem; letter-spacing:.04em; color: var(--muted); margin-bottom:1rem; text-transform:uppercase; }
.footer-col a, .footer-col span { display:block; color: var(--ink-2); padding:.3rem 0; font-size:.92rem; transition: color var(--t); }
.footer-col a:hover { color: var(--blue-d); }
.footer-base { display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; justify-content:space-between; align-items:center; border-top:1px solid var(--hair); margin-top: var(--s6); padding-top: 1.3rem; font-family:var(--mono); font-size:.78rem; color: var(--muted); }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ [data-reveal]{ opacity:1; transform:none; } html{ scroll-behavior:auto; } }

/* ---------- Builder credit (SD Tech Solutions) ---------- */
/* "Designed & built by" line inside the footer brand column. */
.built-by { font-family: var(--mono); font-size:.8rem; color: var(--ink-2); margin-top:.9rem; }
.built-by a { color: var(--blue-d); font-weight:600; text-decoration: underline; text-underline-offset:2px; }
.built-by a:hover { color: var(--ink); }
/* short credit in the footer base row */
.site-credit a { color: var(--blue-d); font-weight:600; }
.site-credit a:hover { color: var(--ink); }
/* full-width "built by" strip below the footer — appears site-wide */
.builder-strip { background: var(--ink); color: var(--paper); border-top: var(--bw) solid var(--ink); }
.builder-strip .container { display:flex; flex-wrap:wrap; gap:.4rem 1rem; align-items:center; justify-content:center;
    text-align:center; padding-top:.85rem; padding-bottom:.85rem; font-family: var(--mono);
    font-size:.8rem; letter-spacing:.02em; }
.builder-strip strong { color: var(--volt); font-weight:600; }
.builder-strip a { color: var(--volt); font-weight:600; text-decoration: underline; text-underline-offset:2px; white-space:nowrap; }
.builder-strip a:hover { color: var(--white); }

/* ---------- Utilities ---------- */
.stack > * + * { margin-top: var(--s5); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ==========================================================================
   Day / night toggle button
   ========================================================================== */
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:34px; height:28px; padding:0; border:1.5px solid currentColor; border-radius:var(--radius); background:transparent; color:inherit; cursor:pointer; font-size:.9rem; line-height:1; opacity:.82; transition: all var(--t); }
.theme-toggle:hover { opacity:1; color:var(--volt); }
.theme-toggle .tt-moon { display:none; }
[data-theme="dark"] .theme-toggle .tt-sun { display:none; }
[data-theme="dark"] .theme-toggle .tt-moon { display:inline; }
.theme-toggle.on-dark { color:#e9e7df; }

.foot-cta-actions { display:flex; gap:.8rem; justify-content:center; flex-wrap:wrap; }
.btn-outline-light { background:transparent; color:var(--paper); border-color:var(--paper); }
.btn-outline-light:hover { background:var(--volt); color:var(--ink); border-color:var(--volt); }

/* ==========================================================================
   Workspace chrome — the signed-in back office (deliberately NOT the public look)
   ========================================================================== */
.app-bar { position:sticky; top:0; z-index:100; background:#0d0e12; border-bottom:3px solid var(--volt); }
.app-bar-row { max-width:1180px; margin:0 auto; padding:.7rem 1.2rem; display:flex; align-items:center; gap:1rem; }
.app-mark { display:inline-flex; align-items:center; gap:.6rem; color:#fff; font-family:var(--display); font-weight:700; font-size:1.05rem; text-transform:uppercase; letter-spacing:.02em; }
.app-mark img { border-radius:7px; }
.app-mark b { color:var(--volt); font-weight:800; }
.app-bar-right { margin-left:auto; display:flex; align-items:center; gap:1rem; }
.app-link { font-family:var(--mono); font-size:.8rem; color:#cdd0d6; white-space:nowrap; }
.app-link:hover { color:#fff; }
.app-link.out { color:#ff9a9a; }
.app-main { min-height:62vh; }
.app-foot { background:#0d0e12; color:#9aa0a8; border-top:1px solid rgba(255,255,255,.08); }
.app-foot-row { max-width:1180px; margin:0 auto; padding:1rem 1.2rem; display:flex; flex-wrap:wrap; gap:.5rem 1.5rem; justify-content:space-between; font-family:var(--mono); font-size:.76rem; }
.app-foot a { color:var(--volt); }
@media (max-width:560px){ .app-bar-row{ flex-wrap:wrap; } .app-link { font-size:.74rem; } .app-mark { font-size:.95rem; } }

/* ==========================================================================
   NIGHT MODE
   --ink is overloaded (text + borders + intentionally-dark surfaces). In dark
   mode we flip --ink to a light value (so the hundreds of text/border usages
   invert automatically) and then re-pin the handful of sections that used
   --ink as a *dark background* back to a fixed dark surface with light text.
   ========================================================================== */
[data-theme="dark"] {
    --paper:    #121419;
    --paper-2:  #181b21;
    --white:    #1e222b;   /* card / panel surface */
    --ink:      #ecebe3;   /* primary text + borders (now light) */
    --ink-2:    #b7bbc4;
    --muted:    #8b909a;
    --hair:     rgba(255,255,255,0.10);
    --hair-2:   rgba(255,255,255,0.26);
    --volt:     #ffd60a;
    --volt-d:   #ffce2e;
    --volt-soft:#2c2814;   /* dark gold tint for the soft-yellow panels */
    --blue:     #5b8bff;
    --blue-d:   #9cb7ff;   /* links readable on dark */
    --hazard:   repeating-linear-gradient(45deg, #0c0d11 0 12px, var(--volt) 12px 24px);
    color-scheme: dark;
}
[data-theme="dark"] body { background: var(--paper); }

/* Sections that were dark-on-light by design → keep a fixed dark surface. */
[data-theme="dark"] .topbar,
[data-theme="dark"] .ink-band,
[data-theme="dark"] .strip,
[data-theme="dark"] .hero-card .hc-top,
[data-theme="dark"] .panel .p-top,
[data-theme="dark"] .aside-box .ab-top,
[data-theme="dark"] .foot-cta,
[data-theme="dark"] .builder-strip { background:#0d0e12; color:#e9e7df; }
[data-theme="dark"] .topbar a,
[data-theme="dark"] .builder-strip a,
[data-theme="dark"] .ink-band a { color:#e9e7df; }
[data-theme="dark"] .topbar a:hover { color:var(--volt); }

/* Yellow surfaces need dark text even in night mode. */
[data-theme="dark"] .cta,
[data-theme="dark"] .cta h2,
[data-theme="dark"] .cta p,
[data-theme="dark"] .brand-king,
[data-theme="dark"] .photoband .pb-loc { color:#15171c; }
[data-theme="dark"] .demo-creds code { color:#15171c; }

/* Buttons: light pill with dark text; yellow on hover keeps dark text. */
[data-theme="dark"] .btn { color:#15171c; }
[data-theme="dark"] .btn:hover { background:var(--volt); color:#15171c; border-color:var(--volt); }
[data-theme="dark"] .btn-volt { background:var(--volt); color:#15171c; }
[data-theme="dark"] .btn-volt:hover { background:var(--ink); color:#15171c; }
[data-theme="dark"] .btn-outline { color:var(--ink); }
[data-theme="dark"] .btn-outline:hover { background:var(--ink); color:#15171c; }
[data-theme="dark"] .btn-outline-light { color:#e9e7df; border-color:#e9e7df; }

/* Hover-invert cards: hover paints with the (now light) --ink, so flip text dark. */
[data-theme="dark"] .box:hover { color:#15171c; }
[data-theme="dark"] .box:hover p { color:#3a3d44; }
[data-theme="dark"] .box:hover .b-tag,
[data-theme="dark"] .box:hover h3,
[data-theme="dark"] .box:hover .b-ic,
[data-theme="dark"] .box:hover .box-link { color:#15171c; }
[data-theme="dark"] .choice input:checked + label { color:#15171c; }
[data-theme="dark"] .choice input:checked + label .cd { color:#3a3d44; }

/* Notices / pills with hardcoded light pastels. */
[data-theme="dark"] .notice.error { background:#3a1f22; }
[data-theme="dark"] .pill { color:#15171c; }
[data-theme="dark"] .pill.pending { background:#5a4a12; color:#ffe7a3; }
[data-theme="dark"] .pill.lost { background:#3a2b2b; color:#cdb3b3; }

/* Owner-tool pages (tenders/quote/convert/users) use bespoke white panels with
   hardcoded #fff — re-pin them to a dark surface so night mode stays legible.
   (The .aq-preview / .aq-doc quote sheet hardcodes its OWN dark text on white,
   so it is intentionally left as a paper-like preview.) */
[data-theme="dark"] .au-grid .panel,
[data-theme="dark"] .cv-card { background:#1a1d24; border-color:rgba(255,255,255,0.16); }
[data-theme="dark"] .au-item { border-bottom-color:rgba(255,255,255,0.10); }
[data-theme="dark"] .au-grid .panel input,
[data-theme="dark"] .au-grid .panel select,
[data-theme="dark"] .aq-form input,
[data-theme="dark"] .aq-form select,
[data-theme="dark"] .aq-form textarea,
[data-theme="dark"] .aq-items input,
[data-theme="dark"] .cv-row select { background:#0f1115; color:var(--ink); border-color:rgba(255,255,255,0.25); }

/* ====================================================================== *
   Back-office (Workspace) — GENERIC night-mode coverage. Every admin page
   draws white panels/tables/inputs with hardcoded light colours in its own
   inline <style>; in night mode the global --ink flips light, leaving light
   text on white = invisible. These rules (scoped to .app-main, specific
   enough to win over the in-body page styles) make them readable. The
   .aq-preview / .aq-doc quote SHEET stays white on purpose (paper look). */
[data-theme="dark"] .app-main .panel,
[data-theme="dark"] .app-main .pr-item,
[data-theme="dark"] .app-main .at-form        { background:#1a1d24; border-color:rgba(255,255,255,0.16); color:#ecebe3; }
[data-theme="dark"] .app-main .panel h3,
[data-theme="dark"] .app-main .pr-title       { color:#ecebe3; }
[data-theme="dark"] .app-main .muted,
[data-theme="dark"] .app-main .pr-meta        { color:#9aa0a8; }
[data-theme="dark"] .app-main .dt td,
[data-theme="dark"] .app-main .at-item        { border-bottom-color:rgba(255,255,255,0.12); }
[data-theme="dark"] .app-main .dt th          { border-bottom-color:rgba(255,255,255,0.28); color:#aeb3bb; }
[data-theme="dark"] .app-main .dt tr:hover td { background:rgba(255,255,255,0.04); }
[data-theme="dark"] .app-main .bars .bb       { background:rgba(255,255,255,0.12); }
[data-theme="dark"] .app-main .panel input,
[data-theme="dark"] .app-main .panel select,
[data-theme="dark"] .app-main .panel textarea,
[data-theme="dark"] .app-main .at-form input,
[data-theme="dark"] .app-main .at-form textarea { background:#0f1115; color:#ecebe3; border-color:rgba(255,255,255,0.25); }
[data-theme="dark"] .app-main .at-st.off      { background:#2a2e37; color:#cdd0d6; }
[data-theme="dark"] .app-main .kpi            { background:#1e222b; color:#fff; }
[data-theme="dark"] .app-main .kpi.gold       { background:var(--volt); color:#15171c; }
[data-theme="dark"] .app-main .kpi .kpi-l,
[data-theme="dark"] .app-main .kpi span       { color:#fff; }
[data-theme="dark"] .app-main .kpi.gold .kpi-l,
[data-theme="dark"] .app-main .kpi.gold span  { color:#15171c; }
[data-theme="dark"] .app-main .pr-item.tender { border-left-color:var(--volt); }
[data-theme="dark"] .app-main .pr-close       { background:rgba(127,220,168,0.16); color:#7fdca8; }
[data-theme="dark"] .app-main .pr-close.dead  { background:rgba(255,154,154,0.16); color:#ff9a9a; }

/* ---- Back-office mobile: wrap action rows, let wide tables scroll ------ */
@media (max-width:680px){
  .app-main .shead > div { flex-wrap:wrap; }
  .app-main .dt          { display:block; overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; }
  .app-main .at-item     { flex-direction:column; }
  .app-main .at-acts     { width:100%; }
  .app-main .bars li     { grid-template-columns:1fr 70px 30px; }
}
