/* ==========================================================================
   Kellar Weddings & Events — kellarweddings.com
   Quiet-luxury editorial theme. Mobile-first.
   ========================================================================== */

:root {
  --ink: #1d1a16;
  --ink-2: #2a251f;
  --ivory: #fbf8f3;
  --stone: #f3eee5;
  --sand: #e8dfd0;
  --gold: #b08d57;
  --gold-deep: #8a6a3a;
  --gold-soft: #d9c39b;
  --muted: #6d655b;
  --line: #e2d8c7;
  --white: #fff;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 140px);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
ul { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.75rem, 7.2vw, 5.9rem); font-weight: 300; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 300; }
h3 { font-size: clamp(1.55rem, 2.4vw, 1.95rem); }
h4 {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 1.8em 0 .9em;
}
em, .italic { font-style: italic; }
h1 em, h2 em { color: var(--gold); font-weight: 300; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--ink); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow::after, .eyebrow--both::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 680px; }
.center .lede { margin-inline: auto; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-head .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.small { font-size: .86rem; color: var(--muted); }
.fine { font-size: .8rem; color: var(--muted); line-height: 1.65; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-radius: 0;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { --bg: var(--gold-deep); --bd: var(--gold-deep); }
.btn--gold { --bg: var(--gold); --bd: var(--gold); --fg: var(--white); }
.btn--gold:hover { --bg: var(--gold-deep); --bd: var(--gold-deep); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--white); --bd: var(--ink); }
.btn--light { --bg: transparent; --fg: var(--white); --bd: rgba(255,255,255,.7); }
.btn--light:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btn-row, .btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 6px; border-bottom: 1px solid var(--gold);
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow::after { content: "→"; font-size: 1rem; letter-spacing: 0; }
.link-arrow:hover { gap: 16px; color: var(--gold-deep); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--white);
  transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.topbar {
  border-bottom: 1px solid rgba(255,255,255,.18);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  max-height: 44px; overflow: hidden;
  transition: max-height .45s var(--ease), opacity .3s, border-color .45s;
}
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar a { text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; color: var(--gold-soft); }
.topbar__links { display: flex; gap: 26px; }
.header__main { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo__mark {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--serif); font-size: 1.55rem; font-style: italic; line-height: 1;
  position: relative;
}
.logo__mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid currentColor; border-radius: 50%; opacity: .35; }
.logo__text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 1.45rem; letter-spacing: .3em; line-height: 1; }
.logo__text small { font-family: var(--sans); font-size: .56rem; letter-spacing: .34em; text-transform: uppercase; margin-top: 7px; opacity: .85; }

.site-header.is-solid {
  background: rgba(251, 248, 243, .97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(40, 30, 15, .05);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header.is-solid .topbar { max-height: 0; opacity: 0; border-color: transparent; }

/* Nav — mobile first (dropdown panel under the header) */
.burger {
  position: relative; z-index: 3;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: inherit; cursor: pointer;
  display: grid; place-content: center; gap: 5px;
}
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-open .site-header { background: var(--ivory); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
body.menu-open::after {
  content: ""; position: fixed; inset: 0; z-index: 99;
  background: rgba(29, 26, 22, .45);
}

.nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  background: var(--ivory); color: var(--ink);
  padding: 6px var(--gutter) 22px;
  box-shadow: 0 18px 30px rgba(30, 22, 10, .12);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 40px); max-height: calc(100svh - var(--header-h) - 40px);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
.nav__list { list-style: none; padding: 0; }
.nav__list > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.nav__list > li > a {
  flex: 1; padding: 11px 0;
  font-size: 1rem; letter-spacing: .04em; text-decoration: none;
}
.nav__list a[aria-current="page"] { color: var(--gold-deep); }
.sub-toggle {
  width: 44px; height: 44px; margin-right: -12px; background: none; border: 0; color: inherit; cursor: pointer;
  display: grid; place-items: center;
}
.sub-toggle svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { list-style: none; padding: 0 0 10px 14px; width: 100%; display: none; }
.sub.is-open { display: block; }
.sub a { display: block; padding: 8px 0; font-size: .9rem; text-decoration: none; color: var(--muted); }
.sub a:hover { color: var(--gold-deep); }
.nav__cta { margin-top: 18px; justify-content: center; }
.nav__extra { display: none; }

@media (min-width: 1080px) {
  .burger, .nav__extra { display: none; }
  .nav {
    position: static; inset: auto; padding: 0; background: none; color: inherit; box-shadow: none;
    flex-direction: row; align-items: center; gap: 34px;
    max-height: none; opacity: 1; visibility: visible; overflow: visible; transform: none;
  }
  .nav__list { display: flex; gap: 30px; }
  .nav__list > li { border: 0; position: relative; flex-wrap: nowrap; }
  .nav__list > li > a {
    padding: 8px 0;
    font-family: var(--sans); font-size: .74rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
    position: relative;
  }
  .nav__list > li > a::after {
    content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 100%;
    background: var(--gold); transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .nav__list > li > a:hover::after, .nav__list > li > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__list a[aria-current="page"] { color: inherit; }
  .sub-toggle { width: 22px; height: 30px; margin-right: 0; }
  .sub-toggle svg { width: 10px; height: 10px; }
  .sub {
    display: block; position: absolute; top: calc(100% + 14px); left: -26px; width: 270px;
    background: var(--ivory); color: var(--ink); padding: 14px 0;
    box-shadow: 0 24px 50px rgba(30, 22, 10, .14); border-top: 2px solid var(--gold);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .sub::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .sub.is-open { opacity: 1; visibility: visible; transform: none; }
  .sub a { color: var(--ink); padding: 10px 26px; font-size: .72rem; }
  .sub a:hover { background: var(--stone); color: var(--gold-deep); }
  .nav__cta { margin: 0; min-height: 46px; padding: 0 24px; }
  .site-header:not(.is-solid) .nav__cta { --bg: transparent; --bd: rgba(255,255,255,.75); --fg: var(--white); }
  .site-header:not(.is-solid) .nav__cta:hover { --bg: var(--white); --fg: var(--ink); --bd: var(--white); }
}
@media (max-width: 1079px) { .topbar { display: none; } :root { --header-h: 70px; } }
@media (max-width: 420px) {
  .logo__text { font-size: 1.2rem; letter-spacing: .24em; }
  .logo__mark { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-align: center; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 60px) 0 110px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-out both; }
.hero__media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: #000; transition: opacity .3s ease; }
.hero__media:has(video) { background: #0d0c0b; } /* the dip goes to dark, not to the ivory page */
.hero__media video.is-looping { opacity: .35; } /* soft dip as the short pan loops */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18,14,10,.55) 0%, rgba(18,14,10,.28) 38%, rgba(18,14,10,.62) 100%);
}
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { max-width: 1000px; margin-inline: auto; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero h1 em { color: var(--gold-soft); }
.hero .lede { color: rgba(255,255,255,.88); margin: 22px auto 0; max-width: 640px; }
.hero .btn-row { justify-content: center; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; opacity: .85;
}
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--white), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Inner page hero */
.page-hero { min-height: 68vh; min-height: 68svh; padding-bottom: 80px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.crumbs { margin-top: 22px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--stone { background: var(--stone); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--ink .eyebrow { color: var(--gold-soft); }
.section--ink .lede, .section--ink .small, .section--ink .fine { color: rgba(251,248,243,.7); }
.section--tight { padding-block: clamp(48px, 7vw, 80px); }

/* Pillars */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillar { padding: 40px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.pillar:last-child { border-bottom: 0; }
.pillar svg { width: 38px; height: 38px; color: var(--gold); margin: 0 auto 18px; stroke-width: 1; }
.pillar h3 { font-size: 1.6rem; margin-bottom: .3em; }
.pillar p { color: var(--muted); max-width: 320px; margin: 0 auto; font-size: .95rem; }
@media (min-width: 820px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-bottom: 0; border-right: 1px solid var(--line); padding: 54px 34px; }
  .pillar:last-child { border-right: 0; }
}

/* Split (image + text) */
.split { display: grid; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media .inset {
  position: absolute; width: 46%; right: -6%; bottom: -10%;
  aspect-ratio: 3 / 4; border: 10px solid var(--ivory); box-shadow: 0 30px 60px rgba(30,20,8,.15);
}
.section--stone .split__media .inset { border-color: var(--stone); }
.split__media .frame { position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: -1; }
.split__media { z-index: 0; }
.stat-row { display: flex; gap: clamp(22px, 5vw, 40px); margin: 34px 0 6px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 300; line-height: 1; color: var(--gold-deep); }
.stat span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--rev .split__media { order: 2; }
  .split--wide { grid-template-columns: 1.1fr .9fr; }
}
@media (max-width: 899px) { .split__media .inset { display: none; } .split__media { margin-right: 22px; } }

/* Service cards */
.cards { display: grid; gap: 30px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); display: flex; flex-direction: column;
  text-decoration: none; color: inherit; position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(40, 28, 12, .1); }
.card__img { overflow: hidden; aspect-ratio: 4 / 3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { padding: 30px 30px 34px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.card__body p { color: var(--muted); font-size: .95rem; }
.card__body .link-arrow { margin-top: auto; align-self: flex-start; }
.card__price { font-family: var(--serif); font-size: 1.25rem; color: var(--gold-deep); font-style: italic; margin: -4px 0 12px; }
.section--stone .card { background: var(--ivory); }

/* Values */
.values { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--ivory); padding: clamp(36px, 5vw, 64px); }
.value__num { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--gold-soft); font-style: italic; }
.value h3 { margin-top: 10px; }
.value p { color: var(--muted); margin: 0; }
@media (min-width: 820px) { .values { grid-template-columns: repeat(2, 1fr); } }

/* Steps */
.steps { display: grid; gap: 34px; counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.section:not(.section--ink) .step { border-top-color: var(--line); }
.step__num { font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 14px; }
.step p { margin: 0; opacity: .85; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 50px; } }

/* Mosaic / image grid */
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.mosaic a, .mosaic figure { margin: 0; overflow: hidden; position: relative; display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; transition: transform 1.2s var(--ease), filter .6s; }
.mosaic a:hover img { transform: scale(1.06); }
.mosaic .tall img { aspect-ratio: auto; }
.mosaic .tall { grid-row: span 2; }
@media (min-width: 820px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mosaic .wide { grid-column: span 2; }
  .mosaic .wide img { aspect-ratio: auto; }
}

/* Gallery page */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter {
  background: none; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
  padding: 11px 20px; font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--gold); }
.filter.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.masonry { columns: 2 160px; column-gap: 8px; }
.masonry figure { margin: 0 0 8px; break-inside: avoid; overflow: hidden; position: relative; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.05); }
.masonry figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px;
  background: linear-gradient(transparent, rgba(15,12,8,.7)); color: var(--white);
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0; transition: opacity .4s;
}
.masonry figure:hover figcaption { opacity: 1; }
.masonry figure.is-hidden { display: none; }
@media (min-width: 820px) { .masonry { columns: 3; } }
@media (min-width: 1180px) { .masonry { columns: 4; } }
@media (hover: none) { .masonry figcaption { opacity: 1; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(14,11,8,.95);
  display: flex; align-items: center; justify-content: center; padding: 60px 16px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 84vh; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); cursor: pointer; font-family: var(--serif); line-height: 1; padding: 12px; }
.lb-close { top: 12px; right: 14px; font-size: 2.6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 3rem; opacity: .75; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lightbox button:hover { opacity: 1; color: var(--gold-soft); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .25em; }

/* CTA band */
.cta-band {
  position: relative; isolation: isolate; color: var(--white); text-align: center;
  padding-block: clamp(100px, 14vw, 180px); overflow: hidden;
}
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(20,15,10,.58); z-index: -1; }
.cta-band .eyebrow { color: var(--gold-soft); }
.cta-band .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.cta-band .lede { color: rgba(255,255,255,.85); margin-inline: auto; }
.cta-band h2 { max-width: 820px; margin-inline: auto; }

/* Reviews / note card */
.note-card {
  max-width: 820px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); padding: clamp(40px, 6vw, 70px) clamp(24px, 6vw, 70px);
  position: relative; background: var(--ivory);
}
.note-card::before {
  content: "\201C"; position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold); background: inherit; padding: 0 18px;
}
.section--stone .note-card { background: var(--stone); }
.note-card p { color: var(--muted); }

.notice {
  border-left: 2px solid var(--gold); background: var(--stone);
  padding: 22px 26px; font-size: .92rem; color: var(--muted); margin: 40px 0 0;
}
.notice strong { color: var(--ink); font-weight: 500; }
.section--stone .notice { background: var(--ivory); }

/* Pricing cards */
.prices { display: grid; gap: 24px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); } }
.price-card {
  background: var(--white); border: 1px solid var(--line); padding: 40px 32px 36px;
  display: flex; flex-direction: column; text-align: center; position: relative;
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 24px 50px rgba(40,28,12,.08); }
.price-card--feature { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.price-card--feature p { color: rgba(251,248,243,.72) !important; }
.price-card--feature .link-arrow { color: var(--ivory); }
.price-card__tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.price-card h3 { margin: 14px 0 6px; }
.price-card__amt { font-family: var(--serif); font-size: 3rem; font-weight: 300; line-height: 1.1; color: var(--gold-deep); margin: 8px 0 16px; }
.price-card--feature .price-card__amt { color: var(--gold-soft); }
.price-card__amt small { font-size: .9rem; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; vertical-align: middle; margin-right: 6px; color: var(--muted); }
.price-card p { color: var(--muted); font-size: .95rem; }
.price-card .link-arrow { margin: auto auto 0; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; padding: 5px 14px; white-space: nowrap;
}

/* Package details */
.pkg { background: var(--white); border: 1px solid var(--line); margin-top: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.pkg > summary {
  list-style: none; cursor: pointer; padding: clamp(26px, 4vw, 44px);
  display: grid; gap: 14px; align-items: center; position: relative; padding-right: 70px;
}
.pkg > summary::-webkit-details-marker { display: none; }
.pkg > summary::after {
  content: "+"; position: absolute; right: clamp(22px, 4vw, 40px); top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold); transition: transform .3s var(--ease);
}
.pkg[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.pkg__meta { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.pkg h3 { margin: 6px 0 8px; }
.pkg__intro { color: var(--muted); margin: 0; max-width: 640px; }
.pkg__price { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--gold-deep); line-height: 1; white-space: nowrap; }
.pkg__price small { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pkg__body { padding: 0 clamp(26px, 4vw, 44px) clamp(26px, 4vw, 44px); border-top: 1px solid var(--line); }
.pkg__cols { display: grid; gap: 10px 50px; }
@media (min-width: 860px) {
  .pkg > summary { grid-template-columns: 1fr auto; padding-right: 100px; }
  .pkg__cols { grid-template-columns: 1.35fr 1fr; }
}
.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-bottom: 1px solid var(--stone); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(-45deg); }
.ticks--dash li::before { width: 12px; height: 1px; border: 0; background: var(--muted); transform: none; top: 21px; }
.ticks--light li { border-color: rgba(255,255,255,.1); }

/* Specialty blocks */
.feature { display: grid; gap: 0; background: var(--white); margin-bottom: 30px; }
.feature__img { min-height: 300px; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(30px, 5vw, 60px); }
.feature__price { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-deep); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1.15fr; }
  .feature--rev .feature__img { order: 2; }
}

/* Culture band */
.culture { display: grid; gap: clamp(30px, 5vw, 70px); align-items: center; }
.culture__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.culture__imgs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.culture__imgs img:nth-child(2) { margin-top: 40px; }
@media (min-width: 900px) { .culture { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg);
  transition: transform .35s var(--ease), margin .35s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--muted); padding-bottom: 26px; margin: 0; max-width: 760px; }
.faq-group { margin-bottom: 70px; }
.faq-group > h3 { font-size: .74rem; font-family: var(--sans); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); max-width: 900px; margin: 0 auto 18px; }

/* Contact */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.contact-grid > *, .form-grid > *, .split > *, .cards > *, .prices > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.methods { display: grid; gap: 0; border-top: 1px solid var(--line); }
.method { padding: 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.method svg { width: 26px; height: 26px; color: var(--gold); margin-top: 4px; }
.method h4 { margin: 0 0 4px; }
.method p { margin: 0; }
.method a { text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.method a:hover { color: var(--gold-deep); }
.method .small { margin-top: 4px; }

.form { background: var(--white); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; color: var(--ink); }
.field label span { color: var(--muted); font-weight: 300; letter-spacing: .1em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 0;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; border: 1px solid var(--line); padding: 10px 16px; cursor: pointer;
  font-size: .78rem; letter-spacing: .06em; transition: all .25s; background: var(--ivory);
}
.chip input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 8px; }
@media (min-width: 640px) { .form .btn { width: auto; } }
.form-status { margin-top: 16px; font-size: .9rem; color: var(--gold-deep); }
.hp { position: absolute; left: -9999px; }

/* Instagram strip */
.insta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.insta a { position: relative; overflow: hidden; display: block; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease); }
.insta a:hover img { transform: scale(1.07); }
.insta a::after { content: ""; position: absolute; inset: 0; background: rgba(20,15,10,0); transition: background .4s; }
.insta a:hover::after { background: rgba(20,15,10,.25); }
@media (min-width: 820px) { .insta { grid-template-columns: repeat(6, 1fr); } }

/* Tags / pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill { border: 1px solid var(--line); padding: 8px 14px; font-size: .74rem; letter-spacing: .1em; }
.section--ink .pill { border-color: rgba(255,255,255,.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(251,248,243,.72); font-size: .92rem; }
.footer__top { display: grid; gap: 44px; padding-block: clamp(64px, 9vw, 100px) 50px; }
.site-footer .logo { color: var(--ivory); margin-bottom: 22px; }
.site-footer h4 { color: var(--gold-soft); margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--gold-soft); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; transition: border-color .3s, background .3s, color .3s;
}
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--white); }
.socials svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .76rem; letter-spacing: .04em; color: rgba(251,248,243,.5);
}
.to-top { color: rgba(251,248,243,.7); }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1020px) { .footer__top { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; } }

/* Mobile sticky action bar */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); box-shadow: 0 -10px 30px rgba(0,0,0,.15);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px;
  color: var(--ivory); text-decoration: none; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.mobile-bar a + a { background: var(--gold); color: var(--white); }
.mobile-bar svg { width: 16px; height: 16px; }
@media (min-width: 1080px) { .mobile-bar { display: none; } }
@media (max-width: 1079px) { .site-footer { padding-bottom: 56px; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .12s; }
.js .reveal-d2 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Chip labels live inside .field — undo the field-label styling */
.field .chip { display: inline-block; margin: 0; font-weight: 300; letter-spacing: normal; text-transform: none; }
.field .chip span { color: var(--ink); font-weight: 300; font-size: .82rem; letter-spacing: .04em; text-transform: none; }
.field .chip input:checked + span { color: var(--white); }
@media (max-width: 600px) {
  .hero .eyebrow { letter-spacing: .2em; font-size: .64rem; }
  .pkg > summary { padding-right: 54px; }
}

/* Social icon rows in different contexts */
.socials { flex-wrap: wrap; }
.topbar__in .socials { margin: 0; gap: 4px; }
.topbar .socials a { width: 28px; height: 28px; border: 0; }
.topbar .socials a:hover { background: none; color: var(--gold-soft); }
.topbar .socials svg { width: 14px; height: 14px; }
.topbar__in { gap: 26px; }
.topbar__in > span:first-child { margin-right: auto; }
.nav__extra .socials a { color: var(--ivory); }
.method .socials { margin-top: 14px; }
.socials--dark a, .method .socials a { border-color: var(--line); color: var(--ink); }
.socials--dark a:hover, .method .socials a:hover { color: var(--white); }
.btn svg { width: 16px; height: 16px; }
.site-footer li svg { width: 13px; height: 13px; display: inline-block; vertical-align: -1px; color: var(--gold-soft); margin-right: 4px; }
.method .socials { gap: 8px; flex-wrap: nowrap; }
.method .socials a { width: 38px; height: 38px; flex-shrink: 0; }
.method .socials svg { width: 15px; height: 15px; margin: 0; color: inherit; }
@media (max-width: 380px) { .method .socials { gap: 5px; } .method .socials a { width: 34px; height: 34px; } }

/* Brighter photos: deepen the overlay behind the headline */
.hero--bright::before {
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(18,14,10,.5) 0%, rgba(18,14,10,0) 100%),
    linear-gradient(180deg, rgba(18,14,10,.6) 0%, rgba(18,14,10,.35) 40%, rgba(18,14,10,.68) 100%);
}
.hero--bright h1, .hero--bright .lede { text-shadow: 0 2px 24px rgba(0,0,0,.35); }

/* Video hero: keep the room as filmed, with shade only in a soft pool behind the words */
.hero--film::before {
  background:
    radial-gradient(ellipse 58% 58% at 50% 54%, rgba(18,14,10,.6) 0%, rgba(18,14,10,0) 100%),
    linear-gradient(180deg, rgba(18,14,10,.45) 0%, rgba(18,14,10,0) 20%, rgba(18,14,10,0) 80%, rgba(18,14,10,.35) 100%);
}
.hero--film h1 { text-shadow: 0 2px 30px rgba(0,0,0,.7), 0 0 60px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.5); }
.hero--film .lede, .hero--film .eyebrow { text-shadow: 0 1px 14px rgba(0,0,0,.85); }
@media (max-width: 760px) {
  .hero--film::before { background: radial-gradient(ellipse 100% 62% at 50% 55%, rgba(18,14,10,.66) 0%, rgba(18,14,10,0) 100%), linear-gradient(180deg, rgba(18,14,10,.45) 0%, rgba(18,14,10,0) 18%); }
}

/* ---------- Gallery: phone-style photo library (assets/js/photos.js) ---------- */
/* The gallery page is only the app: no site header, footer or page copy */
body.immersive { overflow: hidden; background: #0c0b0a; }
.immersive .site-header, .immersive .site-footer, .immersive .mobile-bar, .immersive .skip { display: none; }
.photos-noscript { padding: 40px 24px; text-align: center; }

/* Phones: the app is the whole screen. Desktop: it sits inside a drawn phone. */
.phone { position: fixed; inset: 0; z-index: 1; animation: pa-launch .55s cubic-bezier(.2, .8, .2, 1) both; }
.phone__screen { position: relative; height: 100%; overflow: hidden; background: #fff; container-type: inline-size; }
@keyframes pa-launch { from { opacity: 0; transform: scale(.94); } }
.photos-backdrop { display: none; }

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .photos-backdrop { display: block; position: fixed; inset: -60px; z-index: 0; }
  .photos-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: blur(50px) saturate(1.2) brightness(.5); transition: opacity .6s; }
  /* A landscape tablet, as large as the window allows */
  .phone {
    inset: 0; margin: auto; aspect-ratio: 1210 / 850;
    width: min(94vw, calc((100vh - 56px) * 1210 / 850), 1400px); height: auto;
    padding: 20px; border-radius: 42px;
    background: linear-gradient(145deg, #4a4540, #151312 40%, #2b2825);
    box-shadow: inset 0 0 0 2px #5d5750, inset 0 0 0 7px #0b0a09, 0 60px 120px -30px rgba(0, 0, 0, .7);
  }
  .phone::before { content: ""; position: absolute; left: 50%; top: 8px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #1c2230; box-shadow: inset 0 0 0 1.5px #0b0d12; }
  .phone::after { content: ""; position: absolute; top: -3px; right: 9%; width: 9%; height: 4px; border-radius: 2px; background: #2c2926; }
  .phone__screen { border-radius: 24px; }
  .phone__screen::after {
    content: ""; position: absolute; left: 50%; bottom: 8px; z-index: 60; width: 134px; height: 5px; margin-left: -67px;
    border-radius: 3px; background: #000; pointer-events: none; transition: background .2s;
  }
  .phone__screen:has(.pv.is-bare:not([hidden]))::after, .phone__screen:has(.pv.is-memory:not([hidden]))::after { background: #fff; }
}

.pa {
  --pa-top: 0px; --pa-bottom: 0px; --pa-cols: 3;
  --pa-blue: #007aff; --pa-gray: #8e8e93; --pa-fill: #f2f2f7; --pa-sep: rgba(60, 60, 67, .2);
  position: relative; height: 100%; display: flex; flex-direction: column;
  background: #fff; color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.3; letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .pa { --pa-top: 30px; --pa-bottom: 18px; } }
@media not all and (min-width: 900px) and (hover: hover) and (pointer: fine) { .pa { --pa-top: env(safe-area-inset-top, 0px); --pa-bottom: env(safe-area-inset-bottom, 0px); } }
.pa h3, .pa h4, .pa p { margin: 0; font-family: inherit; color: inherit; letter-spacing: inherit; text-transform: none; line-height: 1.25; }
.pa button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
.pa :focus-visible { outline: 2px solid var(--pa-blue); outline-offset: -2px; }
.pa svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
.pa img { width: 100%; height: 100%; object-fit: cover; max-width: none; }

/* Status bar (only inside the drawn tablet) */
.pa-status {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: 30px; padding: 2px 26px 0;
  display: none; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; letter-spacing: 0; pointer-events: none;
}
@media (min-width: 900px) and (hover: hover) and (pointer: fine) { .pa-status { display: flex; } }
.pa-clock { display: flex; gap: 8px; }
.pa-sys { display: flex; align-items: center; gap: 6px; }
.pa-sys svg:nth-child(1) { width: 16px; height: 11px; }
.pa-sys svg:nth-child(2) { width: 16px; height: 12px; }
.pa-sys svg:nth-child(3) { width: 27px; height: 13px; }
.pa[data-page="library"] .pa-status { color: #fff; }
.pa:has(.pv:not([hidden])) .pa-status { color: #000; }
.pa:has(.pv.is-bare:not([hidden])) .pa-status, .pa:has(.pv.is-memory:not([hidden])) .pa-status { color: #fff; }

/* Pages */
.pa-pages { position: relative; flex: 1; min-height: 0; }
.pa-page { position: absolute; inset: 0; display: none; }
.pa-page.is-active { display: block; }
.pa-scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pa-scroll::-webkit-scrollbar { display: none; }
.pa-page:not([data-page="library"]):not([data-page="detail"]) .pa-scroll { padding: calc(var(--pa-top) + 8px) 16px 28px; }
.pa-large { font-size: 32px; font-weight: 700; letter-spacing: -.025em; padding: 6px 0 10px; }
.pa-h { border-top: .5px solid var(--pa-sep); padding-top: 12px; margin: 18px 0 10px; }
.pa-h h4 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }

/* Library */
.pa-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: calc(var(--pa-top) + 10px) 16px 44px;
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .18) 60%, rgba(0, 0, 0, 0));
  color: #fff; pointer-events: none;
}
.pa-head__title { font-size: clamp(20px, 6.4vw, 26px); white-space: nowrap; font-weight: 700; letter-spacing: -.02em; text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.pa-head__sub { font-size: 14px; font-weight: 600; opacity: .9; margin-top: 2px; min-height: 1em; }
.pa-round {
  pointer-events: auto; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(120, 120, 128, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pa-round svg { width: 15px; height: 15px; stroke-width: 2; }
.pa .pa-exit {
  position: absolute; top: calc(var(--pa-top) + 10px); right: 14px; z-index: 30;
  pointer-events: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px 0 11px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  background: rgba(120, 120, 128, .5); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: background .2s;
}
.pa .pa-exit:hover { background: rgba(120, 120, 128, .7); }
.pa-exit svg { width: 8px; height: 14px; stroke-width: 2.6; }
/* On the white tabs it becomes a light iOS-style button; on album pages it sits in the nav bar */
.pa:not([data-page="library"]) .pa-exit { color: var(--pa-blue); background: rgba(118, 118, 128, .13); box-shadow: none; }
.pa:not([data-page="library"]) .pa-exit:hover { background: rgba(118, 118, 128, .22); }
.pa[data-page="detail"] .pa-exit { top: calc(var(--pa-top) + 5px); right: 8px; }
.pa-count small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--pa-gray); }
.pa .pv-info__note { margin-top: 12px; font-size: 12px; color: var(--pa-gray); }
.pa-seg {
  position: absolute; left: 50%; bottom: 12px; z-index: 3; transform: translateX(-50%);
  display: flex; padding: 3px; border-radius: 999px; white-space: nowrap;
  background: rgba(36, 36, 38, .62); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.pa .pa-seg button { padding: 7px 13px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600; transition: background .2s; }
.pa .pa-seg button[aria-selected="true"] { background: rgba(255, 255, 255, .3); }
.pa-lib { padding-bottom: 70px; }
.pa-lib--all { padding-top: var(--pa-top); }
.pa-lib--months, .pa-lib--years { padding-top: calc(var(--pa-top) + 70px); }

.pa-grid { display: grid; grid-template-columns: repeat(var(--pa-cols), 1fr); gap: 2px; }
.pa .pa-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--pa-fill); }
.pa-tile img { transition: opacity .15s; }
.pa-tile:active img { opacity: .75; }
.pa-tile__vid { position: absolute; right: 5px; top: 5px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.pa-tile__vid svg { width: 100%; height: 100%; }
.pa .pv-slide--video { display: flex; align-items: center; justify-content: center; }
.pa .pv-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pa-tile__fav { position: absolute; left: 5px; bottom: 5px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }
.pa-tile__fav svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.pa-count { text-align: center; font-size: 15px; font-weight: 600; padding: 18px 0 6px; }

.pa-day h4 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.pa-day header p { font-size: 13px; font-weight: 600; margin-top: 2px; }
.pa-daygrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pa .pa-tile.is-big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

.pa-lib--months, .pa-lib--years { display: grid; gap: 14px; padding-inline: 14px; }
.pa .pa-card {
  position: relative; display: block; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 14px;
  background: var(--pa-fill); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transition: transform .2s;
}
.pa .pa-card--year { aspect-ratio: 4 / 4.6; }
.pa-card:active { transform: scale(.98); }
.pa-card__txt {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 40px 16px 14px;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .6)); color: #fff;
}
.pa-card__txt strong { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pa-card--year .pa-card__txt { inset: 0 0 auto; padding: 16px 16px 40px; background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.pa-card--year .pa-card__txt strong { font-size: 38px; }
.pa-card__txt em { font-style: normal; font-size: 15px; font-weight: 600; }
.pa-card__txt small { font-size: 12px; opacity: .85; }

/* For You */
.pa-memories {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px;
  margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pa-memories::-webkit-scrollbar { display: none; }
.pa .pa-memory { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; scroll-snap-align: center; background: var(--pa-fill); }
.pa-memory > span {
  position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 50px 16px 18px; text-align: center; color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}
.pa-memory strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.pa-memory small { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.pa-memory i {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(0, 0, 0, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pa-memory i svg { width: 14px; height: 14px; }
.pa-grid--featured { grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pa-grid--featured .pa-tile { border-radius: 8px; }
.pa .pa-plan { display: grid; gap: 4px; margin-top: 24px; padding: 18px; border-radius: 14px; background: var(--pa-fill); text-decoration: none; }
.pa-plan strong { font-size: 17px; font-weight: 700; }
.pa-plan span { font-size: 14px; color: #6c6c70; }
.pa-plan em { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-size: 15px; font-weight: 600; color: var(--pa-blue); }
.pa-plan em svg { width: 7px; height: 12px; stroke-width: 2.4; }

/* Albums & lists */
.pa-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.pa .pa-album { display: block; }
.pa-album__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--pa-fill); color: #c7c7cc; }
.pa-album__img svg { width: 40%; height: 40%; }
.pa-album strong { display: block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.pa-album small { font-size: 13px; color: var(--pa-gray); }
.pa .pa-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; border-bottom: .5px solid var(--pa-sep); }
.pa-row img { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 6px; }
.pa-row__icon { flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--pa-fill); color: var(--pa-blue); }
.pa-row__icon svg { width: 22px; height: 22px; }
.pa-row span { flex: 1; font-size: 16px; }
.pa-row small { font-size: 15px; color: var(--pa-gray); }
.pa-row > svg { width: 7px; height: 12px; color: #c4c4c7; stroke-width: 2.2; }

/* Search */
.pa-searchbox {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px;
  background: rgba(118, 118, 128, .12); color: var(--pa-gray);
}
.pa-searchbox svg { width: 17px; height: 17px; flex-shrink: 0; stroke-width: 2.2; }
.pa-searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 16px; color: #000; outline: none; user-select: text; -webkit-user-select: text; }
.pa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pa .pa-chip { padding: 7px 14px; border-radius: 999px; background: var(--pa-fill); color: var(--pa-blue); font-size: 14px; }
.pa-empty { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; color: var(--pa-gray); font-size: 14px; }
.pa-empty svg { width: 44px; height: 44px; stroke-width: 1.4; }
.pa-empty strong { font-size: 20px; font-weight: 700; color: #000; }

/* Album detail */
.pa-nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: calc(var(--pa-top) + 44px); padding: var(--pa-top) 8px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: .5px solid var(--pa-sep);
}
.pa .pa-nav__back { display: flex; align-items: center; gap: 5px; color: var(--pa-blue); font-size: 17px; }
.pa-nav__back svg { width: 11px; height: 19px; stroke-width: 2.6; }
.pa-nav__title { font-size: 17px; font-weight: 600; max-width: min(200px, 34vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-detail .pa-scroll { padding: calc(var(--pa-top) + 46px) 0 16px; }

/* Tab bar */
.pa-tabs {
  position: relative; z-index: 4; display: flex; justify-content: space-around;
  padding: 6px 6px calc(4px + var(--pa-bottom));
  background: rgba(249, 249, 249, .94); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: .5px solid rgba(0, 0, 0, .16);
}
.pa .pa-tabs button { display: grid; justify-items: center; gap: 2px; min-width: 64px; color: var(--pa-gray); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.pa .pa-tabs button[aria-current="true"] { color: var(--pa-blue); }
.pa-tabs svg { width: 27px; height: 27px; stroke-width: 1.7; }

.pa-toast {
  position: absolute; left: 50%; top: 45%; z-index: 80; transform: translate(-50%, -50%) scale(.95);
  padding: 12px 18px; border-radius: 14px; background: rgba(30, 30, 30, .86); color: #fff;
  font-size: 14px; font-weight: 600; max-width: 80%; overflow-wrap: anywhere; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.pa-toast.is-on { opacity: 1; transform: translate(-50%, -50%); }

/* Viewer */
.pv { position: absolute; inset: 0; z-index: 40; color: #000; }
.pv[hidden] { display: none; }
.pv-bg { position: absolute; inset: 0; background: #fff; transition: background .25s, opacity .3s; }
.pv.is-bare .pv-bg, .pv.is-memory .pv-bg { background: #000; }
.pv.is-opening .pv-bg, .pv.is-closing .pv-bg { opacity: 0 !important; }
.pv-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x;
}
.pv-track::-webkit-scrollbar { display: none; }
.pv.is-zoomed .pv-track { overflow: hidden; touch-action: none; }
.pv-slide { flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: center; scroll-snap-stop: always; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pa .pv-slide img { object-fit: contain; transition: transform .18s ease-out; -webkit-user-drag: none; }
.pv.is-info .pv-slide.is-current { transform: translateY(-20%) scale(.72); }

.pv-top, .pv-bottom {
  position: absolute; left: 0; right: 0; z-index: 2;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: opacity .2s;
}
.pv-top { top: 0; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: calc(var(--pa-top) + 2px) 6px 6px; }
.pv-title { text-align: center; line-height: 1.25; }
.pv-title strong { display: block; font-size: 15px; font-weight: 600; }
.pv-title span { font-size: 12px; color: var(--pa-gray); }
.pa .pv-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--pa-blue); }
.pv-icon svg { width: 22px; height: 22px; }
.pv-close svg { width: 12px; height: 20px; stroke-width: 2.6; }
.pv-bottom { bottom: 0; padding-bottom: var(--pa-bottom); }
.pv-thumbs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 7px 50% 4px; }
.pv-thumbs::-webkit-scrollbar { display: none; }
.pa .pv-thumbs button { flex: 0 0 24px; height: 38px; overflow: hidden; transition: flex-basis .2s, margin .2s; }
.pa .pv-thumbs button.is-current { flex-basis: 50px; margin: 0 4px; }
.pv-bar { display: flex; justify-content: space-between; padding: 0 8px; }
.pv-heart[aria-pressed="true"] svg { fill: currentColor; }
.pv-heart.is-pop svg { animation: pv-pop .35s ease; }
@keyframes pv-pop { 50% { transform: scale(1.3); } }
.pv.is-bare .pv-top, .pv.is-bare .pv-bottom, .pv.is-bare .pv-arrow,
.pv.is-dragging .pv-top, .pv.is-dragging .pv-bottom, .pv.is-dragging .pv-arrow,
.pv.is-opening .pv-top, .pv.is-opening .pv-bottom,
.pv.is-closing .pv-top, .pv.is-closing .pv-bottom, .pv.is-closing .pv-arrow,
.pv.is-info .pv-bottom, .pv.is-info .pv-arrow { opacity: 0; pointer-events: none; }
.pa .pv-arrow {
  position: absolute; top: 50%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%;
  display: none; place-items: center; background: rgba(255, 255, 255, .88); color: #000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15); transition: opacity .2s;
}
.pv-arrow svg { width: 8px; height: 14px; stroke-width: 2.4; }
.pa .pv-arrow--prev { left: 10px; }
.pa .pv-arrow--next { right: 10px; }
@media (hover: hover) and (pointer: fine) { .pa .pv-arrow { display: grid; } }

.pv-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 8px 18px calc(18px + var(--pa-bottom)); border-radius: 16px 16px 0 0;
  background: #fff; box-shadow: 0 -10px 30px rgba(0, 0, 0, .12);
  transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.pv.is-info .pv-info { transform: none; }
.pv-info__grab { display: block; width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #d1d1d6; }
.pv-info__alt { font-size: 16px; }
.pv-info__card { display: grid; gap: 4px; margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--pa-fill); }
.pv-info__card strong { font-size: 16px; font-weight: 600; }
.pv-info__card span { font-size: 13px; color: #6c6c70; }
.pv-info__place { display: flex; align-items: center; gap: 4px; }
.pv-info__place svg { width: 13px; height: 13px; color: var(--pa-blue); }
.pa .pv-info__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--pa-blue); font-size: 15px; font-weight: 600; text-decoration: none; }
.pv-info__cta svg { width: 7px; height: 12px; stroke-width: 2.4; }

/* Memories slideshow */
.pv-progress { display: none; }
.pv.is-memory .pv-progress { display: flex; gap: 3px; position: absolute; z-index: 3; top: calc(var(--pa-top) + 8px); left: 12px; right: 12px; }
.pv-progress i { position: relative; flex: 1; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.pv-progress i.is-done { background: #fff; }
.pv-progress i.is-now::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: pv-bar 3.8s linear forwards; }
.pv.is-paused .pv-progress i.is-now::after { animation-play-state: paused; }
@keyframes pv-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pv.is-memory .pv-top { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: calc(var(--pa-top) + 16px); }
.pv.is-memory .pv-title, .pv.is-memory .pv-bottom, .pv.is-memory .pv-arrow { display: none; }
.pa .pv.is-memory .pv-close { color: #fff; }
.pa .pv.is-memory .pv-slide img { object-fit: cover; }
.pa .pv.is-memory .pv-slide.is-current img { animation: pv-kenburns 4.6s ease-out both; }
@keyframes pv-kenburns { from { transform: scale(1.14); } to { transform: scale(1); } }
.pv-memtitle {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; gap: 6px; padding: 24px;
  text-align: center; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
  background: rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity .7s;
}
.pv.is-titling .pv-memtitle { opacity: 1; }
.pv-memtitle strong { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pv-memtitle span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.pv.is-paused .pv-memtitle { opacity: 1; background: rgba(0, 0, 0, .35); }
/* Days: the date sits on each day's lead photo, so the floating header steps aside */
.pa[data-libview="days"] .pa-head { background: none; }
.pa[data-libview="days"] .pa-head > div { visibility: hidden; }
.pa-lib.pa-lib--days { padding-top: var(--pa-top); }
.pa-day { position: relative; margin-bottom: 2px; }
.pa-day header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 14px 16px 44px; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); color: #fff;
}
.pa-lib--days .pa-day:first-child header { padding-top: calc(var(--pa-top) + 12px); }
.pa-day header p { color: rgba(255, 255, 255, .9); }

/* Tablets and other wide touch screens get the roomier iPad-style layout */
.pa.is-dense { --pa-cols: 5; }
@container (min-width: 600px) {
  .pa { --pa-cols: 5; }
  .pa.is-dense { --pa-cols: 7; }
  .pa-lib--months, .pa-lib--years { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); padding-inline: 20px; gap: 18px; }
  .pa-daygrid { grid-template-columns: repeat(6, 1fr); }
  .pa .pa-tile.is-big { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .pa-memories { grid-auto-columns: 46%; }
  .pa .pa-memory { aspect-ratio: 4 / 3; }
  .pa-grid--featured { grid-template-columns: repeat(3, 1fr); }
  .pa-day header { right: auto; width: calc(100% / 3); }
  .pa-albums { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 16px; }
  .pa-page:not([data-page="library"]):not([data-page="detail"]) .pa-scroll { padding-inline: max(24px, calc((100% - 980px) / 2)); }
  .pa-memories { margin-inline: 0; padding-inline: 0; }
}
@container (min-width: 1000px) {
  .pa { --pa-cols: 7; }
  .pa.is-dense { --pa-cols: 9; }
  .pa-daygrid { grid-template-columns: repeat(8, 1fr); }
  .pa-day header { width: 25%; }
  .pa-memories { grid-auto-columns: 32%; }
}
