:root {
  --ink: #171717;
  --muted: #6f6a64;
  --line: #e8e3dd;
  --smoke: #f7f5f2;
  --white: #ffffff;
  --clay: #9b6348;
  --olive: #63735f;
  --shadow: 0 18px 40px rgba(23, 23, 23, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
video,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(232, 227, 221, 0.7);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background: var(--ink);
}

.container {
  width: min(100% - 40px, 1220px);
  margin: 0 auto;
}

.page {
  padding: 132px 0 96px;
}

.section {
  padding: 96px 0;
}

.section--smoke {
  border-block: 1px solid var(--line);
  background: var(--smoke);
}

.section-header {
  max-width: 760px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  color: var(--clay);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(56px, 10vw, 138px);
}

h2 {
  font-size: clamp(38px, 6vw, 76px);
}

h3 {
  font-size: 28px;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  padding: 0 22px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: opacity 180ms ease, transform 180ms ease;
}

.button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.hero__media,
.hero__media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide {
  opacity: 0;
  transform: scale(1.08);
  filter: blur(3px);
  transition: opacity 1600ms ease, transform 1600ms ease, filter 1600ms ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.hero iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 177.78vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.24));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1220px);
  margin: 0 auto;
  padding: 126px 0 56px;
}

.hero__name {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: max-height 700ms ease, opacity 700ms ease, transform 700ms ease;
}

.hero.is-revealed .hero__name {
  max-height: 260px;
  margin-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: end;
}

.hero__headline {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 86px);
}

.hero__copy p {
  color: rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.projects-grid,
.category-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.category-card,
.contact-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}

.project-card,
.category-card {
  display: block;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.category-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card__media,
.category-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--smoke);
}

.project-card__media img,
.category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body,
.category-card__body {
  display: block;
  padding: 22px;
}

.project-card__title,
.category-card__title {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 750;
}

.project-card__description,
.category-card__description {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.services-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-box {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}

.service-box h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 750;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid button,
.gallery-grid a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--smoke);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.slideshow {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--smoke);
}

.slideshow__frame {
  aspect-ratio: 16 / 10;
}

.slideshow__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slideshow__controls {
  position: absolute;
  inset: auto 20px 20px;
  display: flex;
  justify-content: space-between;
}

.slideshow__controls button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 16px;
  cursor: pointer;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
}

.contact-card {
  padding: 32px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--smoke);
}

.contact-card strong {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--clay);
  text-transform: uppercase;
}

.contact-card span:last-child {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  font-weight: 750;
}

.form-card {
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(22px, 4vw, 38px);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.04);
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  font-weight: 450;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.notice {
  margin: 18px 0 0;
  border-radius: 7px;
  padding: 14px 16px;
  font-size: 14px;
}

.notice--success {
  background: rgba(99, 115, 95, 0.12);
  color: var(--olive);
}

.notice--error {
  background: rgba(155, 99, 72, 0.12);
  color: var(--clay);
}

.admin-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: 260px minmax(0, 1fr);
}

.admin-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 8px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 12px;
}

.admin-nav a {
  border-radius: 7px;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 750;
}

.admin-nav a.is-active {
  background: var(--ink);
  color: var(--white);
}

.admin-card {
  padding: 24px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--clay);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-button {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
}

.media-list {
  display: grid;
  gap: 14px;
}

.media-manager {
  margin-top: 34px;
}

.media-manager__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.media-manager__header h3 {
  margin: 0;
}

.media-manager__header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.media-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 750;
}

.media-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 116px minmax(220px, 1fr) 90px 170px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.media-row--hero {
  grid-template-columns: 116px minmax(220px, 1fr) 120px 90px 160px;
}

.media-row img {
  width: 116px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
}

.media-row__preview {
  overflow: hidden;
  border-radius: 6px;
  background: #f4f1ed;
}

.media-preview-label {
  display: grid;
  width: 116px;
  height: 88px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-row__checks {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.media-row__checks label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-footer__grid {
  display: grid;
  width: min(100% - 40px, 1220px);
  margin: 0 auto;
  gap: 48px;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  padding: 56px 0;
}

.site-footer h2 {
  font-size: 34px;
}

.site-footer h3 {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-top: 12px;
  color: var(--muted);
}

.site-footer__bottom {
  display: flex;
  width: min(100% - 40px, 1220px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 88px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .menu-button {
    display: block;
  }

  .brand__name {
    display: none;
  }

  .hero__grid,
  .site-footer__grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .category-grid,
  .services-row,
  .gallery-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-manager__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-row {
    grid-template-columns: 1fr;
  }

  .media-row img {
    width: 100%;
    height: 180px;
  }

  .media-preview-label {
    width: 100%;
    height: 120px;
  }
}
