:root {
  --ink: #15110e;
  --ink-2: #1c1814;
  --cream: #f3efe7;
  --sand: #ebe3d8;
  --text: #3a332c;
  --muted: #8a8076;
  --gold: #c2a36b;
  --line-dark: rgba(255, 255, 255, 0.35);
  --line-light: rgba(40, 32, 25, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 100% - 3rem); margin: 0 auto; position: relative; z-index: 2; }
.narrow { max-width: 620px; }
.center { text-align: center; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: 1.02; }
h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); letter-spacing: 0.04em; color: #f5efe6; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: 0.08em; margin-bottom: 1.6rem; color: var(--ink); }
.dark h2 { color: #f5efe6; }
.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.3rem; font-weight: 400;
}
.eyebrow.gold { color: var(--gold); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2vw, 1.75rem); color: #e8e0d4; margin: 1.4rem 0 2.6rem; }
p { line-height: 1.85; font-size: 0.98rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 1.6rem;
  padding: 1.05rem 1.7rem; border: 1px solid var(--line-light);
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.light { color: #f5efe6; border-color: var(--line-dark); }
.btn.light:hover { background: #f5efe6; color: var(--ink); border-color: #f5efe6; }
.arrow { font-size: 1rem; letter-spacing: 0; transition: transform 0.3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 3.5rem;
}
.logo { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #f5efe6; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a, .footer-nav a {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245, 239, 230, 0.75); padding-bottom: 0.5rem; border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-color: rgba(255,255,255,0.7); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 28px; height: 18px; position: relative; }
.menu-toggle span { position: absolute; left: 0; right: 0; height: 1px; background: #f5efe6; transition: transform 0.3s, top 0.3s; }
.menu-toggle span:first-child { top: 5px; }
.menu-toggle span:last-child { top: 12px; }

/* Dark sections */
.dark {
  position: relative; overflow: hidden; color: #e8e0d4;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.glow {
  position: absolute; width: 700px; height: 500px; right: 5%; top: 10%;
  background: radial-gradient(closest-side, rgba(150, 110, 60, 0.22), transparent);
  pointer-events: none;
}
.hero { min-height: 100vh; max-height: 980px; display: flex; align-items: center; padding: 8rem 0 6rem; }
.hero-content { padding-left: 4.5rem; }

.society { padding: 12rem 0 10rem; }
.society-content { padding-left: 4.5rem; }
.frame { position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.06); pointer-events: none; }

/* Placeholder labels */
.placeholder-label {
  position: absolute; right: 1.8rem; bottom: 1.6rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(232, 224, 212, 0.45);
  text-align: right;
}
.placeholder-label strong {
  color: var(--gold); font-weight: 500; padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--gold); margin-bottom: 0.2rem;
}
.placeholder-label.inside { left: 1.1rem; right: 1.1rem; bottom: 1.1rem; align-items: flex-start; text-align: left; }

/* Photo blocks */
.photo { position: relative; overflow: hidden; }
.photo::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,0.08); z-index: 1; }
.light-photo { background: radial-gradient(circle at 65% 30%, #faf8f3 0%, #ddd5c8 45%, #cbc1b2 100%); }
.light-photo::before { border-color: rgba(120, 100, 80, 0.15); }
.light-photo .placeholder-label { color: rgba(80, 66, 52, 0.45); }
.light-photo .placeholder-label strong { color: #4a3f34; border-color: #4a3f34; }
.dark-photo { background: radial-gradient(circle at 70% 25%, rgba(140, 100, 55, 0.3), transparent 45%), radial-gradient(circle at 20% 80%, rgba(140,100,55,0.15), transparent 40%), var(--ink-2); }
.dark-photo .placeholder-label strong { color: #e8e0d4; border-color: #e8e0d4; }
.ratio-43 { aspect-ratio: 4 / 3; }

/* Cream sections */
.cream { background: var(--cream); }
.sand { background: var(--sand); }
.about { padding: 9rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-text h2 { margin-bottom: 2rem; }
.rule { width: 48px; border: 0; border-top: 1px solid var(--gold); margin-bottom: 2rem; }
.about-text p { max-width: 520px; margin-bottom: 2.2rem; font-size: 0.92rem; }

.film { padding: 10rem 0; }
.film p { margin-bottom: 2.6rem; font-size: 0.92rem; }

.gallery { padding: 9rem 0; }
.gallery h2 { margin-bottom: 2.6rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-bottom: 3rem; }
.gallery-grid .photo { aspect-ratio: 4 / 5; }
.btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { background: #111; padding: 4.5rem 0 3rem; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3rem; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(245, 239, 230, 0.55); padding: 0; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); width: min(1280px, 100% - 3rem); margin: 0 auto; padding-top: 2.5rem; text-align: center; }
.credit {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  font-size: 0.6rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(245,239,230,0.5); line-height: 1;
}
.credit .line { width: 40px; height: 1px; background: rgba(245,239,230,0.3); }
.copy { font-size: 0.7rem; color: rgba(245,239,230,0.35); margin-top: 0.8rem; }

/* Tablet */
@media (max-width: 1100px) {
  .main-nav { gap: 1.2rem; }
  .site-header { padding: 2rem; }
}

/* Mobile */
@media (max-width: 900px) {
  .site-header { padding: 1.6rem 1.5rem; }
  .logo { font-size: 1.3rem; }
  .menu-toggle { display: block; z-index: 30; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(17, 14, 12, 0.98);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
  }
  .main-nav a { font-size: 0.85rem; }
  .site-header.open .main-nav { opacity: 1; visibility: visible; }
  .site-header.open .menu-toggle span:first-child { top: 8px; transform: rotate(45deg); }
  .site-header.open .menu-toggle span:last-child { top: 8px; transform: rotate(-45deg); }

  .hero { min-height: 0; padding: 9rem 0 10rem; }
  .hero-content, .society-content { padding-left: 0; }
  .hero .placeholder-label { left: 1.5rem; right: 1.5rem; }
  .society { padding: 7rem 0 10rem; }
  .society .placeholder-label { left: 1.5rem; right: 1.5rem; }
  .tagline { margin: 1rem 0 2rem; }

  .about { padding: 2rem 0 5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .film, .gallery { padding: 6rem 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .wide-mobile { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .btn-row { flex-direction: column; align-items: center; }

  .footer-top { flex-direction: column; gap: 2rem; text-align: center; }
  .footer-nav { justify-content: center; }
  .credit .line { width: 24px; }
}

/* About photo */
.about-photo { aspect-ratio: 4 / 5; max-width: 480px; width: 100%; justify-self: center; background: var(--ink-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; }

/* House of Brammer background photo */
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.section-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 12, 10, 0.82) 0%, rgba(15, 12, 10, 0.55) 45%, rgba(15, 12, 10, 0.15) 100%);
}
.society .frame { z-index: 2; border-color: rgba(255, 255, 255, 0.18); }
@media (max-width: 900px) {
  .section-bg { object-position: 60% center; }
  .section-shade { background: rgba(15, 12, 10, 0.6); }
}

/* Gallery media */
.gallery-media { background: var(--ink-2); }
.gallery-media video, .gallery-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-media video { object-position: center top; }

/* Hero photo */
.hero { background: #171717; }
.hero-img {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: 58%; height: 100%; object-fit: cover; object-position: center 15%;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, #171717 0%, #171717 40%, rgba(23, 23, 23, 0.6) 55%, rgba(23, 23, 23, 0) 75%),
    linear-gradient(0deg, rgba(23, 23, 23, 0.6) 0%, rgba(23, 23, 23, 0) 25%);
}
@media (max-width: 900px) {
  .hero { min-height: 100svh; align-items: flex-end; padding-bottom: 5rem; }
  .hero-img { width: 100%; object-position: center 10%; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(23, 23, 23, 0.95) 0%, rgba(23, 23, 23, 0.6) 40%, rgba(23, 23, 23, 0.1) 70%);
  }
}

/* Inner page hero */
.page-hero { min-height: 62vh; display: flex; align-items: flex-end; padding: 11rem 0 6rem; background: #171717; }
.page-hero.full { min-height: 100vh; align-items: center; }
.page-hero-content { padding-left: 4.5rem; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); }
.page-hero .tagline { margin-bottom: 0; }
.page-hero.full .tagline { margin-bottom: 2.6rem; max-width: 560px; }

/* Generic sections */
.section { padding: 8rem 0; }
.rule.centered { margin-left: auto; margin-right: auto; }
.muted-copy { color: var(--muted); margin-bottom: 2.4rem; }
.empty-note { border: 1px solid var(--line-light); padding: 2.4rem 2rem; margin-bottom: 2.6rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.about-text p + p { margin-top: -1rem; }
.btn-row.left { justify-content: flex-start; }

/* Full gallery */
.gallery-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; margin-bottom: 3rem; }
.gallery-page-grid .photo { aspect-ratio: 4 / 5; margin: 0; }

/* Forms */
.form { display: grid; gap: 1.6rem; margin-top: 2.4rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: grid; gap: 0.6rem; }
.field span { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-light); padding: 0.7rem 0; border-radius: 0; width: 100%;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a8076'/%3E%3C/svg%3E") right center no-repeat; cursor: pointer; }
.field textarea { resize: vertical; border: 1px solid var(--line-light); padding: 0.9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.6; }
.check input { margin-top: 0.3rem; accent-color: var(--ink); }
.form .btn { justify-self: start; background: none; cursor: pointer; font-family: inherit; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .page-hero { min-height: 50vh; padding: 9rem 0 4rem; }
  .page-hero-content { padding-left: 0; }
  .section { padding: 5rem 0; }
  .gallery-page-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .btn-row.left { align-items: flex-start; }
}

/* JB Luxe */
.luxe { padding: 8rem 0; background: #000; }
.luxe-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: center; }
.luxe-photo { aspect-ratio: 3 / 2; background: #000; }
.luxe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luxe .tagline { margin: 0 0 2.6rem; }
@media (max-width: 900px) {
  .luxe { padding: 5rem 0; }
  .luxe-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .luxe .rule { margin-left: auto; margin-right: auto; }
}

/* Instagram link above gallery */
.ig-row { display: flex; justify-content: center; margin-bottom: 1.4rem; }
.ig-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 1.2rem; letter-spacing: 0.08em; color: #000; font-weight: 700;
  border-bottom: 1px solid transparent; padding-bottom: 0.2rem; transition: border-color 0.3s;
}
.ig-link:hover { border-color: #000; }

/* SEO: visual-only heading styles so semantic tags can change without changing the look */
.hero-title { font-family: var(--serif); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: 0.04em; color: #f5efe6; font-size: clamp(2.8rem, 7vw, 5.6rem); }
h1.as-h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); letter-spacing: 0.08em; color: var(--ink); margin-bottom: 2rem; }
