:root {
  --bg: #0e0f11;
  --surface: #17191c;
  --text: #f2f1ee;
  --muted: #a3a6ab;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #d8412f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 22px clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.site-header.solid {
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Submenus ---------- */
.sub-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.sub {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 212px;
  padding: 10px 0;
  margin-top: 10px;
  list-style: none;
  background: rgba(14, 15, 17, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub a {
  display: block;
  padding: 9px 22px;
  border: 0;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
}

.sub a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

@media (max-width: 880px) {
  .nav-toggle { display: block; position: relative; z-index: 11; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 80px 24px 40px;
    overflow-y: auto;
    background: rgba(10, 10, 12, 0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav-links > li {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .nav-links a { font-size: 1rem; padding: 10px 0; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; }

  /* Submenus become accordions */
  .sub-toggle { display: block; font-size: 1.4rem; padding: 4px 10px; }
  .has-sub > a::after { display: none; }
  .sub {
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .has-sub:hover .sub,
  .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub,
  .has-sub.open:hover .sub { display: block; }
  .sub a {
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 8px 0;
  }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 120px clamp(24px, 6vw, 96px) 80px;
  background: url("images/home.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0.05));
}

.hero-content { position: relative; max-width: 760px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.hero .tagline {
  margin: 22px 0 0;
  max-width: 480px;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  min-width: 170px;
  padding: 14px 28px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(4px);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  color: #fff;
  font-family: var(--sans);
}

.btn:hover { background: #fff; color: #111; }

/* ---------- Inner pages ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px clamp(16px, 4vw, 48px) 80px;
}

.page-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
}

.page-intro {
  margin: 18px 0 44px;
  max-width: 760px;
  color: #bfc2c7;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
}

/* Gallery */
.gallery {
  columns: 3 280px;
  column-gap: 16px;
}

.gallery figure {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--surface);
}

.gallery img {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder.tall { aspect-ratio: 3 / 4; }
.placeholder.square { aspect-ratio: 1; }

.count {
  margin: -32px 0 40px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.gallery .shot { display: block; }

.gallery .shot img { transition: opacity 0.3s, transform 0.5s ease; }
.gallery figure:hover .shot img { opacity: 0.86; }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: start;
}

.video-grid .clip { background: var(--surface); }

.video-grid video {
  width: 100%;
  max-height: 72vh;
  background: #000;
  display: block;
}

.video-grid figcaption {
  padding: 12px 14px 14px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #e8e7e3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.96);
}

.lightbox.open { display: flex; }

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

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 2rem;
  line-height: 1;
  padding: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox button:hover { color: #fff; }
.lightbox .lb-close { top: 10px; right: 14px; font-size: 1.7rem; }
.lightbox .lb-prev { left: 4px; }
.lightbox .lb-next { right: 4px; }

.lightbox .lb-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* Section landing cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.card .placeholder { aspect-ratio: 3 / 2; transition: border-color 0.2s; }
.card:hover .placeholder { border-color: rgba(255, 255, 255, 0.5); }

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.3s;
}

.card:hover img { opacity: 0.85; }
.card .meta { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
}

/* Stories */
.story-list { display: grid; gap: 40px; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
}

.story h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
}

.story .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.story .placeholder { aspect-ratio: 3 / 2; }

@media (max-width: 700px) {
  .story { grid-template-columns: 1fr; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.about-grid p + p { margin-top: 1em; }

.about-grid .text {
  color: #d6d6d3;
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 62ch;
}

.about-grid .portrait { width: 100%; }

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* Buy */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin-top: 14px;
}

.product .meta { color: var(--muted); font-size: 0.9rem; }
.product .price { margin: 6px 0 14px; }
.product .btn { min-width: 0; font-size: 0.72rem; padding: 10px 20px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  gap: clamp(24px, 5vw, 64px);
}

.contact-info p { margin-bottom: 18px; color: #d6d6d3; }
.contact-info .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

form { display: grid; gap: 18px; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
}

input:focus, textarea:focus { outline: none; border-color: #fff; }
textarea { min-height: 160px; resize: vertical; }
form .btn { justify-self: start; }
form .btn[disabled] { opacity: 0.6; cursor: default; }

.form-status { margin: -4px 0 0; font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #7fd1a7; }
.form-status.error { color: #f0907f; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer a:hover { color: var(--text); }
