/* ============================================================
   Ever After by Kate — site styles
   Rose palette · animated roses background
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Tenor+Sans&family=Cormorant+SC:wght@400;500;600;700&display=swap');

:root {
  /* Rose palette */
  --blush:        #e8c2c4;
  --blush-soft:   #f4dadb;
  --blush-deep:   #c79b9f;
  --rose-bg:      #f7e7e8;
  --rose-bg-alt:  #f0d4d6;
  --rose-deep:    #b88086;
  --cream:        #f4eee0;
  --cream-soft:   #faf6ec;
  --cocoa:        #3b211d;
  --cocoa-soft:   #5b3f3a;
  --mauve:        #8b6f6c;
  --ink:          #2a1614;

  --bg:           var(--rose-bg);
  --bg-alt:       var(--rose-bg-alt);
  --bg-deep:      var(--cocoa);
  --surface:      #ffffff;
  --fg:           var(--cocoa);
  --fg-muted:     var(--mauve);
  --line:         #e0c8cb;
  --accent:       var(--rose-deep);
  --accent-fg:    #ffffff;
  --on-deep:      #f4dedf;
  --on-deep-soft: #d9b4b6;

  /* Type */
  --f-script:  'Pinyon Script', 'Allura', cursive;
  --f-display: 'Tenor Sans', 'Cormorant Garamond', serif;
  --f-eyebrow: 'Cormorant SC', 'Tenor Sans', serif;
  --f-serif:   'Cormorant Garamond', 'Times New Roman', serif;
  --f-body:    'Cormorant Garamond', Georgia, serif;

  /* Shape */
  --r-pill: 999px;
  --r-card: 4px;
  --shadow-sm: 0 1px 2px rgba(59,33,29,0.04), 0 4px 12px rgba(59,33,29,0.04);
  --shadow-md: 0 8px 24px rgba(59,33,29,0.08);
  --shadow-lg: 0 24px 60px rgba(59,33,29,0.14);
  --t: 220ms cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================ Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================ Layout */
.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ============================================================ Type */
.script {
  font-family: var(--f-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--f-eyebrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cocoa);
}
/* Scoped to the "A Glimpse of the Magic" content-section eyebrow only —
   not the shared .eyebrow used sitewide. */
.content-eyebrow { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

/* ============================================================ Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 18px 0;
  /* Only paint-cheap properties transition; padding (layout) and
     backdrop-filter (blur repaint) snap — this fires mid-scroll. */
  transition: background var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-inner-centered {
  justify-content: center;
  position: relative;
}
.nav-inner-centered .menu-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-link {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding: 6px 0;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after { transform: scaleX(1); }
}
.nav-link-cta {
  padding: 10px 24px;
  border: 1px solid var(--fg);
  border-radius: var(--r-pill);
  transition: background var(--t), color var(--t), transform 100ms var(--ease-out);
}
.nav-link-cta::after { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-link-cta:hover { background: var(--fg); color: var(--bg); }
}
.nav-link-cta:active { transform: scale(0.96); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: transform 100ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.92); }
.menu-btn svg { width: 26px; height: 26px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), border-color var(--t), transform 100ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: var(--bg-alt); }
}
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 16px; height: 16px; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  transform: translateY(-100%);
  /* visibility flips after the slide-out finishes so closed-drawer links
     leave the tab order without cutting the exit animation short */
  visibility: hidden;
  transition: transform var(--t), visibility 0s 220ms;
}
.drawer.open {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--t), visibility 0s;
}
.drawer-head { display: flex; justify-content: flex-end; align-items: center; }
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.drawer-links a {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 100ms var(--ease-out);
}
.drawer-links a:active { opacity: 0.45; }
.drawer-link-cta {
  text-align: center;
  margin-top: 10px;
  border: 1px solid var(--fg) !important;
  border-radius: var(--r-pill);
  padding: 16px 0 !important;
}

/* ============================================================ Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  background:
    radial-gradient(ellipse at 20% 20%, color-mix(in srgb, var(--blush) 60%, transparent), transparent 50%),
    radial-gradient(ellipse at 80% 80%, color-mix(in srgb, var(--blush-soft) 80%, transparent), transparent 60%),
    var(--bg);
}
.hero-inner {
  text-align: center;
  position: relative;
  z-index: 2;
  display: grid;
  gap: 28px;
  justify-items: center;
}
.hero-title {
  font-family: var(--f-script);
  font-size: clamp(40px, 9vw, 130px);
  white-space: nowrap;
  color: var(--fg);
  line-height: 0.95;
  margin: -2px 0;
}
.hero-sub {
  font-family: var(--f-eyebrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.btn {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.btn:active { transform: scale(0.97); transition-duration: 100ms; }
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:disabled:hover,
.btn:disabled:active {
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { background: var(--fg); color: var(--bg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
  z-index: 2;
}
.scroll-indicator .line {
  width: 1px;
  height: 36px;
  background: currentColor;
  opacity: 0.5;
}
@keyframes bob {
  0%,100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%     { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================================ About */
.about {
  background: var(--blush-soft);
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-script {
  font-family: var(--f-script);
  font-size: clamp(64px, 10vw, 128px);
  color: var(--fg);
  line-height: 0.9;
  margin-bottom: 32px;
}
.about-body p {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--fg);
}
.about-body em { color: var(--fg-muted); font-style: italic; }
.about-photo {
  aspect-ratio: 4/5;
  background: var(--blush);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-photo-figure { margin: 0; }
.about-photo-credit {
  margin-top: 8px;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  opacity: 0.7;
}
.about-photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
  transition: color var(--t);
}
.about-photo-credit a:hover { color: var(--fg); }

/* ============================================================ Pricing */
.pricing { background: var(--bg); position: relative; }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 80px;
}
.section-head .eyebrow { color: var(--cocoa); }
.section-head .display {
  font-size: clamp(40px, 6vw, 80px);
}
.section-head .lede {
  max-width: 560px;
  font-family: var(--f-serif);
  font-size: 19px;
  font-style: italic;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.tier {
  background: var(--bg);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  transition: background var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .tier:hover { background: var(--bg-alt); }
}
.tier-name {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  line-height: 1;
}
.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}
.tier-list li {
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.4;
  padding-left: 24px;
  position: relative;
  color: var(--fg);
}
.tier-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 1px;
  background: var(--accent);
}
.tier-list li em {
  display: block;
  font-style: italic;
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 4px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.tier-price .label {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tier-price .price {
  font-family: var(--f-display);
  font-size: 36px;
  letter-spacing: 0.04em;
  color: var(--fg);
}
.tier-featured { background: var(--blush-soft); }
.tier-featured .badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--f-display);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 6px 12px;
  border-radius: var(--r-pill);
}

.tier-note {
  margin-top: 24px;
  text-align: center;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}

.addons { margin-top: 96px; position: relative; z-index: 1; }
.addons-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.addons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.addons-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
  transition: transform var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .addons-list li:hover { transform: translateX(12px); }
}
.addons-list .name {
  font-family: var(--f-serif);
  font-size: 19px;
  color: var(--fg);
}
.addons-list .price {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.addons-cta {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t), color var(--t), border-color var(--t), transform 100ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .addons-cta:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.addons-cta:active { transform: scale(0.96); }
@media (max-width: 480px) {
  .addons-list li { flex-wrap: wrap; }
  .addons-cta { font-size: 10px; padding: 8px 14px; }
}

/* ============================================================ Reels */
.reels-section {
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}
.reels-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in srgb, var(--blush) 30%, transparent), transparent 50%),
    radial-gradient(ellipse at 70% 80%, color-mix(in srgb, var(--blush-soft) 40%, transparent), transparent 60%);
  pointer-events: none;
}
.reels-note {
  text-align: center;
  font-family: var(--f-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--fg-muted);
  margin-top: 48px;
}
.reels-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .reels-note a:hover { color: var(--fg); }
}

/* ---- Content tabs ---- */
.content-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.content-tab {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), transform 100ms var(--ease-out);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .content-tab:hover { border-color: var(--fg); color: var(--fg); }
}
.content-tab:active { transform: scale(0.96); }
.content-tab.active { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* ---- Couple cards ---- */
.weddings-list { display: flex; flex-direction: column; gap: 64px; }
.couple-card {
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.couple-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.couple-tag {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.couple-name {
  font-family: var(--f-script);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
}
.couple-reel-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: background var(--t), color var(--t), border-color var(--t), transform 100ms var(--ease-out);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .couple-reel-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.couple-reel-link:active { transform: scale(0.96); }
.couple-media {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.couple-hero {
  aspect-ratio: 16/9;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  position: relative;
  min-width: 0;
  min-height: 0;
}
.couple-hero video,
.couple-hero image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.couple-hero video { object-fit: cover; }
.couple-reel-thumb {
  position: absolute;
  inset: 0;
  display: block;
}
.couple-reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .couple-reel-thumb:hover img { transform: scale(1.04); }
}
.couple-reel-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}
.couple-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.couple-slots image-slot,
.couple-slots video {
  flex: 1;
  min-height: 80px;
  border-radius: var(--r-card);
  overflow: hidden;
  display: block;
}
.couple-slots video {
  width: 100%;
  object-fit: cover;
}

/* ---- Video-only couples: equal portrait tiles, not a hero+sidebar ---- */
/* This footage is shot vertically (phone/Reels aspect); a 4/5 tile shows
   far more of the real frame than forcing it into a 16/9 hero would. */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 400px));
  justify-content: center;
  gap: 14px;
}
.reel-tile {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
  min-height: 0;
}
.reel-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 480px) {
  .reel-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---- Couple photos: candid filmstrip below the video reel ---- */
.couple-photos-block { margin-top: 28px; }
.couple-photos-label {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.couple-photos {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin: 0 -2px;
  padding-left: 2px;
  /* Few photos: center them so the strip doesn't look lopsided against
     empty space. Many photos: fall back to flex-start so the overflow
     scrolls from the beginning instead of clipping the first tile.
     `safe center` gives us both from one declaration; browsers that don't
     support it keep the flex-start fallback above. */
  justify-content: flex-start;
  justify-content: safe center;
  padding-right: 2px;
}
.couple-photos::-webkit-scrollbar { display: none; }
.couple-photo {
  position: relative;
  flex: 0 0 auto;
  width: 190px;
  aspect-ratio: 4/5;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}
.couple-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 540px) {
  .couple-photo { width: 148px; }
  .couple-photos-block { margin-top: 20px; }
}

/* ---- Photo lightbox ---- */
/* Gallery tiles double as buttons that open the lightbox — strip the
   native button chrome so they keep their tile styling. */
.photo-zoom {
  appearance: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 18, 16, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: lightbox-in 0.18s ease-out;
  /* Keep controls clear of notches / home indicators on phones. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
@keyframes lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.lightbox-close,
.lightbox-arrow {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  transition: background var(--t);
  z-index: 1;
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: max(12px, env(safe-area-inset-left)); }
.lightbox-next { right: max(12px, env(safe-area-inset-right)); }
.lightbox-count {
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.75);
}
/* On phones the side arrows crowd a portrait photo — swiping is the
   primary gesture there, so tuck the arrows lower and smaller. */
@media (max-width: 540px) {
  .lightbox-arrow {
    top: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: none;
    width: 40px;
    height: 40px;
  }
  .lightbox-img {
    max-width: 100vw;
    max-height: calc(100dvh - 88px);
  }
}

/* ---- Film Photos ---- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.film-slot-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.film-slot-inner {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 2px;
  overflow: hidden;
  background: oklch(88% 0.03 30);
  box-shadow: var(--shadow-sm);
}
.film-slot-inner image-slot,
.film-slot-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* grain overlay for film aesthetic */
.film-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0.55;
  border-radius: 2px;
}
.film-slot-number {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-muted);
  text-align: center;
  padding-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .couple-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .couple-slots { flex-direction: row; }
  .couple-slots image-slot,
  .couple-slots video { min-height: 120px; }
  .film-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .couple-media { grid-template-columns: minmax(0, 1fr); }
  .couple-hero { aspect-ratio: 4/3; }
  .couple-slots { flex-direction: row; gap: 8px; }
  .couple-slots image-slot,
  .couple-slots video { min-height: 90px; }
  .film-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .content-tab { padding: 10px 16px; font-size: 10px; }
  .weddings-list { gap: 48px; }
}

/* ---- Featured film ---- */
.film-feature {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.film-frame {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #1a1210;
  aspect-ratio: 9/16;
}
.film-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-copy .film-eyebrow {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.film-title {
  font-family: var(--f-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}
.film-title .script {
  font-family: var(--f-script);
  font-size: 1.2em;
  color: var(--accent);
}
.film-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin-bottom: 18px;
  max-width: 52ch;
}
.film-copy .film-note {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--fg);
}
.film-copy .btn { margin-top: 10px; }

@media (max-width: 860px) {
  .film-feature {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 72px;
  }
  .film-frame {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}

/* ============================================================ Save the date */
.save {
  background: var(--bg-deep);
  color: var(--on-deep);
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
}
.save-inner {
  text-align: center;
  display: grid;
  gap: 24px;
  justify-items: center;
  position: relative;
  z-index: 1;
}
.save-title {
  font-family: var(--f-script);
  font-size: clamp(64px, 12vw, 168px);
  color: var(--accent);
  line-height: 0.95;
}
.save-sub {
  font-family: var(--f-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--on-deep);
  max-width: 520px;
  line-height: 1.55;
}

.form {
  background: var(--cream-soft);
  color: var(--cocoa);
  width: min(720px, 100%);
  margin-inline: auto;
  margin-top: 48px;
  padding: 56px;
  border-radius: 2px;
  text-align: left;
  box-shadow: var(--shadow-lg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mauve);
}
.field input,
.field select,
.field textarea {
  font-family: var(--f-serif);
  font-size: 17px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--cocoa);
  outline: none;
  transition: border-color var(--t);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cocoa);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--cocoa);
  outline-offset: 3px;
}
.field-error input,
.field-error select,
.field-error textarea,
.field-error input:focus,
.field-error select:focus,
.field-error textarea:focus {
  border-color: #a04848;
}
.field-error input:focus-visible,
.field-error select:focus-visible,
.field-error textarea:focus-visible {
  outline-color: #a04848;
}
.field textarea { resize: vertical; min-height: 100px; }
.field.full { grid-column: 1 / -1; }

.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.form-foot small {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--mauve);
  font-size: 14px;
}
/* Reserve the idle label's width so swapping to "Sending…" doesn't
   shrink the button under the visitor's thumb mid-press. */
.form-foot .btn { min-width: 240px; justify-content: center; }
.form-success {
  text-align: center;
  padding: 32px 0;
  animation: success-in 400ms var(--ease-out) both;
}
.form-success .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: success-check-in 400ms var(--ease-out) 120ms both;
}
@keyframes success-in {
  from { opacity: 0; transform: scale(0.97); }
}
@keyframes success-check-in {
  from { opacity: 0; transform: scale(0.85); }
}
.form-success .check svg { width: 24px; height: 24px; color: var(--cocoa); }
.form-success h3 {
  font-family: var(--f-script);
  font-size: 56px;
  color: var(--cocoa);
  line-height: 1;
  margin-bottom: 12px;
}
.form-success p { font-style: italic; color: var(--mauve); }

/* ============================================================ Footer */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.footer-brand {
  font-family: var(--f-script);
  font-size: 56px;
  line-height: 1;
  color: var(--fg);
  margin-bottom: 12px;
}
.footer-tag {
  font-family: var(--f-serif);
  font-style: italic;
  color: var(--fg-muted);
  font-size: 16px;
  max-width: 260px;
}
.footer h4 {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-family: var(--f-serif);
  font-size: 16px;
  color: var(--fg-muted);
  transition: color var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .footer ul a:hover { color: var(--fg); }
}
.socials { display: flex; gap: 14px; margin-top: 8px; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  position: relative;
  transition: background var(--t), color var(--t), transform var(--t);
}
/* Invisible hit-area extension: 38px visual circle, 44px touch target */
.social-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
}
@media (hover: hover) and (pointer: fine) {
  .social-btn:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); }
}
.social-btn:active { transform: scale(0.92); transition-duration: 100ms; }
.social-btn svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-credit {
  color: var(--fg-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color var(--t), border-color var(--t);
}
@media (hover: hover) and (pointer: fine) {
  .footer-credit:hover { color: var(--fg); border-color: var(--fg); }
}

/* ============================================================ Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 90ms; }
.reveal.delay-2 { transition-delay: 180ms; }
.reveal.delay-3 { transition-delay: 270ms; }
.reveal.delay-4 { transition-delay: 360ms; }

/* ============================================================ Placeholder imagery */
.ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(59,33,29,0.5);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(59,33,29,0.06) 14px 15px
    ),
    var(--blush);
}
.ph.cocoa {
  color: rgba(244,222,223,0.6);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 14px,
      rgba(255,255,255,0.05) 14px 15px
    ),
    var(--cocoa);
}
.ph span {
  background: rgba(255,255,255,0.7);
  padding: 6px 12px;
  border-radius: 2px;
}
.ph.cocoa span { background: rgba(0,0,0,0.35); }

/* ============================================================ My Work */
.work-page {
  background: var(--bg);
  padding-top: clamp(140px, 18vw, 200px);
  min-height: 100vh;
}
.work-head { margin-bottom: 64px; }

.work-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  padding-bottom: 32px;
}
.work-tile {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 4/3;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--blush);
  display: block;
  box-shadow: var(--shadow-sm);
}
.work-tile-wide {
  grid-column: span 6;
  aspect-ratio: 21/9;
}
.work-tile-media {
  position: absolute;
  inset: 0;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .work-tile:hover .work-tile-media { transform: scale(1.05); }
}
.work-tile-media image-slot,
.work-tile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-tile-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,22,20,0.55), rgba(42,22,20,0.08) 55%, transparent);
  transition: background var(--t);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .work-tile:hover .work-tile-veil {
    background: linear-gradient(to top, rgba(42,22,20,0.68), rgba(42,22,20,0.18) 60%, rgba(42,22,20,0.05));
  }
}
.work-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.work-tile-script {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1;
  text-shadow: 0 2px 24px rgba(42,22,20,0.4);
}
.work-tile-cta {
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t), transform var(--t);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  padding-bottom: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .work-tile:hover .work-tile-cta { opacity: 0.95; transform: translateY(0); }
}

.work-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-display);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-bottom: 40px;
  transition: background var(--t), color var(--t), border-color var(--t), transform 100ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .work-back:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
}
.work-back:active { transform: scale(0.96); }

/* Super 8 coming soon */
.super8-soon { display: flex; justify-content: center; padding-bottom: 32px; }
.super8-frame {
  position: relative;
  width: min(720px, 100%);
  background: var(--cocoa);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.super8-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: clamp(64px, 9vw, 112px) 32px;
}
.super8-eyebrow { color: var(--on-deep-soft); }
.super8-script {
  font-size: clamp(56px, 9vw, 104px);
  color: var(--on-deep);
  line-height: 0.95;
}
.super8-copy {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-deep-soft);
  max-width: 44ch;
  margin: 0;
}
.super8-frame .btn-ghost { border-color: var(--on-deep-soft); color: var(--on-deep); }
@media (hover: hover) and (pointer: fine) {
  .super8-frame .btn-ghost:hover { background: var(--on-deep); color: var(--cocoa); }
}
.super8-frame .film-grain { opacity: 0.8; mix-blend-mode: screen; }

@media (max-width: 720px) {
  .work-tiles { grid-template-columns: 1fr; gap: 14px; }
  .work-tile, .work-tile-wide { grid-column: span 1; aspect-ratio: 3/2; }
}

/* ============================================================ Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .tier-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .form { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}

/* ============================================================ Scroll hearts */
.scroll-hearts-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
}
.scroll-heart {
  position: absolute;
  top: 100%;
  color: var(--accent);
  opacity: 0;
  transform: translate(var(--drift, 0), 0) scale(var(--scale, 1));
  animation: scroll-heart-rise 1400ms var(--ease-out) forwards;
}
@keyframes scroll-heart-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(var(--scale, 1)); }
  12% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(var(--drift, 0), -60vh) scale(var(--scale, 1)); }
}

/* ============================================================ Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    transform: none;
    transition: opacity 250ms ease;
  }
  .scroll-indicator { animation: none; }
  .scroll-hearts-layer { display: none; }
  /* keep the fade, drop the scale movement */
  .form-success, .form-success .check { animation: reduced-fade-in 250ms ease both; }
}
@keyframes reduced-fade-in {
  from { opacity: 0; }
}
