/* =====================================================================
   LINEN · modern minimal wedding invitation (weblivites)
   ===================================================================== */

:root {
  --paper: #F7F4EF;
  --paper-2: #EFE9E0;
  --ink: #1C1C1C;
  --ink-2: #3D3A37;
  --muted: #77716A;
  --taupe: #B49A7A;
  --taupe-d: #8A7155;
  --rule: rgba(28, 28, 28, .16);
  --rule-light: rgba(247, 244, 239, .2);

  --serif: "Bodoni Moda", "Playfair Display", Didot, "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5.5vw, 72px);
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* kit.js widgets */
  --wv-accent: #B49A7A;
  --wv-ink: #1C1C1C;
  --wv-paper: #F7F4EF;
  --wv-font: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-optical-sizing: auto;
}
/* Linen grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.is-locked, html.is-locked body { overflow: hidden; }
.app { position: relative; z-index: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--taupe-d); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 12px; top: 12px; }
.noscript { padding: 40px 24px; text-align: center; font-family: var(--serif); }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0;
  font: 500 11px/1.5 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 10vw, 104px);
  line-height: .96;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.display em { font-style: italic; color: var(--taupe-d); }
.lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(23px, 4.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font: 500 11.5px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--taupe-d); border-color: var(--taupe-d); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* Image reveal: a paper-coloured panel lifts off the photo. (The observed
   element itself stays unclipped so IntersectionObserver can see it.) */
.clip[data-reveal] { position: relative; overflow: hidden; opacity: 1; transform: none; }
.clip[data-reveal]::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--bg, var(--paper)); transform-origin: 50% 0; transition: transform 1.35s var(--ease); pointer-events: none; }
.clip[data-reveal] img { transform: scale(1.12); transition: transform 1.9s var(--ease-out); }
.clip[data-reveal].is-in::after { transform: scaleY(0); }
.clip[data-reveal].is-in img { transform: none; }

/* =====================================================================
   INTRO
   ===================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 48px 28px;
  background: var(--paper);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease) .32s;
}
.intro::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--rule); pointer-events: none; }
.intro.is-opening { clip-path: inset(0 0 100% 0); }
.intro__card { position: relative; width: 100%; max-width: 620px; text-align: center; transition: opacity .55s, transform .7s var(--ease-out); }
.intro.is-opening .intro__card { opacity: 0; transform: translateY(-28px); }
.intro__corner {
  position: absolute;
  font: 500 10px/1 var(--sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro__corner--tl { top: 32px; left: 32px; font: italic 400 15px/1 var(--serif); letter-spacing: .02em; color: var(--ink); }
.intro__corner--tr { top: 34px; right: 32px; }
.intro__corner--bl { bottom: 34px; left: 32px; }
.intro__corner--br { bottom: 34px; right: 32px; }
.intro__dear { margin: 0 0 18px; font: italic 400 clamp(19px, 4.6vw, 24px)/1.3 var(--serif); color: var(--taupe-d); }
.intro__names {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: min(15vw, calc(78vw / (var(--len, 6) * .6)), 112px);
  line-height: .92;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.intro__names span { display: block; }
.intro__names em { display: block; margin: .14em 0 .1em; font-size: .46em; color: var(--taupe); }
.intro__rule { display: block; width: 44px; height: 1px; margin: 0 auto 20px; background: var(--ink); opacity: .5; }
.intro__date { margin: 0; font: 500 12px/1 var(--sans); letter-spacing: .42em; padding-left: .42em; }
.intro__open { margin-top: 44px; }
.intro__open svg { transition: transform .35s var(--ease-out); }
.intro__open:hover svg { transform: translateX(4px); }
.intro [data-rise] { opacity: 0; animation: rise 1.3s var(--ease-out) forwards; }
.intro [data-rise="2"] { animation-delay: .15s; }
.intro [data-rise="3"] { animation-delay: .3s; }
.intro [data-rise="4"] { animation-delay: .5s; }
.intro [data-rise="5"] { animation-delay: .75s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   TOP BAR
   ===================================================================== */
.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  transition: background .4s, border-color .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.top.is-scrolled { background: rgba(247, 244, 239, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--rule); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.top__mono { font: italic 400 19px/1 var(--serif); text-decoration: none; letter-spacing: .01em; }
.top__mono em { color: var(--taupe-d); padding: 0 .12em; }
.top__link { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none; padding: 10px 0 10px 12px; }
.top__link span { border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: calc(96px + env(safe-area-inset-top)) 0 40px; }
.hero__grid { display: grid; gap: 38px; }
.hero__names {
  --size: min(21vw, calc(86vw / (var(--len, 6) * .58)), 10.5rem);
  margin: 26px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--size);
  line-height: .9;
  letter-spacing: -.025em;
}
.hero__names .ln { display: block; overflow: hidden; padding: 0 0 .07em; }
.hero__names .ln > span { display: inline-block; transform: translateY(108%); transition: transform 1.25s var(--ease-out); }
.hero__names .ln:nth-child(2) > span { transition-delay: .1s; }
.hero__names .ln:nth-child(3) > span { transition-delay: .2s; }
.is-ready .hero__names .ln > span { transform: none; }
.hero__names .amp { font-style: italic; font-size: .5em; line-height: 1.1; color: var(--taupe); padding-left: 1.3em; }
.hero__names .ln--last { text-align: right; }
.hero__sub { margin: 26px 0 0; max-width: 26em; font: italic 400 clamp(19px, 4.2vw, 26px)/1.35 var(--serif); color: var(--ink-2); }
.hero__sub em { font-style: normal; }
.hero__fade { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--ease-out) .45s, transform 1.2s var(--ease-out) .45s; }
.is-ready .hero__fade { opacity: 1; transform: none; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 34px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font: 500 11px/1.3 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.hero__photo { position: relative; margin: 0 calc(var(--pad) * -1); aspect-ratio: 4 / 5; max-height: 82svh; overflow: hidden; background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption {
  position: absolute; left: var(--pad); bottom: 18px;
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero__big {
  margin: 34px 0 0;
  font: italic 400 min(24vw, 13rem)/.85 var(--serif);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--taupe);
  white-space: nowrap;
}
.hero__scroll {
  display: flex; align-items: center; gap: 14px; margin-top: 38px;
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--muted);
}
.hero__scroll i { position: relative; width: 56px; height: 1px; background: var(--rule); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: line 2.6s var(--ease) infinite 1.4s; }
@keyframes line { 0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* =====================================================================
   COUNTDOWN
   ===================================================================== */
.count { position: relative; z-index: 1; padding: clamp(56px, 9vw, 110px) 0; background: var(--ink); color: var(--paper); }
.count .eyebrow { color: rgba(247, 244, 239, .6); text-align: center; }
.count__title { margin: 14px 0 34px; text-align: center; font: italic 400 clamp(26px, 5vw, 44px)/1.15 var(--serif); }
.count__grid { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 0 auto; }
.count__cell { text-align: center; padding: 6px 4px; border-left: 1px solid var(--rule-light); }
.count__cell:first-child { border-left: 0; }
.count__cell b { display: block; font: 400 clamp(36px, 10.5vw, 112px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; }
.count__cell span { display: block; margin-top: 12px; font: 500 10px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(247, 244, 239, .6); }
.count__done { margin: 0; text-align: center; font: italic 400 clamp(30px, 6vw, 56px)/1.1 var(--serif); }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.sec { position: relative; padding: clamp(76px, 12vw, 168px) 0; border-top: 1px solid var(--rule); scroll-margin-top: 62px; }
.count + .sec { border-top: 0; }
.sec--tint { --bg: var(--paper-2); background: var(--paper-2); }
.sec__grid { display: grid; gap: 34px; }
.sec__head { display: flex; align-items: center; gap: 14px; }
.sec__num { font: italic 400 17px/1 var(--serif); color: var(--taupe-d); }
.sec__rule { width: 40px; height: 1px; background: var(--ink); opacity: .35; }
.sec__label { margin: 0; font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.sec .sec__body > * + * { margin-top: 28px; }

/* Invitation */
.blessing { font: 500 11px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--taupe-d); }
.people { display: grid; gap: 40px; margin-top: 56px !important; }
.person { display: grid; gap: 6px; }
.person__photo { margin: 0 0 18px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__role { margin: 0; font: 500 10.5px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.person__name { margin: 8px 0 0; font: 400 clamp(30px, 6vw, 46px)/1.05 var(--serif); letter-spacing: -.01em; }
.person__parents { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.people__amp { align-self: center; font: italic 400 46px/1 var(--serif); color: var(--taupe); }

/* Facts list */
.facts { margin: 40px 0 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 10.5px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 400 clamp(20px, 3.4vw, 26px)/1.35 var(--serif); }
.facts dd small { display: block; margin-top: 4px; font: 400 15px/1.5 var(--sans); color: var(--ink-2); }

/* Events */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ev { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.ev__n { font: italic 400 20px/1.3 var(--serif); color: var(--taupe-d); }
.ev h3 { margin: 0; font: 400 clamp(30px, 6vw, 48px)/1.02 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ev__when { margin: 12px 0 0; font: 500 11px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.ev__where { margin: 6px 0 0; color: var(--ink-2); }
.ev__note { margin: 6px 0 0; font: italic 400 18px/1.4 var(--serif); color: var(--taupe-d); }

/* Story */
.story { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.moment { display: grid; gap: 10px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.moment__when { font: italic 400 18px/1.2 var(--serif); color: var(--taupe-d); }
.moment h3 { margin: 0; font: 400 clamp(27px, 5vw, 40px)/1.08 var(--serif); }
.moment p { margin: 0; color: var(--ink-2); max-width: 36em; }

/* Venue */
.venue__name { font-size: clamp(38px, 8.5vw, 84px); }
.venue__addr { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); max-width: 30em; }
.venue__note { margin: 0; padding-left: 18px; border-left: 1px solid var(--taupe); font: italic 400 19px/1.45 var(--serif); color: var(--ink-2); max-width: 32em; }
.map { position: relative; margin: 44px calc(var(--pad) * -1) 0 !important; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(1.02); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; margin: 0 calc(var(--pad) * -1) !important; padding: 0 8px; }
.g { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.g:nth-child(3n + 1), .g:last-child:nth-child(3n + 2) { grid-column: span 2; aspect-ratio: 3 / 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.g:hover img { transform: scale(1.04); }
.g__n { position: absolute; left: 10px; bottom: 9px; font: italic 400 13px/1 var(--serif); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

/* Attire */
.attire { font: italic 400 clamp(34px, 7.5vw, 76px)/1.05 var(--serif); letter-spacing: -.015em; margin: 0; overflow-wrap: anywhere; }

/* With love */
.love { display: grid; gap: 54px; }
.love h3 { margin: 0 0 18px; font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.families { list-style: none; margin: 0; padding: 0; }
.families li { font: 400 clamp(21px, 3.6vw, 28px)/1.4 var(--serif); padding: 6px 0; }
.contacts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.contact__who { flex: 1 1 auto; min-width: 0; }
.contact b { display: block; font: 400 22px/1.2 var(--serif); overflow-wrap: anywhere; }
.contact span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.contact__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.contact a { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.contact a:hover { background: var(--ink); color: var(--paper); }
.contact a svg { width: 15px; height: 15px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot { position: relative; z-index: 1; padding: clamp(80px, 12vw, 150px) 0 calc(72px + env(safe-area-inset-bottom)); background: var(--paper-2); border-top: 1px solid var(--rule); text-align: center; }
.foot__names {
  margin: 18px 0 0;
  font: 400 min(17vw, calc(84vw / (var(--len, 10) * .56)), 9rem)/.95 var(--serif);
  letter-spacing: -.025em;
}
.foot__names em { color: var(--taupe-d); }
.foot__date { margin: 22px 0 0; font: 500 11.5px/1 var(--sans); letter-spacing: .4em; padding-left: .4em; }
.foot__tag { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 4px; border: 0; background: none; font: italic 400 20px/1 var(--serif); color: var(--taupe-d); cursor: pointer; }
.foot__tag svg { width: 15px; height: 15px; }
.foot__tag { max-width: 100%; }
.foot__tag span { min-width: 0; overflow-wrap: anywhere; line-height: 1.2; }
.foot__tag svg { flex: none; }
.foot .btns { justify-content: center; }

/* =====================================================================
   FLOATING BUTTONS
   ===================================================================== */
.fab { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fab button {
  display: grid; place-items: center; width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(247, 244, 239, .15); border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 8px 24px rgba(28, 28, 28, .22);
  cursor: pointer; transition: transform .3s var(--ease-out), background .3s;
}
.fab button:hover { transform: translateY(-2px); background: var(--taupe-d); }
.fab svg { width: 19px; height: 19px; }
.fab .bars { display: none; align-items: flex-end; gap: 3px; height: 14px; }
.fab .bars i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.fab .bars i:nth-child(2) { animation-delay: -.35s; }
.fab .bars i:nth-child(3) { animation-delay: -.7s; }
.fab .is-playing .bars { display: flex; }
.fab .is-playing .ic-note { display: none; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
html.is-locked .fab { opacity: 0; pointer-events: none; }

/* =====================================================================
   WIDER SCREENS
   ===================================================================== */
@media (min-width: 640px) {
  .people { grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: start; }
  .people__amp { padding-top: 40%; }
  .people.no-photos .people__amp { padding-top: 26px; }
  .facts > div { grid-template-columns: 170px 1fr; gap: 24px; align-items: baseline; }
  .moment { grid-template-columns: 170px 1fr; column-gap: 24px; }
  .moment__when { grid-row: span 2; padding-top: 8px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 10px; }
  .g:nth-child(3n + 1), .g:last-child:nth-child(3n + 2) { grid-column: auto; aspect-ratio: 4 / 5; }
  .g:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .g:nth-child(5n + 4) { grid-column: span 2; aspect-ratio: auto; }
  .love { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (min-width: 960px) {
  .top__in { height: 76px; }
  .sec { scroll-margin-top: 76px; }
  .hero { padding-top: 132px; min-height: 100svh; }
  .hero--photo .hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .hero--photo .hero__names { --size: min(10vw, calc(52vw / (var(--len, 6) * .58)), 10rem); }
  .hero--photo .hero__photo { margin: 0; aspect-ratio: 4 / 5; max-height: calc(100svh - 190px); }
  .hero--type .hero__names { --size: min(14vw, calc(84vw / (var(--len, 6) * .58)), 14rem); }
  .hero--type .hero__bottom { display: grid; grid-template-columns: minmax(380px, 1fr) auto; gap: 56px; align-items: end; }
  .hero--type .hero__big { margin: 0; font-size: min(11vw, 10rem); }
  .hero__photo figcaption { left: 20px; }
  .sec__grid { grid-template-columns: minmax(200px, 3fr) 9fr; gap: 64px; }
  .sec__head { position: sticky; top: 110px; align-self: start; }
  .gallery { margin: 0 !important; padding: 0; }
  .map { margin: 52px 0 0 !important; aspect-ratio: 16 / 9; }
  .ev { grid-template-columns: 80px 1fr 1fr; align-items: baseline; }
  .ev__body { display: contents; }
  .ev h3 { grid-column: 2; }
  .ev__meta { grid-column: 3; grid-row: 1 / span 3; }
  .ev__when { margin-top: 0; }
}

@media (min-width: 1280px) {
  .hero--photo .hero__grid { gap: 96px; }
}

.wv-instant *, .wv-instant *::before, .wv-instant *::after { transition: none !important; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero__fade, .intro [data-rise] { opacity: 1 !important; transform: none !important; }
  .clip[data-reveal]::after { display: none; }
  .clip[data-reveal] img { transform: none !important; }
  .hero__names .ln > span { transform: none !important; }
}
