/* Pacific Energy and Electric: independent blue branding, DKN-inspired hierarchy. */
:root { --ink:#172330; --muted:#5a6876; --paper:#fff; --soft:#f4f6f9; --line:#dce3eb; --accent:#185cbd; --accent-dark:#104991; --accent-light:#9cc6ff; --radius:10px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; color:var(--ink); background:var(--paper); font:16px/1.65 Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:3px solid var(--accent); outline-offset:5px; }
p { margin:0 0 1.2em; }
h1,h2,h3 { margin:0; line-height:1.12; letter-spacing:-.035em; }
h1 { font-size:clamp(44px,5.4vw,72px); }
h2 { font-size:clamp(32px,3.5vw,46px); }
h3 { font-size:22px; letter-spacing:-.025em; }
.wrap { width:min(1200px,calc(100% - 64px)); margin-inline:auto; }
.section { padding:88px 0; }
.eyebrow { margin:0 0 16px; color:var(--accent); font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:16px; padding:14px 22px; border:1px solid var(--accent); border-radius:6px; background:var(--accent); color:#fff; font-size:14px; font-weight:700; line-height:1.5; transition:background .18s,border-color .18s,transform .18s; }
.button:hover { background:var(--accent-dark); border-color:var(--accent-dark); transform:translateY(-2px); }
.button.small { padding:11px 17px; font-size:13px; white-space:nowrap; }
.button.outline { background:transparent; color:var(--ink); border-color:var(--line); }
.button.outline:hover { background:var(--soft); border-color:#adbdce; }
.button span[aria-hidden] { font-size:19px; line-height:1; }
.actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.text-link { display:inline-flex; gap:18px; align-items:center; color:var(--accent); font-size:14px; font-weight:700; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.icon { width:22px; height:22px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.topbar { background:var(--ink); color:#dce5ef; font-size:11px; }
.topbar .wrap { display:flex; justify-content:space-between; gap:20px; padding-block:7px; }
.top-dot { padding-inline:9px; color:var(--accent-light); }
.topbar a:hover { text-decoration:underline; }
.header { position:sticky; top:0; z-index:30; background:#fffffff7; border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.nav-row { display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:85px; }
.brand { display:inline-flex; align-items:center; gap:10px; flex-shrink:0; }
.brand img { width:55px; height:55px; border-radius:50%; }
.brand>span { font-size:14px; letter-spacing:.015em; font-weight:800; line-height:1.3; }
.brand small { display:block; margin-top:4px; font-size:10px; font-weight:700; letter-spacing:.19em; }
nav { display:flex; align-items:center; gap:23px; font-size:13px; font-weight:600; }
nav>a,.nav-service>a { display:inline-flex; align-items:center; padding-block:24px; }
nav a:hover,nav a[aria-current="page"] { color:var(--accent); }
.nav-service { position:relative; }
.nav-service>a { gap:6px; }
.nav-service>a span { font-size:11px; }
.nav-submenu { position:absolute; top:calc(100% - 4px); left:-18px; width:275px; padding:9px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 10px 30px #17233015; visibility:hidden; opacity:0; transform:translateY(5px); transition:opacity .16s,transform .16s; }
.nav-service:hover .nav-submenu,.nav-service:focus-within .nav-submenu { visibility:visible; opacity:1; transform:none; }
.nav-submenu a { display:block; padding:9px 11px; font-size:12px; border-radius:4px; }
.nav-submenu a:hover { background:var(--soft); }
.header-call { margin-left:2px; }
nav .header-call { padding-block:11px; color:white; }
nav .header-call:hover { color:white; }
.menu-toggle { display:none; align-items:center; gap:8px; padding:9px 12px; background:transparent; color:var(--ink); border:1px solid var(--line); border-radius:5px; font-size:13px; }
.hero { position:relative; isolation:isolate; color:white; background:var(--ink); }
.hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#111e2cf5 0%,#111e2cee 38%,#111e2ca8 100%),url('solar-1800.webp') center 44%/cover; }
.hero-shell { display:grid; grid-template-columns:1.02fr 1fr; align-items:center; gap:64px; padding-block:76px 82px; }
.hero .eyebrow { display:inline-flex; align-items:center; gap:8px; color:#bad5ff; font-size:10px; letter-spacing:.075em; border:1px solid #9cc6ff40; border-radius:4px; padding:5px 10px; margin-bottom:24px; background:#185cbd18; }
.hero .eyebrow .icon { width:13px; height:13px; }
.hero h1 { max-width:590px; font-weight:800; line-height:1.06; }
.hero h1 em { color:var(--accent-light); font-style:normal; }
.hero-intro { max-width:500px; font-size:16px; line-height:1.75; color:#dbe4ee; margin:23px 0 26px; }
.hero .button { padding:15px 20px; }
.hero .button.outline { color:#fff; border-color:#bdcfdf60; }
.hero .button.outline:hover { background:#ffffff12; border-color:#c7daec; }
.hero-checks { display:flex; flex-wrap:wrap; gap:10px 22px; list-style:none; margin:26px 0 0; padding:0; color:#dbe4ee; font-size:11px; }
.hero-checks li { display:flex; align-items:center; gap:7px; }
.hero-checks .icon { width:15px; height:15px; color:var(--accent-light); }
.hero-visual { margin:0; position:relative; padding:7px; border:1px solid #c7daec40; border-radius:18px; background:#ffffff10; box-shadow:0 20px 60px #0003; }
.hero-image { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:12px; }
.hero-photo-caption { display:flex; justify-content:space-between; align-items:center; gap:16px; position:absolute; bottom:22px; left:22px; right:22px; padding:15px 17px; border:1px solid #ffffff20; background:#132638ec; border-radius:7px; }
.hero-photo-caption small { display:block; color:#b9c8d7; font-size:9px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:3px; }
.hero-photo-caption strong { font-size:12px; display:block; }
.hero-photo-caption a { display:inline-flex; align-items:center; gap:9px; color:var(--accent-light); font-size:12px; font-weight:700; white-space:nowrap; }
.hero-photo-caption a:hover { text-decoration:underline; }
.trust-strip { background:#fff; border-bottom:1px solid var(--line); }
.trust-strip .wrap { display:grid; grid-template-columns:repeat(4,1fr); padding-block:30px; }
.trust-strip span { display:block; text-align:center; font-size:11px; color:var(--muted); padding-inline:15px; }
.trust-strip span+span { border-left:1px solid var(--line); }
.trust-strip b { display:block; color:var(--accent); font-size:20px; letter-spacing:-.02em; line-height:1.25; margin-bottom:6px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:34px; }
.section-heading>p { max-width:370px; color:var(--muted); font-size:14px; margin:0 0 3px; }
.section-heading .eyebrow { margin-bottom:12px; }
.section-heading .text-link { flex-shrink:0; margin-bottom:5px; }
.section-intro { max-width:680px; font-size:15px; color:var(--muted); margin:-14px 0 32px; }
.services { background:var(--soft); }
.service-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card { display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); background:#fff; transition:border-color .18s,box-shadow .18s,transform .18s; }
.service-card:hover { border-color:#a1b9d7; box-shadow:0 8px 24px #1723300b; transform:translateY(-3px); }
.service-card>img { width:100%; height:208px; object-fit:cover; }
.service-card.image-battery>img { object-position:center 40%; }
.service-card.image-wiring>img { object-position:center 28%; }
.service-card-body { padding:23px 24px; display:flex; flex-direction:column; flex:1; }
.service-card h3 { font-size:21px; line-height:1.25; }
.service-card p { margin:12px 0 20px; color:var(--muted); font-size:13px; line-height:1.75; }
.service-card .text-link { margin-top:auto; font-size:12px; justify-content:space-between; }
.service-card .text-link span { font-size:18px; }
.services-note { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:26px; padding-top:24px; border-top:1px solid var(--line); }
.services-note p { margin:0; color:var(--muted); font-size:13px; }
.credentials { border-bottom:1px solid var(--line); }
.credential-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.credential { position:relative; padding-left:52px; }
.credential>.icon { position:absolute; top:0; left:0; width:32px; height:32px; color:var(--accent); }
.credential h3 { font-size:19px; margin-bottom:9px; }
.credential p { font-size:13px; color:var(--muted); margin-bottom:0; }
.credential small { display:inline-block; margin-bottom:9px; color:var(--accent); font-size:11px; font-weight:700; }
.project-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.project { display:block; border-radius:9px; overflow:hidden; border:1px solid var(--line); background:#fff; }
.project img { width:100%; height:260px; object-fit:cover; transition:filter .18s; }
.project:hover img { filter:brightness(.91); }
.project>div { display:flex; justify-content:space-between; gap:12px; padding:14px 17px; font-size:12px; font-weight:600; }
.project>div span:last-child { color:var(--accent); font-size:16px; }
.work-note { display:flex; justify-content:space-between; align-items:center; gap:26px; margin-top:30px; padding:24px 28px; border-radius:8px; background:var(--soft); }
.work-note p { margin:0; font-size:14px; color:var(--muted); }
.work-note strong { display:block; color:var(--ink); margin-bottom:3px; }
.work-note .text-link { flex-shrink:0; }
.about { background:var(--soft); }
.about-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:72px; align-items:center; }
.about-photo { position:relative; padding-bottom:28px; }
.about-photo>img { width:100%; height:auto; border-radius:12px; }
.experience { position:absolute; bottom:0; left:25px; padding:20px 24px; background:var(--ink); border-radius:8px; color:#fff; box-shadow:0 8px 24px #17233015; }
.experience strong { display:block; color:var(--accent-light); font-size:31px; letter-spacing:-.03em; line-height:1.2; }
.experience span { font-size:10px; }
.about-copy>p { color:var(--muted); font-size:14px; }
.about-copy>.eyebrow { color:var(--accent); font-size:11px; }
.about-copy h2 { margin-bottom:22px; }
.brand-tagline { font-weight:600; }
.check-list { list-style:none; padding:0; margin:22px 0; display:grid; grid-template-columns:1fr 1fr; gap:15px 20px; }
.check-list li { font-size:12px; color:var(--muted); display:flex; align-items:flex-start; gap:9px; }
.check-list .icon { width:17px; height:17px; margin-top:2px; color:var(--accent); }
.check-list b { display:block; color:var(--ink); font-size:13px; }
details { border-bottom:1px solid var(--line); }
details:first-child { border-top:1px solid var(--line); }
summary { list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 0; cursor:pointer; font-size:14px; font-weight:600; line-height:1.5; }
summary::-webkit-details-marker { display:none; }
summary::after { content:'+'; font-size:24px; font-weight:400; color:var(--accent); }
details[open] summary::after { content:'−'; }
details p { font-size:14px; color:var(--muted); line-height:1.8; }
.company-story { margin:20px 0; }
.company-story summary { font-size:12px; padding:12px 0; }
.company-story p { font-size:13px; }
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; margin-top:36px; }
.process-grid article { border-top:1px solid var(--line); padding-top:22px; }
.step-number { display:inline-flex; align-items:center; justify-content:center; height:38px; width:38px; border-radius:50%; background:#e8f0fc; color:var(--accent); font-size:12px; font-weight:700; margin-bottom:20px; }
.process-grid h3 { font-size:19px; margin-bottom:11px; }
.process-grid p { font-size:13px; color:var(--muted); margin:0; }
.service-areas { background:var(--ink); color:#fff; }
.areas-grid { display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.service-areas .eyebrow { color:var(--accent-light); }
.service-areas h2 { margin-bottom:18px; }
.service-areas p:not(.eyebrow) { color:#c6d2df; font-size:14px; max-width:550px; }
.service-areas .text-link { color:var(--accent-light); }
.area-card { border:1px solid #ffffff25; border-radius:10px; padding:30px; background:#ffffff05; }
.area-card>.icon { width:33px; height:33px; color:var(--accent-light); margin-bottom:14px; }
.area-card h3 { margin-bottom:12px; }
.area-card p { margin-bottom:15px; }
.area-card small { font-size:12px; color:#c6d2df; }
.contact { background:var(--soft); }
.contact-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:75px; align-items:start; }
.contact-copy h2 { margin-bottom:22px; }
.contact-copy>p:not(.eyebrow) { color:var(--muted); font-size:14px; max-width:400px; }
.contact-phone { display:inline-flex; align-items:center; gap:11px; color:var(--accent); font-size:25px; font-weight:700; letter-spacing:-.025em; margin:3px 0 26px; }
.contact-phone .icon { width:25px; height:25px; }
.contact-phone:hover { text-decoration:underline; text-underline-offset:5px; }
.contact dl { border-top:1px solid var(--line); margin:0; padding-top:24px; }
.contact dt { font-size:10px; text-transform:uppercase; font-weight:700; letter-spacing:.09em; color:var(--muted); margin-bottom:5px; }
.contact dd { margin:0 0 20px; font-size:14px; }
.contact-note { padding:20px 22px; border-left:3px solid var(--accent); background:#e9eff7; margin-top:27px; }
.contact-note strong { display:block; font-size:14px; margin-bottom:7px; }
.contact-note p { color:var(--muted); font-size:13px; margin:0; }
form { padding:33px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 35px #17233005; }
form h3 { font-size:25px; }
.form-intro { font-size:13px; color:var(--muted); margin:10px 0 22px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; }
label { display:block; margin-bottom:18px; font-size:12px; font-weight:600; }
label span { color:var(--muted); font-weight:400; }
input,select,textarea { display:block; width:100%; min-width:0; padding:11px 12px; margin-top:6px; background:#fff; color:var(--ink); border:1px solid #cfdae5; border-radius:5px; font-size:16px; line-height:1.5; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--accent); outline-offset:1px; }
input::placeholder,textarea::placeholder { color:#71808f; }
textarea { resize:vertical; }
form .button { width:100%; justify-content:space-between; }
.fine-print { font-size:11px; color:var(--muted); line-height:1.75; }
.fine-print a { text-decoration:underline; text-underline-offset:2px; }
#form-status:empty { display:none; }
#form-status { margin:17px 0 0; padding:14px; border-radius:5px; background:#eef4ff; color:#224876; }
.contact-alternative { font-size:11px; color:var(--muted); text-align:center; margin:13px 0 0; }
.contact-alternative a { text-decoration:underline; }
.faq-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:75px; }
.faq-grid h2 { margin-bottom:20px; }
.faq-grid>div:first-child>p:not(.eyebrow) { color:var(--muted); font-size:14px; }
.faq-grid .text-link { margin-top:7px; }
footer { background:#111e2c; color:#c6d2df; font-size:12px; }
.footer-grid { display:grid; grid-template-columns:1.35fr 1fr .7fr 1.05fr; gap:45px; padding-block:58px 40px; }
.footer-brand { display:inline-flex; align-items:center; gap:12px; color:#fff; font-size:14px; font-weight:700; letter-spacing:.03em; line-height:1.4; }
.footer-brand img { width:54px; height:54px; border-radius:50%; }
.footer-brand small { display:block; font-size:9px; letter-spacing:.18em; margin-top:4px; }
.footer-grid p { margin:18px 0 0; font-size:12px; }
.footer-grid h3 { font-size:12px; letter-spacing:0; color:#fff; margin-bottom:20px; }
.footer-grid>div>a:not(.footer-brand) { display:block; margin-bottom:9px; }
.footer-grid a:hover { color:#fff; text-decoration:underline; }
.footer-phone { color:#fff; font-size:17px; font-weight:700; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid #ffffff20; padding-block:22px; color:#b4c2d1; font-size:10px; }
.mobile-cta { display:none; }
.skip { position:fixed; top:-100px; left:20px; padding:12px 20px; background:#fff; color:var(--ink); z-index:100; }
.skip:focus { top:10px; }
dialog { border:1px solid #ffffff30; border-radius:10px; background:var(--ink); color:#fff; padding:15px; width:max-content; max-width:min(92vw,1100px); max-height:94vh; }
dialog::backdrop { background:#08131fe8; }
dialog img { max-height:78vh; width:auto; height:auto; margin:auto; object-fit:contain; }
dialog p { margin:12px 6px 3px; font-size:13px; }
.lightbox-close { position:absolute; top:22px; right:22px; width:42px; height:42px; border:0; border-radius:50%; background:#fff; color:var(--ink); font-size:22px; box-shadow:0 2px 12px #0004; }
.service-hero { background:var(--soft); }
.breadcrumb { display:inline-block; color:var(--muted); font-size:12px; margin-bottom:33px; }
.breadcrumb:hover { color:var(--accent); }
.service-detail-grid { display:grid; grid-template-columns:1.1fr 1fr; gap:65px; align-items:center; }
.service-detail-grid h1 { font-size:clamp(38px,4.5vw,60px); max-width:640px; }
.service-detail-grid .lead { color:var(--muted); font-size:16px; line-height:1.8; margin:23px 0; }
.service-detail-grid>img { width:100%; height:390px; object-fit:cover; border-radius:14px; }
.service-detail-grid .fine-print { margin:18px 0 0; }
.narrow { max-width:800px; }
.narrow h1 { font-size:clamp(36px,5vw,60px); margin-bottom:26px; }
.narrow h2 { font-size:30px; margin-bottom:27px; }
.narrow>p { color:var(--muted); font-size:15px; }
.narrow a:not(.button) { text-decoration:underline; text-underline-offset:3px; }
.exact-service-list { padding:0; margin:0 0 30px; list-style:none; }
.exact-service-list li { padding:23px 0; border-bottom:1px solid var(--line); color:var(--muted); line-height:1.85; font-size:15px; }
.exact-service-list li:first-child { padding-top:0; }
.exact-service-list strong { color:var(--ink); display:block; font-size:19px; margin-bottom:6px; }
.related { padding-bottom:75px; }
.related h2 { font-size:28px; margin-bottom:23px; }
.related>div { display:flex; flex-wrap:wrap; gap:12px; }
.related a { border:1px solid var(--line); border-radius:5px; padding:12px 16px; font-size:12px; }
.related a:hover { background:var(--soft); color:var(--accent); }
.detail-cta { padding:28px; border-radius:8px; background:var(--soft); margin-top:35px; }
@media (min-width:1600px) { .hero-shell { padding-block:100px; } }
@media (max-width:1100px) {
  .wrap { width:calc(100% - 48px); }
  nav { gap:16px; font-size:12px; }
  .brand>span { font-size:12px; }
  .brand img { width:48px; height:48px; }
  .header-call .icon { display:none; }
  .button.small { font-size:12px; padding-inline:13px; }
  .hero-shell { gap:36px; padding-block:64px; }
  .hero h1 { font-size:58px; }
  .hero-intro { font-size:15px; }
  .hero .button { font-size:13px; padding-inline:15px; }
  .about-grid,.contact-grid,.faq-grid,.areas-grid { gap:45px; }
  .footer-grid { gap:28px; }
  .service-card-body { padding:21px; }
}
@media (max-width:900px) {
  .nav-row { min-height:78px; flex-wrap:wrap; }
  .brand>span { font-size:14px; }
  .brand img { width:51px; height:51px; }
  .menu-toggle { display:inline-flex; }
  .header nav { width:100%; display:flex; flex-wrap:wrap; gap:18px; justify-content:center; padding-bottom:16px; }
  .header nav>a,.nav-service>a { padding-block:8px; }
  .js .header nav { display:none; position:absolute; left:0; top:100%; background:#fff; border-bottom:1px solid var(--line); padding:19px 24px; box-shadow:0 12px 25px #17233014; flex-direction:column; align-items:stretch; gap:0; max-height:calc(100dvh - 120px); overflow-y:auto; }
  .js .header nav.open { display:flex; }
  .header nav>a,.nav-service>a { padding:11px 5px; }
  .nav-service>a { display:flex; justify-content:space-between; }
  .nav-submenu { position:static; width:auto; visibility:visible; opacity:1; transform:none; box-shadow:none; border:0; border-left:1px solid var(--line); border-radius:0; margin-left:8px; padding:0 0 0 9px; display:block; }
  .nav-service:focus-within .nav-submenu,.nav-service:hover .nav-submenu { display:block; }
  .header nav .header-call { margin-top:12px; padding-block:12px; }
  .header-call .icon { display:block; }
  .hero h1 { font-size:49px; }
  .hero-shell { gap:28px; }
  .hero-photo-caption { left:17px; right:17px; bottom:17px; padding:12px; }
  .hero-photo-caption strong,.hero-photo-caption a { font-size:10px; }
  .trust-strip b { font-size:17px; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .service-card>img { height:220px; }
  .credential-grid { gap:24px; }
  .credential { padding-left:0; }
  .credential>.icon { position:static; margin-bottom:15px; }
  .credential h3 { font-size:18px; }
  .project img { height:235px; }
  .about-grid { gap:35px; }
  .check-list { grid-template-columns:1fr; gap:12px; }
  .process-grid { gap:20px; }
  .process-grid h3 { font-size:17px; }
  .contact-grid,.faq-grid { gap:32px; }
  .footer-grid { grid-template-columns:1.2fr 1fr; gap:36px; }
  .service-detail-grid { gap:35px; }
}
@media (max-width:700px) {
  html { scroll-padding-top:92px; }
  .wrap { width:calc(100% - 40px); }
  .section { padding:60px 0; }
  .topbar { font-size:9px; }
  .topbar .wrap { gap:10px; }
  .top-dot { padding-inline:4px; }
  .hero-shell { grid-template-columns:1fr; padding-block:43px 42px; gap:35px; }
  .hero .eyebrow { font-size:9px; margin-bottom:20px; }
  .hero h1 { font-size:clamp(44px,9vw,61px); }
  .hero-intro { max-width:540px; font-size:15px; margin:21px 0 24px; }
  .hero-checks { gap:10px 17px; font-size:10px; margin-top:21px; }
  .hero-visual { max-width:560px; width:100%; }
  .hero-photo-caption { left:20px; right:20px; bottom:20px; padding:14px; }
  .hero-photo-caption strong,.hero-photo-caption a { font-size:11px; }
  .trust-strip .wrap { grid-template-columns:1fr 1fr; gap:22px 0; padding-block:26px; }
  .trust-strip span { font-size:10px; }
  .trust-strip span:nth-child(3) { border-left:0; }
  .trust-strip b { font-size:18px; }
  .section-heading { display:block; margin-bottom:28px; }
  .section-heading>p { margin-top:18px; max-width:530px; }
  .section-heading .text-link { margin-top:19px; }
  .section-intro { margin:-8px 0 28px; font-size:14px; }
  .service-grid { gap:16px; }
  .service-card>img { height:180px; }
  .service-card-body { padding:20px 17px; }
  .service-card h3 { font-size:19px; }
  .service-card p { font-size:12px; }
  .services-note { flex-direction:column; align-items:flex-start; gap:14px; }
  .credential-grid { grid-template-columns:1fr; gap:27px; }
  .credential { padding-left:52px; }
  .credential>.icon { position:absolute; }
  .project-grid { grid-template-columns:1fr 1fr; gap:16px; }
  .project img { height:225px; }
  .project>div { font-size:11px; padding:12px; }
  .work-note { padding:22px; flex-direction:column; align-items:flex-start; gap:16px; }
  .about-grid { grid-template-columns:1fr; gap:39px; }
  .about-photo { max-width:560px; }
  .about-copy h2 { margin-bottom:20px; }
  .check-list { grid-template-columns:1fr 1fr; }
  .process-grid { grid-template-columns:1fr 1fr; gap:30px 25px; }
  .process-grid h3 { font-size:19px; }
  .areas-grid { grid-template-columns:1fr; gap:25px; }
  .area-card { padding:24px; }
  .contact-grid,.faq-grid { grid-template-columns:1fr; gap:35px; }
  .contact-copy>p:not(.eyebrow) { max-width:560px; }
  .contact dl { display:grid; grid-template-columns:1fr 1fr; column-gap:22px; }
  .contact dt { grid-column:1; }
  .contact dd { grid-column:2; }
  .contact-note { margin-top:6px; }
  form { padding:27px; }
  .footer-grid { padding-top:44px; }
  .footer-bottom { flex-wrap:wrap; gap:8px 20px; padding-bottom:95px; }
  .mobile-cta { display:flex; position:fixed; z-index:25; bottom:12px; left:16px; right:16px; padding:6px; background:#fff; border:1px solid var(--line); border-radius:9px; box-shadow:0 5px 22px #17233025; gap:6px; }
  .mobile-cta a { flex:1; font-size:12px; padding:11px; }
  .mobile-cta .button.outline { background:#fff; border-color:transparent; color:var(--accent); }
  .mobile-cta .icon { width:16px; height:16px; }
  .service-detail-grid { grid-template-columns:1fr; gap:30px; }
  .service-detail-grid h1 { font-size:43px; }
  .service-detail-grid>img { height:auto; max-height:430px; }
  .breadcrumb { margin-bottom:24px; }
  .related { padding-bottom:55px; }
}
@media (max-width:440px) {
  .wrap { width:calc(100% - 32px); }
  .brand>span { font-size:12px; }
  .brand small { font-size:9px; }
  .brand img { width:45px; height:45px; }
  .menu-toggle { font-size:12px; padding:8px 10px; }
  .topbar .wrap>span:first-child { max-width:210px; }
  .topbar .top-license { display:none; }
  .hero h1 { font-size:45px; }
  .hero .button { padding:13px 17px; font-size:12px; gap:10px; }
  .hero-checks { font-size:9px; gap:9px 14px; }
  .hero-photo-caption { left:17px; right:17px; bottom:17px; padding:11px; }
  .hero-photo-caption strong,.hero-photo-caption a { font-size:10px; }
  .hero-photo-caption small { font-size:8px; }
  .service-grid { grid-template-columns:1fr; gap:20px; }
  .service-card>img { height:225px; }
  .service-card-body { padding:22px; }
  .service-card h3 { font-size:22px; }
  .service-card p { font-size:13px; }
  .project img { height:190px; }
  .project>div { font-size:10px; gap:5px; }
  .check-list { grid-template-columns:1fr; }
  .experience { left:17px; padding:16px 19px; }
  .experience strong { font-size:28px; }
  .process-grid { gap:28px 21px; }
  .process-grid h3 { font-size:17px; }
  .process-grid p { font-size:12px; }
  .form-grid { grid-template-columns:1fr; }
  form { padding:23px 20px; }
  .contact dl { display:block; }
  .contact-phone { font-size:25px; }
  .footer-grid { grid-template-columns:1fr; gap:29px; }
  .footer-grid h3 { margin-bottom:15px; }
  .service-detail-grid h1 { font-size:37px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition:none!important; animation:none!important; }
}

/* Client-requested service flow: complete descriptions in sequential sections. */
.service-flow { border-top:1px solid var(--line); }
.flow-service { display:grid; grid-template-columns:.8fr 1.6fr; gap:48px; align-items:start; padding:44px 0; border-bottom:1px solid var(--line); }
.flow-service-photo { padding-top:5px; }
.flow-service-photo img { width:100%; height:auto; max-height:450px; object-fit:contain; border-radius:10px; }
.flow-service-copy h2 { font-size:clamp(26px,2.8vw,36px); line-height:1.2; margin-bottom:23px; }
.flow-service-copy .eyebrow { margin-bottom:10px; }
.flow-service-copy .exact-service-list { list-style:disc; padding-left:20px; margin-bottom:25px; }
.flow-service-copy .exact-service-list li { border:0; padding:0 0 0 5px; margin-bottom:17px; font-size:14px; line-height:1.85; }
.flow-service-copy .exact-service-list strong { display:inline; font-size:14px; margin:0; }
.flow-service-copy .actions { gap:22px; }
.flow-service-copy .text-link { font-size:12px; }
.nav-submenu { width:315px; }
@media (max-width:1000px) {
  .flow-service { gap:30px; grid-template-columns:.8fr 1.5fr; }
}
@media (max-width:760px) {
  .flow-service { grid-template-columns:1fr; gap:25px; padding:32px 0; }
  .flow-service-photo { max-width:520px; }
  .flow-service-photo img { max-height:350px; }
  .flow-service-copy h2 { font-size:29px; }
  .nav-submenu { width:auto; }
}
@media (max-width:440px) {
  .flow-service-copy h2 { font-size:26px; }
  .flow-service-copy .exact-service-list li { font-size:14px; }
  .flow-service-copy .actions { gap:16px; }
}

/* Mobile-first refinements: readable full copy, generous touch targets, and safe areas. */
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
.button, .menu-toggle, .lightbox-close { min-height:44px; }
.lightbox-close { width:44px; }
.flow-service-copy, .contact-copy, .service-detail-grid > div { min-width:0; }
@media (max-width:900px) {
  .header { background:#fff; backdrop-filter:none; }
  .nav-row { min-height:72px; }
  .menu-toggle { min-width:76px; }
  .header nav > a, .nav-service > a, .nav-submenu a { min-height:44px; font-size:14px; line-height:1.5; }
  .nav-submenu a { padding:12px; }
  .js .header nav { max-height:calc(100dvh - var(--header-height,72px) - 16px); overscroll-behavior:contain; padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)); }
  body.menu-open { overflow:hidden; }
  body.menu-open .mobile-cta { visibility:hidden; pointer-events:none; }
}
@media (max-width:700px) {
  html { scroll-padding-top:88px; scroll-padding-bottom:100px; }
  body { padding-bottom:calc(74px + env(safe-area-inset-bottom,0px)); }
  .wrap { width:calc(100% - 40px); }
  .section { padding:48px 0; }
  .topbar { font-size:10px; }
  .hero::before { background:linear-gradient(145deg,#13283e,#172330); }
  .hero-shell { padding:32px 0 36px; gap:25px; }
  .hero h1 { font-size:clamp(38px,9.2vw,52px); line-height:1.08; }
  .hero .eyebrow { font-size:10px; letter-spacing:.045em; max-width:100%; }
  .hero-intro { font-size:16px; line-height:1.65; margin:18px 0 23px; }
  .hero .actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .hero .button { font-size:13px; min-height:48px; padding:12px 10px; gap:8px; }
  .hero .button .icon { width:18px; height:18px; }
  .hero-checks { font-size:11px; gap:9px 15px; }
  .hero-photo-caption { position:static; margin:8px 3px 1px; padding:8px 7px; background:transparent; border:0; }
  .hero-photo-caption small { font-size:10px; }
  .hero-photo-caption strong { font-size:11px; }
  .hero-photo-caption a { min-height:44px; font-size:12px; }
  .hero-visual { box-shadow:none; }
  .trust-strip span { font-size:12px; padding-inline:9px; }
  .trust-strip b { font-size:17px; }
  .section-heading > p, .section-intro, .services-note p { font-size:16px; }
  .flow-service { padding:30px 0; gap:22px; }
  .flow-service-photo img { width:auto; max-width:100%; max-height:260px; margin-inline:auto; }
  .flow-service-copy h2 { font-size:28px; margin-bottom:20px; }
  .flow-service-copy .exact-service-list { padding-left:19px; }
  .flow-service-copy .exact-service-list li { font-size:16px; line-height:1.75; margin-bottom:20px; padding-left:3px; }
  .flow-service-copy .exact-service-list strong { display:block; font-size:16px; line-height:1.5; margin-bottom:5px; }
  .flow-service-copy .actions { align-items:stretch; gap:10px; flex-direction:column; }
  .flow-service-copy .button { min-height:48px; font-size:14px; white-space:normal; }
  .flow-service-copy .text-link { min-height:44px; justify-content:center; font-size:14px; }
  .credential p, .about-copy > p, .company-story p, .process-grid p, .service-areas p:not(.eyebrow), .contact-copy > p:not(.eyebrow), .faq-grid > div:first-child > p:not(.eyebrow), details p, .narrow > p { font-size:16px; line-height:1.75; }
  .check-list li { font-size:14px; }
  .check-list b { font-size:15px; }
  .work-note p { font-size:15px; }
  .company-story summary, summary { min-height:56px; font-size:16px; padding-block:16px; }
  .contact dl { display:block; }
  .contact dd { font-size:16px; }
  .contact dt { font-size:11px; }
  .contact-note p { font-size:15px; }
  .form-grid { grid-template-columns:1fr; }
  form { padding:25px 20px; }
  label { font-size:14px; margin-bottom:20px; }
  input,select,textarea { font-size:16px; min-height:48px; padding:12px; }
  textarea { min-height:140px; }
  .form-intro { font-size:14px; }
  form .button { min-height:50px; font-size:14px; }
  .fine-print, .contact-alternative { font-size:12px; }
  .contact-alternative a { display:inline-block; min-height:44px; padding:10px 4px; }
  .mobile-cta { bottom:0; left:0; right:0; border-radius:0; padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); box-shadow:0 -3px 16px #17233010; gap:10px; }
  .mobile-cta a { min-height:46px; font-size:14px; }
  body.form-focused .mobile-cta { display:none; }
  .footer-grid { gap:30px; }
  .footer-grid > div > a:not(.footer-brand) { min-height:44px; margin-bottom:0; padding-block:10px; font-size:14px; }
  .footer-grid h3 { font-size:14px; }
  .footer-grid p { font-size:14px; }
  .footer-bottom { font-size:12px; padding-bottom:24px; }
  .footer-bottom a { min-height:44px; display:inline-flex; align-items:center; }
  .service-detail-grid h1 { font-size:clamp(32px,8vw,43px); }
  .service-detail-grid .lead { font-size:16px; }
  .service-detail-grid .actions, .service-detail-grid a.button { width:100%; }
  .exact-service-list li { font-size:16px; }
  .related a { min-height:44px; font-size:14px; }
  .breadcrumb { min-height:44px; display:inline-flex; align-items:center; font-size:14px; }
  dialog { max-height:calc(100dvh - 32px); max-width:calc(100vw - 24px); }
  dialog img { max-height:calc(100dvh - 130px); }
}
@media (max-width:440px) {
  .wrap { width:calc(100% - 36px); }
  .brand img { width:42px; height:42px; }
  .brand > span { font-size:12px; }
  .flow-service-copy h2 { font-size:27px; }
  .project-grid { grid-template-columns:1fr; }
  .project img { height:auto; aspect-ratio:4/3; }
  .project > div { font-size:14px; min-height:48px; align-items:center; padding:12px 15px; }
  .process-grid { grid-template-columns:1fr; gap:24px; }
  .process-grid h3 { font-size:20px; }
  .step-number { margin-bottom:13px; }
}
@media (max-width:360px) {
  .hero .actions { grid-template-columns:1fr; }
  .hero h1 { font-size:38px; }
  .brand { gap:8px; }
  .brand > span { font-size:11px; }
  .menu-toggle { min-width:70px; }
  .hero-photo-caption { gap:8px; }
  .hero-photo-caption strong { font-size:10px; }
}
@media (hover:none) {
  .button:hover, .service-card:hover { transform:none; }
}

/* Photo curation: use real work only where it supports the section. */
.hero::before { background:linear-gradient(120deg,#111e2c,#19334d); }
.flow-service-text-only { grid-template-columns:1fr; }
.flow-service-text-only .flow-service-copy { max-width:850px; }
.about-facts { padding:35px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.about-facts > strong { display:block; font-size:42px; line-height:1.15; letter-spacing:-.04em; color:var(--accent); margin-bottom:18px; }
.about-facts > p:not(.eyebrow) { color:var(--muted); font-size:16px; }
.about-facts dl { border-top:1px solid var(--line); margin:24px 0 0; padding-top:22px; }
.about-facts dt { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:6px; }
.about-facts dd { margin:0 0 20px; font-size:15px; }
.about-facts dd:last-child { margin-bottom:0; }
.service-planning-note { padding:30px; border:1px solid var(--line); border-radius:12px; background:white; }
.service-planning-note h2 { font-size:30px; margin-bottom:18px; }
.service-planning-note p:not(.eyebrow) { color:var(--muted); }
@media (max-width:700px) {
  .about-facts { padding:25px; }
  .about-facts > strong { font-size:36px; }
  .service-planning-note { padding:24px; }
  .flow-service-photo { margin-inline:auto; }
  .flow-service-photo img { width:auto; }
}

.curated-gallery { grid-template-columns:repeat(2,1fr); }
.flow-service-photo { width:100%; }
.flow-service-photo img { width:100%; height:auto; max-height:none; }
@media (max-width:700px) {
  .flow-service-photo img { width:min(100%,calc(260px * var(--photo-ratio,1))); height:auto; max-height:none; }
}
@media (max-width:440px) {
  .curated-gallery { grid-template-columns:1fr; }
}

/* Single-box project slideshow and a more prominent header logo. */
.header .brand img { width:68px; height:68px; }
.header .nav-row { min-height:96px; }
.work-carousel { width:min(100%,880px); margin-inline:auto; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 8px 30px #17233008; }
.work-viewport { background:#142334; touch-action:pan-y pinch-zoom; }
.work-slide { margin:0; }
.work-slide > a { display:block; }
.work-slide img { width:100%; height:480px; object-fit:contain; background:#142334; }
.work-slide figcaption { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:19px 24px; background:#fff; color:var(--ink); font-size:15px; font-weight:600; }
.work-slide figcaption small { color:var(--muted); font-size:12px; font-weight:400; }
.js .work-carousel:not(.carousel-ready) .work-slide:not(:first-child), .work-slide[hidden] { display:none; }
.work-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 20px; border-top:1px solid var(--line); background:var(--soft); }
.work-controls[hidden] { display:none; }
.slide-arrows { display:flex; gap:9px; }
.slide-arrow { width:46px; height:46px; border:1px solid #bdcbd9; border-radius:6px; background:#fff; color:var(--accent); font-size:23px; line-height:1; }
.slide-arrow:hover { background:#e8f0fc; }
.slide-position { display:flex; gap:9px; align-items:center; }
.slide-dot { width:44px; height:44px; display:grid; place-items:center; border:0; border-radius:5px; background:transparent; }
.slide-dot::before { content:''; width:9px; height:9px; border-radius:50%; background:#a7b6c7; }
.slide-dot[aria-pressed="true"]::before { background:var(--accent); }
.slide-count { color:var(--muted); font-size:12px; min-width:36px; }
.slide-play { padding:10px 13px; min-height:44px; border:1px solid #bdcbd9; border-radius:6px; background:#fff; color:var(--ink); font-size:12px; font-weight:600; }
@media (max-width:900px) {
  .header .brand img { width:60px; height:60px; }
  .header .nav-row { min-height:84px; }
}
@media (max-width:700px) {
  .header .brand img { width:54px; height:54px; }
  .header .nav-row { min-height:80px; gap:16px; }
  .work-slide img { height:360px; }
  .work-slide figcaption { padding:16px; flex-direction:column; align-items:flex-start; gap:4px; font-size:15px; }
  .work-controls { padding:12px; gap:10px; }
  .slide-position { gap:0; }
  .slide-dot { width:36px; min-height:44px; }
  .slide-play { width:100%; }
}
@media (max-width:360px) {
  .header .brand img { width:52px; height:52px; }
  .header .nav-row { gap:12px; }
  .work-slide img { height:300px; }
  .slide-arrows { gap:7px; }
}

/* Clearly aligned founder, license, and approach information. */
.about-facts .company-credentials { border:0; padding:0; margin:25px 0 0; }
.company-credentials .credential-row { display:grid; grid-template-columns:115px minmax(0,1fr); gap:18px; padding:19px 0; border-top:1px solid var(--line); }
.company-credentials dt { margin:0; font-size:11px; line-height:1.6; letter-spacing:.07em; padding-top:2px; }
.company-credentials dd { margin:0; font-size:15px; line-height:1.6; min-width:0; }
.credential-value { display:block; color:var(--ink); font-weight:600; }
.credential-role { display:block; color:var(--muted); font-size:13px; margin-top:3px; }
@media (max-width:440px) {
  .company-credentials .credential-row { grid-template-columns:1fr; gap:7px; padding:17px 0; }
  .company-credentials dd { font-size:16px; }
  .credential-role { font-size:14px; }
}
/* The growing slideshow keeps every photo inside one box. */
.slide-position { flex-wrap:wrap; justify-content:center; gap:0; }
.work-controls { gap:14px; }
.work-controls .slide-arrows, .work-controls .slide-play { flex-shrink:0; }
@media (max-width:700px) {
  .work-controls { justify-content:center; }
  .slide-position { order:3; width:100%; }
  .slide-play { width:auto; }
  .slide-dot { width:28px; }
}

/* Desktop-only logo enlargement; existing header height and mobile sizing stay intact. */
@media (min-width:901px) {
  .header .brand img { width:88px; height:88px; }
}

/* Targeted display fixes: preserve the complete lizard fixture inside a square slide. */
.work-slide-square img { aspect-ratio:1 / 1; object-fit:contain; background:#142334; }
@media (max-width:700px) { .work-slide-square img { aspect-ratio:1 / 1; } }

/* Final square presentation for the lizard slide. */
.work-slide-square img { width:min(100%,480px); height:auto !important; aspect-ratio:1 / 1; object-fit:contain; margin-inline:auto; }
@media (max-width:700px) { .work-slide-square img { width:100%; max-width:100%; } }

/* Keep the backup-power portrait image inside the service layout. */
#service-backup-power { grid-template-columns:.8fr 1.6fr; }
#service-backup-power .flow-service-photo { max-width:100%; }
#service-backup-power .flow-service-photo img { width:100%; max-height:450px; object-fit:contain; }
@media (max-width:760px) {
  #service-backup-power { grid-template-columns:1fr; }
  #service-backup-power .flow-service-photo img { width:min(100%,520px); max-height:320px; margin-inline:auto; }
}
