:root {
  --ink: #191313;
  --paper: #fff8f1;
  --cream: #f3e7dc;
  --blush: #d8b2a7;
  --rose: #a83d49;
  --oxblood: #501d26;
  --charcoal: #140f10;
  --gold: #c9a46a;
  --muted: #746862;
  --line: rgba(25, 19, 19, 0.16);
  --light-line: rgba(255, 248, 241, 0.2);
  --shadow: 0 28px 80px rgba(25, 19, 19, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --display: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body.gate-open,
body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

::selection {
  color: var(--charcoal);
  background: var(--gold);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(20, 15, 16, 0.2), rgba(20, 15, 16, 0.78)),
    url("assets/images/madison-hero-poster.jpg") center / cover;
  transition: opacity 950ms ease, visibility 950ms ease;
}

.age-gate.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.age-panel {
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 52px);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: rgba(20, 15, 16, 0.74);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
  color: var(--paper);
  text-align: center;
  backdrop-filter: blur(18px);
  animation: panelIn 1300ms cubic-bezier(0.16, 0.88, 0.18, 1) both;
}

.age-panel h1 {
  margin: 8px 0 18px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 8vw, 5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
}

.age-panel p:not(.eyebrow) {
  margin: 0 auto 30px;
  max-width: 34rem;
  color: rgba(255, 248, 241, 0.78);
}

.age-actions,
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 52px);
  color: var(--paper);
  background: linear-gradient(rgba(20, 15, 16, 0.5), rgba(20, 15, 16, 0));
  transition: background 520ms ease, color 520ms ease, padding 520ms ease, box-shadow 520ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--ink);
  background: rgba(255, 248, 241, 0.94);
  box-shadow: 0 14px 40px rgba(25, 19, 19, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 2px;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.brand-line {
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.4vw, 30px);
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  transition: color 520ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 560ms cubic-bezier(0.16, 0.88, 0.18, 1);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: opacity 480ms ease, transform 480ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(42deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-42deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--charcoal);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--display);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 156px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 560ms ease, border-color 560ms ease, color 560ms ease, transform 560ms ease, opacity 560ms ease;
}

.button:hover {
  transform: translateY(-4px);
}

.button:disabled {
  cursor: default;
  opacity: 0.68;
  transform: none;
}

.button-dark {
  border-color: var(--oxblood);
  background: var(--oxblood);
  color: var(--paper);
}

.button-light,
.button-glass {
  border-color: rgba(255, 248, 241, 0.45);
  background: rgba(255, 248, 241, 0.12);
  color: var(--paper);
}

.contact-card .button-light {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 248, 241, 0.62);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 248, 241, 0.5);
  border-radius: 50%;
  color: var(--paper);
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 11px;
  height: 11px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.intro-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px clamp(18px, 4vw, 60px);
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--paper);
  background: var(--oxblood);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  padding: clamp(74px, 10vw, 138px) clamp(18px, 5vw, 72px);
}

.section-copy {
  max-width: 680px;
}

.section-copy h2,
.section-heading h2,
.story-card h2,
.contact-card h2,
.rates-intro h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

.section-copy p,
.section-heading p,
.story-card p,
.detail-panel p,
.rates-intro p,
.note-card p,
.faq-answer p,
.contact-card p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 92px);
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.94), rgba(243, 231, 220, 0.72)),
    var(--paper);
}

.portrait-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-card img,
.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card img {
  aspect-ratio: 4 / 5;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(0, 0.88fr);
  align-items: stretch;
  gap: clamp(24px, 5vw, 52px);
  background: var(--charcoal);
  color: var(--paper);
}

.wide-image {
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
}

.story-card {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: rgba(255, 248, 241, 0.06);
}

.story-card p {
  color: rgba(255, 248, 241, 0.72);
}

.details-section {
  background:
    radial-gradient(circle at 86% 6%, rgba(168, 61, 73, 0.16), transparent 360px),
    var(--paper);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(36px, 6vw, 64px);
  text-align: center;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.detail-panel,
.rate-list,
.service-card,
.note-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 241, 0.74);
  box-shadow: 0 18px 60px rgba(25, 19, 19, 0.08);
}

.detail-panel {
  padding: clamp(24px, 4vw, 38px);
}

.detail-panel h3,
.rate-list h3,
.service-card h3,
.note-card h3 {
  margin: 0 0 18px;
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
}

.detail-panel dl,
.rate-list ul,
.service-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-panel dl div,
.rate-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-panel dt {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-panel dd {
  margin: 0;
  text-align: right;
}

.gallery-section {
  background: var(--charcoal);
  color: var(--paper);
}

.gallery-section .section-heading p {
  color: rgba(255, 248, 241, 0.7);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 241, 0.12);
  border-radius: 8px;
  background: #0b0809;
  cursor: pointer;
  padding: 0;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
  min-height: 538px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1300ms ease, filter 1300ms ease;
}

.gallery-item:hover img {
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.085);
}

.gallery-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 42px);
}

.gallery-more.is-hidden {
  display: none;
}

.rates-section {
  background:
    linear-gradient(rgba(255, 248, 241, 0.92), rgba(255, 248, 241, 0.96)),
    url("assets/images/madison-10.jpg") center / cover fixed;
}

.rates-intro {
  max-width: 840px;
  margin: 0 auto clamp(34px, 5vw, 58px);
  text-align: center;
}

.rates-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
}

.rate-list,
.service-card,
.note-card {
  padding: clamp(24px, 4vw, 38px);
}

.rate-list {
  grid-row: span 2;
}

.rate-list li span,
.service-card li {
  color: var(--muted);
}

.rate-list strong {
  white-space: nowrap;
  color: var(--ink);
}

.service-card li {
  position: relative;
  padding-left: 18px;
}

.service-card li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  content: "";
}

.faq-section {
  background: var(--cream);
}

.faq-list {
  width: min(920px, 100%);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  padding: 20px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  text-align: left;
}

.faq-item button span {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.faq-item button span::before,
.faq-item button span::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--rose);
  content: "";
  transition: transform 620ms ease;
}

.faq-item button span::after {
  transform: rotate(90deg);
}

.faq-item.is-open button span::after {
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 850ms ease, opacity 760ms ease, transform 760ms ease;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  margin: 0;
  padding: 0 0 24px;
}

.contact-section {
  background:
    linear-gradient(rgba(20, 15, 16, 0.46), rgba(20, 15, 16, 0.7)),
    url("assets/images/madison-30.jpg") center / cover;
}

.contact-card {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(30px, 6vw, 58px);
  color: var(--paper);
  text-align: center;
  background: rgba(20, 15, 16, 0.58);
  border-color: rgba(255, 248, 241, 0.22);
  backdrop-filter: blur(14px);
}

.contact-card p {
  color: rgba(255, 248, 241, 0.78);
}

.contact-note {
  display: grid;
  gap: 4px;
  margin: 24px 0 0;
  font-size: 0.94rem;
}

.contact-note span {
  color: rgba(255, 248, 241, 0.68);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-note strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 248, 241, 0.72);
  background: var(--charcoal);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 7, 8, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 560ms ease, visibility 560ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(100%, 1180px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 248, 241, 0.28);
  border-radius: 50%;
  background: rgba(255, 248, 241, 0.08);
  color: var(--paper);
  cursor: pointer;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  font-size: 1.8rem;
}

.lightbox-arrow {
  top: 50%;
  width: 54px;
  height: 54px;
  font-family: var(--serif);
  font-size: 2.4rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(46px) scale(0.98);
  transition: opacity 1300ms ease, transform 1300ms cubic-bezier(0.16, 0.88, 0.18, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.96);
  }
}

@media (max-width: 1100px) {
  .site-nav {
    position: fixed;
    top: 76px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 248, 241, 0.97);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 540ms ease, transform 540ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
  }

  .about-grid,
  .story-section,
  .rates-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rates-section {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand-line {
    display: none;
  }

  .hero {
    min-height: 94svh;
  }

  .button {
    width: 100%;
  }

  .intro-strip {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .section {
    padding: 68px 16px;
  }

  .section-copy h2,
  .section-heading h2,
  .story-card h2,
  .contact-card h2,
  .rates-intro h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .wide-image {
    min-height: 320px;
  }

  .detail-panel dl div,
  .rate-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .detail-panel dd {
    text-align: left;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 420px;
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .site-footer {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}
