:root {
  --bg: #f7f4ee;
  --bg-2: #efeae1;
  --ink: #1a1816;
  --muted: #6e675e;
  --line: #e0d9cc;
  --accent: #9a7b55;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h3 { font-size: 1.6rem; }
em { font-style: normal; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.eyebrow {
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.lede { max-width: 60ch; margin: 0 auto 2rem; font-size: 1.1rem; }

/* cross-page fade (Chrome + Safari; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms ease-out both fade-out; }
::view-transition-new(root) { animation: 320ms ease-in both fade-in; }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* nav: transparent over the hero, solid once scrolled */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  transition: background .2s, border-color .2s, color .2s;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
header.solid, body:not(.has-hero) header {
  background: linear-gradient(to bottom, rgba(247, 244, 238, .85), rgba(247, 244, 238, .55));
  backdrop-filter: blur(10px);
  border-color: var(--line);
}
body.has-hero header:not(.solid) { color: #fff; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .02em; }
nav { display: flex; gap: 1.8rem; }
nav a {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .7; padding: 6px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}
nav a:hover, nav a[aria-current] { opacity: 1; border-color: currentColor; }
body:not(.has-hero) main { padding-top: 72px; }
@media (max-width: 760px) {
  header .wrap { height: auto; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; padding-bottom: 10px; }
  nav { gap: 1rem; width: 100%; overflow-x: auto; scrollbar-width: none; }
  body:not(.has-hero) main { padding-top: 88px; }
}

/* buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 1px solid currentColor;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link:hover { color: var(--accent); }

/* hero: one still photo */
.hero { position: relative; height: 100svh; min-height: 560px; background: #26221e; overflow: hidden; color: #fff; }
.hero .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.8s ease;
}
.hero .slide.on { opacity: 1; }
.hero .slide img, .hero .slide picture { width: 100%; height: 100%; object-fit: cover; object-position: 100% 0; }
.hero .slide picture { display: block; }
.hero .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .25), transparent 30%),
    linear-gradient(to top, rgba(12, 10, 8, .45), transparent 50%);
}
.hero .over {
  position: absolute; inset: 0;
  display: grid; align-content: end;
  padding-bottom: clamp(3rem, 9vh, 7rem);
}
.hero .over { text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.hero .eyebrow { color: rgba(255, 255, 255, .8); margin: 0 0 1.8rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.hero h1 { max-width: 12ch; margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero h1 em { color: #fff; font-weight: 300; }
.hero .sub { max-width: 44ch; color: rgba(255, 255, 255, .85); font-size: 1.05rem; margin-bottom: 1.8rem; }
.hero .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (orientation: portrait) {
  .hero { height: min(100svh, 165vw); min-height: 0; }
  .hero .slide img { transform: scale(1.15); transform-origin: top right; }
  /* phones: copy sits up in the sky, right-aligned, so it never lands on the couple */
  .hero .over { display: flex; padding-top: 12rem; padding-bottom: 2.5rem; text-align: right; }
  .hero .over .wrap { display: flex; flex-direction: column; align-items: flex-end; flex: 1; }
  .hero .btn { margin-top: auto; }
  .hero .eyebrow { display: none; } /* just the headline + button; the copy landed on the bride */
  .hero .shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, .18) 40%, transparent 60%); }
}

/* hero text: one quiet fade */
.hero .over { opacity: 0; animation: rise 1.2s var(--ease) .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveals */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

section { padding: clamp(4rem, 9vw, 8rem) 0; }
section + section { padding-top: 0; }

.shot { display: block; overflow: hidden; background: var(--bg-2); position: relative; }
.shot img { width: 100%; height: auto; transition: transform 1.2s var(--ease), opacity .8s; opacity: 0; }
.shot img.loaded { opacity: 1; }
.shot:hover img { transform: scale(1.03); }


/* chapter cards */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
@media (max-width: 760px) { .chapters { grid-template-columns: 1fr; } }
.chapter { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-2); color: #fff; }
.chapter img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.chapter:hover img { transform: scale(1.06); }
.chapter .label {
  position: absolute; inset: 0; display: grid; align-content: end; padding: 1.8rem;
  background: linear-gradient(to top, rgba(10, 8, 6, .72), transparent 55%);
}
.chapter h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0; transition: transform .5s var(--ease); }
.chapter .go { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); margin-top: .5rem; }
.chapter:hover h3 { transform: translateY(-4px); }
.chapter:hover .go { opacity: .9; transform: none; }


/* closing CTA */
.cta { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; background: #26221e; padding: 6rem 0; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.02); transition: transform 8s linear; }
.cta.in img { transform: scale(1.1); }
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.cta .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* portfolio */
.tabs { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; margin: 0 0 3rem; }
.tabs button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.grid { display: flex; gap: 18px; }
.grid .col { flex: 1; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.empty { text-align: center; color: var(--muted); padding: 4rem 0; font-family: var(--serif); font-size: 1.4rem; }

dialog.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.lb::backdrop { background: rgba(14, 12, 10, .96); }
.lb img { position: absolute; inset: 0; margin: auto; max-width: min(94vw, 1700px); max-height: 90vh; width: auto; height: auto; object-fit: contain; animation: fade-in .35s ease; }
.lb button {
  position: absolute; z-index: 1; background: none; border: 0; color: #fff; cursor: pointer;
  font: 200 2.8rem/1 var(--sans); padding: 1.2rem; opacity: .6; transition: opacity .2s;
}
.lb button:hover { opacity: 1; }
.lb .prev { left: 0; top: 50%; transform: translateY(-50%); }
.lb .next { right: 0; top: 50%; transform: translateY(-50%); }
.lb .close { right: 0; top: 0; font-size: 2rem; }
.lb .count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #9a948b; font-size: .74rem; letter-spacing: .18em; }

/* pricing */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); padding: 2.2rem 1.9rem; background: #fff; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(40, 30, 20, .35); }
.card h3 { margin-bottom: .1em; }
.card .price { font-family: var(--serif); font-size: 2.4rem; margin: auto 0 .2rem; padding-top: .8rem; }
.card .price small { font: 400 .9rem var(--sans); color: var(--muted); }
.card ul { padding: 0; margin: 1rem 0 0; list-style: none; color: var(--muted); font-size: .95rem; }
.card li { padding: .5rem 0; border-top: 1px solid var(--line); }
.card li:first-child { border-top: 0; }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.addons h3 { font-size: 1.4rem; font-weight: 600; }
.fine { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 3.5rem; }

/* about + contact */
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.two .portrait { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; font-size: 1.25rem; }
.contact-list li { padding: .9rem 0; border-top: 1px solid var(--line); display: flex; gap: 1rem; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span { width: 6.5rem; flex: none; color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding-top: .45rem; }
.contact-list a:hover { color: var(--accent); }
.pdf { width: 100%; height: 80vh; border: 1px solid var(--line); background: #fff; }

footer { border-top: 1px solid var(--line); padding: 3rem 0; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero .over { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
