:root {
  --orange: #f47920;
  --orange-dark: #d66212;
  --black: #111111;
  --ink: #1a1a1a;
  --white: #ffffff;
  --muted: #d7d7d7;
  --paper: #e8e6e1;
  --danger: #8f1d1d;
  --ok: #1f6b32;
}

* { box-sizing: border-box; }
::selection {
  background: var(--orange);
  color: var(--white);
}
html {
  scrollbar-gutter: stable;
  overflow-anchor: none;
}
body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .brand strong, .section-title {
  font-family: Oswald, Impact, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.4em;
}
p { margin: 0 0 1em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
  border-bottom: 1px solid #222;
}
.header-inner, .footer-grid, .hero-actions, .about-points, .admin-toolbar, .admin-project {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-inner { min-height: 96px; justify-content: space-between; }
.hero-actions { flex-wrap: wrap; }
.brand, .site-nav, .header-phone, .about-points li, .social p { display: flex; align-items: center; gap: 10px; }
.brand { text-decoration: none; min-width: 0; }
.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 0 0 2px var(--orange);
}
.brand-text strong {
  display: block;
  font-size: 1.35rem;
  line-height: 0.95;
  margin: 0;
}
.brand-text em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { gap: 18px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a.is-active, .site-nav a:hover { color: var(--orange); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 12px 18px;
  font: 700 0.82rem/1 Montserrat, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn i { font-size: 0.95em; }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-black { background: var(--black); color: var(--white); width: 100%; }
.header-phone { flex: 0 0 auto; }

.hero {
  min-height: 78vh;
  min-height: 78svh;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  overflow-anchor: none;
}
.hero-media {
  position: absolute;
  inset: -18% 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.12) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 80px 0; max-width: 640px; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.4rem); line-height: 0.9; text-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.hero p { font-size: 1.05rem; max-width: 34rem; }

.services {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 30%),
    #0b0b0b;
  padding: 56px 0 48px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.service-grid article { text-align: center; }
.service-grid i {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 2.1rem;
}
.service-grid h2 { font-size: 1rem; }
.service-grid p { color: var(--muted); font-size: 0.88rem; }

.recent-work, .work-page { background: var(--paper); color: var(--ink); padding: 64px 0; }
.section-title, .page-hero h1 { text-align: center; }
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 2rem;
  margin-bottom: 32px;
}
.section-title::before, .section-title::after {
  content: "";
  width: 72px;
  height: 3px;
  background: var(--orange);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.project-card {
  position: relative;
  overflow: hidden;
  background: #222;
  color: var(--white);
  text-decoration: none;
  min-height: 180px;
  padding: 0;
  border: 0;
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.project-card:hover img { transform: scale(1.04); }
.project-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.project-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.82);
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.center { text-align: center; margin-top: 28px; }
.empty { text-align: center; color: inherit; opacity: 0.8; }

.page-hero { background: var(--black); padding: 48px 0 36px; }
.page-hero p { color: var(--muted); }
.admin-entry { margin-top: 16px; }
.admin-entry a {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.admin-entry a:hover { text-decoration: underline; }
.admin-toolbar-actions { display: flex; align-items: center; gap: 12px; }
.work-project + .work-project { margin-top: 48px; }
.work-copy { margin-bottom: 16px; }
.work-page .project-grid { grid-template-columns: repeat(3, 1fr); }

.lightbox {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}
.lightbox-stage {
  margin: 0;
  background: #000;
}
.lightbox-stage img {
  display: block;
  width: 100%;
  max-height: calc(100svh - 96px);
  object-fit: contain;
  background: #111;
}
.lightbox-stage figcaption {
  padding: 12px 16px;
  background: #000;
  color: var(--white);
  font-family: Oswald, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  cursor: pointer;
}
.lightbox-close {
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  background: var(--orange);
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  transform: translateY(-50%);
}
.lightbox-prev { left: -8px; }
.lightbox-next { right: -8px; }
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
  background: var(--orange);
}

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

.about-contact { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.about, .quote { padding: 64px clamp(20px, 6vw, 96px); }
.about { background: #141414; }
.eyebrow { color: var(--orange); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.about h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 0.95; }
.about-points { list-style: none; padding: 0; margin: 24px 0 0; flex-wrap: wrap; }
.about-points li { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.about-points i { color: var(--orange); font-size: 1.25rem; }
.quote { background: var(--orange); color: var(--white); }
.quote-form, .admin-card {
  display: grid;
  gap: 12px;
}
.quote-form { overflow-anchor: none; }
.quote-form h2 { font-size: 2.2rem; }
.field {
  position: relative;
  display: grid;
  grid-template-rows: max-content 44px;
  grid-auto-rows: 0;
  align-content: start;
  gap: 6px;
  overflow: hidden;
}
.field > :not(label):not(input):not(textarea) {
  position: absolute !important;
  inset: auto 10px 10px auto;
  margin: 0 !important;
}
.field:has(textarea) {
  grid-template-rows: max-content auto;
  overflow: visible;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
label span { font-weight: 400; opacity: 0.75; }
input, textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 2px solid var(--white);
  border-radius: 4px;
  padding: 10px 12px;
  font: 500 16px/1.3 Montserrat, sans-serif;
  background: var(--white);
  color: var(--ink);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"] {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}
input:focus, textarea:focus {
  border-color: var(--black);
  box-shadow: none;
}
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  position: absolute;
  right: 0;
  visibility: hidden;
  pointer-events: none;
}
.form-status.is-ok { color: #13381c; font-weight: 700; }
.form-status.is-error { color: #3b0d0d; font-weight: 700; }

.site-footer { background: #000; padding: 36px 0 0; }
.footer-grid { justify-content: space-between; align-items: flex-start; padding-bottom: 28px; }
.footer-grid p { margin: 0 0 6px; color: var(--muted); }
.footer-bar { background: #000; border-top: 1px solid #222; text-align: center; padding: 12px; font-size: 0.8rem; color: #888; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border: 1px solid #444;
  border-radius: 50%;
  text-decoration: none;
}
.social a:hover { border-color: var(--orange); color: var(--orange); }

.admin-page { background: var(--paper); color: var(--ink); min-height: 80vh; padding: 48px 0 64px; }
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
}
.admin-login-card {
  width: min(420px, 100%);
  padding: 36px 32px;
}
.admin-login-card h1 { font-size: 2.2rem; }
.admin-login-card p { color: #555; }
.admin-login-card .btn { width: auto; justify-self: start; }
.admin-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
.admin-card, .admin-project { background: var(--white); color: var(--ink); padding: 20px; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.file-hint {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 0.8rem;
  font-weight: 500;
}
.file-hint:empty { display: none; }
.admin-card.is-uploading :is(input, textarea, button) { pointer-events: none; }
.admin-card.is-uploading button { opacity: 0.65; }
.upload-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f4f2ee;
}
.upload-status[hidden] { display: none; }
.upload-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d8d4cc;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: upload-spin 0.7s linear infinite;
}
.upload-status-copy { min-width: 0; }
.upload-status-label, .upload-status-pct {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}
.upload-status-pct { color: #666; }
.upload-progress {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ddd8d0;
}
.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
  transition: width 0.15s ease;
}
@keyframes upload-spin {
  to { transform: rotate(360deg); }
}
.admin-card input, .admin-card textarea {
  background: #f4f2ee;
  border-color: #d4d0c8;
}
.admin-card input:focus, .admin-card textarea:focus {
  border-color: var(--black);
}
.admin-page .btn-ghost {
  color: var(--ink);
  border-color: #bbb;
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-danger:hover { background: #6f1515; }
.confirm-modal {
  width: min(440px, calc(100% - 32px));
  margin: auto;
  padding: 28px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.confirm-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
.confirm-modal h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.confirm-modal p {
  margin: 0 0 22px;
  color: #555;
}
.confirm-modal strong { color: var(--ink); }
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.admin-project img { width: 96px; height: 72px; object-fit: cover; }
.admin-list { display: grid; gap: 12px; align-content: start; }
.flash { padding: 10px 12px; border-radius: 4px; }
.flash-error { background: #f8d4d4; color: var(--danger); }
.flash-ok { background: #d9f3e0; color: var(--ok); }

@media (max-width: 980px) {
  .service-grid, .project-grid, .work-page .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-contact, .admin-layout { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .header-inner { min-height: 80px; }
  .brand-mark { width: 56px; height: 56px; }
  .brand-text strong { font-size: 1.15rem; }
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    background: var(--orange);
    color: var(--white);
    border: 0;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: 700;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    background: #111;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #222;
  }
  .site-nav.is-open { display: flex; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-copy { padding: 40px 0; }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .service-grid, .project-grid, .work-page .project-grid { grid-template-columns: 1fr; }
  .hero {
    min-height: 0;
    aspect-ratio: 1 / 1;
    max-height: calc(100svh - 80px);
  }
  .hero-media img { object-position: center; }
  .hero-copy { padding: 28px 0 32px; }
  .hero h1 { font-size: clamp(2.1rem, 12vw, 3.4rem); }
  .hero p { font-size: 0.98rem; }
  .section-title { font-size: 1.5rem; gap: 10px; }
  .section-title::before, .section-title::after { width: min(48px, 12vw); }
  .about, .quote { padding: 40px 20px; }
}
