/* ==========================================================================
   MT Frame Studio — Stylesheet
   Palette: Obsidian black, ivory, signature gold
   ========================================================================== */

:root {
  --ink: #0a0908;
  --ink-2: #131110;
  --ink-3: #1c1a18;
  --paper: #f7f3ec;
  --paper-2: #ede6d8;
  --mute: #8a8275;
  --line: rgba(201, 169, 97, 0.22);
  --gold: #c9a961;
  --gold-bright: #e6c477;
  --gold-deep: #8a6e35;

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-bright); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--paper); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.1;
  margin: 0 0 .4em 0;
  color: var(--paper);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-family: var(--sans); font-weight: 500; }
p  { margin: 0 0 1.1em; color: #dad3c4; max-width: 62ch; }
.lead { font-size: 1.12rem; color: #e8e1d2; }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.rule {
  display: inline-block;
  width: 54px; height: 1px;
  background: var(--gold);
  margin: 0 0 1.25rem;
  opacity: .85;
}
.italic { font-family: var(--serif); font-style: italic; color: var(--gold-bright); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  position: relative;
}
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--ink-2); }
.grid { display: grid; gap: clamp(1rem, 2vw, 2rem); }
.center { text-align: center; }
.max-readable { max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  /* Initial (over hero): soft dark gradient that holds through all
     nav content before fading — keeps links legible but non-intrusive. */
  background: linear-gradient(to bottom,
    rgba(10,9,8,.92) 0%,
    rgba(10,9,8,.80) 55%,
    rgba(10,9,8,.35) 88%,
    rgba(10,9,8,0) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background .35s var(--ease), padding .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.nav.scrolled {
  /* Frosted glass: slightly transparent ink + heavy blur + soft shadow
     so it reads clearly over *any* content it passes over. */
  background: rgba(10,9,8,.85);
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(201,169,97,.22);
  box-shadow: 0 10px 32px rgba(0,0,0,.45);
}
.nav__brand {
  display: flex; align-items: center; gap: .65rem;
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: .06em;
  text-shadow: 0 1px 14px rgba(0,0,0,.55);
}
.nav__brand img { height: 38px; width: auto; }
.nav__brand span { font-size: 1.1rem; }
.nav__brand small { color: var(--gold); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; font-family: var(--sans); display: block; white-space: nowrap; }
.nav__links {
  display: flex; gap: 1.8rem; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  color: var(--paper);
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .35rem 0;
  position: relative;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
/* On the frosted scrolled bar the shadows are unnecessary and
   can read as fuzzy — clean them up. */
.nav.scrolled .nav__brand,
.nav.scrolled .nav__links a { text-shadow: none; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__cta {
  padding: .55rem 1.1rem !important;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  background: rgba(10,9,8,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav.scrolled .nav__cta { background: transparent; }
.nav__cta:hover {
  background: var(--gold);
  color: var(--ink) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__cta::after { display: none; }

/* Admin dashboard uses a minimal inline-always nav (just 2 items),
   overriding the mobile-hidden default. */
.nav__links.nav__links--inline {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  flex-direction: row !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  z-index: auto !important;
}

.nav__toggle {
  display: none;
  background: transparent; border: none; color: var(--paper);
  cursor: pointer; padding: .5rem;
  /* Hamburger must ALWAYS sit above the fullscreen overlay so you can
     tap it to close the menu. */
  position: relative;
  z-index: 3;
}
.nav__toggle span {
  display: block; width: 24px; height: 1px;
  background: var(--paper); margin: 6px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

@media (max-width: 1180px) {
  .nav__toggle { display: block; }

  /* Mobile overlay — solid (not translucent), behind the hamburger.
     Using left off-screen + display:none is belt-and-suspenders:
     if one hiding mechanism fails, the other still keeps it off-screen. */
  .nav__links {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    flex-direction: column;
    justify-content: center; align-items: center;
    gap: 2rem;
    background: #0a0908; /* solid ink — no transparency means no bleed */
    padding: 2rem;
    margin: 0;
    z-index: 2;           /* below .nav__toggle (z:3), above page */
  }
  .nav__links.open { display: flex; }

  .nav__links a {
    font-size: 1.1rem;
    text-shadow: none;
    color: var(--paper);
  }
  .nav__links a.active { color: var(--gold); }

  /* Animate the hamburger into an X when the menu is open */
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* While the overlay is open, lock the nav bar itself to an opaque ink
     so there's no blur/gradient weirdness behind the X. */
  .nav.open {
    background: #0a0908;
    box-shadow: none;
    border-color: transparent;
  }
  /* Disable the parent backdrop-filter while menu is open — prevents
     Safari stacking-context glitches that leaked items through. */
  .nav.open, .nav.open * {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 6rem 1.5rem 3rem;
  color: var(--paper);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: heroBreathe 18s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,9,8,.35), rgba(10,9,8,.55) 60%, rgba(10,9,8,.85));
  z-index: 1;
}
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.hero__inner h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: .02em;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.hero__inner h1 em { font-style: italic; color: var(--gold-bright); }
.hero__tag {
  letter-spacing: .38em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  display: block;
  text-shadow: 0 1px 2px rgba(10, 9, 8, .65), 0 0 12px rgba(10, 9, 8, .35);
}
.hero__sub { font-size: 1.1rem; color: #e8e1d2; max-width: 600px; margin: 0 auto 1.4rem; }
.hero__motto {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  margin: 0 auto 2rem;
  padding: .55rem 1.4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--gold-bright);
  border-top: 1px solid rgba(201,169,97,.28);
  border-bottom: 1px solid rgba(201,169,97,.28);
  background: rgba(10,9,8,.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.hero__motto::before,
.hero__motto::after {
  content: "";
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: .75;
}
@media (max-width: 640px) {
  .hero__motto { font-size: 1rem; padding: .45rem 1rem; gap: .6rem; }
  .hero__motto::before, .hero__motto::after { width: 14px; }
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--gold); font-size: .7rem; letter-spacing: .3em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  animation: bob 2.6s ease-in-out infinite;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hero--page {
  min-height: 60vh;
}
.hero--page .hero__inner h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--ink); }
.btn--ghost { border-color: rgba(247,243,236,.3); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { padding: .65rem 1.4rem; font-size: .72rem; }

/* ---------- Category Cards (home) ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 980px) { .categories { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .categories { grid-template-columns: 1fr; } }

.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
  background: var(--ink);
}
.cat-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s var(--ease), filter .6s var(--ease);
  filter: grayscale(.2) brightness(.75);
}
.cat-card:hover .cat-card__img {
  transform: scale(1.06);
  filter: grayscale(0) brightness(.85);
}
.cat-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,.85), transparent 55%);
  z-index: 1;
}
.cat-card__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem;
  z-index: 2;
  color: var(--paper);
  text-align: center;
}
.cat-card__label h3 {
  font-size: 1.6rem;
  margin-bottom: .2rem;
  letter-spacing: .06em;
}
.cat-card__label span {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); opacity: .9;
}

/* ---------- About split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split__img {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
}

/* ---------- Masonry gallery ---------- */
.masonry {
  columns: 3;
  column-gap: 1rem;
}
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.masonry figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--ink-2);
}
.masonry img {
  width: 100%;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: brightness(.94);
}
.masonry figure:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}
.masonry figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  color: var(--paper);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(to top, rgba(10,9,8,.8), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.masonry figure:hover figcaption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,9,8,.97);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: transparent; border: 1px solid var(--gold); color: var(--gold);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.1rem; transition: background .25s;
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--gold); color: var(--ink);
}
.lightbox__cap {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: var(--paper); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8;
}

/* ---------- Investment ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: var(--gold); }
.tier--featured { border-color: var(--gold); }
.tier__badge {
  display: inline-block;
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.tier__price {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-bright);
  margin: 1rem 0;
}
.tier__price small { font-size: .8rem; color: var(--mute); }
.tier__list {
  list-style: none; padding: 0; margin: 1.5rem 0 2rem;
  text-align: left;
}
.tier__list li {
  padding: .55rem 0 .55rem 1.6rem;
  position: relative;
  color: #dad3c4;
  font-size: .92rem;
  border-bottom: 1px solid var(--line);
}
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 1px; background: var(--gold);
}

/* ---------- Testimonials ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 780px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--ink-2);
  border-left: 2px solid var(--gold);
  padding: 2rem 2.2rem;
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #e8e1d2;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.quote cite {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact / Forms ---------- */
.form {
  display: grid; gap: 1.1rem;
  max-width: 560px;
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  padding: .9rem 1rem;
  font-family: var(--sans);
  font-size: .95rem;
  border-radius: 0;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select option {
  background: var(--ink-2);
  color: var(--paper);
}
.field select option:disabled {
  color: var(--mute);
}

/* ---------- Admin UI ---------- */
.admin-wrap {
  min-height: 100vh;
  display: grid; place-items: center;
  background: var(--ink);
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}
.admin-wrap::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, rgba(201,169,97,.08), transparent 60%);
  pointer-events: none;
}
.admin-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 3rem 2.5rem;
  max-width: 440px; width: 100%;
  text-align: center;
}
.admin-card img { height: 64px; margin: 0 auto 1rem; }
.admin-card h2 { font-size: 1.6rem; margin-bottom: .3rem; }
.admin-card .sub { font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin-bottom: 2rem; }
.admin-card .form { margin: 0 auto; }
.admin-note {
  margin-top: 1.5rem; padding: .8rem 1rem;
  background: rgba(201,169,97,.06);
  border: 1px dashed var(--line);
  color: var(--mute);
  font-size: .75rem;
  letter-spacing: .05em;
}
.admin-error {
  margin-top: 1rem; color: #e3846b; font-size: .85rem; min-height: 1.1em;
}

.dashboard { padding: 6rem 1.5rem 4rem; }
.dashboard h1 { font-size: 2.2rem; margin-bottom: .25rem; }
.dashboard__sub { color: var(--mute); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 2.5rem; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; }
@media (max-width: 780px) { .dash-stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.stat .num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-bright); line-height: 1; }
.stat .lbl { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); margin-top: .5rem; }

.dash-tabs { display: flex; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.dash-tabs button {
  background: transparent; border: none; color: var(--paper);
  padding: 1rem 0; cursor: pointer;
  font-size: .75rem; letter-spacing: .24em; text-transform: uppercase;
  border-bottom: 2px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap;
}
.dash-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }

.dash-panel { display: none; }
.dash-panel.active { display: block; }

.gallery-editor {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.tile {
  position: relative; aspect-ratio: 1/1;
  background: var(--ink-3);
  overflow: hidden;
  cursor: grab;
}
.tile.dragging { opacity: .4; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile__actions {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,9,8,.85), rgba(10,9,8,0) 50%);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: .7rem;
  opacity: 0; transition: opacity .25s var(--ease);
}
.tile:hover .tile__actions { opacity: 1; }
.tile__actions button {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  padding: .35rem .6rem; cursor: pointer;
}
.tile__actions button:hover { background: var(--gold); color: var(--ink); }

.inquiry-list {
  display: grid; gap: 1rem;
}
.inquiry {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem; align-items: start;
}
.inquiry h4 { color: var(--paper); font-family: var(--sans); letter-spacing: normal; text-transform: none; font-size: 1rem; margin-bottom: .2rem; }
.inquiry .meta { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.inquiry p { margin: .5rem 0 0; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer {
  background: #050505;
  color: #b8b0a0;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
}
.footer__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--gold); margin-bottom: 1rem; font-size: .75rem; }
.footer a { color: #d4ccba; font-size: .9rem; }
.footer a:hover { color: var(--gold); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: .25rem 0; }
.footer__brand { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.footer__brand img { height: 44px; }
.footer__brand span { font-family: var(--serif); font-size: 1.25rem; color: var(--paper); letter-spacing: .06em; }
.footer__brand small { color: var(--gold); display: block; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; margin-top: .1rem; }
.footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-bright);
  margin: .9rem 0 .4rem;
  letter-spacing: .02em;
}
.footer__tagline::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: .6;
  margin: 0 .6rem .25rem 0;
  vertical-align: middle;
}

/* Brand-explainer block on home */
.mt-explain {
  max-width: 640px;
  margin: 2.5rem auto 0;
  padding: 1.6rem 1.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.mt-explain__phrase {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-bright);
  margin: 0 0 .4rem;
  letter-spacing: .01em;
}
.mt-explain__note {
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0;
  display: block;
}
.mt-explain__note em { font-style: italic; color: var(--gold); text-transform: none; letter-spacing: .02em; font-family: var(--serif); font-size: 1rem; }

.footer__copy {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--mute);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Form extensions: branching, honeypot, consent ---------- */
.hp-field {
  /* Honeypot — invisible to humans, tempting to bots. */
  position: absolute !important;
  left: -10000px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.branch {
  border: 1px solid var(--line);
  padding: 1.2rem 1.3rem 1.4rem;
  margin: .2rem 0;
  background: rgba(201, 169, 97, .03);
  display: grid; gap: 1.1rem;
  transition: opacity .3s var(--ease);
}
.branch[hidden] { display: none; }
.branch legend {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 .5rem;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .7rem;
  align-items: flex-start;
  font-size: .82rem;
  color: var(--mute);
  cursor: pointer;
  padding: .2rem 0;
}
.consent input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--gold);
  background: transparent;
  margin: 2px 0 0;
  cursor: pointer;
  position: relative;
  border-radius: 0;
}
.consent input[type="checkbox"]:checked {
  background: var(--gold);
}
.consent input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 600;
}
.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* ---------- FAQ (investment) ---------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
  padding-right: 2.2rem;
  position: relative;
  transition: color .25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s var(--ease);
}
.faq details[open] summary { color: var(--gold-bright); }
.faq details[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}
.faq summary:hover { color: var(--gold-bright); }
.faq details > p {
  margin: .8rem 0 0;
  color: #c9c1b0;
  line-height: 1.7;
}

/* ---------- Keyboard focus for galleries ---------- */
.masonry figure:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- Refined masonry hover — subtler, no crop-zoom ---------- */
.masonry img {
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: brightness(.94);
  will-change: transform;
}
.masonry figure:hover img,
.masonry figure:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.02) saturate(1.03);
}

/* ---------- prefers-reduced-motion: respect user preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .masonry figure:hover img { transform: none; }
  .tier:hover { transform: none; }
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.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;
}
.text-gold { color: var(--gold); }
.text-paper { color: var(--paper); }
.muted { color: var(--mute); }

/* Print */
@media print {
  .nav, .footer, .hero__scroll, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Behold.so Instagram widget (live feed) ----------
   These custom properties are consumed by the <behold-widget>
   element's shadow DOM. They apply automatically once the
   Behold embed is activated — no change needed in the widget
   config itself. See index.html for activation instructions.
*/
behold-widget {
  --behold-row-gap: .4rem;
  --behold-column-gap: .4rem;
  --behold-border-radius: 0;
  --behold-background-color: transparent;
  --behold-text-color: var(--paper);
  --behold-accent-color: var(--gold);
  --behold-hover-overlay-color: rgba(10, 9, 8, 0.55);
  --behold-hover-text-color: var(--gold-bright, #d4b56a);
  --behold-font-family: var(--sans, "Inter", system-ui, sans-serif);
  display: block;
  width: 100%;
}
/* Safety net: if the live widget is present, hide the curated fallback.
   Once Behold is activated you can also simply delete the .ig-fallback
   block from index.html — either approach works. */
body:has(behold-widget) .ig-fallback { display: none; }
