/* ==========================================================================
   Prism Haus — styles
   Colors and fonts are set once in :root. Change them there and the whole
   site follows.
   ========================================================================== */

:root {
  /* Color */
  --paper: #FAF9F7;        /* page background */
  --paper-2: #F1EEEA;      /* alternate section background */
  --line: #DDD6CF;         /* hairlines and borders */
  --ink: #2E2522;          /* main text, from the EP Films logo */
  --mute: #6F6460;         /* secondary text */
  --umber: #7A4526;        /* links and focus, from the Emma Cate logo */
  --night: #231B19;        /* films section background */
  --on-dark: #F4F0EC;      /* text on dark backgrounds */

  /* The prism: a soft spectrum used only as a thin line */
  --prism: linear-gradient(90deg, #E9C6BE 0%, #EDD9AE 24%, #C9D6BD 48%, #BCD1DE 72%, #D3C4E0 100%);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(72px, 11vw, 150px);
  --header-h: 76px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

.prism-line { display: block; height: 2px; background: var(--prism); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--paper); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.85); color: #fff; }
.btn--outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.text-link {
  font-weight: 500; text-decoration: none;
  background-image: var(--prism); background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 3px;
}
.text-link:hover { color: var(--umber); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--ink);
  background: rgba(250, 249, 247, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.site-header.is-over-hero { background: transparent; color: #fff; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

.header-inner {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; }
.nav--right { justify-content: flex-end; }
.nav a { text-decoration: none; font-size: 0.93rem; letter-spacing: 0.02em; padding: 6px 0; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .btn { min-height: 40px; padding: 0 20px; }
.is-over-hero .nav .btn { background: #fff; border-color: #fff; color: var(--ink); }
.is-over-hero .nav .btn:hover { background: transparent; color: #fff; }

/* Wordmark: the Prism Haus logo, set in type */
.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.header-inner .wordmark { justify-self: center; }
.wordmark__name {
  font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.3em; text-transform: uppercase;
  margin-right: -0.3em; /* balance the trailing letter-space */
}
.wordmark__line { width: 100%; height: 1px; margin: 7px 0 6px; background: var(--prism); }
.wordmark__sub { font-size: 0.64rem; letter-spacing: 0.34em; margin-right: -0.34em; text-transform: uppercase; }

.menu-toggle {
  display: none; justify-self: end;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--paper); padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 6px;
  visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s;
}
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 2rem; text-decoration: none; padding: 6px 0; }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }
.menu-open .mobile-menu { visibility: visible; opacity: 1; }
.menu-open .site-header { background: var(--paper); color: var(--ink); border-color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--night);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 14, 12, 0.35) 0%, rgba(20, 14, 12, 0) 22%),
    linear-gradient(to top, rgba(20, 14, 12, 0.62) 0%, rgba(20, 14, 12, 0.2) 38%, rgba(20, 14, 12, 0) 60%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 104px); }
.hero__line { width: min(360px, 60vw); margin-bottom: 28px; transform-origin: left; }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 6.2rem); max-width: 15ch; line-height: 1.02; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 44ch; margin: 22px 0 32px; color: rgba(255,255,255,0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The one orchestrated moment: the prism line draws, then the words arrive */
@media (prefers-reduced-motion: no-preference) {
  .hero__line { animation: draw 1.4s cubic-bezier(.6,.05,.2,1) both .2s; }
  .hero h1, .hero__sub { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .6s; }
  .hero__sub { animation-delay: .8s; }
  .hero__actions { animation: rise 1s cubic-bezier(.2,.7,.2,1) both 1s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--alt { background: var(--paper-2); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.section-head p { color: var(--mute); max-width: 46ch; justify-self: end; }

/* ---------- Intro / fusion ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.intro h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 13ch; }
.intro__body { font-size: 1.08rem; max-width: 56ch; }

.lockup {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 36px);
  margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.lockup__logo { display: flex; justify-content: center; }
.lockup__logo img { mix-blend-mode: multiply; }
.lockup__logo--emma img { width: min(360px, 100%); }
.lockup__logo--ep img { width: min(170px, 70%); }
.lockup__x { font-family: var(--sans); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 400; color: var(--ink); line-height: 1; }

/* ---------- Photo grid (masonry) ---------- */
.masonry { columns: 3; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; }
.masonry button {
  display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in;
}
.masonry img { width: 100%; transition: opacity .5s ease; }
.masonry img.is-loading { opacity: 0; }

.section-foot { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Featured weddings ---------- */
.weddings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.wedding { text-decoration: none; display: block; }
.wedding__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.wedding__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.wedding:hover .wedding__img img { transform: scale(1.03); }
.wedding h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 22px; }
.wedding__place { color: var(--mute); font-size: 0.92rem; margin-top: 6px; }
.wedding__summary { margin-top: 10px; color: var(--ink); max-width: 40ch; }
.wedding .text-link { display: inline-block; margin-top: 14px; }

/* ---------- Films ---------- */
.films { background: var(--night); color: var(--on-dark); }
.films .section-head p { color: rgba(244, 240, 236, 0.72); }
.film-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2.4vw, 32px); }
.film-grid .film:first-child { grid-column: 1 / -1; }
.film__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
}
.film__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.86; transition: opacity .4s ease; }
.film__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.gallery-film { margin-bottom: clamp(40px, 6vw, 72px); }
.gallery-film .film__meta { display: none; }
.film__play {
  position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.film__play:hover + img, .film__frame:hover img { opacity: 1; }
.film__play-icon {
  width: 76px; height: 76px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.85); background: rgba(20,14,12,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background-color .3s ease;
}
.film__play:hover .film__play-icon { transform: scale(1.06); background: rgba(20,14,12,0.45); }
.film__play-icon::before {
  content: ""; margin-left: 5px;
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff;
}
.film__soon {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  font-size: 0.82rem; padding: 6px 12px; background: rgba(20,14,12,0.6); color: #fff; border-radius: 2px;
}
.film__meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.film__title { font-family: var(--serif); font-size: 1.35rem; }
.film__kind { font-size: 0.88rem; color: rgba(244, 240, 236, 0.66); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.team__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.team__img img { width: 100%; height: 100%; object-fit: cover; }
.team h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); margin-bottom: 28px; }
.team__body { font-size: 1.08rem; max-width: 52ch; }
.people { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.people strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.people span { color: var(--mute); font-size: 0.93rem; }

/* ---------- Collections ---------- */
.promo {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between;
  padding: 22px 28px; margin-bottom: clamp(36px, 5vw, 56px);
  background: var(--paper); border: 1px solid var(--line);
}
.promo::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--prism); }
.promo p { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; max-width: 48ch; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.plan { padding: 36px clamp(20px, 2.6vw, 40px) 8px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan:first-child { padding-left: 0; }
.plan:last-child { padding-right: 0; }
.plan__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan h3 { font-size: clamp(2rem, 3vw, 2.7rem); }
.plan__hours { color: var(--mute); font-size: 0.95rem; white-space: nowrap; }
.plan__tag { display: inline-block; align-self: flex-start; margin-top: 10px; font-size: 0.8rem; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 20px; }
.plan__price { margin: 26px 0 30px; }
.plan__amount { font-family: var(--sans); font-weight: 500; font-size: clamp(2rem, 3vw, 2.6rem); letter-spacing: -0.02em; line-height: 1; display: block; font-variant-numeric: lining-nums tabular-nums; }
.plan__regular { display: block; color: var(--mute); font-size: 0.9rem; margin-top: 10px; }
.plan__regular s { color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.plan h4 { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; margin: 0 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan__btn { margin-top: auto; align-self: flex-start; margin-bottom: 28px; }
.plan li { padding: 3px 0; font-size: 0.97rem; }
.plans-foot { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: clamp(28px, 4vw, 44px); }
.plans-foot p { color: var(--mute); max-width: 60ch; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: clamp(48px, 6vw, 80px); }
.quote { margin: 0; max-width: 30ch; }
.quote:nth-child(even) { justify-self: end; }
.quote p { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; }
.quote footer { margin-top: 18px; color: var(--mute); }

/* ---------- Inquiry ---------- */
.inquire { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.inquire h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 11ch; }
.inquire__intro { margin: 24px 0 40px; max-width: 42ch; color: var(--mute); font-size: 1.05rem; }
.contact-card { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.contact-card a { display: block; text-decoration: none; width: fit-content; }
.contact-card a:hover { color: var(--umber); text-decoration: underline; text-underline-offset: 4px; }
.contact-card small { color: var(--mute); font-size: 0.88rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; }
.field .opt { color: var(--mute); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; min-height: 50px; width: 100%;
  transition: border-color .2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BDB3AA; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A3352B; }
.field__error { color: #A3352B; font-size: 0.86rem; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form__note { color: var(--mute); font-size: 0.88rem; margin: 0; }
.form__status { grid-column: 1 / -1; padding: 16px 18px; border: 1px solid var(--line); background: var(--paper); }
.form__status--error { border-color: #A3352B; color: #7E2A22; }
.form__status--ok { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); padding: clamp(56px, 8vw, 96px) 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: start; }
.footer-top .wordmark { align-items: flex-start; }
.footer-top .wordmark__name { font-size: 1.6rem; }
.footer-line { color: var(--mute); margin-top: 16px; max-width: 32ch; }
.footer-logos { display: flex; align-items: center; gap: 28px; justify-content: center; }
.footer-logos img { mix-blend-mode: multiply; }
.footer-logos img.emma { width: 210px; }
.footer-logos img.ep { width: 86px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: right; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.88rem; }
.social { display: flex; gap: 18px; }
.social a { text-decoration: none; }
.social a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Gallery page ---------- */
.gallery-head { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); }
.gallery-head .back { display: inline-block; margin-bottom: 28px; font-size: 0.93rem; text-decoration: none; color: var(--mute); }
.gallery-head .back:hover { color: var(--ink); }
.gallery-head h1 { font-size: clamp(3rem, 8vw, 7rem); }
.gallery-head__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 22px; color: var(--mute); }
.gallery-head__summary { font-size: 1.1rem; max-width: 52ch; margin-top: 18px; }
.gallery-next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.gallery-next small { display: block; color: var(--mute); margin-bottom: 10px; }
.gallery-next a.next { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4rem); text-decoration: none; line-height: 1.05; }
.gallery-next a.next:hover { color: var(--umber); }

.cta-band { background: var(--night); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: end; justify-content: space-between; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 14ch; }

.not-found { padding: calc(var(--header-h) + 120px) 0 120px; }
.not-found h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); margin-bottom: 20px; }

/* ---------- Availability calendar ---------- */
.avail {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 14, 12, 0.35);
  overflow: auto;
}
.avail::backdrop { background: rgba(24, 18, 16, 0.6); }
.avail .prism-line { height: 3px; }
.avail__inner { position: relative; padding: 32px clamp(20px, 5vw, 36px) 32px; }
.avail h2 { font-size: 2.1rem; padding-right: 40px; }
.avail__intro { color: var(--mute); margin: 10px 0 22px; font-size: 0.97rem; }
.avail__close {
  position: absolute; top: 18px; right: 14px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.avail__close svg, .cal__nav svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.4; fill: none; }

.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__month { font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.cal__nav {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; color: var(--ink);
}
.cal__nav:hover:not(:disabled) { border-color: var(--ink); }
.cal__nav:disabled { opacity: 0.3; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__grid[aria-busy="true"] .cal__day { opacity: 0.5; }
.cal__dow { text-align: center; font-size: 0.78rem; color: var(--mute); padding: 6px 0; }
.cal__day {
  aspect-ratio: 1; min-height: 40px; width: 100%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: 2px;
  font-size: 0.95rem; cursor: pointer; color: var(--ink);
  transition: background-color .15s ease, border-color .15s ease;
}
.cal__day:hover:not(:disabled) { border-color: var(--ink); }
.cal__day:disabled { color: #BDB3AA; cursor: default; }
.cal__day.is-today { font-weight: 600; }
.cal__day.is-booked { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; background: var(--paper-2); }
.cal__day.is-selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cal__day.is-selected.is-booked { background: var(--mute); border-color: var(--mute); }

.avail__result { margin-top: 20px; }
.avail__result:empty { display: none; }
.avail__msg { margin: 0 0 16px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.5; }
.avail__msg--open { font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.avail__msg--booked { color: #7E2A22; }
.avail__result .btn { width: 100%; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: rgba(24, 18, 16, 0.97); color: #fff;
}
.lightbox::backdrop { background: rgba(24, 18, 16, 0.97); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox__btn {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  opacity: 0.8; transition: opacity .2s ease;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 0.88rem; opacity: 0.75; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr; border-top: 0; }
  .plan { padding: 32px 0 8px; border-top: 1px solid var(--ink); }
  .plan + .plan { border-left: 0; }
  .plan ul { columns: 2; column-gap: 24px; }
  .plan__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .plan__lists ul { columns: 1; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner .wordmark { justify-self: start; }
  .wordmark__name { font-size: 1.1rem; }

  .section-head, .intro, .team, .inquire { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .weddings { grid-template-columns: 1fr 1fr; }
  .weddings .wedding:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .weddings .wedding:last-child:nth-child(odd) .wedding__img { aspect-ratio: 16 / 10; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }
  .team__img { max-width: 520px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-logos { justify-content: flex-start; }
  .footer-links { text-align: left; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .lightbox__img { max-width: 100vw; max-height: calc(100dvh - 140px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .weddings { grid-template-columns: 1fr; }
  .weddings .wedding:last-child:nth-child(odd) .wedding__img { aspect-ratio: 4 / 5; }
  .film-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .plan ul { columns: 1; }
  .plan__lists { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .promo { padding: 20px; }
  .lockup { grid-template-columns: 1fr; justify-items: center; }
  .lockup__logo--emma img { width: min(240px, 80vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
