:root {
  --bg: #14120f;
  --panel: #1c1915;
  --line: rgba(246, 241, 233, 0.16);
  --ink: #f6f1e9;
  --ink-soft: rgba(246, 241, 233, 0.82);
  --muted: rgba(246, 241, 233, 0.62);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

/* Fade the page in once it has loaded */
html.js body {
  opacity: 0;
  transition: opacity 1.4s ease;
}
html.js body.loaded { opacity: 1; }

/* ---------- Navigation (transparent) ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px);
  background: transparent;
}

.brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 4.8vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px clamp(18px, 2.6vw, 40px);
  list-style: none;
}

.nav a.link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  transition: color 0.2s ease;
}

.nav a.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a.link:hover,
.nav a.link:focus-visible,
.nav a.link[aria-current="page"] { color: var(--ink); }

.nav a.link:hover::after,
.nav a.link:focus-visible::after,
.nav a.link[aria-current="page"]::after { transform: scaleX(1); }

.nav a:focus-visible,
.menu-toggle:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Menu button (phones only) */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 760px) {
  .nav { padding: 14px 20px; }
  .menu-toggle { display: block; }

  .nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    background: transparent;
  }
  .nav ul.open { display: flex; }

  /* Each button fades down in turn when the menu opens */
  .nav li { animation: menu-drop 0.45s ease both; }
  .nav li:nth-child(1) { animation-delay: 0s; }
  .nav li:nth-child(2) { animation-delay: 0.08s; }
  .nav li:nth-child(3) { animation-delay: 0.16s; }
  .nav li:nth-child(4) { animation-delay: 0.24s; }
  .nav li:nth-child(5) { animation-delay: 0.32s; }

  @keyframes menu-drop {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Very transparent buttons that touch each other */
  .nav a.link {
    display: block;
    padding: 14px 18px;
    font-size: 1.5rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    background: rgba(20, 18, 15, 0.18);
    border-bottom: 1px solid rgba(246, 241, 233, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, color 0.2s ease;
  }
  .nav li:last-child a.link { border-bottom: 0; }
  .nav a.link:hover,
  .nav a.link:focus-visible { background: rgba(20, 18, 15, 0.35); }
  .nav a.link[aria-current="page"] { background: rgba(246, 241, 233, 0.12); }
  .nav a.link::after { display: none; }
}

/* ---------- Home ---------- */
.hero {
  position: fixed;
  inset: 0;
  background: var(--bg) url("pictures/home.jpg") center / cover no-repeat;
}

/* Desktop screens use a different home image (home.jpg stays for mobile) */
@media (min-width: 761px) {
  .hero {
    background-image: url("pictures/home2.jpg");
  }
}

/* Soft shade at the top so the nav text stays readable on any photo */
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* Quote and call-to-action on the home page */
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-copy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 clamp(20px, 4vw, 56px) calc(clamp(40px, 9vh, 96px) + env(safe-area-inset-bottom, 0px));
}

.hero-quote {
  max-width: 14em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 6.6vw, 4.8rem);
  line-height: 1.12;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero-copy .button {
  margin-top: 28px;
  background: rgba(20, 18, 15, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-copy .button:hover { background: var(--ink); }

/* Phones: the text starts 80% of the way up the image (20% from the top) */
@media (max-width: 760px) {
  .hero-copy {
    top: 20%;
    bottom: auto;
    padding-bottom: 0;
  }

  /* Quote and button fade away while the burger menu is open */
  .hero-copy {
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  body.menu-open .hero-copy {
    opacity: 0;
    visibility: hidden;
  }

  /* Shade the upper part of the photo instead, where the text now sits */
  .hero::before {
    inset: 0 0 auto 0;
    height: 65%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  }
}

/* The quote and button fade out as you scroll (set from script.js) */
.hero-fade { opacity: var(--fade, 1); }

/* One screen of space so the fixed photo shows first */
.hero-spacer {
  height: 100vh;
  height: 100svh;
}

/* White full-width panel that scrolls up over the fixed photo.
   Its top edge is transparent and fades to solid white, so the photo dissolves into it. */
.home-panel {
  --fade-h: clamp(160px, 28vh, 300px);
  position: relative;
  z-index: 10;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0,
    rgba(255, 255, 255, 0.55) calc(var(--fade-h) * 0.55),
    #fff var(--fade-h)
  );
  color: #14120f;
}

.home-panel-inner {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--fade-h) + 24px) clamp(20px, 4vw, 56px) 72px;
}

.home-panel h2,
.home-panel h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  line-height: 1.08;
}
.home-panel h2 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); }
.home-panel h3 { font-size: 1.75rem; }

.home-panel p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: rgba(20, 18, 15, 0.72);
  font-size: 1.08rem;
}

.home-features {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.home-features article {
  padding-top: 22px;
  border-top: 1px solid rgba(20, 18, 15, 0.2);
}
.home-features p { margin-top: 10px; }

.home-cta { margin-top: 88px; }
.home-cta .button { margin-top: 28px; }

.home-panel .button { border-color: #14120f; color: #14120f; }
.home-panel .button:hover { background: #14120f; color: #fff; }
.home-panel .button:focus-visible { outline-color: #14120f; }

.home-footer {
  text-align: center;
  padding: 0 clamp(20px, 4vw, 56px) 40px;
  max-width: 1100px;
  margin: 0 auto;
  color: rgba(20, 18, 15, 0.55);
  font-size: 0.92rem;
}

/* Fade in as it scrolls into view */
html.js .reveal {
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--d, 0ms);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Inner pages ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 56px) 72px;
}

.page h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0.005em;
}

.intro {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.footer {
  padding: 0 clamp(20px, 4vw, 56px) 40px;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: italic 500 1.3rem/1 var(--serif);
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.button:hover { background: var(--ink); color: var(--bg); }

/* ---------- Gallery ---------- */
.gallery { margin-top: 48px; }

.gallery-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

/* Each photo fades in while sliding down into place */
.shot {
  margin: 0;
  min-width: 0;
  background: var(--panel);
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.shot.in {
  opacity: 1;
  transform: translateY(0);
}
.shot {
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.shot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}

.gallery-empty { max-width: 52ch; color: var(--muted); }
#gallery-end { height: 1px; }

@media (max-width: 640px) {
  .gallery { margin-top: 36px; }
  .gallery-row { gap: 6px; margin-bottom: 6px; }
}

/* ---------- Full-screen photo viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #0c0b09;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lb-stage {
  position: absolute;
  inset: 0;
  padding: 72px 96px;
}

.lb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
  -webkit-user-drag: none;
}
.lb-img.from-right { animation: lb-in-right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.lb-img.from-left  { animation: lb-in-left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes lb-in-right {
  from { opacity: 0; transform: translateX(48px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lb-in-left {
  from { opacity: 0; transform: translateX(-48px); }
  to   { opacity: 1; transform: none; }
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 241, 233, 0.12);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, opacity 0.2s ease;
}
.lb-btn:hover { background: rgba(246, 241, 233, 0.24); }
.lb-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lb-btn[disabled] { opacity: 0.25; cursor: default; background: rgba(246, 241, 233, 0.12); }

.lb-close {
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
}
.lb-prev {
  left: calc(20px + env(safe-area-inset-left, 0px));
  top: 50%;
  margin-top: -24px;
}
.lb-next {
  right: calc(20px + env(safe-area-inset-right, 0px));
  top: 50%;
  margin-top: -24px;
}

.lb-count {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  color: var(--muted);
  font: italic 500 1.2rem/1 var(--serif);
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* Touch screens: swipe instead of arrow buttons, and use the whole screen */
@media (pointer: coarse) {
  .lb-prev, .lb-next { display: none; }
  .lb-stage { padding: 64px 0 56px; }
}

@media (max-width: 640px) {
  .lb-stage { padding: 64px 0 56px; }
}

/* ---------- Pricing ---------- */
.packages {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.package {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.package h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}

.price {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.package .blurb {
  margin-top: 14px;
  color: var(--muted);
}

.package ul {
  list-style: none;
  margin: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.package li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.package .button { margin-top: auto; }

/* Hover and keyboard focus: the container lifts, brightens and glows */
.package {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease,
              background 0.3s ease, box-shadow 0.3s ease;
}
.price {
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.package:focus-within {
  transform: translateY(-8px);
  border-color: rgba(246, 241, 233, 0.45);
  background: #221e19;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}
.package:focus-within .price { transform: scale(1.06); }
@media (hover: hover) {
  .package:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 241, 233, 0.45);
    background: #221e19;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  }
  .package:hover .price { transform: scale(1.06); }
}

/* ---------- Payment ---------- */
.pay {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

/* QR code with the Cash App handle underneath */
.pay-code {
  width: min(320px, 100%);
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}

.qr {
  width: 100%;
  padding: 14px;
  background: #fff;
  border-radius: 4px;
}
.qr img { display: block; width: 100%; height: auto; }

.handle-label {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.handle {
  display: inline-block;
  margin-top: 2px;
  color: var(--ink);
  font: italic 500 2rem/1.2 var(--serif);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.handle:hover,
.handle:focus-visible { border-color: var(--ink); }
.handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.pay h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}

.pay ol {
  margin: 24px 0 0 1.2em;
  max-width: 46ch;
  color: var(--ink-soft);
}
.pay ol li { padding: 4px 0 4px 6px; }

/* Key to the package prices (same prices as the pricing page) */
.price-key {
  margin-top: 32px;
  max-width: 460px;
  padding: 24px 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.price-key h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.1;
}
.price-key ul {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.price-key li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.price-key li:last-child { border-bottom: 0; padding-bottom: 0; }
.key-price {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .pay { grid-template-columns: 1fr; margin-top: 36px; }
  .pay-code { margin: 0 auto; }
}

/* Phones: page content slides down so the open menu never covers it */
@media (max-width: 760px) {
  .page,
  .footer {
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  body.menu-open .page,
  body.menu-open .footer {
    transform: translateY(var(--menu-h, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js body { transition-duration: 0.01s; }
  .nav li { animation: none; }
  .hero-copy { transition: none; }
  .page, .footer { transition: none; }
  .shot { transition: none; }
  .lightbox, .lb-btn { transition: none; }
  .lb-img.from-left, .lb-img.from-right { animation: none; }
  .package, .price, .handle { transition: none; }
  .package:hover, .package:focus-within { transform: none; }
  .package:hover .price, .package:focus-within .price { transform: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .nav a.link, .nav a.link::after, .menu-toggle span, .button { transition: none; }
}
