/* ==========================================================================
   Bomonti Rugs — styles
   ========================================================================== */

:root {
  --paper: #fbf8f3;
  --ivory: #f4eee4;
  --sand: #ebe2d3;
  --ink: #14171f;
  --ink-2: #1c202a;
  --night: #0f1218;
  --text: #2b2620;
  --muted: #7b7064;
  --line: rgba(20, 23, 31, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --madder: #9b2c1f;
  --madder-dark: #7c2116;
  --gold: #c9a46a;
  --gold-deep: #a9834a;
  --cream: #efe7da;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -0.01em; }
h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--ink);
}
h2 em { font-style: italic; color: var(--madder); }

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Small type ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow .rule { width: 36px; height: 1px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--gold); }

.section-num {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  width: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--gold-deep);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #dbbb87; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--madder); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow-light { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.55), rgba(10, 12, 16, 0));
  transition: opacity .4s var(--ease);
}
.site-header.is-solid {
  background: rgba(251, 248, 243, 0.94);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-solid::after { opacity: 0; }
body.nav-open .site-header { background: transparent; color: #fff; box-shadow: none; }
body.nav-open .site-header::after { opacity: 0; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  transition: height .4s var(--ease);
}
.site-header.is-solid .header-inner { height: 72px; }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-right { justify-content: flex-end; }
.nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta {
  padding: 12px 20px;
  border: 1px solid currentColor;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-right: -0.24em;
}
.brand-sub {
  margin-top: 6px;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav-toggle {
  display: none;
  justify-self: end;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), background-color .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-nav-foot { display: grid; gap: 18px; }
.mobile-nav-foot p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 1100px;
  color: #fff;
  overflow: hidden;
  background: var(--night);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide { opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 9s linear;
}
.hero-slide.is-active img { transform: scale(1); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 16, 0.72) 0%, rgba(10, 12, 16, 0.35) 45%, rgba(10, 12, 16, 0.05) 75%),
    linear-gradient(180deg, rgba(10, 12, 16, 0) 45%, rgba(10, 12, 16, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(130px, 16vh, 190px);
}
.hero-title {
  max-width: 11em;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.4vw, 6.8rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--cream); }
.hero-lede {
  max-width: 32em;
  margin: 30px 0 42px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 34px;
}
.hero-counter { display: flex; align-items: center; gap: 18px; }
.hero-index { font-family: var(--serif); font-style: italic; font-size: 1.15rem; min-width: 1.6em; }
.hero-bars { display: flex; gap: 8px; }
.hero-bar {
  position: relative;
  width: 46px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-bar::before, .hero-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 10px;
  height: 2px;
}
.hero-bar::before { background: rgba(255, 255, 255, 0.3); }
.hero-bar::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-bar.is-active::after { animation: heroProgress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero-bar.is-active::after { animation: none; transform: scaleX(1); }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-caption {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity .5s;
}
.scroll-cue {
  position: relative;
  display: block;
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  left: 0; top: -20px;
  width: 1px; height: 20px;
  background: #fff;
  animation: scrollCue 2.2s var(--ease) infinite;
}
@keyframes scrollCue { to { top: 60px; } }

/* ---------- Rug band (border ornament) ---------- */
.rug-band {
  height: 20px;
  background-color: var(--madder);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='20' viewBox='0 0 56 20'%3E%3Cpath d='M0 0h56v2H0zM0 18h56v2H0z' fill='%23c9a46a'/%3E%3Cpath d='M14 4l6 6-6 6-6-6z' fill='%23f4eee4'/%3E%3Cpath d='M14 7.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%2314171f'/%3E%3Cpath d='M42 4l6 6-6 6-6-6z' fill='%2314171f'/%3E%3Cpath d='M42 7.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23c9a46a'/%3E%3Cpath d='M28 7l3 3-3 3-3-3zM0 7l3 3-3 3zM56 7l-3 3 3 3z' fill='%23f4eee4' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }

.section-head {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(52px, 7vw, 96px);
}
.section-head .section-num { align-self: start; margin-top: 6px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-intro { margin: 0; max-width: 30em; color: var(--muted); }
.section-head > .section-intro, .section-head > .btn { justify-self: end; }

/* ---------- Intro ---------- */
.intro { padding: var(--section) 0 calc(var(--section) * 0.8); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
}
.statement {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
}
.intro-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  color: var(--muted);
}
.intro-body p { margin: 0; }
.intro-figure { position: relative; margin: 0; }
.intro-figure::before {
  content: "";
  position: absolute;
  inset: 22px -22px auto 22px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold);
  z-index: -1;
}
.intro-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.intro-figure figcaption {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

.pillars {
  list-style: none;
  margin: clamp(72px, 9vw, 128px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pillars li { padding: 36px 32px 0 0; }
.pillars li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.pillars svg { width: 26px; height: 26px; color: var(--gold-deep); margin-bottom: 20px; }
.pillars h3 { font-size: 1.55rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.pillars p { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- Collection ---------- */
.collection { background: var(--ivory); }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.collection-card:nth-child(even) { margin-top: 72px; }
.collection-media {
  position: relative;
  margin: 0 0 26px;
  overflow: hidden;
  background: var(--sand);
}
.collection-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.collection-card:hover .collection-media img { transform: scale(1.06); }
.collection-index {
  position: absolute;
  top: 18px; left: 18px;
  padding: 6px 10px;
  background: rgba(251, 248, 243, 0.92);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
}
.collection-meta {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.collection-card h3 { font-size: 2rem; font-weight: 400; line-height: 1.1; color: var(--ink); margin-bottom: 12px; }
.collection-card p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Exhibitions ---------- */
.exhibitions { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.exhibitions h2 { color: #fff; }
.exhibitions h2 em { color: var(--gold); }
.exhibitions .section-num { color: var(--gold); }
.exhibitions .section-intro { color: rgba(255, 255, 255, 0.62); }

.featured-event {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.featured-media { position: relative; margin: 0; overflow: hidden; background: var(--ink-2); }
.featured-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.featured-media .no-image {
  aspect-ratio: 5 / 4;
  display: grid;
  place-items: center;
  color: var(--gold);
}
.featured-media .no-image svg { width: 80px; height: 80px; opacity: 0.6; }
.date-badge {
  position: absolute;
  top: 0; left: 0;
  padding: 20px 24px;
  background: var(--madder);
  color: #fff;
  text-align: center;
  line-height: 1;
}
.date-badge .d { display: block; font-family: var(--serif); font-size: 3rem; font-weight: 300; }
.date-badge .m { display: block; margin-top: 8px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }

.event-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.event-tag {
  padding: 6px 12px;
  border: 1px solid var(--line-light);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.event-tag-next { border-color: var(--gold); color: var(--gold); }
.event-tag-draft { border-color: #e7b65b; background: rgba(231, 182, 91, 0.15); color: #f1c977; }
.featured-body h3 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
}
.event-facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.event-facts li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; }
.event-facts svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.featured-body .event-desc { margin: 0 0 32px; max-width: 32em; }
.countdown {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 22px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.countdown strong { font-family: var(--serif); font-size: 3.4rem; font-weight: 300; line-height: 1; color: #fff; }
.countdown span { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.event-list { margin-top: clamp(56px, 7vw, 96px); }
.event-list-title {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.event-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-light);
}
.event-row-date { font-family: var(--serif); font-size: 1.35rem; color: #fff; line-height: 1.2; }
.event-row h4 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; color: #fff; line-height: 1.15; }
.event-row p { margin: 4px 0 0; font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.event-row .icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.event-row .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.event-row .icon-btn svg { width: 18px; height: 18px; }

.past-events { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-light); }
.past-events summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.past-events summary::-webkit-details-marker { display: none; }
.past-events summary::after { content: "+"; font-size: 1.4rem; font-weight: 300; color: var(--gold); }
.past-events[open] summary::after { content: "–"; }
.past-events .event-row { opacity: 0.75; }

.events-empty {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.events-empty figure { position: relative; margin: 0; overflow: hidden; }
.events-empty img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.85; }
.events-empty .stamp {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 120px; height: 120px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(20, 23, 31, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
}
.events-empty h3 { font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.1; color: #fff; margin-bottom: 18px; }
.events-empty p { margin: 0 0 32px; max-width: 30em; }

/* ---------- Craft ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: start;
}
.craft-figure { position: sticky; top: 110px; margin: 0 0 40px; }
.craft-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.craft-badge {
  position: absolute;
  right: -28px; bottom: -40px;
  width: 230px;
  padding: 28px;
  background: var(--madder);
  color: #fff;
}
.craft-badge strong { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1; margin-bottom: 10px; }
.craft-badge span { font-size: 0.85rem; line-height: 1.5; color: rgba(255, 255, 255, 0.85); }
.craft-copy header { margin-bottom: 48px; }
.craft-copy .section-num { margin-bottom: 36px; }
.craft-copy h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--gold-deep); }
.steps h3 { font-size: 1.9rem; font-weight: 400; color: var(--ink); margin-bottom: 8px; line-height: 1.1; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Homes ---------- */
.homes { background: var(--ivory); padding-bottom: 0; }
.homes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.home-card { position: relative; margin: 0; overflow: hidden; background: var(--sand); }
.home-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s var(--ease); }
.home-card:hover img { transform: scale(1.05); }
.home-card figcaption {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: rgba(20, 23, 31, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.home-card figcaption svg { width: 14px; height: 14px; color: var(--gold); }
.home-cta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  aspect-ratio: 4 / 5;
}
.home-cta-mark { width: 44px; height: 44px; color: var(--gold); margin-bottom: auto; }
.home-cta-title { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 300; line-height: 1.1; color: #fff; }
.home-cta p:not(.home-cta-title) { margin: 0 0 24px; font-size: 0.92rem; }

.marquee {
  margin-top: clamp(72px, 9vw, 120px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.marquee span::after {
  content: "";
  width: 10px; height: 10px;
  margin: 0 clamp(28px, 3.4vw, 52px);
  background: var(--madder);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--sand);
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0) 50%, rgba(20, 23, 31, 0.75));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.gallery-item .gallery-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  z-index: 1;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.25;
  color: #fff;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after,
.gallery-item:focus-visible::after { opacity: 1; }
.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }

/* ---------- Visit ---------- */
.visit { background: var(--night); color: rgba(255, 255, 255, 0.72); }
.visit h2 { color: #fff; margin-bottom: 36px; font-size: clamp(2.4rem, 3.9vw, 3.7rem); }
.visit h2 em { color: var(--gold); }
.visit .section-num { color: var(--gold); margin-bottom: 36px; }
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.visit-list { list-style: none; margin: 0 0 40px; padding: 0; }
.visit-list li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line-light);
}
.visit-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 50%;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}
.visit-address {
  margin: 0 0 36px;
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  color: #fff;
}
.visit-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit-media { display: grid; grid-template-columns: 1fr; gap: 12px; }
.visit-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visit-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 0;
  filter: grayscale(0.45) contrast(1.05);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.6); overflow: hidden; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: 64px;
}
.brand-footer { color: #fff; margin-bottom: 22px; }
.footer-brand p { max-width: 22em; margin: 0; font-size: 0.92rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-col h4 {
  margin-bottom: 8px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-col p { margin: 0; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { width: 16px; height: 16px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line-light);
  font-size: 0.78rem;
}
.footer-base p { margin: 0; }
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: #fff; }
.footer-wordmark {
  margin: 0 0 -0.18em;
  font-family: var(--serif);
  font-size: clamp(4rem, 16vw, 17rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.045);
  user-select: none;
  white-space: nowrap;
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: rgba(12, 14, 18, 0.96);
  color: #fff;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1100px, 84vw); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 18px;
}
#lb-caption { font-family: var(--serif); font-size: 1.3rem; }
.lb-meta { display: flex; gap: 20px; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.lb-meta a { color: var(--gold); text-decoration: none; }
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: var(--ink); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-inner { grid-template-columns: 44px 1fr 44px; }
  .brand { grid-column: 2; justify-self: center; }
  .nav-toggle { grid-column: 3; }

  .section-head { grid-template-columns: 1fr; gap: 0; }
  .section-head .section-num { margin: 0 0 28px; }
  .section-intro, .section-head > .btn { justify-self: start; margin-top: 24px; }

  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-card:nth-child(even) { margin-top: 56px; }

  .homes-grid { grid-template-columns: repeat(2, 1fr); }
  .home-cta { aspect-ratio: auto; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars li:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillars li:nth-child(n + 3) { margin-top: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .intro-grid, .craft-grid, .visit-grid, .featured-event, .events-empty { grid-template-columns: 1fr; }
  .intro-figure { max-width: 460px; }
  .craft-figure { position: relative; top: 0; margin-bottom: 72px; }
  .craft-badge { right: 16px; bottom: -40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .event-row { grid-template-columns: 1fr auto; gap: 12px 24px; }
  .event-row-date { grid-column: 1 / -1; font-size: 1.1rem; color: var(--gold); }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; }
  .hero { min-height: 600px; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.25) 35%, rgba(10, 12, 16, 0.88) 100%);
  }
  .hero-caption { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 26px; height: 26px; }

  .intro-body { grid-template-columns: 1fr; gap: 16px; }
  .intro-figure::before { inset: 14px -10px auto 10px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li, .pillars li + li { padding: 28px 0 0; border-left: 0; margin-top: 0; }
  .pillars li + li { margin-top: 28px; border-top: 1px solid var(--line); }

  .collection-grid { grid-template-columns: 1fr; }
  .collection-card:nth-child(even), .collection-card + .collection-card { margin-top: 24px; }

  .homes-grid { grid-template-columns: 1fr 1fr; }
  .home-cta { grid-column: 1 / -1; }
  .home-cta-mark { margin-bottom: 28px; }
  .home-card figcaption { left: 10px; bottom: 10px; padding: 7px 10px; font-size: 0.6rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); }
  .craft-badge { width: 200px; padding: 22px; }

  .featured-body .event-actions .btn, .visit-actions .btn, .events-empty .btn { flex: 1 1 100%; }
  .date-badge { padding: 14px 18px; }
  .date-badge .d { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .lightbox figcaption { flex-direction: column; gap: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide img, .hero-slide.is-active img { transform: none; transition: none; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}
