/* JM Production Studio landing page. Same tokens as jmproduction.com.au and the client portal. */
:root {
  --velvet: #0D0B0E;
  --velvet2: #141117;
  --velvet3: #1B171E;
  --ivory: #F5EFE4;
  --smoke: #8E8791;
  --gold: #CB9724;
  --goldsoft: #EFC768;
  --line: rgba(245, 239, 228, .1);
  --display: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  /* One content column for everything: header, photo strip, booking box */
  --wrap: 1140px;
  /* height of the sticky header (a touch over is fine); the hero photo slides up underneath it */
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--velvet);
  color: var(--ivory);
  font: 300 17px/1.7 var(--sans);
  letter-spacing: .01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--goldsoft); text-decoration: none; }
a:hover { color: var(--ivory); }
em { font-family: var(--serif); font-style: italic; color: var(--goldsoft); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .03em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 em, h1 em { font-weight: 400; }
::selection { background: var(--gold); color: var(--velvet); }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .top, .foot { position: relative; z-index: 1; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--goldsoft);
  margin: 0 0 1.2rem;
}
.star { color: var(--gold); margin-right: .4em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  transition: background .25s, color .25s, border-color .25s;
}
.btn.gold { background: var(--gold); color: var(--velvet); }
.btn.gold:hover { background: var(--goldsoft); border-color: var(--goldsoft); color: var(--velvet); }
.btn.ghost { color: var(--ivory); border-color: rgba(245, 239, 228, .3); }
.btn.ghost:hover { border-color: var(--goldsoft); color: var(--goldsoft); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* logo and Book now line up with the edges of the content column */
  padding: 14px max(var(--gutter), calc((100% - var(--wrap)) / 2));
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(13, 11, 14, .92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ivory); }
.brand img { height: 44px; width: auto; }
.brand span {
  font-size: .68rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--smoke);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.top nav a { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ivory); }
.top nav a:hover { color: var(--goldsoft); }
.top nav .nav-cta { border: 1px solid var(--gold); padding: 10px 18px; background: var(--gold); color: var(--velvet); font-weight: 400; }
.top nav .nav-cta:hover { background: var(--goldsoft); border-color: var(--goldsoft); color: var(--velvet); }

/* Hero: title on a full-width photo of the set, tinted dark so the text reads.
   It slides up under the (transparent) header so the photo starts at the very top. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(600px, min(94vh, 58vw), 1180px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) var(--gutter) clamp(72px, 9vw, 120px);
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; filter: saturate(1.08); }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 46% at 50% 44%, rgba(13, 11, 14, .66), rgba(13, 11, 14, .3) 60%, rgba(13, 11, 14, 0) 80%),
    linear-gradient(180deg, rgba(13, 11, 14, .85) 0%, rgba(13, 11, 14, .45) 28%, rgba(13, 11, 14, .3) 64%, rgba(13, 11, 14, .7) 88%, var(--velvet) 100%);
}
.hero-text { max-width: 900px; margin: 0 auto; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .note { text-shadow: 0 2px 18px rgba(0, 0, 0, .7), 0 1px 3px rgba(0, 0, 0, .5); }
.hero .lead { color: rgba(245, 239, 228, .94); }
.hero .note { color: rgba(245, 239, 228, .78); }
.hero .btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.hero .btn.ghost { background: rgba(13, 11, 14, .42); border-color: rgba(245, 239, 228, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .actions { justify-content: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); margin-bottom: 1.6rem; }
.hero h1 em { display: inline-block; margin-top: .1em; }
.lead { font-size: 1.12rem; color: rgba(245, 239, 228, .82); max-width: 34em; margin: 0 0 2.2rem; }
.lead strong { font-weight: 400; color: var(--goldsoft); }
.note { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--smoke); }

/* Strip photos open full size */
.zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom:focus-visible { outline: 2px solid var(--goldsoft); outline-offset: 4px; }

/* The set: a sideways strip of studio photos at their own shape, inside the content column */
.set { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 84px); }
.set .intro { padding: 0 var(--gutter); margin-bottom: 44px; }
.strip {
  --strip-h: clamp(300px, 56vh, 520px);
  display: flex;
  gap: 14px;
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
/* Soft fade on whichever side has more photos (classes set by studio.js) */
.strip {
  --fl: 0px; --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.strip.more-left { --fl: 64px; }
.strip.more-right { --fr: 64px; }
.strip:focus-visible { outline: 1px solid rgba(203, 151, 36, .5); outline-offset: 6px; }
.strip figure { margin: 0; flex: none; height: var(--strip-h); scroll-snap-align: start; overflow: hidden; }
.strip img { height: 100%; width: auto; max-width: none; transition: transform .8s ease; }
.strip figure:hover img { transform: scale(1.03); }
.strip-nav { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 26px; padding: 0 var(--gutter); }
.strip-nav p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--smoke); }
.strip-btn {
  width: 46px; height: 46px; flex: none;
  display: grid; place-content: center;
  border: 1px solid rgba(203, 151, 36, .6); border-radius: 50%;
  background: transparent; color: var(--goldsoft);
  font: 400 1.6rem/1 var(--serif); cursor: pointer;
  transition: background .25s, color .25s, opacity .25s;
}
.strip-btn:hover:not(:disabled) { background: var(--gold); color: var(--velvet); }
.strip-btn:disabled { opacity: .3; cursor: default; }
.set-cta { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 52px); padding: 0 var(--gutter); }

/* Full-size photo viewer */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ivory); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 7, 9, .94); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 120px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transition: opacity .2s; }
.lightbox img.loading { opacity: .35; }
.lb-btn {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-content: center;
  border: 1px solid rgba(245, 239, 228, .25); border-radius: 50%;
  background: rgba(13, 11, 14, .6); color: var(--ivory);
  font: 400 1.9rem/1 var(--serif); cursor: pointer;
}
.lb-btn:hover { border-color: var(--goldsoft); color: var(--goldsoft); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; text-align: center; font-size: .72rem; letter-spacing: .3em; color: var(--smoke); }
html:has(.lightbox[open]) { overflow: hidden; }

.hero-art { position: relative; min-height: 520px; }
.frame { margin: 0; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(203, 151, 36, .55);
  z-index: -1;
}
.hero-art .big { position: absolute; top: 0; right: 0; width: 78%; aspect-ratio: 4 / 5; }
.hero-art .small {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44%;
  aspect-ratio: 1;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  border: 6px solid var(--velvet);
}
.hero-art .small::after { display: none; }
.badge {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(13, 11, 14, .82);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-10deg);
  z-index: 2;
}
.badge span { font-size: .56rem; letter-spacing: .3em; text-transform: uppercase; color: var(--smoke); }
.badge strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--goldsoft); letter-spacing: .04em; }

/* Christmas */
.christmas { padding: 110px var(--gutter); background: var(--velvet2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.intro p:not(.eyebrow) { color: rgba(245, 239, 228, .78); margin: 1.4rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); max-width: 1200px; margin: 0 auto; }
.card figure { margin: 0 0 22px; aspect-ratio: 4 / 5; overflow: hidden; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover img { transform: scale(1.04); }
.card h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.card p { margin: 0; color: var(--smoke); }

/* Wall */
.wall {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  padding: 120px var(--gutter);
  max-width: 1320px;
  margin: 0 auto;
}
.wall-img { aspect-ratio: 4 / 5; }
.wall-text > p:not(.eyebrow) { color: rgba(245, 239, 228, .78); margin: 1.4rem 0 2rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; }
.points li { border-top: 1px solid rgba(203, 151, 36, .4); padding-top: 14px; }
.points strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--goldsoft); margin-bottom: 4px; }
.points span { color: var(--smoke); font-size: .95rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  padding: 0 var(--gutter) 120px;
  max-width: 1320px;
  margin: 0 auto;
}
.gallery figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 9; }
.gallery .g1 { aspect-ratio: auto; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95); transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.03); }

/* Booking */
.book {
  /* every "Book" link lands here; keep the heading clear of the sticky header */
  scroll-margin-top: 56px;
  padding: clamp(56px, 7vw, 90px) var(--gutter) 70px;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(203, 151, 36, .12), transparent 70%),
    var(--velvet2);
  border-top: 1px solid var(--line);
}
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 34px; }
.steps li { display: flex; align-items: center; gap: 12px; color: rgba(245, 239, 228, .8); font-size: .95rem; }
.steps span {
  display: grid; place-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--goldsoft);
  font-size: .8rem;
}
.book .intro { margin-bottom: clamp(30px, 4vw, 44px); }
.book .intro h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.booking-frame { max-width: var(--wrap); margin: 0 auto; }
.booking-frame iframe { display: block; width: 100%; height: 860px; border: 0; background: transparent; transition: height .3s ease; }
.fallback { text-align: center; color: var(--smoke); font-size: .9rem; margin: 22px 0 0; }

/* Contact + footer */
.contact { text-align: center; padding: 100px var(--gutter); }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { color: var(--smoke); margin: 1rem 0 2rem; }
.contact .actions { justify-content: center; }
.foot { text-align: center; padding: 60px var(--gutter) 50px; border-top: 1px solid var(--line); color: var(--smoke); font-size: .9rem; }
.foot img { height: 56px; width: auto; margin: 0 auto 18px; }
.foot p { margin: .3rem 0; }
.foot a { color: var(--ivory); }
.foot a:hover { color: var(--goldsoft); }
.foot .fine { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 18px; }

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

@media (max-width: 960px) {
  .hero, .wall { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; aspect-ratio: 1 / 1.05; max-width: 560px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
  .points { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g1 { grid-row: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav a:not(.nav-cta) { display: none; }
  .brand img { height: 36px; }
  .brand span { display: none; }
  .btn { padding: 14px 22px; }
  .badge { width: 92px; height: 92px; }
  .badge strong { font-size: 1.05rem; }
  .christmas, .wall { padding-top: 80px; padding-bottom: 80px; }
  .booking-frame { margin: 0 calc(var(--gutter) * -1); }
  :root { --header-h: 72px; }
  .hero { min-height: min(92svh, 760px); }
  .hero-bg img { object-position: 50% 78%; }
  .strip { --strip-h: 340px; gap: 10px; }
  .strip .land { max-width: 100%; }
  .steps { flex-direction: column; align-items: flex-start; width: fit-content; margin-left: auto; margin-right: auto; gap: 12px; }
  .strip.more-left { --fl: 28px; }
  .strip.more-right { --fr: 28px; }
  .strip .land img { width: 100%; object-fit: cover; }
  .strip-nav p { font-size: .95rem; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; width: 46px; height: 46px; }
  .lb-count { bottom: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .gallery img, .strip img { transition: none; }
}
