@font-face {
  font-family: "Trajan Pro 3 Light";
  src: url("assets/fonts/TrajanPro3-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0c0a;
  --fg: #efeae1;
  --fg-dim: #cfc8ba;
  --fg-faint: #a89d8a;
  --line: #2a2620;
  --accent: #c9a962;
  --nav-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Times New Roman", Georgia, "Iowan Old Style", serif;
  line-height: 1.5;
}

.display {
  font-family: "Trajan Pro 3 Light", "Times New Roman", Georgia, serif;
  text-transform: uppercase;
  font-size: 1.75em;
}

a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }

img { display: block; width: 100%; height: auto; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.nav-mark {
  font-family: "Trajan Pro 3 Light", "Times New Roman", Georgia, serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  gap: 40px;
  font-family: "Trajan Pro 3 Light", "Times New Roman", Georgia, serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.nav-links[hidden] {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

.hero-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 12, 10, 0.0);
  pointer-events: none;
}

/* Hero — slideshow variant */
.hero-slideshow {
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-product {
  display: flex;
  overflow: hidden;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: var(--fg);
  opacity: 0.7;
  cursor: pointer;
  padding: 12px;
  transition: opacity 0.2s ease;
}

.hero-arrow:hover {
  opacity: 1;
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--fg);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-dot:hover { opacity: 1; }

.hero-dot.is-active {
  background: var(--fg);
  opacity: 1;
}

/* Section shell */
section {
  padding: 120px 56px;
  scroll-margin-top: var(--nav-height);
}

.hero-section {
  padding: 0;
}

.section-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 25px;
  margin-bottom: 16px;
}

.eyebrow {
  font-family: "Trajan Pro 3 Light", "Times New Roman", Georgia, serif;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--fg-faint);
  margin: 0;
}

.btn {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 36px;
  border: 1px solid var(--fg);
  font-family: "Trajan Pro 3 Light", "Times New Roman", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Product */
.product-title {
  font-size: 40px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  margin: 0;
}

.body-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-dim);
  margin: 0;
}

.price {
  font-size: 20px;
  color: var(--fg);
  margin: 0;
}

.order-note {
  font-size: 13px;
  color: var(--fg-faint);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

/* Product */
.product-overlay {
  position: relative;
  display: flex;
  height: 90vh;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
}

.product-overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 27% center;
}

.product-overlay-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 30%, rgba(13, 12, 10, 1.0) 100%);
}

.product-overlay-row {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-overlay-copy {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

@media (max-width: 900px) {
  .product-overlay { height: auto; min-height: 100vh; }
  .product-overlay-image { object-position: 48% center; transform: none; }
  .product-overlay-scrim {
    background: linear-gradient(to bottom, transparent 30%, rgba(13, 12, 10, 0.65) 55%, rgba(13, 12, 10, 0.95) 80%);
  }
  .product-overlay-row {
    padding: 0 16px 56px;
    align-items: flex-end;
    justify-content: center;
  }
  .product-overlay-copy { max-width: none; }
}

/* Past works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 56px;
}

.works-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.works-grid img {
  /* height: 320px; */
  object-fit: cover;
  aspect-ratio: 3 / 4;
  filter: grayscale(0.15);
}

.works-grid figcaption {
  font-size: 14px;
  color: var(--fg-dim);
  text-align: center;
}

.past-works {
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Past works — dedicated page */
.page-header {
  text-align: center;
  padding-bottom: 64px;
}

.page-intro {
  max-width: 560px;
  margin: 0 auto;
}

.monument {
  padding: 96px 56px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}

.monument-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  text-align: center;
}

.monument-figure img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  filter: grayscale(0.15);
}

.monument-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.monument-title {
  font-size: 26px;
  letter-spacing: 0.06em;
  margin: 0;
}

.monument-figure .body-text {
  max-width: 480px;
}

.works-gallery {
  padding-top: 112px;
  border-top: 1px solid var(--line);
}

.gallery-heading {
  margin: 0 0 48px;
}

.gallery-title {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: none;
  margin: 0 auto;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line);
}

.gallery-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.gallery-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
  filter: grayscale(0);
}

.gallery-lightbox {
  width: min(92vw, 1400px);
  height: min(90vh, 1000px);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #090806;
  color: var(--fg);
  overflow: hidden;
}

.gallery-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(5px);
}

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

.gallery-lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 1;
  padding: 4px 10px;
  border: 0;
  background: none;
  color: var(--fg);
  font: 32px/1 Arial, sans-serif;
  cursor: pointer;
}

/* Contact */
.contact {
  text-align: center;
  border-top: 1px solid var(--line);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 17px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 56px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-mark {
  font-size: 15px;
  letter-spacing: 0.1em;
}

.social-links {
  display: flex;
  gap: 28px;
  color: var(--fg-faint);
}

.copyright {
  font-size: 12px;
  color: #6b6255;
  margin: 8px 0 0;
}

/* Responsive */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-grid img { height: 280px; }
  .monument { padding: 64px 24px; }
  .monument-figure img { max-height: 60vh; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    height: auto;
    padding: 16px 20px;
    row-gap: 10px;
  }
  .nav-mark { font-size: 16px; letter-spacing: 0.06em; white-space: nowrap; }
  .nav-links { gap: 20px; font-size: 11px; letter-spacing: 0.06em; }
  section { padding: 80px 24px; }
  .product-title { font-size: 30px; }
  .works-gallery { padding-top: 80px; }
  .gallery-heading { margin-bottom: 32px; }
  .gallery-title { font-size: 30px; }
  .gallery-grid { gap: 10px; }
  .gallery-lightbox { padding: 28px 12px 12px; }
}
