:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #7a7a7a;
  --line: #e8e8e8;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
svg { display: block; }
a { color: inherit; }
h1, h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7.4vw, 6.2rem); max-width: 14ch; }
h1 span { color: var(--muted); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }

.label, .label-inline, .meta {
  font: 600 .72rem var(--display);
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted);
}
.label { margin: 0 0 2rem; }
.label-inline { display: block; margin-bottom: .6rem; }

.section { padding: clamp(72px, 11vw, 140px) 0 0; }
.section:last-of-type { padding-bottom: clamp(72px, 11vw, 140px); }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 1.7em; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff;
  font: 600 .78rem var(--display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .14em;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: block; }
.wordmark { height: 24px; width: auto; aspect-ratio: 345 / 92; }
.nav { display: flex; gap: 2.2rem; }
.nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; background: none; border: 0; padding: .4em 0; color: var(--ink);
  font: 600 .72rem var(--display); text-transform: uppercase; letter-spacing: .18em;
}

/* Hero */
.hero { padding: clamp(64px, 12vw, 160px) 0 clamp(24px, 4vw, 40px); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 50ch; margin: 2rem 0 2.4rem; }
.meta { margin: 2.4rem 0 0; }

/* Service rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.3fr) 32px;
  gap: 1.5rem; align-items: baseline; padding: 1.6rem 0;
  text-decoration: none; transition: padding .2s;
}
.rows a:hover { padding-left: .6rem; }
.num { font: 600 .74rem var(--display); letter-spacing: .2em; color: var(--muted); }
.row-title { font: 700 1.25rem var(--display); font-stretch: 112%; letter-spacing: -.015em; }
.row-title em {
  font: 600 .62rem var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .2em;
  border: 1px solid var(--ink); padding: .3em .6em; margin-left: .6rem; vertical-align: middle;
}
.row-text { color: var(--muted); }
.arrow { justify-self: end; transition: transform .2s; }
.rows a:hover .arrow { transform: translateX(4px); }

/* Photo hero: crossfading project photos behind the headline */
.hero-photo {
  position: relative; overflow: hidden; color: #fff; background: #111;
  min-height: min(92vh, 860px); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 28px;
}
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 8s ease-out;
}
.hero-slides img.active { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .78) 0%, rgba(8, 8, 8, .45) 45%, rgba(8, 8, 8, .05) 75%),
    linear-gradient(0deg, rgba(8, 8, 8, .7) 0%, rgba(8, 8, 8, 0) 40%);
}
.hero-content { position: relative; }
.hero-photo .meta { color: rgba(255, 255, 255, .78); }
.hero-photo h1 { color: #fff; }
.hero-photo .lead { color: rgba(255, 255, 255, .85); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.hero-foot { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-top: clamp(48px, 8vw, 96px); }
.hero-caption { margin: 0; font-size: .78rem; color: rgba(255, 255, 255, .7); letter-spacing: .04em; }
.hero-strip { display: flex; gap: 10px; }
.strip-card {
  position: relative; width: 132px; aspect-ratio: 4 / 3; padding: 0; border: 1px solid rgba(255, 255, 255, .6);
  background: #222; cursor: pointer; overflow: hidden;
}
.strip-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.strip-card:hover img { transform: scale(1.06); }
.strip-card span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem .5rem; text-align: left;
  background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent); color: #fff;
  font: 600 .62rem var(--display); text-transform: uppercase; letter-spacing: .14em;
}
@media (max-width: 640px) {
  .hero-photo { min-height: 88vh; padding-top: 96px; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 8, 8, .85) 0%, rgba(8, 8, 8, .55) 55%, rgba(8, 8, 8, .25) 100%); }
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-strip { gap: 8px; }
  .strip-card { flex: 1; width: auto; }
}

/* Hero CTAs */
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .meta { margin: 0 0 2rem; }
.section-tight { padding-top: clamp(40px, 6vw, 72px); }

/* Service grid */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.service {
  display: flex; flex-direction: column; min-height: 300px;
  padding: 28px 24px; text-decoration: none;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.service h3 { font: 700 1.3rem/1.15 var(--display); font-stretch: 112%; letter-spacing: -.02em; margin: 2.4rem 0 .8rem; }
.service p { color: var(--muted); font-size: .95rem; margin: 0 0 1.6rem; }
.service .more {
  margin-top: auto; display: flex; justify-content: space-between;
  font: 600 .7rem var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .16em;
}
.service:hover { background: var(--ink); color: #fff; }
.service:hover p, .service:hover .num { color: #a3a3a3; }

/* Free consultation band */
.free-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
  margin-top: 1.6rem; padding: 1.4rem 1.6rem; border: 1px solid var(--ink);
  text-decoration: none; transition: background .2s, color .2s;
}
.free-tag { background: var(--ink); color: #fff; font: 700 .66rem var(--display); text-transform: uppercase; letter-spacing: .2em; padding: .5em .8em; }
.free-text { color: var(--muted); font-size: .95rem; }
.free-text strong { display: block; color: var(--ink); font: 700 1.1rem var(--display); font-stretch: 112%; letter-spacing: -.01em; margin-bottom: .15rem; }
.free-band:hover { background: var(--ink); color: #fff; }
.free-band:hover .free-tag { background: #fff; color: var(--ink); }
.free-band:hover .free-text, .free-band:hover .free-text strong { color: #fff; }

/* Recent projects */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-media {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #eee;
  border: 1px solid var(--line); margin-bottom: 1rem;
}
.map-tiles { position: absolute; left: 0; top: 0; width: 768px; height: 768px; }
.map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; filter: grayscale(1) contrast(1.05) brightness(1.04); }
.map-area {
  position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; transform: translate(-50%, -50%);
  border: 2px solid var(--ink); border-radius: 50%; background: rgba(10, 10, 10, .08);
}
.project-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.project h3 { font: 700 1.15rem var(--display); font-stretch: 112%; letter-spacing: -.015em; margin: 0 0 .2rem; }
.project p { color: var(--muted); font-size: .9rem; margin: 0; }
.project-count { font: 600 .62rem var(--display); text-transform: uppercase; letter-spacing: .18em; border: 1px solid var(--ink); padding: .25em .5em; margin-left: .4rem; vertical-align: middle; }
.project[data-gallery] { cursor: pointer; }
.project[data-gallery] .project-photo { transition: transform .4s ease; }
.project[data-gallery]:hover .project-photo { transform: scale(1.03); }
.project[data-gallery]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.photo-count:not(:empty) {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  background: rgba(10, 10, 10, .85); color: #fff; padding: .35em .7em;
  font: 600 .64rem var(--display); text-transform: uppercase; letter-spacing: .16em;
}

/* Project gallery popup */
.gallery {
  width: min(1100px, 100% - 16px); max-height: calc(100dvh - 16px); padding: 0;
  border: 0; border-radius: 0; background: #0a0a0a; color: #fff; overflow: hidden;
}
.gallery::backdrop { background: rgba(10, 10, 10, .8); }
.gallery[open] { display: flex; flex-direction: column; animation: modal-in .2s ease-out; }
.gallery-head { display: flex; align-items: center; gap: 1rem; padding: 14px 18px; }
.gallery-head h2 { font-size: 1.05rem; margin: 0; flex: 1; }
.gallery-pos { color: #a3a3a3; font-size: .85rem; }
.gallery .modal-close { color: #fff; }
.gallery-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; background: #000; }
#gallery-img { max-width: 100%; max-height: calc(100dvh - 190px); object-fit: contain; display: block; user-select: none; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 48px; height: 48px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: #0a0a0a; font-size: 1.3rem;
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs img { width: 84px; height: 60px; object-fit: cover; flex: none; cursor: pointer; opacity: .5; transition: opacity .2s; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; outline: 2px solid #fff; outline-offset: -2px; }
@media (max-width: 640px) {
  .gallery-nav { width: 40px; height: 40px; }
  .gallery-thumbs img { width: 64px; height: 46px; }
}

.map-credit { margin: 1.4rem 0 0; font-size: .75rem; color: var(--muted); }
.map-credit a { color: inherit; }

/* Process */
.steps { list-style: none; margin: 0 0 4rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 1.4rem 1rem 0 0; font: 700 1.05rem var(--display); font-stretch: 112%; letter-spacing: -.01em; }
.steps span { display: block; font: 600 .74rem var(--display); letter-spacing: .2em; color: var(--muted); margin-bottom: .6rem; }
.areas { color: var(--muted); max-width: 70ch; margin: 0; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
details:first-of-type { border-top: 1px solid var(--ink); }
summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
  font: 600 1.05rem var(--sans);
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 300 1.4rem/1 var(--sans); color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: .8rem 0 0; max-width: 62ch; }

/* Contact */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact-line { margin-top: 2rem; font-weight: 600; line-height: 2; }
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-line a:hover { border-color: var(--ink); }
.form { display: grid; gap: 1.6rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form label { display: grid; gap: .3rem; font-size: .8rem; color: var(--muted); }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  padding: .55em 0; border: 0; border-bottom: 1px solid #cfcfcf; border-radius: 0; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a7a7a' stroke-width='1.5'/%3E%3C/svg%3E") right center no-repeat; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form .invalid { border-bottom-color: #c0392b !important; }
.addr { position: relative; }
.addr-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid var(--ink); border-top: 0; box-shadow: 0 10px 24px rgba(0,0,0,.1);
}
.addr-list[hidden] { display: none; }
.addr-list li { padding: .7rem .9rem; font-size: .92rem; cursor: pointer; }
.addr-list li + li { border-top: 1px solid var(--line); }
.addr-list li:hover, .addr-list li.active { background: #f2f2f2; }
.addr-list .addr-credit { font-size: .7rem; color: var(--muted); cursor: default; padding: .4rem .9rem; }
.addr-list .addr-credit:hover { background: none; }
.file-field { border: 1px dashed #cfcfcf; padding: 1.1rem; cursor: pointer; color: var(--ink) !important; }
.file-field.highlight { border: 1px solid var(--ink); }
.file-field small { display: block; color: var(--muted); font-size: .78rem; margin-top: .1rem; }
.file-field input { font: 400 .85rem var(--sans); margin-top: .6rem; }
.file-list { list-style: none; padding: 0; margin: -1rem 0 0; font-size: .85rem; color: var(--muted); }
.check { display: flex !important; align-items: center; gap: .7rem !important; font-size: .9rem !important; color: var(--ink) !important; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; }
.form-status { margin: -.6rem 0 0; font-size: .9rem; min-height: 1.4em; }
.form-status.ok { color: #1f6b43; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }

/* Contact section */
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .7em 1.1em; font-size: .7rem; }

/* Popup */
.modal {
  width: min(640px, 100% - 24px); max-height: calc(100dvh - 24px);
  padding: clamp(24px, 4vw, 40px); border: 1px solid var(--ink); border-radius: 0;
  color: var(--ink); background: #fff;
}
.modal::backdrop { background: rgba(10, 10, 10, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in .2s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.modal-head .label { margin-bottom: .8rem; }
.modal-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; max-width: 16ch; }
.modal-head h2 span { color: var(--muted); }
.modal-close { background: none; border: 0; font: 300 2rem/1 var(--sans); cursor: pointer; padding: 0 .2rem; color: var(--ink); }
.modal-call { margin: 1rem 0 .8rem; color: var(--muted); font-size: .92rem; }
.modal-note { margin: 0 0 2rem; padding: .8rem 1rem; background: #f5f5f5; font-size: .85rem; color: var(--muted); }
.modal-note strong { color: var(--ink); }
.modal-call a { color: var(--ink); font-weight: 600; }

/* Floating contact button */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: end; gap: .6rem; }
.fab-btn {
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  padding: 1.05em 1.5em; box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
  font: 600 .76rem var(--display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .16em;
}
.fab-menu { background: #fff; border: 1px solid var(--ink); box-shadow: 0 10px 32px rgba(0, 0, 0, .14); min-width: 250px; }
.fab-menu[hidden] { display: none; }
.fab-item {
  display: block; width: 100%; text-align: left; padding: 1rem 1.2rem;
  background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--ink);
  font: 600 1rem var(--sans);
}
.fab-item + .fab-item { border-top: 1px solid var(--line); }
.fab-item span { display: block; font: 600 .66rem var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--muted); margin-bottom: .2rem; }
.fab-item:hover { background: #f5f5f5; }

/* Confirmation toast */
.toast {
  position: fixed; left: 50%; top: 88px; z-index: 40; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 1rem 1.4rem; font-size: .95rem;
  box-shadow: 0 10px 32px rgba(0,0,0,.2); animation: toast-in .25s ease-out;
  transition: opacity .5s;
}
.toast.hide { opacity: 0; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 96px; }
.nav { align-items: center; }
.nav .btn { color: #fff; }
.nav .btn:hover { color: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: .85rem; color: var(--muted); }
.disclaimer { margin-top: 1.6rem !important; font-size: .78rem !important; }

/* Responsive */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
  .service { min-height: 0; }
  .projects { grid-template-columns: 1fr 1fr; }
  .free-band { grid-template-columns: 1fr auto; }
  .free-tag { justify-self: start; grid-column: 1 / -1; }
  .rows a { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: .4rem 1rem; }
  .row-text { grid-column: 2; grid-row: 2; }
  .arrow { grid-column: 3; grid-row: 1; }
  .steps { grid-template-columns: 1fr 1fr 1fr; row-gap: 1.6rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 0 16px 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink); }
  .steps { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr; }
  .service h3 { margin-top: 1.2rem; }
  .form .row { grid-template-columns: 1fr; }
}
