/* =====================================================================
   AMERITEK INDUSTRIES — STYLESHEET
   Apple-inspired layout (generous space, large tight headlines, frosted
   header, soft rounded surfaces, calm motion) in the Ameritek palette:
     Blue #0a5cb8 (brand)   Navy-blue #134a8e (headings)   Orange #f39200 (CTA)
   Fonts: Raleway (headings) + Work Sans (body / UI)
   NOTE: the --orange* variable names are kept for the admin theme editor;
   "orange" is simply the primary ACCENT (blue by default).
   ===================================================================== */

:root {
    /* Brand */
    --orange:      #0a5cb8;   /* primary accent: links, icons, toggles */
    --orange-2:    #2f8de4;   /* gradient light */
    --orange-3:    #0a4f9e;   /* gradient deep  */
    --orange-dark: #084a95;   /* accent hover   */
    --cta:         #f39200;   /* call-to-action buttons */
    --cta-dark:    #d97f00;

    /* Bands (top bar, blue sections, footer, mobile call btn) */
    --navy:        #0a5cb8;
    --navy-2:      #0b2a52;

    /* Surfaces */
    --bg:          #ffffff;
    --bg-alt:      #f5f5f7;
    --surface:     #ffffff;
    --surface-2:   #e6f3fb;
    --field-bg:    #ffffff;

    /* Text */
    --heading:     #134a8e;
    --text:        #1d1d1f;
    --muted:       #6e6e73;
    --line:        #d2d2d7;

    /* Back-compat aliases */
    --ink:         var(--text);
    --white:       #ffffff;

    --font-head:   'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:   'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius:      18px;
    --radius-sm:   12px;
    --shadow:      0 2px 10px rgba(16,40,80,.06), 0 12px 32px rgba(16,40,80,.06);
    --shadow-lg:   0 24px 60px rgba(16,40,80,.14);
    --grad:        linear-gradient(135deg, var(--orange-2) 0%, var(--orange-3) 100%);
    --sky:         linear-gradient(180deg, #d6eefb 0%, #bfe3f6 55%, #e9f6fd 100%);
    --ease:        cubic-bezier(.22,.61,.36,1);
    --ease-out:    cubic-bezier(.16,1,.3,1);
    --maxw:        1180px;
    --header-h:    64px;
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }   /* prevents sideways scroll from the off-canvas menu */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 17px;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--heading);
    line-height: 1.08;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.025em; }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p  { margin: 0 0 1rem; }
a  { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
/* Safety default so inline icons never render oversized; contexts size them explicitly */
svg { width: 20px; height: 20px; flex-shrink: 0; }
::selection { background: color-mix(in srgb, var(--orange) 22%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---- Layout helpers ------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section   { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.85); }
.section--navy h2, .section--navy h3 { color: #fff; }
.text-center { text-align: center; }
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: 0;
    color: var(--cta);
    margin-bottom: .7rem;
}
.section-head { max-width: 760px; margin: 0 auto 64px; }
.section-head p { color: var(--muted); font-size: 1.2rem; line-height: 1.5; }
.section--navy .section-head p { color: rgba(255,255,255,.75); }

/* ---- Buttons -------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 980px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .2s, color .2s, border-color .2s;
    text-align: center; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--cta); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--cta) 30%, transparent); }
.btn--primary:hover { background: var(--cta-dark); color:#fff; transform: translateY(-1px); box-shadow: 0 10px 26px color-mix(in srgb, var(--cta) 38%, transparent); }
.btn--outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--white { background:#fff; color: var(--heading); }
.btn--white:hover { background: var(--cta); color:#fff; }
.btn--lg { padding: 16px 32px; font-size: 1.06rem; }
.link-more { font-weight: 500; font-size: 1.06rem; display: inline-flex; align-items: center; gap: 4px; }
.link-more::after { content: '›'; font-size: 1.4em; line-height: 0; transform: translateY(-1px); transition: transform .25s var(--ease); }
.link-more:hover::after { transform: translate(3px,-1px); }

/* ---- Admin bar (only shown when logged in) -------------------------- */
.admin-bar {
    background: #1d1d1f; color:#f5f5f7;
    font-size:.8rem; font-weight:500;
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    padding:8px 24px; flex-wrap:wrap;
}
.admin-bar span { display:inline-flex; align-items:center; gap:8px; }
.admin-bar svg { width:15px; height:15px; }
.admin-bar-links { display:flex; gap:16px; align-items:center; }
.admin-bar a, .admin-bar button { color:#f5f5f7; text-decoration:none; background:none; border:0; font:inherit; cursor:pointer; padding:0; }
.admin-bar a:hover, .admin-bar button:hover { color: var(--cta); }
.admin-bar form { margin:0; }

/* hidden-from-customers notice bar (admin viewing a hidden page) */
.hidden-notice {
    background: #fff6e5; color: #8a4b00; border-bottom: 1px solid #f6dfb4;
    font-weight:500; font-size:.85rem;
    text-align:center; padding: 10px 24px;
}
.hidden-notice svg { width:15px; height:15px; vertical-align:-2px; }
.hidden-notice a { color: var(--cta-dark); text-decoration: underline; }

/* ---- Admin: dashboard tiles ----------------------------------------- */
.adm-tiles { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.adm-tile {
    display:flex; flex-direction:column; gap:6px; padding: 22px 22px 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s;
}
.adm-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.adm-tile b { font-family: var(--font-head); font-size: 1.1rem; color: var(--heading); }
.adm-tile span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.adm-tile .adm-tile-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--orange); display:grid; place-items:center; margin-bottom: 8px; }
.adm-tile .adm-tile-ico svg { width: 22px; height: 22px; }
.adm-section-h { font-size: 1.6rem; margin-bottom: 6px; }
.adm-section-p { color: var(--muted); margin-bottom: 22px; max-width: 680px; }
@media (max-width: 860px) { .adm-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adm-tiles { grid-template-columns: 1fr; } }

/* ---- Admin: "service added" call-to-action ------------------------- */
.added-cta { background: var(--grad); color:#fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; box-shadow: var(--shadow); }
.added-cta b { font-family: var(--font-head); display:block; font-size:1.05rem; }
.added-cta span { opacity:.92; font-size:.9rem; }

/* ---- Admin: color palette editor ----------------------------------- */
.color-row { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm); padding:10px 14px; margin-bottom:8px; }
.color-row label { flex:1; font-weight:500; color:var(--text); font-size:.95rem; }
.color-hex { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size:.8rem; color:var(--muted); }
.color-row input[type=color] { width:44px; height:32px; border:1px solid var(--line); border-radius:8px; background:none; cursor:pointer; padding:2px; }
.color-group-h { font-weight:600; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin:26px 0 10px; }
.color-group-h:first-child { margin-top:0; }
.theme-actions { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0 4px; }
.theme-actions .btn { flex:1; min-width:150px; }

/* Whole-palette live preview. Descendants read the vars set inline on #tprev,
   so the preview shows the values being edited, independent of the saved theme. */
.theme-preview { border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-lg); background:var(--surface); position:sticky; top:100px; }
.tprev-bar { background:var(--surface); border-bottom:1px solid var(--line); padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.tprev-brand { font-family: var(--font-head); color:var(--heading); font-weight:800; font-size:.9rem; }
.tprev-links { display:flex; align-items:center; gap:12px; }
.tprev-links a { color:var(--heading); font-weight:500; font-size:.75rem; }
.tprev-cta { background:var(--cta); color:#fff; font-weight:500; font-size:.72rem; padding:6px 12px; border-radius:980px; }
.tprev-body { background:var(--bg); padding:20px 16px; }
.tprev-card { background:var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm); padding:18px; box-shadow:var(--shadow); }
.tprev-ico { width:44px; height:44px; border-radius:12px; background:var(--surface-2); position:relative; margin-bottom:12px; }
.tprev-ico::after { content:''; position:absolute; inset:12px; border-radius:50% 50% 50% 0; transform: rotate(-45deg); background:var(--orange); }
.tprev-h { font-family: var(--font-head); font-weight:800; color:var(--heading); font-size:1.1rem; margin-bottom:6px; }
.tprev-p { color:var(--text); font-size:.85rem; margin-bottom:8px; }
.tprev-muted { color:var(--muted); font-size:.76rem; margin-bottom:14px; }
.tprev-btns { display:flex; gap:9px; flex-wrap:wrap; }
.tprev-primary { background:var(--cta); color:#fff; font-weight:500; font-size:.78rem; padding:8px 15px; border-radius:980px; }
.tprev-outline { background:transparent; color:var(--orange); border:1.5px solid var(--orange); font-weight:500; font-size:.78rem; padding:7px 15px; border-radius:980px; }
.tprev-band { background:var(--navy); color:#fff; padding:14px 16px; font-weight:500; font-size:.8rem; }
.tprev-foot { background:var(--navy-2); color:rgba(255,255,255,.7); padding:14px 16px; font-size:.78rem; }

/* ---- Admin: CRUD list rows ----------------------------------------- */
.adm-row { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--line); border-radius: var(--radius-sm); padding:10px 12px; margin-bottom:10px; transition: box-shadow .25s var(--ease); }
.adm-row:hover { box-shadow: var(--shadow); }
.adm-thumb { width:74px; height:56px; flex:0 0 74px; border-radius:8px; overflow:hidden; background:var(--surface-2); display:grid; place-items:center; }
.adm-thumb img { width:100%; height:100%; object-fit:cover; }
.adm-info { flex:1; min-width:0; }
.adm-info b { display:block; font-family: var(--font-head); color:var(--heading); font-size:1rem; }
.adm-info span { color:var(--muted); font-size:.85rem; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.adm-actions { display:flex; gap:8px; flex:0 0 auto; }
.adm-actions .btn { padding:8px 16px; font-size:.88rem; }
.adm-order { display:flex; flex-direction:column; gap:4px; flex:0 0 auto; }
.adm-order form { margin:0; }
.adm-move { width:30px; height:24px; border-radius:7px; border:1px solid var(--line); background:var(--bg-alt); color:var(--heading); cursor:pointer; font-size:.85rem; line-height:1; display:grid; place-items:center; transition: background .2s, color .2s; }
.adm-move:hover:not(:disabled) { background: var(--orange); color:#fff; border-color: var(--orange); }
.adm-move:disabled { opacity:.3; cursor:default; }
.btn--danger { background:#fdecec; color:#c0302a; border-color: transparent; }
.btn--danger:hover { background:#c0302a; color:#fff; }
.check-inline { display:flex !important; align-items:center; gap:8px; font-weight:400 !important; color: var(--muted) !important; margin-bottom: 8px; cursor:pointer; }
.check-inline input { width:auto !important; }
@media (max-width:560px){ .adm-row{ flex-wrap:wrap } .adm-info{ flex-basis:50% } .adm-actions{ width:100%; justify-content:flex-end } }

/* ---- Admin: backups ------------------------------------------------- */
.backup-group summary { list-style:none; cursor:pointer; }
.backup-group summary::-webkit-details-marker { display:none; }
.backup-group summary h3 { display:flex; align-items:center; gap:10px; }
.backup-group summary h3::after { content:'›'; margin-left:auto; font-size:1.4rem; color:var(--muted); transition: transform .25s var(--ease); }
.backup-group[open] summary h3::after { transform: rotate(90deg); }
.backup-count { font-size:.75rem; background: var(--surface-2); color: var(--orange); border-radius: 980px; padding: 2px 9px; letter-spacing:0; }
.backup-group .toggle-row form { margin:0; }
.backup-group .btn { padding: 8px 16px; font-size: .88rem; }

/* ---- Admin: photo manager ------------------------------------------ */
.img-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.img-slot { background:var(--surface); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; }
.img-thumb { aspect-ratio: 4/3; background:var(--surface-2); overflow:hidden; display:grid; place-items:center; }
.img-thumb img { width:100%; height:100%; object-fit:cover; }
.img-none { color:var(--muted); font-weight:500; font-size:.8rem; }
.img-body { padding:14px 16px; display:flex; flex-direction:column; gap:10px; }
.img-body b { font-family: var(--font-head); color:var(--heading); font-size:.98rem; }
.img-dim { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:.78rem; }
.img-dim svg { width:13px; height:13px; flex:0 0 13px; }
.img-file { position:relative; display:block; border:1.5px dashed var(--line); border-radius:10px; padding:10px 12px; cursor:pointer; font-size:.85rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.img-file:hover { border-color: var(--orange); color: var(--orange); }
.img-file input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.img-body .btn { padding:10px 18px; }
.img-body .btn:disabled { opacity:.45; cursor:not-allowed; }
@media (max-width: 620px) { .img-grid { grid-template-columns: 1fr; } }

/* ---- Admin panel: toggle switches (iOS style) ---------------------- */
.admin-group { background:var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; margin-bottom: 18px; }
.admin-group h3 { font-family: var(--font-body); font-size: .78rem; font-weight:600; color: var(--muted); text-transform: uppercase; letter-spacing:.06em; margin: 16px 0 4px; }
.toggle-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 13px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: 0; }
.toggle-info { display:flex; flex-direction:column; }
.toggle-name { font-weight:500; color: var(--text); }
.toggle-link { font-size:.8rem; color: var(--muted); }
.toggle-link:hover { color: var(--orange); }

.switch { display:inline-flex; align-items:center; gap:12px; cursor:pointer; user-select:none; }
.switch input { position:absolute; opacity:0; width:0; height:0; }
.switch .slider-ui { position:relative; width:51px; height:31px; border-radius:980px; background:#e9e9eb; transition: background .25s var(--ease); flex:0 0 51px; }
.switch .slider-ui::before { content:''; position:absolute; top:2px; left:2px; width:27px; height:27px; border-radius:50%; background:#fff; transition: transform .3s var(--ease-out); box-shadow:0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); }
.switch input:checked + .slider-ui { background: #34c759; }
.switch input:checked + .slider-ui::before { transform: translateX(20px); }
.switch input:focus-visible + .slider-ui { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 35%, transparent); }
.switch-label { font-weight:500; font-size:.85rem; color: var(--muted); min-width:52px; }
@media (max-width: 520px) { .toggle-row { flex-wrap: wrap; } .switch-label { min-width: 0; } }

/* ---- Top bar (scrolls away) ----------------------------------------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.92); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #ffd38a; }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 22px; align-items: center; }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .tb-item svg { width: 14px; height: 14px; flex: 0 0 14px; opacity:.85; }

/* ---- Header / Nav (sticky, frosted glass) --------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(16,40,80,.08); }
.navbar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px;
    background: var(--grad); color:#fff;
    display: grid; place-items: center;
    box-shadow: 0 6px 14px color-mix(in srgb, var(--orange) 28%, transparent);
}
.brand-mark svg { width: 20px; height: 20px; fill: rgba(255,255,255,.25); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-size: 1.2rem; color: var(--heading); font-weight: 800; letter-spacing:-.02em; }
.brand-text span { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.brand-logo { height: 48px; width: auto; max-width: 300px; display: block; }
@media (max-width: 620px) { .brand-logo { height: 40px; max-width: 200px; } }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { font-weight: 500; font-size: .92rem; color: var(--text); padding: 8px 12px; border-radius: 980px; white-space: nowrap; transition: color .2s, background .2s; }
.nav a:hover { color: var(--orange); }
.nav a.active { color: var(--orange); }
.nav .btn { margin-left: 10px; color:#fff; padding: 8px 18px; font-size: .9rem; }
.nav .btn:hover { color:#fff; }

/* social icons in the nav */
.nav-social { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; }
.nav-social a { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: inline-grid; place-items: center; background: var(--bg-alt); color: var(--heading); }
.nav-social a:hover { background: var(--orange); color: #fff; }
.nav-social svg { width: 16px; height: 16px; }
.soc-badge { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); color: var(--orange); display: inline-grid; place-items: center; }
.soc-badge svg { width: 17px; height: 17px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width: 22px; height: 2px; background: var(--heading); border-radius: 2px; margin: 5px 0; transition: transform .35s var(--ease-out), opacity .2s; }

/* dropdown menus */
.has-drop { position: relative; }
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 50%; min-width: 250px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px) scale(.98);
    transition: opacity .25s var(--ease), transform .3s var(--ease-out), visibility .25s;
}
.has-drop::after { content:''; position:absolute; left:0; right:0; top:100%; height:10px; }   /* hover bridge */
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity:1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.dropdown a { display:block; padding: 9px 14px; border-radius: 10px; color: var(--text); }
.dropdown a:hover { background: var(--surface-2); color: var(--orange); }

/* ---- Hero ----------------------------------------------------------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--sky);
    padding: 110px 0 120px;
}
.hero--photo { background: linear-gradient(180deg, rgba(214,238,251,.55), rgba(233,246,253,.8)), var(--hero-img) center/cover no-repeat; }
.hero h1 { color: var(--heading); max-width: 760px; }
.hero h1 .accent { display:block; background: linear-gradient(90deg, var(--orange) 0%, var(--orange-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero p { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: color-mix(in srgb, var(--heading) 80%, #000); max-width: 560px; margin-bottom: 2rem; line-height: 1.5; }
.hero .eyebrow { color: var(--orange); }
.hero .btn-row { display:flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.hero-lang {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
    background: rgba(255,255,255,.7); color: var(--heading);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.9);
    font-weight: 600; font-size: .95rem; padding: 9px 18px; border-radius: 980px;
}
.hero-lang svg { width: 18px; height: 18px; color: var(--orange); }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-media { position: relative; }
.hero-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.hero-frame img { width:100%; height:100%; object-fit: cover; }

/* Hero entrance (staggered with --d) */
.hero-in { opacity: 0; transform: translateY(26px); filter: blur(6px); animation: heroIn 1.1s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * .12s + .1s); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

/* Floating bubbles (hero + CTA band) */
.bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bubbles span {
    position: absolute; bottom: -60px; border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 45%, rgba(255,255,255,0) 70%);
    border: 1.5px solid rgba(255,255,255,.75);
    box-shadow: inset -3px -4px 8px rgba(10,92,184,.12);
    animation: bubbleUp linear infinite;
}
.bubbles span:nth-child(1)  { left: 4%;  width: 18px; height: 18px; animation-duration: 14s; animation-delay: -2s; }
.bubbles span:nth-child(2)  { left: 11%; width: 34px; height: 34px; animation-duration: 19s; animation-delay: -9s; }
.bubbles span:nth-child(3)  { left: 17%; width: 12px; height: 12px; animation-duration: 11s; animation-delay: -4s; }
.bubbles span:nth-child(4)  { left: 24%; width: 26px; height: 26px; animation-duration: 17s; animation-delay: -12s; }
.bubbles span:nth-child(5)  { left: 31%; width: 10px; height: 10px; animation-duration: 12s; animation-delay: -7s; }
.bubbles span:nth-child(6)  { left: 38%; width: 22px; height: 22px; animation-duration: 21s; animation-delay: -1s; }
.bubbles span:nth-child(7)  { left: 45%; width: 14px; height: 14px; animation-duration: 13s; animation-delay: -10s; }
.bubbles span:nth-child(8)  { left: 52%; width: 40px; height: 40px; animation-duration: 24s; animation-delay: -15s; }
.bubbles span:nth-child(9)  { left: 58%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -3s; }
.bubbles span:nth-child(10) { left: 64%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: -8s; }
.bubbles span:nth-child(11) { left: 70%; width: 30px; height: 30px; animation-duration: 20s; animation-delay: -5s; }
.bubbles span:nth-child(12) { left: 76%; width: 11px; height: 11px; animation-duration: 12s; animation-delay: -11s; }
.bubbles span:nth-child(13) { left: 81%; width: 24px; height: 24px; animation-duration: 18s; animation-delay: -6s; }
.bubbles span:nth-child(14) { left: 86%; width: 15px; height: 15px; animation-duration: 13s; animation-delay: -14s; }
.bubbles span:nth-child(15) { left: 91%; width: 36px; height: 36px; animation-duration: 22s; animation-delay: -3s; }
.bubbles span:nth-child(16) { left: 95%; width: 10px; height: 10px; animation-duration: 11s; animation-delay: -9s; }
.bubbles span:nth-child(17) { left: 8%;  width: 28px; height: 28px; animation-duration: 23s; animation-delay: -18s; }
.bubbles span:nth-child(18) { left: 60%; width: 18px; height: 18px; animation-duration: 15s; animation-delay: -13s; }
@keyframes bubbleUp {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .9; }
    50%  { transform: translate(14px, -55vh); }
    90%  { opacity: .8; }
    100% { transform: translate(-10px, -115vh); opacity: 0; }
}
.bubbles--soft span { border-color: rgba(255,255,255,.35); background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), rgba(255,255,255,0) 70%); box-shadow:none; }

/* Animated glass of water */
.glass-art { position: relative; max-width: 380px; margin: 0 auto; }
.glass-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(10,92,184,.25)); animation: floaty 7s ease-in-out infinite; }
.glass-water { animation: fill 2.4s var(--ease-out) .4s both; }
.wave { animation: waveMove 6s linear infinite; }
.wave-back { animation-duration: 9s; animation-direction: reverse; }
@keyframes waveMove { to { transform: translateX(300px); } }
@keyframes fill { from { transform: translateY(230px); } to { transform: none; } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
.g-bub { animation: gBub 4s ease-in infinite; }
.g-bub.b2 { animation-delay: 1.2s; animation-duration: 5s; }
.g-bub.b3 { animation-delay: 2.1s; animation-duration: 4.5s; }
.g-bub.b4 { animation-delay: .6s; animation-duration: 3.6s; }
@keyframes gBub { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-190px); opacity: 0; } }
.glass-badge {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255,255,255,.95); border-radius: 18px; padding: 12px 16px;
    box-shadow: var(--shadow-lg); color: var(--heading); font-size: .82rem; line-height: 1.2; font-weight: 500;
    animation: floaty 8s ease-in-out infinite;
}
.glass-badge b { font-family: var(--font-head); font-size: 1.5rem; color: var(--cta); font-weight: 800; }
.glass-badge svg { width: 26px; height: 26px; color: var(--orange); }
.glass-badge--a { left: -18px; top: 18%; animation-delay: -2s; }
.glass-badge--b { right: -14px; bottom: 16%; animation-delay: -5s; }

/* scroll hint */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid color-mix(in srgb, var(--heading) 45%, transparent); border-radius: 14px; z-index: 1; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--heading); opacity: .6; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: .7; } 100% { transform: translateY(14px); opacity: 0; } }

/* small hero for interior pages */
.page-hero { background: var(--sky); color: var(--heading); padding: 52px 0 60px; text-align:center; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--heading); font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: .3em; }
.page-hero-sub { max-width: 640px; margin: 0 auto; color: color-mix(in srgb, var(--heading) 75%, #000); font-size: 1.15rem; line-height: 1.5; }
.breadcrumb { color: var(--muted); font-size:.88rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--orange); }

/* ---- Trust strip ---------------------------------------------------- */
.trustbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.trustbar .container { display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 24px; }
.trustbar .ti { display:flex; align-items:center; justify-content:center; gap: 10px; font-weight:500; color: var(--heading); font-size: .98rem; }
.trustbar .ti svg { width: 24px; height: 24px; color: var(--orange); }

/* ---- Cards ---------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--bg-alt); border-radius: var(--radius); padding: 34px 30px;
    border: 0; color: inherit; display: block;
    transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background .3s;
    position: relative; overflow: hidden;
}
.section--alt .card { background: var(--surface); }
a.card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); color: inherit; }
.card .ico {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--surface); color: var(--orange);
    display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow);
}
.section--alt .card .ico { background: var(--surface-2); box-shadow: none; }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: 1rem; margin-bottom: 1.1rem; }
.card .more { font-weight:500; font-size:.98rem; color: var(--orange); display:inline-flex; align-items:center; gap:4px; }
.card .more::after { content:'›'; font-size: 1.35em; line-height: 0; transition: transform .25s var(--ease); }
.card:hover .more::after { transform: translateX(4px); }

/* image-topped card (home "Water Solutions") */
.card--media { padding: 0; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sky); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
a.card--media:hover .card-media img { transform: scale(1.06); }
.card-media-ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--orange); position: relative; }
.card-media-ph svg { width: 64px; height: 64px; stroke-width: 1.4; filter: drop-shadow(0 10px 16px rgba(10,92,184,.25)); transition: transform .6s var(--ease-out); }
a.card--media:hover .card-media-ph svg { transform: translateY(-6px) scale(1.08); }
.card-body { padding: 26px 28px 28px; }

/* installation thumbnails (home) */
.inst-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.inst-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.inst-card:hover img { transform: scale(1.06); }
.inst-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: rgba(255,255,255,.85); font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.inst-cap b { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }

/* ---- Photo placeholder --------------------------------------------- */
.ph {
    background: var(--sky);
    position: relative; border-radius: var(--radius); overflow:hidden;
    display:grid; place-items:center; min-height: 260px; color: color-mix(in srgb, var(--heading) 55%, transparent);
    font-weight:600; letter-spacing:.04em; font-size:.8rem;
}
.ph--tall { min-height: 460px; }
.framed-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.ph svg { width:46px; height:46px; opacity:.6; margin-bottom:8px; }
.ph .ph-label { text-align:center; text-transform:uppercase; }

/* ---- Big statement (words light up as you scroll) ------------------ */
.statement { padding: 140px 0; background: var(--bg); }
.statement-text {
    font-family: var(--font-head); font-weight: 800; letter-spacing: -.025em; line-height: 1.15;
    font-size: clamp(1.9rem, 4.4vw, 3.4rem); color: var(--heading); max-width: 980px; margin: 0 auto; text-align: center;
}
.statement-text .hl { color: var(--orange-2); }
.js .reveal-words .w { opacity: .15; transition: opacity .5s var(--ease); }
.reveal-words .w.on { opacity: 1; }

/* ---- Split / feature blocks ---------------------------------------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items:center; }
.split ul.checks { list-style:none; padding:0; }
.checks { list-style:none; padding:0; }
.checks li { position:relative; padding-left: 34px; margin-bottom: 12px; font-weight:400; }
.checks.two { display:grid; grid-template-columns: repeat(2, 1fr); gap: 4px 34px; }
@media (max-width: 620px) { .checks.two { grid-template-columns: 1fr; } }
.checks li::before {
    content:'✓'; position:absolute; left:0; top:2px;
    width: 22px; height:22px; border-radius:50%; background: var(--surface-2); color: var(--orange);
    font-size:.75rem; display:grid; place-items:center; font-weight:700;
}

/* ---- Process steps -------------------------------------------------- */
.steps { display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; position: relative; }
.steps::before { content:''; position:absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--surface-2), var(--orange-2), var(--surface-2)); z-index: 0; }
.step { text-align:center; position: relative; z-index: 1; }
.step .num {
    width: 64px; height:64px; margin:0 auto 20px; border-radius:50%;
    background: var(--surface); border: 2px solid var(--orange);
    display:grid; place-items:center; font-family: var(--font-head);
    font-weight:800; font-size:1.4rem; color: var(--orange);
    box-shadow: 0 0 0 8px var(--bg);
    transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease-out);
}
.step.in .num { animation: pop .7s var(--ease-out) both; animation-delay: inherit; }
.step:hover .num { background: var(--orange); color: #fff; transform: scale(1.06); }
.step p { color: var(--muted); }
.section--navy .step p { color: rgba(255,255,255,.75); }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ---- Stats ---------------------------------------------------------- */
.section--navy { background: linear-gradient(135deg, var(--navy) 0%, color-mix(in srgb, var(--navy) 70%, #000) 100%); }
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 30px; text-align:center; }
.stat b { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; color: #fff; display:block; line-height:1; letter-spacing: -.03em; margin-bottom: 8px; }
.stat span { color: var(--muted); font-weight:500; font-size:.98rem; }
.section--navy .stat span { color: rgba(255,255,255,.75); }

/* ---- Testimonials --------------------------------------------------- */
.quote { background: var(--bg-alt); border-radius: var(--radius); padding: 32px; border: 0; }
.section--alt .quote { background: var(--surface); }
.quote .stars { color: var(--cta); margin-bottom: 12px; letter-spacing:2px; }
.quote p { color: var(--ink); font-size: 1.05rem; line-height: 1.55; }
.quote .who { display:flex; align-items:center; gap:12px; margin-top:16px; }
.quote .who .av { width:44px; height:44px; border-radius:50%; background: var(--grad); color:#fff; display:grid; place-items:center; font-weight:700; font-family: var(--font-head); }
.quote .who b { color: var(--heading); font-family: var(--font-head); font-size:1rem; }
.quote .who span { color: var(--muted); font-size:.85rem; display:block; }

/* Reviews carousel (home testimonials) */
.revcar { position: relative; }
.revcar-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px; margin: 0 -4px; -ms-overflow-style: none; scrollbar-width: none; }
.revcar-track::-webkit-scrollbar { display: none; }
.revcar-slide { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.revcar-slide .quote { height: 100%; }
.revcar-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    border: 0; background: color-mix(in srgb, var(--surface) 85%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--heading); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
    display: grid; place-items: center; z-index: 2; transition: background .2s, color .2s, opacity .2s;
}
.revcar-btn:hover { background: var(--orange); color: #fff; }
.revcar-btn:disabled { opacity: 0; pointer-events: none; }
.revcar-prev { left: -18px; }
.revcar-next { right: -18px; }
.revcar-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.revcar-dot { width: 8px; height: 8px; border-radius: 980px; border: none; padding: 0; background: var(--line); cursor: pointer; transition: width .35s var(--ease-out), background .2s; }
.revcar-dot.is-active { background: var(--heading); width: 24px; }
@media (max-width: 980px) { .revcar-slide { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px) { .revcar-slide { flex-basis: 88%; } .revcar-btn { display: none; } }

/* ---- CTA band ------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--grad); color:#fff; text-align:center; padding: 110px 0; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 1.8rem; font-size:1.2rem; }

/* ---- Contact / form ------------------------------------------------- */
.form-wrap { background:var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 40px; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:500; font-size:.88rem; color: var(--text); margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px;
    font-family: inherit; font-size: 1rem; color: var(--text); background:var(--field-bg); transition: border-color .2s, box-shadow .2s;
}
.field input[type=file] { padding: 10px 12px; background: var(--bg-alt); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 16%, transparent); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size:.85rem; color: var(--muted); }
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight:500; animation: alertIn .5s var(--ease-out); }
.alert--ok { background: #e8f8ee; color:#16723a; border:1px solid #bfe9cf; }
.alert--err { background: #fdecec; color:#b4322b; border:1px solid #f4c6c3; }
@keyframes alertIn { from { opacity: 0; transform: translateY(-8px); } }

.contact-info { list-style:none; padding:0; }
.contact-info li { display:flex; gap:16px; margin-bottom: 22px; align-items:flex-start; }
.contact-info .ci-ico { width:46px; height:46px; flex:0 0 46px; border-radius:14px; background: var(--surface-2); color:var(--orange); display:grid; place-items:center; }
.contact-info b { font-family: var(--font-head); color:var(--heading); display:block; font-size:.95rem; }
.contact-info span, .contact-info a { color: var(--muted); }

/* ---- Before / After slider ----------------------------------------- */
.project { margin-bottom: 64px; }
.project:last-child { margin-bottom: 0; }
.project-head { margin-bottom: 18px; }
.project-head h3 { margin-bottom: 4px; font-size: 1.5rem; }
.project-head .loc { color: var(--orange); font-weight:500; font-size:.88rem; display:inline-flex; align-items:center; gap:5px; }
.project-head .loc svg { width: 15px; height: 15px; }
.project-head p { color: var(--muted); margin: 8px 0 0; }

.ba { --pos: 50%; position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; background: var(--surface-2); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-layer { position: absolute; inset: 0; }
.ba-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-ph { position:absolute; inset:0; display:grid; place-items:center; font-weight:600; letter-spacing:.12em; font-size:1rem; text-align:center; }
.ba-ph--before { background: linear-gradient(135deg,#a9b4c2,#7d8a9c); color:#eef2f6; }
.ba-ph--after  { background: var(--grad); color:#fff; }
.ba-ph small { display:block; font-weight:400; letter-spacing:.02em; font-size:.75rem; opacity:.85; margin-top:4px; }
.ba-tag { position:absolute; top:14px; z-index:3; padding:6px 14px; border-radius:980px; font-weight:600; font-size:.74rem; letter-spacing:.04em; color:#fff; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events:none; }
.ba-tag--before { left:14px; }
.ba-tag--after  { right:14px; background: color-mix(in srgb, var(--orange) 85%, transparent); }
.ba-divider { position:absolute; top:0; bottom:0; left: var(--pos); width:3px; z-index:4; background:#fff; transform: translateX(-50%); pointer-events:none; box-shadow:0 0 8px rgba(0,0,0,.3); }
.ba-grip { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%; background:#fff; color:var(--orange); display:grid; place-items:center; box-shadow: var(--shadow); }
.ba-grip::before { content:'‹ ›'; font-size:16px; font-weight:700; letter-spacing:2px; }
.ba-range { position:absolute; inset:0; z-index:5; width:100%; height:100%; margin:0; -webkit-appearance:none; appearance:none; background:transparent; cursor: ew-resize; opacity:0; }
.ba-range::-webkit-slider-thumb { -webkit-appearance:none; width:48px; height:100%; }
.ba-range::-moz-range-thumb { width:48px; height:100%; border:0; background:transparent; }
.ba-expand { position:absolute; top:14px; left:50%; transform:translateX(-50%); z-index:6; display:inline-flex; align-items:center; gap:6px; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color:#fff; border:0; cursor:pointer; font-family: var(--font-body); font-weight:500; font-size:.76rem; padding:7px 14px; border-radius:980px; }
.ba-expand:hover { background: var(--orange); }
.ba-expand svg { width:15px; height:15px; }

/* ---- Lightbox ------------------------------------------------------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,30,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); display: none; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.lb.open { display: flex; animation: lbIn .35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb-inner { width: 100%; max-width: 1100px; margin: auto 0; position: relative; }
.lb-close { position: sticky; top: 0; margin-left: auto; margin-bottom: 8px; display: flex; align-items:center; justify-content:center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1d1d1f; border:0; cursor:pointer; font-size: 1.6rem; line-height: 1; z-index: 3; }
.lb-close:hover { background: #fff; }
.lb-title { color:#fff; text-align:center; margin: -30px 0 6px; }
.lb-loc { color: rgba(255,255,255,.7); text-align:center; font-weight:500; font-size:.9rem; margin-bottom: 22px; }
.lb-pair { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lb-fig { margin:0; position:relative; border-radius: var(--radius); overflow:hidden; background:#1c2233; }
.lb-fig img { width:100%; height:auto; display:block; }
.lb-fig .ba-ph { position:static; min-height: 340px; }
.lb-badge { position:absolute; top:12px; left:12px; z-index:2; padding:6px 14px; border-radius:980px; color:#fff; font-weight:600; font-size:.74rem; letter-spacing:.04em; background: rgba(0,0,0,.5); }
.lb-badge--after { background: color-mix(in srgb, var(--orange) 90%, transparent); }
body.lb-lock { overflow: hidden; }
@media (max-width: 720px) { .lb { padding: 14px; } .lb-pair { grid-template-columns: 1fr; gap: 14px; } .lb-title { margin-top: -20px; font-size: 1.3rem; } }

/* ---- Footer --------------------------------------------------------- */
.site-footer { background: var(--navy-2); color: rgba(255,255,255,.65); padding: 72px 0 0; font-size:.92rem; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.site-footer h4 { color:#fff; font-size:.95rem; margin-bottom: 18px; letter-spacing:0; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; }
.site-footer .contact-info b { color:#fff; }
.site-footer .contact-info span, .site-footer .contact-info a { color: rgba(255,255,255,.75); }
.site-footer .contact-info .ci-ico { background: rgba(255,255,255,.08); color: #fff; }
.footer-links { list-style:none; padding:0; }
.footer-links li { margin-bottom: 10px; }
.foot-brand .brand-text b { color:#fff; }
.foot-brand .brand-text span { color: rgba(255,255,255,.55); }
.foot-brand p { margin-top: 16px; max-width: 300px; }
.social { display:flex; gap:10px; margin-top:18px; }
.social a { width:38px; height:38px; border-radius:50%; background: rgba(255,255,255,.08); display:grid; place-items:center; color:#fff; transition: background .2s, transform .3s var(--ease-out); }
.social a:hover { background: var(--cta); color:#fff; transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.footer-areas a { color: #ffc266 !important; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.82rem; color: rgba(255,255,255,.5); }

/* ---- Scroll animations ---------------------------------------------- */
/* Elements fade up and come into focus as they scroll in. Siblings in a
   grid are staggered by main.js (it sets --stagger). */
.js .reveal { opacity:0; transform: translateY(40px) scale(.98); filter: blur(4px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--stagger, 0s); }
.js .reveal--left  { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal.in { opacity:1; transform:none; filter:none; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 1200px) {
    .topbar .tb-right .tb-item:last-child { display: none; }
}
@media (max-width: 1080px) {
    .nav a { padding: 8px 9px; font-size: .88rem; }
    .nav-social { display: none; }
}
@media (max-width: 980px) {
    .hero { padding: 80px 0 110px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .hero h1 { margin-left: auto; margin-right: auto; }
    .hero .btn-row { justify-content: center; }
    .hero-media { max-width: 360px; margin: 0 auto; width: 100%; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2,1fr); row-gap: 40px; }
    .steps::before { display: none; }
    .stats { grid-template-columns: repeat(2,1fr); gap:40px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .trustbar .container { grid-template-columns: repeat(2, 1fr); }
    .topbar .tb-right { display:none; }
    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100dvh;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
        flex-direction: column; align-items: stretch;
        padding: 84px 22px 30px; gap: 2px; box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform .45s var(--ease-out); overflow-y:auto;
    }
    .nav.open { transform: translateX(0); }
    .nav a { padding: 13px 12px; border-bottom: 1px solid var(--line); border-radius:0; font-size: 1.05rem; }
    .has-drop > a { display: block; }
    .dropdown a { border-bottom: 0; padding: 10px 12px; font-size: .98rem; }
    .nav .btn { margin: 16px 0 0; padding: 14px; border-bottom: 0; border-radius: 980px; }
    .nav-social { display: inline-flex; margin: 18px 0 0; justify-content: center; }
    .dropdown { position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; background: transparent; -webkit-backdrop-filter:none; backdrop-filter:none;
        padding: 0 0 0 12px; max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
    .has-drop:hover .dropdown, .has-drop:focus-within .dropdown { max-height: 0; transform:none; }
    .has-drop.open .dropdown { max-height: 520px; }
    .has-drop::after { display:none; }
    .nav-toggle { display: block; z-index: 101; }
    .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2){ opacity:0; }
    .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
    .scroll-cue { display: none; }
    .glass-badge--a { left: -6px; }
    .glass-badge--b { right: -6px; }
}
@media (max-width: 620px) {
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .contact-info li { gap: 12px; }
    .ba-expand { top: auto; bottom: 14px; }
    .contact-info span, .contact-info a { word-break: break-word; overflow-wrap: anywhere; }
    .stats { grid-template-columns: 1fr 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .statement { padding: 90px 0; }
    .form-wrap { padding: 24px; }
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    .hero { padding: 56px 0 96px; }
    .hero .btn-row { flex-direction: column; gap: 16px; }
    .hero .btn-row .btn { width: 100%; }
    .trustbar .container { grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 18px; }
    .trustbar .ti { font-size: .88rem; flex-direction: column; text-align: center; gap: 6px; }
    .topbar .tb-left { gap: 14px; font-size: .8rem; }
    .topbar .tb-left .tb-item:nth-child(2) { display: none; }
    .cta-band { padding: 80px 0; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .card { padding: 28px 24px; }
    .card--media { padding: 0; }
    .page-hero { padding: 36px 0 44px; }
}

/* ===== Mobile tap-to-call in the header (hidden on desktop) ========== */
.nav-call { display: none; margin-left: auto; margin-right: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--cta); color: #fff; align-items: center; justify-content: center; }
.nav-call svg { width: 19px; height: 19px; }
.nav-call:hover { color: #fff; }

/* ===== Sticky bottom action bar (mobile only) ======================= */
.mobile-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
}
.mobile-cta a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: .98rem; padding: 13px 10px; border-radius: 980px; }
.mobile-cta svg { width: 18px; height: 18px; }
.mcta-call  { background: var(--navy); color: #fff; }
.mcta-quote { background: var(--cta); color: #fff; }
.mcta-call:hover, .mcta-quote:hover { color: #fff; }

@media (max-width: 900px) {
    .nav-call { display: inline-flex; }
    .mobile-cta { display: flex; }
    body { padding-bottom: 74px; }
}

/* ===== Respect "reduce motion" ======================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal, .hero-in { opacity: 1 !important; transform: none !important; filter: none !important; }
    .reveal-words .w { opacity: 1 !important; }
    .bubbles { display: none; }
}

/* =====================================================================
   PURONICS TECHNOLOGY (home) — "mission control" look: deep-space
   background, star field, Earth's glow, HUD labels, an interactive
   cutaway of the tank whose layers fill in and light up.
   ===================================================================== */
.tech {
    --tech-cyan: #5cc8ff;
    --tech-text: #e8f1fb;
    --tech-muted: rgba(232,241,251,.66);
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    position: relative; overflow: hidden; isolation: isolate;
    padding: 130px 0 140px; color: var(--tech-text);
    background: radial-gradient(120% 70% at 50% 0%, #0d2f5c 0%, #05152b 45%, #020810 100%);
}
.tech h2, .tech h3 { color: #fff; }
.tech .section-head p { color: var(--tech-muted); }
.tech-grad { background: linear-gradient(90deg, #dfe9f3 0%, var(--tech-cyan) 50%, #e9eef3 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: techShine 6s linear infinite; }
@keyframes techShine { to { background-position: -200% center; } }

/* star field: three layers of tiny dots drifting at different speeds */
.tech-stars, .tech-stars::before, .tech-stars::after {
    position: absolute; inset: -50% 0 0; z-index: -1; pointer-events: none; content: '';
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 200px 150px, #fff, transparent),
        radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.6), transparent),
        radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.7), transparent);
    background-size: 300px 220px;
    animation: starDrift 120s linear infinite; opacity: .55;
}
.tech-stars::before { inset: 0; background-size: 420px 300px; animation-duration: 180s; opacity: .7; }
.tech-stars::after  { inset: 0; background-size: 230px 170px; animation: twinkle 4s ease-in-out infinite alternate; opacity: .35; }
@keyframes starDrift { to { transform: translateY(50%); } }
@keyframes twinkle { to { opacity: .8; } }
/* grid lines, like a mission-control display */
.tech::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(92,200,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(92,200,255,.05) 1px, transparent 1px);
    background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
/* Earth's limb glowing at the bottom */
.tech-earth { position: absolute; z-index: -1; left: 50%; bottom: -1550px; width: 2000px; height: 1700px; margin-left: -1000px; border-radius: 50%;
    background: radial-gradient(circle at 50% 0%, #1b6fd0 0%, #0b3a78 18%, #04152c 45%);
    box-shadow: 0 -10px 60px rgba(92,200,255,.45), 0 -40px 160px rgba(47,141,228,.35), inset 0 12px 30px rgba(180,230,255,.35); }

.tech-hud { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--tech-cyan); border: 1px solid rgba(92,200,255,.35); background: rgba(92,200,255,.06); padding: 7px 14px; border-radius: 980px; margin-bottom: 22px; }
.tech-hud-dot { width: 8px; height: 8px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: hudPing 2s infinite; }
@keyframes hudPing { 70% { box-shadow: 0 0 0 10px rgba(52,199,89,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); } }

/* ---- system diagram ---- */
.tech-sys { display: grid; grid-template-columns: 1fr 300px; gap: 80px; align-items: center; }
.tech-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tech-item { border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.025);
    transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.tech-btn { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; text-align: left; background: none; border: 0; color: inherit; cursor: pointer; padding: 16px 20px; font: inherit; }
.tech-num { font-family: var(--mono); font-size: .78rem; color: var(--tech-cyan); border: 1px solid rgba(92,200,255,.4); border-radius: 8px; padding: 4px 7px; transition: background .3s, color .3s; }
.tech-title { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: #fff; letter-spacing: -.01em; }
.tech-title small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .85rem; color: var(--tech-muted); letter-spacing: 0; }
.tech-details { list-style: none; margin: 0; padding: 0 20px 0 70px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease-out), opacity .4s var(--ease), padding .4s var(--ease); }
.tech-details li { position: relative; padding-left: 18px; margin-bottom: 6px; color: var(--tech-muted); font-size: .95rem; line-height: 1.5; }
.tech-details li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--cta); border-radius: 2px; }
.tech-item.is-on { background: rgba(92,200,255,.08); border-color: rgba(92,200,255,.45); box-shadow: 0 0 30px rgba(92,200,255,.12), inset 0 0 0 1px rgba(92,200,255,.15); }
.tech-item.is-on .tech-num { background: var(--tech-cyan); color: #04152c; }
.tech-item.is-on .tech-details { max-height: 220px; opacity: 1; padding-bottom: 16px; }

.tech-visual { position: relative; }
.tech-glow { position: absolute; inset: 15% 10%; border-radius: 50%; background: radial-gradient(circle, rgba(92,200,255,.35), transparent 65%); filter: blur(30px); z-index: 0; animation: glowPulse 5s ease-in-out infinite; }
@keyframes glowPulse { 50% { opacity: .55; transform: scale(.94); } }
.tech-svg { position: relative; z-index: 1; width: 100%; height: auto; display: block; overflow: visible; animation: techFloat 7s ease-in-out infinite; }
@keyframes techFloat { 50% { transform: translateY(-10px); } }
.tech-svg .t-brand { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 3px; fill: #0a4f9e; opacity: .85; }
.tech-svg .t-brand-sm { font-family: var(--font-body); font-weight: 600; font-size: 6px; letter-spacing: 1.2px; fill: #aeb6c0; }
.tech-svg .t-lcd { font-family: var(--mono); font-weight: 700; font-size: 8.5px; fill: #0d3b2c; }
.tech-svg .lcd { animation: lcdGlow 3s ease-in-out infinite; }
@keyframes lcdGlow { 50% { fill: #c4f2dc; } }

/* layers fill in bottom-up when the section scrolls into view */
.tech-svg .fill { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.2s var(--ease-out); }
.tech.is-live .tech-svg .fill, html:not(.js) .tech-svg .fill { transform: none; }
.tech-svg .tl-gravel .fill { transition-delay: .15s; }
.tech-svg .tl-resin  .fill { transition-delay: .5s; }
.tech-svg .tl-shield .fill { transition-delay: .95s; }
.tech-svg .tl-silver .fill { transition-delay: 1.3s; }
.tech-svg .tl { transition: opacity .45s var(--ease), filter .45s var(--ease); }
.tech-sys.has-active .tech-svg .tl:not(.is-on) { opacity: .45; }
.tech-sys.has-active .tech-svg .tl-tank:not(.is-on) { opacity: .75; }
.tech-svg .tl.is-on { filter: drop-shadow(0 0 6px rgba(92,200,255,.9)) drop-shadow(0 0 18px rgba(92,200,255,.45)); }

.tech-svg .spark { opacity: .2; animation: spark 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tech-svg .spark:nth-of-type(3n)   { animation-delay: .6s; }
.tech-svg .spark:nth-of-type(3n+1) { animation-delay: 1.2s; }
.tech-svg .spark:nth-of-type(4n)   { animation-duration: 2.4s; }
@keyframes spark { 50% { opacity: 1; transform: scale(1.4); } }
.tech-svg .drop { opacity: 0; }
.tech.is-live .tech-svg .drop { animation: dropRise 3.2s linear infinite; }
.tech-svg .drop:nth-of-type(2) { animation-delay: .8s; }
.tech-svg .drop:nth-of-type(3) { animation-delay: 1.6s; }
.tech-svg .drop:nth-of-type(4) { animation-delay: 2.4s; }
@keyframes dropRise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-330px); opacity: 0; } }
.tech-svg .scan { opacity: 0; }
.tech.is-live .tech-svg .scan { animation: scan 4.5s cubic-bezier(.45,0,.55,1) 1.8s infinite; }
@keyframes scan { 0% { transform: translateY(-24px); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(352px); opacity: 0; } }

.tech-svg .pin { cursor: pointer; outline: none; }
.tech-svg .pin-line { stroke: rgba(92,200,255,.55); stroke-width: 1; stroke-dasharray: 3 3; }
.tech-svg .pin-anchor { fill: var(--tech-cyan); }
.tech-svg .pin-dot { fill: rgba(4,21,44,.9); stroke: var(--tech-cyan); stroke-width: 1.5; transition: fill .3s; }
.tech-svg .pin-num { font-family: var(--mono); font-size: 10px; font-weight: 700; fill: #fff; pointer-events: none; }
.tech-svg .pin-pulse { fill: none; stroke: var(--tech-cyan); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pinPulse 2.4s ease-out infinite; }
@keyframes pinPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2); opacity: 0; } }
.tech-svg .pin.is-on .pin-dot, .tech-svg .pin:hover .pin-dot, .tech-svg .pin:focus-visible .pin-dot { fill: var(--cta); stroke: #ffd38a; }
.tech-svg .pin.is-on .pin-line { stroke: var(--cta); stroke-dasharray: none; }

/* ---- feature cards ---- */
.tech-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 90px; }
.tech-card { position: relative; overflow: hidden; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out); }
.tech-card:hover { transform: translateY(-6px); border-color: rgba(92,200,255,.4); box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 40px rgba(92,200,255,.12); }
.tech-card h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.tech-card p { color: var(--tech-muted); margin: 0; }
.tech-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tech-cyan); }
.tech-card .btn { align-self: flex-start; margin-top: 10px; }

.tech-card--shield { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 36px; padding: 32px 40px; }
.tech-card--shield h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tech-card--shield p { max-width: 560px; font-size: 1.05rem; }
.shield-svg { width: 180px; flex: 0 0 180px; height: auto; overflow: visible; }
.shield-svg .orbit-ring { fill: none; stroke: rgba(92,200,255,.3); stroke-width: 1; }
.shield-svg .orbit { transform-box: view-box; transform-origin: 100px 100px; animation: orbit 6s linear infinite; }
.shield-svg .o2 { animation-duration: 9s; animation-direction: reverse; }
.shield-svg .o3 { animation-duration: 12s; }
.shield-svg .orbit-dot { fill: #e9eef3; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #5cc8ff); }
@keyframes orbit { to { transform: rotate(360deg); } }
.shield-svg .shield-body { filter: drop-shadow(0 0 16px rgba(92,200,255,.45)); animation: shieldBreath 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes shieldBreath { 50% { transform: scale(1.04); filter: drop-shadow(0 0 26px rgba(92,200,255,.75)); } }
.shield-svg .shield-s { font-family: var(--font-head); font-weight: 800; font-size: 60px; fill: #0b2a52; }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: auto; max-width: 420px; }
.cert { position: relative; aspect-ratio: 1; }
.cert svg { width: 100%; height: 100%; overflow: visible; }
.cert-outer { fill: rgba(255,255,255,.04); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.cert-inner { fill: rgba(4,21,44,.6); stroke: rgba(92,200,255,.35); stroke-width: 1; }
.cert-ring { transform-box: view-box; transform-origin: 60px 60px; animation: orbit 30s linear infinite; }
.cert-ring-text { font-family: var(--mono); font-size: 7.2px; letter-spacing: 1.4px; fill: rgba(232,241,251,.75); }
.cert-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.cert-label b { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; line-height: 1; }
.cert-label small { font-size: .52rem; line-height: 1.25; color: var(--tech-muted); margin-top: 3px; }
.cert--cWqa .cert-outer { stroke: #e8b923; fill: rgba(232,185,35,.08); }
.cert--cWqa .cert-ring-text { fill: #f3d36b; }
.cert--cDia .cert-label b { color: #8fb8ff; }
.cert:hover .cert-ring { animation-duration: 6s; }

.tech-card--solar { background: linear-gradient(160deg, rgba(243,146,0,.16), rgba(255,255,255,.02) 60%); }
.solar-svg { width: 100%; max-width: 320px; height: auto; overflow: visible; }
.solar-svg .sun { transform-box: view-box; transform-origin: 196px 34px; animation: orbit 20s linear infinite; }
.solar-svg .sun-core { fill: #ffc24a; filter: drop-shadow(0 0 10px #ffb020); }
.solar-svg .sun-ray { stroke: #ffc24a; stroke-width: 2.5; stroke-linecap: round; }
.solar-svg .panel { fill: #123a6b; stroke: #8fb8e0; stroke-width: 1.5; }
.solar-svg .panel-grid { stroke: rgba(143,184,224,.6); stroke-width: 1; }
.solar-svg .energy { fill: none; stroke: #ffc24a; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; animation: energy 1s linear infinite; filter: drop-shadow(0 0 4px #ffb020); }
@keyframes energy { to { stroke-dashoffset: -12; } }
.solar-svg .mini-valve { fill: #1b1e24; }


@media (max-width: 980px) {
    .tech { padding: 90px 0 110px; }
    .tech-sys { grid-template-columns: 1fr; gap: 30px; }
    .tech-visual { order: -1; max-width: 300px; margin: 0 auto; width: 100%; }
}
@media (max-width: 620px) {
    .tech-cards { grid-template-columns: 1fr; margin-top: 60px; }
    .tech-card--shield { flex-direction: column; text-align: center; }
    .tech-details { padding-left: 20px; }
    .tech-btn { padding: 14px 16px; }
}

/* ---- Admin: homepage sections ------------------------------------- */
.home-fixed { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 10px; border-radius: var(--radius-sm);
    border: 1.5px dashed var(--line); color: var(--muted); font-weight: 500; }
.home-fixed svg { width: 18px; height: 18px; color: var(--orange); }
.home-fixed span { margin-left: auto; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.home-row { scroll-margin-top: 120px; }
.home-row:target { animation: rowFlash 1.4s var(--ease); }
@keyframes rowFlash { 0%, 40% { border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); } }
.home-pos { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--surface-2); color: var(--orange); display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.home-row.is-hidden { background: var(--bg-alt); }
.home-row.is-hidden .adm-info b, .home-row.is-hidden .home-pos { opacity: .55; }
.home-badge { font-style: normal; font-size: .7rem; font-weight: 600; color: #b4322b; background: #fdecec; border-radius: 980px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.home-row .adm-actions form { margin: 0; }
.home-row .btn:disabled { opacity: .4; cursor: default; }
.adm-link { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 500; margin-top: 3px; }
.adm-link svg { width: 14px; height: 14px; }
h2 .adm-link { margin-left: 10px; font-family: var(--font-body); }
.toggle-blocked { font-size: .8rem; color: #b4322b; }

/* ---- Admin: areas we serve ---------------------------------------- */
.areas-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.area-editor { position: sticky; top: 90px; }
.area-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin-bottom: 10px; }
.area-card.is-editing { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent); }
.area-head { display: flex; align-items: center; gap: 12px; }
.area-head form { margin: 0; }
.area-head .btn { padding: 7px 14px; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-left: 42px; }
.chip { font-size: .8rem; background: var(--surface-2); color: var(--heading); border-radius: 980px; padding: 3px 10px; }
.city-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.city-tools input { flex: 1; min-width: 0; }
.city-tools .btn { padding: 8px 12px; font-size: .82rem; white-space: nowrap; }
.city-list { max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--bg-alt); }
.city-opt { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; font-size: .9rem; color: var(--text) !important; padding: 6px 8px; border-radius: 8px; cursor: pointer; margin: 0 !important; }
.city-opt:hover { background: var(--surface); }
.city-opt input { width: auto !important; accent-color: var(--orange); }
.city-opt small { margin-left: auto; font-size: .68rem; color: var(--muted); }
.city-opt[hidden] { display: none !important; }
@media (max-width: 900px) { .areas-layout { grid-template-columns: 1fr; } .area-editor { position: static; } }
@media (max-width: 520px) { .chips { padding-left: 0; } }

/* ---- Installations grouped by city -------------------------------- */
.section--tight { padding: 56px 0 0; }
.city-browse-h { font-size: 1.5rem; margin-bottom: 16px; }
.city-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.city-filter button, .city-filter a {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .92rem; font-weight: 500;
    padding: 8px 14px; border-radius: 980px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease-out);
}
.city-filter button:hover, .city-filter a:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.city-filter span { font-size: .75rem; background: var(--surface-2); color: var(--orange); border-radius: 980px; padding: 1px 8px; }
.city-filter .is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.city-filter .is-on span { background: rgba(255,255,255,.25); color: #fff; }
.city-group { margin-bottom: 72px; scroll-margin-top: 90px; }
.city-group[hidden] { display: none; }
.city-group-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.city-group-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.city-group-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--orange); display: grid; place-items: center; }
.city-group-ico svg { width: 20px; height: 20px; }
.city-group-county { color: var(--muted); font-size: .95rem; }
.city-group-count { margin-left: auto; font-size: .88rem; color: var(--muted); }
a.city-group-count { color: var(--orange); font-weight: 500; }

/* ---- The representative (Cesar) ----------------------------------- */
.rep-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(16,40,80,.18); }
.rep-avatar--initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; }
.rep-avatar--xl { width: 110px; height: 110px; flex-basis: 110px; font-size: 2rem; }
.hero-rep, .rep-card {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; padding: 10px 12px 10px 10px; border-radius: 980px;
    background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95);
    -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
    box-shadow: 0 10px 30px rgba(16,40,80,.10); text-align: left;
}
.hero-rep span:not(.rep-avatar), .rep-card span:not(.rep-avatar) { display: flex; flex-direction: column; font-size: .86rem; color: var(--muted); line-height: 1.35; }
.hero-rep b, .rep-card b { font-family: var(--font-head); font-size: 1.05rem; color: var(--heading); }
.hero-rep em { font-style: normal; color: var(--orange); font-weight: 500; }
.hero-rep-call { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--cta); color: #fff; display: grid; place-items: center; margin-left: 4px; transition: transform .3s var(--ease-out), background .2s; }
.hero-rep-call:hover { color: #fff; background: var(--cta-dark); transform: scale(1.08); }
.hero-rep-call svg { width: 19px; height: 19px; }
.rep-card { margin: 0 0 22px; background: var(--bg-alt); border-color: var(--line); box-shadow: none; padding-right: 22px; }
.profile-photo-row { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
@media (max-width: 980px) { .hero-rep { margin-left: auto; margin-right: auto; } }
@media (max-width: 520px) { .profile-photo-row { flex-direction: column; align-items: flex-start; } .hero-rep span:not(.rep-avatar) { font-size: .8rem; } }

/* ---- New Homeowners: animated neighbor conversation -------------- */
.neighbors { padding: 120px 0; background: var(--bg); }
.neighbors .section-head h2 { font-family: var(--font-head); }
.nb-stage { position: relative; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); isolation: isolate; background: #bfe3f6; }
.nb-scene { display: block; width: 100%; height: auto; }
.nb-sold-text { font-family: var(--font-head); font-weight: 800; font-size: 24px; fill: #c0392b; letter-spacing: 2px; }
.nb-clouds g { animation: nbCloud 40s linear infinite; }
.nb-clouds g:nth-child(2) { animation-duration: 55s; animation-delay: -20s; }
@keyframes nbCloud { from { transform: translateX(-120px); } to { transform: translateX(1100px); } }
.nb-trees circle { transform-box: fill-box; transform-origin: 50% 100%; animation: nbSway 6s ease-in-out infinite; }
.nb-trees circle:nth-child(2n) { animation-delay: -2s; }
@keyframes nbSway { 50% { transform: rotate(1.2deg) scale(1.01); } }

/* the person speaking nods and their mouth moves */
.nb-person .nb-head { transform-box: fill-box; transform-origin: 50% 90%; transition: transform .4s var(--ease-out); }
.nb-person .nb-mouth { transform-box: fill-box; transform-origin: center; }
.nb-person.is-talking .nb-head { animation: nbNod 1.4s ease-in-out infinite; }
.nb-person.is-talking .nb-mouth { animation: nbTalk .32s ease-in-out infinite alternate; }
.nb-person.is-listening .nb-head { transform: rotate(-2deg); }
.nb-new.is-listening .nb-head { transform: rotate(2deg); }
@keyframes nbNod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(2.5deg) translateY(-2px); } 70% { transform: rotate(-1.5deg); } }
@keyframes nbTalk { from { transform: scaleY(.6); } to { transform: scaleY(2.6); } }
.nb-glass { transform-box: fill-box; transform-origin: 50% 100%; }
.nb-old.is-talking .nb-glass { animation: nbRaise 2.8s ease-in-out infinite; }
@keyframes nbRaise { 50% { transform: translateY(-10px) rotate(-6deg); } }
.nb-fizz { animation: nbFizz 2s ease-in infinite; }
.nb-fizz.f2 { animation-delay: .9s; }
@keyframes nbFizz { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }

/* speech bubbles */
.nb-bubble {
    position: absolute; top: 4%; width: min(38%, 400px); z-index: 2;
    background: #fff; color: var(--text); border-radius: 26px; padding: 18px 22px 20px;
    box-shadow: 0 14px 40px rgba(16,40,80,.18);
    opacity: 0; transform: translateY(14px) scale(.92); transform-origin: 30% 100%;
    transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), filter .45s;
}
.nb-bubble--old { left: 4%; }
.nb-bubble--new { right: 4%; transform-origin: 70% 100%; }
.nb-bubble::after { content: ''; position: absolute; bottom: -16px; width: 30px; height: 30px; background: #fff; border-radius: 0 0 30px 0; }
.nb-bubble--old::after { left: 56%; transform: skewX(20deg); }
.nb-bubble--new::after { right: 56%; transform: skewX(-20deg) scaleX(-1); }
.nb-bubble.is-shown { opacity: 1; transform: none; }
.nb-bubble.is-past { opacity: .55; transform: scale(.96); filter: saturate(.6); }
.nb-who { display: block; font-family: var(--font-head); font-weight: 700; font-style: italic; color: var(--heading); font-size: .95rem; margin-bottom: 4px; }
.nb-bubble p { margin: 0; font-weight: 500; font-size: clamp(.92rem, 1.4vw, 1.08rem); line-height: 1.45; min-height: 1.4em; }
.nb-bubble p.is-swap { animation: nbSwap .4s var(--ease-out); }
@keyframes nbSwap { from { opacity: 0; transform: translateY(6px); } }
.nb-typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.nb-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .4; animation: nbDot 1s infinite; }
.nb-typing i:nth-child(2) { animation-delay: .15s; }
.nb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes nbDot { 30% { opacity: 1; transform: translateY(-4px); } }
.nb-bubble mark { background: none; color: var(--orange); font-weight: 700; }

/* big caption on the fence, replaced by Cesar's card at the end */
.nb-caption, .nb-cta { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 2; width: min(92%, 760px); text-align: center; transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.nb-caption { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(1.2rem, 2.8vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.nb-cta { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 14px; padding: 14px 18px; border-radius: 22px;
    background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
    opacity: 0; transform: translate(-50%, 30px); pointer-events: none; text-align: left; }
.nb-cta span:not(.rep-avatar) { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.3; margin-right: 6px; }
.nb-cta b { font-family: var(--font-head); color: var(--heading); font-size: 1.05rem; }
.nb-cta .btn { padding: 10px 18px; font-size: .92rem; }
.nb-stage.is-done .nb-caption { opacity: 0; transform: translate(-50%, 20px); }
.nb-stage.is-done .nb-cta { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.nb-controls { position: absolute; z-index: 3; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.nb-dots { display: flex; gap: 6px; padding: 6px 10px; border-radius: 980px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nb-dots span { width: 7px; height: 7px; border-radius: 980px; background: rgba(19,74,142,.25); transition: width .35s var(--ease-out), background .3s; }
.nb-dots span.on { background: var(--heading); }
.nb-dots span.now { width: 20px; background: var(--orange); }
.nb-replay { border: 0; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: var(--heading); background: rgba(255,255,255,.85); border-radius: 980px; padding: 6px 14px; }
.nb-replay:hover { background: #fff; color: var(--orange); }


/* phones: bubbles sit under the drawing, like a chat */
@media (max-width: 760px) {
    .neighbors { padding: 80px 0; }
    .nb-stage { display: flex; flex-direction: column; border-radius: 22px; background: var(--bg-alt); }
    .nb-scene { order: 0; }
    .nb-bubble { position: relative; top: auto; left: auto; right: auto; width: auto; margin: 10px 14px 4px; order: 1; }
    .nb-bubble--old { margin-right: 48px; }
    .nb-bubble--new { margin-left: 48px; }
    .nb-bubble::after { display: none; }
    .nb-bubble:not(.is-shown):not(.is-past) { display: none; }
    .nb-caption { order: -1; position: static; transform: none; width: auto; margin: 16px 16px 12px; color: var(--heading); text-shadow: none; font-size: 1.1rem; }
    .nb-cta { order: 3; position: relative; left: auto; bottom: auto; transform: none; width: auto; margin: 10px 14px 16px; display: none; }
    .nb-stage.is-done .nb-cta { display: flex; transform: none; }
    .nb-stage.is-done .nb-caption { opacity: 1; transform: none; }
    .nb-controls { top: auto; bottom: auto; position: static; transform: none; order: 4; justify-content: center; margin: 4px 0 14px; }
}

/* New Homeowners — real photo version: a slow "camera" drift toward whoever
   is talking, with a soft shade at the top and bottom so text stays readable. */
.nb-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.nb-photo img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; translate: 0 0; transition: translate 3.5s var(--ease-out); animation: nbKen 24s ease-in-out infinite alternate; }
@keyframes nbKen { to { scale: 1.18; } }
.nb-stage[data-speaker="old"] .nb-photo img { translate: 3% 0; }
.nb-stage[data-speaker="new"] .nb-photo img { translate: -3% 0; }
.nb-photo::before, .nb-photo::after { content: ''; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.nb-photo::before { top: 0; height: 45%; background: linear-gradient(rgba(10,30,60,.35), transparent); }
.nb-photo::after { bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(10,20,40,.55)); }
.nb-admin-note { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(90%, 520px); text-align: center;
    background: rgba(255,255,255,.95); border: 2px dashed var(--orange); border-radius: 16px; padding: 14px 18px; font-size: .92rem; font-weight: 500; color: var(--heading); }
.nb-admin-note svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--orange); }
@media (max-width: 760px) {
    .nb-photo { aspect-ratio: 4 / 3; }
    .nb-photo::before { display: none; }
    .nb-admin-note { position: static; transform: none; width: auto; margin: 0 14px 10px; order: 0; }
}
/* photo version: tails point at the two people in the photo */
.nb-photo ~ .nb-bubble--old::after { left: 18%; }
.nb-photo ~ .nb-bubble--new::after { right: auto; left: 12%; transform: skewX(20deg); }
.nb-photo ~ .nb-caption { bottom: 5%; }

/* visually hidden, still read by screen readers and search engines */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* soft blue section (Water Solutions) so it stands apart from the white sections around it */
.section--sky { background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 85%, var(--bg)) 0%, var(--surface-2) 55%, color-mix(in srgb, var(--surface-2) 60%, var(--bg)) 100%); }
.section--sky .card { background: var(--surface); box-shadow: var(--shadow); }
.section--sky .card .ico { background: var(--surface-2); box-shadow: none; }

/* Hero, conversation version: the neighbors scene opens the page full width,
   sized to fit the screen, with the headline and call to action right below. */
.hero--convo { padding: 24px 0 72px; }
.hero--convo .nb-stage { box-shadow: var(--shadow-lg); }
.hero--convo .nb-photo { aspect-ratio: auto; height: clamp(420px, calc(100svh - 150px), 56.25vw); }
@media (max-width: 980px) {
}
@media (max-width: 760px) {
    .hero--convo { padding: 12px 0 56px; }
    .hero--convo .nb-photo { height: auto; aspect-ratio: 4 / 3; }
}

/* Meet Cesar — headline + call to action next to his photo, its own section
   right after the conversation hero. */
.hero--convo { padding-bottom: 40px; }
.hero-intro { padding: 72px 0 110px; background: linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 40%, var(--bg)) 100%); }
.intro-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.intro-photo { position: relative; aspect-ratio: var(--ratio, .8); border-radius: 32px; overflow: visible; }
.intro-photo > img, .intro-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; box-shadow: var(--shadow-lg); display: block; }
.intro-placeholder { position: relative; overflow: hidden; display: grid; place-items: end center;
    background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, color-mix(in srgb, var(--orange) 22%, #fff) 70%, color-mix(in srgb, var(--orange) 38%, #fff) 100%); }
.intro-placeholder svg { width: 72%; height: auto; aspect-ratio: 200 / 240; fill: color-mix(in srgb, var(--heading) 42%, #fff); opacity: .55; }
.intro-admin-note { position: absolute; top: 18px; left: 18px; right: 18px; font-size: .85rem; font-weight: 500; text-align: center; color: var(--heading);
    background: rgba(255,255,255,.92); border: 2px dashed var(--orange); border-radius: 14px; padding: 10px 12px; }
.intro-admin-note svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--orange); }
.intro-badge { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-size: .8rem; line-height: 1.25; color: var(--muted); animation: introFloat 6s ease-in-out infinite; }
.intro-badge b { font-family: var(--font-head); font-size: 1.7rem; color: var(--orange); line-height: 1; }
.intro-badge svg { width: 26px; height: 26px; color: var(--orange); }
.intro-badge--a { top: 12%; right: -34px; }
.intro-badge--b { top: 42%; left: -34px; animation-delay: -3s; }
@keyframes introFloat { 50% { transform: translateY(-10px); } }
.intro-tag { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; justify-content: space-between;
    background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 20px; padding: 12px 12px 12px 18px; box-shadow: var(--shadow); }
.intro-tag span { display: flex; flex-direction: column; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.intro-tag b { font-family: var(--font-head); font-size: 1.1rem; color: var(--heading); }
.intro-tag em { display: block; font-style: normal; color: var(--orange); font-weight: 500; }
.intro-text h1 { color: var(--heading); font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-bottom: .45em; }
.intro-text h1 .accent { display: block; background: linear-gradient(90deg, var(--orange) 0%, var(--orange-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.intro-text .eyebrow { color: var(--orange); }
.intro-text p { font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.55; color: color-mix(in srgb, var(--heading) 80%, #000); max-width: 560px; margin-bottom: 2rem; }
.intro-text .btn-row { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
@media (prefers-reduced-motion: reduce) { .intro-badge { animation: none; } }
@media (max-width: 900px) {
    .intro-grid { grid-template-columns: 1fr; gap: 48px; }
    .intro-photo { max-width: 400px; width: 100%; margin: 0 auto; order: 2; }
    .intro-text { text-align: center; }
    .intro-text p { margin-left: auto; margin-right: auto; }
    .intro-text .btn-row { justify-content: center; }
    .intro-badge--a { right: -10px; } .intro-badge--b { left: -10px; }
}
@media (max-width: 760px) { .hero--convo { padding-bottom: 24px; } .hero-intro { padding: 48px 0 80px; } }

/* Wide photo of Cesar: give the photo more room, keep it whole, and put the
   name tag under the picture so it never covers his hands or the product. */
.intro-photo > img { background: #fff; }
.intro-grid--wide { grid-template-columns: 1.15fr .85fr; gap: 56px; }
.intro-grid--wide .intro-photo { aspect-ratio: auto; }
.intro-grid--wide .intro-photo > img { height: auto; aspect-ratio: var(--ratio); }
.intro-grid--wide .intro-tag { position: relative; left: auto; right: auto; bottom: auto; margin-top: 16px; }
.intro-grid--wide .intro-badge--a { top: -22px; right: -18px; }
.intro-grid--wide .intro-badge--b { top: auto; bottom: 120px; left: -22px; }
@media (max-width: 900px) {
    .intro-grid--wide { grid-template-columns: 1fr; gap: 48px; }
    .intro-grid--wide .intro-photo { max-width: 640px; }
    .intro-grid--wide .intro-badge--a { right: -8px; } .intro-grid--wide .intro-badge--b { left: -8px; }
}

/* Phones: the frame is narrower than the photo, so pan further toward whoever
   is talking — all the way left for the neighbor (old man), right for "You". */
@media (max-width: 760px) {
    .nb-stage[data-speaker="old"] .nb-photo img { translate: 6% 0; object-position: 0% 50%; }
    .nb-stage[data-speaker="new"] .nb-photo img { translate: -5% 0; object-position: 100% 50%; }
    .nb-photo img { transition: translate 1.6s var(--ease-out), object-position 1.6s var(--ease-out); }
}

/* ---- System / model cards on solution pages ---- */
.model-grid--pair { max-width: 880px; margin-inline: auto; }
.model-card { display: flex; flex-direction: column; }
.model-card > a { margin-top: auto; }
.model-photo { aspect-ratio: 4 / 3; margin: -8px -8px 20px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(15, 40, 80, .08); }
.model-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.model-ph { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: .85rem; text-align: center; padding: 16px; }
.model-ph svg { width: 34px; height: 34px; opacity: .55; }
.model-more { align-self: flex-start; margin-top: auto; }

/* ---- "Learn More" popup ---- */
.model-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 22px; background: var(--white, #fff); color: inherit; box-shadow: 0 30px 80px rgba(8, 25, 55, .35); overflow: auto; overscroll-behavior: contain; }
.model-dialog::backdrop { background: rgba(8, 20, 40, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.model-dialog[open] { animation: modelPop .28s var(--ease-out, ease-out); }
@keyframes modelPop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.model-dialog-x { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: 1.7rem; line-height: 1; cursor: pointer; color: #1a2a40; }
.model-dialog-x:hover { background: var(--orange); color: #fff; }
.model-dialog-photo { background: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: 1px solid rgba(15, 40, 80, .08); }
.model-dialog-photo img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.model-dialog-body { padding: 28px 32px 32px; }
.model-dialog-body h2 { margin: 6px 0 14px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.model-dialog-body p { margin: 0 0 14px; line-height: 1.7; }
.model-dialog-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 560px) { .model-dialog-body { padding: 22px 20px 24px; } .model-dialog-cta .btn { flex: 1 1 100%; justify-content: center; } }
body.has-dialog { overflow: hidden; }

/* Popup with a photo: text on the left, photo on the right (photo on top on phones) */
.model-dialog--photo { width: min(1040px, calc(100vw - 32px)); }
.model-slide--photo .model-dialog-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.model-slide--photo .model-dialog-body { order: 1; padding: 40px 36px 36px 40px; }
.model-slide--photo .model-dialog-photo { order: 2; position: sticky; top: 0; aspect-ratio: auto; height: min(560px, calc(100dvh - 48px)); padding: 64px 28px 28px; border-bottom: 0; border-left: 1px solid rgba(15, 40, 80, .08); }
.model-slide--photo .model-dialog-photo img { padding: 0; max-height: 100%; }
@media (max-width: 760px) {
    .model-slide--photo .model-dialog-grid { grid-template-columns: 1fr; }
    .model-slide--photo .model-dialog-photo { order: 0; position: static; height: 230px; padding: 18px 60px; border-left: 0; border-bottom: 1px solid rgba(15, 40, 80, .08); }
    .model-slide--photo .model-dialog-body { padding: 22px 20px 24px; }
}

/* "Why You Need It" block on solution pages — compact */
.section--why { padding: 64px 0; }
.section--why .section-head { margin-bottom: 32px; }
.section--why .section-head:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .section--why { padding: 48px 0; } }

/* Badge on a system card photo (e.g. "Exclusive to Ameritek") */
.model-photo { position: relative; }
.model-badge { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 11px; border-radius: 980px; background: linear-gradient(135deg, #f4c542, #d99a1b); color: #3a2600; font-weight: 700; font-size: .8rem; letter-spacing: .02em; box-shadow: 0 4px 14px rgba(160, 110, 0, .3); }
.model-badge svg { width: 16px; height: 16px; }
.model-badge--inline { position: static; margin: -4px 0 16px; }

/* iPhone Safari: a 100%-height image inside a grid box can spill out of it.
   Size product photos with max-width/max-height inside a flex box instead. */
.model-photo, .model-dialog-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.model-photo img, .model-dialog-photo img,
.model-slide--photo .model-dialog-photo img { width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; flex: 0 1 auto; object-fit: contain; }
.model-photo img { padding: 0; }
.model-photo { padding: 14px; }

/* Solution intro on phones/tablets: heading → photo → text → button */
@media (max-width: 980px) {
    .split--svc { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
    .split--svc > .reveal:first-child { display: contents; }
    .split--svc > .reveal:first-child > * { order: 1; }
    .split--svc > .reveal:last-child { order: 2; margin: 8px 0 28px; }
    .split--svc > .reveal:first-child > p { order: 3; }
    .split--svc > .reveal:first-child > .btn { order: 4; align-self: flex-start; margin-top: 8px; }
    .split--svc > .reveal:first-child > .ico { display: none; }
}

/* Popup text: sub-headings and bullet lists */
.model-dialog-body .model-dialog-sub { font-size: 1.05rem; margin: 22px 0 8px; color: var(--heading); }
.model-dialog-list { margin: 0 0 14px; padding-left: 0; list-style: none; }
.model-dialog-list li { position: relative; padding-left: 22px; margin-bottom: 7px; line-height: 1.6; }
.model-dialog-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }

/* Solution-page main photo: always show the whole photo (no cropping) */
.split--svc .framed-img { object-fit: contain; background: #fff; padding: 18px; }

/* System card photos: square frame so tall product shots aren't tiny */
.model-photo { aspect-ratio: 1 / 1; }
.model-grid--pair .model-photo { aspect-ratio: 4 / 3; }

/* "Why Ameritek Is the Right Choice" cards: readable titles, centered,
   3 per row (2 cards sit centered; a 4th starts a new centered row). */
.why-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.why-grid > .card { flex: 0 1 calc((100% - 48px) / 3); text-align: center; }
.why-grid > .card .ico { margin-left: auto; margin-right: auto; }
.section--navy .why-grid .card h3 { color: var(--heading); }
@media (max-width: 980px) { .why-grid > .card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .why-grid > .card { flex-basis: 100%; } }

/* Popup slides: arrow bar at the bottom of the popup */
.model-slide[hidden] { display: none; }
.model-slide-nav { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid rgba(15, 40, 80, .1); }
.model-slide-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 980px; border: 1.5px solid var(--orange); background: #fff; color: var(--orange); font: 600 .95rem var(--font-body); cursor: pointer; }
.model-slide-btn:hover { background: var(--orange); color: #fff; }
.model-slide-btn--next { background: var(--orange); color: #fff; font-size: 1rem; }
.model-slide-btn--next:hover { filter: brightness(1.1); }
.model-slide-btn[disabled] { visibility: hidden; }
.model-slide-dots { display: flex; gap: 8px; }
.model-slide-dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(15, 40, 80, .2); cursor: pointer; }
.model-slide-dots button[aria-current="true"] { background: var(--orange); width: 26px; border-radius: 6px; }
.model-slide-nav .model-slide-btn { font-size: 1rem; }
@media (max-width: 560px) {
    .model-slide-nav { padding: 10px 12px; }
    .model-slide-btn { padding: 0 14px; font-size: .9rem; }
    .model-slide-btn span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Photo-only popup slide: the photo fills the whole popup */
.model-slide--full .model-dialog-photo { display: flex; align-items: center; justify-content: center; height: auto; aspect-ratio: auto; padding: 60px 28px 20px; border: 0; background: #fff; }
.model-slide--full .model-dialog-photo img { width: 100%; height: auto; max-width: 100%; max-height: calc(100dvh - 48px - 150px); object-fit: contain; padding: 0; }
@media (max-width: 560px) { .model-slide--full .model-dialog-photo { padding: 60px 10px 12px; } }

/* Slide arrows (replace the dots) */
.model-slide-arrow { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 48px; height: 48px; padding: 0; border-radius: 980px; border: 1.5px solid var(--orange); background: #fff; color: var(--orange); font: 600 .95rem var(--font-body); cursor: pointer; transition: background .2s, color .2s; }
.model-slide-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.model-slide-arrow:hover { background: var(--orange); color: #fff; }
.model-slide-arrow--next { background: var(--orange); color: #fff; padding: 0 10px 0 20px; }
.model-slide-arrow--next span:empty { display: none; }
.model-slide-arrow--next:has(span:empty) { padding: 0; }
.model-slide-arrow--next:hover { filter: brightness(1.1); }
.model-slide-arrow[disabled] { visibility: hidden; }
.model-slide-cta { font-weight: 600; font-size: .95rem; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
    .model-slide-cta { font-size: .85rem; text-align: center; }
    .model-slide-arrow--next span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* "Get a Free Water Test" in the slide bar is a real button again */
.model-slide-nav .model-slide-cta, .model-slide-nav .model-slide-cta:hover { color: #fff; }
.model-slide-nav .model-slide-cta { text-decoration: none; min-height: 48px; padding: 0 22px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 560px) { .model-slide-nav .model-slide-cta { padding: 0 14px; font-size: .82rem; min-height: 44px; white-space: normal; line-height: 1.15; } }

/* Product photos pinned to their frame (iPhone Safari ignores max-height:100%
   inside these boxes, which let tall photos overflow and get cut off). */
.model-photo { position: relative; }
.model-photo img { position: absolute; top: 14px; left: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; max-height: none; object-fit: contain; }
.model-slide--photo .model-dialog-photo { position: sticky; }
.model-slide--photo .model-dialog-photo img { position: absolute; top: 64px; left: 28px; width: calc(100% - 56px); height: calc(100% - 92px); max-width: none; max-height: none; object-fit: contain; }
@media (max-width: 760px) {
    .model-slide--photo .model-dialog-photo { position: relative; }
    .model-slide--photo .model-dialog-photo img { top: 16px; left: 56px; width: calc(100% - 112px); height: calc(100% - 32px); }
}

/* Slide bar on phones: the next button gets its own full row so its label is
   never cut; Back + Free Water Test share the row below. */
@media (max-width: 560px) {
    .model-slide-nav { flex-wrap: wrap; gap: 8px; padding: 10px 12px 12px; }
    .model-slide-nav .model-slide-arrow--next { order: 1; flex: 1 1 100%; justify-content: center; height: 46px; padding: 0 16px; }
    .model-slide-nav .model-slide-arrow--next span { max-width: none; overflow: visible; white-space: normal; }
    .model-slide-nav .model-slide-arrow:not(.model-slide-arrow--next) { order: 2; height: 42px; min-width: 42px; }
    .model-slide-nav .model-slide-cta { order: 3; flex: 1 1 0; min-height: 42px; font-size: .88rem; white-space: nowrap; }
    .model-slide-nav .model-slide-arrow[disabled] { display: none; }
}

/* ---- Zoom on popup photos ---- */
.model-slide--full .model-dialog-photo { position: relative; }
.model-dialog-photo img { cursor: zoom-in; }
.model-zoom-btn { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border: 0; border-radius: 980px; background: rgba(15, 30, 55, .78); color: #fff; font: 600 .85rem var(--font-body); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.model-zoom-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.model-zoom-btn:hover { background: var(--orange); }

.zoom-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1424; color: #fff; overflow: hidden; }
.zoom-dialog::backdrop { background: #0b1424; }
.zoom-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.zoom-stage.is-dragging { cursor: grabbing; }
.zoom-stage img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; transform-origin: center center; will-change: transform; -webkit-user-drag: none; pointer-events: none; background: #fff; border-radius: 6px; }
.zoom-bar { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 980px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.zoom-bar button { min-width: 46px; height: 46px; border: 0; border-radius: 980px; background: transparent; color: #fff; font: 600 1.4rem var(--font-body); cursor: pointer; }
.zoom-bar button:hover { background: rgba(255,255,255,.18); }
.zoom-bar .zoom-pct { font-size: .9rem; min-width: 70px; }
.zoom-hint { position: absolute; top: max(18px, env(safe-area-inset-top)); left: 16px; right: 72px; margin: 0; font-size: .85rem; color: rgba(255,255,255,.75); }
.zoom-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.zoom-close:hover { background: var(--orange); }

/* ---- Questions & Answers (solution pages) ---- */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid rgba(15, 40, 80, .1); border-radius: 16px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 1.08rem; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item summary:hover { color: var(--orange); }
.faq-a { padding: 0 24px 20px; }
.faq-a p { margin: 0 0 12px; line-height: 1.7; color: var(--text, inherit); }
.faq-a .model-dialog-list { margin-bottom: 4px; }
@media (max-width: 560px) { .faq-item summary { padding: 16px 18px; font-size: 1rem; } .faq-a { padding: 0 18px 16px; } }

/* ---- Popup "diagram" slide: labels with lines pointing at the product photo ---- */
.model-slide--diagram { padding: 34px 34px 24px; }
.dgm-head h2 { margin: 6px 0 0; }
.dgm { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .72fr); min-height: 540px; margin-top: 18px; }
.dgm-left { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 8px 0; }
.dgm-right { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 4%; }
.dgm-right-labels { margin-top: auto; display: flex; flex-direction: column; gap: 26px; }
.dgm-item { display: flex; align-items: flex-start; }
.dgm-text { flex: 0 1 auto; max-width: 80%; }
.dgm-item--right .dgm-text { max-width: 74%; }
.dgm-text h3 { margin: 0; font-size: 1.02rem; color: var(--heading); line-height: 1.3; }
.dgm-text p { margin: 4px 0 0; font-size: .88rem; line-height: 1.5; }
.dgm-text .model-dialog-list { margin: 6px 0 0; }
.dgm-text .model-dialog-list li { font-size: .88rem; line-height: 1.45; margin-bottom: 4px; padding-left: 18px; }
.dgm-text .model-dialog-list li::before { left: 2px; top: .5em; }
/* the line: from the label to the photo edge, with a dot where it touches */
.dgm-line { flex: 1 1 28px; min-width: 28px; height: 0; margin: .68em 0 0 12px; border-top: 2px solid color-mix(in srgb, var(--orange) 55%, #fff); position: relative; transform-origin: right center; }
.dgm-line::after { content: ""; position: absolute; top: -5px; right: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.dgm-item--right .dgm-line { margin: .68em 12px 0 0; transform-origin: left center; }
.dgm-item--right .dgm-line::after { right: auto; left: -4px; }
.dgm-item:hover .dgm-line { border-top-color: var(--orange); }
.dgm-box { display: block; border: 1.5px solid rgba(15, 40, 80, .2); border-radius: 12px; padding: 12px 14px; background: #fff; }
.dgm-box h3 { margin: 0 0 4px; font-size: .92rem; color: var(--heading); }
.dgm-box p { margin: 0; font-size: .82rem; line-height: 1.45; }
.dgm-photo { position: relative; min-height: 540px; }
.dgm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.dgm-notes { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(15, 40, 80, .1); }
.dgm-notes p { font-size: .78rem; line-height: 1.5; color: var(--muted); margin: 0 0 6px; }
/* entrance: labels appear one by one, lines draw toward the photo */
.dgm-item { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 130ms); }
.dgm-line { transform: scaleX(0); transition: transform .6s var(--ease-out, ease-out), border-color .2s; transition-delay: calc(var(--i, 0) * 130ms + 180ms); }
.model-slide.is-in .dgm-item { opacity: 1; transform: none; }
.model-slide.is-in .dgm-line { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .dgm-item, .dgm-line { opacity: 1; transform: none; transition: none; } }
/* tablets/phones: photo on top, labels as a clean list (no lines) */
@media (max-width: 860px) {
    .model-slide--diagram { padding: 26px 18px 16px; }
    .dgm { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
    .dgm-photo { order: -1; min-height: 280px; }
    .dgm-left, .dgm-right, .dgm-right-labels { gap: 14px; padding: 0; margin: 0; justify-content: flex-start; }
    .dgm-line { display: none; }
    .dgm-text, .dgm-item--right .dgm-text { max-width: none; }
    .dgm-item:not(.dgm-box) { border-left: 3px solid var(--orange); padding-left: 12px; }
}


/* ===== Water Patrol USA page: comic officer with clickable speech bubbles ===== */
.wp-scene { position: relative; overflow: hidden; padding: 40px 0 64px; scroll-margin-top: 80px;
  background: radial-gradient(circle, rgba(10,92,184,.13) 1.6px, transparent 2px) 0 0 / 16px 16px, var(--sky); }
.wp-stage { display: grid; align-items: center; gap: 22px 34px;
  grid-template-columns: minmax(0,1fr) minmax(280px, 360px) minmax(0,1fr);
  grid-template-areas: "title title title" "b1 cop b2" "b3 cop b2"; }
.wp-bubble--title { grid-area: title; justify-self: center; }
.wp-cop { grid-area: cop; position: relative; align-self: end; }
.wp-bubble--1 { grid-area: b1; align-self: end; justify-self: end; }
.wp-bubble--2 { grid-area: b2; justify-self: start; }
.wp-bubble--3 { grid-area: b3; align-self: start; justify-self: end; }

/* officer + starburst (svg-animation: stroke draw-on, then fill) */
.wp-officer { position: relative; z-index: 1; display: block; width: 100%; height: auto; animation: wp-rise .7s cubic-bezier(.16,1,.3,1) both; }
.wp-burst { position: absolute; z-index: 0; left: 50%; top: 2%; width: 118%; height: auto; aspect-ratio: 1; transform: translateX(-50%); }
.wp-burst path { fill: #ffd34d; fill-opacity: 0; stroke: #f39200; stroke-width: 5; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: wp-draw 1.1s .15s ease-out forwards, wp-fill .5s 1s ease-out forwards; }
.wp-arm { transform-box: view-box; transform-origin: 112px 300px; animation: wp-wave .9s 1s ease-in-out 3; }
.wp-eyes { transform-box: view-box; transform-origin: 200px 172px; animation: wp-blink 4.5s 2s infinite; }
@keyframes wp-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes wp-draw { to { stroke-dashoffset: 0; } }
@keyframes wp-fill { to { fill-opacity: .55; } }
@keyframes wp-wave { 0%,100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 65% { transform: rotate(4deg); } }
@keyframes wp-blink { 0%,94%,100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* speech bubbles (micro-interaction: pop in, hover lift, press) */
.wp-bubble { position: relative; z-index: 2; display: block; margin: 0; max-width: 360px; padding: 20px 24px 18px;
  background: #fff; color: #111; border: 4px solid #111; border-radius: 34px; box-shadow: 7px 7px 0 #111;
  font-family: var(--font-body); font-size: 1.06rem; font-weight: 500; line-height: 1.45; text-decoration: none;
  animation: wp-pop .55s var(--d, .4s) cubic-bezier(.34,1.56,.64,1) both;
  transition: scale .18s cubic-bezier(.34,1.56,.64,1), rotate .18s ease, box-shadow .18s ease; }
.wp-bubble b { color: var(--heading); }
a.wp-bubble { cursor: pointer; }
a.wp-bubble:hover { scale: 1.04; rotate: -1deg; box-shadow: 10px 10px 0 #111; color: #111; }
a.wp-bubble:active { scale: .96; box-shadow: 4px 4px 0 #111; transition-duration: .1s; }
a.wp-bubble:focus-visible { outline: 4px solid var(--cta); outline-offset: 5px; }
.wp-bubble--title { max-width: 620px; padding: 16px 34px 14px; text-align: center; background: #fff7d6;
  font-family: "Bangers", Impact, "Arial Black", sans-serif; font-weight: 400; letter-spacing: 1.5px;
  font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.02; color: var(--heading); }
.wp-kicker { display: block; font-size: .55em; color: #d62828; letter-spacing: 3px; }
.wp-shout { display: block; font-family: "Bangers", Impact, "Arial Black", sans-serif; font-size: 2rem; line-height: 1; letter-spacing: 1.5px; color: #d62828; margin-bottom: 4px; }
.wp-num { position: absolute; top: -18px; left: -14px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 4px solid #111; border-radius: 50%; background: var(--cta); color: #fff; font-family: "Bangers", Impact, sans-serif; font-size: 1.35rem; }
.wp-go { display: block; margin-top: 8px; font-weight: 700; color: var(--orange); }
a.wp-bubble:hover .wp-go { text-decoration: underline; }
@keyframes wp-pop { from { opacity: 0; transform: scale(.4) translateY(14px); } to { opacity: 1; transform: none; } }

/* tails: a black triangle with a smaller white one on top */
.wp-bubble::before, .wp-bubble::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; }
.wp-bubble--1::before, .wp-bubble--3::before { right: -36px; top: 42%; border-width: 15px 0 15px 36px; border-color: transparent transparent transparent #111; }
.wp-bubble--1::after,  .wp-bubble--3::after  { right: -25px; top: calc(42% + 7px); border-width: 8px 0 8px 30px; border-color: transparent transparent transparent #fff; }
.wp-bubble--2::before { left: -36px; top: 42%; border-width: 15px 36px 15px 0; border-color: transparent #111 transparent transparent; }
.wp-bubble--2::after  { left: -25px; top: calc(42% + 7px); border-width: 8px 30px 8px 0; border-color: transparent #fff transparent transparent; }
.wp-bubble--title::before { bottom: -36px; left: 50%; margin-left: -15px; border-width: 36px 15px 0 15px; border-color: #111 transparent transparent transparent; }
.wp-bubble--title::after  { bottom: -25px; left: 50%; margin-left: -8px; border-width: 30px 8px 0 8px; border-color: #fff7d6 transparent transparent transparent; }

/* sections */
.wp-sec { position: relative; scroll-margin-top: 80px; }
.wp-sec::after { content: ""; position: absolute; inset: 0; background: #ffe39a; opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.wp-sec.is-flash::after { animation: wp-flash 1.4s ease-out; }
.wp-sec.is-flash .wp-sec-num { animation: wp-pop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes wp-flash { 0% { opacity: .7; } 100% { opacity: 0; } }
.wp-sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.wp-sec-head h2 { margin: 0; }
.wp-sec-num { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border: 4px solid #111; border-radius: 50%;
  background: var(--cta); color: #fff; box-shadow: 5px 5px 0 #111; font-family: "Bangers", Impact, sans-serif; font-size: 2.2rem; }
.wp-split { align-items: start; }
.wp-card h3 { margin-top: 0; }
.wp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wp-checks li { position: relative; padding-left: 32px; line-height: 1.5; }
.wp-checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff; font-size: .8rem; font-weight: 700; }
.wp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.wp-wrong, .wp-right { padding: 14px 16px; border-radius: 14px; font-size: .96rem; line-height: 1.45; border: 2px solid; }
.wp-wrong b, .wp-right b { display: block; margin-bottom: 4px; }
.wp-wrong { background: #fdecec; border-color: #f1b0b0; } .wp-wrong b { color: #c62828; }
.wp-right { background: #e9f7ee; border-color: #a6dcb8; } .wp-right b { color: #1e7a3c; }
.wp-sec-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.wp-back { font-weight: 600; }

@media (max-width: 900px) {
  .wp-stage { grid-template-columns: minmax(0,1fr); grid-template-areas: "title" "cop" "b1" "b2" "b3"; gap: 34px; justify-items: center; }
  .wp-cop { width: min(250px, 70vw); margin-top: 6px; }
  .wp-bubble { max-width: 460px; width: 100%; }
  .wp-bubble--1, .wp-bubble--2, .wp-bubble--3 { align-self: auto; justify-self: center; }
  .wp-bubble--1::before, .wp-bubble--2::before, .wp-bubble--3::before { left: 50%; right: auto; top: -34px; margin-left: -14px; border-width: 0 14px 34px 14px; border-color: transparent transparent #111 transparent; }
  .wp-bubble--1::after,  .wp-bubble--2::after,  .wp-bubble--3::after  { left: 50%; right: auto; top: -24px; margin-left: -8px; border-width: 0 8px 28px 8px; border-color: transparent transparent #fff transparent; }
  .wp-compare { grid-template-columns: 1fr; }
  .wp-sec-head { align-items: flex-start; }
  .wp-sec-num { width: 52px; height: 52px; font-size: 1.8rem; }
}
/* accessible-animation: big motion becomes a short fade; nothing loops */
@media (prefers-reduced-motion: reduce) {
  .wp-officer, .wp-bubble { animation: wp-fade .15s both; }
  .wp-arm, .wp-eyes { animation: none; }
  .wp-burst path { animation: none; stroke-dashoffset: 0; fill-opacity: .55; }
  a.wp-bubble:hover { rotate: none; }
}
@keyframes wp-fade { from { opacity: 0; } to { opacity: 1; } }
.wp-point { transform-box: view-box; transform-origin: 300px 298px; animation: wp-jab .7s 1.3s ease-in-out 3; }
@keyframes wp-jab { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-5deg) translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .wp-point { animation: none; } }

/* Tall product photos on solution cards: whole product on white, not cropped */
.card-media--tall { background: #fff; padding: 14px 0; }
.card-media--tall img { object-fit: contain; }
a.card--media:hover .card-media--tall img { transform: scale(1.04); }
