:root { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: sticky site header, three hash-routed views (home, services, contact), copper-pipe line motif on a cool slate ground */
:root {
  --bg: #EDF1F2;
  --surface: #FFFFFF;
  --ink: #0F2229;
  --muted: #4A5F66;
  --line: #CBD6D9;
  --accent: #B4531F;
  --accent-ink: #FFFFFF;
  --deep: #0F3A44;
  --deep-ink: #EAF3F4;
  --deep-muted: #A9C4CA;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1A1F; --surface: #132830; --ink: #E6F0F2; --muted: #9DB4BA; --line: #25404A;
    --accent: #E07B3C; --accent-ink: #1A0B03; --deep: #07252D; --deep-ink: #E6F0F2; --deep-muted: #8FB0B7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1A1F; --surface: #132830; --ink: #E6F0F2; --muted: #9DB4BA; --line: #25404A;
  --accent: #E07B3C; --accent-ink: #1A0B03; --deep: #07252D; --deep-ink: #E6F0F2; --deep-muted: #8FB0B7;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; max-width: 65ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.ph { font-family: var(--font-mono); font-size: 0.92em; border-bottom: 1.5px dashed var(--accent); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.97rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.nav a.nav-cta { background: var(--accent); color: var(--accent-ink); margin-left: 6px; font-weight: 600; border-radius: 8px; box-shadow: none; }
.nav a.nav-cta:hover { filter: brightness(1.08); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }

section { padding-block: clamp(44px, 7vw, 84px); }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 72px) clamp(44px, 7vw, 84px); }
.hero-grid { max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 20px; font-size: 1.15rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .call-line { margin-top: 18px; font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); }
.hero .call-line strong { color: var(--ink); font-weight: 500; }


/* trust band */
.band { background: var(--deep); color: var(--deep-ink); }
.band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px 28px; padding-block: 22px; }
.band-item { display: flex; gap: 12px; align-items: center; font-weight: 500; font-size: 0.97rem; min-width: 0; }
.band-item svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
:root[data-theme="light"] .band-item svg, .band-item svg { color: #F0A070; }

/* service tiles on home */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile .spec { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.04em; }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile a.more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; color: var(--ink); }
.tile a.more:hover { color: var(--accent); }

/* process */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px 22px 22px 0; position: relative; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--font-mono); font-size: 0.85rem; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 500; margin-bottom: 12px; }
.steps li::after { content: ""; position: absolute; top: 37px; left: 40px; right: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); opacity: 0.7; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.1rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.95rem; }

.cta-band { background: var(--deep); color: var(--deep-ink); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band p { color: var(--deep-muted); margin-top: 8px; }
.cta-band .btn.ghost { color: var(--deep-ink); border-color: var(--deep-ink); }
.cta-band .btn.ghost:hover { background: var(--deep-ink); color: var(--deep); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* services page */
.page-head { padding-block: clamp(36px, 6vw, 64px) 12px; }
.page-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 20px clamp(24px, 5vw, 64px); padding-block: 36px; border-top: 1px solid var(--line); }
.service:first-of-type { margin-top: 24px; }
.service .spec { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 8px; display: block; }
.service .intro p { color: var(--muted); margin-top: 12px; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.service li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.service .when { margin-top: 18px; font-size: 0.93rem; color: var(--muted); padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: none; }
.service .when strong { color: var(--ink); }

.service { scroll-margin-top: 90px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(24px, 5vw, 56px); align-items: start; }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
label { font-weight: 600; font-size: 0.93rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); outline-offset: 1px; }
.err { color: var(--accent); font-size: 0.88rem; min-height: 1.1em; font-weight: 500; }
.side { display: grid; gap: 18px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: 0; }
.card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.card dl { margin: 0; display: grid; gap: 12px; }
.card dt { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.areas li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; background: var(--bg); }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 12px; }
.result { border: 2px solid var(--accent); border-radius: 12px; padding: clamp(18px, 3vw, 28px); background: var(--surface); display: grid; gap: 14px; }
.result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 0.88rem; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 28px; }
.chip { font: inherit; font-size: 0.95rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { column-width: 260px; column-gap: 22px; padding-bottom: clamp(44px, 7vw, 84px); }
.gallery figure { margin: 0 0 24px; break-inside: avoid; min-width: 0; }
.shot-btn { display: block; width: 100%; padding: 0; border: 0; background: var(--surface); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.shot-btn img { display: block; width: 100%; height: auto; transition: transform 0.25s ease; }
.shot-btn:hover img { transform: scale(1.03); }
.gallery figcaption { margin-top: 10px; font-weight: 600; }
.gallery figcaption span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
dialog.lightbox { border: 0; padding: 0; background: transparent; color: #EAF3F4; width: min(96vw, 760px); max-width: none; max-height: 96vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(5, 15, 18, 0.88); }
.lb-inner { display: grid; gap: 12px; justify-items: center; }
.lb-inner form { background: none; border: 0; padding: 0; border-radius: 0; display: block; justify-self: end; }
.lb-inner img { max-width: 100%; max-height: 70vh; width: auto; height: auto; border-radius: 10px; display: block; }
.lb-cap { text-align: center; font-weight: 600; }
.lb-cap span { display: block; font-weight: 400; font-size: 0.92rem; opacity: 0.8; }
.lb-close { justify-self: end; font: inherit; font-weight: 600; background: var(--surface); color: var(--ink); border: 0; padding: 8px 16px; border-radius: 8px; cursor: pointer; }

/* footer */
footer { background: var(--deep); color: var(--deep-ink); padding-block: 36px; font-size: 0.93rem; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
footer h3 { font-size: 1rem; margin-bottom: 8px; }
footer p, footer a { color: var(--deep-muted); }
footer a { text-decoration: none; display: block; padding: 2px 0; }
footer a:hover { color: var(--deep-ink); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; font-size: 0.85rem; }
footer .ph { border-bottom-color: #F0A070; }

@media (max-width: 800px) {
  .hero-grid, .service, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li::after { display: none; }
  .nav a { padding: 8px 10px; }
}

/* logos */
.brand img { display: block; height: 44px; width: auto; max-width: 100%; }
.footer-logo { display: block; height: 40px; width: auto; max-width: 100%; margin-bottom: 10px; }

/* area pages */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.areas li:has(> a) { padding: 0; }
.areas li > a { display: block; padding: 5px 12px; text-decoration: none; border-radius: 999px; }
.areas li:has(> a):hover { border-color: var(--accent); }
.areas li[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.areas li > a:hover { color: var(--accent); }
.svc-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.svc-links a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; height: 100%; }
.svc-links a:hover { border-color: var(--accent); color: var(--accent); }
.svc-links span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.prose { display: grid; gap: 14px; }
.prose p { max-width: 65ch; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.area-section { padding-block: 0 clamp(36px, 5vw, 56px); }
.area-section h2 { margin-bottom: 18px; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; padding-bottom: clamp(44px, 7vw, 84px); }
.area-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; min-width: 0; }
.area-card:hover { border-color: var(--accent); }
.area-card h2 { font-size: 1.3rem; margin: 0; }
.area-card .pc { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.04em; }
.area-card p { color: var(--muted); font-size: 0.95rem; }
.area-card .go { margin-top: auto; padding-top: 6px; font-weight: 600; }

/* quick contact bar */
.quick-contact { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; 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)); background: var(--bg); border-top: 1px solid var(--line); }
.quick-contact a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.quick-contact svg { width: 20px; height: 20px; flex: none; }
.qc-call { background: var(--accent); color: var(--accent-ink); }
.qc-wa { background: #0B7A3B; color: #FFFFFF; }
.quick-contact a:hover { filter: brightness(1.08); }
@media (max-width: 800px) { body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 801px) {
  .quick-contact { left: auto; right: max(20px, env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); padding: 0; background: none; border: 0; }
  .quick-contact .qc-call { display: none; }
  .quick-contact a { padding: 0 22px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); }
}

/* footer legal + policy page */
footer .legal a { display: inline; text-decoration: underline; }
.policy { max-width: 70ch; padding-bottom: clamp(44px, 7vw, 84px); }
.policy h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.policy p + p, .policy p + ul, .policy ul + p { margin-top: 12px; }
.policy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.policy a { color: var(--accent); text-underline-offset: 3px; }
.policy p { max-width: none; }
