:root {
  --blue: #004E94;          /* from the logo's P */
  --blue-deep: #003A70;
  --blue-wash: #E6EEF7;
  --graphite: #363636;      /* from the logo's M */
  --ink: #232323;
  --muted: #5F6670;
  --paper: #FFFFFF;
  --vellum: #F2F5F9;
  --line: #CBD6E2;
  --line-soft: #E1E8F0;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --wide: 118;
  --pad: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 {
  font-variation-settings: "wdth" var(--wide);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 18px; }
h3 { font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 58ch; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font);
  padding: 16px 26px;
  border-radius: 2px;
  border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.outline { background: transparent; color: var(--blue); }
.btn.outline:hover { background: var(--blue-wash); }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--graphite); }
.nav-links a:hover { color: var(--blue); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }
.nav-phone { font-weight: 700 !important; color: var(--blue) !important; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--line); border-radius: 2px; padding: 9px 12px; font: 600 14px var(--font); color: var(--ink); cursor: pointer; }

/* ─── Hero: a drawing sheet ─── */
.hero { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); background: var(--vellum); }
.sheet {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--graphite);
  outline: 1px solid var(--graphite);
  outline-offset: 7px;
  margin: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
/* grid reference marks along the border, like a real sheet */
.refs { position: absolute; font-size: 11px; font-weight: 600; color: var(--muted); display: flex; pointer-events: none; }
.refs.top { top: -19px; left: 0; right: 0; justify-content: space-around; }
.refs.side { left: -19px; top: 0; bottom: 0; flex-direction: column; justify-content: space-around; }
.sheet-body { padding: clamp(36px, 6vw, 88px) clamp(24px, 5vw, 72px); background: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.75)); }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); margin-bottom: 36px; max-width: 12ch; }
.dim { position: relative; max-width: 560px; margin-bottom: 36px; color: var(--blue); }
.dim svg { width: 100%; height: 34px; overflow: visible; }
.dim-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 6px; }
.dim-line { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 1.4s .3s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-bottom: 36px; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* title block */
.titleblock { border-left: 1.5px solid var(--graphite); display: flex; flex-direction: column; background: var(--paper); }
.tb-logo { padding: 28px 24px; border-bottom: 1.5px solid var(--graphite); }
.tb-logo img { width: 100%; max-width: 250px; margin: 0 auto; }
.tb-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--graphite); }
.tb-cell { padding: 12px 16px; }
.tb-cell + .tb-cell { border-left: 1px solid var(--graphite); }
.tb-cell.full { grid-column: 1 / -1; }
.tb-k { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.tb-v { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tb-v a { text-decoration: none; color: var(--blue); font-variation-settings: "wdth" 110; font-size: 20px; font-weight: 700; }
.tb-sheet { margin-top: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 16px; gap: 12px; }
.tb-sheet .num { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 40px; line-height: 1; color: var(--blue); }

/* ─── Sections ─── */
section { padding: clamp(72px, 9vw, 120px) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 56px; }
.sec-head .lede { justify-self: end; }

/* Services as a drawing list */
.svc-list { border-top: 1.5px solid var(--graphite); }
.svc {
  display: grid; grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .9fr);
  gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.svc-ico { width: 44px; height: 44px; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; }
.svc p { color: var(--muted); }
.svc .for { font-size: 14px; color: var(--graphite); }
.svc .for b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }

/* Process */
.process { background: var(--blue); color: #fff; }
.process h2, .process h3 { color: #fff; }
.process .lede { color: rgba(255,255,255,.78); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.35); }
.steps li { counter-increment: s; padding-right: 24px; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 22px;
  background: var(--blue); border: 1.5px solid #fff; border-radius: 50%;
  font-variation-settings: "wdth" 125; font-weight: 800; font-size: 17px; position: relative;
}
.steps p { color: rgba(255,255,255,.78); font-size: 15px; }

/* Projects gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1.5px solid var(--graphite); margin-bottom: 32px; }
.tab {
  font: 600 15px var(--font); color: var(--muted);
  background: none; border: none; cursor: pointer;
  padding: 14px 20px 12px; margin-bottom: -1.5px;
  border-bottom: 3px solid transparent;
  display: inline-flex; gap: 8px; align-items: baseline;
}
.tab .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { background: none; border: none; padding: 0; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--vellum); border: 1px solid var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-cap { padding: 12px 2px 0; display: flex; justify-content: space-between; gap: 12px; }
.tile-cap strong { font-weight: 600; font-size: 16px; }
.tile-cap span { font-size: 14px; color: var(--muted); white-space: nowrap; }
.empty { grid-column: 1 / -1; padding: 56px 24px; text-align: center; border: 1.5px dashed var(--line); color: var(--muted); }

/* Lightbox */
dialog.lb { border: none; padding: 0; max-width: min(1100px, 94vw); width: 100%; background: transparent; margin: auto; }
dialog.lb::backdrop { background: rgba(20, 24, 30, .9); }
.lb-inner { background: var(--paper); }
.lb-inner img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--vellum); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1.5px solid var(--graphite); }
.lb-bar strong { font-weight: 600; }
.lb-bar span { color: var(--muted); font-size: 14px; }
.lb-ctrls { display: flex; gap: 8px; }
.lb-ctrls button { font: 600 14px var(--font); border: 1.5px solid var(--line); background: #fff; padding: 9px 14px; cursor: pointer; border-radius: 2px; }
.lb-ctrls button:hover { border-color: var(--blue); color: var(--blue); }

/* Why + testimonials */
.why { background: var(--vellum); }
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.why-points { list-style: none; margin-top: 36px; }
.why-points li { padding: 20px 0 20px 36px; border-top: 1px solid var(--line); position: relative; }
.why-points li::before { content: ''; position: absolute; left: 0; top: 26px; width: 16px; height: 16px; border: 1.5px solid var(--blue); background: linear-gradient(135deg, transparent 45%, var(--blue) 45%, var(--blue) 55%, transparent 55%); }
.why-points p { color: var(--muted); }
blockquote { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--blue); padding: 28px 30px; margin-bottom: 20px; }
blockquote p { font-size: 18px; line-height: 1.6; margin-bottom: 16px; }
blockquote footer { font-size: 14px; color: var(--muted); }
blockquote footer b { color: var(--ink); font-weight: 600; }

/* Areas */
.areas { columns: 4 180px; column-gap: 32px; list-style: none; border-top: 1.5px solid var(--graphite); padding-top: 8px; }
.areas li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.areas-note { margin-top: 24px; color: var(--muted); }

/* Contact */
.contact { background: var(--graphite); color: #fff; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); }
.contact .lede { color: rgba(255,255,255,.75); }
.c-rows { margin-top: 40px; border-top: 1px solid rgba(255,255,255,.2); }
.c-row { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: 110px 1fr; gap: 16px; }
.c-row dt { color: rgba(255,255,255,.6); font-size: 14px; padding-top: 2px; }
.c-row dd a { color: #fff; text-decoration: none; font-weight: 600; font-size: 18px; }
.c-row dd a:hover { text-decoration: underline; }
form.quote { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 44px); }
form.quote h3 { font-size: 24px; margin-bottom: 6px; }
form.quote .sub { color: var(--muted); margin-bottom: 26px; font-size: 15px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px var(--font); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 2px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field textarea { min-height: 110px; resize: vertical; }
form.quote .btn { width: 100%; margin-top: 6px; }
.f-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.hidden { display: none; }

/* Footer */
.site-foot { background: #262626; color: rgba(255,255,255,.65); padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-grid img { width: 200px; margin-bottom: 16px; }
.foot-grid h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ─── Responsive ─── */
@media (max-width: 1020px) {
  .sheet { grid-template-columns: 1fr; }
  .titleblock { border-left: none; border-top: 1.5px solid var(--graphite); }
  .tb-logo { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
  .sec-head .lede { justify-self: start; }
  .svc { grid-template-columns: 56px 1fr; }
  .svc p, .svc .for { grid-column: 2; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { top: 0; bottom: 0; left: 22px; right: auto; width: 1px; height: auto; }
  .steps li { padding-left: 68px; padding-right: 0; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px var(--pad) 16px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-logo img { height: 42px; }
}
@media (max-width: 600px) {
  .refs { display: none; }
  .sheet { outline-offset: 4px; margin: 4px; }
  .gallery { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .tab { padding: 12px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dim-line { animation: none; stroke-dashoffset: 0; }
  .tile-img img { transition: none; }
}

/* ─── Shared additions (multi-page) ─── */
.nav-links a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
.more-row { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.more-row p { color: var(--muted); }

/* Gallery page header */
.page-head { background: var(--vellum); border-bottom: 1.5px solid var(--graphite); padding: clamp(48px, 7vw, 96px) 0 0; }
.page-head .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); margin-bottom: 16px; }
.page-head .lede { margin-bottom: 32px; }
.page-head .sheet-no { border: 1.5px solid var(--graphite); border-bottom: none; background: var(--paper); padding: 14px 20px; text-align: right; min-width: 170px; }
.page-head .sheet-no .tb-k { margin-bottom: 0; }
.page-head .sheet-no .num { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 40px; line-height: 1.05; color: var(--blue); }
.page-head .tabs { border-bottom: none; margin-bottom: -1.5px; }
.gallery-page { padding-top: 40px; }
.gallery-page .gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-cta { background: var(--blue); color: #fff; padding: 56px 0; }
.gallery-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.gallery-cta h2 { color: #fff; margin: 0; font-size: clamp(26px, 3vw, 36px); }
.gallery-cta .btn { background: #fff; color: var(--blue); border-color: #fff; }
.gallery-cta .btn:hover { background: var(--blue-wash); }
@media (max-width: 600px) {
  .page-head .row { grid-template-columns: 1fr; }
  .page-head .sheet-no { display: none; }
  .gallery-page .gallery { grid-template-columns: 1fr; }
}
