:root {
  --bg: #0f0c0a;
  --bg2: #181310;
  --card: rgba(255,255,255,0.06);
  --text: #f6efe8;
  --muted: #cbbfb3;
  --gold: #d8b06a;
  --gold2: #b07a35;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(216,176,106,0.18), transparent 32%),
    linear-gradient(180deg, #120f0d 0%, #0b0908 100%);
}

body.modal-open {
  overflow: hidden;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.page {
  padding: 64px 0 84px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,8,7,0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  white-space: nowrap;
}

.brand > span:last-child > span {
  color: var(--gold);
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1d140b;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
}

.menu a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
}

.fullscreen-carousel {
  position: relative;
  height: calc(100vh - 74px);
  overflow: hidden;
  background: #0b0908;
}

.carousel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  background: linear-gradient(90deg, rgba(9,7,6,0.84), rgba(9,7,6,0.3), rgba(9,7,6,0.05));
  max-width: 820px;
}

.punchline {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 14px;
}

h1,
h2 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.97;
  margin: 0 0 18px;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 58ch;
  margin: 0;
}

.text-block {
  color: var(--muted);
  line-height: 1.85;
  max-width: 70ch;
}

.actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #1d140b;
  border-color: transparent;
}

.btn.secondary {
  background: rgba(255,255,255,0.04);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.56);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 3;
  display: grid;
  place-items: center;
}

.carousel-btn.prev {
  left: 22px;
}

.carousel-btn.next {
  right: 22px;
}

.carousel-pause {
  position: absolute;
  right: 22px;
  bottom: 30px;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.56);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.carousel-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}

.dot.active {
  background: var(--gold);
  width: 30px;
  border-radius: 999px;
}

.carousel-btn:focus-visible,
.carousel-pause:focus-visible,
.dot:focus-visible,
.menu a:focus-visible,
.btn:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
  line-height: 1.8;
}

.grid {
  display: grid;
  gap: 20px;
}

.works {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.about-panel,
.form-card,
.info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.card .body {
  padding: 18px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card .body h3 {
  margin: 0;
  font-size: 1.08rem;
}

.card .thumb {
  height: 260px;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: transform 0.35s ease, filter 0.35s ease;
  animation: fadeInUp 0.6s ease both;
}

.card:hover .thumb {
  transform: scale(1.04);
  filter: brightness(1.06) saturate(1.08);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(10, 8, 7, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-zoom-overlay.visible {
  display: flex;
  flex-direction: column;
  opacity: 1;
  visibility: visible;
}

.image-zoom-overlay .zoomed-image {
  width: auto;
  max-width: min(92vw, 1200px);
  height: auto;
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  background: #050303;
  object-fit: contain;
  transform: scale(0.96);
  animation: zoomInModal 0.25s ease forwards;
}

@keyframes zoomInModal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.image-zoom-overlay .zoom-caption {
  margin-top: 18px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
}

.image-zoom-overlay .zoom-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.image-zoom-overlay .zoom-close:hover,
.image-zoom-overlay .zoom-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.about-panel {
  padding: 28px;
}

.about-panel ul {
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow::before {
  content: '';
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  min-height: 22px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.success {
  color: #8ee0a8;
}

.form-status.error {
  color: #ffb3b3;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(216,176,106,0.55);
}

.footer {
  padding: 36px 0 18px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(8,6,5,0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 24px;
}

.footer-grid h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 10px;
  color: var(--text);
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .nav-inner {
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .fullscreen-carousel {
    height: calc(100vh - 118px);
  }

  .slide-overlay {
    padding: 0 22px;
    text-align: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(9,7,6,0.72), rgba(9,7,6,0.4));
  }

  .slide-overlay h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 10vw, 4.4rem);
  }

  .lead {
    max-width: 34ch;
    font-size: 0.98rem;
  }

  .actions {
    justify-content: center;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .carousel-btn.prev {
    left: 10px;
  }

  .carousel-btn.next {
    right: 10px;
  }

  .carousel-controls {
    bottom: 18px;
  }

  .carousel-pause {
    right: 10px;
    bottom: 18px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .works,
  .about,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1180px, calc(100% - 24px));
  }

  .nav-inner {
    padding: 12px 0;
  }

  .brand {
    font-size: 1rem;
    gap: 10px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .menu {
    gap: 10px;
    font-size: 0.84rem;
  }

  .menu a {
    padding: 6px 8px;
  }

  .page {
    padding: 48px 0 64px;
  }

  .fullscreen-carousel {
    height: calc(100vh - 104px);
  }

  .slide-overlay {
    padding: 0 16px;
  }

  .punchline {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .slide-overlay h1 {
    max-width: 11ch;
    margin: 10px 0 14px;
  }

  .actions {
    gap: 10px;
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .carousel-btn.prev {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .carousel-controls {
    bottom: 14px;
  }

  .footer {
    padding: 28px 0 14px;
  }
}