:root {
  --anthracite: #2b2b2b;
  --dark: #444444;
  --muted: #f4f4f4;
  --white: #ffffff;
  --gold: #c79d5b;
  --highlight-bg: #fbf6ee;
  --highlight-border: #c79d5b;
  --line: #dedede;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--anthracite);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 28px rgba(0,0,0,.1); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0; }
.logo-img { width: 166px; height: auto; display: block; }
.footer-logo-img { filter: brightness(0) invert(1); opacity: .86; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--anthracite);
  color: var(--gold);
  font-weight: 800;
}
.logo-text { text-transform: uppercase; font-size: .92rem; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.main-nav a { position: relative; padding: 28px 0; color: var(--dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: var(--anthracite); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero-slider {
  display: block;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .65s ease, visibility .65s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43,43,43,.76), rgba(43,43,43,.24)), url("../img/hero/architecture-hero.svg") center/cover no-repeat;
  z-index: -1;
}
.hero-content {
  width: min(780px, 88vw);
  margin: 0 0 9vh 6vw;
  color: var(--white);
}
.eyebrow, .section-kicker {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; margin: 0 0 18px; font-weight: 760; letter-spacing: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.8rem); max-width: 920px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 3.2rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 18px; }
.hero-content p:not(.eyebrow) { max-width: 640px; font-size: 1.17rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-slider-controls {
  position: absolute;
  left: 6vw;
  bottom: 4vh;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-slider-controls button {
  width: 34px;
  height: 4px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.55);
  cursor: pointer;
}
.hero-slider-controls button.is-active {
  background: var(--gold);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--anthracite);
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #d5ad71; }
.button-secondary { background: transparent; color: var(--white); }

.section { padding: 92px 6vw; }
.section-muted { background: var(--muted); }
.section-dark { background: var(--anthracite); color: var(--white); }
.split, .section-head, .why-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}
.service-detail .split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.feature-copy {
  margin-top: 38px;
}
.section-head { align-items: end; margin-bottom: 36px; }
.text-link { color: var(--gold); font-weight: 800; }
.card-grid, .reference-grid, .team-grid, .values-grid, .fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-grid span {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 14px;
  font-weight: 700;
}
.content-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}
.content-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 30px;
}
.accent-panel {
  border-color: var(--highlight-border);
  background: var(--highlight-bg);
}
.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.clean-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.clean-list li:last-child { border-bottom: 0; }
.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 7px;
  height: 7px;
  background: var(--gold);
}
.project-list {
  display: grid;
  gap: 24px;
}
.project-panel {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr) minmax(260px, .75fr);
  gap: 32px;
  align-items: start;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
}
.project-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.project-panel:hover .project-image img { transform: scale(1.04); }
.project-panel ul {
  margin: 0;
  padding-left: 20px;
  columns: 2;
}
.project-panel li { margin-bottom: 8px; }
.service-card, .team-card, .values-grid div, .fact-grid div {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  min-height: 230px;
}
.card-icon { display: inline-block; margin-bottom: 22px; color: var(--gold); font-weight: 900; }
.service-list .service-card { min-height: 360px; }
.reference-card { background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.reference-image { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.reference-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.reference-card:hover img { transform: scale(1.06); }
.reference-body { padding: 22px; }
.reference-body p { color: var(--gold); font-weight: 800; font-size: .84rem; text-transform: uppercase; }
.reference-body span, .team-card span, .values-grid span, .fact-grid span { color: #666; }
.section-dark .fact-grid div { background: transparent; border-color: rgba(255,255,255,.2); }
.section-dark .fact-grid span { color: rgba(255,255,255,.78); }
.fact-grid strong { display: block; color: var(--gold); font-size: 2rem; margin-bottom: 14px; }
.contact-teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--muted); }
.contact-teaser h2 { max-width: 850px; margin: 0; }

.page-hero {
  min-height: 54vh;
  display: grid;
  align-items: end;
  padding: 120px 6vw 76px;
  background: linear-gradient(90deg, rgba(43,43,43,.85), rgba(43,43,43,.36)), url("../img/hero/architecture-hero.svg") center/cover no-repeat;
  color: var(--white);
}
.page-hero.compact p:not(.eyebrow) { max-width: 680px; font-size: 1.12rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-bar a {
  border: 1px solid var(--line);
  padding: 9px 14px;
  background: var(--white);
}
.filter-bar a.active { border-color: var(--gold); background: var(--gold); color: var(--anthracite); }
.team-card { display: grid; grid-template-columns: 116px 1fr; gap: 20px; align-items: center; min-height: 0; }
.team-card img { width: 116px; height: 116px; object-fit: cover; background: var(--muted); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 40px; align-items: start; }
.contact-form, .contact-panel, .login-box, .admin-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}
.contact-list {
  display: grid;
  gap: 12px;
}
.contact-list p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}
.contact-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #87909a;
}
.contact-icon::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.icon-home::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  display: block;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 1px;
}
.icon-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}
.icon-phone::before { content: "☎"; }
.icon-mobile::before { content: "▯"; }
.icon-fax::before { content: "▦"; }
.icon-mail::before { content: "✉"; }
label { display: grid; gap: 7px; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid #cfcfcf;
  padding: 12px 14px;
  background: var(--white);
  color: var(--anthracite);
}
textarea { resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-message { padding: 12px 14px; border-left: 4px solid var(--gold); background: #fbf6ee; }
.form-message.error { border-color: #a33; background: #fff1f1; }
.map-placeholder,
.map-consent {
  display: grid;
  place-items: center;
  min-height: 250px;
  background: var(--muted);
  color: #777;
  border: 1px solid var(--line);
}
.map-consent {
  min-height: 300px;
  padding: 24px;
  text-align: center;
}
.map-consent-box {
  max-width: 560px;
}
.map-consent-box h3 {
  color: var(--anthracite);
}
.map-consent-box .button {
  width: auto;
  margin: 8px auto 12px;
}
.map-consent iframe {
  width: 100%;
  height: 360px;
  border: 0;
}
.map-consent.is-loaded {
  display: block;
  padding: 0;
  background: var(--white);
}
.legal { max-width: 860px; }

.site-footer { background: #202020; color: rgba(255,255,255,.78); padding: 60px 6vw 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr .8fr; gap: 36px; }
.footer-grid h2 { font-size: 1rem; color: var(--white); }
.footer-grid a { display: block; margin: 8px 0; }
.footer-logo { color: var(--white); margin-bottom: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; font-size: .9rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.82);
  padding: 5vw;
}
.lightbox img { max-height: 86vh; width: auto; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.lightbox button { position: fixed; top: 22px; right: 24px; width: 46px; height: 46px; border: 0; background: var(--white); font-size: 1.4rem; cursor: pointer; }

.login-body { min-height: 100vh; display: grid; place-items: center; background: var(--muted); padding: 24px; }
.login-box { width: min(420px, 100%); }
.admin-body { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #f7f7f7; }
.admin-sidebar { background: var(--anthracite); color: var(--white); padding: 28px; }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 34px; }
.admin-sidebar a { padding: 9px 0; }
.admin-main { padding: 40px; overflow-x: auto; }
.admin-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.admin-cards article { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.admin-cards strong { display: block; font-size: 2.3rem; color: var(--gold); }
.admin-action { margin-bottom: 20px; }
.admin-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.admin-count {
  color: #666;
  font-weight: 800;
}
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); }
.admin-table th, .admin-table td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-actions { display: flex; gap: 12px; align-items: center; }
.table-actions button { border: 0; background: none; color: #9b2f2f; cursor: pointer; padding: 0; }
.admin-form { max-width: 820px; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }
.admin-thumb,
.admin-preview {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.admin-thumb {
  width: 112px;
  aspect-ratio: 4 / 3;
}
.admin-preview {
  width: min(320px, 100%);
  aspect-ratio: 4 / 3;
}
.admin-thumb img,
.admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 6vw 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: grid; gap: 0; }
  .main-nav a { padding: 14px 0; }
  .main-nav a::after {
    bottom: 8px;
  }
  .split, .section-head, .why-grid, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .reference-grid, .team-grid, .values-grid, .fact-grid, .admin-cards { grid-template-columns: 1fr; }
  .content-columns { grid-template-columns: 1fr; }
  .feature-copy { margin-top: 0; }
  .project-panel { grid-template-columns: 1fr; }
  .project-panel ul { columns: 1; }
  .hero-content { margin: 0 6vw 8vh; }
  .section { padding: 68px 6vw; }
  .contact-teaser { display: grid; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-main { padding: 28px 18px; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; }
  .main-nav { top: 68px; }
  .logo-text { font-size: .8rem; }
  .hero { min-height: calc(100vh - 68px); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .team-card { grid-template-columns: 1fr; }
  .team-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .contact-form, .contact-panel, .login-box, .admin-form { padding: 22px; }
}
