/* Layout concept: the drawing sheet. Pages read like an issued set: sheet labels, a title block, ruler ticks from the logo. */
:root {
  --paper: #f6f8f7;
  --sheet: #ffffff;
  --ink: #1d2729;
  --ink-soft: #4d5b5d;
  --line: #d5dddc;
  --teal: #0d7a71;
  --teal-bright: #1aa99c;
  --gold: #f2ba67;
  --gold-ink: #3a2a0f;
  --band: #1d2729;
  --band-fg: #eef3f2;
  --band-soft: #a9b8b6;
  --font-display: "Arial Narrow", "Archivo Narrow", Arial, sans-serif;
  --font-body: "Arial Narrow", "Archivo Narrow", Arial, sans-serif;
  --font-mono: "Arial Narrow", "Archivo Narrow", Arial, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121819; --sheet: #192123; --ink: #e5ecea; --ink-soft: #a6b4b2; --line: #2d3a3c;
    --teal: #4cc5b8; --teal-bright: #4cc5b8; --gold: #f2ba67; --gold-ink: #2a1d07;
    --band: #0b1011; --band-fg: #e5ecea; --band-soft: #93a3a1; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121819; --sheet: #192123; --ink: #e5ecea; --ink-soft: #a6b4b2; --line: #2d3a3c;
  --teal: #4cc5b8; --teal-bright: #4cc5b8; --gold: #f2ba67; --gold-ink: #2a1d07;
  --band: #0b1011; --band-fg: #e5ecea; --band-soft: #93a3a1; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 1.15rem; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }
.label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 60ch; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* Ruler ticks, lifted from the logo */
.ruler { height: 14px; background:
  repeating-linear-gradient(90deg, var(--teal-bright) 0 1px, transparent 1px 50px) bottom/100% 14px no-repeat,
  repeating-linear-gradient(90deg, var(--teal-bright) 0 1px, transparent 1px 10px) bottom/100% 7px no-repeat; opacity: .8; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--sheet); border-bottom: 1px solid var(--line); }
.topbar { background: var(--band); color: var(--band-soft); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-block: 6px; }
.topbar a { color: var(--band-fg); text-decoration: none; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; border-radius: var(--radius); }
.nav-links a:hover { background: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 30px; border-radius: var(--radius); font-weight: 600; font-size: 2rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #f5c983; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.nav .btn { padding: 16px 30px; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--sheet); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px 64px; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 .hl { box-shadow: inset 0 -0.28em 0 var(--gold); }
.hero-figure { position: relative; min-width: 0; }
.hero-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 72%; border-radius: var(--radius); }
.titleblock { position: absolute; right: -12px; bottom: -22px; background: var(--sheet); border: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 0.72rem; display: grid; grid-template-columns: auto auto; min-width: 250px; max-width: calc(100% + 12px); }
.titleblock div { padding: 6px 10px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.titleblock div:nth-child(2n) { border-right: 0; font-weight: 600; color: var(--ink); }
.titleblock div:nth-child(2n+1) { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.titleblock div:nth-last-child(-n+2) { border-bottom: 0; }

/* Credentials strip */
.creds { background: var(--band); color: var(--band-fg); }
.creds ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); padding-block: 22px; padding-inline: 20px; gap: 0; }
.creds li { padding: 4px 18px; border-left: 1px solid #ffffff22; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.creds li:first-child { border-left: 0; padding-left: 0; }
.creds strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.creds span { font-size: 0.85rem; color: var(--band-soft); }

/* Sections */
.section { padding-block: 80px; }
.section-alt { background: var(--sheet); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.sheet-tag { display: inline-flex; gap: 10px; align-items: center; }
.sheet-tag::before { content: ""; width: 26px; height: 2px; background: var(--gold); }

/* Service grid */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.svc { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--sheet); }
.svc .code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); letter-spacing: .1em; }
.svc p { color: var(--ink-soft); font-size: 0.98rem; }
.svc a { margin-top: auto; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.svc-feature { background: var(--gold); color: var(--gold-ink); }
.svc-feature .code, .svc-feature p, .svc-feature a { color: var(--gold-ink); }

/* Quake band */
.quake { background: var(--band); color: var(--band-fg); }
.quake-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-block: 64px; align-items: start; }
.quake p { color: var(--band-soft); }
.quake .label { color: var(--gold); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--teal-bright); border-bottom: 2px solid var(--teal-bright); transform: rotate(-45deg); }
.quake .checklist li { color: var(--band-fg); }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.process li { padding: 22px 20px 0 0; border-top: 2px solid var(--ink); position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; counter-increment: step; }
.process li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: .8rem; color: var(--teal); }
.process li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; }
.process h3 { font-size: 1.12rem; }
.process p { font-size: .95rem; color: var(--ink-soft); }

/* Project feature */
.project-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--sheet); }
.project-feature > div { min-width: 0; }
.project-feature img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.project-body { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; font-size: .95rem; }
.spec dt { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.spec dd { margin: 0; }

/* CTA */
.cta { background: var(--gold); color: var(--gold-ink); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 48px; }
.cta p { max-width: 52ch; }
.cta .btn-dark { background: var(--gold-ink); color: #fff; }
.cta .phone { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--gold-ink); text-decoration: none; }

/* Page header (inner pages) */
.page-head { background: var(--sheet); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: 56px 44px; display: flex; flex-direction: column; gap: 16px; }

/* Detail blocks (services page) */
.detail { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 48px; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail > * { min-width: 0; }
.detail aside { display: flex; flex-direction: column; gap: 10px; }
.detail .body { display: flex; flex-direction: column; gap: 18px; }
.detail .body p { max-width: 66ch; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: .75rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink-soft); background: var(--sheet); }
.pill-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.about-grid > * { min-width: 0; }
.card { background: var(--sheet); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values > div { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 18px; }
.values p { color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery figure { margin: 0; background: var(--sheet); border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: center; background: #fff; }
.gallery figcaption { padding: 12px 16px; font-size: .88rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { aspect-ratio: 21/9; }
.drawing img { filter: none; }
:root[data-theme="dark"] .drawing img { filter: invert(.88) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drawing img { filter: invert(.88) hue-rotate(180deg); } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.6rem; color: var(--teal); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; color: var(--ink-soft); max-width: 70ch; display: flex; flex-direction: column; gap: 10px; }
.faq-group { display: flex; flex-direction: column; gap: 14px; }

/* Quote form */
.quote-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.quote-grid > * { min-width: 0; }
form.quote { background: var(--sheet); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 28px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; min-width: 0; }
legend { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; padding: 0; grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .q { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; }
textarea { min-height: 130px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .96rem; cursor: pointer; }
.checks input { margin-top: 5px; accent-color: var(--teal); }
.drop { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--paper); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.drop.over { border-color: var(--teal); }
.drop input { max-width: 100%; }
.file-list { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-soft); list-style: none; margin: 0; padding: 0; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-note { font-size: .85rem; color: var(--ink-soft); max-width: 46ch; }
.form-status { padding: 14px 16px; border: 1px solid var(--teal); border-radius: var(--radius); background: var(--paper); font-size: .95rem; }
.hidden-field { position: absolute; left: -9999px; }
.contact-card { background: var(--band); color: var(--band-fg); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 120px; }
.contact-card .label { color: var(--band-soft); }
.contact-card .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--gold); text-decoration: none; }
.contact-card a { color: var(--band-fg); }
.copy { background: none; border: 1px solid #ffffff33; color: var(--band-fg); border-radius: var(--radius); font: 500 .78rem var(--font-mono); padding: 4px 8px; cursor: pointer; margin-left: 8px; vertical-align: middle; }
.contact-row { display: flex; flex-direction: column; gap: 2px; }

/* Footer */
.site-footer { background: var(--band); color: var(--band-soft); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 36px; }
.foot-grid > * { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer h3 { color: var(--band-fg); font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-logo { background: #fff; padding: 10px 14px; border-radius: var(--radius); width: max-content; max-width: 100%; }
.foot-logo img { height: 40px; width: auto; }
.foot-base { border-top: 1px solid #ffffff1a; }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-family: var(--font-mono); font-size: .75rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .quake-grid, .project-feature, .about-grid, .quote-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .creds ul { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .creds li:nth-child(4) { border-left: 0; padding-left: 0; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .detail { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { position: static; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); }
  .nav > .btn { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding-block: 56px; }
  .svc-grid, .gallery, .cols-2, .checks, fieldset, .process { grid-template-columns: 1fr; }
  .creds ul { grid-template-columns: 1fr 1fr; }
  .creds li { border-left: 0 !important; padding-left: 0 !important; }
  .titleblock { position: static; margin-top: 12px; max-width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  form.quote { padding: 20px; }
  .project-body { padding: 24px; }
  .brand img { height: 38px; }
  .gallery .wide img { aspect-ratio: 16/10; }
}

/* Photos */
.photo { width: 100%; object-fit: cover; background: var(--line); border-radius: var(--radius); }
.svc-img { aspect-ratio: 16/10; margin: -28px -26px 6px; width: calc(100% + 52px); max-width: none; border-radius: 0; }
.quake-img { aspect-ratio: 16/10; }
.aside-img { aspect-ratio: 4/3; margin-top: 10px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-strip figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo-strip img { aspect-ratio: 4/3; }
.photo-strip figcaption { font-size: .85rem; color: var(--ink-soft); }
.photo-missing { display: none !important; }
@media (max-width: 600px) { .photo-strip { grid-template-columns: 1fr 1fr; } .svc-img { margin: -28px -26px 6px; } }
.hero-figure:has(.photo-missing) { display: none; }
@media (min-width: 981px) { .hero-grid:has(.photo-missing) { grid-template-columns: 1fr; } }

/* On-site video */
.onsite-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 64px; align-items: center; }
.onsite-grid > * { min-width: 0; }
.video-frame { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.video-frame video { width: 100%; aspect-ratio: 9/16; max-height: 680px; object-fit: cover; border-radius: var(--radius); background: var(--band); display: block; }
@media (max-width: 980px) { .onsite-grid { grid-template-columns: 1fr; gap: 24px; } .video-frame { max-width: 360px; } }
